.bk-group { min-width: 0; border: 0; margin: 0; padding: 0; }
.bk-group legend { padding: 0; margin-bottom: 6px; color: #596477; font-size: 13px; font-weight: 650; }
.bk-options { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bk-choice { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; }
.bk-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bk-choice span,.bk-picker summary { display: flex; gap: 7px; align-items: center; min-height: 37px; padding: 6px 10px; background: white; color: #4b5769; border: 1px solid #dae1e8; border-radius: 8px; }
.bk-choice b { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.bk-choice svg,.bk-picker summary svg { width: 17px; height: 17px; flex: none; }
.bk-choice input:checked + span,.bk-options button[aria-pressed=true],.bk-panel button[aria-pressed=true]{border-color:#df782f;background:#fff2e7;color:#943e00;}
.bk-choice input:focus-visible + span,.bk-picker summary:focus-visible,.bk-panel button:focus-visible{outline:2px solid #bf570c;outline-offset:2px;}
.bk-choice input:disabled + span{opacity:.65;cursor:default;}
.bk-procedure,.bk-proc-list {display:grid;gap:7px;min-width:0;}
.bk-options:empty {display:none;}
.bk-options small {font-size:12px;color:#636d7d;}
.bk-pickers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;}
.bk-picker {min-width:0;}
.bk-picker summary {cursor:pointer;list-style:none;font-size:14px;}
.bk-picker summary::-webkit-details-marker{display:none}
.bk-picker summary svg:first-child {color:#ba5307;}
.bk-picker summary svg:last-child {margin-inline-start:auto;width:14px;}
.bk-panel {margin-top:6px;padding:9px;border:1px solid #e1e5eb;border-radius:8px;background:white;}
.bk-month-head {display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:6px;}
.bk-next svg {transform:rotate(180deg);}
.bk-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center;margin-bottom:5px;}
.bk-panel button:not(.btn,.icon-btn) {font:inherit;font-size:13px;min-height:32px;padding:3px;cursor:pointer;border:1px solid transparent;background-color:#f7f8fa;border-radius:6px;}
.bk-panel button[aria-pressed=true]:not(.btn,.icon-btn){border-color:#df782f;background:#fff2e7;}
.bk-times {display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:4px;max-height:220px;overflow:auto;}
.bk-times small {grid-column:1/-1;}
.bk-switch .setting-art {flex:none;}
.bk-procedure-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,10em) auto;gap:8px;align-items:end;}
.bk-procedure-row input {min-width:0;}
.bk-procedure-row .icon-btn {margin-bottom:2px;}
form:has(.bk-pickers) .form-grid {align-items:start;}
.modal .form-grid label.bk-switch {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;align-self:stretch;gap:8px;margin:0;padding:8px 10px;border:1px solid #e1e5eb;border-radius:8px;font-size:13px;}
.modal .bk-switch .setting-art {margin:0;}
.modal .bk-switch small {display:block;font-size:12px;}
.modal fieldset.bk-group {border:0;padding:0;}
.modal .bk-group legend {padding:0;}

form:has(.bk-pickers) [hidden]{display:none!important;}
@media(max-width:620px){.bk-pickers{grid-template-columns:1fr;gap:12px;}.bk-procedure-row{grid-template-columns:minmax(0,1fr) minmax(60px,6em) auto;}.bk-choice span{padding:6px 8px;}.bk-days button{min-height:36px;}}

.dept-toolbar{display:flex;align-items:end;gap:6px;flex-wrap:wrap}.dept-toolbar .form-label{flex:1;min-width:12rem}
.dept-options{border-top:1px solid var(--line);padding:8px 0}.dept-options summary{cursor:pointer;font-weight:600}.dept-options>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:6px;margin-top:8px}
.clinical-navigation [data-chart-dept][aria-pressed=true]{color:#993d00;background:#fff2e6;border-color:#e69c63}

.dept-tabs,.dept-order{display:flex;align-items:center;gap:.4rem;margin:.5rem 0 1rem;flex-wrap:wrap}.dept-tabs .btn[aria-pressed="true"]{background:#fff1e6;border-color:#ed6906;color:#a74000}.dept-order .setting-switch{width:auto}.dept-options .inherited{opacity:.6}

.dept-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:.8rem;margin-bottom:1rem}.dept-bar .dept-tabs{margin:0}.dept-scopes{display:flex;flex-wrap:wrap;gap:.35rem}.dept-scopes .btn{font-size:.8rem}.dept-scopes .btn svg{width:14px}

.dept-booking{display:grid;gap:.8rem;padding:.75rem 0}.dept-booking>.form-label{max-width:16rem}.dept-booking>button{justify-self:start}.dept-booking h3{margin:.4rem 0 0}.dept-options [hidden],.dept-options[hidden]{display:none!important}.dept-options summary small{color:var(--muted);font-weight:400;margin-inline-start:.4rem}[data-dept-search]{width:min(100%,24rem);margin:.8rem 0}

[data-dept-search]{min-height:2.5rem;padding:.5rem .8rem;border:1px solid var(--line);border-radius:.55rem;font:inherit;background:white;color:inherit}

.dept-visual{display:grid;gap:14px;margin-block:14px}
.dept-visual [hidden]{display:none!important}
.dept-visual input[type=search]{max-width:28rem}
.dept-region-nav,.dept-preview-tabs,.dept-sample{display:flex;flex-wrap:wrap;gap:6px}
.dept-region-nav .btn[aria-pressed=true],.dept-preview-tabs button[aria-pressed=true]{background:#fff3e7;border-color:#ef791e;color:#904006}
.dept-design{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);gap:16px;align-items:start}
.dept-region,.dept-live{padding:16px;border:1px solid #dfe4ea;border-radius:10px;background:white}
.dept-region+.dept-region:not([hidden]){margin-top:8px}
.dept-region>h2,.dept-live h3,.dept-live h4{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.dept-region>h2 svg,.dept-live svg,.dept-region-nav svg{width:17px;height:17px;flex-shrink:0}
.dept-live{position:sticky;top:12px;background:#fafbfc}
.dept-preview-tabs{padding-bottom:10px;border-bottom:1px solid #dfe4ea;margin-bottom:12px}
.dept-preview-tabs button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #dfe4ea;border-radius:6px;background:white;cursor:pointer}
.dept-chip,.dept-path{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;background:#fff;border:1px solid #e2e6eb;font-size:.84rem}
.dept-path{display:flex;flex-wrap:wrap;width:100%}.dept-path span{color:#874811}
.dept-set-group{margin-top:16px}.dept-set-group h3{margin:0 0 8px}.dept-set-group>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:6px}
.dept-region .setting-switch{min-width:0;width:100%;justify-content:space-between}
.dept-region .setting-switch>span{overflow-wrap:anywhere}
@media(max-width:880px){.dept-design{grid-template-columns:minmax(0,1fr)}.dept-live{position:static}}

.dept-flow{width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:4px;border-top:1px solid #dfe4ea;margin-top:6px;padding-top:8px}.dept-flow .dept-chip{border-color:#f2d6ba}

.dept-find{display:flex;align-items:center;max-width:28rem}.dept-find input[type=search]{width:100%;margin:0}

.dept-region .dept-inapplicable{display:none}
.dept-required-title{width:100%}
.dept-booking .bk-procedure-row{grid-template-columns:minmax(0,1fr) minmax(5em,8em) auto}
.dept-proc-template{grid-column:1/3;grid-row:2}.dept-proc-template select{min-width:0;width:100%}
.dept-booking [data-remove-proc]{grid-column:3;grid-row:1}

.visit-checklist{margin:12px 0}.visit-checklist div{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}.visit-checklist .dept-chip svg{width:15px;height:15px}.visit-checklist [data-missing=false]{color:#18704c}.visit-checklist [data-missing=true]{color:#91490d}

#modalForm [data-manual-pay][hidden],#modalForm [data-pay-status][hidden],#modalForm label[hidden]:has([name=healthFrom]){display:none!important}
[data-pay-status]{border:1px solid var(--line);border-radius:8px;padding:12px}[data-pay-status] legend{padding-inline:5px}

.staff-chart-actions,.staff-review-list>div,.staff-review-list>div>span,.staff-credit-metrics article>div{display:flex;align-items:center;gap:.55rem}
.staff-chart-actions{flex-wrap:wrap;margin-bottom:.7rem}.staff-chart .clinical-navigation{margin-bottom:.75rem}
.staff-credit-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.8rem;padding:1rem}
.staff-credit-metrics article{display:grid;align-content:start;justify-items:start;gap:.55rem;padding:.85rem;border:1px solid var(--line,#dde1e6);border-radius:.65rem}
.staff-credit-metrics article>strong{font-size:1.65rem;color:#994200;line-height:1.15}.staff-credit-metrics small,.staff-field-hint{color:#535d6b}.staff-credit-metrics .btn{height:auto;text-align:start;white-space:normal}
.staff-credit-metrics svg,.staff-review-list svg,.staff-original summary svg{width:1rem;height:1rem;flex:none}
.staff-chart .staff-review-list>div{justify-content:space-between;padding:.65rem 1rem;border-top:1px solid var(--line)}.staff-chart .staff-review-list .btn{flex:none}
.staff-review-btn{color:#894400;background:#fff3db}.staff-review-help,.staff-field-hint{margin:.15rem 0 .7rem}.staff-original{margin:.5rem 0 1rem}.staff-original summary{cursor:pointer;color:#924100}.staff-original summary svg{vertical-align:middle;margin-inline:.4rem}.staff-original img,.staff-original iframe{display:block;width:100%;margin-top:.6rem;max-height:52vh;object-fit:contain;border:0}.staff-original iframe{height:52vh}

.buttons-layout{display:grid;grid-template-columns:minmax(13rem,1fr) minmax(15rem,2fr);gap:1.25rem;padding:1.15rem;align-items:start}
.buttons-layout aside,.buttons-form,.buttons-list{display:grid;gap:.65rem;min-width:0}.buttons-layout input,.buttons-layout select{min-width:0;max-width:100%}
.buttons-list{max-height:56vh;overflow:auto;gap:.2rem}.buttons-list button,.button-icons button{display:flex;align-items:center;gap:.6rem;padding:.5rem .65rem;background:white;border:1px solid transparent;border-radius:.5rem;color:inherit;font:inherit;text-align:start;cursor:pointer}
.buttons-list button[aria-pressed=true],.button-icons button[aria-pressed=true]{border-color:#f6b781;background:#fff2e7;color:#903a00}.buttons-list small{display:block;color:#656f7f;font-size:.72rem}
.buttons-layout svg,[data-button-editor] h2 svg{width:1.1rem;height:1.1rem;flex:none}.buttons-form h3{margin:0}.button-names{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.button-icons{display:flex;flex-wrap:wrap;gap:.2rem;border:1px solid var(--line);border-radius:.6rem}.button-icons button{border-color:var(--line)}.buttons-preview{display:flex;align-items:center;gap:1rem;background:#faf7f3;padding:.8rem;border-radius:.6rem}
[data-custom-shortcut][hidden]{display:none!important}
@media(max-width:760px){.buttons-layout{grid-template-columns:1fr}.buttons-list{max-height:11rem}.button-names{grid-template-columns:1fr}}

[data-section-groups]{display:flex;flex-wrap:wrap;gap:.35rem}
[data-section-groups] button{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--line);background:white;color:inherit;cursor:pointer;padding:.35rem .5rem;border-radius:.5rem}
[data-section-groups] button[aria-pressed=true]{background:#fff2e7;border-color:#e9a16c;color:#8b3b00}
[data-section-groups] small{font-variant-numeric:tabular-nums}.usage-panel{border:1px solid var(--line);border-radius:.65rem;padding:.8rem}
.usage-panel h4{margin:0 0 .45rem}.usage-panel ul{list-style:none;padding:0;margin:.2rem 0 .7rem}.usage-panel li,.placed-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.usage-panel li{min-height:1.8rem}.usage-panel li>span{flex:1}.usage-panel [data-add-place]{margin-top:.4rem}
.placed-actions{display:inline-flex;vertical-align:middle}.patient-information>.placed-actions{margin-top:.5rem}

.tpl-layout{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,3.5fr);gap:1rem;padding:1rem;align-items:start}
.tpl-layout aside,.tpl-edit,.tpl-usage{display:grid;gap:.7rem;min-width:0}.tpl-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}
.tpl-layout svg,[data-settings-page=templates] h2 svg{width:1.05rem;height:1.05rem;flex:none}.tpl-list{max-height:65vh;overflow:auto}.tpl-list summary,.tpl-usage summary,.tpl-preview summary{cursor:pointer;padding:.4rem 0}.tpl-list button{width:100%;display:flex;align-items:center;gap:.55rem;text-align:start;font:inherit;background:white;color:inherit;border:1px solid transparent;border-radius:.5rem;padding:.55rem;cursor:pointer}
.tpl-list button[aria-pressed=true],.tpl-filter button[aria-pressed=true]{background:#fff1e5;color:#903b00;border-color:#f1c5a1}.tpl-filter,.tpl-fields,.tpl-drop,.tpl-usage [data-used]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.tpl-fields{align-items:end}.tpl-fields label{flex:1}.tpl-drop{padding:.55rem;border:1px dashed var(--line);border-radius:.55rem}.tpl-drop small{flex:1;min-width:9rem;color:#5d6772}
.tpl-preview{position:sticky;top:.5rem;background:#f5f5f3;padding:.75rem;min-width:0;border-radius:.65rem}.tpl-preview h3,.tpl-usage h3{margin:0 0 .5rem}.tpl-sample.paper{width:100%;max-width:100%;min-height:19rem;padding:1rem;overflow-wrap:anywhere}.tpl-layout textarea{resize:vertical}.tpl-usage{border:1px solid var(--line);border-radius:.6rem;padding:.7rem}.tpl-usage [data-used]>span{display:inline-flex;align-items:center;gap:.3rem}.tpl-usage [data-procedures]{max-height:16rem;overflow:auto}.tpl-usage [data-procedures] label{display:flex;align-items:start;gap:.55rem;padding:.35rem 0}.tpl-usage input[type=checkbox]{width:auto}.tpl-usage small{display:block;color:#5d6772}
@media(max-width:1150px){.tpl-editor{grid-template-columns:1fr}.tpl-preview{position:static}}@media(max-width:720px){.tpl-layout{grid-template-columns:1fr}.tpl-list{max-height:11rem}}

.lx-tabs{margin:0 0 .5rem}.lx-work{display:grid;grid-template-columns:minmax(230px,310px) minmax(250px,1fr);align-items:start;gap:20px;padding:16px}.lx-tools{display:grid;gap:12px}.lx-tools h3,.lx-stage h3{margin:0;display:flex;align-items:center;gap:6px}.lx-tools textarea,.lx-tools input:not([type=checkbox]),.lx-tools select{width:100%;min-width:0}.lx-tools [data-props]{display:grid;gap:9px}.lx-coords{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.lx-coords label{font-size:12px}.lx-palette{display:flex;flex-wrap:wrap;gap:5px}.lx-palette .btn{font-size:12px;min-height:30px;padding:4px 8px;cursor:grab}.lx-stage,.tpl-preview:has(.lx-sheet){background:#edf0f4;min-width:0;padding:12px;border-radius:8px}.lx-stage h3,.tpl-preview h3{margin:0 0 10px}.lx-sheet{container-type:inline-size;max-width:595px;margin:0 auto 12px;background:#fff;color:#192333;box-shadow:0 1px 5px #19233324;text-align:left}.lx-page{position:relative;aspect-ratio:595/842;overflow:hidden}.lx-block{position:absolute;z-index:2;line-height:1.2;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;font-family:Arial,sans-serif}.lx-block img{width:100%;height:100%;object-fit:contain;object-position:left top;display:block}.lx-block img.lx-clinic{height:auto;max-height:none;width:100%;clip-path:inset(0 0 38% 0);object-fit:unset}.lx-block svg{width:62%;height:84%;color:#8d99a7}.lx-report{position:absolute;left:7.06%;right:7.06%;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;line-height:2.52cqw;font:normal 1.765cqw/2.52cqw Arial,sans-serif}.lx-stage .lx-block{outline:1px dashed #a9b5c3;cursor:move;touch-action:none}.lx-stage .lx-selected{outline:2px solid #ed6906}.lx-zone{position:absolute;left:0;right:0;height:25.53%;background:#f5f8fa99;pointer-events:none}.lx-top{top:0;border-bottom:1px dashed #d3dce5}.lx-bottom{bottom:0;border-top:1px dashed #d3dce5}.lx-order{display:flex;align-items:center;gap:4px;padding:4px 0;cursor:grab}.lx-order span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lx-order .btn{padding:2px 6px;min-height:24px}.tpl-preview [data-paper-preview]{max-height:85vh;overflow:auto}.tpl-preview .lx-sheet{border:1px solid #e0e4e8}.tpl-edit [data-report-blocks]{display:grid;gap:9px}.paper:has(>.lx-sheet){padding:0;background:transparent;min-height:0}
@media(max-width:800px){.lx-work{grid-template-columns:1fr}.lx-tools{max-width:100%}}

.im-work{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,2.4fr);gap:18px;padding:16px;align-items:start}.im-work aside,.im-work form{display:grid;gap:10px;min-width:0}.im-work h3,.im-work p{margin:0}.im-work p,.im-brand,.im-models small{color:var(--muted)}.im-work input:not([type=checkbox]),.im-work select,.im-stock-tools input{min-height:36px;border:1px solid var(--line,#dce0e7);border-radius:6px;padding:5px 8px;background:white;max-width:100%;width:100%}.im-models,.im-sizes{max-height:58vh;overflow:auto}.im-models button{display:flex;align-items:center;gap:8px;padding:9px 8px;width:100%;border:0;border-radius:6px;background:transparent;cursor:pointer;text-align:left;color:inherit}.im-models button[aria-pressed=true]{background:#fff1e5;color:#a84902}.im-models button span{flex:1;min-width:0}.im-models small,.im-brand{display:block;font-size:11px}.im-models svg{width:17px;height:17px;flex-shrink:0}.im-models b{font-size:11px}.im-filters,.im-stock-tools{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.im-filters label{flex:1;min-width:90px}.im-work input[type=checkbox]{accent-color:var(--orange,#ed6906);width:16px;height:16px}.im-sizes th{position:sticky;top:0;background:#f8fafb;z-index:1}.im-stock-tools{margin-bottom:10px;justify-content:space-between}.im-stock-tools input{max-width:360px}.im-work .settings-save small{margin-right:auto}@media(max-width:760px){.im-work{grid-template-columns:1fr}.im-models{max-height:180px}.im-sizes{max-height:48vh}}

.im-price{display:grid;grid-template-columns:85px minmax(110px,220px);gap:7px}.form-grid [data-rate-field][hidden],.form-grid [data-amd-field][hidden]{display:none}
