/* ============================================================
   Sauber Quote — theme tokens
   ============================================================ */
:root {
  --brand: #c01f66;
  --brand-strong: #a21858;
  --brand-soft: #fbeaf1;
  --accent: #7a1fa2;

  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --border: #e4e4ea;
  --text: #1a1a22;
  --text-muted: #6b6b78;
  --shadow: 0 1px 2px rgba(20, 20, 34, .06), 0 8px 24px rgba(20, 20, 34, .05);

  --ok: #1a8a52;   --ok-bg: #e6f5ee;
  --warn: #b8860b; --warn-bg: #fbf2dd;
  --info: #1f6fb8; --info-bg: #e5f0fa;
  --danger: #c0392b; --danger-bg: #fbe9e7;
  --neutral: #6b6b78; --neutral-bg: #ececf0;

  --radius: 12px;
  --radius-sm: 8px;
  --font: "Noto Sans", "Noto Sans Thai", "Noto Sans SC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --brand: #f0509a;
  --brand-strong: #f873ae;
  --brand-soft: #2c1721;
  --accent: #c07de0;

  --bg: #131319;
  --surface: #1c1c25;
  --surface-2: #25252f;
  --border: #34343f;
  --text: #ececf1;
  --text-muted: #9a9aa8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);

  --ok: #4cc38a;   --ok-bg: #16302a;
  --warn: #e0b64a; --warn-bg: #322a15;
  --info: #5aa9e6; --info-bg: #172a3a;
  --danger: #ef6c5c; --danger-bg: #351f1c;
  --neutral: #9a9aa8; --neutral-bg: #2a2a34;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.mono { font-family: var(--mono); }

/* ---------------- buttons & controls ---------------- */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--danger); border-color: transparent; background: transparent; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.field { margin-bottom: 14px; }

/* ---------------- badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.badge.draft   { color: var(--neutral); background: var(--neutral-bg); }
.badge.sent    { color: var(--info); background: var(--info-bg); }
.badge.accepted{ color: var(--ok); background: var(--ok-bg); }
.badge.rejected{ color: var(--danger); background: var(--danger-bg); }
.badge.expired { color: var(--warn); background: var(--warn-bg); }
.badge.role-admin { color: var(--brand); background: var(--brand-soft); }
.badge.role-user  { color: var(--info); background: var(--info-bg); }
.badge.role-guest { color: var(--neutral); background: var(--neutral-bg); }

/* ---------------- login ---------------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.login-tagline { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.login-error { color: var(--danger); font-size: 13px; margin-top: 4px; min-height: 18px; }
.login-hint {
  margin-top: 18px; font-size: 11.5px; color: var(--text-muted);
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px;
}

/* ---------------- attachments ---------------- */
.muted-sm { color: var(--text-muted); font-size: 13px; }
.attach-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.attach-row:last-child { border-bottom: none; }
.attach-icon { color: var(--text-muted); display: inline-flex; }
.attach-name { flex: 1; text-align: left; }
.attach-size { color: var(--text-muted); font-size: 12px; }
.link-btn { background: none; border: none; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* ---------------- conditions multi-select ---------------- */
.field-hint { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11.5px; }
.user-chip.clickable { cursor: pointer; border-radius: 8px; transition: background 0.15s ease; }
.user-chip.clickable:hover { background: var(--surface-hover, rgba(0,0,0,0.04)); }
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
  font-size: 13.5px; line-height: 1.4; font-weight: 400;
}
.check-item input[type="checkbox"] {
  width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--brand); cursor: pointer;
}
.cond-list { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cond-list li { line-height: 1.5; }

/* ---------------- version badge ---------------- */
.version-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em;
  color: var(--text-muted); cursor: pointer; user-select: none;
  transition: color 0.15s ease;
}
.version-badge:hover { color: var(--brand); text-decoration: underline; }
.version-badge:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
/* centered under the language switcher on the login card */
.login-card .version-badge { text-align: center; margin-top: 14px; }
/* subtle, left-aligned in the sidebar footer */
.sidebar .version-badge { padding: 8px 8px 0; }

/* ---------------- release notes ---------------- */
.release-modal { max-width: 460px; }
.release-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.release-item { border-left: 2px solid var(--brand); padding-left: 14px; }
.release-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.release-ver {
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--brand);
}
.release-date { font-size: 11.5px; color: var(--text-muted); }
.release-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.release-notes li { font-size: 13px; line-height: 1.5; color: var(--text); }

/* ---------------- logo mark ---------------- */
.logo {
  height: 34px; width: auto; flex: none;
  object-fit: contain; display: block;
}
/* larger logo for the login card */
.logo-lg { height: 52px; }

/* ---------------- app shell ---------------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.sidebar .brand b { font-size: 15px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 600;
  cursor: pointer; transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); }
.nav-item svg { flex: none; }
.nav-spacer { flex: 1; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 17px; }
.topbar .spacer { flex: 1; }
.content { padding: 24px; max-width: 1120px; width: 100%; margin: 0 auto; }

/* language switcher + theme + user */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font: inherit; color: var(--text);
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden; min-width: 160px; z-index: 40;
}
.lang-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 12px; background: none; border: none; color: var(--text);
  font: inherit; cursor: pointer;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.active { color: var(--brand); font-weight: 700; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }

.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.user-chip .meta { line-height: 1.2; }
.user-chip .meta small { color: var(--text-muted); font-size: 11.5px; }

/* ---------------- cards & tables ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; }
.page-head .spacer { flex: 1; }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.toolbar .search { max-width: 340px; }

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); font-weight: 700; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.empty { padding: 48px; text-align: center; color: var(--text-muted); }

/* ---------------- editor ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); margin: 4px 0 12px;
}
.items-table td, .items-table th { padding: 8px; }
.items-table input { padding: 7px 9px; }
.totals { margin-left: auto; max-width: 320px; margin-top: 16px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .row.total {
  border-top: 2px solid var(--brand); margin-top: 6px; padding-top: 10px;
  font-size: 17px; font-weight: 700; color: var(--brand);
}
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------------- preview ---------------- */
.preview { max-width: 800px; margin: 0 auto; }
.preview .doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
/* Logo height tracks the text block (company name + address lines), so it scales
   with the number of lines in either Thai or English. The logo is positioned
   absolutely inside a box that stretches to the text height, so it never drives
   the header height itself. */
.preview .doc-company { display: flex; align-items: stretch; gap: 14px; }
.preview .doc-logo-box { flex: none; position: relative; width: 108px; }
.preview .doc-logo { position: absolute; inset: 0; height: 100%; width: 100%;
  object-fit: contain; object-position: left center; }
.preview .company-name { font-size: 22px; color: var(--brand); font-weight: 800; line-height: 1.2; }
.preview .company-address { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; max-width: 380px; }
.preview .doc-title { font-size: 15px; letter-spacing: .1em; color: var(--text-muted); }
.preview .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow); z-index: 100;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { background: var(--danger); color: #fff; }

/* ---------------- modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60;
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 480px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; max-height: 90vh; overflow: auto;
}
.modal h3 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 50; width: 256px; left: 0; top: 0;
    transform: translateX(-100%); transition: transform .2s;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .grid-2, .preview .parties { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .menu-toggle { display: grid !important; }
  .items-table { display: block; overflow-x: auto; }
}
.menu-toggle { display: none; }

/* accessibility */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Billing documents, projects & costs (v1.11.0)
   ============================================================ */
.check-item input[type="radio"] { width: auto; margin: 0; accent-color: var(--brand); }
.check-item input[type="number"] { padding: 5px 8px; }
.badge-row { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.muted { color: var(--text-muted); }
.pre { white-space: pre-wrap; }
.hint {
  font-size: 13px; color: var(--info); background: var(--info-bg);
  border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 14px; line-height: 1.5;
}
.banner {
  font-size: 13px; font-weight: 600; color: var(--neutral); background: var(--neutral-bg);
  border-radius: var(--radius-sm); padding: 9px 14px; margin-bottom: 14px;
}
.banner.danger { color: var(--danger); background: var(--danger-bg); }
.preview.is-cancelled { opacity: .72; }
tr.row-muted td { color: var(--text-muted); }
tr.clickable { cursor: pointer; }
td.pos, .kpi.pos .kpi-value { color: var(--ok); }
td.neg, .kpi.neg .kpi-value { color: var(--danger); }
.kpi.warn .kpi-value { color: var(--warn); }

/* quotation billing card */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.stat-row small { display: block; color: var(--text-muted); font-size: 12px; }
.stat-row b { font-size: 15px; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.chip-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.doc-chip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.doc-chip > .mono.muted-sm:last-child { margin-left: auto; }

/* project P&L */
.project-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.project-head h1 { font-size: 22px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.kpi small { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.kpi-value { font-size: 19px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; }
.kpi-hint { color: var(--text-muted); font-size: 11.5px; margin-top: 4px; line-height: 1.4; }
.project-grid { grid-template-columns: 2fr 3fr; margin-bottom: 16px; align-items: start; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar-value { font-size: 12.5px; }
@media (max-width: 860px) {
  .project-grid, .stat-row { grid-template-columns: 1fr; }
  .project-head { flex-direction: column; }
}
td.num.mono, .totals .mono, .doc-chip .mono { white-space: nowrap; }
.project-grid { grid-template-columns: 1fr 1fr; }

/* ============================================================
   Purchase orders & vendors (v1.12.0)
   ============================================================ */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--brand-soft, var(--neutral-bg)); color: var(--brand); border-color: var(--brand); font-weight: 600; }
.nav-item { position: relative; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mini-progress { height: 4px; width: 80px; background: var(--surface-2); border-radius: 999px; margin-top: 5px; overflow: hidden; }
.mini-progress > span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.banner.warn { color: var(--warn); background: var(--warn-bg, var(--neutral-bg)); }
.modal.modal-wide { max-width: 760px; width: 100%; }
.modal .items-table input { padding: 5px 8px; }
.toolbar .spacer { flex: 1; }

/* attachments: uploader + date (v1.14.0) */
.attach-meta { font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .attach-meta { display: none; } }

/* ---------------- v1.15: grouped sidebar ---------------- */
.sidebar { overflow-y: auto; gap: 2px; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-head {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin-top: 4px;
  border-radius: var(--radius-sm); color: var(--text); font-weight: 700; font-size: 13.5px;
  cursor: pointer; user-select: none; transition: background .12s;
}
.nav-group-head:hover { background: var(--surface-2); }
.nav-group-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.nav-group-head.has-active { color: var(--brand); }
.nav-group-head svg { flex: none; }
.nav-group-head .chev { margin-left: auto; transition: transform .15s; opacity: .6; }
.nav-group-head .nav-badge + .chev { margin-left: 6px; }
.nav-group.open .nav-group-head .chev { transform: rotate(90deg); }
.nav-group-items { display: none; flex-direction: column; gap: 2px; margin: 2px 0 4px 14px;
  padding-left: 8px; border-left: 1px solid var(--border); }
.nav-group.open .nav-group-items { display: flex; }
.nav-item.nav-sub { padding: 8px 10px; font-size: 13.5px; gap: 9px; }
.nav-item.nav-sub svg { width: 16px; height: 16px; }
.nav-badge.warn { background: var(--warn); }
.kv-big { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px;
  margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.kv-big b { font-size: 18px; }

/* ---------------- v1.17: email gateway settings ---------------- */
.provider-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.provider-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .12s, background .12s; }
.provider-tile:hover { border-color: var(--brand); }
.provider-tile.selected { border-color: var(--brand); background: var(--brand-soft); }
.provider-tile input { margin-top: 3px; accent-color: var(--brand); }
.provider-name { font-weight: 700; margin-bottom: 2px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin: -4px 0 12px; cursor: pointer; }
details.adv { margin-top: 4px; }
details.adv > summary { cursor: pointer; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.banner.ok { color: var(--ok); background: var(--ok-bg); }
.provider-tile input[type=radio], .check-row input[type=checkbox] { width: auto; flex: none; margin: 0; padding: 0; }
.provider-tile input[type=radio] { margin-top: 4px; }
.provider-tile > div { flex: 1; min-width: 0; text-align: left; }
.check-row span { flex: 1; }

/* ---------------- v1.19: sign-in code ---------------- */
.otp-title { font-size: 18px; font-weight: 700; margin: 4px 0 6px; text-align: center; }
.login-card .login-tagline b { color: var(--text); }
.otp-input { width: 100%; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: 12px;
  padding: 12px 8px 12px 20px; font-family: var(--font-mono, ui-monospace, monospace); }
.otp-input::placeholder { letter-spacing: 12px; color: var(--text-muted); opacity: .5; }
.otp-timer { text-align: center; font-size: 13px; color: var(--text-muted); margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.otp-timer.soon { color: var(--warn); font-weight: 600; }
.otp-timer.expired { color: var(--danger); font-weight: 600; }

/* ---------------- v1.19.1: company wordmark ---------------- */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { height: 40px; width: auto; display: block; }
.brand-logo .brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo .brand-logo-dark { display: block; }
.brand-logo-lg img { height: 60px; max-width: 100%; }
.sidebar .brand { padding: 4px 8px 18px; }
.login-brand { margin-bottom: 26px; }
