:root { --teal: #0f766e; --teal-dark: #0b5d57; --teal-soft: #e6f4f2; }
body { background: #f4f7f8; }
.bg-teal { background: var(--teal); }
.text-teal { color: var(--teal); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline-teal { color: var(--teal); border-color: var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.nav-tabs .nav-link { color: #455a64; }
.nav-tabs .nav-link.active { color: var(--teal); font-weight: 600; }
.stat { border: 0; border-left: 4px solid var(--teal); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card { border-radius: .6rem; }

/* ---------- odontogram ---------- */
.tools-card { top: 76px; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid #90a4ae; flex: none; }
.swatch-erase { background: #fff; text-align: center; line-height: 16px; font-size: 12px; }
.tool.active { background: var(--teal-soft); border-left: 4px solid var(--teal); font-weight: 600; }
body.erasing .tsvg { cursor: not-allowed; }

.odo-scroll { overflow-x: auto; padding-bottom: .5rem; user-select: none; -webkit-user-select: none; }
.arch { display: flex; justify-content: center; gap: 3px; min-width: max-content; margin: .25rem 0; }
.arch + .arch { margin-top: .9rem; border-top: 2px dashed #cfd8dc; padding-top: .6rem; }
.arch-anak .tooth { width: 44px; }
.tooth { width: 44px; display: flex; flex-direction: column; align-items: center; }
.tooth.mid { margin-left: 14px; position: relative; }
.tooth.mid::before { content: ""; position: absolute; left: -9px; top: 0; bottom: 0; border-left: 2px solid #b0bec5; }
.tsvg { width: 42px; height: 42px; cursor: crosshair; display: block; }
.surf { stroke: #37474f; stroke-width: 1; transition: opacity .1s; }
.surf:hover { opacity: .7; stroke: var(--teal); stroke-width: 1.6; }
.slabel { font-size: 6px; fill: #90a4ae; pointer-events: none; font-family: system-ui, sans-serif; }
.overlay { pointer-events: none; }
.wtxt { font-size: 11px; font-weight: 700; fill: #37474f; font-family: system-ui, sans-serif; }
.wtxt-w { fill: #fff; }
.num { border: 0; background: transparent; font-size: .78rem; font-weight: 600; color: #455a64; padding: 1px 6px; border-radius: 10px; line-height: 1.3; }
.num:hover { background: var(--teal-soft); }
.num.selected { background: var(--teal); color: #fff; }
.num.has-dx { box-shadow: inset 0 0 0 2px #e53935; }
.tooth.has-data .num { color: #000; }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,118,110,.5);} 70% { box-shadow: 0 0 0 8px rgba(15,118,110,0);} 100% { box-shadow: 0 0 0 0 rgba(15,118,110,0);} }

@media print {
  .navbar, .tools-card, #riwayat, .btn { display: none !important; }
}

/* ---------- keuangan ---------- */
.nav-pills .nav-link { color: #455a64; }
.nav-pills .nav-link.active { background: var(--teal); }
.lap-table td { padding: .45rem .75rem; }
.lap-table tr.sec td { font-weight: 700; background: #f1f5f6; border-top: 1px solid #cfd8dc; }
.lap-table tr.sub td:first-child { padding-left: 2rem; }
.lap-table tr.tot td { font-weight: 700; border-top: 2px solid #455a64; background: #e8f3f1; }
.lap-table tr.grand td { font-weight: 800; font-size: 1.15rem; border-top: 3px double #263238; background: #d9efe9; }
.lap-table tr.grand.rugi td { background: #fde7e7; color: #b71c1c; }
@media print { .no-print { display: none !important; } body { background: #fff; } .card { box-shadow: none !important; border: 0; } }
