/* VMHS notices banner & notification lists */

.vmhs-notices-banner {
  margin-bottom: 1rem;
}

.vmhs-notice-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 0.5rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vmhs-notice-item--dismissing {
  opacity: 0;
  transform: translateY(-4px);
}

.vmhs-notice-item__content {
  flex: 1 1 auto;
  min-width: 0;
}

.vmhs-notice-item__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 0.35rem;
  min-width: 2rem;
  min-height: 2rem;
}

.vmhs-notice-item__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.vmhs-notif-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #64748b;
}

.vmhs-notif-empty i {
  font-size: 1.75rem;
  opacity: 0.5;
}

.vmhs-notification-row {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 0;
}

.vmhs-notification-row:last-child {
  border-bottom: none;
}

.vmhs-notification-row.is-unread {
  background: #f0fdfa;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 0.5rem;
}

.vmhs-public-notice-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.vmhs-public-notice-card--urgent {
  border-left: 4px solid #dc2626;
}

.vmhs-public-notice-card--warning {
  border-left: 4px solid #d97706;
}

.vmhs-public-notice-card--info {
  border-left: 4px solid var(--vmhs-brand, #B7670F);
}

/* Staff header notification dropdown */
.vmhs-notif-dropdown {
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.vmhs-notif-dropdown__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.vmhs-notif-dropdown__header-main h5 {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.vmhs-notif-dropdown__subtitle {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.vmhs-notif-dropdown__mark-all-form .mark-all-read {
  font-size: 0.75rem;
  white-space: nowrap;
}

.vmhs-notif-dropdown__scroll,
.vmhs-notif-dropdown .header-notification-scroll {
  max-height: min(16rem, calc(100vh - 14rem));
  overflow-y: auto;
}

.vmhs-notif-dropdown__scroll .list-group-item {
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  padding: 0;
}

.vmhs-notif-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.vmhs-notif-dropdown__item:hover,
.vmhs-notif-dropdown__item:focus-visible {
  background: #f8fafc;
  color: inherit;
}

.vmhs-notif-dropdown__item.is-unread {
  background: #f0fdfa;
}

.vmhs-notif-dropdown__item.is-unread:hover {
  background: #e6fffa;
}

.vmhs-notif-dropdown__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: #f1f5f9;
  color: #475569;
}

.vmhs-notif-dropdown__icon--ticket {
  background: #eff6ff;
  color: #2563eb;
}

.vmhs-notif-dropdown__icon--visitor {
  background: #ecfdf5;
  color: #059669;
}

.vmhs-notif-dropdown__icon--system {
  background: #f8fafc;
  color: #64748b;
}

.vmhs-notif-dropdown__icon--notice {
  background: #fef2f2;
  color: #dc2626;
}

.vmhs-notif-dropdown__icon--executive {
  background: #faf5ff;
  color: #7c3aed;
}

.vmhs-notif-dropdown__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.vmhs-notif-dropdown__title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vmhs-notif-dropdown__msg {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vmhs-notif-dropdown__time {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.vmhs-notif-dropdown__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--vmhs-brand, #B7670F);
}

.vmhs-notif-dropdown__footer {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.vmhs-notif-dropdown__footer-link {
  display: block;
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--vmhs-brand, #B7670F);
}

.vmhs-notif-dropdown__footer-link + .vmhs-notif-dropdown__footer-link {
  border-top: 1px solid #e2e8f0;
}

.vmhs-notif-dropdown__footer-link--muted {
  font-weight: 500;
  color: #64748b;
}

.vmhs-notif-dropdown__footer-link:hover {
  background: #f1f5f9;
  color: var(--vmhs-brand, #B7670F);
}

.vmhs-desktop-shell .vmhs-notif-dropdown {
  min-width: 380px;
  max-width: 440px;
}

@media (max-width: 768px) {
  .vmhs-notif-dropdown {
    min-width: min(22rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }

  .vmhs-notif-dropdown__scroll,
  .vmhs-notif-dropdown .header-notification-scroll {
    max-height: min(14rem, calc(100vh - 11rem));
  }
}
