/* One Roofing — Quotes & Invoices
   Shared styles translating the approved design (navy / orange brand) into
   real, reusable CSS for the server-rendered app. */

:root {
  --navy: #122A4E;
  --navy-mid: #1D3A6B;
  --orange: #F0692C;
  --orange-dark: #D8551E;
  --orange-tint: #FDECE3;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --border: #E4E7EF;
  --border-soft: #EFF1F5;
  --text: #1B2333;
  --text-muted: #6B7280;
  --text-faint: #9AA3B2;
  --green: #1B8A55;
  --green-bg: #E7F7EE;
  --green-border: #BFE6D2;
  --green-bg-soft: #F3FBF7;
  --amber: #A15A00;
  --amber-bg: #FFF6E5;
  --red: #C0392B;
  --red-bg: #FDECEC;
  --slate: #64748B;
  --slate-bg: #EEF0F4;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.font-display {
  font-family: 'Poppins', 'Inter', sans-serif;
}

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

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

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 22px 22px;
}

.sidebar-brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; color: #fff; line-height: 1; }
.sidebar-brand-name span { color: var(--orange); }
.sidebar-brand-caption { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 4px; }

.sidebar-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 22px 18px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 14px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 9px;
  color: rgba(255,255,255,0.62); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.sidebar-nav a:hover { color: #fff; text-decoration: none; }
.sidebar-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav svg { flex-shrink: 0; }

.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 0 22px 24px; }
.sidebar-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-mid); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.42); }
.sidebar-logout { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.42); display: flex; padding: 0; }
.sidebar-logout:hover { color: #fff; }

.main { flex: 1; min-width: 0; padding: 36px 40px; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 20px; flex-wrap: wrap; }
.page-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 25px; color: var(--text); }
.page-subtitle { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px;
  border-radius: 9px; font-size: 13px; font-weight: 600; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(240,105,44,0.25); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--text-muted); border-color: var(--border); }
.btn-outline:hover { color: var(--text); border-color: #C9CFDB; }
.btn-success-outline { background: var(--green-bg-soft); color: var(--green); border-color: var(--green-border); }
.btn-danger-text { background: none; color: var(--red); border: none; }
.btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 9px; border: 1.5px solid var(--border); background: #fff; color: var(--text-muted); }
.btn-sm { height: 32px; font-size: 12.5px; padding: 0 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cards / surfaces ---------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.card + .card { margin-top: 20px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.kpi-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.kpi-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.kpi-value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 23px; color: var(--text); margin-top: 14px; }
.kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Table ---------- */

.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.q-table { width: 100%; border-collapse: collapse; }
.q-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint); padding: 13px 20px; background: #FAFBFC; border-bottom: 1px solid var(--border);
}
.q-table td { padding: 14px 20px; border-bottom: 1px solid var(--border-soft); font-size: 13px; vertical-align: middle; }
.q-table tr:last-child td { border-bottom: none; }
.q-table .num { font-weight: 600; color: var(--text); }
.q-table .muted { color: var(--text-muted); }
.q-table .actions { display: flex; justify-content: flex-end; gap: 12px; color: var(--text-faint); }
.q-table .actions a, .q-table .actions button { display: flex; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
.q-table .actions .accept { color: var(--green); }
.q-table .actions .invoice { color: var(--orange-dark); }

.badge { display: inline-flex; width: fit-content; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.badge-draft { background: var(--slate-bg); color: var(--slate); }
.badge-sent { background: var(--amber-bg); color: var(--amber); }
.badge-accepted { background: var(--green-bg); color: var(--green); }
.badge-declined, .badge-expired { background: var(--red-bg); color: var(--red); }
.badge-unpaid { background: var(--amber-bg); color: var(--amber); }
.badge-paid { background: var(--green-bg); color: var(--green); }
.badge-overdue { background: var(--red-bg); color: var(--red); }

/* ---------- Forms ---------- */

.field { margin-bottom: 16px; }
.field-label { font-size: 12px; font-weight: 600; color: #4B5568; margin-bottom: 6px; display: block; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.input, textarea.input, select.input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 13px;
  font-size: 13px; color: var(--text); background: #fff; font-family: inherit;
}
.input:focus, textarea.input:focus, select.input:focus { outline: none; border-color: var(--orange); }
textarea.input { resize: vertical; min-height: 70px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.line-item-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.line-item-row .input { flex: 1; }
.line-item-remove { color: var(--text-faint); background: none; border: none; cursor: pointer; display: flex; padding: 4px; }
.line-item-remove:hover { color: var(--red); }
.add-line-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); background: none; border: none; cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 0; margin-top: 6px; }

.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-soft); gap: 20px; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.toggle-row-hint { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }

.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; background: #D8DCE5; border-radius: 20px; transition: background 0.15s; cursor: pointer; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left 0.15s; }
.switch input:checked + .switch-track { background: var(--orange); }
.switch input:checked + .switch-track .switch-thumb { left: 18px; }
.switch input:disabled + .switch-track { opacity: 0.5; cursor: not-allowed; }

.radio-pill { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 13px; cursor: pointer; font-size: 13px; color: var(--text-muted); }
.radio-pill.selected { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-dark); font-weight: 600; }

/* ---------- Pricing summary (shared partial) ---------- */

.pricing-summary { border: 1.5px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.pricing-summary.tinted { background: var(--orange-tint); border: none; }
.pricing-summary-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pricing-summary-title { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.pricing-summary-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; color: var(--orange-dark); }
.pricing-row { display: flex; justify-content: space-between; padding-bottom: 11px; font-size: 13.5px; }
.pricing-row .k { color: var(--text-muted); }
.pricing-row .v { font-weight: 600; color: var(--text); }
.pricing-row.subtotal-only { padding-bottom: 0; }
.pricing-divider { border-bottom: 1px dashed var(--border); margin-bottom: 15px; padding-bottom: 15px; }
.pricing-final { display: flex; align-items: center; justify-content: space-between; }
.pricing-final .k { font-size: 14px; font-weight: 700; color: var(--text); }
.pricing-final .v { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); }
.pricing-simple { display: flex; align-items: center; justify-content: space-between; }
.pricing-simple .v { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); }
.pricing-simple .v small { font-size: 14px; font-weight: 500; color: var(--text-muted); }

/* ---------- Document (quote/invoice) look, shared by preview + PDF ---------- */

.doc-canvas { padding: 44px 0; display: flex; justify-content: center; background: #EEF1F6; min-height: 100vh; }
.doc-card { width: 760px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(20,30,60,0.10); overflow: hidden; }
.doc-body { padding: 44px 48px 0; }
.doc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.doc-header-wordmark { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; color: var(--navy); }
.doc-header-company { text-align: right; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.doc-header-company .name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.doc-header-company .contact-line { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; color: #4B5568; }
.doc-rule { height: 2px; background: var(--navy); margin-bottom: 22px; }
.doc-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.doc-title-row .kind { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 30px; color: var(--navy); }
.doc-title-row .number { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; color: var(--orange); }
.doc-ref-line { display: flex; align-items: center; gap: 6px; margin-top: -12px; margin-bottom: 22px; font-size: 12px; color: var(--text-faint); }
.doc-info-panel { background: #F3F6FB; border-radius: 12px; padding: 20px 24px; display: flex; margin-bottom: 22px; }
.doc-info-panel .col { flex: 1; }
.doc-info-panel .divider { width: 1px; background: #D6DDE9; margin: 0 24px; }
.doc-info-panel .client-name { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.doc-info-panel .client-detail { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.doc-info-panel .meta-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.doc-info-panel .meta-row:last-child { margin-bottom: 0; }
.doc-info-panel .meta-k { font-size: 12px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.doc-info-panel .meta-v { font-size: 13px; font-weight: 600; color: var(--text); }
.doc-info-panel .meta-v.warn { color: var(--red); }
.doc-description-bar { background: var(--navy); border-radius: 10px; padding: 13px 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #fff; }
.doc-description-bar span { font-size: 13.5px; font-weight: 600; }
.doc-scope-list { display: flex; flex-direction: column; margin-bottom: 22px; }
.doc-scope-item { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--border); font-size: 13.5px; color: #374151; line-height: 1.55; }
.doc-scope-item:last-child { border-bottom: none; }
.doc-scope-item .dot { color: var(--orange); font-size: 15px; line-height: 1.5; }
.doc-warranty-line { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 22px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.doc-section { margin-bottom: 30px; }
.doc-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.doc-section-body { font-size: 12.5px; color: var(--text-muted); }
.doc-payment-details { background: #F3F6FB; border-radius: 12px; padding: 18px 22px; margin-bottom: 22px; }
.doc-payment-details .title-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.doc-payment-details .title-row span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.doc-payment-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.doc-payment-grid .k { font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.doc-payment-grid .v { font-size: 13px; font-weight: 600; color: var(--text); }
.doc-footer { background: var(--navy); padding: 18px 48px; display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.doc-footer .item { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12.5px; }

.doc-app-bar { height: 68px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.doc-app-bar .left { display: flex; align-items: center; gap: 16px; }
.doc-app-bar .title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.doc-app-bar .right { display: flex; align-items: center; gap: 10px; }

/* ---------- Login ---------- */

.login-shell { display: flex; min-height: 100vh; }
.login-brand { width: 600px; flex-shrink: 0; background: var(--navy); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 56px; color: #fff; }
.login-brand-mark { display: flex; align-items: center; gap: 12px; position: relative; }
.login-brand-mark .name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; }
.login-brand-copy { position: relative; max-width: 420px; }
.login-brand-eyebrow { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.login-brand-headline { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 34px; line-height: 1.3; margin-bottom: 16px; }
.login-brand-sub { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.66); }
.login-brand-footer { position: relative; font-size: 13px; color: rgba(255,255,255,0.42); }
.login-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; }
.login-form { width: 380px; }
.login-form h1 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; color: var(--text); margin: 0 0 8px; }
.login-form .sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.login-error { background: var(--red-bg); color: var(--red); border-radius: 9px; padding: 11px 14px; font-size: 13px; margin-bottom: 18px; }

/* ---------- Settings ---------- */

.settings-layout { display: flex; gap: 24px; }
.settings-tabs { width: 216px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.settings-tabs a { padding: 11px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: #4B5568; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.settings-tabs a:hover { text-decoration: none; background: #FAFBFC; }
.settings-tabs a.active { background: #fff; border: 1.5px solid var(--border); font-weight: 700; color: var(--text); }
.settings-content { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px 32px; }
.settings-content h2 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--text); margin: 0 0 4px; }
.settings-content .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 26px; max-width: 640px; }

.provider-card { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.provider-card .info { display: flex; align-items: center; gap: 14px; }
.provider-card .icon-box { width: 40px; height: 40px; border-radius: 10px; background: #F9FAFC; border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; }
.provider-card .name { font-size: 14px; font-weight: 600; color: var(--text); }
.provider-card .status { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; }
.provider-card .status.connected { color: var(--green); font-weight: 600; }
.provider-card .status.disconnected { color: var(--text-faint); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.callout { display: flex; align-items: flex-start; gap: 12px; background: #F3F6FB; border-radius: 10px; padding: 16px 18px; max-width: 640px; font-size: 12.5px; color: #4B5568; line-height: 1.6; }

.alert-success { background: var(--green-bg); color: var(--green); border-radius: 9px; padding: 11px 14px; font-size: 13px; margin-bottom: 18px; }

/* ---------- Email compose ---------- */

.compose-shell { max-width: 600px; margin: 44px auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.12); overflow: hidden; }
.compose-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--border-soft); }
.compose-header h1 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--text); margin: 0; }
.compose-body { padding: 24px 26px; }
.compose-from { display: flex; align-items: center; gap: 8px; background: var(--green-bg-soft); border: 1px solid var(--green-border); border-radius: 9px; padding: 9px 13px; margin-bottom: 18px; font-size: 12px; color: var(--green); }
.compose-attachment { display: flex; align-items: center; gap: 10px; background: #F9FAFC; border: 1px solid var(--border-soft); border-radius: 9px; padding: 10px 13px; }
.compose-attachment .icon { width: 30px; height: 30px; border-radius: 7px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.compose-attachment .meta { flex: 1; }
.compose-attachment .filename { font-size: 12.5px; font-weight: 600; color: var(--text); }
.compose-attachment .filesize { font-size: 11px; color: var(--text-faint); }
.compose-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 26px; background: #FAFBFC; border-top: 1px solid var(--border-soft); }
.no-account-notice { background: var(--amber-bg); color: var(--amber); border-radius: 9px; padding: 14px 16px; font-size: 13px; margin-bottom: 18px; line-height: 1.6; }

/* ---------- Client-facing view ---------- */

.client-header { height: 72px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.client-brand { display: flex; align-items: center; gap: 9px; }
.client-brand .name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); }
.client-brand .name span { color: var(--orange); }
.client-banner { width: 760px; margin: 40px auto 20px; display: flex; align-items: center; justify-content: space-between; }
.client-banner .for-label { font-size: 12px; color: var(--text-muted); }
.client-banner .for-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); }
.client-valid-chip { display: flex; align-items: center; gap: 7px; background: var(--amber-bg); border-radius: 20px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--amber); }
.client-cta { width: 760px; margin: 32px auto 56px; text-align: center; }
.client-cta h2 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; color: var(--text); margin: 0 0 6px; }
.client-cta p { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.client-cta .buttons { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ---------- Print (PDF) overrides ---------- */

body.print-doc { background: #fff; }
body.print-doc .doc-canvas { padding: 0; background: #fff; min-height: 0; }
body.print-doc .doc-card { box-shadow: none; border-radius: 0; width: auto; }

/* ---------- Small helpers ---------- */

.mt-0 { margin-top: 0; }
.text-right { text-align: right; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
.hidden { display: none; }

@media (max-width: 960px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { flex-direction: column; }
  .settings-tabs { width: 100%; flex-direction: row; overflow-x: auto; }
}
