
:root {
  --bg: #F6F8F5; --primary: #1F7A4D; --primary-dark: #145537; --primary-light: #E8F2EC;
  --accent: #C0683C; --accent-light: #FBEFE7; --ink: #1A2620; --muted: #6B7770;
  --border: #E3EBE5; --border-strong: #CDD8D0; --card-bg: #fff; --surface: #F0F5F1;
  --amber: #B8860B; --amber-light: #FEF3D6; --red: #B3432C; --red-light: #FDEEE9;
  --blue: #2B6CB0; --blue-light: #E4EEF8;
  --grad-header: linear-gradient(135deg, #1F7A4D 0%, #145537 100%);
  --grad-soft: linear-gradient(135deg, #E8F2EC 0%, #F6F8F5 100%);
  --grad-accent: linear-gradient(135deg, #2E8B57 0%, #1F7A4D 100%);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.display-font { font-family: 'Fraunces', Georgia, serif; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd8d0; border-radius: 4px; }
input, select, textarea, button { font-family: inherit; }
input, select, textarea { width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border-strong); font-size: 13.5px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,122,77,0.12); }
input:disabled, select:disabled { background: var(--surface); color: var(--muted); }
button { cursor: pointer; }
.btn-primary { background: var(--grad-accent); color: #fff; border: none; border-radius: 10px; padding: 10px 17px; font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(31,122,77,0.2); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(31,122,77,0.28); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 17px; font-size: 13.5px; font-weight: 600; }
.btn-secondary:hover { background: var(--surface); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #F0C5AE; border-radius: 10px; padding: 10px 17px; font-size: 13.5px; font-weight: 600; }
.btn-danger:hover { background: var(--red-light); }
.btn-whatsapp { background: linear-gradient(135deg, #25D366 0%, #1da851 100%); color: #fff; border: none; box-shadow: 0 2px 8px rgba(37,211,102,0.3); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-xs { padding: 5px 9px; font-size: 11px; border-radius: 7px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 216px; background: var(--grad-header); color: #fff; padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.sidebar-header { padding: 2px 8px 16px; display: flex; align-items: center; gap: 10px; }
.sidebar-logo { width: 36px; height: 36px; background: #fff; border-radius: 10px; padding: 4px; flex-shrink: 0; object-fit: contain; }
.sidebar-clinic-name { font-size: 13px; font-weight: 700; line-height: 1.2; margin: 0; color: #fff; }
.sidebar-tagline { font-size: 8.5px; opacity: .78; margin-top: 3px; letter-spacing: .3px; color: #fff; }
.sidebar-links { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; border: none; background: transparent; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; text-align: left; width: 100%; position: relative; }
.nav-link:hover { background: rgba(255,255,255,0.09); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.16); color: #fff; font-weight: 600; }
.nav-link.active::before { content:''; position:absolute; left:-10px; top:50%; transform:translateY(-50%); width:3px; height:16px; background:#fff; border-radius:0 3px 3px 0; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; display:flex; align-items:center; justify-content:center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 20px; }
.nav-fab-wrap { padding: 4px 10px 14px; }
.nav-fab { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--primary-dark); border: none; border-radius: 11px; padding: 11px; font-weight: 700; font-size: 13px; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
.nav-fab:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,0.22); }
.nav-fab svg { width: 16px; height: 16px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.main-content { flex: 1; min-width: 0; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #FFFFFF 0%, #FCFDFC 100%); position: sticky; top: 0; z-index: 20; }
.topbar-doctors { font-size: 13px; color: var(--muted); }
.topbar-doctors strong { color: var(--primary-dark); }
.page-wrap { padding: 22px 18px 70px; max-width: 1200px; margin: 0 auto; }

.section-title { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.section-title h2 { font-size: 23px; font-weight: 600; margin: 0; letter-spacing: -.3px; }
.section-title .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(26,38,32,0.03); }
.card.alert { border-color: #F0C5AE; background: linear-gradient(135deg, #FFF9F5 0%, #FFFCFA 100%); }
.empty { font-size: 13px; color: var(--muted); padding: 26px 0; text-align: center; }
.empty-big { padding: 48px 20px; }
.empty-big .empty-icon { font-size: 32px; margin-bottom: 10px; opacity: .5; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 13px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content:''; position:absolute; top:-20px; right:-20px; width:76px; height:76px; border-radius:50%; background: var(--grad-soft); opacity:.6; }
.stat-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 11px; font-size: 16px; position: relative; z-index: 1; }
.stat-value { font-size: 23px; font-weight: 700; position: relative; z-index: 1; letter-spacing: -.5px; }
.stat-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; }
.stat-card.clickable { cursor: pointer; transition: transform .12s, box-shadow .15s; }
.stat-card.clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,38,32,0.08); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: var(--surface); text-align: left; }
th { padding: 10px 13px; font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
td { padding: 10px 13px; border-top: 1px solid #F0F5F1; }
tbody tr:hover { background: #FAFCFA; }
tr.row-low { background: linear-gradient(90deg, #FEF9F0 0%, transparent 100%); }
tr.row-out { background: linear-gradient(90deg, #FDEEE9 0%, transparent 100%); }
tr.row-inactive { opacity: .55; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: #4A5650; margin-bottom: 6px; }
.field-label .opt { color: var(--muted); font-weight: 400; }
.mini-field { display: flex; flex-direction: column; gap: 4px; }
.mini-label { font-size: 10px; color: var(--muted); font-weight: 500; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 42px; }
.input-suffix .suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-weight: 600; pointer-events: none; }
.input-prefix { position: relative; }
.input-prefix input { padding-left: 42px; }
.input-prefix .prefix { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); font-weight: 600; pointer-events: none; }

.tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; display: inline-block; font-weight: 500; }
.tag-accent { background: var(--accent-light); color: var(--accent); }
.tag-muted { background: var(--surface); color: #4A5650; }
.tag-primary { background: var(--primary-light); color: var(--primary-dark); }
.tag-green { background: #E5F5EA; color: #1F7A4D; font-weight: 600; }
.tag-amber { background: var(--amber-light); color: var(--amber); font-weight: 600; }
.tag-red { background: var(--red-light); color: var(--red); font-weight: 600; }
.tag-blue { background: var(--blue-light); color: var(--blue); font-weight: 600; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 20px; border: 1px solid var(--border-strong); background: #fff; font-size: 12.5px; cursor: pointer; transition: all .12s; }
.chip:hover { border-color: var(--primary); }
.chip.selected { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.chip-remove { cursor: pointer; opacity: .6; font-weight: 700; }
.chip-remove:hover { opacity: 1; }

.search-wrap { position: relative; }
.search-icon { position: absolute; left: 12px; top: 11px; color: var(--muted); font-size: 14px; }
.search-input { padding-left: 34px !important; }
.search-results { border: 1px solid var(--border); border-radius: 10px; margin-top: 6px; overflow: hidden; position: absolute; background: #fff; width: 100%; z-index: 30; box-shadow: 0 8px 24px rgba(26,38,32,0.12); max-height: 300px; overflow-y: auto; }
.search-result-item { width: 100%; text-align: left; padding: 10px 13px; background: #fff; border: none; border-bottom: 1px solid #F0F5F1; display: flex; justify-content: space-between; font-size: 13px; align-items: center; }
.search-result-item:hover { background: var(--surface); }

.tabs-row { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn { background: none; border: none; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; }
.tab-btn.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

.stepper { display: flex; gap: 8px; margin-bottom: 4px; }
.step-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-dot { width: 27px; height: 27px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #E3EBE5; color: var(--muted); font-size: 12px; font-weight: 700; flex-shrink: 0; transition: all .2s; }
.step-dot.active { background: #fff; border: 2px solid var(--primary); color: var(--primary); }
.step-dot.done { background: var(--grad-accent); color: #fff; }
.step-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.step-label.active, .step-label.done { color: var(--ink); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }

.bill-row { border: 1px solid var(--border); border-radius: 12px; padding: 13px; background: linear-gradient(135deg, #FCFDFC 0%, #F8FAF8 100%); margin-bottom: 11px; }
.bill-row.warn { border-color: #F0C5AE; background: linear-gradient(135deg, #FFF9F5 0%, #FFFCFA 100%); }
.bill-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.prescription-block { border-top: 1px dashed var(--border-strong); padding-top: 11px; margin-top: 11px; }
.prescription-label { font-size: 10.5px; font-weight: 700; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 13px; }
.patient-card { cursor: pointer; transition: transform .12s, box-shadow .15s; }
.patient-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,38,32,0.08); }
.patient-card-head { display: flex; justify-content: space-between; align-items: start; }
.visit-badge { font-size: 11px; background: var(--primary-light); color: var(--primary-dark); padding: 4px 9px; border-radius: 20px; font-weight: 600; }
.patient-meta { margin-top: 11px; font-size: 12.5px; color: #4A5650; display: flex; flex-direction: column; gap: 5px; }
.patient-meta span { display: flex; align-items: center; gap: 7px; }

.nokku-toggle { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: var(--grad-soft); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nokku-toggle:hover { border-color: var(--primary); }
.nokku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.nokku-item .nokku-hint { font-size: 10px; color: var(--muted); font-style: italic; }

.visit-history-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 11px; overflow: hidden; }
.visit-history-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; cursor: pointer; background: linear-gradient(135deg, #FCFDFC 0%, #F8FAF8 100%); }
.visit-history-head:hover { background: var(--surface); }
.visit-history-body { padding: 0 15px 15px; display: none; }
.visit-history-body.open { display: block; }
.visit-reason { font-size: 13px; color: #4A5650; margin-top: 2px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(20,25,35,0.5); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 16px; max-width: 680px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.modal-box.wide { max-width: 860px; }
.modal-box.narrow { max-width: 440px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.modal-body { padding: 22px; }
.modal-footer { display: flex; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--border); justify-content: flex-end; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--primary-dark); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,0.2); z-index: 300; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.warn { background: var(--red); }

.warn-box { background: linear-gradient(135deg, #FDEEE9 0%, #FFF7F3 100%); border: 1px solid #F0C5AE; border-radius: 10px; padding: 13px 15px; font-size: 13px; color: #8A3D26; }

.pill-toggle { display: inline-flex; background: var(--surface); border-radius: 10px; padding: 3px; gap: 3px; }
.pill-toggle button { border: none; background: none; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pill-toggle button.active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.photo-drop { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 16px; text-align: center; background: var(--grad-soft); cursor: pointer; transition: border-color .15s; }
.photo-drop:hover { border-color: var(--primary); }
.photo-preview { width: 100%; max-width: 120px; height: 120px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; }

.hidden { display: none !important; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .pdf-sheet { box-shadow: none !important; margin: 0; max-width: 100%; }
  .invoice-page { padding: 0; background: #fff; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .form-grid, .form-grid-3, .form-grid-4, .nokku-grid { grid-template-columns: 1fr !important; }
  .main-content { padding-bottom: 76px; }
  .section-title { align-items: flex-start; }
}
.mobile-nav { position: fixed; bottom: 14px; left: 14px; right: 14px; background: rgba(20,34,26,0.92); backdrop-filter: blur(14px); border-radius: 22px; display: flex; justify-content: space-around; align-items: center; padding: 8px 6px; z-index: 40; box-shadow: 0 8px 28px rgba(10,20,14,0.35); border: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 901px) { .mobile-nav { display: none !important; } }
.mobile-nav-link { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: rgba(255,255,255,0.55); font-size: 9.5px; font-weight: 500; padding: 6px 9px; white-space: nowrap; border-radius: 14px; transition: color .15s; flex: 1; }
.mobile-nav-link.active { color: #fff; background: rgba(255,255,255,0.12); }
.mobile-nav-link .nav-icon { width: 19px; height: 19px; margin-bottom: 0; }
.mobile-nav-link .nav-icon svg { width: 19px; height: 19px; }
.mobile-nav-fab { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad-accent); color: #fff; border: 3px solid rgba(20,34,26,0.92); margin-top: -22px; box-shadow: 0 4px 14px rgba(31,122,77,0.45); flex-shrink: 0; }
.mobile-nav-fab svg { width: 21px; height: 21px; }

/* ---- Mobile-only quick switch (Patients<->Billing, Dashboard<->Reports) ---- */
.mobile-page-switch { display: none; }
@media (max-width: 900px) {
  .mobile-page-switch { display: flex; gap: 8px; margin-bottom: 16px; }
  .mobile-page-switch button { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; font-size: 12.5px; font-weight: 600; color: #4A5650; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .mobile-page-switch button.active { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }
  .mobile-page-switch .nav-icon { width: 15px; height: 15px; }
  .mobile-page-switch .nav-icon svg { width: 15px; height: 15px; }
}

/* ---- Settings layout (single flowing page, no tabs) ---- */
.settings-section { margin-bottom: 22px; }
.settings-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.settings-section-head .nav-icon { width: 19px; height: 19px; color: var(--primary-dark); background: var(--primary-light); border-radius: 8px; padding: 6px; box-sizing: content-box; }
.settings-section-head .nav-icon svg { width: 19px; height: 19px; }
.settings-section-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.settings-section-head .settings-section-desc { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ---- License / subscription card ---- */
.license-card { border-radius: 16px; padding: 20px 22px; position: relative; overflow: hidden; color: #fff; }
.license-card.state-active { background: linear-gradient(135deg, #1F7A4D 0%, #123D2A 100%); }
.license-card.state-grace { background: linear-gradient(135deg, #B8860B 0%, #7A5A08 100%); }
.license-card.state-expired { background: linear-gradient(135deg, #8A3D26 0%, #5C2818 100%); }
.license-card::after { content:''; position:absolute; top:-40px; right:-30px; width:150px; height:150px; border-radius:50%; background:rgba(255,255,255,0.06); }
.license-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.license-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.16); padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; }
.license-badge svg { width: 13px; height: 13px; }
.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 16px; position: relative; z-index: 1; }
.license-grid-item .lg-label { font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.license-grid-item .lg-value { font-size: 15px; font-weight: 700; }
.license-progress { height: 6px; background: rgba(255,255,255,0.2); border-radius: 6px; margin-top: 14px; overflow: hidden; position: relative; z-index: 1; }
.license-progress-fill { height: 100%; background: #fff; border-radius: 6px; }

/* PDF */
.invoice-page { min-height: 100vh; background: #E5EBE7; padding: 24px 12px; }
.invoice-toolbar { max-width: 780px; margin: 0 auto 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.pdf-sheet { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 6px; box-shadow: 0 8px 30px rgba(26,38,32,0.12); color: var(--ink); overflow: hidden; }
.pdf-inner { padding: 32px 38px; }
.pdf-band { height: 6px; background: var(--grad-header); }
.pdf-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 2px solid var(--primary); flex-wrap: wrap; gap: 14px; }
.pdf-logo { width: 60px; height: 60px; flex-shrink: 0; object-fit: contain; }
.pdf-clinic-name { font-size: 20px; font-weight: 700; color: var(--primary-dark); margin: 0; letter-spacing: -.3px; }
.pdf-clinic-name-ta { font-size: 12px; color: var(--primary); margin-top: 1px; }
.pdf-doctors { font-size: 9.5px; color: #4A5650; margin-top: 4px; line-height: 1.5; }
.pdf-specialties { background: linear-gradient(90deg, #FBF6D9 0%, #FDFBF0 100%); border-radius: 6px; padding: 6px 12px; font-size: 10.5px; font-weight: 700; color: var(--primary-dark); text-align: center; margin-bottom: 14px; letter-spacing: .3px; }
.pdf-summary-box { background: var(--surface); border-radius: 10px; padding: 14px; margin-bottom: 16px; font-size: 12px; }
.pdf-section-label { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.pdf-section-label.accent { color: var(--accent); }
.pdf-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 16px; }
.pdf-table thead tr { border-bottom: 1.5px solid var(--primary); background: none; }
.pdf-table.rx thead tr { border-bottom: 1.5px solid var(--accent); }
.pdf-table th { padding: 6px 4px; text-align: left; color: var(--muted); }
.pdf-table td { padding: 7px 4px; border-top: none; border-bottom: 1px solid var(--border); }
.pdf-total-row { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.pdf-notes { background: var(--grad-soft); border-radius: 10px; padding: 13px; margin-bottom: 12px; font-size: 10.5px; color: #4A5650; line-height: 1.6; }
.pdf-terms { font-size: 9px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.pdf-terms strong { color: #4A5650; font-size: 9.5px; }
.pdf-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--border-strong); flex-wrap: wrap; gap: 20px; }
.pdf-sign-img { max-height: 46px; max-width: 150px; object-fit: contain; margin-bottom: 4px; }
