.staff-intake-drop{border:1px dashed #c6b49e;border-radius:8px;padding:.8rem 1rem;margin-bottom:.8rem;background:#fffaf4}.staff-intake-drop small,[data-intake-status]{color:#6f6054}.staff-intake-drop input{display:block;margin-top:.45rem}[data-intake-docs] details{margin:.7rem 0}[data-intake-docs] summary{cursor:pointer;padding:.4rem 0;font-weight:600}[data-intake-docs] textarea{width:100%}
.column-choice{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(6rem,auto) 2rem 2rem;gap:.5rem;align-items:center;padding:.4rem 0;border-bottom:1px solid #ebe8e3}.column-choice button{padding:.25rem;border:1px solid #ddd4c8;border-radius:5px;background:white}.column-choice label{display:flex;align-items:center;gap:.5rem}
.configurable-table :is(th,td).col-left{text-align:left}.configurable-table :is(th,td).col-center{text-align:center}.configurable-table :is(th,td).col-right{text-align:right}.configurable-table .col-center :is(.patient-fast-actions,.visit-row-actions){justify-content:center}.configurable-table .col-right :is(.patient-fast-actions,.visit-row-actions){justify-content:flex-end}
.layout-hidden{display:none!important}
.layout-pickers{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1rem}.layout-pickers select{max-width:100%;flex:1 1 9rem}
.layout-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.4rem;max-height:55vh;overflow:auto}.layout-options label{display:flex;align-items:center;gap:.6rem;padding:.5rem;border-bottom:1px solid #e9e6e2}
.clear-clinic-search{display:inline-grid;place-items:center;position:relative;align-self:center;vertical-align:middle;flex:0 0 1.7rem;margin-left:-1.95rem;margin-right:.25rem;width:1.7rem;height:1.7rem;border:0;background:transparent;color:#635c54;border-radius:6px;cursor:pointer;font-size:20px;z-index:1}.clear-clinic-search:hover,.clear-clinic-search:focus-visible{background:#ffeddd;color:#9b4300}
input:has(+.clear-clinic-search){padding-inline-end:2.1rem!important}input:has(+.clear-clinic-search)::-webkit-search-cancel-button{display:none}
.tooth-chart{overflow:hidden}.tooth-scroll{overflow-x:auto;background:radial-gradient(ellipse at center,#fffaf1,#f4f1ea)}.tooth-map{min-width:500px;max-width:940px;margin:auto;padding:1rem .8rem}.tooth-orientation{display:flex;align-items:center;justify-content:space-between;color:#716557;font-size:12px}.tooth-orientation strong:only-child{margin:auto}.tooth-jaw{display:grid;grid-template-columns:repeat(var(--count),minmax(0,1fr));align-items:center;padding:.45rem 0}
.tooth-unit{appearance:none;border:1px solid transparent;border-radius:14px;padding:0 0 .2rem;display:flex;flex-direction:column;align-items:center;background:transparent;color:#49433c;cursor:pointer;transform:translateY(var(--lift));min-width:0}.tooth-jaw+.tooth-jaw{margin-top:.85rem}.tooth-jaw+.tooth-jaw .tooth-unit{flex-direction:column-reverse;transform:translateY(calc(-1 * var(--lift)))}.tooth-unit canvas{width:100%;max-width:62px;height:auto}.tooth-unit b{border-bottom:4px solid var(--status);font-size:12px;font-variant-numeric:tabular-nums}.tooth-unit:hover,.tooth-unit:focus-visible{background:#ffffffa8;border-color:#bdaa94}.tooth-unit[aria-pressed=true]{background:#fff4e4;border-color:#e97920;box-shadow:0 0 0 1px #e97920}
.tooth-legend{display:flex;flex-wrap:wrap;gap:.45rem .9rem;padding:.8rem 1rem;color:#555;font-size:12px}.tooth-legend i{display:inline-block;width:.65rem;height:.65rem;border-radius:50%;margin-right:.3rem}.tooth-entry{border-left:2px solid #e9b47e;padding:.4rem .8rem;margin-bottom:.55rem}.tooth-entry time{margin-inline-start:1rem;color:#716b64;font-size:12px}.tooth-entry p{white-space:pre-wrap;margin:.25rem 0}
.import-preview{display:block;max-width:min(100%,380px);max-height:180px;object-fit:contain;border-radius:6px}.page-migration td .import-preview{width:140px;max-height:92px}

.staff-doc-cover{display:flex;align-items:center;gap:12px;padding:18px;background:#fff3e8;color:#8b4a17}.staff-doc-cover svg{width:36px;height:36px}.staff-doc-Passport{background:#edf3ff;color:#39568b}.staff-doc-Certificate{background:#e9f5ef;color:#34674d}.staff-doc-Contract{background:#f0edfb;color:#5b4889}

.crm-settings-tabs,.setting-choices{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .85rem}
.crm-settings-tabs button,.setting-choices button{display:inline-flex;align-items:center;gap:.45rem;border:1px solid #e2e5e9;border-radius:8px;background:#fff;padding:.5rem .75rem;font:inherit;color:inherit;cursor:pointer}
.crm-settings-tabs button[aria-pressed=true],.setting-choices button[aria-pressed=true]{color:#863b00;border-color:#efac75;background:#fff3e8}
.crm-settings-tabs svg,.setting-choices svg,.setting-preview svg,.setting-art svg{width:18px;height:18px;flex:none}
.crm-editor .layout-pickers select{flex:none;min-height:36px}
.crm-editor .setting-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:.4rem}
.crm-editor .setting-switch{position:relative;display:flex;align-items:center;gap:.55rem;padding:.52rem .65rem;border:1px solid #e2e5e9;border-radius:8px;cursor:pointer;min-width:0;overflow-wrap:anywhere;background:white}
.setting-art{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#f0f2f5;color:#667484;flex:none}
.setting-switch:has(:checked) .setting-art{background:#fff0e1;color:#a84c00}
.setting-switch small{display:block;color:#6d7278}.setting-switch input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px}.setting-switch i{margin-inline-start:auto;border-radius:20px;background:#9ca6af;display:inline-flex;align-items:center;padding:3px;box-sizing:border-box;width:32px;height:19px;flex:none}.setting-switch i:before{content:'';display:block;border-radius:50%;width:13px;height:13px;background:white;transition:transform .14s ease}.setting-switch input:checked+i{background:#c95000}.setting-switch input:checked+i:before{transform:translateX(13px)}.setting-switch:has(input:focus-visible){outline:2px solid #c95000;outline-offset:2px}.setting-switch:has(input:disabled){cursor:default;opacity:.72}
.setting-preview{margin:1rem 0;background:#f7f8fa;border:1px solid #e3e7ec;border-radius:9px;padding:.7rem}.setting-preview h3{font-size:.88rem;margin:0 0 .5rem}.setting-preview [data-visibility-preview]{display:flex;flex-wrap:wrap;gap:.35rem;max-height:15rem;overflow:auto}.setting-preview [data-visibility-preview] span{display:inline-flex;align-items:center;gap:.3rem;background:white;border:1px solid #dfe4ea;border-radius:6px;padding:.3rem .5rem}.setting-preview td,.setting-preview th{min-width:6rem}
.settings-save{display:flex;gap:.6rem;align-items:center;justify-content:flex-end;margin-top:.6rem}.settings-save [role=status]{color:#993b13}.crm-editor .column-choice select{max-width:100%}.cad-subfilters{background:#faf7f4;border-inline-start:3px solid #e96a16}
@media(max-width:600px){.crm-editor .column-choice{grid-template-columns:minmax(0,1fr) 5.3rem 1.65rem 1.65rem;gap:.2rem}.column-choice .setting-art{display:none}.crm-editor .column-choice .setting-switch{padding:.35rem}.crm-editor .layout-pickers>*{flex:1}}
@media(prefers-reduced-motion:reduce){.setting-switch i:before{transition:none}}

.staff-doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:12px;padding:14px}
.staff-select-bar,.staff-select-bar label,.staff-doc-card footer,.staff-doc-status,.staff-kind{display:flex;align-items:center;gap:8px}.staff-select-bar{flex-wrap:wrap;padding:9px 14px;border-bottom:1px solid var(--line);font-size:.85rem}.staff-select-bar .actions{margin-inline-start:auto}.staff-select-bar input,.staff-card-check input{accent-color:#d45a00;width:16px;height:16px}
.staff-doc-card{--ink:#936138;--wash:#fff4e5;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}.staff-doc-card.tone-identity{--ink:#426491;--wash:#edf4ff}.staff-doc-card.tone-education{--ink:#836130;--wash:#fbf3e3}.staff-doc-card.tone-civil{--ink:#326f65;--wash:#ecf5ef}.staff-doc-card.tone-contract{--ink:#635185;--wash:#f3eff9}.staff-doc-card:has([data-staff-row]:checked){outline:2px solid #ed790f;outline-offset:-1px}
.staff-doc-visual{position:relative;background:var(--wash);height:100px;isolation:isolate}.staff-doc-preview{border:0;background:none;color:var(--ink);display:grid;place-items:center;width:100%;height:100%;padding:6px;cursor:pointer}.staff-doc-preview img{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);object-fit:contain;opacity:0;pointer-events:none}.staff-doc-preview img.ready{opacity:1}.staff-doc-preview:has(img.ready) .staff-paper-art{visibility:hidden}.staff-paper-art{display:grid;justify-items:center;align-content:center;gap:6px;width:58px;height:74px;background:white;border:1px solid color-mix(in srgb,var(--ink) 36%,white);border-radius:4px;box-shadow:4px 3px 0 color-mix(in srgb,var(--ink) 20%,white);transform:rotate(-5deg)}.staff-paper-art svg{width:29px;height:29px}.staff-paper-art i{display:block;width:31px;height:2px;background:var(--ink);opacity:.27}.staff-paper-art i:last-child{width:21px}
.staff-card-check,.staff-bell{position:absolute;top:6px;display:grid;place-items:center;background:#fff;border-radius:6px;width:28px;height:28px;border:1px solid var(--line)}.staff-card-check{inset-inline-start:6px}.staff-bell{inset-inline-end:6px;color:#89501d}.staff-bell svg,.staff-kind svg{width:16px;height:16px}.staff-bell.red{color:#ac2e32}.staff-doc-info{display:grid;gap:4px;padding:10px 11px;align-content:start;overflow-wrap:anywhere}.staff-doc-info strong{font-size:.92rem;line-height:1.35}.staff-doc-info small{color:#647181}.staff-kind{font-size:.75rem;color:var(--ink)}.staff-doc-status{flex-wrap:wrap;font-size:.74rem}.staff-doc-status:empty{display:none}.staff-doc-card footer{flex-wrap:wrap;margin-top:auto;padding:6px 10px;border-top:1px solid var(--line)}.staff-doc-card footer button{min-width:34px;height:34px}.doc-extra-row{display:grid;grid-template-columns:1fr 1.5fr auto;align-items:end;gap:.5rem}.doc-extra-row input{min-width:0;width:100%}
