/* Montserrat — self-hosted so it always loads (also offline) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================
   Medart Hair — App Prototype
   Design language: calm, airy, frosted glass on a soft gradient.
   One typeface (Montserrat), one accent (Medart navy), no patterns.
   ============================================================ */
:root {
  --navy: #283D7A;
  --navy-800: #1F3168;
  --navy-900: #172552;
  --navy-600: #4A63B0;
  --navy-100: #E4E9F5;
  --navy-50: rgba(40,61,122,.06);

  --ink: #0F1B3D;
  --ink-2: #33405F;
  --muted: #5F6B88;
  --muted-2: #8E98B2;
  --line: rgba(40,61,122,.10);
  --line-2: rgba(40,61,122,.07);

  --bg: #F3F5FA;
  --glass: rgba(255,255,255,.80);
  --glass-strong: rgba(255,255,255,.92);
  --glass-brd: rgba(40,61,122,.08);
  --blur: saturate(1.4) blur(18px);
  --card: var(--glass);

  --ok: #17885E;   --ok-bg: rgba(23,136,94,.09);
  --warn: #A9741A; --warn-bg: rgba(169,116,26,.10);
  --bad: #C8364C;  --bad-bg: rgba(200,54,76,.08);

  /* event types — muted, all sit calmly next to Medart navy */
  --c-arrival: #3F63B8;   --b-arrival: rgba(63,99,184,.09);
  --c-operation: #283D7A; --b-operation: rgba(40,61,122,.10);
  --c-wash: #2E8796;      --b-wash: rgba(46,135,150,.10);
  --c-consult: #A9741A;   --b-consult: rgba(169,116,26,.10);
  --c-departure: #8C5675; --b-departure: rgba(140,86,117,.10);

  --wa: #1F9D55;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(15,27,61,.04), 0 6px 20px -12px rgba(40,61,122,.16);
  --sh-2: 0 14px 34px -16px rgba(40,61,122,.24);
  --sh-3: 0 28px 60px -24px rgba(23,37,82,.38);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: var(--font);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -120px, rgba(40,61,122,.13) 0%, transparent 70%),
    linear-gradient(180deg, #EEF1F8 0%, #F7F8FC 45%, #FFFFFF 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
html, body, button, input, select, textarea, svg text { font-family: var(--font); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.serif { font-family: var(--font); font-weight: 600; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.muted2 { color: var(--muted-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.b { font-weight: 600; }
.sb { font-weight: 500; }
.upper { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hide { display: none !important; }

/* ============================================================
   Glass primitives
   ============================================================ */
.card, .p-card, .live, .job, .prep-sec, .prod, .notif, .contact, .phase, .kpi, .ev, .tpl, .demo-acc, .team-slot {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--sh-1);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.card { border-radius: var(--r-lg); }
.card.pad { padding: 22px; }
.card.pad-sm { padding: 14px 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.card-h h3 { font-size: 15px; }
.card-b { padding: 14px 22px 20px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn.sm { height: 36px; padding: 0 15px; font-size: 13px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(40,61,122,.6); }
.btn.primary:hover { background: var(--navy-800); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.soft { background: rgba(40,61,122,.08); color: var(--navy); }
.btn.soft:hover { background: rgba(40,61,122,.13); }
.btn.ghost { background: var(--glass-strong); border: 1px solid var(--glass-brd); color: var(--ink-2); box-shadow: var(--sh-1); }
.btn.ghost:hover { background: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.white { background: #fff; color: var(--navy); }
.btn.glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-brd); color: var(--ink-2); position: relative;
  box-shadow: var(--sh-1); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.icon-btn:hover { background: #fff; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
.icon-btn.clear { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(40,61,122,.07); color: var(--ink-2);
}
.pill.sm { height: 22px; padding: 0 9px; font-size: 11.5px; }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.navy { background: rgba(40,61,122,.08); color: var(--navy); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.outline { background: transparent; border: 1px solid var(--line); }

.t-arrival   { --c: var(--c-arrival);   --cb: var(--b-arrival); }
.t-operation { --c: var(--c-operation); --cb: var(--b-operation); }
.t-wash      { --c: var(--c-wash);      --cb: var(--b-wash); }
.t-consult   { --c: var(--c-consult);   --cb: var(--b-consult); }
.t-departure { --c: var(--c-departure); --cb: var(--b-departure); }
.pill.type { background: var(--cb); color: var(--c); }
.type-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cb); color: var(--c); flex-shrink: 0; }
.type-ic.lg { width: 48px; height: 48px; }
.type-bar { position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 600; font-size: 12.5px; color: #fff; flex-shrink: 0; letter-spacing: 0;
  border: 2px solid rgba(255,255,255,.9);
}
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar.xs { width: 24px; height: 24px; font-size: 9.5px; border-width: 1.5px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.xl { width: 76px; height: 76px; font-size: 22px; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; }

.flag { font-size: 17px; line-height: 1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(40,61,122,.14);
  background: #fff; outline: none; width: 100%; transition: border .15s, box-shadow .15s, background .15s;
}
textarea.input { height: auto; min-height: 92px; padding: 13px 16px; resize: vertical; line-height: 1.55; }
.input:focus { background: #fff; border-color: rgba(74,99,176,.5); box-shadow: 0 0 0 4px rgba(74,99,176,.12); }
.input-ic { position: relative; }
.input-ic .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.input-ic .input { padding-left: 44px; }

.seg { display: inline-flex; background: rgba(40,61,122,.07); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { height: 34px; padding: 0 15px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(17,26,51,.12); }
.seg.full { display: flex; } .seg.full button { flex: 1; justify-content: center; height: 38px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.t-on { background: var(--c); color: #fff; border-color: transparent; }
.chip .n { font-size: 11px; opacity: .7; }

.switch { width: 40px; height: 24px; border-radius: 999px; background: rgba(17,26,51,.14); position: relative; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(16px); }
.switch.locked { opacity: .5; pointer-events: none; }

.progress { height: 6px; border-radius: 999px; background: rgba(17,26,51,.07); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--navy); transition: width .4s; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.kv .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kv .v { font-weight: 600; margin-top: 3px; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty .ic { color: var(--muted-2); margin-bottom: 8px; }

.locked-val { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-weight: 600; }

/* ============================================================
   Login
   ============================================================ */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art {
  position: relative; overflow: hidden; color: #fff; padding: 52px; margin: 16px; border-radius: 32px;
  background: linear-gradient(150deg, #34509A 0%, #223772 55%, #182957 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-art::before, .login-art::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
}
.login-art::before { width: 420px; height: 420px; background: #6E86CC; top: -120px; right: -100px; }
.login-art::after { width: 360px; height: 360px; background: #FFFFFF; bottom: -180px; left: -100px; opacity: .12; }
.login-art > * { position: relative; z-index: 1; }
.login-art .logo { width: 120px; }
.login-art h1 { font-weight: 600; font-size: 40px; line-height: 1.15; letter-spacing: -0.035em; max-width: 540px; }
.login-art h1 em { font-style: normal; color: #C9D5FF; }
.login-art .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 540px; }
.login-art .feat div { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); font-size: 12.5px; font-weight: 500; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 410px; }
.login-box .m-logo { display: none; width: 72px; margin: 0 auto 20px; }
.login-box h2 { font-size: 26px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-acc { text-align: left; padding: 10px 12px; border-radius: 16px; display: flex; gap: 10px; align-items: center; transition: background .15s, transform .15s; }
.demo-acc:hover { background: #fff; transform: translateY(-1px); }
.demo-acc .t { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.demo-acc .s { font-size: 12px; color: var(--muted); line-height: 1.25; margin-top: 2px; }

/* ============================================================
   STAFF shell
   ============================================================ */
.s-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.s-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 16px 0 16px 16px;
}
.s-side-in { /* grows with a long menu (min-height, not height) and no backdrop-filter inside the scrolling sidebar */
  min-height: 100%; display: flex; flex-direction: column; padding: 20px 12px; border-radius: 26px;
  background: rgba(255,255,255,.9); border: 1px solid var(--glass-brd); box-shadow: var(--sh-1);
}
.s-side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.s-side .brand img { width: 38px; height: 38px; border-radius: 12px; }
.s-side .brand .n { font-weight: 700; letter-spacing: .16em; font-size: 13px; color: var(--navy); }
.s-side .brand .s { font-size: 10.5px; color: var(--muted); }
.nav-sec { font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 6px 12px 8px; }
.nav-a {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 14px;
  color: var(--ink-2); font-weight: 500; font-size: 14px; position: relative; transition: background .15s;
}
.nav-a:hover { background: var(--navy-50); }
.nav-a.on { background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(40,61,122,.7); }
.nav-a .cnt { margin-left: auto; font-size: 10.5px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--bad); color: #fff; padding: 0 6px; }
.s-side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.6); }

.s-main { min-width: 0; }
.s-top {
  position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 32px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(to bottom, rgba(238,241,248,.85), rgba(238,241,248,0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.s-top h1 { font-size: 22px; }
.s-top .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.s-top .m-logo { display: none; width: 34px; height: 34px; border-radius: 10px; }
.s-content { padding: 8px 32px 56px; max-width: 1320px; }

.s-tabbar { display: none; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }

/* KPI tiles */
.kpi { padding: 18px; border-radius: var(--r-lg); text-align: left; transition: transform .15s, box-shadow .15s, background .15s; display: block; width: 100%; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: var(--glass-strong); }
.kpi .num { font-weight: 600; font-size: 36px; line-height: 1; margin-top: 18px; letter-spacing: -0.04em; color: var(--ink); }
.kpi .lbl { font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.kpi .meta { font-size: 12px; color: var(--muted); }

.hero-staff {
  border-radius: var(--r-xl); padding: 28px 30px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #33509C 0%, #22376F 100%);
  box-shadow: var(--sh-2);
}
.hero-staff::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #6E86CC; filter: blur(80px); opacity: .45; top: -180px; right: -60px; }
.hero-staff > * { position: relative; }
.hero-staff h2 { font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }

/* Plan / timeline */
.ev {
  position: relative; display: grid; grid-template-columns: 64px 44px minmax(0,1fr) auto; gap: 16px; align-items: center;
  padding: 16px 20px; border-radius: 20px;
}
.ev + .ev { margin-top: 10px; }
.ev .time { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.ev .time small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.ev .who { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev .route { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.ev .acts { display: flex; align-items: center; gap: 10px; }
.ev select.input { height: 38px; font-size: 12.5px; padding: 0 12px; border-radius: 999px; width: 180px; }

/* Table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.55); }
.tbl-wrap { overflow-x: auto; }

/* Patient detail */
.pd-head { display: flex; gap: 18px; align-items: center; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: rgba(40,61,122,.07); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 38px; padding: 0 16px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; }
.tabs button.on { color: var(--ink); background: #fff; box-shadow: 0 2px 8px -2px rgba(17,26,51,.12); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: rgba(17,26,51,.05); cursor: zoom-in; }
.photo img, .photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .cap { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; }
.photo .cap span { background: rgba(255,255,255,.85); color: var(--ink); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(8px); }

.flight { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.flight .code { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.flight .city { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.flight .t { font-weight: 600; margin-top: 6px; font-size: 13px; }
.flight .mid { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; min-width: 90px; font-weight: 500; }
.flight .mid .line { width: 100%; height: 1px; background: rgba(17,26,51,.12); position: relative; }
.flight .mid .line .ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(45deg); color: var(--navy); background: transparent; }

.team-slot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; }
.staff-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--glass-brd); background: rgba(255,255,255,.65); font-weight: 600; font-size: 12.5px; transition: all .15s; }
.staff-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.staff-chip.busy { opacity: .45; }
.staff-chip .avatar { border: 0; }

.perm-tbl td, .perm-tbl th { text-align: center; }
.perm-tbl td:first-child, .perm-tbl th:first-child { text-align: left; }
.perm-tbl tbody tr { cursor: default; }

/* Notification composer preview */
.phone-prev {
  border-radius: 40px; padding: 20px; min-height: 400px; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #4864B4, #1C2C5E 75%);
  border: 8px solid #0F1730; box-shadow: var(--sh-3);
}
.phone-prev::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #7088D0; filter: blur(70px); opacity: .45; top: -100px; left: -80px; }
.phone-prev > * { position: relative; }
.phone-prev .clock { text-align: center; font-weight: 500; font-size: 64px; letter-spacing: -0.04em; line-height: 1; margin-top: 22px; }
.phone-prev .date { text-align: center; font-size: 12.5px; opacity: .8; margin-top: 4px; }
.push {
  margin-top: 28px; background: rgba(255,255,255,.8); color: var(--ink); border-radius: 22px; padding: 13px 15px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: pushIn .4s ease;
}
.push .h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.push .h img { width: 20px; height: 20px; border-radius: 6px; }
.push .tt { font-weight: 600; font-size: 13px; margin-top: 6px; }
.push .bd { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; white-space: pre-wrap; }
@keyframes pushIn { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

.tpl { text-align: left; padding: 12px 14px; border-radius: 16px; display: flex; gap: 10px; align-items: center; transition: all .15s; }
.tpl .type-ic { width: 34px; height: 34px; }
.tpl.on { background: #fff; box-shadow: 0 0 0 2px var(--navy); }

/* ============================================================
   DRIVER
   ============================================================ */
.job { border-radius: 24px; overflow: hidden; }
.job + .job { margin-top: 14px; }
.job-top { padding: 18px 20px 0; display: flex; gap: 14px; align-items: center; }
.job-body { padding: 16px 20px 20px; }
.route-v { position: relative; padding-left: 26px; }
.route-v::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: rgba(17,26,51,.08); border-radius: 2px; }
.route-v .pt { position: relative; }
.route-v .pt + .pt { margin-top: 14px; }
.route-v .pt::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-sizing: border-box; }
.route-v .pt.end::before { background: var(--navy); }
.route-v .pt .n { font-weight: 600; }
.route-v .pt .a { font-size: 13px; color: var(--muted); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: rgba(17,26,51,.08); }
.steps i.on { background: var(--ok); }

/* ============================================================
   PATIENT app
   ============================================================ */
.p-shell { max-width: 540px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(112px + var(--safe-b)); position: relative; }
.p-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 22px 12px;
  background: linear-gradient(to bottom, rgba(238,241,248,.9), rgba(238,241,248,0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.p-top .logo { width: 38px; height: 38px; border-radius: 12px; }
.p-pad { padding: 4px 22px 0; }
.p-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.p-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; }
.p-sec h3 { font-size: 16px; }
.p-sec a, .p-sec button { font-size: 12.5px; font-weight: 600; color: var(--navy); }

/* Hero: one clean glass-tinted surface, no inner boxes, no patterns */
.p-hero {
  border-radius: 30px; padding: 26px 24px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, #34509A 0%, #283D7A 55%, #1F3168 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -28px rgba(30,45,100,.65);
}
.p-hero::before, .p-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; pointer-events: none; }
.p-hero::before { width: 280px; height: 280px; background: #7088D0; opacity: .5; top: -120px; right: -80px; }
.p-hero::after { width: 220px; height: 220px; background: #FFFFFF; opacity: .10; bottom: -110px; left: -60px; }
.p-hero .big { font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.p-hero .big small { font-size: 15px; letter-spacing: 0; font-weight: 500; opacity: .8; margin-left: 8px; }
.p-hero .lbl { font-size: 14px; opacity: .85; font-weight: 500; }
.p-hero h2 { font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.p-hero .sep { height: 1px; background: rgba(255,255,255,.16); margin: 20px 0 18px; }
.p-hero .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.p-hero .meta span { opacity: .8; }
.p-hero .meta b { font-weight: 600; }
.p-hero .flight .code { color: #fff; font-weight: 700; }
.p-hero .flight .city, .p-hero .flight .mid { color: rgba(255,255,255,.65); }
.p-hero .flight .mid .line { background: rgba(255,255,255,.3); }
.p-hero .flight .mid .line .ic { color: #fff; }
.p-hero .chip-g { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 600; }
.cd { display: flex; gap: 22px; }
.cd div { text-align: left; }
.cd b { display: block; font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.cd span { font-size: 12px; opacity: .75; font-weight: 500; display: block; margin-top: 6px; }

.p-card { border-radius: 24px; padding: 20px; }
.p-card + .p-card { margin-top: 12px; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa a, .qa button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.qa .ii { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--navy); border: 1px solid var(--glass-brd); box-shadow: var(--sh-1); backdrop-filter: var(--blur); transition: transform .15s; }
.qa a:active .ii { transform: scale(.94); }

.live { border-radius: 24px; padding: 20px; position: relative; overflow: hidden; }
.live.on { box-shadow: 0 0 0 1.5px rgba(20,160,107,.35), var(--sh-2); }
.live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(20,160,107,.5); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,160,107,.5); } 70% { box-shadow: 0 0 0 12px rgba(20,160,107,0); } 100% { box-shadow: 0 0 0 0 rgba(20,160,107,0); } }
.meet { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }

.prep-sec { border-radius: 22px; overflow: hidden; }
.prep-sec + .prep-sec { margin-top: 10px; }
.prep-h { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.ring { width: 44px; height: 44px; flex-shrink: 0; }
.prep-items { padding: 0 14px 10px; }
.prep-it { display: flex; gap: 12px; padding: 13px 6px; border-top: 1px solid var(--line-2); cursor: pointer; }
.prep-it .cb { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(17,26,51,.2); display: grid; place-items: center; flex-shrink: 0; color: #fff; transition: all .15s; margin-top: 1px; }
.prep-it.done .cb { background: var(--ok); border-color: var(--ok); }
.prep-it.done .tt { text-decoration: line-through; color: var(--muted); }
.prep-it .tt { font-weight: 600; font-size: 14.5px; }
.prep-it .ds { font-size: 13px; color: var(--muted); margin-top: 2px; }

.procedure { border-radius: 24px; padding: 22px; position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--sh-1); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.procedure .g { font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.procedure .g small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 8px; }

.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.month { border-radius: 20px; aspect-ratio: .82; position: relative; overflow: hidden; background: rgba(255,255,255,.6); border: 1px solid var(--glass-brd); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); }
.month.filled { border: 0; }
.month.filled img, .month.filled svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.month .lbl { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.9); color: var(--ink); font-weight: 600; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; z-index: 1; backdrop-filter: blur(8px); }
.month.due { background: #fff; color: var(--navy); border: 1.5px dashed rgba(40,61,122,.4); }
.month.lock { opacity: .6; }

.phase { display: flex; gap: 14px; padding: 16px; border-radius: 20px; }
.phase.now { background: #fff; box-shadow: 0 0 0 1.5px rgba(40,61,122,.25), var(--sh-2); }
.phase + .phase { margin-top: 8px; }

.video { border-radius: 24px; overflow: hidden; position: relative; aspect-ratio: 16/9; background: linear-gradient(145deg, #34509A, #1A2A5A); display: grid; place-items: center; color: #fff; box-shadow: var(--sh-2); }
.video::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #7088D0; filter: blur(60px); opacity: .45; top: -100px; right: -60px; }
.video > * { position: relative; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; }
.wash-step { display: flex; gap: 14px; }
.wash-step + .wash-step { margin-top: 16px; }
.wash-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--b-wash); color: var(--c-wash); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }

.prod { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.prod .im { aspect-ratio: 1; display: grid; place-items: center; position: relative; margin: 6px; border-radius: 18px; }
.prod .im .bottle { width: 40%; height: 64%; border-radius: 18px 18px 14px 14px; background: linear-gradient(160deg, #fff, #E9EDF7); box-shadow: 0 16px 30px -12px rgba(23,37,82,.3); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; position: relative; }
.prod .im .bottle::before { content: ""; position: absolute; top: -12px; width: 36%; height: 14px; border-radius: 6px 6px 0 0; background: var(--navy); }
.prod .im .bottle span { font-size: 7.5px; font-weight: 700; letter-spacing: .16em; color: var(--navy); }
.prod .bd { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.prod .pr { font-weight: 600; font-size: 15px; }

.p-tab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 40;
  width: calc(100% - 28px); max-width: 500px; display: flex; justify-content: space-around; padding: 7px;
  border-radius: 26px; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  border: 1px solid var(--glass-brd); box-shadow: 0 20px 44px -16px rgba(23,37,82,.3);
}
.p-tab a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 18px; margin: 0 2px; font-size: 11px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.p-tab a.on { color: #fff; background: var(--navy); box-shadow: 0 6px 14px -6px rgba(40,61,122,.55); }

.notif { display: flex; gap: 12px; padding: 16px; border-radius: 22px; }
.notif + .notif { margin-top: 10px; }
.notif.unread { background: #fff; }
.notif .ii { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--cb, rgba(40,61,122,.08)); color: var(--c, var(--navy)); }

.contact { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; }
.contact + .contact { margin-top: 8px; }

/* ============================================================
   Overlays
   ============================================================ */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 22px;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(24px); -webkit-backdrop-filter: saturate(1.6) blur(24px);
  border: 1px solid var(--glass-brd); box-shadow: 0 20px 44px -16px rgba(17,26,51,.3);
  animation: pushIn .35s ease;
}
.toast .ii { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; flex-shrink: 0; }
.toast.ok .ii { background: var(--ok); }
.toast .tt { font-weight: 600; font-size: 13px; }
.toast .bd { font-size: 12.5px; color: var(--ink-2); }

.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(17,26,51,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: rgba(255,255,255,.92); backdrop-filter: blur(30px); border: 1px solid var(--glass-brd); border-radius: 28px; box-shadow: var(--sh-3); animation: up .25s ease; }
.modal.wide { max-width: 860px; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 6px; }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 12px 24px 24px; }
.lightbox { max-width: 720px; width: 100%; }
.lightbox img, .lightbox svg { width: 100%; border-radius: 22px; display: block; }

.demo-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 6px; align-items: center;
  background: rgba(17,26,51,.82); backdrop-filter: blur(16px); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; font-size: 11.5px; font-weight: 600; box-shadow: var(--sh-3);
}
.demo-bar button { height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-box .m-logo { display: block; }
  .s-shell { grid-template-columns: 1fr; }
  .s-side { display: none; }
  .s-top { padding: 0 18px; height: 66px; }
  .s-top h1 { font-size: 18px; }
  .s-top .m-logo { display: block; }
  .s-top .hide-m { display: none; }
  .s-content { padding: 4px 18px calc(112px + var(--safe-b)); }
  .s-tabbar {
    display: flex; position: fixed; left: 14px; right: 14px; bottom: calc(14px + var(--safe-b)); z-index: 40; padding: 7px;
    border-radius: 26px; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
    border: 1px solid var(--glass-brd); box-shadow: 0 20px 44px -16px rgba(23,37,82,.3);
  }
  .s-tabbar a, .s-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 18px; margin: 0 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .s-tabbar .on { color: #fff; background: var(--navy); box-shadow: 0 6px 14px -6px rgba(40,61,122,.55); }
  .g4, .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .num { font-size: 32px; margin-top: 12px; }
  .kpi .type-ic { width: 32px; height: 32px; }
  .kpi .lbl { font-size: 11.5px; }
  .g2 { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 52px minmax(0,1fr); gap: 10px 12px; padding: 16px; }
  .ev .type-ic { display: none; }
  .ev .acts { grid-column: 1 / -1; flex-wrap: wrap; }
  .ev select.input { flex: 1; width: auto; }
  .hero-staff { padding: 24px; }
  .hero-staff h2 { font-size: 26px; }
  .tbl .hide-m { display: none; }
  .overlay { align-items: end; padding: 0; }
  .modal { border-radius: 28px 28px 0 0; max-height: 92vh; padding-bottom: var(--safe-b); }
  .demo-bar { display: none; }
}
@media (max-width: 420px) {
  .kv { grid-template-columns: 1fr 1fr; gap: 14px; }
  .demo-grid { grid-template-columns: 1fr; }
  .p-hero .big { font-size: 64px; }
  .cd { gap: 16px; }
  .cd b { font-size: 38px; }
  .flight .code { font-size: 22px; }
}

/* ============================================================
   Hint banner + patient plan editor (side panel)
   ============================================================ */
.hint { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; background: rgba(40,61,122,.06); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.hint .ic { color: var(--navy); margin-top: 1px; }
.hint b { color: var(--navy); }

.drawer-ov { place-items: stretch end; padding: 0; }
.drawer {
  width: min(560px, 100%); height: 100%; display: flex; flex-direction: column;
  background: #F8F9FC; border-left: 1px solid var(--line); box-shadow: -30px 0 60px -30px rgba(23,37,82,.35);
  animation: slideIn .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { padding: 22px 24px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-f { padding: 16px 24px calc(18px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }

.ed-sec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ed-sec:last-child { border-bottom: 0; }
.ed-sec h4 { font-size: 16px; font-weight: 600; }
.ed-sec > p { font-size: 13px; color: var(--muted); margin-top: 2px; margin-bottom: 4px; }
.ed-ev { margin-top: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ed-grid { display: flex; flex-direction: column; gap: 10px; }
.ed-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
.ed-l { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.ed-l span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.ed-c .input { height: 44px; }
.ed-team { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); transition: border .15s, background .15s; }
.ed-person.on { border-color: var(--navy); background: rgba(40,61,122,.04); }
.ed-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(40,61,122,.25); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ed-person.on .ed-check { background: var(--navy); border-color: var(--navy); }
.ev.clickable:hover { background: #fff; }

@media (max-width: 600px) {
  .drawer { width: 100%; border-left: 0; }
  .ed-row { grid-template-columns: 1fr; gap: 6px; }
  .ed-team { grid-template-columns: 1fr; }
  .drawer-h, .drawer-b, .drawer-f { padding-left: 18px; padding-right: 18px; }
}

/* ============================================================
   Case cards (doctor / team) + team list
   ============================================================ */
.sec-h { display: flex; align-items: center; gap: 10px; }
.sec-h h3 { font-size: 17px; }
.case { overflow: hidden; }
.case.mine { box-shadow: 0 0 0 1.5px rgba(23,136,94,.28), var(--sh-1); }
.case-h { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.case-time { min-width: 76px; padding: 8px 12px; border-radius: 14px; background: rgba(40,61,122,.07); text-align: center; }
.case-time b { display: block; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.case-time span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.case-b { padding: 18px 22px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
.case-f { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(40,61,122,.025); }
.case-lbl { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }

.team-list { display: flex; flex-direction: column; gap: 8px; }
.tm { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.tm.doc { background: rgba(40,61,122,.05); border-color: rgba(40,61,122,.14); }
.tm.empty-tm { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.tm.empty-tm .xs { color: var(--warn); opacity: .85; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { padding: 10px 12px; border-radius: 14px; background: rgba(40,61,122,.04); }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.facts b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 1px; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.88); border-radius: 999px; text-align: center; padding: 1px 0; }

@media (max-width: 960px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case-h, .case-b, .case-f { padding-left: 16px; padding-right: 16px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .case-h { gap: 12px 14px; }
  .case-h .grow { flex: 1 1 calc(100% - 110px); }
  .case-h > .pill, .case-h > .btn { order: 3; margin-left: 90px; }
}

/* Toolbar: search + filters (stacks on small screens) */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .search { flex: 1 1 320px; max-width: 440px; min-width: 0; }
.seg.scroll-x { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.seg.scroll-x::-webkit-scrollbar { display: none; }
.seg.scroll-x button { flex-shrink: 0; }
@media (max-width: 960px) {
  .toolbar .search { flex-basis: 100%; max-width: none; }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { flex: 1 0 auto; justify-content: center; }
}

/* ============================================================
   Hero (shared) — same language as the patient home card
   ============================================================ */
.hero-x h2 { font-size: 24px; }
.hero-sub { font-size: 14px; opacity: .82; }
.hero-ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; margin-top: 22px; }
.hero-stats > div { padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.hero-stats b { display: block; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.hero-stats > div > span { display: block; font-size: 12px; line-height: 1.3; opacity: .78; margin-top: 2px; }
.hero-x .btn.white { box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }

/* light sweep across hero cards */
.p-hero .sheen { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.p-hero .sheen::before { content: ""; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.13), transparent); transform: skewX(-12deg); }

/* ============================================================
   Motion — calm, purposeful, and off for reduced-motion users
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.15); } }
  @keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.2); } }
  @keyframes sweep { 0% { left: -60%; } 60%, 100% { left: 130%; } }
  @keyframes fill { from { transform: scaleX(0); } }
  @keyframes ringIn { from { stroke-dashoffset: 113.1; } }
  @keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
  @keyframes tick { from { transform: translateY(-8px); opacity: .2; } to { transform: none; opacity: 1; } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

  .rise { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }

  .p-hero::before, .hero-staff::before, .login-art::before, .video::before, .phone-prev::before { animation: drift1 14s ease-in-out infinite; }
  .p-hero::after, .login-art::after { animation: drift2 18s ease-in-out infinite; }
  .p-hero .sheen::before { animation: sweep 7s ease-in-out 1.2s infinite; }
  .hero-ic { animation: float 5s ease-in-out infinite; }

  .enter .progress > i { transform-origin: left; animation: fill 1.1s cubic-bezier(.2,.8,.2,1) .25s both; }
  .enter .ring circle:nth-child(2) { animation: ringIn 1.2s cubic-bezier(.2,.8,.2,1) .2s both; }
  .enter .p-tab a.on, .enter .s-tabbar .on, .enter .nav-a.on { animation: pop .4s ease both; }
  .cd b.tk { animation: tick .35s ease; }

  /* hover / press feedback */
  .card, .kpi, .ev, .case, .job, .prod, .notif, .contact, .tpl, .demo-acc, .qa .ii, .month, .photo, .thumb, .ed-person, .staff-chip {
    transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  }
  .ev.clickable:hover, .prod:hover, .demo-acc:hover, .case:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
  .qa a:hover .ii { transform: translateY(-3px); box-shadow: var(--sh-2); }
  .photo:hover, .thumb:hover, .month.filled:hover { transform: scale(1.03); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active, .qa a:active .ii, .ed-person:active, .staff-chip:active, .chip:active { transform: scale(.96); }
  .seg button, .tabs button, .p-tab a, .s-tabbar a, .nav-a { transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
  .live.on { animation: liveGlow 2.4s ease-in-out infinite; }
  @keyframes liveGlow { 0%, 100% { box-shadow: 0 0 0 1.5px rgba(23,136,94,.25), var(--sh-2); } 50% { box-shadow: 0 0 0 4px rgba(23,136,94,.14), var(--sh-2); } }
}

/* Filter bar — one calm, scrollable row */
.fbar { position: relative; margin-left: -2px; margin-right: -2px; }
.fbar-in { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(40,61,122,.06); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.fbar-in::-webkit-scrollbar { display: none; }
.fb { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.fb:hover { background: rgba(255,255,255,.7); }
.fb .fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.fb em { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgba(40,61,122,.08); color: var(--muted); }
.fb.on { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(40,61,122,.35); }
.fb.on em { background: var(--navy); color: #fff; }
.fb.zero { opacity: .45; }
@media (max-width: 960px) {
  .fbar::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 28px; border-radius: 0 999px 999px 0; background: linear-gradient(to right, transparent, rgba(243,245,250,.95)); pointer-events: none; }
}
@media (max-width: 960px) {
  .plan-acts { width: 100%; flex-wrap: wrap; }
  .plan-acts .btn { flex: 1 1 40%; padding: 0 12px; }
  .plan-acts .btn.soft { flex-basis: 100%; }
}

/* Drawer: fixed to viewport height so the middle section scrolls */
.overlay.drawer-ov { display: flex; justify-content: flex-end; align-items: stretch; padding: 0; overflow: hidden; }
.drawer { height: 100vh; height: 100dvh; max-height: 100dvh; min-height: 0; flex-shrink: 0; }
.drawer-h, .drawer-f { flex-shrink: 0; }
.drawer-b { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
body.lock { overflow: hidden; }

/* Hero stats: equal columns (max 4); 2×2 on phones; labels never break or overflow */
.hero-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.hero-stats[data-n="1"] { --n: 1; } .hero-stats[data-n="2"] { --n: 2; } .hero-stats[data-n="3"] { --n: 3; } .hero-stats[data-n="4"] { --n: 4; } .hero-stats[data-n="3l"] { --n: 3; }
.hero-stats > div { min-width: 0; }
.hero-stats > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .hero-stats[data-n="4"] { --n: 2; }
  .hero-stats[data-n="3l"] { --n: 1; gap: 6px; }
  .hero-stats[data-n="3l"] > div { display: flex; align-items: baseline; gap: 10px; padding: 9px 14px; }
  .hero-stats[data-n="3l"] > div > span { margin-top: 0; font-size: 13px; }
  .hero-stats > div { padding: 10px 12px; }
  .hero-stats b { font-size: 22px; }
}

/* ============================================================
   Flights
   ============================================================ */
.fl-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; }
.fl-card.late { box-shadow: 0 0 0 1.5px rgba(169,116,26,.3), var(--sh-1); }
.fl-time { min-width: 74px; padding: 9px 10px; border-radius: 14px; background: rgba(40,61,122,.07); text-align: center; }
.fl-time b { display: block; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.fl-time s { display: block; font-size: 12px; color: var(--muted); }
.fl-card.late .fl-time { background: var(--warn-bg); }
.fl-card.late .fl-time b { color: var(--warn); }
.fl-time span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.auto-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--navy); background: rgba(40,61,122,.06); padding: 6px 10px; border-radius: 10px; }
.auto-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--warn); }

/* ============================================================
   Reminders
   ============================================================ */
.rem-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(40,61,122,.08); color: var(--navy); flex-shrink: 0; }
.rem-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.rem-next { display: flex; align-items: center; gap: 14px; }
.rem-next.late { box-shadow: 0 0 0 1.5px rgba(169,116,26,.35), var(--sh-1); }
.rem-next.late .rem-ic { background: var(--warn-bg); color: var(--warn); }
.rem { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--line-2); text-align: left; }
.rem:first-child { border-top: 0; }
.rem-t { width: 46px; font-weight: 700; font-size: 14px; color: var(--navy); }
.rem b { display: block; font-size: 14px; font-weight: 600; }
.rem .grow span { display: block; font-size: 12px; color: var(--muted); }
.rem .cb { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(40,61,122,.25); display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: all .15s; }
.rem.done .cb { background: var(--ok); border-color: var(--ok); }
.rem.done b { text-decoration: line-through; color: var(--muted); }
.rem.late .rem-t { color: var(--warn); }

/* ============================================================
   Review & referral
   ============================================================ */
.stars { display: flex; gap: 6px; font-size: 34px; line-height: 1; color: #C9A33A; }
.stars button { color: rgba(40,61,122,.18); transition: transform .15s, color .15s; }
.stars button:hover, .stars button:hover ~ button { color: rgba(40,61,122,.18); }
.stars:hover button { color: #C9A33A; }
.stars button:hover ~ button { color: rgba(40,61,122,.18); }
.stars button:active { transform: scale(.9); }
.stars.on { font-size: 22px; letter-spacing: 2px; }
.stars .off { color: rgba(40,61,122,.15); }
.ref-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; border: 1.5px dashed rgba(40,61,122,.3); background: rgba(40,61,122,.03); }
.ref-code span { font-size: 18px; font-weight: 700; letter-spacing: .12em; color: var(--navy); }
.cert-teaser { display: flex; align-items: center; gap: 14px; }

/* ============================================================
   Certificate (screen + print)
   ============================================================ */
.cert-page { max-width: 980px; margin: 0 auto; }
.cert-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cert { background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--sh-2); aspect-ratio: 1.414; }
.cert-in { height: 100%; border: 1.5px solid rgba(40,61,122,.35); border-radius: 14px; padding: 4.2% 6%; display: flex; flex-direction: column; text-align: center; position: relative;
  background: radial-gradient(600px 300px at 50% 0%, rgba(40,61,122,.05), transparent 70%); }
.cert-in::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(40,61,122,.12); border-radius: 10px; pointer-events: none; }
.cert-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cert-top img { width: 13%; min-width: 64px; }
.cert-no { text-align: right; font-size: clamp(9px, 1.2vw, 12px); color: var(--muted); }
.cert-no b { display: block; color: var(--navy); font-size: clamp(10px, 1.4vw, 14px); letter-spacing: .04em; }
.cert-kicker { margin-top: 1%; font-size: clamp(9px, 1.2vw, 12px); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cert h1 { font-size: clamp(18px, 3.4vw, 36px); color: var(--navy); font-weight: 700; letter-spacing: -0.01em; margin-top: 1%; }
.cert-lead { font-size: clamp(10px, 1.35vw, 14px); color: var(--ink-2); max-width: 70%; margin: 1.5% auto 0; }
.cert-name { font-size: clamp(22px, 4.2vw, 44px); font-weight: 600; color: var(--ink); margin-top: 2.5%; padding-bottom: 1.5%; border-bottom: 1.5px solid rgba(40,61,122,.25); display: inline-block; align-self: center; min-width: 50%; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2%; margin-top: 3%; }
.cert-grid span { display: block; font-size: clamp(9px, 1.15vw, 12px); color: var(--muted); }
.cert-grid b { display: block; font-size: clamp(11px, 1.6vw, 17px); color: var(--navy); margin-top: 2px; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 4%; margin-top: auto; }
.cert-sign { text-align: left; font-size: clamp(9px, 1.15vw, 12px); }
.cert-sign .line { height: 1px; background: rgba(40,61,122,.4); margin-bottom: 6px; width: 80%; }
.cert-sign b { display: block; color: var(--ink); font-size: clamp(10px, 1.3vw, 13px); }
.cert-sign span, .cert-verify span { display: block; color: var(--muted); }
.cert-seal { width: clamp(56px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px rgba(40,61,122,.35); }
.cert-seal img { width: 70%; }
.cert-verify { text-align: right; font-size: clamp(9px, 1.15vw, 12px); }
.cert-verify b { display: block; color: var(--navy); font-size: clamp(9px, 1.15vw, 12px); word-break: break-all; }
.cert-note { font-size: clamp(8px, 1vw, 11px); color: var(--muted); margin-top: 2%; }
@media (max-width: 600px) { .cert { aspect-ratio: auto; } .cert-in { padding: 18px 14px; gap: 6px; } .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cert-foot { margin-top: 18px; } .cert-lead { max-width: none; } }
@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #fff !important; }
  body:not(.print-inv) * { visibility: hidden; }
  body:not(.print-inv) #cert, body:not(.print-inv) #cert * { visibility: visible; }
  #cert { position: fixed; inset: 0; border-radius: 0; box-shadow: none; padding: 8mm; aspect-ratio: auto; }
  #cert, #cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .p-tab, .s-tabbar, .demo-bar { display: none !important; }
}

/* ============================================================
   Shifts
   ============================================================ */
.sh-wrap { overflow-x: auto; }
.sh-tbl { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.sh-tbl th { padding: 12px 6px; font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; border-bottom: 1px solid var(--line); }
.sh-tbl th b { display: block; font-size: 16px; color: var(--ink); }
.sh-tbl th.today b { color: #fff; background: var(--navy); border-radius: 999px; width: 30px; height: 30px; line-height: 30px; margin: 2px auto 0; }
.sh-tbl td { padding: 6px; border-bottom: 1px solid var(--line-2); text-align: center; }
.sh-tbl .sh-name { text-align: left; padding-left: 16px; width: 210px; position: sticky; left: 0; background: rgba(255,255,255,.96); z-index: 1; }
.sh-group td { text-align: left; padding: 14px 16px 6px; font-size: 12.5px; font-weight: 700; color: var(--navy); background: rgba(40,61,122,.03); }
.sh-cell { width: 100%; min-width: 74px; height: 36px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted-2); background: rgba(40,61,122,.03); white-space: nowrap; }
.sh-cell:not([disabled]):hover { background: rgba(40,61,122,.08); }
.sh-cell.leave { background: var(--warn-bg); color: var(--warn); }
.sh-cell.sick { background: var(--bad-bg); color: var(--bad); }
.sh-cell.off { background: rgba(40,61,122,.08); color: var(--navy); }
.sh-cell[disabled] { cursor: default; }
.tm.away { border-color: rgba(169,116,26,.35); background: var(--warn-bg); }
.ed-person.away { border-style: dashed; }
.ed-person[disabled] { opacity: .5; cursor: not-allowed; }

/* ============================================================
   Smart plan suggestions
   ============================================================ */
.sug { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.sug input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.sug-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(40,61,122,.08); color: var(--navy); flex-shrink: 0; }
.sug-ic.warn { background: var(--warn-bg); color: var(--warn); }
.sug .grow b { display: block; font-size: 14px; margin-top: 6px; }
.sug .grow > span:last-child { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sug.info { cursor: default; background: var(--warn-bg); border-color: transparent; }

/* ============================================================
   Reports — single navy series, recessive grid, hover tooltip
   ============================================================ */
.rep-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rep-h h3 { font-size: 15px; }
.delta { font-weight: 700; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; padding: 2px 0; border-radius: 8px; }
.hb:hover { background: rgba(40,61,122,.04); }
.hb-l { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 10px; border-radius: 0 4px 4px 0; background: rgba(40,61,122,.06); overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.hb-v { font-weight: 600; color: var(--ink); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.cols { position: relative; height: 200px; margin-left: 40px; }
.cols-grid div { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(40,61,122,.12); }
.cols-grid span { position: absolute; left: -40px; top: -8px; width: 34px; text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols-bars { position: absolute; inset: 0 0 0 0; display: flex; align-items: flex-end; gap: 2px; }
.col-b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; cursor: default; }
.col-b i { display: block; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 2px; transition: background .15s; }
.col-b:hover i { background: var(--navy-600); }
.col-b span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.cols { margin-bottom: 24px; }
.enter .col-b i { transform-origin: bottom; animation: growUp .9s cubic-bezier(.2,.8,.2,1) both; }
.enter .hb-t i { transform-origin: left; animation: fill 1s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes growUp { from { transform: scaleY(0); } }
#tip { position: fixed; z-index: 300; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .12s; white-space: nowrap; box-shadow: var(--sh-2); }
.adh-tbl th, .adh-tbl td { text-align: center; padding: 10px 6px; font-size: 12px; }
.adh-tbl td:first-child, .adh-tbl th:first-child { text-align: left; }
.adh-tbl tbody tr { cursor: default; }
.adh { font-weight: 700; border-radius: 8px; }
.adh.ok { color: var(--ok); } .adh.part { color: var(--warn); } .adh.miss { color: var(--bad); } .adh.na { color: var(--muted-2); }
@media (max-width: 600px) {
  .sh-tbl { min-width: 560px; }
  .sh-tbl .sh-name { width: 132px; padding-left: 10px; }
  .sh-tbl .sh-name .avatar { display: none; }
  .sh-cell { min-width: 58px; font-size: 10.5px; }
}
@media (max-width: 600px) { .cols.dense .col-b:nth-child(even) span { display: none; } }

/* ============================================================
   PATIENT WEB + APP SHELL
   ============================================================ */
.pw { min-height: 100vh; }
.pw-side { display: none; }
.pw-main { max-width: 600px; margin: 0 auto; min-height: 100vh; }
.pw-content { padding: 4px 20px calc(120px + var(--safe-b)); }
.d-only { display: none !important; }
.pw-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.pw-col { display: flex; flex-direction: column; min-width: 0; }
.pw-col > .p-card + .p-card, .pw-col > .p-card + .live, .pw-col > .live + .p-card { margin-top: 12px; }
.pw-narrow { max-width: 760px; }
.p-subtabs { max-width: 620px; }
.p-subtabs button { padding: 0 8px; }
.mb8 { margin-bottom: 8px; }

@media (min-width: 1024px) {
  .pw { display: grid; grid-template-columns: 276px minmax(0, 1fr); }
  .pw-side { display: block; position: sticky; top: 0; height: 100vh; padding: 16px 0 16px 16px; }
  .pw-side-in { height: 100%; overflow-y: auto; display: flex; flex-direction: column; padding: 20px 12px; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--sh-1); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
  .pw-side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
  .pw-side .brand img { width: 38px; height: 38px; border-radius: 12px; }
  .pw-side .brand .n { font-weight: 700; letter-spacing: .16em; font-size: 13px; color: var(--navy); }
  .pw-side .brand .s { font-size: 10.5px; color: var(--muted); }
  .pw-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(40,61,122,.05); }
  .pw-help { margin-top: auto; padding: 14px; border-radius: 18px; background: rgba(40,61,122,.05); }
  .pw-main { max-width: none; margin: 0; }
  .pw-main .p-top { padding: 22px 36px 14px; }
  .pw-title { font-size: 24px; }
  .pw-content { padding: 6px 36px 56px; max-width: 1240px; }
  .d-only { display: block !important; }
  .m-only { display: none !important; }
  .p-tab { display: none; }
  .pw-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .pw-col > .p-sec:first-child { margin-top: 8px; }
  .p-hero ~ .pw-grid { margin-top: 28px; } /* hero'nun gölgesi altında başlıklar sıkışmasın (telefondaki hızlı erişim satırı masaüstünde gizli) */
  .hero-home { padding: 32px 34px; }
  .demo-bar { display: flex; }
}
@media (min-width: 640px) and (max-width: 1023px) { .pw-main { max-width: 720px; } }

/* ============================================================
   PROGRAM — day cards with timeline
   ============================================================ */
.day { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 24px; box-shadow: var(--sh-1); backdrop-filter: var(--blur); padding: 18px; }
.day + .day { margin-top: 14px; }
.day.today { box-shadow: 0 0 0 1.5px rgba(40,61,122,.35), var(--sh-2); }
.day.past { opacity: .72; }
.day-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.day-n { width: 54px; height: 54px; border-radius: 16px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.day-n span { font-size: 10px; opacity: .8; font-weight: 600; }
.day-n b { font-size: 20px; line-height: 1; }
.day.past .day-n { background: rgba(40,61,122,.15); color: var(--navy); }
.day-ev { margin-top: 16px; }
.tline { position: relative; }
.tl-row { display: grid; grid-template-columns: 50px 30px minmax(0, 1fr); gap: 8px; align-items: start; position: relative; padding-bottom: 14px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-row::before { content: ""; position: absolute; left: 72px; top: 30px; bottom: 0; width: 2px; background: rgba(40,61,122,.12); }
.tl-row:last-child::before { display: none; }
.tl-t { font-weight: 700; font-size: 13.5px; color: var(--navy); padding-top: 5px; font-variant-numeric: tabular-nums; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid rgba(40,61,122,.2); color: var(--navy); position: relative; z-index: 1; }
.tl-x { font-size: 14px; font-weight: 500; color: var(--ink); padding-top: 4px; line-height: 1.45; }
.day-tips { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(40,61,122,.05); }
.day-tips ul, .tips { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.day-tips li + li, .tips li + li { margin-top: 4px; }
.howto { display: flex; flex-direction: column; gap: 14px; }
.how { display: flex; gap: 12px; }
.how-n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }

/* ============================================================
   CARE — milestones, do/don't, activity table
   ============================================================ */
.ms-list { display: flex; flex-direction: column; gap: 10px; }
.ms { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 20px; box-shadow: var(--sh-1); overflow: hidden; }
.ms summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary .grow b { display: block; font-size: 14.5px; font-weight: 600; }
.ms summary .grow span { display: block; font-size: 12.5px; color: var(--muted); }
.ms-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(40,61,122,.08); color: var(--navy); flex-shrink: 0; }
.ms.past .ms-ic { background: var(--ok-bg); color: var(--ok); }
.ms.past summary .grow b { color: var(--muted); }
.ms.now { box-shadow: 0 0 0 1.5px rgba(40,61,122,.35), var(--sh-2); background: #fff; }
.ms.now .ms-ic { background: var(--navy); color: #fff; }
.ms-chev { color: var(--muted); transition: transform .2s; }
.ms[open] .ms-chev { transform: rotate(180deg); }
.ms-b { padding: 0 16px 16px 66px; }
.ms-b > p { font-size: 14px; color: var(--ink-2); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.do, .dont { padding: 12px 14px; border-radius: 14px; }
.do { background: var(--ok-bg); } .do .b { color: var(--ok); }
.dont { background: var(--bad-bg); } .dont .b { color: var(--bad); }
.do ul, .dont ul { margin: 6px 0 0; padding-left: 16px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.acts-tbl { display: flex; flex-direction: column; }
.act { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line-2); font-size: 14px; }
.act:first-child { border-top: 0; }
.act-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(40,61,122,.07); color: var(--navy); flex-shrink: 0; }
.act.ok .act-ic { background: var(--ok-bg); color: var(--ok); }
.act-when { text-align: right; font-weight: 600; font-size: 13px; color: var(--navy); white-space: nowrap; }
.act-when small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.act.ok .act-when { color: var(--ok); }

/* ============================================================
   PROGRESS — month cards, 6 slots, guide
   ============================================================ */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-brd); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.mcard-img { position: relative; aspect-ratio: 4/3; background: rgba(40,61,122,.05); display: grid; place-items: center; overflow: hidden; }
.mcard-img svg, .mcard-img img { width: 100%; height: 100%; object-fit: cover; }
.mcard-ph { color: var(--muted-2); }
.mcard-m { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.9); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); }
.mcard-b { padding: 12px 14px 14px; }
.mcard.lock { opacity: .62; }
.mcard.due .mcard-img { background: rgba(40,61,122,.08); color: var(--navy); }
.dots6 { display: flex; gap: 4px; }
.dots6 i { flex: 1; height: 5px; border-radius: 999px; background: rgba(40,61,122,.12); }
.dots6 i.on { background: var(--ok); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.slot { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.slot.has { border-color: rgba(23,136,94,.3); }
.slot-img { position: relative; aspect-ratio: 3/4; background: #eef1f6; overflow: hidden; }
.slot-img svg, .slot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-img img.ghost { opacity: .38; filter: grayscale(.4); }
.slot-hint { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.9); font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: var(--muted); }
.slot-b { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.slot-b .btn { margin-top: auto; }
.slot-b .xs { margin-bottom: 8px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; height: 100%; gap: 2px; background: #fff; }
.cmp > div { position: relative; overflow: hidden; }
.cmp span { position: absolute; left: 6px; bottom: 6px; background: rgba(15,27,61,.7); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.doc-note { border-left: 4px solid var(--navy); margin-top: 12px; }
.guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gcard { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-1); }
.gimg { position: relative; aspect-ratio: 2/3; background: #eee; }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gimg span { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.gb { padding: 12px 14px 14px; }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.vgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.vcell { display: flex; flex-direction: column; gap: 6px; }
.vcell > span { font-size: 11px; color: var(--muted); font-weight: 600; text-align: center; line-height: 1.25; }
.vcell .photo { aspect-ratio: 3/4; }
.vmiss { display: grid; place-items: center; color: var(--muted-2); border: 1.5px dashed rgba(40,61,122,.2); background: transparent; cursor: default; }
@media (max-width: 640px) {
  .slots, .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dodont { grid-template-columns: 1fr; }
  .ms-b { padding-left: 16px; }
  .tl-row { grid-template-columns: 44px 28px minmax(0, 1fr); }
  .tl-row::before { left: 65px; }
  .tl-dot { width: 28px; height: 28px; }
}
.prep-it.pay { background: var(--warn-bg); border-radius: 14px; border-top-color: transparent; }
.prep-it.pay .tt { color: var(--ink); }
.pay-amt { margin-top: 6px; font-size: 13px; color: var(--warn); }
.pay-amt b { font-size: 14px; }
.pay-card { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.7); font-size: 12.5px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.pay-card .ic { margin-top: 2px; color: var(--warn); }
.pay-card b { white-space: nowrap; }
.p-tab a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }

/* spacing between stacked columns/cards on phones */
@media (max-width: 1023px) { .pw-grid { gap: 12px; } }
.pw-col > * + .ms, .pw-col > .ms + * { margin-top: 12px; }

/* language picker */
.lang-block { padding: 12px 0 14px; border-bottom: 1px solid var(--line-2); }
.lang-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.lang-opt { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: left; transition: border-color .15s, background .15s; }
.lang-opt:hover { border-color: rgba(40,61,122,.3); }
.lang-opt.on { border-color: var(--navy); background: rgba(40,61,122,.05); color: var(--navy); font-weight: 600; }
.lang-opt .flag { font-size: 18px; }
.kv > div { min-width: 0; } .kv .v { overflow-wrap: anywhere; }

/* login: language button instead of inline segment */
.login-top { display: flex; align-items: center; gap: 10px; }
.login-box .login-top .m-logo { display: none; width: 44px; height: 44px; border-radius: 13px; margin: 0; }
@media (max-width: 960px) { .login-box .login-top .m-logo { display: block; } }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.lang-btn:hover { border-color: rgba(40,61,122,.3); }
.lang-btn .flag { font-size: 16px; }
.lang-btn .ic:first-child { color: var(--muted); }
.zoho-was { margin-top: 8px; font-size: 11.5px; color: var(--warn); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.pay-calc { padding: 14px 16px; border-radius: 16px; background: rgba(40,61,122,.05); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

/* contact person cards (coordinator / sales advisor) */
.contact.person { display: block; padding: 16px; }
.phone-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(40,61,122,.06); color: var(--navy); font-weight: 700; font-size: 15px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.phone-line:hover { background: rgba(40,61,122,.1); }
@media (min-width: 1024px) { .pw-col .contact.person + .contact.person { margin-top: 10px; } }

/* health form */
.hform { display: flex; flex-direction: column; gap: 12px; }
.hq { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 20px; padding: 16px; box-shadow: var(--sh-1); }
.hq-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hq-n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.seg.yn button { min-width: 64px; justify-content: center; }
.hrows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hrow { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; }
.hchecks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.hcheck { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; font-size: 13.5px; }
.hcheck.on { border-color: var(--navy); background: rgba(40,61,122,.05); font-weight: 600; }
.hcheck .cb, .hconfirm .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(40,61,122,.3); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.hcheck.on .cb, .hconfirm .cb.on { background: var(--navy); border-color: var(--navy); }
.hhab { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.hsel { width: 120px; }
.hconfirm { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(40,61,122,.05); font-size: 13.5px; cursor: pointer; }
.health-cta { display: flex; align-items: center; gap: 14px; box-shadow: 0 0 0 1.5px rgba(169,116,26,.3), var(--sh-1); }
.health-cta .rem-ic { background: var(--warn-bg); color: var(--warn); }
.case-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 22px; background: rgba(40,61,122,.03); border-bottom: 1px solid var(--line); color: var(--muted); }
@media (max-width: 640px) { .hrow { grid-template-columns: 1fr 1fr auto; } .hhab { grid-template-columns: 1fr; } .case-flags { padding: 10px 16px; } }

/* meeting point */
.meet-img { position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #eef1f6; }
.meet-img > img, .meet-img > svg, .lightbox > svg.meet-svg { width: 100%; display: block; height: auto; }
.meet-zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 4px; }
.meet-admin { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.meet-zoom { top: 10px; bottom: auto; }
@media (max-width: 640px) {
  .hq-h .grow { flex: 1 1 calc(100% - 40px); }
  .hq-h > .seg, .hq-h > .hsel { margin-left: 40px; }
}
.hr-row { padding: 16px 18px; }

/* external reviews */
.src-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.src-g { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); }
.src-tp-star { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; color: #fff; background: #00B67A; }
.stars-row { color: #E2A12B; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.stars-row span { color: rgba(40,61,122,.15); }
.rv { padding: 18px 20px; }
.rv.low { box-shadow: 0 0 0 1.5px rgba(200,54,76,.25), var(--sh-1); }
.rv-text { font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.rv .pill { height: auto; min-height: 22px; white-space: normal; line-height: 1.35; padding-top: 3px; padding-bottom: 3px; }
.rv-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rv-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-ph { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #eef1f6; }
.rv-ph svg, .rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* never let a grid column grow wider than the screen */
.grid > *, .g-main > *, .pw-grid > * { min-width: 0; }
@media (max-width: 1180px) { .g-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .g2 { grid-template-columns: minmax(0, 1fr); } .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-ev { align-items: flex-start; }
.mini-t { width: 46px; flex-shrink: 0; padding-top: 9px; }
.mini-ev .type-ic { margin-top: 0; }

/* ============================================================
   Plan editor — question per field, big targets, live change list
   ============================================================ */
.ed-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ed-checks span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.ed-checks .ok { background: var(--ok-bg); color: var(--ok); }
.ed-checks .bad { background: var(--bad-bg); color: var(--bad); }
.ed-step { display: flex; gap: 12px; align-items: flex-start; }
.ed-step > span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13.5px; font-weight: 700; flex-shrink: 0; margin-top: -2px; }
.ed-step h4 { font-size: 16.5px; font-weight: 700; }
.ed-step p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ed-ev { margin-top: 14px; padding: 0; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.ed-ev-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--cb); border-bottom: 1px solid var(--line-2); }
.ed-ev-h .type-ic { background: var(--c); color: #fff; }
.ed-ev-t { font-weight: 700; font-size: 16px; }
.ed-ev-r { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-day { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 13.5px; color: var(--ink); flex-shrink: 0; text-align: right; }
.ed-day small { font-size: 11.5px; font-weight: 600; color: var(--c); }
.ed-ev.is-done { opacity: .85; }
.ed-done { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ok); }
.ed-done b { display: block; font-size: 14px; } .ed-done span { font-size: 12.5px; color: var(--muted); }
.edq { padding: 14px 16px; border-top: 1px solid var(--line-2); transition: background .2s; }
.ed-ev-h + .edq { border-top: 0; }
.edq.chg { background: rgba(169,116,26,.07); box-shadow: inset 3px 0 0 var(--warn); }
.edq-l { display: flex; align-items: center; gap: 8px; color: var(--navy); flex-wrap: wrap; }
.edq-l b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.edq-h { font-size: 12.5px; color: var(--muted); margin: 3px 0 0 24px; }
.edq > .input, .edq .ed-time, .edq .ed-chips { margin-top: 10px; }
.edq .input { height: 48px; font-size: 16px; font-weight: 600; }
.ed-was { font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 2px 8px; border-radius: 999px; }
.ed-time { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; }
.ed-time button { height: 48px; padding: 0 12px; border-radius: 14px; background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: 13px; white-space: nowrap; }
.ed-time button:active { transform: scale(.95); }
.ed-time .input { text-align: center; }
.ed-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ed-chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px 6px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; text-align: left; }
.ed-chip > .ed-chip-n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ed-chip small { font-size: 11px; color: var(--warn); font-weight: 600; }
.ed-chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.ed-chip.on .avatar { border-color: #fff; }
.ed-chip[disabled] { opacity: .5; border-style: dashed; cursor: not-allowed; }
.ed-warn { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 13px; font-weight: 600; }
.ed-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ed-sum { padding: 12px 14px; border-radius: 14px; background: rgba(169,116,26,.08); font-size: 13px; }
.ed-sum b { color: var(--warn); }
.ed-sum ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.ed-sum li { margin-top: 2px; }
.ed-sum.none { background: var(--navy-50); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 560px) { .ed-docs { grid-template-columns: 1fr; } }
.ed-done { flex-wrap: wrap; }
.ed-done .grow { min-width: 140px; }
.drawer-f .row.gap6 > .btn.ghost { flex: 0 0 auto; padding: 0 18px; }
.drawer-f .row.gap6 > .btn.primary { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-sum ul { max-height: 66px; overflow-y: auto; }
.ed-time { grid-template-columns: 64px minmax(0,1fr) 64px; }
.ed-time button { padding: 0; font-size: 12.5px; }
.ed-time .input { padding: 0 8px; min-width: 0; }
.ed-time { grid-template-columns: 1fr 1fr; grid-template-areas: "in in" "m p"; }
.ed-time .input { grid-area: in; font-size: 18px; }
.ed-time button:first-child { grid-area: m; height: 40px; }
.ed-time button:last-child { grid-area: p; height: 40px; }
.ed-chips { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.ed-chip .avatar { flex-shrink: 0; width: 28px; height: 28px; }
.resp-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.resp-row + .resp-row { border-top: 1px solid var(--line-2); }
.resp-row:first-of-type { margin-top: 4px; }
.resp-acts { display: flex; gap: 6px; flex-shrink: 0; }
.resp-acts .icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; }
.resp-acts .icon-btn.wa { background: rgba(31,157,85,.1); color: var(--wa); }
/* message templates: icon above label, never overflows */
.tpl { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 6px 12px; min-width: 0; min-height: 92px; border: 1.5px solid transparent; }
.tpl .small.b { font-size: 12.5px; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }
.tpl .type-ic { width: 40px; height: 40px; }
.tpl.on { box-shadow: none; border-color: var(--navy); background: rgba(40,61,122,.05); }
.tpl.on .type-ic { background: var(--c, var(--navy)); color: #fff; }
.send-row > .btn { flex: 1 1 200px; justify-content: center; }
.list-row.top { align-items: flex-start; }

/* shared rides (same place + same pick-up time) */
.ride { border: 2px solid var(--navy); border-radius: 22px; background: linear-gradient(180deg, rgba(40,61,122,.10), rgba(40,61,122,.03)); margin-top: 14px; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(40,61,122,.55); }
.ride.mixed { border-color: var(--warn); background: rgba(169,116,26,.05); }
.ride-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; background: linear-gradient(135deg, #34509A, #1F3168); color: #fff; }
.ride.mixed .ride-h { background: linear-gradient(135deg, #B9852A, #8E6014); }
.ride-h .b { color: #fff; }
.ride-h > .grow { flex: 1 1 220px; }
.ride-h .input { width: auto; min-width: 190px; flex: 1 1 190px; height: 40px; background: #fff; color: var(--ink); }
.ride-h .row.small { color: #fff; }
.ride-t { font-weight: 700; font-size: 20px; color: #fff; line-height: 1.1; text-align: center; min-width: 58px; }
.ride-t small { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); }
.ride-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ride-names { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 2px; }
.ride-warn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; color: var(--warn); font-weight: 600; font-size: 13px; background: var(--warn-bg); }
.ride-b { position: relative; padding: 4px 10px 10px 38px; }
.ride-b::before { content: ""; position: absolute; left: 21px; top: 34px; bottom: 44px; width: 2px; border-radius: 2px; background: rgba(40,61,122,.28); }
.ride-seat { position: relative; }
.ride-seat .ev { margin-top: 8px; }
.ride-n { position: absolute; left: -28px; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #EEF1F8; z-index: 1; }
.ride.mixed .ride-n { background: var(--warn); }
/* "My patients": one block per procedure type */
.case-sec { margin-top: 26px; padding-left: 14px; border-left: 3px solid var(--c, var(--navy)); }
.case-sec-h { display: flex; align-items: center; gap: 10px; }
.case-sec-h h3 { font-size: 17px; }
.case-sec-h .type-ic { width: 34px; height: 34px; }
.case-sec, .case-sec .col, .case-sec .col > * { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .case-sec { padding-left: 10px; } }

/* planning date picker */
.datebar { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 6px 20px -12px rgba(17,26,51,.18); }
.db-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 2px 10px; }
.db-top .icon-btn { width: 36px; height: 36px; }
.db-today { height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(40,61,122,.07); color: var(--navy); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.db-cal { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; padding: 6px 10px; border-radius: 14px; color: var(--navy); text-align: left; }
.db-cal:hover { background: rgba(40,61,122,.06); }
.db-cal span { display: flex; flex-direction: column; min-width: 0; }
.db-cal b { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-cal small { font-size: 12px; color: var(--muted); font-weight: 600; }
.db-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.db-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 14px; color: var(--ink); }
.db-day small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: capitalize; }
.db-day b { font-size: 17px; }
.db-day:hover { background: rgba(40,61,122,.06); }
.db-day.past { opacity: .55; }
.db-day.today b { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.db-day.on { background: linear-gradient(135deg, #34509A, #1F3168); color: #fff; opacity: 1; }
.db-day.on small, .db-day.on b { color: #fff; }
.db-n { font-size: 11px; font-weight: 700; min-width: 20px; height: 18px; line-height: 18px; border-radius: 9px; padding: 0 5px; color: var(--muted); background: rgba(40,61,122,.07); text-align: center; }
.db-n.bad { color: var(--bad); background: var(--bad-bg); }
.db-day.on .db-n { background: rgba(255,255,255,.2); color: #fff; }
.db-day.on .db-n.bad { background: #fff; color: var(--bad); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-grid > small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: capitalize; padding-bottom: 4px; }
.cal-d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--ink); }
.cal-d:hover { background: rgba(40,61,122,.06); }
.cal-d.past { opacity: .5; }
.cal-d.today b { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.cal-d.on { background: linear-gradient(135deg, #34509A, #1F3168); color: #fff; opacity: 1; }
.cal-d.on b { color: #fff; } .cal-d.on .db-n { background: rgba(255,255,255,.2); color: #fff; }

/* notification composer: patient picker */
.np-cur { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(40,61,122,.05); border: 1.5px solid var(--navy); }
.np-search { position: relative; }
.np-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.np-search .input { padding-left: 40px; }
.np-list { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.np-g + .np-g { margin-top: 6px; }
.np-g[hidden], .np-r[hidden], .np-hint[hidden], .np-none[hidden] { display: none; }
.np-h { display: flex; align-items: center; gap: 6px; padding: 8px 6px 6px 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.np-h svg { flex-shrink: 0; color: var(--muted); }
.np-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-h em { font-style: normal; flex-shrink: 0; font-size: 11.5px; color: var(--muted); background: rgba(40,61,122,.07); border-radius: 9px; padding: 0 7px; line-height: 18px; }
.np-hint, .np-none { padding: 2px 8px 8px; }
.np-r { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; color: var(--ink); }
.np-r:hover { background: rgba(40,61,122,.05); }
.np-r.on { background: rgba(40,61,122,.06); color: var(--navy); }
.np-r + .np-r { margin-top: 3px; }
.np-r > .grow { display: flex; flex-direction: column; }
.np-r b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-r small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-empty { padding: 40px 24px; color: var(--navy); }
.np-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(40,61,122,.25); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.np-r.on .np-box { background: var(--navy); border-color: var(--navy); }
.np-all { margin-left: auto; flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--navy); text-transform: none; letter-spacing: 0; padding: 3px 8px; border-radius: 8px; background: rgba(40,61,122,.07); }
.np-all:hover { background: rgba(40,61,122,.13); }
.np-count { width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.np-rc { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.np-rc:first-child { border-top: 0; }
.icon-btn.sm { width: 28px; height: 28px; }
.hint.warn { background: var(--warn-bg); color: var(--ink); } .hint.warn svg { color: var(--warn); flex-shrink: 0; }
.np-cur .b, .np-cur .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .np-cur .btn { flex-shrink: 0; }

.np-all .np-box { width: 16px; height: 16px; border-radius: 5px; border-width: 1.5px; }
.np-all.on .np-box { background: var(--navy); border-color: var(--navy); }

/* ===== accounting (owner only) ===== */
.ac-chart { --ac-in: #283D7A; --ac-out: #C98A9A; }
.ac-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 12px; }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ac-in { background: var(--ac-in); } .ac-out { background: var(--ac-out); }
.ac-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 200px; align-items: end; border-bottom: 1px solid var(--line); }
.ac-m { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; cursor: default; }
.ac-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.ac-pair i { width: 42%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; transition: opacity .2s; }
.ac-m:hover .ac-pair i { opacity: .75; }
.ac-m span { font-size: 10.5px; color: var(--muted); margin-top: 6px; transform: translateY(100%); height: 0; white-space: nowrap; }
.ac-chart { padding-bottom: 22px; }
.pl-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 4px; }
.pl-h:first-child { margin-top: 0; }
.pl-r { display: grid; grid-template-columns: 1fr auto 110px; gap: 12px; align-items: center; padding: 9px 6px; border-radius: 10px; font-size: 14px; }
.pl-r[onclick] { cursor: pointer; } .pl-r[onclick]:hover { background: rgba(40,61,122,.05); }
.pl-l { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); }
.pl-l svg { color: var(--muted); flex-shrink: 0; }
.pl-p { font-size: 12px; color: var(--muted); text-align: right; }
.pl-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-r.tot { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; font-weight: 700; }
.pl-r.tot .pl-l { color: var(--ink); }
.pl-r.net { margin-top: 10px; background: var(--ok-bg); font-weight: 700; font-size: 16px; }
.pl-r.net .pl-l, .pl-r.net .pl-v { color: var(--ok); }
.pl-r.net.neg { background: var(--bad-bg); } .pl-r.net.neg .pl-l, .pl-r.net.neg .pl-v { color: var(--bad); }
.neg-t { color: var(--bad); } .pos-t { color: var(--ok); }
.ac-tile span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.ac-tile b { display: block; font-size: 26px; margin-top: 6px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ac-doc { display: flex; gap: 16px; align-items: flex-start; }
.ac-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ac-kpis div { background: rgba(40,61,122,.05); border-radius: 12px; padding: 10px; min-width: 0; }
.ac-kpis b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-kpis span { font-size: 11.5px; color: var(--muted); }
.ac-tbl td, .ac-tbl th { padding: 12px 14px; }
.ac-tbl td.r, .ac-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-tbl tbody tr { cursor: default; }
.ac-tbl tr.tot td { font-weight: 700; border-top: 1px solid var(--line); background: rgba(40,61,122,.03); }
.ac-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ac-row:first-child { border-top: 0; }
.ac-row .r { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ac-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: rgba(40,61,122,.07); color: var(--navy); }
.ac-ic.in { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 640px) {
  .ac-tbl .hm { display: none; }
  .ac-tbl td, .ac-tbl th { padding: 11px 10px; }
  .ac-bars { height: 160px; gap: 2px; }
  .ac-m span { font-size: 9.5px; }
  .ac-m:nth-child(even) span { visibility: hidden; }
  .pl-r { grid-template-columns: 1fr auto 92px; gap: 8px; font-size: 13.5px; }
  .ac-tiles { grid-template-columns: 1fr; gap: 10px; }
  .ac-tiles .ac-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
  .ac-tiles .ac-tile b { margin-top: 0; font-size: 20px; }
}
.ac-ctl { display: flex; gap: 12px; flex-wrap: wrap; }
.ac-ctl .seg { flex: 1 1 340px; }
.ac-ctl .seg button { padding: 0 8px; }
@media (max-width: 640px) { .ac-ctl .seg button { font-size: 12px; padding: 0 4px; gap: 4px; } .ac-ctl .seg button svg { display: none; } }

/* ===== ön muhasebe ===== */
.ac-top { display: flex; flex-direction: column; gap: 12px; }
.ac-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: rgba(40,61,122,.06); transition: background .2s, color .2s; }
.ac-tabs button:hover { background: rgba(40,61,122,.1); }
.ac-tabs button.on { background: var(--navy); color: #fff; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-kpis6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ac-kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ac-kpi b { display: block; font-size: 22px; margin-top: 6px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-kpi small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ac-kpi.bad b { color: var(--bad); } .ac-kpi.warn b { color: var(--warn); } .ac-kpi.ok b { color: var(--ok); }
.ac-kpi.bad { box-shadow: inset 0 0 0 1.5px rgba(200,54,76,.25); }
.ac-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: 14px; }
.ac-row.clickable { cursor: pointer; border-radius: 12px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.ac-row.clickable:hover { background: rgba(40,61,122,.04); }
.ac-row.sel { background: rgba(40,61,122,.07); }
.ac-row .r .pill { margin-top: 4px; }
.ac-pay { flex-shrink: 0; }
.np-box.on { background: var(--navy); border-color: var(--navy); }
.ac-fc { display: grid; grid-template-columns: 56px 1fr 80px; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.ac-fc span { color: var(--muted); }
.ac-fc div { display: flex; flex-direction: column; gap: 3px; }
.ac-fc i { display: block; height: 7px; border-radius: 4px; min-width: 2px; }
.ac-fc b { text-align: right; font-variant-numeric: tabular-nums; }
.ac-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.ac-mini div { background: rgba(40,61,122,.05); border-radius: 12px; padding: 10px; min-width: 0; }
.ac-mini span { display: block; font-size: 11.5px; color: var(--muted); }
.ac-mini b { display: block; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 8px; }
.ac-filters .input { height: 42px; }
.ac-bulk { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(23,37,82,.6); }
.ac-bulk .btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.ac-bulk .btn.primary { background: #fff; color: var(--navy); }
.ac-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--navy); }
.ac-dot.bad { background: var(--bad); } .ac-dot.warn { background: var(--warn); } .ac-dot.ok { background: var(--ok); }
.ac-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ac-acc { text-align: left; border: 1.5px solid transparent; }
.ac-acc.on { border-color: var(--navy); }
.ac-acc span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ac-acc b { display: block; font-size: 21px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ac-acc small { font-size: 12px; color: var(--muted); }
.ac-billhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: rgba(40,61,122,.05); }
.ac-billhead .r { text-align: right; }
.ac-big { font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.ac-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-terms button { height: 28px; padding: 0 10px; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--navy); background: rgba(40,61,122,.07); }
.ac-terms button:hover { background: rgba(40,61,122,.14); }
.ac-calc { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: rgba(40,61,122,.05); font-size: 13px; color: var(--ink-2); }
.ac-calc .tot { margin-left: auto; font-size: 14.5px; color: var(--ink); }
.ac-calc small { color: var(--muted); }
.ac-stmt { margin-top: 8px; max-height: 420px; overflow-y: auto; }
.ac-st { display: grid; grid-template-columns: 70px 1fr auto 96px; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line-2); cursor: pointer; }
.ac-st:hover { background: rgba(40,61,122,.04); }
.ac-stb { text-align: right; font-variant-numeric: tabular-nums; }
.ac-bulklist { max-height: 260px; overflow-y: auto; }
@media (max-width: 860px) { .ac-filters { grid-template-columns: 1fr 1fr; } .ac-filters .np-search { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .ac-tabs button { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .ac-tabs button svg { display: none; }
  .ac-actions .btn { flex: 1; justify-content: center; padding: 0 10px; }
  .ac-kpis6 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ac-kpi b { font-size: 18px; }
  .ac-row .ac-pay { display: none; }
  .ac-st { grid-template-columns: 54px 1fr auto; } .ac-stb { display: none; }
  .ac-accs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ac-acc b { font-size: 17px; }
  .ac-bulk { top: 64px; }
}
.job-pax .list-row { padding: 10px 0; } .job-pax { border-top: 1px solid var(--line-2); }

/* ---------- transfer list ---------- */
.tl-blk { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.tl-blk .tl-row::before { display: none; } /* transfer list shares the class name with the day timeline — no timeline line here */
.tl-row { display: flex; gap: 12px; padding: 10px 0 2px; border-top: 1px solid var(--line-2); margin-top: 10px; }
.tl-t { font-weight: 700; font-size: 16px; color: var(--navy); min-width: 48px; }
.rec-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.rec-row:last-child { border-bottom: 0; }
.pm-row .np-box { margin-top: 2px; background: #fff; cursor: pointer; }
.pm-row .np-box.on { background: var(--navy); border-color: var(--navy); }
.pm-row.sent { opacity: .62; }
.db-n { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.db-n svg { width: 10px; height: 10px; }
/* ---------- sales panel ---------- */
.sl-card { padding: 16px; border-left: 4px solid var(--ok); }
.sl-card.miss { border-left-color: var(--bad); }
.sl-card a.b { color: var(--ink); }
.sl-docs { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-doc { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; }
.sl-doc.ok { background: var(--ok-bg); color: var(--ok); }
.sl-doc.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(200,54,76,.25); }
.sl-doc:not([disabled]) { cursor: pointer; }
.sl-doc[disabled] { opacity: 1; cursor: default; }
.prep-top { border: 1.5px solid rgba(40,61,122,.18); }
.prep-top .list-row { padding: 11px 0; }
.prep-top .prep-it { padding: 11px 0; }
.rem-ic.bad { background: var(--bad-bg); color: var(--bad); }
.prep-top .prep-it .tt { font-size: 13.5px; } .prep-top .prep-it .ds { font-size: 12px; }
.pay-box { padding: 12px 0; border-top: 1px solid var(--line-2); }
.pay-opts { margin-left: 44px; }
.pay-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--muted); }
.pay-opt span { flex: 1; min-width: 0; line-height: 1.4; }
.pay-opt span svg { vertical-align: -2px; margin-right: 3px; }
.pay-opt small { font-size: 11px; }
.pay-opt b { font-weight: 600; color: var(--ink-2); white-space: nowrap; }

.rc-plist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.rc-p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; font-size: 13px; }
.rc-p:hover { border-color: var(--navy); }

/* clinic photos (surgery day / after wash) */
.cp-set + .cp-set { padding-top: 16px; border-top: 1px solid var(--line-2, rgba(17,26,51,.07)); }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.cp-ph { position: relative; }
.cp-ph .photo { aspect-ratio: 3/4; border-radius: 12px; }
.cp-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(17,26,51,.62); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cp-add { aspect-ratio: 3/4; border-radius: 12px; border: 1.5px dashed rgba(40,61,122,.28); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; cursor: pointer; background: rgba(40,61,122,.03); }
.cp-add:hover { background: var(--navy-50); }
.shoot.due { border-left: 4px solid var(--warn); }
.shoot.done { border-left: 4px solid var(--ok); }

/* day buttons + calendar: the buttons scroll sideways, the calendar button always stays visible */
.day-seg { flex-wrap: nowrap; max-width: 100%; min-width: 0; }
.day-seg .seg { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.day-seg .seg::-webkit-scrollbar { display: none; }
.day-seg .seg button { flex-shrink: 0; white-space: nowrap; }
.day-seg > .icon-btn { flex-shrink: 0; }
/* renewals & missing-shoot lists: rows sit inside the card with their own padding */
.rn-list { padding: 6px; }
.rn-row { cursor: pointer; padding: 12px 14px; border-radius: 16px; border-bottom: 0; }
.rn-row + .rn-row { border-top: 1px solid var(--line-2); border-top-left-radius: 0; border-top-right-radius: 0; }
.rn-row:hover { background: rgba(40,61,122,.04); }
.rn-row .type-ic { width: 42px; height: 42px; }
.rn-row .pill { margin-top: 4px; }
/* accounting setup: sub-item chips with a remove button */
.st-sub { display: inline-flex; align-items: center; gap: 4px; padding-right: 6px; }
.st-sub button { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 2px; cursor: pointer; border-radius: 50%; }
.st-sub button:hover { color: var(--bad); background: var(--bad-bg); }
.input.sm { height: 36px; font-size: 13.5px; }
.st-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.st-icons button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.st-icons button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* setup tab: side by side on desktop (segment hidden), one part at a time on a phone */
@media (min-width: 900px) { .st-seg { display: none; } .st-grid { margin-top: 0; } }
@media (max-width: 899px) { .st-grid { grid-template-columns: 1fr !important; } .st-cats .st-part-accs, .st-accs .st-part-cats { display: none; } }

/* ---------- leave requests ---------- */
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.lv-card { display: flex; gap: 14px; padding: 16px; align-items: flex-start; border-left: 4px solid var(--line); }
.lv-card.pending { border-left-color: var(--warn); }
.lv-card.approved { border-left-color: var(--ok); }
.lv-card.rejected { border-left-color: var(--bad); }
.lv-card.cancelled { opacity: .6; }
.lv-date { flex-shrink: 0; width: 58px; border-radius: 16px; background: linear-gradient(160deg, #34509A, #1F3168); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; line-height: 1.05; }
.lv-date b { font-size: 20px; font-weight: 700; }
.lv-date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.lv-date i { width: 14px; height: 1.5px; background: rgba(255,255,255,.5); margin: 5px 0; border-radius: 2px; }
.lv-note { color: var(--ink-2); font-style: italic; }
.lv-answer { color: var(--ink-2); background: var(--navy-50); padding: 6px 10px; border-radius: 10px; }
.lv-impact { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ok); }
.lv-impact span { display: inline-flex; align-items: center; gap: 6px; }
.lv-impact .warn { color: var(--warn); }
.lv-lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.lv-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lv-type { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.lv-type span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex-shrink: 0; }
.lv-type b { font-size: 13.5px; font-weight: 600; }
.lv-type.on { border-color: var(--navy); background: var(--navy-50); box-shadow: 0 0 0 3px rgba(40,61,122,.08); }
.lv-type.on span { background: var(--navy); color: #fff; }
.lv-range { display: flex; align-items: flex-end; gap: 8px; }
.lv-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lv-range small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lv-arrow { color: var(--muted); padding-bottom: 12px; }
.lv-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(160deg, #34509A, #1F3168); color: #fff; }
.lv-sum > div { display: flex; flex-direction: column; gap: 2px; }
.lv-sum b { font-size: 17px; }
.lv-sum span, .lv-sum small { font-size: 12.5px; opacity: .85; }
.lv-sum .r { text-align: right; }
.lv-sum.bad { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 600px) { .lv-grid { grid-template-columns: 1fr; } }
[id^="lv-act-"] { flex-wrap: nowrap !important; }
[id^="lv-act-"] .btn { flex: 1; justify-content: center; }
.lv-range .input { padding: 0 10px; font-size: 14px; min-width: 0; }

/* ---------- personnel & birthdays ---------- */
.bd-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bd-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.bd-card.soon { border-color: rgba(40,61,122,.25); background: var(--navy-50); }
.bd-card.today { background: linear-gradient(160deg, #34509A, #1F3168); color: #fff; border-color: transparent; }
.bd-card.today .muted { color: rgba(255,255,255,.8); }
.bd-date { width: 46px; height: 50px; border-radius: 14px; background: linear-gradient(160deg, #34509A, #1F3168); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1.05; }
.bd-card.today .bd-date { background: rgba(255,255,255,.18); }
.bd-date b { font-size: 18px; } .bd-date small { font-size: 10px; text-transform: uppercase; opacity: .85; }
.hr-sec { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.hr-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ac-bday { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); text-decoration: none; background: linear-gradient(90deg, rgba(40,61,122,.08), rgba(255,255,255,.9)); }
.ac-bday > svg:first-child { color: var(--navy); flex-shrink: 0; }

/* ---------- leave timeline ---------- */
.lc { padding: 0; overflow: hidden; }
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 16px 8px; }
.lc-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-range { display: flex; flex-direction: column; min-width: 170px; text-align: center; }
.lc-range b { font-size: 16px; } .lc-range small { font-size: 11.5px; color: var(--muted); }
.lc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 16px 14px; font-size: 12.5px; color: var(--ink-2); }
.lc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lc-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; }
.t-annual.lc-dot, .lc-bar.t-annual { background: linear-gradient(135deg, #4A63B0, #283D7A); }
.t-excuse.lc-dot, .lc-bar.t-excuse { background: linear-gradient(135deg, #2E8796, #1F6B77); }
.t-sick.lc-dot, .lc-bar.t-sick { background: linear-gradient(135deg, #D4566A, #B23047); }
.t-unpaid.lc-dot, .lc-bar.t-unpaid { background: linear-gradient(135deg, #8E98B2, #5F6B88); }
.lc-dot.pend { background: var(--warn-bg); outline: 1.5px dashed var(--warn); outline-offset: -1.5px; }
.lc-body { display: flex; border-top: 1px solid var(--line); }
.lc-names { width: 190px; flex-shrink: 0; border-right: 1px solid var(--line); background: #fff; }
.lc-scroll { flex: 1; overflow-x: auto; scroll-behavior: smooth; }
.lc-grid { position: relative; }
.lc-hd { height: 64px; border-bottom: 1px solid var(--line); }
.lc-months { display: flex; height: 22px; }
.lc-months span { font-size: 11px; font-weight: 700; color: var(--navy); text-transform: capitalize; padding: 6px 8px 0; border-left: 1.5px solid rgba(40,61,122,.15); white-space: nowrap; overflow: hidden; }
.lc-months span:first-child { border-left: 0; }
.lc-months em { font-style: normal; position: sticky; left: 8px; }
.lc-months span { overflow: visible; }
.lc-days { display: flex; height: 42px; }
.lc-days span { width: 36px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.lc-days small { font-size: 10px; color: var(--muted); font-weight: 600; }
.lc-days b { font-size: 13px; color: var(--ink); width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 999px; }
.lc-days .wk small, .lc-days .wk b { color: var(--muted-2); }
.lc-days .today b { background: var(--navy); color: #fff; }
.lc-g { height: 30px; background: #F6F8FC; border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--navy); padding: 8px 14px 0; }
.lc-nm { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.lc-row { position: relative; height: 52px; border-bottom: 1px solid var(--line-2); }
.lc-bg { position: absolute; inset: 0; display: flex; }
.lc-bg i { width: 36px; flex-shrink: 0; }
.lc-bg i.wk { background: rgba(40,61,122,.035); }
.lc-bg i.today { background: rgba(40,61,122,.07); }
.lc-now { position: absolute; top: 64px; bottom: 0; width: 2px; margin-left: -1px; background: var(--navy); opacity: .35; pointer-events: none; }
.lc-bar { position: absolute; top: 9px; height: 34px; border: 0; border-radius: 11px; color: #fff; font: inherit; font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; overflow: hidden; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(23,37,82,.55); }
.lc-bar span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lc-bar b { font-weight: 700; flex-shrink: 0; opacity: .9; }
.lc-bar b.lc-short { margin: 0 auto; opacity: 1; }
.lc-bar:has(.lc-short) { padding: 0 1px; justify-content: center; } .lc-bar b.lc-short { font-size: 11px; letter-spacing: -.2px; }
.lc-bar.pend { background: var(--warn-bg) !important; color: var(--warn); box-shadow: none; outline: 1.5px dashed var(--warn); outline-offset: -1.5px; }
.lc-ag .lc-when { width: 112px; flex-shrink: 0; display: flex; flex-direction: column; }
.lc-ag .lc-when b { font-size: 13px; color: var(--navy); } .lc-ag .lc-when small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 600px) {
  .lc-names { width: 116px; }
  .lc-nm { padding: 0 8px 0 10px; } .lc-nm .avatar { display: none; }
  .lc-ag .lc-when { width: 84px; }
  .lc-ag .avatar { display: none; }
}
/* Dönem raporu (date range) */
.rg-dates { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rg-dates .field { flex: 1 1 160px; margin: 0; }
.rg-arrow { color: var(--muted); padding-bottom: 12px; }
.rg-dl { margin-left: auto; }
.rg-row { --ac-in: #283D7A; --ac-out: #C98A9A; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 10px; align-items: center; padding: 8px 0; }
.rg-l { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.rg-l span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rg-bar i { display: block; height: 100%; border-radius: 4px; }
.rg-row small { font-size: 11.5px; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .rg-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .rg-arrow { display: none; } .rg-dl { margin-left: 0; grid-column: 1 / -1; } }
.ac-kpi b em { font-style: normal; }
/* new reviews (Google & Trustpilot watcher) */
.rw-sync { display: flex; align-items: center; gap: 12px; }
.rw-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(40,61,122,.08); color: var(--navy); flex-shrink: 0; }
.rw-sync.has-new { border: 1.5px solid rgba(200,54,76,.3); }
.rw-sync.has-new .rw-ic { background: var(--bad); color: #fff; }
.rv.is-new { box-shadow: 0 0 0 2px rgba(200,54,76,.35); }
.notif.clickable { cursor: pointer; } .notif.low .ii { background: var(--bad-bg); color: var(--bad); }
.s-tabbar a, .s-tabbar button { position: relative; }
.tb-dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
@media (max-width: 640px) { .rw-sync { flex-wrap: wrap; } .rw-sync .btn { width: 100%; } }
/* extra sales (kit, stem cell…) on the sales card */
.sl-sale { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sl-sale span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--navy-50); color: var(--ink-2); }
.sl-sale span.tm { background: rgba(40,61,122,.12); color: var(--navy); }
.sl-add { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 5px 10px; border-radius: 999px; border: 1px dashed rgba(40,61,122,.35); background: none; cursor: pointer; }
.sl-sum-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sl-sum-g div { background: var(--navy-50); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sl-sum-g span { font-size: 12px; color: var(--muted); } .sl-sum-g b { font-size: 17px; }
/* Stok & envanter */
.sk-now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sk-now div { background: var(--navy-50); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sk-now span { font-size: 11.5px; color: var(--muted); } .sk-now b { font-size: 17px; }
.sk-now.low div:first-child { background: var(--bad-bg); } .sk-now.low div:first-child b { color: var(--bad); }
.sk-tbl td, .sk-tbl th { white-space: nowrap; } .sk-tbl td:first-child { white-space: normal; min-width: 180px; }
.sks-p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--navy-50); }
.sks-qty { display: flex; gap: 6px; align-items: center; } .sks-qty .input { text-align: center; }
.sks-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sks-sum div { background: var(--navy-50); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sks-sum span { font-size: 11.5px; color: var(--muted); } .sks-sum b { font-size: 15px; }
@media (max-width: 640px) { .sk-now { grid-template-columns: 1fr 1fr; } }
/* segmented controls never spill out of their box: a long row scrolls sideways; in a full-width seg long labels wrap onto two lines */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg:not(.full) button { flex-shrink: 0; }
.seg.full button { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.15; height: auto; min-height: 38px; padding: 4px 8px; }
@media (max-width: 640px) {
  /* filter rows wrap onto a second line instead of hiding buttons off-screen */
  .seg:not(.full) { flex-wrap: wrap; border-radius: 20px; overflow: visible; max-width: 100%; }
  .seg:not(.full) button { flex: 1 0 auto; justify-content: center; }
  .card-h:has(.seg) { flex-wrap: wrap; gap: 8px; }
}
/* missing patient payment */
.pay-due { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 13px; cursor: pointer; }
.pay-due span { margin-left: auto; font-weight: 600; font-size: 12.5px; }
.pay-rest { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; }
.pay-rest.bad { background: var(--bad-bg); color: var(--bad); } .pay-rest.ok { background: var(--ok-bg); color: var(--ok); }
.pay-rest .xs { color: var(--ink-2); margin-top: 2px; }
.pay-due.warn { background: var(--warn-bg); color: var(--warn); }
/* a scrolling sheet must not carry its own backdrop-filter: browsers then paint the background only for the first screen,
   and the rest of a long menu / form looks like it falls out of the card. The overlay behind already blurs the page. */
.modal { background: #FBFCFE; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card.tbl-wrap, .card.sh-wrap { background: rgba(255,255,255,.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Post-op takip */
.fu-card { padding: 16px 18px; } .fu-card.warn { box-shadow: inset 4px 0 0 var(--warn), var(--sh-1); } .fu-card.bad { box-shadow: inset 4px 0 0 var(--bad), var(--sh-1); }
.fu-day { width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.fu-day b { font-size: 20px; line-height: 1; } .fu-day span { font-size: 10.5px; opacity: .8; margin-top: 2px; }
.fu-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.fu-m { height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--line); color: var(--muted); }
.fu-strip.big .fu-m { height: 34px; font-size: 12.5px; border-radius: 9px; }
.fu-m.done { background: var(--ok); color: #fff; } .fu-m.part { background: #E2A12B; color: #fff; } .fu-m.late { background: var(--bad); color: #fff; } .fu-m.due { background: var(--navy); color: #fff; }
.fu-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-tags span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--navy-50); color: var(--ink-2); }
.fu-tags span.bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; } .fu-tags span.warn { background: var(--warn-bg); color: var(--warn); font-weight: 600; } .fu-tags span.ok { background: var(--ok-bg); color: var(--ok); }
.fu-calls { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-calls span { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 10px; border-radius: 12px; background: var(--navy-50); font-size: 12.5px; font-weight: 700; }
.fu-calls span small { font-weight: 500; font-size: 11px; color: var(--muted); } .fu-calls span.ok { background: var(--ok-bg); color: var(--ok); } .fu-calls span.bad { background: var(--bad-bg); color: var(--bad); }
.mb4 { margin-bottom: 4px; }
/* Bakım (post-op guide) */
.care-tabs { flex-wrap: wrap; border-radius: 20px; }
.care-tabs button { flex: 1 0 auto; justify-content: center; }
.med-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.med-row:first-child { border-top: 0; }
.med-tbl { display: grid; gap: 2px; }
.med-tbl .mt-h, .med-tbl .mt-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; align-items: center; }
.med-tbl .mt-r { padding: 8px 0; border-top: 1px solid var(--line); }
.med-tbl .mt-n b { display: block; font-size: 12.5px; } .med-tbl .mt-n small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.mt-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.mt-h .mt-cells span { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; }
.mt-r .mt-cells i { height: 18px; border-radius: 5px; background: var(--line); opacity: .55; }
.mt-r .mt-cells i.on { background: var(--c); opacity: 1; }
.growth { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.g-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-col .g-v { font-size: 11px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.g-bar { width: 100%; max-width: 34px; height: 120px; border-radius: 10px; background: var(--navy-50); display: flex; align-items: flex-end; overflow: hidden; }
.g-bar i { display: block; width: 100%; background: linear-gradient(180deg, #4A63B0, #283D7A); border-radius: 10px; }
.g-col b { font-size: 13px; } .g-col small { font-size: 10.5px; color: var(--muted); margin-top: -4px; }
details.faq { border-top: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 2px; font-weight: 600; font-size: 14px; }
details.faq summary::-webkit-details-marker, .faq-box summary::-webkit-details-marker { display: none; }
details.faq[open] .ms-chev, .faq-box[open] .ms-chev { transform: rotate(180deg); }
details.faq p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.faq-box summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 640px) { .growth { gap: 4px; } .g-col .g-v { font-size: 9.5px; } }
.ref-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ref-sum div { background: var(--navy-50); border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.ref-sum b { font-size: 18px; } .ref-sum span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) {
  .rf-row { flex-wrap: wrap; } .rf-row .grow { flex: 1 1 calc(100% - 60px); }
  .rf-row .r { margin-left: 46px; text-align: left; display: flex; gap: 8px; align-items: center; } .rf-row .r .xs { margin-top: 0; }
  .rf-row .rf-act { margin-left: auto; }
  .rf-row .ac-d { white-space: normal; }
}
/* Invoice (Medart) */
.inv { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-2); max-width: 860px; margin: 0 auto; position: relative; color: var(--ink); }
.inv-top { background: linear-gradient(135deg, #34509A, #1F3168); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inv-top img { height: 48px; } .inv-top-r { text-align: right; color: #fff; display: flex; flex-direction: column; } .inv-top-r b { letter-spacing: .18em; font-size: 15px; } .inv-top-r span { font-size: 12.5px; opacity: .8; }
.inv-body { padding: 24px 28px 18px; position: relative; }
.inv-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inv-meta div, .inv-parties > div { display: flex; flex-direction: column; gap: 2px; } .inv-meta span, .inv-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.inv-meta b { font-size: 14px; } .inv-st.ok { color: var(--ok); } .inv-st.warn { color: var(--warn); } .inv-st.bad { color: var(--bad); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--navy-50); font-size: 13px; }
.inv-parties b { font-size: 15px; margin-top: 2px; }
.inv-tbl { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 13.5px; }
.inv-tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); padding: 8px 6px; }
.inv-tbl td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; } .inv-tbl td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.inv-tbl th:not(:first-child), .inv-tbl td:not(:first-child) { text-align: right; white-space: nowrap; }
.inv-grid { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 20px; margin-top: 18px; }
.inv-incl ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.inv-tot > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; } .inv-tot .big { border-top: 1.5px solid var(--navy); margin-top: 4px; padding-top: 10px; font-size: 16px; font-weight: 700; }
.inv-tot .due { background: var(--ok-bg); border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-weight: 700; color: var(--ok); } .inv-tot .due.open { background: var(--bad-bg); color: var(--bad); }
.inv-pays { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.inv-note { font-size: 11.5px; color: var(--muted); margin: 18px 0 0; }
.inv-foot { background: #1F3168; color: #fff; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 28px; font-size: 12px; } .inv-foot span { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.doc-big { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .doc-big-ic { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #34509A, #1F3168); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.doc-big.muted-card { opacity: .7; } .doc-big.muted-card .doc-big-ic { background: var(--navy-50); color: var(--navy); }
@media (max-width: 640px) { .inv-top, .inv-body, .inv-foot { padding-left: 16px; padding-right: 16px; } .inv-meta { grid-template-columns: 1fr 1fr; } .inv-parties, .inv-grid { grid-template-columns: 1fr; } .inv-tbl { font-size: 12.5px; } }
@media print {
  body.print-inv * { visibility: hidden; } body.print-inv #inv, body.print-inv #inv * { visibility: visible; }
  body.print-inv #inv { position: fixed; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* print: certificate and invoice always fit ONE A4 portrait page */
@media print {
  body.print-inv #inv { width: 210mm; height: 297mm; inset: 0 auto auto 0; display: flex; flex-direction: column; overflow: hidden; font-size: 11px; }
  body.print-inv .inv-top { padding: 7mm 12mm; } body.print-inv .inv-top img { height: 12mm; } body.print-inv .inv-top-r b { font-size: 13px; }
  body.print-inv .inv-body { padding: 6mm 13mm 4mm; font-size: 11.5px; line-height: 1.45; flex: 1; display: flex; flex-direction: column; }
 
  body.print-inv .inv-foot { padding: 5mm 13mm; font-size: 10px; flex-shrink: 0; }
  body.print-inv .inv-tbl { font-size: 11.5px; margin-top: 12px; } body.print-inv .inv-tbl td { padding: 7px 6px; } body.print-inv .inv-parties { margin-top: 12px; padding: 10px 12px; }
  body.print-inv .inv-grid { margin-top: 10px; } body.print-inv .inv-incl ul { line-height: 1.5; font-size: 11px; } body.print-inv .inv-pays { margin-top: 10px; } body.print-inv .inv-note { margin-top: auto; }
  body.print-inv .inv-meta { grid-template-columns: repeat(4, 1fr) !important; } body.print-inv .inv-parties, body.print-inv .inv-grid { grid-template-columns: 1fr minmax(200px, 260px) !important; }
}

/* PDF indir (downloadDoc): ekran genişliğinden bağımsız sabit A4 düzeni */
.pdf-snap .no-print { display: none !important; }
.pdf-snap, .pdf-snap * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pdf-snap .cert { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; padding: 30px; }
.pdf-snap .cert-in { padding: 40px 56px; gap: 0; }
.pdf-snap .cert-top img { width: 120px; }
.pdf-snap .cert-no, .pdf-snap .cert-kicker { font-size: 12px; } .pdf-snap .cert-no b { font-size: 14px; }
.pdf-snap .cert h1 { font-size: 36px; } .pdf-snap .cert-lead { font-size: 14px; max-width: 70%; }
.pdf-snap .cert-name { font-size: 44px; } .pdf-snap .cert-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pdf-snap .cert-grid span, .pdf-snap .cert-sign, .pdf-snap .cert-verify, .pdf-snap .cert-verify b { font-size: 12px; }
.pdf-snap .cert-grid b { font-size: 17px; } .pdf-snap .cert-sign b { font-size: 13px; }
.pdf-snap .cert-foot { margin-top: auto; } .pdf-snap .cert-seal { width: 92px; } .pdf-snap .cert-note { font-size: 11px; }
.pdf-snap .inv { max-width: none; border-radius: 0; box-shadow: none; margin: 0; }
.pdf-snap .inv-top, .pdf-snap .inv-body, .pdf-snap .inv-foot { padding-left: 44px; padding-right: 44px; }
.pdf-snap .inv-meta { grid-template-columns: repeat(4, 1fr); }
.pdf-snap .inv-parties, .pdf-snap .inv-grid { grid-template-columns: 1fr minmax(200px, 260px); }
.pdf-snap ul { list-style: none; padding-left: 0; } .pdf-snap li { position: relative; padding-left: 14px; } .pdf-snap li::before { content: "•"; position: absolute; left: 2px; top: 0; }

/* DENEME — Operation Certificate (certNewHTML). Ölçüler kartın genişliğine göre (cqw), PDF'te de aynı oranla çıkar. */
.oc-wrap { overflow-x: auto; border-radius: 22px; }
.oc { container-type: inline-size; position: relative; min-width: 720px; aspect-ratio: 1.414; background: #fff; border-radius: 22px; box-shadow: var(--sh-2); overflow: hidden; color: var(--ink); }
.oc-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc-wm { position: absolute; right: 3cqw; top: 24%; width: 25cqw; opacity: .04; }
.oc-corner { position: absolute; top: 4.2cqw; font-size: .78cqw; letter-spacing: .28em; line-height: 2.2; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.oc-corner.l { left: 3.6cqw; } .oc-corner.r { right: 3.6cqw; text-align: right; }
.oc-corner i { display: block; width: 2.6cqw; height: 1px; background: rgba(40,61,122,.35); margin-top: .8cqw; }
.oc-corner.r i { margin-left: auto; }
.oc-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3.2cqw 9cqw 4.6cqw; }
.oc-brand img { width: 7.4cqw; display: block; margin: 0 auto; }
.oc-brand span { display: block; font-size: .85cqw; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); margin-top: .3cqw; padding-left: .5em; }
.oc-title { font-size: 3.7cqw; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin: 1.6cqw 0 0; line-height: 1.25; }
.oc-sub { font-size: 1cqw; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 1.5cqw; padding-left: .42em; }
.oc-rule { width: 4.4cqw; height: 2px; flex-shrink: 0; background: rgba(40,61,122,.45); margin: 1.4cqw auto 1.6cqw; }
.oc-lead { font-size: 1.35cqw; color: var(--ink-2); line-height: 1.5; }
.oc-name { font-size: 3.6cqw; font-weight: 600; color: var(--navy); letter-spacing: -.01em; margin: .6cqw 0 1cqw; padding: 0 3cqw 1.1cqw; min-width: 46%; border-bottom: 1.5px solid rgba(40,61,122,.3); line-height: 1.2; }
.oc-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 2.2cqw; padding-bottom: 1.8cqw; border-bottom: 1px solid rgba(40,61,122,.18); }
.oc-grid > div + div { border-left: 1px solid rgba(40,61,122,.22); }
.oc-grid span { display: block; font-size: .8cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.oc-grid b { display: block; font-size: 1.45cqw; color: var(--navy); font-weight: 600; margin-top: .7cqw; }
.oc-valid { font-size: 1.05cqw; color: var(--ink-2); line-height: 1.6; margin-top: 1.8cqw; }
.oc-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; width: 100%; margin-top: auto; gap: 3cqw; }
.oc-sign { text-align: center; justify-self: start; min-width: 18cqw; }
.oc-sign i { display: block; height: 1px; background: rgba(40,61,122,.45); margin-bottom: .8cqw; }
.oc-sign b { display: block; font-size: 1.3cqw; color: var(--ink); font-weight: 600; }
.oc-sign span, .oc-pt span { display: block; font-size: .95cqw; color: var(--muted); margin-top: .2cqw; }
.oc-seal { width: 7.6cqw; aspect-ratio: 1; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 .35cqw #fff, 0 0 0 .5cqw rgba(40,61,122,.35); }
.oc-seal img { width: 70%; }
.oc-pt { justify-self: end; text-align: right; }
.oc-pt span { letter-spacing: .26em; text-transform: uppercase; font-size: .8cqw; font-weight: 600; }
.oc-pt b { display: block; font-size: 1.3cqw; color: var(--navy); font-weight: 600; margin-top: .3cqw; }
.oc-pt em { display: block; font-style: normal; font-size: .95cqw; color: var(--muted); }
.oc-bottom { position: absolute; left: 3.6cqw; right: 3.6cqw; bottom: 2cqw; display: flex; justify-content: space-between; font-size: .78cqw; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.oc-bottom span:first-child { text-transform: none; letter-spacing: .12em; padding-left: 8cqw; }
.oc, .oc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pdf-snap .oc { height: 100%; aspect-ratio: auto; min-width: 0; border-radius: 0; box-shadow: none; }

/* DENEME 2 — Operation Certificate (certV2HTML) */
.oc2 { background: #fff; }
.oc2-waves, .oc2-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc2-b1 { position: absolute; inset: 2.2cqw; border: .22cqw solid var(--navy); }
.oc2-b2 { position: absolute; inset: 2.85cqw; border: 1px solid rgba(40,61,122,.35); }
.oc2-wm { position: absolute; left: 50%; top: 50%; width: 34cqw; transform: translate(-50%, -46%); opacity: .016; }
.oc2-corner { position: absolute; top: 4.4cqw; font-size: .74cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.oc2-corner.l { left: 9.4cqw; } .oc2-corner.r { right: 9.4cqw; }
.oc2-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5.6cqw 11cqw 7.4cqw; }
.oc2-brand img { width: 6.6cqw; display: block; margin: 0 auto; }
.oc2-brand span { display: block; font-size: .8cqw; letter-spacing: .55em; text-transform: uppercase; color: var(--muted); margin-top: .2cqw; padding-left: .55em; }
.oc2-title { font-size: 3.5cqw; font-weight: 300; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 1.5cqw 0 0; line-height: 1.25; padding-left: .16em; }
.oc2-sub { display: flex; align-items: center; gap: 1.2cqw; font-size: .95cqw; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--navy); opacity: .75; margin-top: 1.3cqw; }
.oc2-sub i { width: 3.4cqw; height: 1px; background: currentColor; }
.oc2-lead { font-size: 1.3cqw; color: var(--ink-2); line-height: 1.55; margin-top: 2.6cqw; max-width: 62cqw; }
.oc2-lead b { color: var(--navy); font-weight: 600; }
.oc2-name { font-size: 4cqw; font-weight: 600; color: var(--navy); letter-spacing: -.01em; line-height: 1.25; margin-top: .9cqw; }
.oc2-uline { width: 44cqw; height: 1.5px; margin: 1.3cqw 0 -.8cqw; background: linear-gradient(90deg, rgba(40,61,122,0), rgba(40,61,122,.55) 25%, rgba(40,61,122,.55) 75%, rgba(40,61,122,0)); }
.oc2-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 3cqw; padding: 1.5cqw 0; background: rgba(40,61,122,.045); border-top: 1px solid rgba(40,61,122,.22); border-bottom: 1px solid rgba(40,61,122,.22); }
.oc2-grid > div + div { border-left: 1px solid rgba(40,61,122,.2); }
.oc2-grid span { display: block; font-size: .74cqw; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.oc2-grid b { display: block; font-size: 1.4cqw; color: var(--navy); font-weight: 600; margin-top: .6cqw; }
.oc2-valid { font-size: 1cqw; color: var(--muted); line-height: 1.6; margin-top: 2.2cqw; max-width: 66cqw; font-style: italic; }
.oc2-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; width: 100%; margin-top: auto; gap: 3cqw; }
.oc2-sign, .oc2-pt { min-width: 19cqw; }
.oc2-sign { justify-self: start; } .oc2-pt { justify-self: end; }
.oc2-sign i, .oc2-pt i { display: block; height: 1px; background: rgba(40,61,122,.5); margin-bottom: .8cqw; }
.oc2-sign b, .oc2-pt b { display: block; font-size: 1.25cqw; color: var(--navy); font-weight: 600; }
.oc2-sign span, .oc2-pt span { display: block; font-size: .85cqw; color: var(--muted); margin-top: .25cqw; letter-spacing: .04em; }
.oc2-seal { position: relative; width: 9cqw; margin-bottom: -1.6cqw; }
.oc2-seal svg { display: block; width: 100%; height: auto; }
.oc2-seal img { position: absolute; left: 50%; top: 40%; width: 4.4cqw; transform: translate(-50%, -50%); }
.oc2-bottom { position: absolute; left: 9.4cqw; right: 9.4cqw; bottom: 3.7cqw; display: flex; justify-content: space-between; font-size: .72cqw; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.oc2-bottom span:first-child { text-transform: none; letter-spacing: .14em; }

.cert-bar .chip { white-space: nowrap; }

/* DENEME 3 — modern Operation Certificate (certV3HTML) */
.oc3 { color: #0f1a3a; background: #fbfcfe; }
.oc3-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.oc3-corner { position: absolute; top: 3.4cqw; font-size: .74cqw; letter-spacing: .22em; text-transform: uppercase; color: #6b7593; font-weight: 600; }
.oc3-corner.l { left: 4cqw; } .oc3-corner.r { right: 4cqw; }
.oc3-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3.4cqw 10cqw 5.6cqw; }
.oc3-logo { width: 6.4cqw; display: block; }
.oc3-pill { margin-top: 1.8cqw; padding: .55cqw 1.4cqw; border-radius: 99px; font-size: .82cqw; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #283d7a;
  background: rgba(111,139,214,.14); border: 1px solid rgba(40,61,122,.14); }
.oc3-title { font-size: 4.6cqw; font-weight: 800; letter-spacing: -.025em; color: #13214d; margin: 1.1cqw 0 0; line-height: 1.15; }
.oc3-lead { font-size: 1.3cqw; color: #5a6482; line-height: 1.55; margin-top: 2.6cqw; }
.oc3-lead b { color: #13214d; font-weight: 700; }
.oc3-name { font-size: 4cqw; font-weight: 700; letter-spacing: -.02em; color: #283d7a; line-height: 1.2; margin-top: .8cqw; }
.oc3-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqw; width: 100%; margin-top: 3.2cqw; }
.oc3-grid > div { padding: 1.4cqw 1cqw; border-radius: 1.2cqw; background: rgba(255,255,255,.78); border: 1px solid rgba(40,61,122,.1); box-shadow: 0 .6cqw 1.8cqw -1cqw rgba(19,33,77,.22); text-align: left; }
.oc3-grid span { display: block; font-size: .72cqw; letter-spacing: .16em; text-transform: uppercase; color: #6b7593; font-weight: 700; }
.oc3-grid b { display: block; font-size: 1.36cqw; color: #13214d; font-weight: 700; margin-top: .5cqw; letter-spacing: -.01em; }
.oc3-valid { font-size: .96cqw; color: #6b7593; line-height: 1.6; margin-top: 2.6cqw; max-width: 64cqw; }
.oc3-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; width: 100%; margin-top: auto; gap: 3cqw; }
.oc3-sign, .oc3-pt { min-width: 19cqw; text-align: left; }
.oc3-sign { justify-self: start; } .oc3-pt { justify-self: end; text-align: right; }
.oc3-sig { height: 4.2cqw; display: flex; align-items: flex-end; }
.oc3-pt .oc3-sig { justify-content: flex-end; }
.oc3-sig img { max-height: 100%; max-width: 100%; }
.oc3-sign i, .oc3-pt i { display: block; height: 1px; margin-bottom: .8cqw; background: rgba(19,33,77,.22); }
.oc3-sign b, .oc3-pt b { display: block; font-size: 1.22cqw; color: #13214d; font-weight: 700; letter-spacing: -.01em; }
.oc3-sign span, .oc3-pt span { display: block; font-size: .82cqw; color: #6b7593; margin-top: .3cqw; }
.oc3-app { width: 6cqw; height: 6cqw; border-radius: 1.5cqw; display: block; box-shadow: 0 1cqw 2.2cqw -.8cqw rgba(19,33,77,.55); }
.oc3-bottom { position: absolute; left: 4cqw; right: 4cqw; bottom: 2.4cqw; display: flex; justify-content: space-between; font-size: .72cqw; letter-spacing: .14em; color: #6b7593; font-weight: 600; }
.oc3-bottom span:last-child { text-transform: uppercase; letter-spacing: .22em; }

/* DENEME 3 — cilalama (v3 ince ayarları) */
.oc3-corner { display: flex; align-items: center; gap: .7cqw; }
.oc3-corner i { width: .45cqw; height: .45cqw; border-radius: 50%; background: linear-gradient(135deg, #7d97dc, #283d7a); }
.oc3-pill { display: inline-flex; align-items: center; gap: .6cqw; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(111,139,214,.14)); box-shadow: 0 .4cqw 1.2cqw -.6cqw rgba(19,33,77,.25); }
.oc3-pill i { width: .5cqw; height: .5cqw; border-radius: 50%; background: #4b64a8; box-shadow: 0 0 0 .25cqw rgba(75,100,168,.18); }
.oc3-title { color: #101c45; }
.oc3-bar { width: 4cqw; height: .32cqw; border-radius: 99px; margin-top: 2cqw; background: linear-gradient(90deg, #283d7a, #7d97dc); }
.oc3-lead { margin-top: 2.6cqw; }
.oc3-bar + .oc3-lead { margin-top: 1.6cqw; }
.oc3-grid > div { background: linear-gradient(180deg, #ffffff 0%, #f6f8fe 100%); border-color: rgba(40,61,122,.09); box-shadow: 0 .8cqw 2.2cqw -1.2cqw rgba(19,33,77,.28), 0 .1cqw .3cqw rgba(19,33,77,.04); padding: 1.3cqw 1.2cqw 1.4cqw; }
.oc3-ic { display: grid; place-items: center; width: 2.5cqw; height: 2.5cqw; border-radius: .7cqw; margin-bottom: .9cqw; color: #283d7a; background: linear-gradient(135deg, rgba(111,139,214,.22), rgba(111,139,214,.08)); }
.oc3-ic svg { width: 1.35cqw; height: 1.35cqw; }
.oc3-valid { display: block; }
.oc3-mark { display: flex; flex-direction: column; align-items: center; }
.oc3-mark span { margin-top: .8cqw; font-size: .7cqw; letter-spacing: .2em; text-transform: uppercase; color: #6b7593; font-weight: 700; }

.oc3-title + .oc3-lead { margin-top: 3cqw; }

/* DENEME 4 — v4 düzeni + hafif degrade, tüm yazılar Montserrat (uygulamayla aynı dil) (certV4HTML) */
.oc4 { color: #14224f; background:
  linear-gradient(135deg, rgba(214,223,243,.55) 0%, rgba(214,223,243,0) 28%),
  linear-gradient(315deg, rgba(205,215,240,.6) 0%, rgba(205,215,240,0) 32%),
  linear-gradient(180deg, #fdfdfc 0%, #f7f8fb 100%); }
.oc4-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4cqw 10cqw 4.4cqw; }
.oc4-logo { width: 6cqw; display: block; }
.oc4-brandline { font-size: .82cqw; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: #4b5a88; margin-top: .9cqw; padding-left: .36em; }
.oc4-title { font-size: 3.4cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: #14224f; margin: 2.6cqw 0 0; padding-left: .12em; }
.oc4-sub { display: flex; align-items: center; gap: 1.2cqw; font-size: .78cqw; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #6d7796; margin-top: 2cqw; }
.oc4-sub i { width: 3cqw; height: 1px; background: linear-gradient(90deg, rgba(40,61,122,0), rgba(40,61,122,.5)); }
.oc4-sub i:last-child { background: linear-gradient(90deg, rgba(40,61,122,.5), rgba(40,61,122,0)); }
.oc4-lead { font-size: 1.2cqw; color: #6d7796; margin-top: 3.4cqw; }
.oc4-name { font-size: 3.8cqw; font-weight: 600; letter-spacing: -.01em; color: #1f3063; line-height: 1.25; margin-top: .8cqw; }
.oc4-uline { width: 42cqw; height: 1px; margin-top: 1.4cqw; background: linear-gradient(90deg, rgba(40,61,122,0), rgba(40,61,122,.55) 25%, rgba(40,61,122,.55) 75%, rgba(40,61,122,0)); }
.oc4-text { font-size: 1.2cqw; color: #3a476f; margin-top: 2cqw; }
.oc4-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 3.8cqw; }
.oc4-grid > div + div { border-left: 1px solid rgba(40,61,122,.18); }
.oc4-grid span { display: block; font-size: .68cqw; letter-spacing: .3em; text-transform: uppercase; color: #7d869f; font-weight: 600; }
.oc4-grid b { display: block; font-size: 1.3cqw; font-weight: 600; color: #14224f; margin-top: .6cqw; }
.oc4-valid { font-size: .86cqw; color: #7d869f; line-height: 1.6; margin-top: 2.8cqw; max-width: 62cqw; }
.oc4-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; width: 100%; margin-top: auto; gap: 3cqw; }
.oc4-sign, .oc4-pt { width: 20cqw; }
.oc4-sign { justify-self: start; } .oc4-pt { justify-self: end; }
.oc4-sig { height: 3.8cqw; display: flex; align-items: flex-end; justify-content: center; }
.oc4-sig img { max-height: 100%; max-width: 100%; }
.oc4-sign i, .oc4-pt i { display: block; height: 1px; background: rgba(40,61,122,.35); margin-bottom: .8cqw; }
.oc4-sign b, .oc4-pt b { display: block; font-size: 1.05cqw; font-weight: 600; color: #14224f; }
.oc4-sign span, .oc4-pt span { display: block; font-size: .72cqw; color: #7d869f; margin-top: .35cqw; letter-spacing: .04em; }
.oc4-tag { font-size: .72cqw; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #4b5a88; padding-bottom: .6cqw; }

/* CERTIFICATE OF OPERATION (certificateHTML) — Medart antetli, A4 dikey */
.cert2 { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-2); max-width: 860px; margin: 0 auto; color: var(--ink); display: flex; flex-direction: column; }
.cert2-body { padding: 26px 32px 20px; font-size: 14px; line-height: 1.6; }
.cert2-body p { margin: 10px 0; } .cert2-body .small { font-size: 13px; }
.cert2-date { text-align: right; font-size: 13px; color: var(--ink-2); }
.cert2 h1 { text-align: center; font-size: 22px; color: var(--navy); letter-spacing: .02em; margin: 10px 0 14px; }
.cert2 h3 { font-size: 13.5px; color: var(--navy); margin: 0 0 6px; }
.cert2-h { margin-top: 18px !important; text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px !important; }
.cert2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 14px 16px; border-radius: 14px; background: var(--navy-50); margin: 14px 0; }
.cert2-grid span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .cert2-grid b { font-size: 14px; }
.cert2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; } .cert2-two ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.cert2-travel { display: flex; gap: 14px; align-items: center; margin: 18px 0 4px; padding: 14px 18px; border-left: 3px solid var(--navy); background: var(--navy-50); border-radius: 0 12px 12px 0; font-size: 13px; font-weight: 600; color: var(--navy); }
.cert2-travel svg, .cert2-travel img { flex-shrink: 0; }
.cert2-cond { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; } .cert2-cond div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; } .cert2-cond b { display: block; color: var(--navy); } .cert2-cond span { color: var(--ink-2); }
.cert2-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; margin-top: 18px; }
.cert2-sign, .cert2-pt { font-size: 12px; } .cert2-pt { text-align: right; }
.cert2-sig { height: 46px; display: flex; align-items: flex-end; } .cert2-sig img { max-height: 100%; max-width: 100%; }
.cert2-sign i, .cert2-pt i { display: block; height: 1px; background: rgba(40,61,122,.45); margin-bottom: 6px; }
.cert2-sign b, .cert2-pt b { display: block; font-size: 13px; color: var(--ink); } .cert2-sign span, .cert2-pt span { color: var(--muted); }
.cert2-seal { position: relative; width: 84px; }
.cert2-seal svg { display: block; width: 100%; height: auto; }
.cert2-seal img { position: absolute; left: 50%; top: 40%; width: 40px; transform: translate(-50%, -50%); }
@media (max-width: 640px) { .cert2-body { padding: 18px 16px; } .cert2-grid, .cert2-two, .cert2-cond { grid-template-columns: 1fr; } .cert2-foot { gap: 10px; } .cert2-seal { width: 64px; } .cert2-seal img { width: 30px; } }
.pdf-snap .cert2 { max-width: none; border-radius: 0; box-shadow: none; margin: 0; }
.pdf-snap .cert2-body { padding: 24px 44px 20px; }
.pdf-snap .cert2-grid, .pdf-snap .cert2-two, .pdf-snap .cert2-cond { grid-template-columns: 1fr 1fr; }
.pdf-snap .cert2-seal { width: 84px; } .pdf-snap .cert2-seal img { width: 40px; }

.pdf-snap .cert2-body { font-size: 13px; line-height: 1.5; padding: 18px 44px 14px; }
.pdf-snap .cert2-body p { margin: 7px 0; } .pdf-snap .cert2-body .small { font-size: 12.5px; }
.pdf-snap .cert2 h1 { margin: 4px 0 10px; }
.pdf-snap .cert2-grid { padding: 10px 14px; gap: 6px 20px; margin: 10px 0; }
.pdf-snap .cert2-two { margin-top: 10px; } .pdf-snap .cert2-two ul { font-size: 12.5px; }
.pdf-snap .cert2-travel { margin: 16px 0 4px; padding: 13px 18px; font-size: 12.5px; line-height: 1.55; }
.pdf-snap .cert2-h { margin-top: 18px !important; }
.pdf-snap .cert2-cond { margin: 6px 0; } .pdf-snap .cert2-cond div { padding: 8px 10px; }
.pdf-snap .cert2-foot { margin-top: 12px; }
.pdf-snap .cert2 { height: 100%; } .pdf-snap .cert2-body { flex: 1; display: flex; flex-direction: column; } .pdf-snap .cert2-foot { margin-top: auto; padding-top: 12px; }
/* Fatura PDF'i en az bir A4 boyu: alt lacivert bant sayfanın altına oturur (uzun faturada içerik tek sayfaya ölçeklenir) */
.pdf-snap .inv { min-height: 1123px; display: flex; flex-direction: column; } .pdf-snap .inv > .inv-body { flex: 1; }

/* İlaç takvimi (medsHTML): ilaç başına net gün aralığı + bugüne göre durum */
.ms-today { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--navy-50); color: var(--navy); font-size: 13px; font-weight: 600; }
.ms-r { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line-2); }
.ms-r:first-child { border-top: 0; }
.ms-r > i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ms-r b { display: block; font-size: 14px; } .ms-r small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.ms-w { text-align: right; flex-shrink: 0; max-width: 48%; }
.ms-w span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ms-st { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700; }
.ms-st.now { background: var(--ok-bg); color: var(--ok); } .ms-st.soon { background: var(--navy-50); color: var(--navy); } .ms-st.done { background: var(--line-2); color: var(--muted); }
.ms-r.done { opacity: .55; } .ms-r.done b { text-decoration: line-through; }

@media (max-width: 560px) { .ms-r { flex-wrap: wrap; row-gap: 4px; } .ms-r .grow { min-width: 0; flex: 1 1 calc(100% - 30px); } .ms-w { flex: 1 1 100%; max-width: none; text-align: left; padding-left: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ms-st { margin-top: 0; } }
.pdf-snap img.svgimg { max-width: none; }
.pdf-snap .cert2-seal img.svgimg, .pdf-snap .oc2-seal img.svgimg, .pdf-snap .oc4-seal img.svgimg { position: static; transform: none; display: block; width: 100% !important; height: auto !important; }
/* alt bant: ikon, yazının büyük harf yüksekliğine ortalansın (flex ortalaması satır kutusuna göre ~1.5px yukarıda kalıyordu) */
.inv-foot span > svg, .pdf-snap .inv-foot span > img.svgimg { position: relative; top: 1.5px; }
.msch.dv-off .ms-r { opacity: .72; }
/* Ne zaman yardım almalı? (emergencyHTML) */
.em { display: flex; gap: 12px; padding: 12px; border-radius: 14px; margin-top: 8px; border: 1px solid var(--line); }
.em-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.em-urgent { background: var(--bad-bg); border-color: transparent; } .em-urgent .em-ic { background: var(--bad); color: #fff; } .em-urgent .b { color: var(--bad); }
.em-prompt { background: var(--warn-bg); border-color: transparent; } .em-prompt .em-ic { background: var(--warn); color: #fff; } .em-prompt .b { color: var(--warn); }
.em-routine .em-ic { background: var(--navy-50); color: var(--navy); }

.btn.danger { background: var(--bad-bg); color: var(--bad); }
