/* GSHC Registry — official green institutional theme */
:root {
  --green-900: #07351d;
  --green-700: #0b5d33;
  --green-600: #0e7340;
  --green-500: #149354;
  --green-50:  #eaf5ee;
  --gold:      #c8a24a;
  --ink:       #1d2b24;
  --muted:     #6b7d73;
  --line:      #d9e4dc;
  --bg:        #f4f7f5;
  --white:     #ffffff;
  --danger:    #b3261e;
  --ok:        #0e7340;
  --radius:    10px;
  --shadow:    0 1px 3px rgba(7,53,29,.08), 0 4px 16px rgba(7,53,29,.06);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1 { font-size: 1.35rem; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { border: 1px solid transparent; border-radius: 8px; padding: .55rem .9rem; font-size: .9rem;
  cursor: pointer; background: var(--green-50); color: var(--green-700); font-weight: 600; transition: .15s; }
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-600); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--danger { background: #fdeceb; color: var(--danger); }
.btn--small { padding: .3rem .6rem; font-size: .8rem; }
.btn--block { width: 100%; margin-top: .4rem; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center;
  background: radial-gradient(1200px 500px at 50% -10%, var(--green-500), var(--green-900)); padding: 1rem; }
.login__card { background: #fff; border-radius: 16px; padding: 2.2rem 2rem; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; }
.login__crest { font-size: 2.4rem; }
.login__title { font-size: 1.15rem; color: var(--green-900); margin: .5rem 0 .2rem; }
.login__sub { color: var(--muted); font-size: .85rem; margin: 0 0 1.2rem; }
.login__card input { width: 100%; padding: .7rem .8rem; margin-bottom: .7rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .95rem; }
.login__card input:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.login__msg { color: var(--danger); font-size: .82rem; min-height: 1rem; margin: 0 0 .5rem; }
.login__foot { margin-top: 1.2rem; color: var(--muted); font-size: .75rem; letter-spacing: .03em; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: 1fr auto; min-height: 100vh; }
.app-footer { grid-column: 1 / -1; background: var(--green-900); color: #4e8060;
  text-align: center; padding: .45rem 1rem; font-size: .72rem;
  border-top: 1px solid rgba(255,255,255,.07); letter-spacing: .03em; }
.sidebar { background: var(--green-900); color: #dcefe2; display: flex; flex-direction: column; }
.sidebar__brand { display: flex; align-items: center; gap: .5rem; padding: 1.1rem 1.2rem; font-weight: 700;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar__crest { color: var(--gold); font-size: 1.3rem; }
.sidebar__nav { flex: 1; padding: .6rem; overflow-y: auto; }
.nav-item { display: block; width: 100%; text-align: left; background: transparent; border: none; color: #cfe7d8;
  padding: .6rem .8rem; border-radius: 8px; cursor: pointer; font-size: .88rem; margin-bottom: 2px; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.is-active { background: var(--green-600); color: #fff; font-weight: 600; }
.nav-item--settings { margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: .7rem; }
.sidebar__user { padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.sidebar__name { font-weight: 600; color: #fff; font-size: .9rem; }
.sidebar__role { font-size: .78rem; margin-bottom: .5rem; }
.sidebar .muted { color: #9ec3ad; }

.content { padding: 1.6rem 2rem; overflow-y: auto; }
.page-head { margin-bottom: 1.2rem; }
.page-head p { margin: .25rem 0 0; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.form-picker { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .9rem; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--green-50); color: var(--green-900); text-align: left; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .03em; padding: .7rem .9rem; }
.data-table td { padding: .7rem .9rem; border-top: 1px solid var(--line); font-size: .9rem; }
.row-actions { display: flex; gap: .35rem; }

/* ---------- Badges ---------- */
.badge { font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; letter-spacing: .03em; }
.badge--draft { background: #fff4e0; color: #9a6b00; }
.badge--final { background: var(--green-50); color: var(--green-700); }

/* ---------- Forms / modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,53,29,.45); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; z-index: 50; padding: 1rem; }
.modal { background: #fff; border-radius: 14px; width: 100%; min-width: 0; max-width: 620px; max-height: 90vh; display: flex;
  flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal--wide { max-width: 920px; max-height: 95vh; }
.modal__header { padding: 1rem 1.3rem; font-weight: 700; color: var(--green-900); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal__body { padding: 1.2rem 1.3rem; overflow-y: auto; flex: 1; min-height: 0; }
.modal__footer { padding: .9rem 1.3rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .6rem; flex-shrink: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field__label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .9rem; font-family: inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--green-500); border-color: transparent; }

.checks { display: flex; flex-wrap: wrap; gap: .6rem; }
.check { display: flex; align-items: center; gap: .3rem; font-size: .85rem; background: var(--green-50);
  padding: .35rem .6rem; border-radius: 8px; text-transform: capitalize; }

.kv-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.kv__k { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kv__v { font-size: .9rem; }

/* ---------- Tabs (settings) ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; }
.tab { background: none; border: none; padding: .6rem 1rem; cursor: pointer; font-size: .9rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tab.is-active { color: var(--green-700); border-bottom-color: var(--green-700); }
.tab-panel > .btn { margin-bottom: 1rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 10px; font-size: .9rem; z-index: 100; transition: .3s; }
.toast--show { transform: translate(-50%, 0); opacity: 1; }
.toast--success { background: var(--green-700); }
.toast--error { background: var(--danger); }

@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: .2rem; }
}

/* ============================================================
   Form-builder additions: section dividers & help text
   ============================================================ */
.form-section { grid-column: 1 / -1; margin: .6rem 0 .1rem; padding-bottom: .25rem;
  border-bottom: 1px solid var(--line); color: var(--green-700);
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.form-field__help { font-size: .76rem; color: var(--muted); margin-top: .2rem; }

/* ============================================================
   Official court document (preview on screen + print output)
   ============================================================ */
.doc-preview { overflow: auto; background: #e9edea; padding: 16px; border-radius: 8px; min-height: 400px; }
.doc-preview__actions { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: .6rem; }
/* On a phone the page is shrunk to the screen's width (see workflow.fitToScreen). */
.doc-fit { overflow: hidden; margin: 0 auto; }
.court-doc.court-doc--a4 { width: 210mm; max-width: none; transform-origin: top left; }
.doc-zoom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .4rem 0; font-size: .85rem; }

.court-doc {
  background: #fff; color: #000; width: 210mm; max-width: 100%; margin: 0 auto;
  padding: 22mm 20mm; font-family: "Liberation Serif", "Times New Roman", Times, serif;
  font-size: 12.5pt; line-height: 1.5; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  font-variant-numeric: normal; font-feature-settings: "frac" 0, "afrc" 0, "liga" 0, "dlig" 0;
}
/* Justified body — the agreed default for running prose */
.court-doc p { text-align: justify; margin: .55rem 0; }

/* Masthead: seal left · title centre · coat of arms right */
.doc-masthead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.doc-emblem { height: 96px; width: auto; flex: 0 0 auto; }
.doc-titleblock { flex: 1 1 auto; text-align: center; }
.doc-line1 { font-size: 11pt; letter-spacing: .28em; }
.doc-line2 { font-size: 16pt; font-weight: 700; line-height: 1.15; margin: 2px 0; white-space: nowrap; }
.doc-line3 { font-size: 13pt; font-style: italic; }
.doc-rule { border-top: 2px solid var(--green-700); border-bottom: 1px solid var(--green-700);
  height: 3px; margin: 6px 0 14px; }

.doc-formref { text-align: center; font-size: 10.5pt; letter-spacing: .02em; margin-bottom: 8px; }
.doc-title { text-align: center; font-weight: 700; font-size: 14pt; text-decoration: underline;
  text-underline-offset: 3px; margin: 12px 0; }
.doc-caseno { font-weight: 700; margin: 6px 0 10px; }

/* Parties: BETWEEN flush-left, AND alone on its own centred line */
.doc-parties { margin: 10px 0 14px; }
.doc-between { font-weight: 700; }
.doc-party { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.doc-party-name { font-weight: 700; }
.doc-party-role { white-space: nowrap; }
.doc-and { text-align: center; font-weight: 700; margin: 2px 0; }

/* Inline fill lines */
.line { border-bottom: 1px solid #000; padding: 0 5px; display: inline-block; min-height: 1em; font-weight: 600; }
.line.short  { min-width: 48px; }
.line.medium { min-width: 130px; }
.line.long   { min-width: 240px; }
/* A filled detail reads as part of the sentence (still bold); only a blank
   left empty keeps its line, to show it and to fill by hand. */
.line:not(:empty) { border-bottom: none; padding: 0; min-width: 0; }

.doc-fees { display: flex; gap: 26px; flex-wrap: wrap; margin: 8px 0; }
/* Signature blocks: right-aligned, with a full paragraph of breathing room above */
.doc-sign-wrap { display: flex; justify-content: flex-end; margin-top: 52px; margin-bottom: 6px; }
.doc-sign { border-top: 1px solid #000; width: 220px; padding-top: 3px; font-size: 10.5pt; text-align: center; }
.doc-twosign { display: flex; justify-content: space-between; gap: 40px; margin-top: 52px; margin-bottom: 6px; }
.doc-twosign .doc-sign { width: 45%; }
.doc-beforeme { margin-top: 12px; font-style: italic; }
.doc-receipt { border: 1px solid #000; padding: 8px 12px; margin-top: 14px; }
.doc-docsbox { border: 1px solid #000; min-height: 70px; padding: 8px 12px; margin: 8px 0; }
.doc-list { margin: 8px 0 8px 18px; }
.doc-list li { margin: 5px 0; text-align: justify; }
.doc-notice { border: 1px solid #000; padding: 8px 12px; margin-top: 14px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 11pt; }
.doc-table th, .doc-table td { border: 1px solid #000; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px;
  padding-top: 8px; border-top: 1px solid #999; font-size: 9pt; color: #444; }

/* ============================================================
   Print: show ONLY the rendered document
   ============================================================ */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body.is-printing #app,
  body.is-printing .modal-overlay,
  body.is-printing .toast { display: none !important; }
  body.is-printing #print-root { display: block; }
  body.is-printing .court-doc { box-shadow: none; width: auto; margin: 0; }
  /* Slightly tighter spacing in print only, so borderline-length forms
     (e.g. Hearing Notice) don't spill a signature/footer onto a second page. */
  body.is-printing .doc-sign-wrap { margin-top: 30px; }
  body.is-printing .doc-twosign   { margin-top: 30px; }
  body.is-printing .doc-footer    { margin-top: 14px; }
}

/* ============================================================
   Dashboard
   ============================================================ */
.dash { padding: 1.5rem; max-width: 860px; }
.dash-welcome { background: var(--green-700); color: #fff; padding: 1.5rem 2rem;
  border-radius: 12px; margin-bottom: 1.5rem; }
.dash-welcome h1 { margin: 0 0 .3rem; font-size: 1.5rem; }
.dash-welcome p { margin: 0; opacity: .88; font-size: .9rem; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.3rem 1rem; text-align: center; box-shadow: var(--shadow); }
.dash-card__num { font-size: 2.2rem; font-weight: 700; color: var(--green-700); }
.dash-card--warn .dash-card__num { color: #c4831a; }
.dash-card--ok .dash-card__num { color: var(--ok); }
.dash-card__label { font-size: .75rem; color: var(--muted); margin-top: .3rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.dash-section { margin-bottom: 1.5rem; }
.dash-section h2 { font-size: .78rem; font-weight: 700; margin: 0 0 .8rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.dash-forms { display: flex; flex-wrap: wrap; gap: .6rem; }
.dash-form-btn { background: #fff; border: 1px solid var(--line); color: var(--green-700);
  border-radius: 8px; padding: .55rem 1rem; font-size: .85rem; cursor: pointer; font-weight: 600;
  box-shadow: var(--shadow); transition: .15s; }
.dash-form-btn:hover { background: var(--green-50); border-color: var(--green-500); }
.dash-admin { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; box-shadow: var(--shadow); }
.dash-admin__stats p { margin: 0 0 .3rem; font-size: .9rem; color: var(--muted); }
.dash-admin__stats strong { color: var(--ink); font-size: 1.05rem; }

/* ============================================================
   Dashboard — additional class aliases for dashboard.js
   ============================================================ */
.dash-card__icon  { font-size: 1.5rem; margin-bottom: .3rem; }
.dash-card__value { font-size: 2.2rem; font-weight: 700; color: var(--green-700); }
.dash-cards       { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-form-grid   { display: flex; flex-wrap: wrap; gap: .6rem; }
.dash-sub         { opacity: .88; }

/* ── Cause List document styles ── */
.doc-cl-date   { font-size: 11pt; font-weight: 700; margin: 6px 0 2px; }
.doc-cl-judge  { font-size: 11pt; font-weight: 700; margin: 2px 0 10px; }
.doc-cl-table  { font-size: 9.5pt; }
.doc-cl-table th { background: #f0f4f1; font-size: 9pt; }
.doc-cl-table td, .doc-cl-table th { padding: 5px 6px; }
.doc-cl-cert   { margin-top: 14px; font-size: 10.5pt; font-style: italic; }

/* ── Repeater field (cause list case rows) ── */
.repeater { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: .5rem; }
.repeater table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.repeater th    { background: var(--green-50); padding: 5px 7px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; }
.repeater td    { padding: 3px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.repeater td input { width: 100%; border: none; outline: none; background: transparent; font-size: .82rem; padding: 2px 3px; }
.repeater td input:focus { background: var(--green-50); border-radius: 3px; }
.repeater tr:last-child td { border-bottom: none; }
.repeater__actions { padding: .4rem .6rem; display: flex; gap: .5rem; border-top: 1px solid var(--line); background: #fafafa; }

/* ── Repeating table field (type:'table' in ui.form) ── */
.ft-table { width: 100%; border-collapse: collapse; margin-bottom: .5rem; font-size: .82rem; }
.ft-table th { background: var(--green-50); font-weight: 600; padding: 5px 6px;
  border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ft-table td { border: 1px solid var(--line); padding: 3px 4px; vertical-align: middle; }
.ft-sn { width: 36px; text-align: center; }
.ft-inp { width: 100%; border: none; outline: none; background: transparent;
  font-size: .82rem; padding: 2px 4px; font-family: inherit; }
.ft-inp:focus { background: #fffbe6; border-radius: 3px; }
.ft-del { padding: .2rem .4rem !important; font-size: .75rem !important; color: var(--danger) !important; }
.ft-add { margin-top: .4rem; }

/* ── Search / Filter / Sort bar ── */
.filter-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.search-input { flex: 1; min-width: 180px; padding: .45rem .75rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: .88rem; font-family: inherit; outline: none; }
.search-input:focus { border-color: var(--green-500, #1a7a4a); box-shadow: 0 0 0 3px rgba(11,93,51,.1); }
.filter-btns { display: flex; gap: .35rem; }
.filter-btn { background: #fff; border: 1px solid var(--line) !important;
  color: var(--ink) !important; font-size: .8rem !important; padding: .35rem .7rem !important; }
.filter-btn--active { background: var(--green-700) !important; color: #fff !important;
  border-color: var(--green-700) !important; }
.sort-select { padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px;
  font-size: .82rem; font-family: inherit; background: #fff; cursor: pointer; }
.record-count { font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }

/* ── Letter-format output styles ── */
.doc-letter-meta { display: flex; justify-content: space-between; font-size: 10.5pt;
  margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.doc-letter-to { font-size: 11pt; margin: 12px 0; line-height: 1.6; }
.doc-letter-subject { font-size: 11.5pt; margin: 16px 0 12px; text-align: center; }
.doc-letter-para { font-size: 11pt; text-align: justify; margin-bottom: 10px; line-height: 1.65; }
.doc-letter-sign { margin-top: 30px; text-align: right; font-size: 11pt; font-weight: 600; }
.doc-preaciple { margin-top: 14px; padding: 10px 14px; border: 1px solid #ccc;
  background: #fafafa; font-size: 10pt; }

/* ── Admin dashboard additions ── */
.dash-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.dash-link-btn { font-size: .88rem !important; }
.dash-unit-health { display: flex; flex-direction: column; gap: .5rem; }
.dash-health-row { display: grid; grid-template-columns: 220px 160px 1fr; align-items: center; gap: .8rem; font-size: .85rem; }
.dash-health-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-health-counts { color: var(--muted); font-size: .78rem; }
.dash-health-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.dash-health-fill { height: 100%; background: var(--green-200, #c6dece); border-radius: 3px; min-width: 2px; transition: width .3s; }
.dash-health-fill.has-drafts { background: #e6a817; }

/* ── Court Order two-column layout ── */
.co-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.co-left-col { width: 175px; vertical-align: top; padding-right: 16px; font-size: 10.5pt; }
.co-right-col { vertical-align: top; font-size: 11pt; text-align: justify; }
.co-order-title { font-weight: 700; text-decoration: underline; text-align: center;
  font-size: 12pt; margin-bottom: 10px; }
.co-preamble { margin: 0 0 8px; text-align: justify; }
.co-judge-name { font-weight: 700; font-size: 10.5pt; line-height: 1.5; padding-top: 2px; }
.co-it-is-ordered { font-weight: 700; font-size: 11pt; margin-bottom: 6px; padding-top: 2px; }
.co-judge { margin-bottom: 14px; }
.co-judge .doc-sig-img { display: block; max-width: 150px; max-height: 52px; margin: 0 0 2px; }
.co-sig-space { height: 46px; }
.co-items { font-size: 11pt; text-align: justify; }
.co-items ol { padding-left: 20px; margin: 4px 0; }
.co-items li { margin-bottom: 8px; line-height: 1.6; }
.co-closing { font-weight: 700; font-size: 10.5pt; margin-top: 14px; padding-top: 8px;
  border-top: 2px solid #000; text-align: center; }
.co-parties { margin: 8px 0 12px; font-size: 11pt; }
.co-party-row { display: flex; justify-content: space-between; margin: 2px 0; }
.co-party-names { white-space: pre-line; }
.co-party-role { font-weight: 700; padding-left: 16px; white-space: nowrap; align-self: flex-end; }
.doc-cl-judge-name { font-weight: 700; font-size: 11pt; margin: 2px 0 2px 20px; }

/* ============================================================
   Online workflow (Phase 2)
   ============================================================ */
.login__emblem { width: 72px; height: 72px; object-fit: contain; }
.login__msg--info { color: var(--green-700); }
.sidebar__emblem { width: 28px; height: 28px; object-fit: contain; }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.nav-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #7fae93;
  padding: .9rem .8rem .3rem; }
.nav-badge { background: var(--gold); color: var(--green-900); font-size: .7rem; font-weight: 700;
  border-radius: 999px; padding: .05rem .45rem; min-width: 1.3rem; text-align: center; }
.sync-status { font-size: .75rem; padding: .5rem 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.sync-status--online { color: #8fd6aa; }
.sync-status--offline { color: #f4c76b; }

/* Status badges */
.badge--pending  { background: #e8f0fe; color: #1a4fb4; }
.badge--returned { background: #fdeceb; color: var(--danger); }
.badge--revoked  { background: #f1f1f1; color: #555; text-decoration: line-through; }
.badge--offline  { background: #fff4e0; color: #9a6b00; border: 1px dashed #c4831a; }
.badge--new      { background: var(--gold); color: var(--green-900); }

.notice { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; display: flex; gap: .8rem;
  align-items: center; flex-wrap: wrap; font-size: .9rem; }
.notice--warn { background: #fff4e0; color: #6b4a00; border: 1px solid #f1d49a; }
.notice--info { background: #e8f3ec; color: #0b4d2b; border: 1px solid #b9dcc6; align-items: center; flex-wrap: wrap; }
.notice[hidden] { display: none; }
.empty { padding: 1rem 0; }
.toolbar { flex-wrap: wrap; }

/* Cards (My Signature) */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem; box-shadow: var(--shadow); max-width: 760px; }
.card__title { font-size: 1rem; margin: 0 0 .6rem; color: var(--green-900); }
.card__actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.card .form-field { margin-top: .8rem; }
.sig-status { border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; max-width: 760px; font-size: .9rem; }
.sig-status--ok { background: var(--green-50); color: var(--green-700); }
.sig-status--warn { background: #fff4e0; color: #6b4a00; }
.sig-current { margin-bottom: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.sig-current__img { max-width: 260px; max-height: 110px; object-fit: contain; background:
  repeating-linear-gradient(45deg, #fafafa, #fafafa 6px, #f2f2f2 6px, #f2f2f2 12px); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px; }
.sig-pane { margin-top: .8rem; }
.sig-pad { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; background: #fff; border: 2px dashed var(--line);
  border-radius: 10px; touch-action: none; cursor: crosshair; display: block; margin-bottom: .5rem; }

/* Submit dialog */
.signer-box { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
.signer-box__title { font-weight: 700; color: var(--green-900); margin-bottom: .3rem; }
.signer-box__self { color: var(--green-700); margin: .2rem 0; }
.signer-list { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.signer-option { text-transform: none; }
.signer-rule { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.check--plain { text-transform: none; }
.signer-rows { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.signer-row { display: grid; grid-template-columns: 200px 1fr auto; gap: .5rem; }
.signer-row select, .signer-row input { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.settings-group { font-size: .9rem; color: var(--green-700); margin: 1.4rem 0 .5rem; }
.temp-pw { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; letter-spacing: .08em; text-align: center;
  background: var(--green-50); border-radius: 10px; padding: .8rem; margin-top: .6rem; user-select: all; }

/* Document viewer status panel */
.doc-status { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem;
  margin-bottom: .7rem; font-size: .88rem; display: flex; flex-direction: column; gap: .35rem; }
.doc-status__head { display: flex; gap: .7rem; align-items: center; }
.doc-status__note { border-radius: 8px; padding: .5rem .7rem; }
.doc-status__note--warn { background: #fff4e0; }
.doc-status__note--bad { background: #fdeceb; }
.doc-preview__actions { flex-wrap: wrap; }
.history { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }

/* Dashboard */
button.dash-card { cursor: pointer; font: inherit; }
button.dash-card:hover { border-color: var(--green-500); }
.notes { display: flex; flex-direction: column; gap: .4rem; }
.notes__head { display: flex; justify-content: flex-end; margin-bottom: .4rem; }
.note { display: grid; grid-template-columns: 120px 1fr auto; gap: .8rem; align-items: center; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; cursor: pointer; font: inherit; font-size: .88rem; }
.note--unread { border-left: 4px solid var(--gold); font-weight: 600; }
.note__kind { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.note__kind--approved { color: var(--ok); }
.note__kind--returned, .note__kind--revoked { color: var(--danger); }
.note__kind--submitted { color: #1a4fb4; }
.note__time { font-size: .75rem; white-space: nowrap; }

/* Signatures, QR and watermark on the court document */
.doc-sign-block { width: 240px; text-align: center; }
.doc-sign-block .doc-sign { width: 100%; }
.doc-sig-img { display: block; max-width: 200px; max-height: 70px; margin: 0 auto -4px; object-fit: contain; }
.doc-sig-meta { font-size: 8pt; color: #333; line-height: 1.3; margin-top: 2px; }
.doc-sign-wrap .doc-sign-block { margin-top: -30px; }
.doc-signgrid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px 48px; margin-top: 30px; margin-bottom: 6px; }
/* Signed or not, every line sits at the same height, so a row stays level. */
.doc-signgrid .doc-sig-img { height: 70px; }
.doc-signgrid .doc-sig-space { height: 66px; }
.doc-signgrid .doc-sign-block { width: auto; }
.doc-signgrid > .doc-sign-block:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 24px); }
.doc-sign-also { font-size: 9pt; }
.doc-esign { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; margin-top: 24px; }
.doc-verify { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 8px 10px;
  border: 1px solid #999; font-size: 8.5pt; line-height: 1.35; page-break-inside: avoid; }
.doc-qr { width: 25mm; height: 25mm; flex: 0 0 auto; }
.doc-verify__text { overflow-wrap: anywhere; }
.court-doc--marked { position: relative; overflow: hidden; }
.court-doc--marked::before { content: attr(data-watermark); position: absolute; top: 45%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg); font-size: 46pt; font-weight: 700; color: rgba(179, 38, 30, .13);
  white-space: nowrap; pointer-events: none; letter-spacing: .05em; }
@media print {
  body.is-printing .court-doc--marked::before { color: rgba(179, 38, 30, .18); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Phones: tables become stacked cards */
@media (max-width: 720px) {
  .content { padding: 1rem; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-top: 1px solid var(--line); padding: .4rem 0; }
  .data-table td { border: none; padding: .25rem .9rem; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-size: .78rem; }
  .row-actions { flex-wrap: wrap; }
  .note { grid-template-columns: 1fr; gap: .2rem; }
  .signer-row { grid-template-columns: 1fr; }
}
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table-scroll .data-table { box-shadow: none; }
.row-actions { flex-wrap: wrap; }
.filter-btns { flex-wrap: wrap; }
/* Phones: top bar with a menu button; the sidebar slides in as a drawer */
.topbar, .menu-backdrop { display: none; }
@media (max-width: 720px) {
  .shell { grid-template-rows: auto 1fr auto; }
  .topbar { display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 30;
    background: var(--green-900); color: #fff; padding: .55rem .9rem; font-weight: 700; }
  .topbar__menu { position: relative; background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1;
    padding: .25rem .45rem; border-radius: 8px; cursor: pointer; }
  .topbar__menu:focus-visible, .topbar__menu:hover { background: rgba(255,255,255,.12); }
  .topbar__badge { position: absolute; top: -2px; right: -4px; background: var(--gold); color: var(--green-900);
    font-size: .62rem; font-weight: 700; border-radius: 999px; padding: .05rem .35rem; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 85vw; z-index: 50;
    transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.3); }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 45; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* Password show / hide */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 2.6rem !important; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0;
  cursor: pointer; font-size: 1rem; line-height: 1; padding: .3rem; border-radius: 6px; opacity: .7; }
.pw-toggle:hover, .pw-toggle:focus-visible { opacity: 1; background: var(--green-50); }
.login__card .pw-wrap { margin-bottom: .7rem; }
.login__card .pw-wrap > input { margin-bottom: 0; }
.login__link { background: none; border: 0; color: var(--green-700); cursor: pointer; font-size: .85rem;
  margin-top: .8rem; text-decoration: underline; }
.temp-pw-row { display: flex; gap: .5rem; align-items: stretch; margin-top: .6rem; }
.temp-pw-row .temp-pw { flex: 1; margin-top: 0; }
@media (max-width: 720px) {
  .dash { padding: 0; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .dash-card { padding: .9rem .6rem; }
  .dash-card__num { font-size: 1.7rem; }
  .dash-welcome { padding: 1.1rem 1.2rem; }
  .dash-welcome h1 { font-size: 1.2rem; }
}
.alert-switch { margin-left: auto; background: #fff; border: 1px solid var(--line); }

/* Reports */
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.case-head h2 { font-size: 1.15rem; color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0 0 .2rem; }
.case-parties { font-weight: 600; margin-bottom: .2rem; }
.case-picks { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.report-filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.report-filter { display: flex; flex-direction: column; gap: .25rem; }
.report-filter select, .report-filter input { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.report-actions { display: flex; gap: .5rem; margin-left: auto; }
.report-head { margin: 0 0 .8rem; }
.report-total td { font-weight: 700; background: var(--green-50); }
.report-print h3 { font-size: 12pt; margin: 14px 0 4px; }
.report-print .doc-table { font-size: 9.5pt; }
@media (max-width: 720px) { .report-filter { flex: 1 1 45%; } .report-actions { margin-left: 0; width: 100%; } }

/* Compact table cells: a main line and a smaller second line. */
.cell-main { font-weight: 600; }
.cell-sub { font-size: .8rem; color: var(--muted); margin-top: .1rem; overflow-wrap: anywhere; }
.cell-sub--warn { color: #9a5b00; }
.row-actions { white-space: nowrap; }
.action-list { display: flex; flex-direction: column; gap: .7rem; }
.action-item { display: flex; gap: .8rem; align-items: center; }
.action-item .btn { min-width: 160px; flex: none; }
.action-close { display: flex; justify-content: flex-end; margin-top: .4rem; }
@media (max-width: 600px) { .action-item { flex-direction: column; align-items: flex-start; gap: .25rem; } }

/* Process Registry */
/* The court's register book: columns sized to their contents, dates kept
   whole, no Actions column; on phones each case is a two column card. */
.register-table th { text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.25; padding: .6rem .5rem; vertical-align: bottom; }
.register-table td { padding: .55rem .5rem; font-size: .86rem; vertical-align: top; }
.register-table tbody tr:nth-child(even) td { background: #f8faf8; }
.register-table .c-sn { width: 2.6rem; text-align: center; }
.register-table td.c-name { min-width: 9rem; }
.register-table td.c-type { min-width: 6rem; }
.register-table td.c-remark { min-width: 8rem; }
.register-table td.c-suit { white-space: nowrap; }
@media (min-width: 1200px) { .register-table td.c-date { white-space: nowrap; } }
@media (min-width: 721px) and (max-width: 1199px) {
  .register-table th, .register-table td { padding-left: .35rem; padding-right: .35rem; }
  .register-table td { font-size: .82rem; }
  .register-table td.c-name { min-width: 7rem; }
  .register-table td.c-type { min-width: 4.5rem; }
  .register-table td.c-remark { min-width: 6rem; }
  .register-table .reg-remark .btn { white-space: normal; padding: .25rem .45rem; }
}
.reg-pending { color: var(--muted); font-size: .8rem; font-style: italic; }
.reg-remark { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.reg-remark .btn, .register-table td.c-date .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .data-table.register-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; padding: .8rem .9rem; }
  .data-table.register-table td { padding: 0; width: auto; min-width: 0; text-align: left; background: none; white-space: normal; }
  .data-table.register-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; }
  .data-table.register-table tbody tr td { background: none; }
  .data-table.register-table td.c-name { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; }
  .data-table.register-table td.c-remark { grid-column: 1 / -1; }
  .data-table.register-table td.c-sn { grid-column: 1 / -1; }
  .data-table.register-table td.c-sn::before { display: inline; content: "S/No "; }
  .reg-remark { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
/* The invoice: A5, printed for the filer to go and pay. */
.invoice-print { font-size: 10.5pt; }
.invoice-print .doc-emblem { height: 58px; }
.invoice-print .doc-line1 { font-size: 8.5pt; }
.invoice-print .doc-line2 { font-size: 12pt; }
.invoice-print .doc-line3 { font-size: 10pt; }
.invoice-print .doc-table { font-size: 10pt; }
.invoice-print .invoice-title { text-align: center; font-size: 15pt; letter-spacing: .15em; margin: 10px 0 6px; }
.invoice-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.invoice-table .num { text-align: right; white-space: nowrap; }
.invoice-table tfoot th { text-align: right; }
.invoice-table tfoot th.num { text-align: right; }
.invoice-pay { border: 1px solid #000; padding: 6px 8px; margin: 10px 0; white-space: pre-line; }
.invoice-note { margin: 8px 0; font-style: italic; }
.case-no { white-space: nowrap; font-weight: 600; }
.case-no sup { font-size: .7em; }
.case-docs { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.case-docs__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.case-docs__head h3 { margin: 0; font-size: 1rem; }
/* Rows of a table in a form: move up, move down, remove */
.ft-scroll { overflow-x: auto; max-width: 100%; }
.ft-actions { white-space: nowrap; }
.ft-actions .btn { padding: .2rem .45rem; }
/* Filling a form from a case */
.case-chooser { position: relative; margin-bottom: .6rem; }
.case-chooser input { width: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.case-results { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.case-result { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; font: inherit; font-size: .88rem; cursor: pointer; }
.case-result:hover { background: var(--green-50); }
.is-prefilled { background: #fffbe6 !important; border-color: #e0b84a !important; }
/* Register import */
.import-steps { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 0 0 1rem; }
.import-problem { color: var(--danger); font-weight: 600; font-size: .85rem; }
/* Court statistics */
.stats-h { font-size: 1rem; margin: 1.2rem 0 .5rem; color: var(--green-900); }
/* Court diary */
.diary-nav { flex-wrap: wrap; align-items: center; }
.diary-nav input[type=date] { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.diary-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.diary-title { margin: .8rem 0 .4rem; font-size: 1.15rem; color: var(--green-900); }
.diary-day { margin-bottom: 1rem; }
.diary-day h3 { font-size: .95rem; margin: .6rem 0 .4rem; }
.diary-day--empty p { margin: 0; }
.diary-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.diary-month__head { font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; padding: .3rem 0; }
.diary-month__day { min-height: 4.2rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .35rem; text-align: left; display: flex; flex-direction: column; gap: .2rem; cursor: pointer; font: inherit; }
.diary-month__day.is-other { opacity: .45; }
.diary-month__day.is-today { border-color: var(--green-700); box-shadow: inset 0 0 0 1px var(--green-700); }
.diary-month__day.has-cases { background: var(--green-50); }
.diary-month__num { font-weight: 700; font-size: .85rem; }
.diary-month__count { font-size: .72rem; color: var(--green-900); }
.case-pick-wrap { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .6rem; }
.case-pick-wrap input[type=search] { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; }
.case-pick { width: 100%; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; }
.check-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.cl-row { align-items: center; }
.cl-n { width: 1.6rem; color: var(--muted); }
.cl-text { flex: 1; min-width: 0; }
@media (max-width: 720px) { .diary-month__day { min-height: 3rem; padding: .2rem; } .diary-month__count { font-size: .62rem; } .diary-actions { margin-left: 0; width: 100%; } }
.pick-list { max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; margin: .5rem 0; }
.pick-row { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.pick-row:last-child { border-bottom: none; }
.dispatch-sign { width: 40%; height: 2.2em; }
.case-details { margin-top: .8rem; display: grid; gap: .35rem; }
.case-details .btn { margin-left: .5rem; }
.fee-lines { display: flex; flex-direction: column; gap: .4rem; }
.fee-line { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fee-line select { flex: 1 1 220px; min-width: 0; }
.fee-line input { flex: 1 1 120px; min-width: 0; }
.fee-line .fee-qty { flex: 0 0 70px; }
.fee-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.fee-total { font-weight: 700; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.settings-rows { display: flex; flex-direction: column; gap: .4rem; margin: .4rem 0 .8rem; }
.settings-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.settings-row input { flex: 1 1 160px; min-width: 0; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.settings-row input.narrow { flex: 0 0 90px; }

/* The assignment slip: A6 landscape, fixed to the file. */
.case-slip { width: 148mm; height: 105mm; box-sizing: border-box; padding: 8mm 10mm; font-family: "Times New Roman", Times, serif;
  color: #000; background: #fff; display: flex; flex-direction: column; text-align: center; border: 1px dashed #999; }
.slip-court { font-size: 10pt; letter-spacing: .08em; font-weight: 700; }
.slip-label { font-size: 10.5pt; margin-top: 3mm; letter-spacing: .12em; }
.slip-assigned { font-size: 22pt; font-weight: 700; margin-top: 0; }
.slip-suit { font-size: 12.5pt; font-weight: 700; margin-top: 2mm; }
.slip-suit sup { font-size: .7em; }
.slip-parties { font-size: 11pt; margin-top: .5mm; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.slip-date { font-size: 10.5pt; margin-top: 1.5mm; }
.case-slip { break-after: page; page-break-after: always; }
.case-slip:last-child { break-after: auto; page-break-after: auto; }
.slip-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.slip-sign { width: 70mm; font-size: 10pt; }
.slip-sign img { display: block; height: 16mm; max-width: 60mm; margin: 0 auto -2mm; object-fit: contain; }
.slip-line { border-top: 1px solid #000; margin-bottom: 1mm; }
.slip-cap { font-weight: 700; }
.slip-qr { font-size: 7pt; }
.slip-qr img { width: 22mm; height: 22mm; display: block; }
@media print {
  body.is-printing-slip .case-slip { border: none; }
}

/* Anything marked hidden stays hidden, whatever layout its class gives it. */
[hidden] { display: none !important; }
.filter-bar select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
