:root {
  --navy-950: #0b1f3a;
  --navy-900: #102b4e;
  --navy-800: #173b67;
  --navy-100: #e9eff7;
  --ink: #17243a;
  --muted: #67748a;
  --line: #dfe5ec;
  --surface: #ffffff;
  --background: #f4f7fb;
  --green: #16805b;
  --green-soft: #e4f5ee;
  --teal: #0f766e;
  --teal-soft: #e3f4f2;
  --amber: #b96f00;
  --amber-soft: #fff4da;
  --orange: #c45d10;
  --orange-soft: #fff0e5;
  --red: #bd3535;
  --red-soft: #fdeaea;
  --blue: #1d63b7;
  --blue-soft: #e8f2ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 43, 78, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scrollbar-width: thin; scrollbar-color: #a9b5c4 #eef2f6; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef2f6; }
::-webkit-scrollbar-thumb { min-height: 42px; border: 2px solid #eef2f6; border-radius: 999px; background: #a9b5c4; }
::-webkit-scrollbar-thumb:hover { background: #7f8fa3; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--background); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(29, 99, 183, .28); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 28px 18px 18px; background: linear-gradient(180deg, var(--navy-950), #0d2848); color: white; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; z-index: 30; }
.sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(255,255,255,.28); background-clip: padding-box; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.48); background-clip: padding-box; }
.brand, .login-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand { padding: 0 10px 28px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2c8ee8, #18a77c); color: white; font-weight: 850; font-size: 22px; box-shadow: 0 8px 20px rgba(24, 167, 124, .25); }
.brand-company-logo { width: 50px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.brand strong, .login-brand strong { display: block; font-size: 18px; letter-spacing: .12em; }
.brand small, .login-brand small { display: block; font-size: 11px; opacity: .68; letter-spacing: .08em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.68); text-decoration: none; padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.nav-link > span { display: grid; place-items: center; width: 22px; color: #85a3c3; font-size: 18px; }
.nav-link:hover { color: white; background: rgba(255,255,255,.06); }
.nav-link.active { color: white; background: rgba(65, 150, 229, .18); box-shadow: inset 3px 0 #4ca0ee; }
.nav-link.active > span { color: #79c2ff; }
.sidebar-user { margin-top: auto; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 8px 0; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #dceeff; color: var(--navy-900); font-weight: 800; }
.avatar.small { width: 34px; height: 34px; font-size: 13px; }
.sidebar-user strong { font-size: 13px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user small { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.sidebar-user > a { text-decoration: none; color: rgba(255,255,255,.55); font-size: 18px; }
.logout-form { margin: 0; }.logout-form button { border: 0; background: transparent; color: rgba(255,255,255,.55); font-size: 18px; cursor: pointer; padding: 0; }

.main-column { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(22px, 4vw, 50px); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar h1 { font-size: 21px; margin: 2px 0 0; letter-spacing: -.02em; }
.eyebrow { color: var(--blue); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; font-weight: 850; }
.topbar-date { color: var(--muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-button { display: none; border: 0; background: var(--navy-100); color: var(--navy-900); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 34px clamp(22px, 4vw, 50px) 50px; flex: 1; }
.footer { padding: 18px clamp(22px, 4vw, 50px); text-align: right; font-size: 11px; color: #8792a3; border-top: 1px solid var(--line); }

.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.page-intro h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.18; letter-spacing: -.035em; margin: 5px 0 7px; }
.page-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { border: 1px solid transparent; border-radius: 9px; min-height: 40px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--navy-900); box-shadow: 0 7px 16px rgba(16, 43, 78, .16); }
.button-primary:hover { background: var(--navy-800); }
.button-secondary { color: var(--blue); background: var(--blue-soft); border-color: #c9e0fb; }
.button-ghost { color: #526077; background: white; border-color: var(--line); }
.button-success { color: white; background: var(--green); }
.button-danger-ghost { color: var(--red); background: var(--red-soft); }
.button-small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button-block { width: 100%; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 13px; margin-bottom: 20px; }
.report-kpi { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
.kpi-card { min-height: 132px; border-radius: 14px; padding: 19px 18px 16px; display: flex; flex-direction: column; border: 1px solid transparent; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 55px; height: 55px; border-radius: 50%; right: -17px; top: -19px; background: currentColor; opacity: .08; }
.kpi-card span { font-size: 11px; color: var(--muted); font-weight: 720; min-height: 32px; }
.kpi-card strong { font-size: 31px; line-height: 1; letter-spacing: -.04em; margin: 7px 0 9px; }
.kpi-card small { font-size: 10px; opacity: .65; margin-top: auto; }
.kpi-navy { background: var(--navy-100); color: var(--navy-900); border-color: #d5dfec; }
.kpi-green { background: var(--green-soft); color: var(--green); border-color: #cde9dd; }
.kpi-amber { background: var(--amber-soft); color: var(--amber); border-color: #f0dfb3; }
.kpi-red { background: var(--red-soft); color: var(--red); border-color: #f2d2d2; }
.kpi-orange { background: var(--orange-soft); color: var(--orange); border-color: #f4dac7; }
.kpi-teal { background: var(--teal-soft); color: var(--teal); border-color: #c7e7e3; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 20px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.dashboard-grid .panel { margin-bottom: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.02em; }
.panel-heading > a { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.bar-chart { display: grid; gap: 13px; padding-top: 3px; }
.bar-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 36px; align-items: center; gap: 12px; }
.bar-row > a { font-size: 11px; color: #38485f; font-weight: 800; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-row > strong { text-align: right; font-size: 11px; }
.bar-track { height: 12px; background: #eef2f6; border-radius: 20px; display: flex; overflow: hidden; }
.bar-track span { height: 100%; }
.bar-closed { background: var(--green); }
.bar-open { background: #d78b0b; }
.chart-legend { display: flex; justify-content: center; gap: 20px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-green { background: var(--green); }.legend-amber { background: #d78b0b; }
.completion-panel { display: flex; flex-direction: column; }
.donut { --percent: 0; width: 154px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--percent) * 1%), #e8edf2 0); margin: 0 auto 22px; display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; inset: 17px; background: white; border-radius: 50%; }
.donut > div { z-index: 1; text-align: center; }
.donut strong { display: block; font-size: 28px; line-height: 1; }
.donut span { color: var(--muted); font-size: 10px; }
.status-list { border-top: 1px solid var(--line); padding-top: 12px; }
.status-list > div { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; font-size: 11px; }
.status-list span { display: flex; align-items: center; gap: 8px; color: #516078; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }.dot-open { background: #8895a8; }.dot-in_progress { background: #d78b0b; }.dot-submitted { background: var(--blue); }.dot-closed { background: var(--green); }

.table-panel { padding: 0; overflow: hidden; }
.table-panel > .panel-heading { padding: 22px 22px 0; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.table-wrap { scrollbar-width: thin; scrollbar-color: #9eacbd transparent; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { text-align: left; color: #66748a; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; font-weight: 850; background: #f8fafc; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #e9edf2; vertical-align: middle; color: #35445a; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfe; }
.row-overdue { box-shadow: inset 3px 0 var(--red); }
.cell-main { min-width: 270px; max-width: 500px; }
.cell-main strong, .cell-main span { display: block; }
.cell-main strong { color: var(--ink); margin-bottom: 3px; }
.cell-main span { color: var(--muted); line-height: 1.4; }
.stacked { display: block; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.code-pill { display: inline-flex; align-items: center; border-radius: 6px; background: var(--navy-100); color: var(--navy-800); padding: 4px 7px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.table-link { color: var(--blue); font-weight: 750; text-decoration: none; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.actions form { margin: 0; }
.icon-button { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; color: #627086; background: #f0f3f7; cursor: pointer; text-decoration: none; }
.danger-text { color: var(--red); }
.badge { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 8px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.badge-success { color: var(--green); background: var(--green-soft); }.badge-warning { color: var(--amber); background: var(--amber-soft); }.badge-danger { color: var(--red); background: var(--red-soft); }.badge-info { color: var(--blue); background: var(--blue-soft); }.badge-neutral { color: #637087; background: #edf1f5; }

.filter-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; box-shadow: 0 5px 18px rgba(16,43,78,.04); }
.filter-bar label { flex: 0 1 220px; }
.filter-bar .search-field { flex: 1 1 280px; }
.dashboard-filter { display: grid; grid-template-columns: 180px minmax(260px, 1fr) auto; align-items: end; }
.dashboard-filter label { min-width: 0; }
.dashboard-filter-actions { display: flex; gap: 9px; }
.account-grid { align-items: start; }
input, select, textarea { width: 100%; border: 1px solid #cfd7e2; border-radius: 8px; padding: 10px 11px; color: var(--ink); background: white; transition: border .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { border-color: #65a5e2; box-shadow: 0 0 0 3px rgba(29,99,183,.1); outline: 0; }
label { display: block; color: #36455c; font-size: 12px; font-weight: 720; }
label input, label select, label textarea { margin-top: 6px; font-weight: 450; }
label small, .form-help { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; font-weight: 450; }
.form-panel { padding: 0; }
.form-section { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding: 28px; border-bottom: 1px solid var(--line); }
.form-section h3 { margin: 5px 0 5px; font-size: 16px; }
.form-section > div:first-child p { color: var(--muted); font-size: 11px; margin: 0; }
.section-number { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field-full { grid-column: 1 / -1; }
.form-actions { padding: 18px 28px; display: flex; justify-content: flex-end; gap: 9px; background: #fafbfd; border-radius: 0 0 var(--radius) var(--radius); }
.compact-form { padding: 24px; }
.compact-form .panel-heading { margin-bottom: 19px; }
.compact-form .form-actions { margin: 22px -24px -24px; }
.single-column { grid-template-columns: 1fr; }
.alert { padding: 13px 15px; border-radius: 10px; margin: 0 0 18px; font-size: 12px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 19px; }
.alert-error { color: #972929; background: var(--red-soft); border-color: #efcaca; }.alert-warning { color: #8e5800; background: var(--amber-soft); border-color: #efdca9; }.alert-success { color: #116b4b; background: var(--green-soft); border-color: #c6e7d9; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 55px 24px; background: white; border: 1px dashed #cbd5df; border-radius: var(--radius); }
.empty-state h2, .empty-state h3 { margin: 0 0 7px; }.empty-state p { color: var(--muted); margin: 0 0 18px; }
.empty-inline { padding: 25px 18px; text-align: center; color: var(--muted); font-size: 12px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .55fr); gap: 20px; }
.detail-main { position: relative; }
.detail-status { float: right; min-width: 120px; text-align: right; margin: 0 0 20px 20px; }
.detail-status > div { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-bottom: 10px; }
.detail-status strong { display: block; font-size: 15px; }.detail-status small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.overdue-note { color: var(--red); font-size: 9px; font-weight: 750; }
.detail-block { padding: 5px 0 22px; border-bottom: 1px solid var(--line); clear: left; }
.detail-block:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-block p { color: #35445a; line-height: 1.75; margin: 8px 0 0; font-size: 13px; }
.detail-block em, .long-copy em { color: var(--muted); }
.meta-panel h3 { margin: 0 0 15px; font-size: 16px; }
.meta-panel dl { margin: 0; }
.meta-panel dl > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.meta-panel dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.meta-panel dd { margin: 4px 0 0; font-size: 12px; font-weight: 650; }
.status-action { margin-top: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding-bottom: 17px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > span { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); margin-top: 4px; box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline strong { display: block; font-size: 12px; }.timeline small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }

.card-list { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 17px; }
.audit-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.audit-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.audit-card h3 { font-size: 17px; margin: 18px 0 4px; }.audit-card h3 a { text-decoration: none; }.audit-card > p { color: var(--muted); font-size: 11px; margin: 0 0 18px; }
.progress { height: 7px; border-radius: 10px; background: #e9edf2; overflow: hidden; }.progress div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #35a87e); }
.audit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 16px 0; }
.audit-stats span { color: var(--muted); font-size: 9px; text-align: center; border-right: 1px solid var(--line); }.audit-stats span:last-child { border-right: 0; }.audit-stats strong { display: block; color: var(--ink); font-size: 16px; }
.audit-card-actions { display: flex; gap: 7px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 15px; }.audit-card-actions form { margin-left: auto; }
.audit-detail-grid { grid-template-columns: 1.2fr .8fr; }
.inline-form { display: flex; gap: 8px; margin-bottom: 16px; }.inline-form select { flex: 1; }
.member-list > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; }
.member-list strong, .member-list small { display: block; }.member-list strong { font-size: 12px; }.member-list small { color: var(--muted); font-size: 10px; }
.long-copy { margin: 0; color: #435168; font-size: 12px; line-height: 1.75; }
.user-grid { grid-template-columns: 1fr 1fr; }
.security-note { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.security-note > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--navy-100); color: var(--navy-800); font-size: 11px; font-weight: 850; }
.security-note p { margin: 2px 0 0; color: #4d5b71; font-size: 12px; }
.reset-details { position: relative; }.reset-details summary { color: var(--blue); font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }.reset-details summary::-webkit-details-marker { display: none; }
.reset-details[open] form { position: absolute; right: 0; top: 28px; z-index: 5; width: 245px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }.checkbox-field input { width: 17px; height: 17px; margin: 2px 0 0; }
.excel-grid { grid-template-columns: 1fr 1fr; }
.upload-box { min-height: 180px; border: 2px dashed #bfd0e2; border-radius: 13px; background: #f8fbfe; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 24px; cursor: pointer; }
.upload-box input { width: auto; max-width: 100%; margin: 0 0 10px; }.upload-box strong { font-size: 14px; }.upload-box span { color: var(--muted); font-size: 10px; }
.evidence-panel { margin-top: 20px; }
.evidence-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.evidence-upload .upload-box { min-height: 92px; grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
.evidence-upload .upload-box input { grid-row: 1 / 3; margin: 0 12px 0 0; }
.evidence-list { display: grid; }
.evidence-list > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 32px; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.evidence-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.evidence-list strong, .evidence-list small { display: block; }.evidence-list strong { font-size: 12px; overflow-wrap: anywhere; }.evidence-list small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.danger-card { border-color: #f0c9c9; }
.instruction-list { margin: 0; padding-left: 21px; color: #4d5b71; font-size: 12px; }.instruction-list li { padding: 0 0 11px 5px; }

.login-page { min-height: 100vh; background: white; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-panel { padding: clamp(40px, 6vw, 80px); background: linear-gradient(145deg, var(--navy-950), #123b67); color: white; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.login-panel::before, .login-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }.login-panel::before { width: 420px; height: 420px; right: -230px; bottom: -160px; }.login-panel::after { width: 270px; height: 270px; right: -90px; bottom: -75px; }
.login-brand { color: white; }.login-copy { margin: auto 0; max-width: 600px; position: relative; z-index: 1; }.login-copy .eyebrow { color: #69c2ff; }.login-copy h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -.05em; margin: 14px 0 20px; }.login-copy p { color: rgba(255,255,255,.66); max-width: 510px; font-size: 15px; }
.login-decoration { display: flex; gap: 8px; align-items: flex-end; height: 60px; }.login-decoration span { display: block; width: 8px; border-radius: 5px; background: #3aa9ea; }.login-decoration span:nth-child(1) { height: 22px; }.login-decoration span:nth-child(2) { height: 38px; background: #30b58b; }.login-decoration span:nth-child(3) { height: 55px; background: #e8a730; }
.login-form-wrap { display: grid; place-items: center; padding: 35px; }
.login-form { width: min(100%, 410px); display: grid; gap: 18px; }.login-form h2 { font-size: 29px; letter-spacing: -.035em; margin: 5px 0; }.login-form p { color: var(--muted); margin: 0; font-size: 13px; }.login-form .button { min-height: 46px; margin-top: 4px; }

.install-page { min-height: 100vh; padding: 28px 18px 60px; background: linear-gradient(180deg, #eff4fa, #f8fafc); }
.install-shell { width: min(100%, 880px); margin: 0 auto; }.install-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.install-header .login-brand { color: var(--navy-900); }
.install-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: clamp(25px, 5vw, 48px); box-shadow: 0 20px 55px rgba(16,43,78,.1); }.install-title { text-align: center; max-width: 620px; margin: 0 auto 30px; }.install-title h1, .success-card h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.035em; margin: 8px 0; }.install-title p, .success-card > p { color: var(--muted); font-size: 13px; margin: 0; }
.installer-form { display: grid; gap: 25px; }.installer-form fieldset { border: 0; margin: 0; padding: 0; }.installer-form legend { width: 100%; border-bottom: 1px solid var(--line); padding: 0 0 10px; margin-bottom: 17px; font-size: 14px; font-weight: 800; }.installer-form legend span { color: var(--blue); margin-right: 8px; font-size: 10px; }
.success-card { text-align: center; }.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 15px; font-size: 32px; }.credential-box { max-width: 520px; margin: 22px auto; background: #f5f7fa; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }.credential-box strong, .credential-box code { display: block; margin: 4px 0; }.credential-box code { color: var(--navy-900); }
code { background: #f0f3f6; border-radius: 4px; padding: 2px 5px; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1050px) {
  .dashboard-grid, .detail-grid, .audit-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -270px; width: 252px; transition: left .2s ease; box-shadow: 20px 0 40px rgba(9,28,51,.24); }
  .menu-open .sidebar { left: 0; }
  .menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(7,23,42,.45); z-index: 20; }
  body.menu-open { overflow: hidden; }
  .menu-button { display: inline-grid; place-items: center; }
  .topbar { justify-content: flex-start; }.topbar-date { margin-left: auto; }
  .form-section { grid-template-columns: 1fr; gap: 18px; }
  .login-shell { grid-template-columns: 1fr; }.login-panel { min-height: 38vh; padding: 35px; }.login-copy { margin: 55px 0 30px; }.login-copy h1 { font-size: 40px; }.login-decoration { display: none; }
}
@media (max-width: 650px) {
  .content { padding-left: 14px; padding-right: 14px; }.topbar { gap: 10px; padding-left: 14px; padding-right: 14px; }.topbar > div { min-width: 0; }.topbar-date { display: block; max-width: 105px; font-size: 10px; line-height: 1.35; text-align: right; white-space: normal; }
  .page-intro { align-items: flex-start; flex-direction: column; }.page-intro > .button, .page-intro > .button-row { width: 100%; }.page-intro > .button-row .button { flex: 1; }
  .dashboard-filter { grid-template-columns: 1fr; padding: 12px; }
  .dashboard-filter label { width: 100%; }
  .dashboard-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .dashboard-filter-actions .button:only-child { grid-column: 1 / -1; }
  .evidence-upload { grid-template-columns: 1fr; }.evidence-upload .upload-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }.evidence-upload .upload-box input { grid-row: auto; margin: 0 0 8px; }.evidence-list > div { grid-template-columns: 34px minmax(0, 1fr) auto; }.evidence-list > div > form { grid-column: 3; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.kpi-card { min-height: 120px; padding: 15px; }.kpi-card strong { font-size: 27px; }
  .panel { padding: 17px; border-radius: 13px; }.table-panel { padding: 0; }
  .card-list { grid-template-columns: 1fr; }.user-grid { grid-template-columns: 1fr; }
  .excel-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }.field-full { grid-column: auto; }.form-section { padding: 20px; }.form-actions { padding: 15px 20px; }
  .compact-form { padding: 18px; }.compact-form .form-actions { margin: 20px -18px -18px; }
  .inline-form { flex-direction: column; }.audit-card-actions .button { flex: 1; }.audit-card-actions form { margin-left: 0; }
  .detail-status { float: none; text-align: left; display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; }.detail-status > div { justify-content: flex-start; margin: 0; }
  input, select, .button { min-height: 44px; }
  .icon-button, .logout-form button { width: 44px; height: 44px; }
  table { font-size: 13px; } th, .badge { font-size: 10px; }
  .login-form-wrap { padding: 32px 22px; }.login-panel { min-height: auto; padding: 24px 22px; }.login-copy { margin: 28px 0 0; }.login-copy h1 { font-size: 28px; margin: 10px 0 0; }.login-copy p { display: none; }
  .install-header { align-items: flex-start; }.install-header > .badge { margin-top: 8px; }.install-card { padding: 24px 18px; }
}

@media print {
  .sidebar, .topbar, .footer, .no-print, [data-print], .page-intro .button-row { display: none !important; }
  .app-shell { display: block; }.content { padding: 0; max-width: none; }.main-column { display: block; }
  body { background: white; color: black; }.panel, .kpi-card { box-shadow: none; break-inside: avoid; }
  .report-kpi { grid-template-columns: repeat(5, 1fr); }
}

body.modal-open { overflow: hidden; }
.confirm-dialog { width: min(calc(100% - 28px), 470px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: transparent; overflow: visible; }
.confirm-dialog::backdrop { background: rgba(7, 23, 42, .64); backdrop-filter: blur(5px); }
.confirm-dialog[open] { animation: confirm-in .18s ease-out; }
.confirm-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(7, 23, 42, .28); text-align: center; }
.confirm-card::before { content: ""; position: absolute; width: 150px; height: 150px; top: -105px; right: -65px; border-radius: 50%; background: var(--blue-soft); }
.confirm-icon { position: relative; width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; color: var(--blue); background: var(--blue-soft); font-size: 28px; font-weight: 850; box-shadow: inset 0 0 0 1px #c9e0fb; }
.confirm-dialog.is-danger .confirm-icon { color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px #f2d2d2; }
.confirm-eyebrow { display: block; margin-bottom: 7px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.confirm-dialog.is-danger .confirm-eyebrow { color: var(--red); }
.confirm-title { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.035em; }
.confirm-message { margin: 11px auto 0; max-width: 370px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.confirm-actions .button { min-height: 46px; }
.confirm-accept { color: #fff; background: var(--navy-900); box-shadow: 0 8px 20px rgba(16, 43, 78, .18); }
.confirm-accept:hover { background: var(--navy-800); }
.confirm-dialog.is-danger .confirm-accept { background: var(--red); box-shadow: 0 8px 20px rgba(189, 53, 53, .2); }
.confirm-dialog.is-danger .confirm-accept:hover { background: #a92e2e; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.review-queue-panel { margin-bottom: 22px; border-top: 3px solid var(--blue); }
.review-queue-list { display: grid; gap: 8px; }
.review-queue-list > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #f9fbfe; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.review-queue-list > a:hover { border-color: #a8c8eb; transform: translateY(-1px); }
.review-queue-list a > span:first-child { display: grid; gap: 4px; min-width: 0; }
.review-queue-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.review-queue-list small, .review-clear small { color: var(--muted); }
.review-clear { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; color: var(--green); background: var(--green-soft); }
.review-clear > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.review-clear > div { display: grid; gap: 3px; }
.review-clear small { color: #477563; }
.review-panel { margin-top: 22px; border-top: 3px solid var(--blue); }
.review-guidance { margin: -3px 0 20px; max-width: 850px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.feedback-timeline > li > div { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.feedback-timeline > li.activity-auditee_feedback > div, .feedback-timeline > li.activity-auditee_submitted > div { border-left: 4px solid var(--blue); background: #f5f9ff; }
.feedback-timeline > li.activity-review_approved > div { border-left: 4px solid var(--green); background: var(--green-soft); }
.feedback-timeline > li.activity-revision_requested > div { border-left: 4px solid var(--amber); background: var(--amber-soft); }
.activity-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.activity-heading small { color: var(--muted); white-space: nowrap; }
.feedback-timeline p { margin: 8px 0 0; color: var(--ink); font-size: 13px; line-height: 1.65; }

@media (max-width: 640px) {
  .review-queue-list > a { align-items: flex-start; }
  .review-queue-list .badge { flex: 0 0 auto; }
  .activity-heading { display: grid; gap: 3px; }
  .activity-heading small { white-space: normal; }
}
@media (max-width: 480px) {
  .confirm-dialog { width: min(calc(100% - 20px), 470px); }
  .confirm-card { padding: 24px 18px 18px; border-radius: 18px; }
  .confirm-icon { width: 56px; height: 56px; margin-bottom: 15px; }
  .confirm-title { font-size: 21px; }
  .confirm-message { font-size: 13px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .confirm-cancel { order: 2; }
}
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }
