/* Animated prototype of the KlinikPro Vet app (/vet #tampilan).
   Mirrors the real app (vet.klinikpro: app-shell.tsx, globals.css): white surfaces, teal primary
   oklch(0.55 0.13 175), radius .75rem, Inter. The app canvas is a fixed 1100×680 desktop layout,
   scaled to its column by vet-proto.js, so it keeps the real proportions on every screen. */
.pt {
    --pt-primary: #0b8a74; --pt-primary-soft: #e6f4f1; --pt-ink: #1f1f1f; --pt-muted: #737373; --pt-line: #e5e5e5;
    --pt-bg: #fafafa; --pt-c2: #3fa34d; --pt-c3: #b59a1b; --pt-c4: #d2611a; --pt-c5: #b03fb8; --pt-c6: #0e9bb0; --pt-red: #dc2626;
    display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 32px; align-items: start;
}

/* Chapter list */
.pt-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-chapter button { width: 100%; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: none; font: inherit; text-align: left; color: var(--vt-ink); cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.pt-chapter button:hover { background: #ffffffaa; }
.pt-chapter strong { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pt-chapter strong span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #e2ebf5; color: var(--vt-muted); font-size: 11.5px; font-weight: 800; transition: background-color .25s ease, color .25s ease; }
.pt-chapter .pt-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.pt-chapter .pt-detail > div { overflow: hidden; }
.pt-chapter p { margin: 4px 0 8px 34px; font-size: 13.5px; line-height: 1.6; color: var(--vt-muted); }
.pt-chapter ul { list-style: none; margin: 0 0 4px 34px; padding: 0; display: grid; gap: 5px; }
.pt-chapter li { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: #334155; }
.pt-chapter li svg { color: var(--pt-primary); flex-shrink: 0; }
.pt-bar { height: 3px; margin: 6px 0 0 34px; border-radius: 999px; background: #e2ebf5; overflow: hidden; visibility: hidden; }
.pt-bar i { display: block; height: 100%; width: 100%; background: var(--pt-primary); transform: scaleX(0); transform-origin: left; }
.pt-chapter.is-on button { background: white; border-color: #dbe5f0; box-shadow: 0 16px 36px -24px #00196559; }
.pt-chapter.is-on strong span { background: var(--pt-primary); color: white; }
.pt-chapter.is-on .pt-detail { grid-template-rows: 1fr; }
.pt-chapter.is-on .pt-bar { visibility: visible; }
.pt-chapter.is-on .pt-bar i { animation: pt-progress var(--pt-dur, 9s) linear forwards; }
.pt.is-paused .pt-chapter.is-on .pt-bar i { animation-play-state: paused; }
.pt-note { margin: 12px 0 0 16px; font-size: 12px; color: var(--vt-muted); }

/* Window + scaled canvas */
.pt-win { min-width: 0; overflow: hidden; border: 1px solid #dbe5f0; border-radius: 16px; background: white; box-shadow: 0 40px 80px -40px #00196573, 0 2px 6px #0019650d; }
.pt-winbar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f7fc; border-bottom: 1px solid #e3ebf5; }
.pt-winbar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dce8; }
.pt-winbar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: white; border: 1px solid #e3ebf5; font-size: 10.5px; color: var(--vt-muted); }
.pt-winbar b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 650; color: var(--vt-muted); }
.pt-winbar b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #16a34a22; }
.pt.is-paused .pt-winbar b::before { background: #f59e0b; box-shadow: 0 0 0 3px #f59e0b22; }
.pt-viewport { position: relative; aspect-ratio: 1100 / 680; overflow: hidden; }
.pt-app { position: absolute; top: 0; left: 0; width: 1100px; height: 680px; transform-origin: 0 0; display: flex; overflow: hidden;
    background: var(--pt-bg); color: var(--pt-ink); font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 13px; line-height: 1.4; user-select: none; }
.pt-app svg { flex-shrink: 0; }

/* Sidebar + topbar (app-shell) */
.pt-side { flex: 0 0 210px; display: flex; flex-direction: column; background: white; border-right: 1px solid var(--pt-line); }
.pt-logo { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; border-bottom: 1px solid var(--pt-line); }
.pt-logo i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pt-primary-soft); color: var(--pt-primary); }
.pt-logo strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.pt-logo strong em { font-style: normal; color: var(--pt-primary); }
.pt-logo small { display: block; font-size: 9px; color: var(--pt-muted); }
.pt-nav { flex: 1; overflow: hidden; padding: 8px 10px; }
.pt-group { padding: 8px 8px 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a3a3a3; }
.pt-item { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 10px; border-radius: 9px; color: #404040; font-size: 12px; transition: background-color .25s ease, color .25s ease; }
.pt-item svg { color: #525252; }
.pt-item.is-on { background: var(--pt-primary); color: white; font-weight: 600; }
.pt-item.is-on svg { color: white; }
.pt-side-foot { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-top: 1px solid var(--pt-line); font-size: 11px; color: var(--pt-muted); }
.pt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-top { display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 20px; background: white; border-bottom: 1px solid var(--pt-line); }
.pt-search { flex: 0 1 280px; white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: #f5f5f5; color: #a3a3a3; font-size: 12px; }
.pt-quick { display: flex; gap: 14px; margin-left: auto; white-space: nowrap; font-size: 11.5px; font-weight: 500; color: #404040; }
.pt-quick span { display: inline-flex; align-items: center; gap: 5px; }
.pt-quick svg { color: var(--pt-primary); }
.pt-user { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--pt-line); }
.pt-user i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pt-primary); color: white; font-style: normal; font-size: 11px; font-weight: 700; }
.pt-user strong { display: block; font-size: 11.5px; white-space: nowrap; }
.pt-user small { font-size: 10px; color: var(--pt-muted); }
.pt-body { position: relative; flex: 1; overflow: hidden; }

/* Scenes */
.pt-scene { position: absolute; inset: 0; padding: 20px 24px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.pt-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
.pt-scene.is-full { position: absolute; inset: 0; z-index: 4; padding: 0; background: white; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pt-head h4 { margin: 0; font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.pt-head p { margin: 2px 0 0; font-size: 12px; color: var(--pt-muted); }
.pt-actions { display: flex; gap: 8px; }
.pt-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--pt-line); border-radius: 9px; background: white; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.pt-btn.is-primary { background: var(--pt-primary); border-color: var(--pt-primary); color: white; }
.pt-card { background: white; border: 1px solid var(--pt-line); border-radius: 14px; }
.pt-card h5 { margin: 0; font-size: 14px; font-weight: 700; }
.pt-card h5 + p { margin: 2px 0 0; font-size: 11px; color: var(--pt-muted); }
.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pt-kpi { padding: 12px 14px; }
.pt-kpi i { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 9px; background: var(--pt-primary-soft); color: var(--pt-primary); }
.pt-kpi strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pt-kpi span { display: block; font-size: 11px; color: var(--pt-muted); }
.pt-kpi small { display: block; margin-top: 8px; padding-top: 6px; border-top: 1px solid #f0f0f0; font-size: 10px; color: #a3a3a3; }
.pt-kpi.is-amber i { background: #fef3c7; color: #b45309; }
.pt-kpi.is-red i { background: #fee2e2; color: var(--pt-red); }
.pt-kpi.is-blue i { background: #dbeafe; color: #2563eb; }
.pt-kpi.is-purple i { background: #f3e8ff; color: #9333ea; }

/* Dashboard */
.pt-dash { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
.pt-chart { padding: 14px 16px; }
.pt-chart-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pt-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--pt-primary-soft); color: var(--pt-primary); font-size: 10.5px; font-weight: 700; }
.pt-chart > svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.pt-grid line { stroke: #ececec; stroke-dasharray: 3 3; }
.pt-axis text { fill: #a3a3a3; font-size: 9px; }
.pt-line { fill: none; stroke: var(--pt-primary); stroke-width: 2.2; stroke-dasharray: 900; stroke-dashoffset: 900; }
.pt-area { opacity: 0; }
.is-on .pt-line { animation: pt-draw 1.6s cubic-bezier(.4,0,.2,1) .3s forwards; }
.is-on .pt-area { animation: pt-fade .8s ease 1.2s forwards; }
.pt-tip { opacity: 0; transition: opacity .2s ease; }
.pt-tip.is-on { opacity: 1; }
.pt-tip rect { fill: #1f1f1f; }
.pt-tip text { fill: white; font-size: 10px; font-weight: 600; }
.pt-tip circle { fill: white; stroke: var(--pt-primary); stroke-width: 2.5; }
.pt-donut { padding: 14px 16px; }
.pt-donut > svg { display: block; width: 128px; height: 128px; margin: 10px auto 8px; transform: rotate(-90deg); }
.pt-donut circle { fill: none; stroke-width: 7; stroke-dasharray: 0 100; transition: stroke-dasharray 1s cubic-bezier(.4,0,.2,1); }
.pt-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-legend li { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.pt-legend i { width: 8px; height: 8px; border-radius: 50%; }
.pt-legend b { margin-left: auto; font-weight: 700; }

/* Kasir (full-screen POS) */
.pt-pos-top { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--pt-line); }
.pt-pos-top i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pt-primary); color: white; }
.pt-pos-top strong { display: block; font-size: 13px; }
.pt-pos-top small { font-size: 10.5px; color: var(--pt-muted); }
.pt-pos { display: grid; grid-template-columns: minmax(0, 1fr) 290px; height: calc(100% - 54px); }
.pt-pos-left { padding: 12px; border-right: 1px solid var(--pt-line); }
.pt-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.pt-tabs span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 9px; background: #f5f5f5; font-size: 11.5px; font-weight: 600; color: #525252; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.pt-tabs span.is-on { background: white; color: var(--pt-primary); box-shadow: 0 0 0 1px var(--pt-line); }
.pt-input { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--pt-line); border-radius: 10px; font-size: 12px; color: #a3a3a3; }
.pt-input.is-focus { border-color: var(--pt-primary); box-shadow: 0 0 0 3px #0b8a7426; color: var(--pt-ink); }
.pt-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pt-product { display: grid; gap: 14px; padding: 10px; border: 1px solid var(--pt-line); border-radius: 12px; background: white; transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.pt-product > div:first-child { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.pt-product > div:first-child i { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: #f5f5f5; color: #a3a3a3; }
.pt-product > div:last-child { display: flex; justify-content: space-between; font-size: 11px; }
.pt-product b { color: var(--pt-primary); }
.pt-product em { font-style: normal; color: var(--pt-muted); }
.pt-product em.is-low { color: #d97706; }
.pt-product.is-hit { border-color: var(--pt-primary); box-shadow: 0 0 0 3px #0b8a741f; }
.pt-cart { display: flex; flex-direction: column; }
.pt-cart-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--pt-line); font-weight: 700; }
.pt-cart-head span { padding: 1px 8px; border-radius: 999px; background: #f5f5f5; font-size: 10.5px; font-weight: 600; }
.pt-cart-items { flex: 1; padding: 10px 14px; display: grid; gap: 6px; align-content: start; }
.pt-cart-empty { margin: 34px auto 0; padding: 16px 22px; border: 1px dashed #d4d4d4; border-radius: 12px; font-size: 11px; color: #a3a3a3; text-align: center; }
.pt-cart-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid var(--pt-line); border-radius: 10px; font-size: 11.5px; animation: pt-pop .25s ease; }
.pt-cart-line b { color: var(--pt-primary); }
.pt-cart-foot { display: grid; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--pt-line); }
.pt-label { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--pt-muted); }
.pt-methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.pt-methods span { display: grid; place-items: center; height: 34px; font-size: 9.5px !important; border: 1px solid var(--pt-line); border-radius: 10px; font-size: 10px; font-weight: 600; color: #525252; transition: all .2s ease; }
.pt-methods span.is-on { border-color: var(--pt-primary); background: var(--pt-primary-soft); color: var(--pt-primary); }
.pt-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f5f5f5; font-size: 11px; font-weight: 600; }
.pt-total strong { font-size: 20px; font-weight: 800; color: var(--pt-primary); }
.pt-paybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-paybtns span { display: grid; place-items: center; height: 38px; border-radius: 10px; font-size: 12.5px; font-weight: 700; transition: background-color .3s ease, opacity .3s ease; }
.pt-paybtns span:first-child { background: var(--pt-primary); color: white; opacity: .45; }
.pt-paybtns span:first-child.is-ready { opacity: 1; }
.pt-paybtns span:last-child { border: 1px solid var(--pt-line); color: #525252; }

/* Toast */
.pt-toast { position: absolute; z-index: 20; right: 20px; top: 70px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #1f1f1f; color: white; font-size: 12px; font-weight: 600; box-shadow: 0 20px 40px -20px #000; opacity: 0; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.pt-toast.is-on { opacity: 1; transform: none; }
.pt-toast svg { color: #4ade80; }

/* Laporan */
.pt-range { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #f5f5f5; font-size: 10.5px; }
.pt-range span { padding: 5px 9px; border-radius: 7px; color: var(--pt-muted); }
.pt-range span.is-on { background: white; color: var(--pt-ink); font-weight: 700; box-shadow: 0 1px 2px #0000001a; }
.pt-rtabs { display: inline-flex; gap: 2px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: #f5f5f5; }
.pt-rtabs span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 500; color: #525252; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.pt-rtabs span.is-on { background: white; color: var(--pt-ink); font-weight: 650; box-shadow: 0 1px 3px #0000001f; }
.pt-rpanel { display: none; }
.pt-rpanel.is-on { display: block; animation: pt-pop .3s ease; }
.pt-ai-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #b7e0d6; border-radius: 14px; background: #f0faf7; }
.pt-ai-bar i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: white; color: var(--pt-primary); }
.pt-ai-bar div { flex: 1; }
.pt-ai-bar strong { display: block; font-size: 12.5px; }
.pt-ai-bar small { font-size: 10.5px; color: var(--pt-muted); }
.pt-statement { padding: 6px 16px; }
.pt-srow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; opacity: 0; transform: translateX(-6px); transition: opacity .35s ease, transform .35s ease; }
.pt-srow:first-child { border-top: 0; }
.pt-srow.is-in { opacity: 1; transform: none; }
.pt-srow b { font-variant-numeric: tabular-nums; }
.pt-srow.is-minus b { color: var(--pt-red); }
.pt-srow.is-total { margin-top: 2px; padding: 12px 0 8px; border-top: 2px solid var(--pt-ink); font-weight: 800; font-size: 14px; }
.pt-srow.is-total b { color: var(--pt-primary); }
.pt-tb { display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px; padding: 9px 16px; border-top: 1px solid #f0f0f0; font-size: 12px; opacity: 0; transition: opacity .3s ease; }
.pt-tb.is-in { opacity: 1; }
.pt-tb span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.pt-tb.is-head { opacity: 1; background: #fafafa; border-top: 0; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--pt-muted); }
.pt-tb.is-sum { border-top: 2px solid var(--pt-ink); font-weight: 800; }
.pt-balanced { display: inline-flex; align-items: center; gap: 6px; margin: 10px 16px 12px; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .3s ease; }
.pt-balanced.is-in { opacity: 1; }

/* Rekam medis + Asisten AI drawer */
.pt-form { opacity: 1; transition: opacity .4s ease; }
.pt-steps { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 13px; font-weight: 700; }
.pt-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pt-primary); color: white; font-style: normal; font-size: 12px; }
.pt-field { margin-bottom: 12px; }
.pt-field label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; }
.pt-field div { padding: 9px 12px; border: 1px solid var(--pt-line); border-radius: 10px; background: white; font-size: 12.5px; }
.pt-field div.is-empty { color: #a3a3a3; }
.pt-field div.is-filled { border-color: var(--pt-primary); background: var(--pt-primary-soft); color: var(--pt-ink); animation: pt-pop .3s ease; }
.pt-dim { position: absolute; inset: 0; z-index: 5; background: #0000004d; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.pt-dim.is-on { opacity: 1; }
.pt-drawer { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: 470px; display: flex; flex-direction: column; background: white; box-shadow: -20px 0 50px -20px #0000004d; transform: translateX(100%); transition: transform .45s cubic-bezier(.4,0,.2,1); }
.pt-drawer.is-on { transform: none; }
.pt-drawer-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--pt-line); }
.pt-drawer-head strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pt-drawer-head strong svg { color: var(--pt-primary); }
.pt-drawer-head p { margin: 6px 0 0; font-size: 11px; line-height: 1.5; color: var(--pt-muted); }
.pt-chat { flex: 1; display: grid; gap: 10px; align-content: start; padding: 14px 16px; overflow: hidden; }
.pt-bubble { justify-self: end; max-width: 80%; padding: 9px 13px; border-radius: 12px; background: var(--pt-primary); color: white; font-size: 12px; animation: pt-pop .25s ease; }
.pt-typing { display: inline-flex; gap: 4px; width: max-content; padding: 10px 12px; border-radius: 12px; background: #f5f5f5; }
.pt-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a3a3a3; animation: pt-dot 1s infinite; }
.pt-typing i:nth-child(2) { animation-delay: .15s; } .pt-typing i:nth-child(3) { animation-delay: .3s; }
.pt-reply { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--pt-line); border-radius: 14px; animation: pt-pop .3s ease; }
.pt-reply > small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--pt-muted); }
.pt-cond { padding: 8px 10px; border: 1px solid var(--pt-line); border-radius: 10px; }
.pt-cond strong { display: block; font-size: 12.5px; }
.pt-cond span { font-size: 10.5px; color: var(--pt-muted); }
.pt-warn { padding: 8px 10px; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 10.5px; line-height: 1.5; }
.pt-drug { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--pt-line); border-radius: 12px; }
.pt-drug strong { font-size: 13px; }
.pt-dose { display: flex; align-items: center; gap: 8px; }
.pt-dose b { font-size: 18px; font-weight: 800; color: var(--pt-primary); }
.pt-dose span { padding: 1px 8px; border: 1px solid var(--pt-line); border-radius: 999px; font-size: 10px; }
.pt-calc { font-size: 10.5px; color: var(--pt-muted); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-chips span { padding: 2px 8px; border: 1px solid var(--pt-line); border-radius: 999px; font-size: 10px; }
.pt-apply { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--pt-primary); color: white; font-size: 11.5px; font-weight: 700; transition: background-color .3s ease; }
.pt-apply.is-done { background: #15803d; }
.pt-quickbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--pt-line); }
.pt-quickbar span { padding: 5px 10px; border: 1px solid var(--pt-line); border-radius: 9px; font-size: 10.5px; font-weight: 600; }

/* Inventaris */
.pt-table { overflow: hidden; }
.pt-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) 70px 110px 80px 90px 100px; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid #f0f0f0; font-size: 11.5px; transition: background-color .4s ease; }
.pt-tr.is-head { border-top: 0; background: #fafafa; font-size: 10.5px; font-weight: 600; color: #525252; }
.pt-tr strong { display: block; font-size: 12px; font-weight: 600; }
.pt-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 1px 7px; border: 1px solid #fecaca; border-radius: 6px; background: #fef2f2; color: var(--pt-red); font-size: 9.5px; font-weight: 600; }
.pt-cat { justify-self: start; padding: 1px 8px; border: 1px solid var(--pt-line); border-radius: 7px; font-size: 10px; }
.pt-stock b { font-weight: 800; }
.pt-stock.is-low b { color: var(--pt-red); }
.pt-stock small { color: var(--pt-muted); font-size: 10px; }
.pt-exp.is-soon { color: #d97706; font-weight: 600; }
.pt-tr.is-flash { background: #fef2f2; }
.pt-tr.is-hide { display: none; }

/* Master data: jenis hewan */
.pt-mtabs { display: flex; gap: 2px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: #f5f5f5; }
.pt-mtabs span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 9px; font-size: 11.5px; color: #525252; }
.pt-mtabs span.is-on { background: white; color: var(--pt-ink); font-weight: 650; box-shadow: 0 1px 3px #0000001f; }
.pt-mhead { padding: 12px 14px; border-bottom: 1px solid var(--pt-line); background: #fafafa; }
.pt-mhead strong { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pt-mhead strong svg { color: var(--pt-primary); }
.pt-mhead p { margin: 2px 0 10px; font-size: 10.5px; color: var(--pt-muted); }
.pt-madd { display: flex; gap: 8px; }
.pt-madd .pt-input { flex: 1; background: white; }
.pt-caret { display: inline-block; width: 1px; height: 14px; margin-left: 1px; background: var(--pt-ink); animation: pt-blink 1s steps(1) infinite; vertical-align: -2px; }
.pt-species { display: grid; }
.pt-sp { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-top: 1px solid #f0f0f0; font-size: 12.5px; font-weight: 500; }
.pt-sp i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f5f5f5; font-style: normal; font-size: 16px; }
.pt-lock { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border: 1px solid #b7e0d6; border-radius: 999px; background: #f0faf7; color: var(--pt-primary); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.pt-sp.is-new { background: #f0faf7; animation: pt-pop .35s ease; }
.pt-sp.is-new em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; color: var(--pt-primary); }

/* Cursor */
.pt-cursor { position: absolute; z-index: 30; top: 0; left: 0; width: 22px; height: 22px; pointer-events: none; transition: transform .7s cubic-bezier(.45,0,.2,1), opacity .3s ease; filter: drop-shadow(0 2px 3px #0000004d); }
.pt-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #0b8a7455; transform: scale(0); opacity: 0; }
.pt-cursor.is-click::after { animation: pt-ripple .45s ease-out; }
.pt-press { transform: scale(.96); }

@keyframes pt-progress { to { transform: scaleX(1); } }
@keyframes pt-draw { to { stroke-dashoffset: 0; } }
@keyframes pt-fade { to { opacity: 1; } }
@keyframes pt-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pt-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes pt-blink { 50% { opacity: 0; } }
@keyframes pt-ripple { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

@media (max-width: 1099px) {
    .pt { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pt-win { order: -1; }
    .pt-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-chapter p, .pt-chapter ul { display: none; }
    .pt-chapter .pt-bar { margin-left: 34px; }
}
@media (max-width: 767px) {
    .pt-chapters { display: flex; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
    .pt-chapters::-webkit-scrollbar { display: none; }
    .pt-chapter { flex: 0 0 auto; }
    .pt-chapter button { padding: 10px 12px; }
    .pt-chapter strong { font-size: 13.5px; white-space: nowrap; }
    .pt-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-scene, .pt-cursor, .pt-drawer { transition: none !important; }
    .pt-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
    .pt-area { opacity: 1; animation: none !important; }
    .pt-chapter.is-on .pt-bar { visibility: hidden; }
}

/* Pet avatars (same assets as the app) */
.pt-sp i { overflow: hidden; }
.pt-sp i img { width: 100%; height: 100%; object-fit: cover; }
.pt-legend img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.pt-field img { width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; object-fit: cover; vertical-align: -5px; }

/* Product photos (generic, Wikimedia Commons; see assets/images/vet/produk/CREDITS.md) */
.pt-product > div:first-child i { overflow: hidden; background: white; border: 1px solid #f0f0f0; }
.pt-product > div:first-child i img { width: 100%; height: 100%; object-fit: cover; }
.pt-name { display: flex; align-items: flex-start; gap: 10px; }
.pt-thumb { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; overflow: hidden; border: 1px solid #f0f0f0; border-radius: 8px; background: #f5f5f5; color: #a3a3a3; }
.pt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-credit { display: block; margin-top: 4px; font-size: 11px; color: #94a3b8; }
.pt-credit a { color: inherit; text-decoration: underline; }

/* Kalendar (occupancy calendar, mirrors three-day-calendar.tsx: tone colors = Tailwind *-50 bg / *-300 border / *-900 text) */
.pt-ctool { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pt-ctool strong { margin-left: 8px; font-size: 13px; }
.pt-btn.pt-icon { width: 32px; padding: 0; justify-content: center; }
.pt-ctool2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pt-cchips { display: flex; gap: 4px; }
.pt-cchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; background: #f5f5f5; color: var(--pt-muted); font-size: 11px; font-weight: 500; transition: background-color .25s ease, color .25s ease; }
.pt-cchip em { font-style: normal; opacity: .55; }
.pt-cchip.is-on { background: var(--pt-primary); color: white; }
.pt-cchip.is-on em { opacity: .75; }
.pt-clegend { display: flex; gap: 10px; font-size: 10.5px; color: var(--pt-muted); }
.pt-clegend span { display: inline-flex; align-items: center; gap: 5px; }
.pt-clegend i { width: 9px; height: 9px; border-radius: 2px; }
.pt-clegend .pt-tone-violet { background: #8b5cf6; } .pt-clegend .pt-tone-amber { background: #f59e0b; } .pt-clegend .pt-tone-sky { background: #3b82f6; }
.pt-clegend .pt-tone-teal { background: #14b8a6; } .pt-clegend .pt-tone-muted { background: #d4d4d4; }
.pt-cal { position: relative; overflow: hidden; }
.pt-crow { display: grid; grid-template-columns: 170px repeat(7, minmax(0, 1fr)); min-height: 46px; border-bottom: 1px solid #f0f0f0; transition: opacity .3s ease; }
.pt-crow:last-of-type { border-bottom: 0; }
.pt-crow.is-head { min-height: 0; background: #fafafa; border-bottom: 1px solid var(--pt-line); }
.pt-crow.is-hide { display: none; }
.pt-clabel { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-right: 1px solid #f0f0f0; min-width: 0; font-size: 11px; font-weight: 600; color: var(--pt-muted); }
.pt-clabel strong { display: block; font-size: 12px; color: var(--pt-ink); }
.pt-clabel small { display: block; font-size: 10px; font-weight: 400; color: var(--pt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-clabel > div { min-width: 0; }
.pt-cav { flex-shrink: 0; width: 26px; height: 26px; overflow: hidden; border-radius: 50%; background: #f5f5f5; }
.pt-cav img { width: 100%; height: 100%; object-fit: cover; }
.pt-cday { grid-row: 1; display: grid; justify-items: center; padding: 6px 0; border-left: 1px solid #f0f0f0; font-size: 10px; color: var(--pt-muted); }
.pt-cday b { font-size: 11.5px; color: var(--pt-ink); }
.pt-cday.is-today b, .pt-cday.is-today span { color: var(--pt-primary); }
.pt-ccol { grid-row: 1; border-left: 1px solid #f0f0f0; }
.pt-ccol.is-today, .pt-cday.is-today { background: #0b8a740a; }
.pt-cbar { grid-row: 1; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; margin: 4px; padding: 3px 7px; border: 1px solid; border-radius: 3px; transform-origin: left center; transition: box-shadow .2s ease; }
.pt-cbar > div { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; }
.pt-cbar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cbar small { font-size: 9.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cbar.pt-tone-violet { background: #f5f3ff; border-color: #c4b5fd; color: #4c1d95; }
.pt-cbar.pt-tone-amber { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.pt-cbar.pt-tone-sky { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.pt-cbar.pt-tone-teal { background: #f0fdfa; border-color: #5eead4; color: #134e4a; }
.pt-cbar.pt-tone-muted { background: #fafafa; border-color: var(--pt-line); color: var(--pt-muted); }
.pt-scene[data-scene="kalendar"] .pt-cbar { transform: scaleX(0); opacity: 0; }
.pt-scene[data-scene="kalendar"].is-grown .pt-cbar { transform: none; opacity: 1; transition: transform .5s cubic-bezier(.4,0,.2,1) var(--d), opacity .3s ease var(--d), box-shadow .2s ease; }
.pt-cbar.is-hit { box-shadow: 0 0 0 2px #8b5cf6; }
.pt-cpop { position: absolute; z-index: 5; display: grid; gap: 2px; width: 220px; padding: 10px 12px; border: 1px solid var(--pt-line); border-radius: 10px; background: white; box-shadow: 0 16px 36px -16px #0000004d; font-size: 11px; color: var(--pt-muted); opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.pt-cpop strong { font-size: 12.5px; color: var(--pt-ink); }
.pt-cpop.is-on { opacity: 1; transform: none; }
.pt-cpop-act { margin-top: 4px; font-weight: 600; color: var(--pt-primary); }

/* Simple chapter list + one description area under the window. All descriptions share one grid
   cell, so the block is always as tall as the longest one: switching chapters never shifts the page. */
.pt-left { padding-top: 6px; }
.pt-chapter button { padding: 11px 14px; }
.pt-desc { display: grid; margin-top: 18px; }
.pt-desc-item { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.pt-desc-item.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }
.pt-desc-item h3 { margin: 0 0 6px; font-size: 18px; font-weight: 750; letter-spacing: -.015em; color: var(--vt-ink); }
.pt-desc-item p { margin: 0 0 12px; max-width: 720px; font-size: 14.5px; line-height: 1.65; color: var(--vt-muted); }
.pt-desc-item ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-desc-item li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #dbe5f0; border-radius: 999px; background: white; font-size: 13px; font-weight: 600; color: #334155; }
.pt-desc-item li svg { color: var(--pt-primary); flex-shrink: 0; }
.pt-right .pt-note { margin-left: 0; }
@media (max-width: 1099px) {
    .pt-left { padding-top: 0; }
}

/* Redacted placeholders: modules/tabs not shown in the public demo render as neutral bars
   (no text in the DOM), so the full app structure isn't exposed. */
.pt-ghost { display: block; height: 7px; border-radius: 99px; background: #e7e7e7; }
.pt-group .pt-ghost { height: 5px; margin-top: 4px; background: #efefef; }
.pt-item.is-ghost { pointer-events: none; }
.pt-rtabs span.is-ghost, .pt-quickbar span.is-ghost { width: 74px; align-self: center; pointer-events: none; }
.pt-quickbar span.is-ghost { border-color: transparent; background: none; padding: 5px 0; }
