/* =====================================================================
   Vet Co. Clinic · clinic.css · brand overrides + shared clinic classes
   Brand: navy #00406C (sidebar, headings), yellow #FFCF01 (primary action, accents), paper bg.
   Module pages add their own small styles via injectStyle(); shared bits live here.
   ===================================================================== */

/* ---- login ---- */
.login-left-vet{background:var(--navy-d);position:relative;overflow:hidden;display:flex;flex-direction:column}
.login-brand-vet{padding:44px 40px 0;position:relative;z-index:1}
.login-brand-vet .login-logo{width:min(300px,80%);height:auto;display:block}
.login-tag{margin-top:14px;font-size:14px;color:rgba(255,255,255,.72);max-width:320px;line-height:1.5}
.login-paws{position:absolute;right:-40px;bottom:-40px;width:320px;height:320px;color:var(--yellow);opacity:.12;transform:rotate(-18deg)}
.login-paws svg{width:100%;height:100%}
@media (max-width:900px){
  .login-left-vet{background:var(--navy-d);border-radius:16px 16px 0 0}
  .login-brand-vet{padding:28px 24px 24px}
  .login-brand-vet .login-logo{width:min(220px,70%)}
  .login-paws{width:180px;height:180px;right:-30px;bottom:-30px}
}

/* ---- sidebar brand ---- */
.sidebar-brand.sidebar-brand-vet{flex-direction:column;align-items:flex-start;gap:8px;padding:6px 18px 16px}
.sidebar-brand.sidebar-brand-vet .sidebar-logo-link{display:block;width:100%}
.sidebar-brand.sidebar-brand-vet img.sidebar-logo{width:100%;max-width:168px;height:auto;border-radius:0;background:transparent;object-fit:contain;padding:0}
.sidebar-by{font-size:11px;color:rgba(255,255,255,.6)}
.sidebar-by .wordmark{font-size:12px;color:#fff}
.sidebar-by .wordmark span{color:#F05A28}
@media (max-width:900px){.sidebar-brand.sidebar-brand-vet{display:none}}

/* ---- yellow accents ---- */
.nav-item.active::before,.nav a.active::before{background:var(--yellow)}
.text-yellow{color:var(--yellow-d)}
.pill.yellow{background:var(--orange-tint);color:#7A5C00}
.kpi.yellow{border-top:3px solid var(--yellow)}

/* ---- pets ---- */
.pet-avatar{width:44px;height:44px;border-radius:12px;background:var(--info-tint);color:var(--navy);display:inline-grid;place-items:center;overflow:hidden;flex:none;font-size:20px}
.pet-avatar img{width:100%;height:100%;object-fit:cover}
.pet-avatar.lg{width:96px;height:96px;border-radius:20px;font-size:40px}
.pet-alert{display:flex;gap:10px;align-items:flex-start;background:var(--danger-tint);border:1px solid #F3B4B4;color:#8A1C1C;border-radius:var(--radius);padding:10px 14px;font-weight:600}
.pet-alert svg{flex:none;margin-top:1px}
.species-chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--body);background:var(--field);border-radius:999px;padding:2px 9px;white-space:nowrap}

/* ---- SOAP record ---- */
.soap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:760px){.soap-grid{grid-template-columns:1fr}}
.soap-box{border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;background:#fff;min-width:0}
.soap-box .soap-k{font-family:var(--display);font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--navy);margin-bottom:6px}
.soap-box .soap-v{white-space:pre-wrap;word-break:break-word;font-size:13.5px;color:var(--ink)}
.soap-box .soap-v:empty::before{content:'—';color:var(--muted)}
.vitals{display:flex;flex-wrap:wrap;gap:8px}
.vital{display:flex;flex-direction:column;min-width:82px;padding:8px 12px;border-radius:10px;background:var(--field);border:1px solid var(--line)}
.vital b{font-family:var(--display);font-size:18px;font-weight:800;color:var(--navy);white-space:nowrap}
.vital span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}

/* ---- timeline (pet history) ---- */
.tl{display:flex;flex-direction:column}
.tl-row{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--line);min-width:0}
.tl-row:first-child{border-top:0}
.tl-dot{width:10px;height:10px;border-radius:50%;background:var(--navy);flex:none;margin-top:6px}
.tl-dot.ok{background:var(--ok)} .tl-dot.warn{background:var(--warn)} .tl-dot.danger{background:var(--danger)} .tl-dot.yellow{background:var(--yellow)}
.tl-main{flex:1;min-width:0}
.tl-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-sub{font-size:12.5px;color:var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-date{flex:none;font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}

/* ---- due pills ---- */
.due-overdue{background:var(--danger-tint);color:#8A1C1C}
.due-soon{background:var(--warn-tint);color:var(--warn-text)}
.due-later{background:var(--info-tint);color:var(--navy)}

/* ---- print sheets (vaccination card, prescription, invoice) ---- */
.print-sheet{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 28px;max-width:820px;margin:0 auto}
.print-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:2px solid var(--navy);padding-bottom:14px;margin-bottom:16px}
.print-head img{height:44px;width:auto}
.print-head .ph-clinic{text-align:right;font-size:12px;color:var(--body);line-height:1.4}
.print-head .ph-clinic b{display:block;font-family:var(--display);font-size:15px;color:var(--navy)}
.print-title{font-family:var(--display);font-weight:800;font-size:20px;color:var(--navy);margin:0 0 10px}
.print-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px;font-size:13px}
.print-kv div{display:flex;gap:8px;min-width:0}
.print-kv span{color:var(--muted);flex:none;min-width:88px}
.print-kv b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.print-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:12px}
.print-table th{text-align:left;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line);padding:6px 8px}
.print-table td{padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.print-table .num,.print-table th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.print-foot{margin-top:18px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.print-sign{margin-top:36px;display:flex;justify-content:flex-end}
.print-sign div{text-align:center;min-width:220px;border-top:1px solid var(--ink);padding-top:6px;font-size:12px}
.print-sign b{display:block;font-size:13px}
@media print{
  .sidebar,.bottom-nav,.page-header .page-actions,.no-print,.toast-root{display:none!important}
  .shell{display:block}
  .main{padding:0}
  .print-sheet{border:0;padding:0;max-width:none}
  body{background:#fff}
}
@media (max-width:640px){.print-sheet{padding:16px}.print-kv{grid-template-columns:1fr}.print-head{flex-direction:column;align-items:flex-start}.print-head .ph-clinic{text-align:left}}

/* ---- misc ---- */
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;min-width:0}
.stack{display:flex;flex-direction:column;gap:16px}
.stack.tight{gap:10px}
.row{display:flex;align-items:center;gap:10px}
.row.wrap{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.card .flush{padding:0}

/* recalls: labelled row actions need a wider last column than the dataTable default */
.table:has(.rc-cell) th:last-child{width:236px!important}
.table:has(.rc-cell) .row-actions{flex-wrap:wrap;justify-content:flex-end;max-width:236px;row-gap:4px}
