/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #1a2230;
  --muted: #566074;
  --border: #d3d8e0;
  --primary: #1d4ed8;
  --primary-ink: #ffffff;
  --primary-soft: #e3ebff;
  --ok: #166534;
  --ok-soft: #dcf5e4;
  --warn: #8a4b00;
  --warn-soft: #ffeccc;
  --bad: #a11d1d;
  --bad-soft: #fde1e1;
  --info: #0b5a7a;
  --info-soft: #d9f0fa;
  --neutral-soft: #e6e9ef;
  --focus: #b45309;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #171e2d;
    --surface-2: #1f2839;
    --text: #e8ecf4;
    --muted: #a3adc0;
    --border: #2f3a50;
    --primary: #7aa2ff;
    --primary-ink: #0b1220;
    --primary-soft: #1d2b52;
    --ok: #7be0a0;
    --ok-soft: #12361f;
    --warn: #ffc470;
    --warn-soft: #3d2a0a;
    --bad: #ff9c9c;
    --bad-soft: #451515;
    --info: #86d4f2;
    --info-soft: #0d3344;
    --neutral-soft: #263147;
    --focus: #ffb454;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75rem; }
small, .muted { color: var(--muted); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* layout */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); position: -webkit-sticky; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.topbar .spacer { flex: 1 1; }
.nav-toggle { display: inline-flex; }
.sidebar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.5rem; display: none; }
.sidebar.open { display: block; }
.sidebar h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0.75rem 0.5rem 0.25rem; }
.sidebar a { display: block; padding: 0.45rem 0.75rem; border-radius: 6px; color: var(--text); text-decoration: none; }
.sidebar a:hover { background: var(--surface-2); }
.sidebar a[aria-current='page'] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.main { padding: 1rem; max-width: 1280px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .nav-toggle { display: none; }
  .sidebar { display: block; border-bottom: 0; border-right: 1px solid var(--border); min-height: calc(100vh - 53px); }
  .main { padding: 1.5rem; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: 0; color: var(--muted); }
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; grid-gap: 1rem; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 0.75rem; }
.tile { display: block; text-decoration: none; color: var(--text); }
a.tile:hover { border-color: var(--primary); }
.tile .num { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.tile .lbl { color: var(--muted); font-size: 0.85rem; }
.tile.warn .num { color: var(--warn); }
.tile.bad .num { color: var(--bad); }
dl.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; grid-gap: 0.35rem 1rem; gap: 0.35rem 1rem; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; min-height: 36px; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--primary); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.sm { padding: 0.2rem 0.6rem; min-height: 28px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* forms */
.field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.85rem; }
.field > label, .field > .lbl { font-weight: 600; font-size: 0.9rem; }
.field .req { color: var(--bad); }
.field .hint { color: var(--muted); font-size: 0.82rem; }
.field .err { color: var(--bad); font-size: 0.85rem; }
input[type='text'], input[type='search'], input[type='email'], input[type='password'], input[type='number'], input[type='date'], input[type='datetime-local'], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.6rem; width: 100%; min-height: 38px;
}
textarea { min-height: 88px; resize: vertical; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--bad); }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 150px; }
.checklist { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; padding: 0.5rem 0.75rem; color: var(--muted); font-size: 0.85rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { text-align: center; padding: 0.3rem 0.5rem; font-size: 0.85rem; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: -webkit-sticky; position: sticky; left: 0; background: var(--surface); }
.matrix .group td { background: var(--surface-2); font-weight: 700; text-align: left; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--neutral-soft); color: var(--text); white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.neutral { background: var(--neutral-soft); color: var(--muted); }

/* alerts */
.alert { padding: 0.65rem 0.9rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 1rem; }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.alert.info { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.alert ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.banner-imp { background: var(--warn-soft); color: var(--warn); border-bottom: 2px solid var(--warn); padding: 0.4rem 1rem; font-weight: 600; text-align: center; }

/* tabs */
.tabs [role='tablist'] { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); overflow-x: auto; margin-bottom: 1rem; }
.tabs [role='tab'] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.6rem 0.9rem; font: inherit; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs [role='tab'][aria-selected='true'] { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { display: inline-flex; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.88rem; }
.chip[aria-current='true'] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip .n { font-weight: 700; }

/* dialog */
dialog { border: 1px solid var(--border); border-radius: 10px; padding: 0; background: var(--surface); color: var(--text); width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
dialog.wide { width: min(820px, calc(100vw - 2rem)); }
dialog::-webkit-backdrop { background: rgba(10, 15, 25, 0.55); }
dialog::backdrop { background: rgba(10, 15, 25, 0.55); }
.dlg-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); }
.dlg-head h2 { margin: 0; }
.dlg-body { padding: 1.1rem; overflow: auto; max-height: calc(100vh - 12rem); }
.dlg-foot { padding: 0.8rem 1.1rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }

/* progress */
.progress { height: 10px; background: var(--neutral-soft); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ok); }
.progress.due_soon > span { background: var(--warn); }
.progress.breached > span, .progress.breached_closed > span { background: var(--bad); }
.progress.paused > span { background: var(--info); }

/* toasts */
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 200; max-width: min(380px, calc(100vw - 2rem)); }
.toast { padding: 0.7rem 0.9rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); display: flex; gap: 0.75rem; justify-content: space-between; }
.toast.ok { border-color: var(--ok); }
.toast.bad { border-color: var(--bad); }

/* dropzone */
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; background: var(--surface-2); }
.drop.over { border-color: var(--primary); background: var(--primary-soft); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { overflow-wrap: anywhere; padding: 0.6rem 0 0.6rem 1rem; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 0.95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.login { max-width: 420px; margin: 8vh auto; padding: 0 1rem; }
.bell { position: relative; }
.bell .count { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; border-radius: 999px; font-size: 0.7rem; padding: 0 0.35rem; min-width: 1.1rem; text-align: center; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--neutral-soft), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 6px; height: 1rem; margin-bottom: 0.6rem; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

