/* ==========================================================================
   Claim Management System — Design System
   Grounded in the subject: internal ops tool for a telco infrastructure
   company. The signature element is the "signal strip" — a 3-segment meter
   that encodes the real 3-stage approval pipeline (HR -> HOD -> Madam),
   echoing the signal-bar readouts on the company's own equipment.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink:        #12203A;
  --ink-2:      #1C2E4F;
  --ink-3:      #24395E;
  --slate:      #57657A;
  --slate-soft: #8792A3;
  --paper:      #F5F6F4;
  --card:       #FFFFFF;
  --line:       #DFE3E8;
  --line-soft:  #EBEDF0;

  --amber:      #E2993A;
  --amber-soft: #FBF1E1;
  --amber-ink:  #7A4E12;

  --teal:       #1C8C7C;
  --teal-soft:  #E4F3F0;
  --teal-ink:   #0F5148;

  --red:        #C4463B;
  --red-soft:   #FBEAE8;
  --red-ink:    #7A2A23;

  --blue:       #2F6FED;
  --blue-soft:  #EAF1FE;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(18, 32, 58, 0.06), 0 8px 24px -12px rgba(18, 32, 58, 0.12);
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
  color: var(--ink);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   Utility text
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.mono { font-family: var(--font-mono); }
.text-slate { color: var(--slate); }
.text-sm { font-size: 13px; }

/* --------------------------------------------------------------------------
   Auth screens (login / reset) — split panel
   -------------------------------------------------------------------------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 240px; }
}

.auth-brand {
  background: radial-gradient(circle at 15% 15%, var(--ink-3), var(--ink) 65%);
  color: #EDF1F7;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  /* faint route-line grid, evokes network infrastructure diagrams */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(237, 241, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 241, 247, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.brand-mark__bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark__bars span {
  display: block;
  width: 5px;
  background: var(--amber);
  border-radius: 2px;
}
.brand-mark__bars span:nth-child(1) { height: 40%; }
.brand-mark__bars span:nth-child(2) { height: 65%; }
.brand-mark__bars span:nth-child(3) { height: 100%; background: #EDF1F7; }
.brand-mark__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark__name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9FADC4;
  text-transform: uppercase;
  margin-top: 2px;
}

.auth-copy { position: relative; max-width: 380px; }
.auth-copy h1 { color: #fff; font-size: 30px; line-height: 1.2; margin-bottom: 14px; }
.auth-copy p { color: #B7C2D6; font-size: 14.5px; }

.auth-footnote {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #7C8AA6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-footnote .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 140, 124, 0.25);
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-form-wrap { width: 100%; max-width: 360px; }
.auth-form-wrap h2 { font-size: 22px; margin-bottom: 6px; }
.auth-form-wrap .lede { color: var(--slate); font-size: 13.5px; margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-group > label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group .hint { font-size: 12px; color: var(--slate-soft); margin-top: 4px; display: block; }

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
textarea { font-family: var(--font-body); resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
  outline: none;
}
input[readonly] { background: var(--line-soft); color: var(--slate); cursor: not-allowed; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--ink-2); text-decoration: none; }
.btn-approve { background: var(--teal); color: #fff; }
.btn-approve:hover { background: var(--teal-ink); text-decoration: none; }
.btn-reject { background: #fff; color: var(--red); border-color: var(--red); }
.btn-reject:hover { background: var(--red-soft); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-soft); text-decoration: none; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; display: flex; }

.error-message {
  background: var(--red-soft);
  color: var(--red-ink);
  border: 1px solid rgba(196, 70, 59, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
}
.notice {
  background: var(--amber-soft);
  color: var(--amber-ink);
  border: 1px solid rgba(226, 153, 58, 0.3);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   App shell — sidebar + topbar
   -------------------------------------------------------------------------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--ink);
  color: #D9E0EC;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar .brand-mark__name { font-size: 14.5px; }
.sidebar .brand-mark__name small { color: #8493B0; }

.sidebar-section .eyebrow { color: #7080A0; padding: 0 8px; margin-bottom: 8px; display: block; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  color: #C4CDE0;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar-nav a:hover { background: rgba(237, 241, 247, 0.06); text-decoration: none; color: #fff; }
.sidebar-nav a.active { background: rgba(226, 153, 58, 0.14); color: #F3D8AC; }
.sidebar-nav a .tick { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(237, 241, 247, 0.08);
  padding-top: 14px;
}
.sidebar-foot a { color: #93A1BE; font-size: 12.5px; }

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

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar h1 { font-size: 18px; }
.topbar .who { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.role-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--line-soft);
  color: var(--slate);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Notification bell (req #4) — polled live, see assets/js/app.js
   -------------------------------------------------------------------------- */
.notif-bell-wrap { position: relative; }
.notif-bell {
  position: relative;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-bell:hover { background: var(--line); }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 30;
  overflow: hidden;
}
.notif-dropdown.is-open { display: block; }
.notif-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.notif-dropdown__list { max-height: 360px; overflow-y: auto; }
.notif-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.is-unread { background: var(--amber-soft); }
.notif-item .notif-time { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--slate); }

.content { padding: 28px 32px 48px; max-width: 1180px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head h3 { font-size: 16px; }

/* --------------------------------------------------------------------------
   Category sub-form panels
   -------------------------------------------------------------------------- */
.category-fields {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}
.category-fields h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 16px;
}
.category-fields .cat-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: var(--ink);
  color: #fff;
}
.field-row { display: flex; gap: 12px; }
.field-row .form-group { flex: 1; }
.amount-callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.amount-callout label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-soft); margin-bottom: 4px; }
.amount-callout input { font-family: var(--font-mono); font-weight: 600; font-size: 16px; border: none; padding: 2px 0; background: transparent; }
.chip-toggle {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.radio-pill { display: inline-flex; gap: 14px; align-items: center; }
.radio-pill label { font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  background: var(--paper);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink);
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr.row-editing td { background: var(--blue-soft); }
table.data-table .amount { font-family: var(--font-mono); font-weight: 600; }
table.data-table .empty-row td { text-align: center; color: var(--slate-soft); padding: 28px; }

.id-tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); }
.category-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--slate);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Signal strip — the signature status meter.
   3 segments = the 3 approval stages (HR / HOD / Madam). Filled segments
   show progress; amber pulse marks the stage currently pending; red state
   replaces the strip entirely to make a rejection unmistakable.
   -------------------------------------------------------------------------- */
.signal-status { display: inline-flex; flex-direction: column; gap: 5px; }
.signal-strip { display: flex; gap: 3px; }
.signal-strip i {
  display: block;
  width: 16px;
  height: 6px;
  border-radius: 2px;
  background: var(--line);
}
.signal-strip i.on { background: var(--teal); }
.signal-strip i.pending { background: var(--amber); animation: pulse 1.8s ease-in-out infinite; }
.signal-strip.is-rejected i { background: var(--red); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.status-label { font-size: 11.5px; font-weight: 600; }
.status-label.pending { color: var(--amber-ink); }
.status-label.approved { color: var(--teal-ink); }
.status-label.rejected { color: var(--red-ink); }
.status-remark { font-size: 11.5px; color: var(--red-ink); margin-top: 2px; max-width: 220px; }

/* --------------------------------------------------------------------------
   HR valuation / action cells
   -------------------------------------------------------------------------- */
.hr-audit-box {
  background: var(--teal-soft);
  border: 1px solid rgba(28, 140, 124, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.hr-audit-box label { font-size: 11.5px; font-weight: 700; color: var(--teal-ink); text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 6px; }
.hr-audit-box input[type="number"] { width: 100px; padding: 6px 8px; margin-bottom: 8px; }
.action-stack { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.reject-inline { display: flex; gap: 6px; }
.reject-inline input[type="text"] { width: 110px; padding: 6px 8px; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Empty / callouts
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--slate);
}
.empty-state .eyebrow { display: block; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Repeatable entry rows (travel petrol/toll/parking, medical patients)
   -------------------------------------------------------------------------- */
.entry-group { margin-bottom: 16px; }
.entry-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.entry-group__head label { font-weight: 600; font-size: 13px; color: var(--ink); }
.btn-add-row {
  background: var(--card);
  border: 1px dashed var(--slate-soft);
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-add-row:hover { border-color: var(--blue); color: var(--blue); }

.entry-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.entry-row .entry-amount,
.entry-row .entry-qty { font-family: var(--font-mono); }
.entry-row .entry-note { flex: 1; }
.row-remove {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--red);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.row-remove:hover { background: var(--red-soft); border-color: var(--red); }

/* --------------------------------------------------------------------------
   OT AM/PM time picker
   -------------------------------------------------------------------------- */
.time-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}
.time-picker select { padding: 10px 8px; }
.time-picker span { color: var(--slate-soft); font-weight: 600; }

/* --------------------------------------------------------------------------
   Manager dashboard: total banner + category/employee accordion
   -------------------------------------------------------------------------- */
.total-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.total-banner__amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.total-banner__count { font-size: 14px; color: #B7C2D6; font-family: var(--font-mono); }

.accordion-card { padding: 0; overflow: hidden; }
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: none;
  padding: 18px 22px;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, transform 0.12s ease;
}
.accordion-toggle:hover { background: var(--paper); }
.accordion-toggle__left { display: flex; align-items: center; gap: 12px; }
.accordion-toggle__right { display: flex; align-items: center; gap: 12px; }
.accordion-chevron {
  display: inline-block;
  font-size: 10px;
  color: var(--slate-soft);
  transition: transform 0.18s ease;
}
.accordion-toggle.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion-toggle.is-open { background: var(--paper); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
}
.accordion-panel__inner { padding: 4px 22px 18px; }

.accordion-sub {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.accordion-sub:hover { transform: translateY(-1px); box-shadow: 0 4px 14px -8px rgba(18,32,58,0.25); }
.accordion-toggle--sub { padding: 13px 16px; background: transparent; }
.accordion-toggle--sub:hover { background: rgba(18,32,58,0.03); }
.accordion-sub .accordion-panel__inner { padding: 0 14px 14px; }
.accordion-sub .table-wrap { border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   Claim details modal — professional entrance animation
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 32, 58, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 560px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px -12px rgba(18, 32, 58, 0.45);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); opacity: 1; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; }
.modal-close {
  background: var(--line-soft);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 17px;
  color: var(--slate);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { background: var(--red-soft); color: var(--red); }

.modal-body { padding: 20px 22px 24px; overflow-y: auto; }

.modal-amount-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--teal-soft);
  color: var(--teal-ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.modal-amount-banner strong { font-family: var(--font-mono); font-size: 18px; }

.modal-field-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.modal-field-row:last-child { border-bottom: none; }
.modal-field-label { color: var(--slate); flex-shrink: 0; }
.modal-field-value { color: var(--ink); text-align: right; font-weight: 500; }

.modal-subtable { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.modal-subtable table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.modal-subtable th {
  background: var(--paper);
  text-align: left;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-soft);
  border-bottom: 1px solid var(--line);
}
.modal-subtable td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.modal-subtable tr:last-child td { border-bottom: none; }
