/* Shared application design system. Local assets only; no network font dependencies. */
:root {
  --teal-900: #173f43;
  --teal-700: #0d6257;
  --teal-600: #117568;
  --teal-500: #218a7b;
  --teal-100: #e5f3ee;
  --ink: #263e4c;
  --ink-soft: #617482;
  --paper: #f3f6f8;
  --line: #e0e8ed;
  --radius: 14px;
  --shadow: 0 4px 18px #23465206;
  --amber: #906015;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1,h2,h3,h4 { color: #23464b; font-weight: 700; }
.sidebar { background: #153e40; color: #fff; border: 0; padding: 28px 14px 18px; }
.sidebar .brand { border-color: #ffffff1c; padding-bottom: 24px; }
.sidebar .brand .name { color: #fff; font-weight: 700; font-size: 16px; }
.sidebar .brand .tag { color: #b6ced0; opacity: 1; font-size: 10px; letter-spacing: .1em; }
.brand-symbol { background: #e0f3ea; color: #176c5c; border-radius: 12px; width: 40px; height: 40px; }
.sidebar .nav-caption { color: #93b4b7; font-size: 9px; letter-spacing: .16em; padding-bottom: 10px; }
.sidebar a.nav-link { color: #c6d9da; border-radius: 9px; min-height: 43px; margin-bottom: 4px; font-size: 13px; transition: background .15s, color .15s; }
.sidebar a.nav-link:hover { color: white; background: #ffffff0d; }
.sidebar a.nav-link.active { background: #e1f2eb; color: #155b50; box-shadow: 0 3px 10px #0b29231a; font-weight: 650; }
.sidebar .nav-icon { width: 18px; height: 18px; flex-basis: 18px; }
.sidebar .sidebar-footer { color: #b1cecb; border-color: #ffffff1c; font-size: 11px; line-height: 1.7; }
.sidebar { scrollbar-color: #426464 transparent; }
.topbar { min-height: 84px; border-bottom-color: #e4ebef; }
.topbar-eyebrow { display: block; text-transform: uppercase; font-size: 9px; font-weight: 650; letter-spacing: 1.7px; color: #6f8490; margin-bottom: 4px; }
.topbar .title { font-size: 18px; color: #264750; font-weight: 700; }
.topbar .user-box { gap: 12px; }
.topbar .role-badge { background: #edf5f2; color: #236f60; padding: 5px 10px; }
.staff-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #d4e7df; border-radius: 50%; background: #e7f2ed; color: #1d6d5b; font-size: 12px; font-weight: 700; }
.topbar .user-name { font-size: 12px; }
.topbar .btn { font-size: 12px; min-height: 37px; }
.content { padding: 30px 32px; }
.workspace-intro { margin-bottom: 26px; }
.workspace-intro h1 { font-size: 29px; font-weight: 750; letter-spacing: -.9px; margin-bottom: 7px; }
.workspace-intro p { font-size: 14px; color: #647986; }
.card { border-radius: 15px; border-color: #e0e8ed; padding: 18px 20px; box-shadow: var(--shadow); }
.card-header { margin-bottom: 14px; }
.card h3 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 12px; }
.kpi-grid { gap: 14px; }
.kpi-card { position: relative; border-radius: 14px; padding: 16px 18px; border-top: 3px solid #a5cec3; box-shadow: var(--shadow); }
.kpi-card .kpi-label { font-size: 12px; color: #617785; margin-bottom: 12px; font-weight: 500; }
.kpi-card .kpi-value { color: #214951; font-size: clamp(24px,2.1vw,30px); font-weight: 750; letter-spacing: -.8px; }
.kpi-card .kpi-value.accent { color: #117568; }
.kpi-card:has(.accent) { background: #edf7f2; border-color: #d2e8df; border-top-color: #328c76; }
button,.btn { border-radius: 9px; padding: 10px 16px; font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-primary,.btn-accent { box-shadow: 0 3px 7px #11756818; }
.btn-outline { border-color: #dce6eb; color: #496272; }
.btn-outline:hover { background: #f1f7f5; border-color: #b3d6cc; }
.btn-danger { box-shadow: 0 2px 5px #b0413e12; }
.btn-lg { min-height: 48px; }
label { font-size: 12px; font-weight: 650; color: #496272; margin-bottom: 7px; }
input,select,textarea { border-radius: 9px; border-color: #d7e2e8; padding: 11px 12px; min-height: 43px; background: #fcfdfe; }
input:hover,select:hover,textarea:hover { border-color: #b7ccc9; }
input:focus,select:focus,textarea:focus { background: #fff; border-color: #218a7b; box-shadow: 0 0 0 3px #218a7b15; }
input[type=checkbox],input[type=radio] { min-height: 0; }
input[type=file]::file-selector-button { border: 0; border-radius: 5px; padding: 6px 10px; margin-right: 12px; background: #e5f3ee; color: #156454; cursor: pointer; }
.field { margin-bottom: 13px; }
.field-row { gap: 14px; }
th { background: #f2f6f8; color: #607785; padding: 9px 12px; font-size: 11px; font-weight: 650; border-color: #e4ebef; }
td { padding: 9px 12px; border-color: #eaf0f3; font-size: 13px; }
tr:hover td { background: #f7faf9; }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
.badge { border-radius: 20px; padding: 5px 9px; font-size: 10px; line-height: 1.4; }
.badge-partially_paid { background: #eaf0ff; color: #4d65a0; }
.badge-refunded { background: #f1eafb; color: #79559c; }
.empty-state { padding: 42px 24px; background: #f6f9fa; border: 1px dashed #dce6ea; border-radius: 12px; }
.empty-state .big { color: #599285; }
.hint,.muted { color: #647987; line-height: 1.6; }
.toast { padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 35px #193e4326; }
.visit-summary { border-radius: 12px; padding: 18px; }
.history-item { border-left-color: #73b6a3; border-radius: 0 10px 10px 0; }
.rx-item { border-radius: 12px; }
summary { cursor: pointer; }
/* Authentication shares the same typography, colors and controls. */
.login-page,.reset-page { background: radial-gradient(ellipse at 12% 10%,#dbeee7 0,transparent 50%), radial-gradient(ellipse at 95% 100%,#e0eaf1 0,transparent 45%),#f3f6f8; }
.login-panel { max-width: 480px; padding: 38px; border-radius: 22px; border-color: #dfe9e6; box-shadow: 0 20px 65px #214b4510; border-top: 4px solid #218a76; }
.login-brand { padding-bottom: 24px; border-bottom: 1px solid #e5ecee; margin-bottom: 26px; }
.login-brand .name { font-size: 18px; font-weight: 700; }
.login-brand .tag { font-size: 11px; letter-spacing: .4px; }
.login-card h2 { font-size: 29px; font-weight: 750; letter-spacing: -.8px; }
.login-card .btn-block { min-height: 49px; border-radius: 10px; }
.login-card input:not([type=checkbox]) { border-radius: 10px; background: #f9fbfc; }
.status-line { color: #687e86; font-size: 11px; }
.reset-page .card-wrap { max-width: 460px; border-radius: 20px; padding: 34px; border-top: 4px solid #218a76; box-shadow: 0 20px 65px #214b4510; }
@media(max-width:1100px) {
  .content { padding: 24px; }
  .topbar { padding: 16px 24px; }
  .staff-avatar { display: none; }
}
@media(max-width:760px) {
  .topbar { min-height: 82px; padding: 12px 16px; }
  .topbar .title { font-size: 15px; }
  .topbar-eyebrow { font-size: 8px; letter-spacing: 1px; }
  .topbar .user-box { gap: 0; }
  .content { padding: 22px 16px; }
  .sidebar { top: 82px; height: calc(100dvh - 82px); }
  .card { padding: 18px; border-radius: 13px; }
  .kpi-card { padding: 17px 14px; }
  .kpi-card .kpi-value { font-size: 24px; }
  .kpi-card .kpi-label { font-size: 11px; }
  .workspace-intro h1 { font-size: 25px; }
  .workspace-intro p { font-size: 13px; }
  .field-row { gap: 0; }
  .content .field-row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  input,select,textarea { font-size: 16px; }
  button,.btn { min-height: 44px; }
  .login-panel { padding: 28px 24px; }
  .login-card h2 { font-size: 26px; }
  .reset-page .card-wrap { padding: 28px 22px; }
}
@media(prefers-reduced-motion:reduce) { button,.btn,.sidebar a.nav-link { transition: none; } }
@media print {
  body { background: white; }
  .card,.kpi-card { box-shadow: none; break-inside: avoid; }
  .content { padding: 0; }
}
