.chart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.chart-toolbar strong,.chart-toolbar small{display:block}.chart-toolbar strong{color:#062856;font-size:18px}.chart-toolbar small{color:#6f8096;margin-top:4px}.chart-toolbar label{display:grid;gap:5px;color:#617087;font-size:11px;font-weight:700}.chart-toolbar select{min-width:150px;border:1px solid #ccd9e8;border-radius:10px;padding:10px;background:#fff}.chart-kicker{display:block;margin-bottom:5px;color:#1477e9;font-size:9px;font-weight:900;letter-spacing:.16em}.odontogram-heading{margin:2px 0 14px}.odontogram-shell{overflow:hidden;border:1px solid #dce8f5;border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);box-shadow:0 14px 35px rgba(27,73,125,.08)}.odontogram-chart{padding:22px 22px 10px;overflow-x:auto}.odontogram-orientation,.tooth-arch,.odontogram-bite-line,.odontogram-hint{min-width:900px}.odontogram-orientation{display:flex;justify-content:space-between;padding:0 8px 8px;color:#8a9aae;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.tooth-arch{display:grid;grid-template-columns:repeat(16,minmax(44px,1fr));gap:3px;align-items:end}.tooth-arch.lower{align-items:start}.tooth-button{--tooth-color:#fff;--tooth-stroke:#aebfd2;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;height:83px;padding:3px 1px 5px;border:0;border-radius:12px;background:transparent;color:#52677f;cursor:pointer;transition:background .18s ease,transform .18s ease,box-shadow .18s ease;animation:tooth-in .35s ease both;animation-delay:var(--tooth-delay)}.tooth-arch.lower .tooth-button{flex-direction:column-reverse;justify-content:flex-end}.tooth-button:hover{z-index:2;background:#edf6ff;transform:translateY(-2px)}.tooth-button:focus-visible{outline:3px solid rgba(22,113,232,.25);outline-offset:1px}.tooth-button.selected{background:#e8f3ff;box-shadow:inset 0 0 0 1.5px #1671e8,0 6px 15px rgba(22,113,232,.15)}.tooth-shape{display:block;width:38px;height:59px;filter:drop-shadow(0 3px 3px rgba(25,65,105,.08))}.tooth-svg{display:block;width:100%;height:100%;overflow:visible}.tooth-svg.is-lower{transform:rotate(180deg)}.tooth-silhouette{fill:var(--tooth-color);stroke:var(--tooth-stroke);stroke-width:1.65;stroke-linejoin:round;transition:fill .2s ease,stroke .2s ease}.tooth-detail{fill:none;stroke:var(--tooth-stroke);stroke-width:1;stroke-linecap:round;opacity:.58}.tooth-number{font-size:9px;font-weight:800;line-height:1}.tooth-button small{position:absolute;right:2px;top:3px;display:grid;place-items:center;width:17px;height:17px;border:2px solid #fff;border-radius:50%;background:#123d70;color:#fff;font-size:8px;font-weight:900;box-shadow:0 2px 7px rgba(9,42,79,.2)}.tooth-arch.lower .tooth-button small{top:auto;bottom:3px}.tooth-button.finding{--tooth-color:#ff7183;--tooth-stroke:#df3f56}.tooth-button.planned{--tooth-color:#ffc85d;--tooth-stroke:#d9950c}.tooth-button.completed{--tooth-color:#3cb6ff;--tooth-stroke:#167ed1}.tooth-button.finding .tooth-detail,.tooth-button.planned .tooth-detail,.tooth-button.completed .tooth-detail{stroke:#fff;opacity:.7}.odontogram-bite-line{display:flex;align-items:center;gap:10px;height:20px;color:#9caabd;font-size:8px;font-weight:900;letter-spacing:.13em}.odontogram-bite-line i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#d8e4f0 20%,#d8e4f0 80%,transparent)}.odontogram-hint{margin:10px 0 0;text-align:center;color:#8191a6;font-size:10px}.chart-legend{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:0;padding:13px 16px 16px;border-top:1px solid #e8f0f8;background:rgba(247,250,254,.8)}.chart-legend span{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #e1e9f2;border-radius:10px;background:#fff;color:#607087;font-size:9px;font-weight:800;box-shadow:0 3px 9px rgba(35,70,110,.04)}.chart-legend i{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#eef3f8;color:#aebfd2;font-style:normal}.chart-legend .legend-finding i{background:#fff0f2;color:#e34b5e}.chart-legend .legend-planned i{background:#fff6df;color:#dc970e}.chart-legend .legend-completed i{background:#e9f7ff;color:#168ee0}.dental-chart-form{background:#fff;border:1px solid #dce5ef;border-radius:16px;padding:18px;margin:18px 0}.dental-chart-form[hidden]{display:none}.odontogram-editor{border-color:#cfe2f7;box-shadow:0 12px 28px rgba(29,73,120,.08)}.chart-form-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.chart-form-heading strong{display:block;color:#062856;font-size:17px}.chart-form-heading small{display:block;color:#6f8096;margin-top:4px}.chart-form-heading button{border:0;background:#eef3f8;border-radius:50%;width:32px;height:32px;cursor:pointer}.chart-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}.chart-history{display:grid;gap:8px;margin-top:18px}.chart-history h3{color:#062856}.chart-history-row{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;background:#fff;border:1px solid #dce5ef;border-left:4px solid #6f8096;border-radius:11px;padding:12px}.chart-history-row.finding{border-left-color:#e34b5e}.chart-history-row.planned{border-left-color:#d99a13}.chart-history-row.completed{border-left-color:#168ee0}.chart-history-row span,.chart-history-row small{color:#617087}.chart-history-row small{grid-column:1/-1}.periodontal-assessments{display:flex;gap:9px;overflow-x:auto;margin-bottom:17px}.periodontal-assessment{min-width:165px;border:1px solid #d3deea;border-radius:12px;background:#fff;padding:12px;text-align:left;cursor:pointer}.periodontal-assessment.active{border-color:#1769e0;background:#eff6ff}.periodontal-assessment strong,.periodontal-assessment small{display:block}.periodontal-assessment small{color:#6f8096;margin-top:4px}.periodontal-measure-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.periodontal-measure-grid>div{display:grid;gap:10px;background:#f6f9fc;border:1px solid #dce5ef;border-radius:13px;padding:15px}.periodontal-measure-grid strong{color:#062856}.periodontal-measure-grid label{display:grid;gap:5px;color:#526781;font-size:11px;font-weight:700}.periodontal-measure-grid label:has(input[type=checkbox]){display:flex;align-items:center}.periodontal-measure-grid input{border:1px solid #cbd8e7;border-radius:9px;padding:10px;background:#fff}.periodontal-measure-grid input[type=checkbox]{width:auto}.periodontal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.periodontal-kpis article{background:#fff;border:1px solid #dce5ef;border-radius:13px;padding:14px}.periodontal-kpis span,.periodontal-kpis strong{display:block}.periodontal-kpis span{font-size:9px;color:#6f8096;text-transform:uppercase;font-weight:800}.periodontal-kpis strong{font-size:21px;color:#062856;margin-top:5px}.periodontal-table-wrap{overflow:auto;background:#fff;border:1px solid #dce5ef;border-radius:14px}.periodontal-table-wrap table{width:100%;border-collapse:collapse;min-width:800px}.periodontal-table-wrap th,.periodontal-table-wrap td{padding:10px;border-bottom:1px solid #e4ebf3;text-align:left;font-size:10px}.periodontal-table-wrap th{background:#f3f7fb;color:#50627a}.periodontal-table-wrap tbody tr{cursor:pointer}.periodontal-table-wrap tbody tr:hover{background:#f0f6ff}@keyframes tooth-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.chart-toolbar{align-items:stretch;flex-direction:column}.chart-toolbar .primary,.chart-toolbar select{width:100%}.odontogram-chart{padding:16px 12px 8px}.periodontal-measure-grid,.periodontal-kpis{grid-template-columns:1fr 1fr}.chart-history-row{grid-template-columns:1fr}.chart-history-row small{grid-column:auto}}@media(max-width:480px){.periodontal-measure-grid,.periodontal-kpis{grid-template-columns:1fr}.chart-legend{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}.chart-legend span{white-space:nowrap}}
