/* Shared staff interface. Keep business-page styles in their existing files. */
:root { --primary: #176747; --primary-700: #105035; --primary-soft: #eaf5ef; --text: #172b25; --muted: #52655d; --border: #dce5df; --ring: 0 0 0 3px #17674733; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; background: #f4f7f5; }
body .main-header { background: #123b2c; }
body .main-header .logo { font-family: inherit; font-size: 1.25rem; font-weight: 800; color: white; text-decoration: none; }
.header-flex { gap: 16px; flex-wrap: wrap; }
body .header-user-box { font-size: .9rem; border-radius: 10px; }
.header-logout-link { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000; background: white; padding: 12px 18px; color: #123b2c; }
.skip-link:focus { top: 12px; }
body .content-area { min-width: 0; }
body .content-wrapper { padding: clamp(16px, 3vw, 32px); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 3px 15px #173c2910; }
body :is(button, input, select, textarea) { font: inherit; }
body :is(.btn, .button, .link-button, .page-action-button, .btn-small, button[type=submit]) { min-height: 44px; border-radius: 9px; padding: 10px 16px; font-weight: 600; }
body :is(a.btn, a.link-button, a.page-action-button, a.btn-small) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body :is(.btn-primary, .link-button.primary, .page-action-button.primary, .auth-button, .dashboard-search-button) { background: var(--primary); color: white; border-color: var(--primary); }
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), select, textarea) { min-height: 44px; max-width: 100%; border-radius: 8px; }
body :is(input, select, textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body :is(button, a):focus-visible { outline: 3px solid #32865f; outline-offset: 3px; }
body label { line-height: 1.5; }
body button:disabled { opacity: .65; cursor: wait; }
body .top-nav { background: white; border-bottom: 1px solid var(--border); }
body .top-nav-group-menu { background: white; border: 1px solid var(--border); }
body .top-nav-group-menu a { color: #29483a; }
body .top-nav-group-menu a:hover { background: #edf5f0; color: #105035; }
body .top-nav-group-trigger { min-height: 48px; color: #29483a; font-size: .95rem; }
body .top-nav-group-menu a { padding: 12px 16px; white-space: normal; }
body .top-nav-group-menu a.is-current { background: var(--primary-soft); color: #105035; font-weight: 700; }
body .dashboard-hero { background: #eaf3ed; color: #173c2b; border: 1px solid #d2e5d8; }
/* The legacy hero declares its photo background !important. */
body .dashboard-hero-inner { background: #eaf3ed !important; }
body .dashboard-hero-title { font-size: clamp(1.6rem, 4vw, 2.5rem); }
body .dashboard-hero-title span { font: inherit; text-shadow: none; overflow-wrap: anywhere; }
body .dashboard-hero-title, body .dashboard-hero-title span { color: #123b2c; }
body .dashboard-hero-subtitle { color: #405e50; }
body .dashboard-hero-kicker { color: #176747; }
body .dashboard-tile { border-radius: 12px; box-shadow: none; border: 1px solid var(--border); }
body .dashboard-tile-label { font-size: 1rem; }
body .faq-toggle { background: #edf5f0; color: #173c2b; text-shadow: none; }
.psg-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: 10px; margin-block: 16px; }
.psg-table-scroll:focus-visible { outline: 2px solid var(--primary); }
.psg-table-scroll table { margin: 0; min-width: 580px; }
body th { background: #edf3ef; color: #29483a; text-align: left; }
body :is(th, td) { padding: 12px 14px; line-height: 1.5; }
body :is(.alert, .auth-error, .error-message, .success-message) { padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
body :is(.empty-state, .dashboard-whatsnew-empty) { background: #f4f7f5; border: 1px dashed #c5d4ca; border-radius: 10px; padding: 24px; color: #52655d; text-align: center; }
.connection-status { margin: 0; padding: 10px 16px; background: #fff4d6; color: #634400; text-align: center; }
.preview-banner { padding: 10px 16px; background: #fff4d6; color: #634400; text-align: center; }
body .auth-card { border-radius: 16px; box-shadow: 0 12px 40px #173c291a; }
body .auth-title { font-size: 1.65rem; }
body .auth-label, body .auth-footnote { color: #52655d; font-size: .9rem; }
body .auth-password-wrapper .auth-input { width: 100%; padding-right: 90px; }
body .auth-toggle-password { min-height: 44px; min-width: 80px; font-size: .8rem; }
.auth-install { display: block; text-align: center; margin-top: 20px; color: #176747; font-weight: 600; }
@media (max-width: 768px) {
  body .main-container { width: 100%; padding: 12px; }
  body .content-wrapper { width: 100%; margin-bottom: 16px; }
  body .header-flex { padding-block: 10px; }
  body .header-user-box { padding: 0 8px; gap: 10px; }
  body .top-nav { padding: 8px 12px; }
  body .top-nav-toggle { display: flex; min-height: 44px; align-items: center; gap: 10px; width: 100%; background: #edf5f0; color: #123b2c; border: 1px solid var(--border); border-radius: 8px; }
  body .top-nav-menu { display: none; width: 100%; }
  body .top-nav-menu--open { display: flex; flex-direction: column; }
  body .top-nav-group { width: 100%; }
  body .top-nav-group-trigger { width: 100%; text-align: left; }
  body .top-nav-group-menu { position: static; width: 100%; box-shadow: none; display: none; }
  body .top-nav-group.open .top-nav-group-menu { display: block; }
  body .dashboard-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body .dashboard-hero-inner { padding: 20px; }
  body .dashboard-search { flex-wrap: wrap; }
  body .dashboard-search-input-wrap { min-width: 0; width: 100%; }
  body .dashboard-section-header { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  body :is(.table-wrapper, .table-container, .table-wrapper-horizontal) { max-width: 100%; overflow-x: auto; }
  body :is(.wa-modal-panel, .wa-modal__panel, .modal-content, dialog) { max-width: calc(100vw - 24px); max-height: 90dvh; overflow-y: auto; }
  body nav.sidebar { position: static; width: 100%; }
  body .main-container:not(.main-container--no-sidebar) { flex-direction: column; }
  body .auth-wrapper { padding: 16px; }
}
@media (min-width: 901px) { body .top-nav-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
