/* ==========================================================================
   SAP Service Desk — интерфейс
   ========================================================================== */

:root {
  --bg: #eef2f6;
  --bg-2: #e6edf3;
  --surface: #ffffff;
  --ink: #0e1c27;
  --ink-2: #24384a;
  --muted: #627382;
  --line: #dce5ec;
  --line-soft: #eaf0f5;
  --brand: #0c3b52;
  --brand-2: #0f536e;
  --brand-3: #14708f;
  --brand-ink: #e9f5fa;
  --accent: #d48a2f;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok: #0f766e;
  --ok-bg: #e6f5f1;
  --warn: #b45309;
  --warn-bg: #fdf1de;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 28, 39, 0.06), 0 8px 24px -18px rgba(14, 28, 39, 0.28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }

::selection { background: #bfe0ee; }

:focus-visible { outline: 2px solid var(--brand-3); 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;
}

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.text-danger { color: var(--danger); }
.code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--brand-2); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ shell */

.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px 18px;
  color: #dbe9f0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(20, 112, 143, 0.45), transparent 60%),
    linear-gradient(180deg, #0a2c3d 0%, #082331 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 40;
}

.logo { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; }
.logo__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-3), var(--brand-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.logo__icon { width: 22px; height: 22px; }
.logo__text { display: grid; gap: 1px; }
.logo__text strong { font-size: 14.5px; color: #fff; letter-spacing: -0.01em; }
.logo__text small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #86a7b8; }

.nav { display: grid; gap: 2px; }
.nav__item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #b9cfda;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.nav__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav__item.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav__item.is-active::before {
  content: "";
  position: absolute; left: -16px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav__icon { width: 18px; height: 18px; opacity: 0.85; }

.sidebar__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.userbox { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.avatar {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
}
.userbox__text { display: grid; min-width: 0; }
.userbox__text strong { color: #f2f8fb; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox__text small { color: #8fb0c1; font-size: 11px; }

.logout-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: #a9c3d0;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.logout-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  min-height: 70px;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__head { min-width: 0; }
.crumb { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.topbar__sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  cursor: pointer;
}

.content { width: 100%; max-width: 1400px; padding: 26px 30px 64px; }

/* ------------------------------------------------------------------ page head */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-2); font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: #b9c8d4; background: #f7fafc; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn--block { width: 100%; height: 44px; }
.btn svg { flex: none; }

/* ------------------------------------------------------------------ cards + kpi */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.card--flush { padding: 0; }
.card--filters { padding: 16px; }

.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.card__head--pad { padding: 18px 20px; }
.card__title { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.card__hint { font-size: 12px; color: var(--muted); }
.card__link { font-size: 12.5px; font-weight: 600; color: var(--brand-2); }
.card__link:hover { text-decoration: underline; }

.card > .prose,
.card > .meta-list,
.card > .timeline,
.card > .barlist,
.card > .actions,
.card > .comment-form,
.card > form.stack { padding: 18px 20px; }

.card.form-grid { padding: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
  display: grid; gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpi__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kpi__value { font-size: 27px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi__hint { font-size: 12px; color: var(--muted); }
.kpi--alert { border-color: #f0c9c4; background: linear-gradient(180deg, #fff, #fdf5f4); }
.kpi--alert .kpi__value { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 > .card { margin-bottom: 20px; }

/* ------------------------------------------------------------------ tables */

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover td { background: #f9fbfd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { background: #f7fafc; font-weight: 600; border-top: 1px solid var(--line); }
.table--compact td { padding: 9px 14px; }
.table--compact th { padding: 9px 14px; }

.cell-title a { font-weight: 550; color: var(--ink); }
.cell-title a:hover { color: var(--brand-3); }
.cell-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cell-actions { text-align: right; }
.cell-actions form { display: inline; }

/* ------------------------------------------------------------------ pills + chips */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
  background: #eef2f6; color: #40525f;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--new { background: #e8efff; color: #1d4ed8; }
.pill--in_progress { background: var(--warn-bg); color: var(--warn); }
.pill--done { background: var(--ok-bg); color: var(--ok); }
.pill--closed { background: #eceff3; color: #475569; }
.pill--overdue { background: var(--danger-bg); color: var(--danger); }
.pill--p-low { background: #eef2f6; color: #54687a; }
.pill--p-normal { background: #eaf1f7; color: #31556e; }
.pill--p-high { background: var(--warn-bg); color: var(--warn); }
.pill--p-critical { background: var(--danger-bg); color: var(--danger); }

.role { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #eef2f6; color: #3d5262; }
.role--support { background: #e8efff; color: #1d4ed8; }
.role--contractor { background: var(--warn-bg); color: var(--warn); }
.role--customer { background: var(--ok-bg); color: var(--ok); }

/* ------------------------------------------------------------------ forms */

.field { display: grid; gap: 6px; min-width: 0; }
.field label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23627382' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(20, 112, 143, 0.14);
}
.input::placeholder, .textarea::placeholder { color: #9aabb8; }
.hint { font-size: 11.5px; color: var(--muted); }
.readonly { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #f7fafc; color: var(--ink-2); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.stack { display: grid; gap: 12px; }

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(130px, 0.7fr)) repeat(2, minmax(130px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
}
.filters__search { position: relative; min-width: 0; }
.filters__search .input { padding-left: 36px; }
.filters__icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.filters__actions { display: flex; gap: 8px; }
.filters .field { min-width: 0; }

.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert--error { background: var(--danger-bg); color: #8f1d14; border-color: #f3cdc8; }
.alert--ok { background: var(--ok-bg); color: #0b5f56; border-color: #c5e8e0; }

/* ------------------------------------------------------------------ dashboard */

.barlist { display: grid; gap: 14px; }
.barlist__row { display: grid; gap: 6px; }
.barlist__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.barlist__name { font-weight: 550; color: var(--ink-2); }
.barlist__value { color: var(--muted); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.barlist__track { height: 7px; border-radius: 99px; background: #edf2f6; overflow: hidden; }
.barlist__bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); }

.empty { display: grid; place-items: center; gap: 10px; padding: 44px 20px; text-align: center; color: var(--muted); }
.empty__icon { width: 30px; height: 30px; color: #a9bcc9; }
.empty p { margin: 0; font-size: 13.5px; }

/* ------------------------------------------------------------------ ticket detail */

.ticket-flags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.detail-main, .detail-side { min-width: 0; }

.prose { padding: 18px 20px; color: var(--ink-2); white-space: pre-wrap; font-size: 14px; line-height: 1.65; }
.worknote { margin: 0 20px 18px; padding: 12px 14px; background: #f7fafc; border-left: 3px solid var(--brand-3); border-radius: 0 8px 8px 0; }
.worknote span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.worknote p { margin: 0; font-size: 13.5px; }

.actions { display: grid; gap: 14px; }
.actions form { display: grid; gap: 10px; }

.meta-list { display: grid; }
.meta-item { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.meta-item:first-child { padding-top: 0; }
.meta-item:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-item > span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.meta-item > strong { font-size: 13.5px; font-weight: 550; }
.side-assign { padding: 0 20px 18px; }

.timeline { list-style: none; margin: 0; padding: 18px 20px 4px 38px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 18px; }
.timeline__dot { position: absolute; left: -16px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-3); }
.timeline__head { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.timeline__head strong { font-size: 13px; font-weight: 600; }
.timeline__head time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.timeline__who { font-size: 12px; color: var(--muted); margin-top: 1px; }
.timeline__note { margin-top: 6px; font-size: 13px; color: var(--ink-2); background: #f7fafc; border-radius: 7px; padding: 8px 10px; white-space: pre-wrap; }

.comment-form { display: grid; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 16px !important; }
.comment-form .btn { justify-self: start; }

.details summary {
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-2);
  list-style: none;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform 0.2s; }
.details[open] summary::before { transform: rotate(90deg); }
.details summary:hover { background: #f7fafc; }
.details form { padding: 18px 20px; border-top: 1px solid var(--line-soft); }

/* ------------------------------------------------------------------ reports */

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.summary__item {
  display: grid; gap: 4px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.summary__item span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.summary__item strong { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.rep-group { border-bottom: 1px solid var(--line); }
.rep-group:last-child { border-bottom: 0; }
.rep-group__head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px;
  background: #f7fafc;
}
.rep-group__head h3 { font-size: 15px; font-weight: 650; }
.rep-group__head .muted { display: block; font-size: 11.5px; }
.rep-group__nums { text-align: right; display: grid; gap: 2px; }
.rep-group__nums span { font-size: 11.5px; color: var(--muted); }
.rep-group__nums strong { font-size: 14px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ auth */

.auth-body { background: #0a2431; }
.auth { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100vh; }
.auth__brand {
  position: relative;
  display: flex; flex-direction: column; gap: 30px;
  padding: clamp(30px, 5vw, 64px);
  color: #e9f5fa;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(20, 112, 143, 0.55), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(212, 138, 47, 0.18), transparent 60%),
    linear-gradient(160deg, #0b3247 0%, #061c27 100%);
  overflow: hidden;
}
.auth__brand::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}
.auth__brand-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.logo__mark--lg { width: 44px; height: 44px; }
.auth__brand-name { font-weight: 600; letter-spacing: 0.01em; font-size: 15px; }
.auth__brand-org { font-size: 11px; color: #9fc2d3; margin-top: 2px; letter-spacing: 0.02em; }
.auth__brand-badge { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.auth__brand-badge img { width: 38px; height: 38px; object-fit: contain; }
.auth__brand-copy { position: relative; z-index: 1; margin-top: auto; max-width: 480px; }
.auth__brand-copy h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; }
.auth__brand-copy > p { color: #a9c9d8; font-size: 14.5px; line-height: 1.65; max-width: 42ch; }
.brand-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.brand-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #c3dbe6; }
.brand-list .icon { width: 18px; height: 18px; margin-top: 1px; color: #7fb6cd; }
.auth__brand-foot { position: relative; z-index: 1; font-size: 11.5px; letter-spacing: 0.06em; color: #6f95a7; }

.auth__panel { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); background: var(--bg); }
.auth__form { width: min(100%, 380px); display: grid; gap: 16px; }
.auth__logo { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.auth__logo img { width: 56px; height: 56px; object-fit: contain; }
.auth__logo-text { display: grid; gap: 2px; }
.auth__logo-text strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.auth__logo-text span { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.auth__panel-head { margin-bottom: 6px; }
.eyebrow { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 8px; }
.auth__panel-head h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth__panel-head p { font-size: 13px; color: var(--muted); margin: 0; }
.auth__note { font-size: 11.5px; color: var(--muted); text-align: center; margin: 4px 0 0; }

.error-page { display: grid; place-items: center; text-align: center; gap: 10px; padding: 80px 20px; min-height: 60vh; }
.error-page__code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--brand-3); }
.error-page h1 { font-size: 26px; font-weight: 650; }
.error-page .btn { margin-top: 10px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .filters { grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 0.7fr)); }
  .filters__actions { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .shell { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 268px;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }
  .sidebar.is-open { transform: none; }
  .menu-btn { display: inline-flex; }
  .backdrop {
    position: fixed; inset: 0; z-index: 35;
    background: rgba(6, 20, 28, 0.45);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s;
  }
  body.nav-open .backdrop { opacity: 1; visibility: visible; }
  .topbar { padding: 10px 18px; }
  .content { padding: 20px 18px 56px; }
}

@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters__search { grid-column: 1 / -1; }
  .filters__actions { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi__value { font-size: 22px; }
  .summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-head h1 { font-size: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth__brand { min-height: auto; padding: 26px 22px 30px; gap: 18px; }
  .auth__brand-copy { margin-top: 8px; }
  .auth__brand-copy h1 { font-size: 24px; }
  .brand-list { display: none; }
  .auth__brand-foot { display: none; }
  .auth__panel { padding: 28px 20px 48px; }
  .timeline { padding-left: 34px; }
  .rep-group__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .rep-group__nums { text-align: left; }
}

@media (max-width: 460px) {
  .kpis { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .content { padding-inline: 14px; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .sidebar, .topbar, .backdrop, .no-print, .page-head__actions, .card--filters, .crumbs { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .rep-group { break-inside: avoid; }
  .table th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-head { margin-bottom: 10px; }
}
