:root { color-scheme: light; --navy: #06224a; --navy-end: #082b5c; --blue: #0067d8; --orange: #ff7a00; --ink: #071d3d; --muted: #5f6675; --line: #d8dee8; --paper: #f6faff; --surface: #fff; --danger: #b43a3a; --success: #1fa34a; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.loading { padding: 48px; text-align: center; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 85% 12%, rgb(0 103 216 / 14%), transparent 30%), linear-gradient(135deg, #eef6ff, #f9fbfe); }
.auth-card { width: min(100%, 520px); display: grid; gap: 16px; padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgb(16 43 82 / 12%); }
.brand-mark { display: block; width: 66px; height: 66px; object-fit: contain; }
.brand-mark.small { width: 44px; height: 44px; }
.eyebrow, .nav-heading { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
h2 { color: var(--navy); }
.subtitle { color: var(--muted); line-height: 1.55; }
label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #bac7d5; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgb(0 103 216 / 25%); outline-offset: 2px; border-color: var(--blue); }
.button { min-height: 44px; border: 0; border-radius: 10px; padding: 10px 17px; background: var(--blue); color: #fff; font-weight: 800; }
.button:hover { background: #0055b3; }
.button:disabled { cursor: wait; opacity: .6; }
.button.quiet { border: 1px solid #b8c7d6; background: #fff; color: var(--navy); }
.button.danger { background: var(--danger); }
.button.wide { width: 100%; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(18px, 4vw, 54px); background: linear-gradient(110deg, var(--navy), var(--navy-end)); color: #fff; box-shadow: 0 3px 14px rgb(6 34 74 / 24%); }
.brand, .account { display: flex; align-items: center; gap: 12px; }
.brand strong, .brand span { display: block; }
.brand span, .account { color: #d4e0ed; font-size: 12px; }
.topbar .button.quiet { border-color: #7891aa; background: transparent; color: #fff; }
.staff-shell { width: min(1440px, 100%); min-height: calc(100vh - 72px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 54px); }
.staff-nav { display: grid; align-content: start; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgb(6 34 74 / 7%); }
.nav-button { min-height: 48px; border: 0; border-radius: 10px; padding: 12px 15px; background: transparent; color: var(--navy); text-align: left; font-weight: 800; }
.nav-button.active, .nav-button:hover { background: #eaf3ff; color: var(--blue); }
.nav-button.active { box-shadow: inset 3px 0 var(--orange); }
.nav-note { display: grid; gap: 4px; margin-top: 24px; padding: 15px; border: 1px solid #cbe2d7; border-radius: 12px; background: #eff9f3; color: var(--success); }
.nav-note small { color: var(--muted); }
.staff-content { min-width: 0; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-header h1 { margin-bottom: 4px; }
.page-header .subtitle { margin-bottom: 0; }
.count-pill, .badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 10px; background: #e8eef5; color: var(--navy); font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge.ready { background: #e3f4eb; color: var(--success); }
.badge.danger { background: #fae5e5; color: var(--danger); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-card, .surface { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 22px rgb(6 34 74 / 6%); }
.filter-card { display: grid; grid-template-columns: minmax(220px, 1fr) 150px 170px auto; gap: 12px; align-items: end; margin-bottom: 16px; padding: 16px; }
.company-list { display: grid; gap: 12px; }
.company-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.company-card h2 { margin: 10px 0 4px; font-size: 20px; }
.company-card p { margin-bottom: 5px; }
.company-card small, .field-note, .privacy-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.state { margin: 14px 0; padding: 14px 16px; border: 1px solid #d3dfe9; border-radius: 12px; background: #f6f9fc; line-height: 1.45; }
.state-warning { border-color: #edc7c7; background: #fff4f4; color: #812d2d; }
.state-success { border-color: #bfe0cd; background: #effaf3; color: #185d43; }
.state label { margin-top: 12px; color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: 16px; }
.surface { padding: 22px; }
.surface + .surface { margin-top: 16px; }
.primary-admin-note { display: grid; gap: 4px; margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--orange); border-radius: 10px; background: #fff6ed; color: var(--ink); }
.primary-admin-note strong { color: var(--navy); }
.primary-admin-note small { color: var(--muted); line-height: 1.45; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--ink); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.staff-email { font-weight: 760; overflow-wrap: anywhere; }
.staff-role, .staff-status { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 850; letter-spacing: .035em; }
.staff-role { background: #eaf3ff; color: var(--blue); }
.staff-role.admin { background: #fff0e3; color: #9a4a00; }
.staff-status.active { background: #e8f7ee; color: #177a39; }
.staff-status.inactive { background: #fae5e5; color: var(--danger); }
.detail-sidebar { display: grid; align-content: start; gap: 16px; }
dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.audit-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.audit-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.audit-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.audit-list strong, .audit-list span { display: block; }
.audit-list span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.audit-list p { margin: 4px 0 0; font-size: 12px; }
@media (max-width: 980px) { .staff-shell { grid-template-columns: 1fr; } .staff-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav-heading, .nav-note { grid-column: 1 / -1; } .filter-card { grid-template-columns: 1fr 1fr; } .filter-card label:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .topbar, .page-header, .company-card { align-items: flex-start; flex-direction: column; } .account { width: 100%; justify-content: space-between; } .staff-nav, .filter-card, .form-grid, .detail-grid { grid-template-columns: 1fr; } .filter-card label:first-child, .wide { grid-column: auto; } .auth-card { padding: 26px 20px; } .company-card .button { width: 100%; } .table-wrap { overflow: visible; } table, thead, tbody, tr, th, td { display: block; } thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } tr { padding: 10px 0; border-bottom: 1px solid var(--line); } tbody tr:last-child { border-bottom: 0; } td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; } td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; } td .button { width: 100%; } }
