/* ═══════════════════════════════════════════════════════════════════════════
   NEXUS — Extended UI Components (design.css)
   Clean Light theme — warm amber gold accents
   Fonts: DM Serif Display + DM Sans + DM Mono
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* Token overrides / extensions for pages that only load design.css */
:root {
  --ff:   'DM Sans', 'Helvetica Neue', sans-serif;
  --ff-h: 'DM Serif Display', 'Georgia', serif;
  --fm:   'DM Mono', 'Fira Code', monospace;

  --bg:         #F5F6FA;
  --bg-raised:  #FFFFFF;
  --surface:    #FFFFFF;
  --surface2:   #F0F1F7;
  --surface3:   #E8EAF2;
  --surface4:   #DDE0EE;
  --border:     rgba(0,0,0,.07);
  --border-med: rgba(0,0,0,.10);
  --border-str: rgba(0,0,0,.16);
  --text:       #1A1B23;
  --text-2:     #5A5C72;
  --text-3:     #9A9BAD;
  --gold:       #E8A94B;
  --gold-dk:    #C78A2E;
  --gold-lt:    rgba(232,169,75,.12);
  --gold-glow:  rgba(232,169,75,.22);
  --gold-mid:   rgba(232,169,75,.55);
  --green:      #1A9E6E;
  --green-light:rgba(26,158,110,.10);
  --red:        #D94040;
  --red-light:  rgba(217,64,64,.10);
  --amber:      #C47F10;
  --amber-light:rgba(196,127,16,.10);
  --teal:       #1A8FA8;
  --teal-light: rgba(26,143,168,.10);
  --purple:     #6D4FCF;
  --purple-light:rgba(109,79,207,.10);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.09);
  --r:    10px; --r-sm: 7px; --r-md: 13px; --r-lg: 18px; --r-xl: 26px;
  --transition: .18s ease;

  /* Legacy alias map — allows old code to still work */
  --pri:           var(--gold);
  --pri-dark:      var(--gold-dk);
  --pri-light:     var(--gold-lt);
  --pri-dk:        var(--gold-dk);
  --pri-lt:        var(--gold-lt);
  --pri-glow:      var(--gold-glow);
  --card:          var(--surface);
  --card2:         var(--surface2);
  --bd:            var(--border-med);
  --bd2:           var(--border-str);
  --ink:           var(--text);
  --ink2:          var(--text-2);
  --ink3:          var(--text-3);
  --ink-2:         var(--text-2);
  --ink-3:         var(--text-3);
  --blue:          var(--gold);
  --blue-dark:     var(--gold-dk);
  --blue-light:    var(--gold-lt);
  --blue-mid:      var(--gold-mid);
  --blue-glow:     var(--gold-glow);
  --blue-l:        var(--gold-lt);
  --blue-d:        var(--gold-dk);
  --green-bg:      var(--green-light);
  --red-bg:        var(--red-light);
  --gbg:           var(--green-light);
  --rbg:           var(--red-light);
  --abg:           var(--amber-light);
  --green-l:       var(--green-light);
  --red-l:         var(--red-light);
  --amber-l:       var(--amber-light);
  --purple-l:      var(--purple-light);
  --teal-l:        var(--teal-light);
  --shadow:        0 2px 16px rgba(0,0,0,.10);
  --shadow-card:   0 2px 16px rgba(0,0,0,.10);
  --sh-xs:         var(--shadow);
  --sh-lg:         var(--shadow-lg);
  --sh-xl:         var(--shadow-lg);
  --shadow-xl:     var(--shadow-lg);
  --indigo:        #818CF8;
  --indigo-light:  rgba(129,140,248,.12);
  --coral:         #F07857;
  --coral-light:   rgba(240,120,87,.12);
  --pink:          #E879A0;
  --pink-light:    rgba(232,121,160,.12);
  --nav-h: 0px; --bot-h: 68px;
  --topbar-h: 60px; --sidebar-w: 252px;
  --sp2: 0.375rem; --sp3: 0.625rem; --sp4: 1rem; --sp5: 1.375rem; --sp6: 1.75rem;
  --ts-sm: 0.75rem; --ts-md: 0.92rem; --ts-lg: 1.05rem; --ts-xl: 1.3rem;
  --r-md: 13px;
}

/* ── Reset (safe to re-declare) ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { font-family: var(--ff); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED NAV (tnav) — used by nav.php
══════════════════════════════════════════════════════════════════════════ */
.tnav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px; background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 18px; gap: 3px;
  font-family: var(--ff);
}
.tnav-brand {
  font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none;
  padding: 6px 10px; border-radius: var(--r); margin-right: 4px;
  white-space: nowrap; letter-spacing: -.3px; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px; font-family: var(--ff-h);
}
.tnav-brand:hover { background: var(--surface); }
.tnav-brand-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 3px 10px var(--gold-glow);
}
.tnav-brand-icon svg { fill: #1A1B23; width: 14px; height: 14px; }
.tnav-div { width: 1px; height: 16px; background: var(--border-str); margin: 0 5px; flex-shrink: 0; }
.tnav-a {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--r);
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  text-decoration: none; white-space: nowrap;
  transition: background .14s, color .14s; position: relative; flex-shrink: 0;
}
.tnav-a:hover { background: var(--surface); color: var(--text); }
.tnav-a.on { background: var(--gold-lt); color: var(--gold); font-weight: 600; border: 1px solid rgba(232,169,75,.18); }
.tnav-more {
  display: flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: var(--r); font-size: 12.5px; font-weight: 500; color: var(--text-2);
  cursor: pointer; border: none; background: none; font-family: var(--ff);
  position: relative; flex-shrink: 0; transition: background .14s;
}
.tnav-more:hover { background: var(--surface); color: var(--text); }
.tnav-drop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface); border: 1px solid var(--border-str);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 5px; min-width: 190px; z-index: 300;
}
.tnav-more.open .tnav-drop { display: block; }
.tnav-drop a {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  text-decoration: none; border-radius: var(--r); transition: background .12s;
}
.tnav-drop a:hover { background: var(--surface2); color: var(--text); }
.tnav-drop a.on { color: var(--gold); }
.nbadge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: #fff; border-radius: 99px;
  min-width: 15px; height: 15px; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--bg-raised); line-height: 1;
}
.tnav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tnav-user {
  display: flex; align-items: center; gap: 8px; padding: 4px 9px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--border);
}
.tnav-av {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; color: #1A1B23; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
}
.tnav-info { display: flex; flex-direction: column; }
.tnav-name { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--text); }
.tnav-role { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-family: var(--fm); }
.tnav-out {
  padding: 5px 10px; border-radius: var(--r); font-size: 12px; color: var(--text-3);
  text-decoration: none; transition: color .14s, background .14s;
  border: 1px solid var(--border); background: none; font-family: var(--ff); cursor: pointer;
}
.tnav-out:hover { color: var(--red); border-color: var(--red); background: var(--red-light); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM BAR
══════════════════════════════════════════════════════════════════════════ */
.mob-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(64px + env(safe-area-inset-bottom,0px));
  padding-bottom: env(safe-area-inset-bottom,0px);
  background: var(--bg-raised); border-top: 1px solid var(--border);
}
@media (max-width: 767px) {
  .tnav { padding: 0 14px; }
  .tnav-div, .tnav-a, .tnav-more { display: none !important; }
  .tnav-brand { margin-right: auto; }
  .tnav-user { padding: 4px 7px; gap: 6px; background: transparent; border: none; }
  .tnav-info { display: none; }
  .tnav-av { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
  .tnav-out { border: none; padding: 6px 8px; }
  .mob-bar { display: flex; }
}
.mob-bar-inner { display: grid; grid-template-columns: repeat(5,1fr); width: 100%; align-items: end; padding: 4px 4px 0; }
.mob-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 4px 8px; text-decoration: none;
  color: var(--text-3); transition: color .14s; position: relative;
  border-radius: var(--r); -webkit-tap-highlight-color: transparent;
  cursor: pointer; border: none; background: none; font-family: var(--ff); min-height: 46px;
}
.mob-tab:active { transform: scale(.92); }
.mob-tab.on { color: var(--gold); }
.mob-ico { width: 34px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 1.05rem; transition: background .14s; position: relative; }
.mob-tab.on .mob-ico { background: var(--gold-lt); }
.mob-lbl { font-size: 9.5px; font-weight: 600; letter-spacing: .01em; line-height: 1; }

/* Mobile sheet */
.mob-sheet { display: none; position: fixed; inset: 0; z-index: 500; flex-direction: column; justify-content: flex-end; }
.mob-sheet.open { display: flex; }
.mob-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); animation: msfadeIn .18s ease; }
@keyframes msfadeIn { from { opacity: 0; } to { opacity: 1; } }
.mob-sheet-panel {
  position: relative; z-index: 1; background: var(--surface);
  border-radius: 20px 20px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom,0px));
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-str);
  animation: msSlideUp .22s cubic-bezier(.32,1,.23,1);
}
@keyframes msSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.mob-sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--surface3); margin: 0 auto 16px; }
.mob-sheet-hd { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 12px; padding: 0 4px; font-family: var(--fm); }
.mob-sheet-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 8px; }
.mob-sheet-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 13px; text-decoration: none;
  color: var(--text-2); background: var(--surface2); transition: background .12s;
  -webkit-tap-highlight-color: transparent; cursor: pointer; border: 1px solid var(--border);
  font-family: var(--ff);
}
.mob-sheet-item:active { background: var(--surface3); transform: scale(.95); }
.mob-sheet-item.on { background: var(--gold-lt); color: var(--gold); border-color: rgba(232,169,75,.2); }
.mob-sheet-ico { font-size: 1.3rem; line-height: 1; }
.mob-sheet-lbl { font-size: 10px; font-weight: 600; text-align: center; color: inherit; }
.mob-sheet-signout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 13px; background: var(--red-light);
  color: var(--red); font-size: 14px; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(240,92,92,.2); font-family: var(--ff);
}

/* ══════════════════════════════════════════════════════════════════════════
   SHARED ADMIN PAGE LAYOUT
══════════════════════════════════════════════════════════════════════════ */
.admin-wrap { min-height: 100vh; background: var(--bg); }
.admin-topbar {
  height: 60px; background: var(--bg-raised); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 100; gap: 14px;
}
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--text); font-family: var(--ff-h);
}
.admin-nav { display: flex; gap: 3px; align-items: center; overflow-x: auto; }
.admin-nav a {
  padding: 5px 12px; border-radius: var(--r); font-size: 12.5px; font-weight: 500;
  color: var(--text-2); text-decoration: none; transition: .15s; white-space: nowrap;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--surface); color: var(--text); }
.admin-nav a.active { color: var(--gold); }
.admin-body { max-width: 1100px; margin: 0 auto; width: 100%; padding: 28px 22px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.page-header-text h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.4px; font-family: var(--ff-h); color: var(--text); }
.page-header-text p { font-size: 12.5px; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════════════════
   STAFF TABLE
══════════════════════════════════════════════════════════════════════════ */
.staff-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.staff-table th {
  font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase;
  letter-spacing: .07em; padding: 10px 16px; text-align: left;
  background: var(--surface2); border-bottom: 1px solid var(--border); font-family: var(--fm);
}
.staff-table td { padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.staff-table tr:last-child td { border-bottom: none; }
.staff-table tr:hover td { background: var(--surface2); cursor: pointer; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 32px; height: 32px; border-radius: 9px; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.active-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.active-dot.on  { background: var(--green); }
.active-dot.off { background: var(--text-3); }

/* Role badges */
.role-badge { font-size: 9.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-family: var(--fm); }
.role-badge.superadmin      { background: rgba(167,139,250,.15); color: #A78BFA; border: 1px solid rgba(167,139,250,.2); }
.role-badge.admin           { background: var(--gold-lt); color: var(--gold); border: 1px solid rgba(232,169,75,.2); }
.role-badge.hr              { background: rgba(56,178,200,.12); color: var(--teal); border: 1px solid rgba(56,178,200,.2); }
.role-badge.department_head { background: rgba(240,168,50,.12); color: var(--amber); border: 1px solid rgba(240,168,50,.2); }
.role-badge.staff           { background: rgba(52,199,146,.12); color: var(--green); border: 1px solid rgba(52,199,146,.2); }

/* Designation chips */
.desig-chip { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; display: inline-block; font-family: var(--fm); }
.desig-MD              { background: rgba(167,139,250,.15); color: #A78BFA; }
.desig-CEO             { background: var(--gold-lt); color: var(--gold); }
.desig-COO             { background: rgba(56,178,200,.12); color: var(--teal); }
.desig-CCO             { background: rgba(232,121,160,.12); color: var(--pink); }
.desig-CFO             { background: rgba(52,199,146,.12); color: var(--green); }
.desig-VP              { background: rgba(240,168,50,.12); color: var(--amber); }
.desig-HR              { background: rgba(56,178,200,.12); color: var(--teal); }
.desig-Admin           { background: var(--gold-lt); color: var(--gold); }
.desig-DepartmentHead  { background: rgba(240,168,50,.12); color: var(--amber); }
.desig-TeamLeader      { background: rgba(52,199,146,.12); color: var(--green); }
.desig-TeamMember      { background: var(--surface3); color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED MODAL SYSTEM (design.css pages)
══════════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border-str);
  border-radius: var(--r-xl); padding: 0; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(232,169,75,.05);
}
.modal-sm { max-width: 420px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; margin-bottom: 16px; }
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--ff-h); }
.modal-close { background: var(--surface2); border: none; cursor: pointer; color: var(--text-3); padding: 6px; border-radius: 8px; display: flex; transition: color .15s, background .15s; }
.modal-close:hover { color: var(--red); background: var(--red-light); }
.modal-footer { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); margin-top: 4px; }
.spacer, .sp { flex: 1; }
.field { margin-bottom: 14px; padding: 0 24px; }
.field:first-of-type { padding-top: 4px; }
.field label { display: block; font-size: 11px; font-weight: 700; color: var(--text-3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; font-family: var(--fm); }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-med);
  border-radius: var(--r); font-size: 13px; font-family: var(--ff);
  color: var(--text); background: var(--surface2); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-mid); background: var(--surface3);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field textarea { min-height: 80px; resize: vertical; }
.field select option { background: var(--surface2); color: var(--text); }
.req { color: var(--gold); }

/* Buttons */
.btn-primary {
  padding: 9px 20px; border-radius: var(--r); border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #1A1B23;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dk) 100%);
  font-family: var(--ff); transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 12px var(--gold-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 18px var(--gold-glow); }
.btn-ghost {
  padding: 9px 16px; border-radius: var(--r); border: 1px solid var(--border-str);
  font-size: 13px; font-weight: 600; color: var(--text-2); background: none;
  cursor: pointer; font-family: var(--ff); transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text-3); cursor: pointer; transition: background .15s, color .15s; }
.btn-icon:hover { background: var(--surface3); color: var(--text); }

/* Toasts */
.toast-stack { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast { background: var(--surface2); border: 1px solid var(--border-str); border-radius: var(--r-md); padding: 12px 18px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); color: var(--text); animation: toastSlide .22s cubic-bezier(.34,1.2,.64,1); max-width: 320px; }
.toast.success { background: var(--green-light); border-color: rgba(52,199,146,.3); color: var(--green); }
.toast.error   { background: var(--red-light); border-color: rgba(240,92,92,.3); color: var(--red); }
@keyframes toastSlide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED UTILITIES
══════════════════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-3); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.hidden { display: none !important; }

/* Gold highlight (used for important text/values) */
.text-gold { color: var(--gold); }
.bg-gold   { background: var(--gold-lt); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface4); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE ADMIN PAGES
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .admin-topbar { height: 56px; padding: 0 16px; }
  .admin-nav { gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { font-size: 11px; padding: 5px 8px; }
  .admin-body { padding: 18px 14px; }
  .page-header { margin-bottom: 18px; }
  table { min-width: 600px; }
  .staff-table { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-backdrop .modal { border-radius: 18px 18px 0 0; max-height: 90vh; padding-bottom: calc(16px + env(safe-area-inset-bottom,0px)); }
  .modal-backdrop .modal input, .modal-backdrop .modal select { font-size: 16px !important; }
  .field { padding: 0 18px; }
}
