body[data-profile=PEOPLE],body[data-profile=CORE]{--blue:#245df5;--profile-main:#081b66;--profile-accent:#245df5;--profile-soft:#edf2fc;--profile-line:#d8e3fa;--profile-hover:#154dd0;--profile-side:#0a1230;--profile-nav:#d3e0ff}
body[data-profile=ANIMALS]{--blue:#258c55;--profile-main:#176b4d;--profile-accent:#258c55;--profile-soft:#e8f4ec;--profile-line:#cce5d4;--profile-hover:#105139;--profile-side:#102d25;--profile-nav:#d3f0df}
body[data-profile=VEHICLES]{--blue:#b9690d;--profile-main:#704209;--profile-accent:#b9690d;--profile-soft:#fff5e7;--profile-line:#efd9bd;--profile-hover:#94510b;--profile-side:#302719;--profile-nav:#ffe8cb}
.module-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:20px 0 32px}
.module-card{border:1px solid #dce2ed;border-top:4px solid #245df5;border-radius:12px;padding:20px;background:#fff}
.module-card[data-module=ANIMALS]{border-top-color:#258c55}.module-card[data-module=VEHICLES]{border-top-color:#e58a16}
.module-card h3{margin:8px 0 18px}.module-card small{color:#65728a}.module-card .check{display:flex;gap:10px;align-items:center}
.map-entity-legend{flex-wrap:wrap;gap:12px!important}.map-entity-legend label{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}
.map-entity-legend .entity-pin{position:static!important;display:inline-block;width:10px!important;height:10px!important;transform:none!important}
.sensor-marker{color:#8a4fc4!important}.entity-VEHICLE{background:#e58a16!important}
.localization-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.localization-form label{min-width:0;display:flex;flex-direction:column;gap:6px}.localization-form .check{flex-direction:row;align-items:center}
.localization-form .wide{grid-column:1/-1}.localization-form select,.localization-form input{width:100%;box-sizing:border-box}.localization-form input[type=checkbox]{width:auto}
.localization-dialog{width:min(720px,calc(100vw - 32px));max-height:90vh;overflow:auto}.localization-dialog h2{padding-right:36px}
.localization-warnings{padding:12px 16px;background:#fff7e9;border:1px solid #f3dbad;border-radius:8px;color:#78511e;font-size:13px}
@media(max-width:600px){.localization-form{grid-template-columns:1fr}.module-cards{grid-template-columns:1fr}.map-entity-legend{gap:8px!important}}
.domain-table-scroll{overflow:auto;max-height:65vh}.domain-table-scroll table{min-width:100%;white-space:nowrap}.domain-table-scroll th input{min-width:110px;max-width:180px}.domain-table-scroll th button{border:0;background:transparent;font-weight:600;padding:4px}.domain-actions{display:flex;gap:4px}.domain-dialog{width:min(900px,94vw);max-height:90vh;border:1px solid #dbe3f3;border-radius:18px;padding:26px;overflow:auto}.domain-dialog>[data-close]{position:absolute;right:12px;top:10px}.domain-dialog h2{padding-right:35px}.domain-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.domain-form label{display:flex;flex-direction:column;gap:6px}.domain-form .wide{grid-column:1/-1}.domain-form input,.domain-form select,.domain-form textarea{width:100%;min-width:0}.domain-dialog::backdrop{background:#101c3b80}@media(max-width:600px){.domain-form{grid-template-columns:1fr}.domain-dialog{padding:20px}}
#business-map-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.playback-panel{padding:16px;border:1px solid #dbe3f3;border-radius:12px;margin:12px 0}.playback-panel>[data-timeline]{width:100%;accent-color:var(--primary,#245df5)}.playback-panel [data-ticks]{display:flex;gap:2px;overflow:auto;max-height:42px}.map-layers{padding:10px 16px;border-bottom:1px solid #e2e7f2}.map-layers summary{cursor:pointer;font-weight:600}.map-layers .controls{flex-wrap:wrap}.map-layers .check{display:flex;align-items:center;gap:5px}
.domain-table-scroll th:last-child,.domain-table-scroll td:last-child{position:sticky;right:0;background:#f8faff;box-shadow:-1px 0 #dbe3f3;z-index:1}.domain-table-scroll thead th:last-child{z-index:3}.domain-table-scroll .domain-actions{min-width:76px}.map-layers select{min-width:130px}.map-layers .controls{gap:12px}
/* Explicit specificity: the shared dialog enhancer also adds qevo-dialog. */
dialog.domain-dialog form.domain-form,dialog.localization-dialog form.localization-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin:20px 0 0;min-width:0;width:100%}
dialog.domain-dialog form.domain-form>label,dialog.localization-dialog form.localization-form>label{display:flex;flex-direction:column;min-width:0;gap:6px;white-space:normal}
dialog.domain-dialog form.domain-form>.wide,dialog.domain-dialog form.domain-form>[role=status]{grid-column:1/-1}
dialog.domain-dialog form.domain-form>button.primary{grid-column:1/-1;justify-self:end}
dialog.domain-dialog form.domain-form input,dialog.domain-dialog form.domain-form select,dialog.domain-dialog form.domain-form textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
@media(max-width:600px){dialog.domain-dialog form.domain-form,dialog.localization-dialog form.localization-form{grid-template-columns:1fr}}

.domain-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.domain-tabs button[aria-pressed=true]{background:var(--primary,#245df5);color:white}.schedule-scroll{overflow:auto;max-height:65vh;border:1px solid #dce3ef;border-radius:12px;margin:16px 0}.schedule-matrix{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}.schedule-matrix th,.schedule-matrix td{border-right:1px solid #e3e7ef;border-bottom:1px solid #e3e7ef;text-align:center;padding:5px;background:white}.schedule-matrix th:first-child{position:sticky;left:0;z-index:2;min-width:170px;text-align:left}.schedule-matrix thead th{position:sticky;top:0;z-index:3;background:#f1f5fc}.schedule-matrix thead th:first-child{z-index:4}.schedule-matrix small{display:block;font-weight:400}.schedule-matrix .weekend{background:#fff0f1}.schedule-matrix td button{background:transparent;border:0;min-width:76px;font-size:11px;padding:8px 3px;white-space:nowrap}.schedule-matrix .changed{box-shadow:inset 0 -3px #245df5}.schedule-matrix button:disabled{opacity:1;color:#57627a;cursor:default}.domain-table-scroll{max-height:65vh}
#view-profile-label{display:none!important}

.config-groups{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.config-groups button[aria-pressed=true]{background:#0b2468;color:white}.admin-tabs .outside-config-group{display:none!important}.admin-tabs [data-resource=employees],.admin-tabs [data-resource=entities],.admin-tabs [data-resource=assignments],.admin-tabs [data-resource=beacons],.admin-tabs [data-resource=herds],.admin-tabs [data-resource=work-events]{display:none!important}
.domain-tabs button[aria-pressed=true]{background:#245df5!important;color:#fff!important}.schedule-matrix td button{width:auto;min-width:78px;color:#24324b}.config-groups button{white-space:normal}.sidebar{overflow-x:hidden}
