﻿/* Econet component lab C / clean line: restrained surfaces and 1px rules. */
#leftMnu #notificationCenterButton {
  position: fixed;
  z-index: 1001;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100vw - 24px);
  min-height: 32px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #8dccf3;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}
#leftMnu #notificationCenterButton:hover { background: transparent; color: #bce6ff; }
#leftMnu #notificationCenterButton[hidden], #notificationCenterCount[hidden] { display: none; }
#leftMnu #notificationCenterButton svg path { color: inherit; stroke: inherit; }
#leftMnu #notificationCenterButton svg {
  width: 18px; height: 18px; flex: 0 0 auto;
  color: inherit; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.notification-toast-icon svg {
  width: 19px; height: 19px; flex: 0 0 auto;
  fill: none; stroke: #12618b; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
#leftMnu #notificationCenterButton span { color: inherit; font: inherit; }

/* Keep the scrollable navigation above the fixed notification action. */
#leftMnu > .lnav_div:not(.close-sidebar) {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: calc(100vh - 50px);
  height: calc(100dvh - 50px);
  padding-bottom: 52px;
  background: #183f6f;
}
#leftMnu > .lnav_div:not(.close-sidebar) > .tabs,
#leftMnu > .lnav_div:not(.close-sidebar) > .tab-contents { flex: 0 0 auto; }
#leftMnu > .lnav_div:not(.close-sidebar) > .lnav {
  flex: 0 0 calc(100vh - 252px);
  flex: 0 0 calc(100dvh - 252px);
  min-height: 0;
  height: calc(100vh - 252px) !important;
  height: calc(100dvh - 252px) !important;
}

/* Public navigation has no notification footer or internal search/tabs. */
#leftMnu.public-service-sidebar > .lnav_div:not(.close-sidebar) {
  padding-bottom: 0;
  background: #333;
}
#leftMnu.public-service-sidebar > .lnav_div:not(.close-sidebar) > .lnav {
  flex: 1 1 0;
  height: auto !important;
}

#notificationCenterCount { padding: 0; border: 0; color: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
#notificationCenterCount::before { content: '('; }
#notificationCenterCount::after { content: ')'; }
.quick-inquiry-toast-root { width: 360px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 180px); overflow-y: auto; }
.quick-inquiry-toast-root .quick-inquiry-toast {
  padding: 19px 44px 19px 50px;
  border: 1px solid #beced6;
  border-radius: 0;
  background: #fff;
  color: #234353;
  box-shadow: none;
  cursor: default;
}
.notification-toast-icon { position: absolute; left: 18px; top: 20px; display: flex; }
.notification-toast-open { display: block; border: 0; background: transparent; color: #234353; text-align: left; padding: 0; width: 100%; cursor: pointer; font: inherit; }
.notification-toast-open strong, .notification-toast-open span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.notification-toast-open strong { color: #234353; font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 5px; }
.notification-toast-open span { color: #647687; font-size: 12px; line-height: 1.7; }
.notification-toast-open:hover strong { color: #12618b; text-decoration: underline; text-underline-offset: 3px; }
.quick-inquiry-toast-root .quick-inquiry-toast-close { top: 12px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 0; background: transparent; color: #647687; }
.quick-inquiry-toast-close svg { width: 16px; height: 16px; fill: none; stroke: #647687; stroke-width: 1.7; stroke-linecap: round; }
.quick-inquiry-toast-root .quick-inquiry-toast-close:hover { background: #f1f6f8; }
.quick-inquiry-toast small { display: block; margin-top: 8px; color: #b42318; font-size: 12px; line-height: 1.5; }
.quick-inquiry-toast small:empty { display: none; }
#notificationCenter {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  height: min(600px,calc(100dvh - 48px)); padding: 0;
  border: 1px solid #beced6; border-radius: 0;
  width: min(720px,calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  color: #234353; background: #fff; box-shadow: none;
}
#notificationCenter::backdrop { background: #10203066; }
#notificationCenter[open] { display: flex; flex-direction: column; }
#notificationCenter header, #notificationCenter footer { display: flex; gap: 12px; align-items: center; padding: 16px 20px; flex-shrink: 0; }
#notificationCenter header { justify-content: space-between; background: #fff; color: #234353; border-bottom: 1px solid #beced6; }
#notificationCenter h2 { color: #234353; font-size: 18px; font-weight: 600; margin: 0; }
#notificationCenter button { cursor: pointer; }
#notificationCenter button:disabled { cursor: default; opacity: .5; }
#notificationCenter button:focus-visible, #notificationCenterButton:focus-visible, .notification-toast-open:focus-visible, .quick-inquiry-toast-close:focus-visible { outline: 2px solid #12618b; outline-offset: 2px; }
#notificationCenterStatus { padding: 0 20px; margin: 16px 0; color: #647687; font-size: 13px; line-height: 1.5; }
#notificationCenter .notification-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 0 20px; min-height: 80px; }
#notificationCenter .notification-row { width: 100%; background: #fff; color: #234353; text-align: left; padding: 17px 0; border: 0; border-bottom: 1px solid #beced6; border-radius: 0; }
#notificationCenter .notification-row:hover { background: #f1f6f8; }
#notificationCenter .notification-row strong, #notificationCenter .notification-row span, #notificationCenter time { display: block; overflow-wrap: anywhere; }
#notificationCenter .notification-row strong { color: #234353; font-size: 14px; font-weight: 600; }
#notificationCenter .notification-row span { color: #647687; font-size: 13px; line-height: 1.7; white-space: pre-line; margin-top: 5px; }
#notificationCenter time { font-size: 12px; color: #647687; margin-top: 8px; }
#notificationCenter footer { border-top: 1px solid #beced6; }
#notificationCenter footer button, #notificationCenter .notification-close { min-height: 36px; padding: 6px 12px; border: 1px solid #beced6; border-radius: 0; background: transparent; color: #12618b; font: inherit; font-size: 13px; }
#notificationCenter footer button:hover:not(:disabled), #notificationCenter .notification-close:hover { background: #f1f6f8; }
#notificationCenter .notification-refresh { margin-right: auto; }
#notificationCenter .notification-page { white-space: nowrap; font-size: 13px; }
#notificationCenter .notification-tabs { display: flex; gap: 16px; padding: 8px 20px 0; border-bottom: 1px solid #beced6; flex-shrink: 0; }
#notificationCenter [role=tab] { padding: 12px 0; min-height: 44px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #647687; font: inherit; font-size: 14px; }
#notificationCenter [role=tab][aria-selected=true] { border-bottom-color: #12618b; background: transparent; color: #12618b; font-weight: 600; }
#notificationPanel { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
#notificationCenter .notification-close { font-size: 22px; line-height: 1; width: 36px; padding: 0; border: 0; }
@media(max-width:600px) {
  #notificationCenter header, #notificationCenter footer { padding: 12px; gap: 8px; }
  #notificationCenter .notification-tabs { padding: 4px 12px 0; }
  #notificationCenter [role=tab] { flex: 1; padding: 12px 0; }
  #notificationCenter .notification-list { padding: 0 12px; }
  #notificationCenterStatus { padding: 0 12px; }
  #notificationCenter footer { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { .quick-inquiry-toast { transition: none; transform: none; } }
