:root { --demo-ink:#23333b; --demo-muted:#687b83; --demo-line:#e0e8eb; --demo-teal:#087f80; --demo-bg:#f4f7f8; }
* { box-sizing:border-box; }
body { margin:0; font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; font-size:14px; color:var(--demo-ink); background:var(--demo-bg); letter-spacing:0; }
button,input,select,textarea { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:inherit; text-decoration:none; }
svg { width:19px; height:19px; flex:0 0 auto; stroke-width:1.8; }
button { color:inherit; }
button:disabled { cursor:default; opacity:.55; }
:focus-visible { outline:3px solid #0a8687; outline-offset:3px; }
[hidden] { display:none !important; }
.demo-skip { position:fixed; top:-100px; left:16px; z-index:10; padding:12px; background:#fff; }
.demo-skip:focus { top:8px; }
.demo-strip { min-height:48px; background:#153c44; color:#fff; padding:8px 26px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12px; }
.demo-strip>div,.demo-strip nav { display:flex; align-items:center; gap:13px; }
.demo-strip strong { font-size:12px; }
.demo-strip-note { padding-left:13px; border-left:1px solid #ffffff40; color:#c5dadd; }
.demo-live-dot { width:7px; height:7px; border-radius:50%; background:#70d5b4; }
.demo-cta { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:7px 12px; border:1px solid #b8d3d64d; border-radius:5px; background:#ffffff10; font-weight:650; }
.demo-cta svg { width:15px; height:15px; }
.demo-back { color:#c5dadd; }
.demo-shell { display:grid; grid-template-columns:234px minmax(0,1fr); min-height:calc(100vh - 48px); }
.demo-sidebar { background:#fff; border-right:1px solid var(--demo-line); display:flex; flex-direction:column; padding:22px 16px 0; }
.demo-brand { display:block; margin:0 12px 22px; width:154px; height:62px; }
.demo-brand img { display:block; width:154px; height:62px; object-fit:contain; }
.demo-clinic { display:flex; align-items:center; gap:10px; padding:13px 9px 21px; border-bottom:1px solid var(--demo-line); margin-bottom:19px; }
.demo-clinic strong { display:block; font-size:12px; }
.demo-clinic span:not(.demo-clinic-icon) { display:block; font-size:11px; color:var(--demo-muted); margin-top:4px; }
.demo-clinic-icon { display:grid; place-items:center; width:33px; height:36px; background:#edf5f5; color:var(--demo-teal); border:1px solid #d8e7e7; border-radius:5px; }
.demo-navigation { display:grid; gap:5px; }
.demo-navigation button { display:flex; align-items:center; gap:12px; border:0; background:transparent; padding:12px; min-height:44px; border-radius:5px; font-size:12px; text-align:left; color:#61747d; font-weight:550; }
.demo-navigation button:hover { background:#f2f7f7; }
.demo-navigation button.active { background:#e8f4f2; color:#076b67; font-weight:750; }
.demo-nav-count { margin-left:auto; font-size:10px; background:#cde8e3; padding:2px 6px; border-radius:4px; }
.demo-nav-label { margin:20px 12px 8px; color:#87979d; font-size:9px; font-weight:700; }
.demo-sidebar-bottom { display:flex; align-items:center; gap:9px; padding:18px 6px; margin-top:auto; border-top:1px solid var(--demo-line); }
.demo-sidebar-bottom strong { display:block; font-size:11px; }
.demo-sidebar-bottom div span { display:block; color:var(--demo-muted); font-size:10px; margin-top:3px; }
.demo-sidebar-bottom button { margin-left:auto; padding:5px; border:0; background:none; color:var(--demo-muted); }
.demo-avatar { display:inline-grid; place-items:center; width:35px; height:35px; border-radius:50%; flex:0 0 auto; background:#e9eff0; color:#355a61; font-size:11px; font-weight:700; }
.demo-small-avatar { width:30px; height:30px; }
.demo-workspace { min-width:0; display:flex; flex-direction:column; }
.demo-topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:68px; padding:12px 30px; background:#fff; border-bottom:1px solid var(--demo-line); }
.demo-topbar-start,.demo-topbar-actions { display:flex; align-items:center; gap:18px; }
.demo-topbar-start>span { font-size:12px; color:#62767d; }
.demo-global-search { display:flex; align-items:center; gap:9px; color:#819399; width:280px; }
.demo-global-search input { width:100%; min-width:0; background:none; border:0; color:var(--demo-ink); font-size:12px; padding:8px 0; }
.demo-icon-button { position:relative; display:inline-grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--demo-line); border-radius:5px; background:#fff; color:#536f78; flex:0 0 auto; }
.demo-menu { display:none; }
.demo-notification-dot { position:absolute; right:7px; top:6px; width:5px; height:5px; background:#dd8568; border-radius:50%; }
.demo-main { flex:1; min-width:0; padding:27px 30px 18px; }
.demo-page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:23px; }
.demo-page-heading h1 { margin:0 0 7px; font-size:23px; line-height:1.2; font-weight:700; }
.demo-page-heading p { margin:0; color:var(--demo-muted); font-size:12px; line-height:1.6; }
.demo-heading-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.demo-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:38px; padding:8px 13px; background:#fff; border:1px solid #d8e3e7; border-radius:5px; color:#435e68; font-size:11px; font-weight:650; }
.demo-button.primary { background:#087f80; border-color:#087f80; color:#fff; }
.demo-button:hover { filter:brightness(.96); }
.demo-button svg { width:16px; height:16px; }
.demo-date { display:inline-flex; align-items:center; gap:8px; font-size:11px; color:#677e86; white-space:nowrap; padding-top:10px; }
.demo-date svg { width:15px; height:15px; }
.demo-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:23px; }
.demo-kpi { min-height:118px; background:#fff; padding:18px 20px; border:1px solid var(--demo-line); border-radius:6px; }
.demo-kpi-top { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; color:#60767f; }
.demo-kpi-top svg { color:var(--demo-teal); width:18px; height:18px; }
.demo-kpi>strong { display:block; font-size:26px; font-weight:750; margin:10px 0 5px; line-height:1.2; }
.demo-kpi>small { color:#83939a; font-size:10px; }
.demo-kpi>small.positive { color:#27856e; }
.demo-kpi>small.attention { color:#a17430; }
.demo-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr); gap:22px; }
.demo-section { min-width:0; }
.demo-section-header { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:30px; margin-bottom:12px; }
.demo-section-header h2 { font-size:14px; font-weight:700; margin:0; }
.demo-text-button { display:inline-flex; align-items:center; gap:4px; border:0; padding:5px 0; background:none; color:#077f78; font-size:10px; font-weight:650; }
.demo-text-button svg { width:13px; height:13px; }
.demo-surface { background:#fff; border:1px solid var(--demo-line); border-radius:6px; overflow:hidden; }
.demo-table-wrap { overflow:auto; }
.demo-table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; font-size:11px; }
.demo-table th { padding:12px 16px; border-bottom:1px solid var(--demo-line); background:#fbfcfc; color:#789097; font-weight:600; font-size:10px; }
.demo-table td { padding:13px 16px; border-bottom:1px solid #edf1f2; vertical-align:middle; }
.demo-table tbody tr:last-child td { border-bottom:0; }
.demo-table tbody tr:hover { background:#fafdfd; }
.demo-table .demo-patient-cell { display:flex; align-items:center; gap:9px; }
.demo-pet-avatar { display:inline-grid; place-items:center; width:31px; height:31px; border-radius:6px; background:#e8f3ef; color:#4a8a79; flex:0 0 auto; }
.demo-pet-avatar.cat { background:#f8eee5; color:#bc8a54; }
.demo-pet-avatar.dog { background:#e8f0f7; color:#5985a2; }
.demo-pet-avatar svg { width:19px; height:19px; }
.demo-patient-cell strong { display:block; font-size:11px; }
.demo-patient-cell small { display:block; margin-top:3px; color:#86959a; font-size:9px; }
.demo-row-link { text-align:left; border:0; background:none; padding:0; color:inherit; font-weight:650; font-size:11px; text-decoration:underline; text-decoration-color:transparent; }
.demo-row-link:hover { text-decoration-color:#087f80; }
.demo-status { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:4px; font-size:9px; font-weight:650; background:#eef3f6; color:#587a8b; }
.demo-status.waiting { background:#f9f0db; color:#9c7436; }
.demo-status.arrived { background:#e3f4ed; color:#308469; }
.demo-status.done { background:#edf0f3; color:#73848c; }
.demo-status.critical { background:#fce9e6; color:#b96656; }
.demo-status.planned { background:#e7f0f7; color:#4d81a4; }
.demo-status-dot { width:4px; height:4px; border-radius:50%; background:currentColor; }
.demo-reminder { display:flex; align-items:center; gap:12px; padding:15px 17px; border-bottom:1px solid #eaf0f1; }
.demo-reminder:last-child { border:0; }
.demo-reminder>div { flex:1; min-width:0; }
.demo-reminder strong { font-size:11px; display:block; }
.demo-reminder p { font-size:10px; color:#7a8e96; margin:4px 0 0; }
.demo-reminder>small { font-size:9px; color:#aa7b3e; white-space:nowrap; }
.demo-lower { margin-top:23px; }
.demo-chart-content { padding:18px 20px 12px; }
.demo-chart-summary { display:flex; align-items:baseline; gap:12px; margin-bottom:15px; }
.demo-chart-summary strong { font-size:21px; }
.demo-chart-summary span { color:#26846b; font-size:10px; }
.demo-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:15px; align-items:end; height:133px; border-bottom:1px solid #dfe9eb; background:repeating-linear-gradient(to top,transparent 0,transparent 32px,#eff3f4 32px,#eff3f4 33px); }
.demo-bar { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; min-width:0; position:relative; }
.demo-bar span { display:block; width:min(32px,80%); background:#b9ded8; border-radius:3px 3px 0 0; min-height:3px; }
.demo-bar:last-child span { background:#087f80; }
.demo-bar small { position:absolute; bottom:-21px; font-size:9px; color:#80949b; white-space:nowrap; }
.demo-chart-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:9px; color:#82959c; padding:32px 0 3px; }
.demo-chart-foot span:last-child { display:inline-flex; align-items:center; gap:6px; }
.demo-chart-foot span:last-child::before { content:""; width:6px; height:6px; background:#087f80; border-radius:2px; }
.demo-stock-alert { display:flex; align-items:center; gap:10px; padding:13px 17px; border-bottom:1px solid #edf1f2; }
.demo-stock-alert:last-child { border:0; }
.demo-stock-alert>svg { color:#b38d52; width:17px; height:17px; }
.demo-stock-alert>div { flex:1; }
.demo-stock-alert strong { display:block; font-size:11px; }
.demo-stock-alert small { display:block; margin-top:3px; color:#83949b; font-size:9px; }
.demo-workspace-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:17px 30px; color:#8c9ca2; font-size:9px; }
.demo-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 17px; }
.demo-toolbar-group { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.demo-search { position:relative; display:flex; align-items:center; gap:9px; padding:0 12px; height:38px; border:1px solid #dce6e8; border-radius:5px; background:#fff; color:#7a9098; }
.demo-search input { width:210px; min-width:0; border:0; outline:0; background:none; font-size:11px; color:#34535d; }
.demo-search svg { width:16px; height:16px; }
.demo-select { max-width:100%; min-height:38px; background:#fff; color:#586e77; font-size:11px; border:1px solid #dce6e8; padding:8px 11px; border-radius:5px; }
.demo-segmented { display:inline-flex; background:#eaf0f2; padding:3px; gap:2px; border-radius:5px; }
.demo-segmented button { min-height:29px; padding:6px 12px; border:0; background:none; font-size:10px; color:#6c838d; border-radius:3px; }
.demo-segmented button.active { background:#fff; color:#167d78; box-shadow:0 1px 3px #173b5710; font-weight:700; }
.demo-empty { padding:45px 20px; text-align:center; color:#84979f; }
.demo-empty svg { width:30px; height:30px; }
.demo-empty h2 { font-size:14px; color:#516c76; margin-top:14px; }
.demo-empty p { font-size:12px; }
.demo-calendar-wrap { overflow:auto; }
.demo-calendar { min-width:800px; display:grid; grid-template-columns:52px repeat(7,minmax(100px,1fr)); grid-template-rows:54px repeat(9,minmax(66px,auto)); background:#fff; }
.demo-calendar-day { padding:9px; border-left:1px solid #e5edef; border-bottom:1px solid #e0eaed; text-align:center; font-size:10px; color:#708991; }
.demo-calendar-day strong { display:block; color:#345c67; font-size:16px; margin-top:3px; }
.demo-calendar-day.today { background:#f0f9f7; }
.demo-calendar-time { padding:8px 9px; font-size:9px; color:#8ca0a6; border-bottom:1px solid #edf1f2; }
.demo-calendar-cell { display:flex; flex-direction:column; gap:3px; padding:3px; border-left:1px solid #edf1f2; border-bottom:1px solid #edf1f2; min-width:0; }
.demo-calendar-event { display:block; width:100%; min-height:58px; flex:1 0 auto; border:0; border-left:3px solid #559b8e; border-radius:3px; background:#e4f3ee; padding:7px; text-align:left; font-size:9px; color:#397565; overflow:hidden; }
.demo-calendar-event.vaccine { border-color:#659bbd; background:#e8f1f7; color:#567e9a; }
.demo-calendar-event.checkup { border-color:#cfac65; background:#fbf3e1; color:#957942; }
.demo-calendar-event strong,.demo-calendar-event span { display:block; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.demo-finance-tabs { margin-bottom:17px; }
.demo-finance-tabs button { font-size:12px; padding:8px 17px; }
.demo-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
.demo-detail-grid dl { margin:0; }
.demo-detail-grid dt { color:#84979e; font-size:10px; margin-bottom:5px; }
.demo-detail-grid dd { margin:0; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.demo-dialog { width:min(620px,calc(100% - 28px)); max-height:calc(100vh - 28px); max-height:calc(100dvh - 28px); border:1px solid var(--demo-line); border-radius:7px; padding:0; background:#fff; color:var(--demo-ink); overflow:auto; overscroll-behavior:contain; }
.demo-dialog::backdrop { background:#173b5773; }
.demo-dialog:not([open]) { display:none; }
.demo-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:18px 22px; border-bottom:1px solid var(--demo-line); background:#fff; position:sticky; top:0; z-index:1; }
.demo-dialog-header h2 { margin:0; font-size:18px; }
.demo-dialog-body { padding:20px 22px; }
.demo-dialog-body h3 { font-size:13px; margin:20px 0 12px; }
.demo-detail-profile { display:flex; align-items:center; gap:12px; }
.demo-detail-profile .demo-pet-avatar { width:52px; height:52px; }
.demo-detail-profile .demo-pet-avatar svg { width:29px; height:29px; }
.demo-detail-profile strong { display:block; font-size:16px; }
.demo-detail-profile p { margin:4px 0 0; color:#73878f; font-size:11px; }
.demo-record { padding:12px 0; border-bottom:1px solid #e4ecef; }
.demo-record:last-child { border:0; }
.demo-record strong { display:block; font-size:12px; }
.demo-record p { color:#798e96; font-size:11px; margin:5px 0 0; line-height:1.6; }
.demo-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.demo-form label { display:grid; gap:7px; font-size:11px; color:#5b727c; }
.demo-form input,.demo-form select,.demo-form textarea { width:100%; min-width:0; border:1px solid #dbe6e9; border-radius:5px; padding:10px; background:#fff; color:#334f59; font-size:12px; }
.demo-form .wide { grid-column:1/-1; }
.demo-form-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:8px; }
.demo-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#23464b; padding:13px 19px; color:#fff; border-radius:6px; box-shadow:0 8px 30px #18354526; z-index:20; font-size:12px; max-width:calc(100% - 24px); text-align:center; }
.demo-breakdown { padding:12px 20px; }
.demo-breakdown-row { display:grid; grid-template-columns:120px minmax(0,1fr) 40px; align-items:center; gap:12px; margin:20px 0; font-size:11px; }
.demo-breakdown-track { height:8px; background:#edf3f4; border-radius:3px; overflow:hidden; }
.demo-breakdown-track span { display:block; height:100%; background:#4f9b8d; border-radius:3px; }
.demo-breakdown-row:nth-child(2) .demo-breakdown-track span { background:#80aac5; }
.demo-breakdown-row:nth-child(3) .demo-breakdown-track span { background:#d6b16f; }
.demo-breakdown-row:nth-child(4) .demo-breakdown-track span { background:#97a5b2; }
.demo-result-group h2 { font-size:13px; margin:20px 0 8px; }
.demo-result { display:flex; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid #e3eaed; }
.demo-result div { flex:1; }
.demo-result strong { font-size:12px; }
.demo-result p { margin:4px 0 0; font-size:10px; color:#758b94; }
html.demo-dialog-open { overflow:hidden; }
@media (max-width:1150px) {
  .demo-shell { grid-template-columns:210px minmax(0,1fr); }
  .demo-main { padding:24px 22px; }
  .demo-topbar { padding-inline:22px; }
  .demo-kpis { gap:10px; }
  .demo-kpi { padding:15px; }
  .demo-grid { grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr); gap:16px; }
  .demo-table td,.demo-table th { padding-inline:12px; }
  .demo-date { display:none; }
}
@media (max-width:920px) {
  .demo-grid { grid-template-columns:minmax(0,1fr); }
  .demo-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .demo-global-search { width:210px; }
  .demo-strip-note { display:none; }
  .demo-table { font-size:11px; }
}
@media (max-width:700px) {
  .demo-strip { padding:9px 14px; min-height:48px; gap:8px; }
  .demo-strip>div { gap:7px; }
  .demo-strip strong { font-size:10px; }
  .demo-cta { font-size:10px; padding:7px 9px; gap:5px; }
  .demo-cta svg { width:12px; height:12px; }
  .demo-back { display:none; }
  .demo-shell { grid-template-columns:minmax(0,1fr); }
  .demo-sidebar { position:fixed; left:0; top:0; bottom:0; width:240px; z-index:32; transform:translateX(-100%); visibility:hidden; transition:transform .18s ease; }
  .demo-sidebar.open { transform:translateX(0); visibility:visible; box-shadow:12px 0 40px #1239452e; }
  .demo-mobile-shade { position:fixed; inset:0; width:100%; height:100%; border:0; background:#173b5773; z-index:31; }
  .demo-topbar { min-height:59px; padding:10px 14px; gap:10px; }
  .demo-topbar-start { gap:10px; }
  .demo-topbar-start>span { font-size:11px; }
  .demo-topbar-actions { gap:10px; }
  .demo-menu { display:inline-grid; }
  .demo-global-search { width:36px; }
  .demo-global-search input { width:0; padding:0; opacity:0; }
  .demo-global-search:focus-within { position:absolute; left:65px; right:95px; width:auto; background:#fff; z-index:2; padding:6px; border:1px solid var(--demo-line); border-radius:5px; }
  .demo-global-search:focus-within input { width:100%; opacity:1; padding:5px; }
  .demo-main { padding:22px 16px 16px; }
  .demo-page-heading { flex-wrap:wrap; gap:14px; margin-bottom:18px; }
  .demo-page-heading h1 { font-size:21px; }
  .demo-page-heading p { font-size:11px; }
  .demo-heading-actions { width:100%; }
  .demo-kpi { min-height:114px; padding:15px; }
  .demo-kpi-top { font-size:10px; }
  .demo-kpi>strong { font-size:23px; }
  .demo-kpi>small { font-size:9px; }
  .demo-kpi-top svg { width:16px; height:16px; }
  .demo-grid { gap:20px; }
  .demo-section-header h2 { font-size:13px; }
  .demo-workspace-footer { padding:15px 16px; flex-direction:column; align-items:flex-start; gap:6px; }
  .demo-table { min-width:570px; }
  .demo-toolbar { align-items:stretch; }
  .demo-toolbar-group { width:100%; }
  .demo-search { width:100%; }
  .demo-search input { width:100%; }
  .demo-select { flex:1; min-width:0; }
  .demo-form { grid-template-columns:minmax(0,1fr); }
  .demo-form-actions { flex-wrap:wrap; }
  .demo-finance-tabs { max-width:100%; }
  .demo-finance-tabs button { padding:8px 12px; font-size:11px; }
  .demo-dialog-body { padding:18px; }
  .demo-dialog-header { padding:15px 18px; }
  .demo-breakdown-row { grid-template-columns:100px minmax(0,1fr) 30px; }
}
@media (prefers-reduced-motion:reduce) { .demo-sidebar { transition:none; } }
@media print { .demo-strip,.demo-sidebar,.demo-topbar,.demo-heading-actions,.demo-toolbar { display:none; } .demo-shell { display:block; } .demo-main { padding:0; } }
