:root{--muted:#526b77;--ui-border:#c9d7dd;--ui-soft:#f3f7f8;--ui-focus:#176b9d;--ui-radius:12px;--ui-control:42px}
[hidden]{display:none!important}
body{font-family:"Segoe UI",Arial,sans-serif;line-height:1.55}
main{min-width:0}
main :is(section,fieldset,.panel,.form-grid,.actions,.table-wrap),dialog :is(section,fieldset,.form-grid,.actions,.table-wrap){min-width:0}
body :is(main,dialog) :is(label,button,input,select,textarea,th,td){font-size:14px!important}
body :is(main,dialog) :is(th,td){line-height:1.55;font-variant-numeric:tabular-nums}
body :is(main,dialog) :is(label,.hint,.muted){line-height:1.55}
main :is(.hint,.muted,.an-warnings span),dialog :is(.hint,.muted){font-size:14px;color:var(--muted)}
main :is(.eyebrow,.wf-state){color:#526b77}
#accountBar{font-size:14px;padding:14px 16px;border-radius:var(--ui-radius)}
body :is(main,dialog) :is(button,.button){min-height:var(--ui-control);border-radius:8px;line-height:1.35;transition:background-color .12s ease,border-color .12s ease}
body :is(main,dialog) :is(button,.button):not(:disabled):hover{border-color:#638d98}
body :is(main,dialog) button:disabled{cursor:default;color:#596c75;background-color:#edf1f3;border-color:#d5dfe3;opacity:1}
body :is(main,dialog) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]){min-height:var(--ui-control);max-width:100%;border-radius:8px;border-color:var(--ui-border);background-color:#fff;color:var(--ink)}
body :is(main,dialog) :is(input,select,textarea):disabled{background-color:#edf1f3;color:#596c75}
body :is(main,dialog) input:read-only:not([type=checkbox]):not([type=radio]){background-color:#f3f7f8}
body :is(main,dialog) :is(input,textarea)::placeholder{color:#61757d;opacity:1}
body :is(main,dialog) input:is([type=checkbox],[type=radio]){width:18px;height:18px;min-height:18px;flex-shrink:0;accent-color:var(--teal)}
body :is(main,dialog) :is(input,select,textarea):focus-visible,body :is(main,dialog,aside) :is(button,a,summary):focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
main :is(.form-grid,.data-form-grid,.planning-form,.planning-filters,.actions){gap:14px}
main :is(.panel,.bd-card,.wf-panel){border-radius:var(--ui-radius)}
main .panel{border-color:#d5e0e4}
body :is(main,dialog) .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:8px}
body :is(main,dialog) table th{background-color:#f3f7f8;color:#38545f;font-weight:600}
body :is(main,dialog) table :is(th,td){padding:12px 14px}
body :is(main,dialog) table td small{font-size:13px;line-height:1.5}
body :is(main,dialog) tbody td:last-child{position:static;right:auto;box-shadow:none}
body :is(main,dialog) thead th:last-child{right:auto}
body #productsView tbody td:last-child,body .ms-space [data-ms=products] tbody td:last-child{position:sticky;right:0;box-shadow:-3px 0 8px #1835400c}
body #productsView thead th:last-child,body .ms-space [data-ms=products] thead th:last-child{right:0}
body :is(main,dialog) :is(p,li,label,td,th){overflow-wrap:anywhere}
body :is(main,dialog) :is(details>summary){cursor:pointer;min-height:40px;padding-top:8px;padding-bottom:8px}
body :is(main,dialog) :is(.row-actions,.context-toolbar,.dialog-actions){gap:10px;flex-wrap:wrap}
body :is(main,dialog) .error{background:#fff3f1;color:#8e3028;border-radius:8px;padding:12px 14px;border:1px solid #e9b8b0;line-height:1.55}
body :is(main,dialog) :is(.warning,.warn):not(button){color:#735016}
body :is(main,dialog) pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:13px;line-height:1.55}
body dialog{max-height:calc(100dvh - 32px);border:1px solid #c7d6dd;border-radius:14px;box-shadow:0 18px 70px #18354038;overscroll-behavior:contain}
body dialog::backdrop{background:rgba(16,36,45,.48)}
body dialog>.dialog-head{background:#fff;border-bottom:1px solid #d5e0e4;padding:18px 22px}
body dialog>.dialog-actions{background:#fff;border-top:1px solid #d5e0e4;padding:14px 22px}
body dialog :is(.form-grid,.planning-form,.table-wrap){margin-top:14px;margin-bottom:14px}
body dialog .dialog-head :is(h2,h3){margin:0;line-height:1.3}
body dialog .icon{min-width:42px;flex-shrink:0}
body dialog>h3{margin:18px 22px 10px}
body dialog>.table-wrap{margin-left:22px;margin-right:22px;max-width:calc(100% - 44px)}
.month-grid{top:calc(100% + 8px);max-width:calc(100vw - 48px)}
#osHeat :is(th,td){padding:7px 6px}#osHeat button{min-width:46px;min-height:40px;padding:7px;font-variant-numeric:tabular-nums}
#osHeat button:disabled{opacity:1;color:#61757d;background:#f7f9fa}
#odKpis{margin:14px 0}
@media(max-width:760px){
 :root{--ui-control:44px}
 main{padding:14px}
 body :is(main,dialog) :is(button,.button){min-height:44px}
 nav button,.task-nav-group button{font-size:14px!important;min-height:44px}
 body :is(main,dialog) table :is(th,td){padding:10px 12px}
 body dialog{max-height:calc(100dvh - 20px)}
 body dialog>.dialog-head,body dialog>.dialog-actions{padding:14px 16px}
 body dialog>h3{margin-left:16px;margin-right:16px}body dialog>.table-wrap{margin-left:16px;margin-right:16px;max-width:calc(100% - 32px)}
 #accountBar{padding:12px;gap:12px}#accountBar label{width:100%;flex-wrap:wrap}#tenantPicker{max-width:100%}
 .month-grid{grid-template-columns:repeat(3,minmax(70px,1fr));max-width:calc(100vw - 48px)}
 .an-applied-state{align-items:stretch}
}
@media(prefers-reduced-motion:reduce){body :is(main,dialog) :is(button,.button){transition:none}}
