.dental-workspace{--dental-teal:#00a89f;--dental-red:#dd485d;--dental-blue:#327dc1;color:#102b46}.dental-toolbar{display:flex;gap:18px;justify-content:space-between;align-items:center;background:#dfefef;border:1px solid #cee7e7;border-radius:12px;padding:18px 20px;margin-bottom:18px}.dental-toolbar h2{margin:0;font-size:20px}.dental-toolbar p{font-size:12px;margin:6px 0 0;color:#526d80}.dental-filter{display:flex;flex-wrap:wrap;gap:5px}.dental-filter .btn{font-size:10px;padding:9px}.dental-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:16px;align-items:start}.dental-chart{padding:14px;overflow:hidden;background:#fff}.dental-direction{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#5e7992;margin-bottom:12px}.dental-direction span:nth-child(2){color:#008d87;font-weight:700}.dental-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#89bcbc #eef5f5;padding:2px 2px 12px}.dental-arch-section{min-width:896px}.dental-arch-section h3{text-align:center;text-transform:uppercase;letter-spacing:1px;font-size:11px;color:#008f89;margin:8px 0 14px}.dental-arch{display:grid;grid-template-columns:repeat(16,minmax(56px,1fr));align-items:start}.dental-arch.filtered{grid-template-columns:repeat(8,minmax(64px,1fr));max-width:800px;margin:auto}.dental-scroll:has(.filtered) .dental-arch-section{min-width:512px}.dental-tooth{display:flex;flex-direction:column;align-items:center;position:relative;border:1px solid transparent;border-radius:9px;padding:5px 3px 7px;min-width:0}.dental-tooth.active{border-color:#00aaa0;background:#f0faf9}.dental-tooth:nth-child(8){border-right-color:#cedfe6;border-radius:9px 0 0 9px}.dental-select{border:0;padding:0;width:100%;background:transparent;color:#102b46;position:relative;cursor:pointer;display:flex;flex-direction:column;align-items:center}.dental-select strong{font-size:12px;margin:4px 0 8px}.dental-art{display:block;width:100%;height:110px;overflow:hidden;mix-blend-mode:multiply}.lower .dental-select{order:2;flex-direction:column-reverse}.lower .dental-surfaces{order:1;margin-bottom:5px}.lower .dental-select strong{margin:5px 0}.dental-surfaces{display:block;width:50px;height:50px;overflow:visible;flex-shrink:0}.surface-region path{fill:white;stroke:#8ba4be;stroke-width:1.4;stroke-linejoin:round}.surface-region text{fill:#173d62;font:700 15px system-ui;pointer-events:none}.surface-region[role=button]{cursor:pointer}.surface-region.finding path{fill:#ffe3e6;stroke:#c65064}.surface-region.restoration path{fill:#ddecff;stroke:#327dc1}.surface-region.selected path{fill:#00a69b;stroke:#006e69;stroke-width:2}.surface-region.selected text{fill:white}.surface-region[role=button]:hover path{stroke:#007a74;stroke-width:3}.surface-region:focus{outline:none}.surface-region:focus path{stroke:#0e304b;stroke-width:4}.dental-select:focus-visible{outline:3px solid #007e79;outline-offset:2px;border-radius:6px}.dental-divider{min-width:512px;background:#eef7f8;text-align:center;color:#4b7091;font-size:10px;font-weight:600;padding:10px;margin:12px 0 14px}.legacy-mark{position:absolute;left:0;top:1px;color:#688095;font-size:9px}.absent .dental-art{opacity:.4}.absent-mark{position:absolute;top:20px;left:50%;transform:translateX(-50%);font-size:60px;font-weight:300;color:#7e8e98}.dental-legend{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid #e5eff2;padding-top:12px;font-size:10px}.dental-legend span:before{content:'●';margin-right:4px}.teal-dot:before{color:#009c93}.red-dot:before{color:#d34d62}.blue-dot:before{color:#327dc1}.gray-dot:before{color:#688095}.dental-help{font-size:10px;color:#667e8e;line-height:1.7;margin:12px 0 0}.dental-inspector{padding:18px;background:#fff;position:sticky;top:84px}.dental-inspector h2{display:flex;gap:12px;align-items:center;margin:12px 0}.dental-inspector h2 b{font-size:34px}.dental-inspector h2 span{font-size:12px;line-height:1.6}.dental-detail{display:flex;align-items:center;justify-content:center;gap:20px;border-top:1px solid #e4edf2;border-bottom:1px solid #e4edf2;padding:12px 0;margin-bottom:12px}.dental-detail .dental-art{width:84px;height:142px}.dental-detail .dental-surfaces{width:92px;height:92px}.dental-surface-buttons{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:18px}.dental-surface-buttons .btn{flex:1;min-height:38px;font-size:10px;padding:8px}.dental-inspector form{display:flex;flex-direction:column;gap:9px}.dental-inspector label{font-size:12px;font-weight:700}.dental-inspector label span{font-weight:400;color:#6e8495}.dental-inspector select,.dental-inspector textarea{width:100%;padding:10px;border:1px solid #bdd1da;border-radius:7px;font:12px inherit;color:#153e56;background:#fff}.dental-inspector textarea{resize:vertical;min-height:70px}.dental-inspector .form-error:empty{display:none}.dental-inspector>.btn{margin-top:16px;width:100%}.dental-selection-summary{background:#edf7f6;padding:10px;border-radius:6px;color:#007e78;font-size:12px;font-weight:700}.dental-selection-summary small{display:block;font-size:10px;font-weight:400;line-height:1.7;margin-top:4px}.dental-diagnoses td{vertical-align:top}.dental-diagnoses td small{display:block;font-size:11px;line-height:1.8;color:#607889}.dental-diagnoses td p{font-size:12px;max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere}.dental-diagnoses .actions{margin-top:10px;flex-wrap:wrap;gap:5px}.dental-legacy{padding:20px;border-top:1px solid #dfeaf0;font-size:12px;color:#566f83}.dental-legacy summary{font-weight:700;cursor:pointer}.dental-legacy li{margin:7px 0}.tooth .dental-art{height:58px}.dental-workspace button:disabled{opacity:.45;cursor:not-allowed}
@media(min-width:1650px){.dental-arch-section{min-width:0}.dental-art{height:125px}}
@media(max-width:1420px){.dental-toolbar{align-items:flex-start;flex-direction:column}.dental-layout{grid-template-columns:minmax(0,1fr)}.dental-inspector{position:static}.dental-detail{justify-content:flex-start}.dental-inspector form{max-width:580px}.dental-inspector>.btn{width:auto}.dental-surface-buttons{max-width:580px}}
@media(max-width:600px){.dental-toolbar{padding:14px}.dental-chart{padding:8px}.dental-direction{font-size:8px}.dental-direction span:nth-child(2){display:none}.dental-filter .btn{min-height:40px}.dental-inspector{padding:16px}.dental-surface-buttons .btn{min-height:44px}.dental-legend{gap:8px}.dental-diagnoses .panel-head{align-items:flex-start;gap:12px;flex-direction:column}.dental-diagnoses table{min-width:690px}}
/* Direct chairside charting: one persistent tool, no second selection form. */
.direct-chart .dental-toolbar{margin-bottom:10px}.dental-palette{position:sticky;top:var(--dental-top,76px);z-index:14;background:#eff8f8;border:1px solid #bfdedd;border-radius:10px;padding:12px;box-shadow:0 5px 15px #102b460d}.dental-condition-tools{display:flex;gap:6px;flex-wrap:wrap}.dental-condition-tools .btn{min-height:40px}.dental-condition-tools [aria-pressed=true]{background:#007f79;border-color:#007f79;color:white;box-shadow:0 0 0 2px #b7e5df}.dental-condition-tools [data-dental-condition=Restauración][aria-pressed=true]{background:#236cc4;border-color:#236cc4}.dental-palette-bottom{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:9px;font-size:11px;color:#335b70}.dental-palette-bottom>span{flex:1}.dental-feedback{min-height:38px;padding:10px 4px;font-size:11px;color:#3b6675}.direct-chart .dental-chart{width:100%}.direct-chart .dental-art{height:120px}.direct-chart .dental-inspector{position:static;margin-top:12px}.dental-readonly-detail summary{cursor:pointer;font-weight:700;font-size:12px}.dental-readonly-detail .dental-detail{justify-content:flex-start;margin-top:14px}.dental-whole-badge{font-size:8px;font-weight:700;color:#245e9c;background:#e5f1ff;border:1px solid #bdd5f0;padding:2px 4px;border-radius:3px;order:3;margin-top:3px}.surface-region.mixed path{fill:#cfb6ec;stroke:#77529e;stroke-width:2.2;stroke-dasharray:4 2}.direct-chart .dental-legacy{margin-top:12px}.direct-chart .dental-tooth.active{box-shadow:inset 0 0 0 1px #009e94}.direct-chart .surface-region.selected path{fill:inherit}.direct-chart .dental-palette button:disabled{opacity:.45}.direct-chart .dental-surfaces{width:52px;height:52px}.direct-chart .dental-arch{grid-template-columns:repeat(16,minmax(60px,1fr))}.direct-chart .dental-arch.filtered{grid-template-columns:repeat(8,minmax(60px,1fr))}.direct-chart .dental-arch-section{min-width:960px}.direct-chart .dental-scroll:has(.filtered) .dental-arch-section{min-width:480px}
@media(max-width:600px){.dental-palette{padding:9px;margin:0 -4px}.dental-condition-tools{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 6px;overscroll-behavior-x:contain}.dental-condition-tools .btn{flex-shrink:0;min-height:44px}.dental-palette-bottom{gap:5px;margin-top:2px}.dental-palette-bottom>span{flex:0 0 100%;font-size:10px;margin:4px 0}.dental-palette-bottom .btn{font-size:10px;min-height:36px}.dental-feedback{font-size:10px}.direct-chart .dental-toolbar p{font-size:11px}.direct-chart .dental-art{height:120px}}
.dental-choices{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;padding:12px;border:1px solid #c7dada;border-radius:8px}.dental-choices legend{font-weight:600}.dental-choices label{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 12px;border:1px solid #c7dada;border-radius:6px;cursor:pointer}.dental-choices label:has(input:checked){background:#e5f6f3;border-color:#007f79}.dental-choices input{width:auto;accent-color:#007f79}
