/* Unified configured logo in compact header; no product choice while OP is reserved. */
.themis-workstation .sidebar>.brand,.themis-workstation .v3-products,.mock-brand{display:none!important}
.themis-workstation .topbar{display:flex;align-items:center;gap:12px;min-height:54px;padding:6px 12px;flex-wrap:nowrap}
.themis-workstation .topbar-brand{display:flex;align-items:center;justify-content:center;flex:0 0 164px;min-width:0;max-width:190px;height:40px;min-height:40px;margin:0;padding:0;border:0;background:transparent!important;color:var(--th-text);box-shadow:none;overflow:hidden;border-radius:0}
.themis-workstation .topbar-brand>img{display:block;width:auto;max-width:100%;height:auto;max-height:40px;object-fit:contain}
.themis-workstation .topbar-brand>span{color:var(--th-text);font-size:23px;letter-spacing:1px}
.themis-workstation .topbar .pc-dms-controls{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.themis-workstation .topbar .dms-selector{display:flex;align-items:center;gap:8px;margin:0;min-width:0;white-space:nowrap;font-size:10px;letter-spacing:.04em}
.themis-workstation .topbar .dms-selector select{margin:0;min-height:32px;height:32px;min-width:0;width:clamp(180px,23vw,330px);max-width:100%;padding:4px 7px;font-size:13px!important}
.themis-workstation .topbar .top-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;font-size:11px}
.mock-regulation-active .workspace{padding-top:54px}
.mock-regulation-active .topbar{inset:0 0 auto 0;height:54px;min-height:54px;padding:6px 12px;gap:16px}
.mock-regulation-active .sidebar{top:54px}
.mock-regulation-active .mock-reg-layout{height:calc(100dvh - 80px)}
/* Collapsed categories: exactly one visible centred icon per row. */
.themis-workstation .sidebar.icons-only431{overflow-x:hidden}
.themis-workstation .sidebar.icons-only431 #simple-navigation{align-items:center;width:100%;gap:4px}
.themis-workstation .sidebar.icons-only431 .v3-nav-group{width:46px!important;min-width:46px;margin:4px 0!important;border:0!important;background:transparent;overflow:visible}
.themis-workstation .sidebar.icons-only431 .v3-nav-heading{display:block;width:46px;background:transparent}
.themis-workstation .sidebar.icons-only431 #simple-navigation .v3-nav-heading>[data-v3-go]{display:flex!important;flex:0 0 44px!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;margin:2px auto!important;border-radius:6px!important}
.themis-workstation .sidebar.icons-only431 .v3-nav-heading>[data-v3-expand]{display:none!important}
.themis-workstation .sidebar.icons-only431 .v3-nav-group>[id]{padding:0!important;width:46px}
.themis-workstation .sidebar.icons-only431 #simple-navigation .v3-nav-group>[id]>button{display:flex!important;align-items:center!important;justify-content:center!important;margin:4px auto!important;width:44px!important;padding:0!important}
.themis-workstation .sidebar.icons-only431 #simple-navigation [hidden]{display:none!important}
.themis-workstation .sidebar.icons-only431 #simple-navigation .nav-label{display:none!important}
.themis-workstation .sidebar.icons-only431 #simple-navigation .nav-icon{width:24px!important;height:24px!important;flex:0 0 24px!important;margin:0!important;color:#fff!important;line-height:1}
.themis-workstation .sidebar.icons-only431 #simple-navigation .v3-icon{display:block;width:22px!important;height:22px!important;stroke:currentColor}
.themis-workstation .sidebar.icons-only431 #simple-navigation button.active{border-color:var(--th-accent)!important;background:var(--th-selected)!important;box-shadow:none!important}
/* Mission creation and search are now first-level controls. */
.mock-regulation-active #content .mock-new-intervention{display:block;width:100%;min-height:46px;padding:9px 10px;margin:0 0 12px;background:#c12b35!important;border:1px solid #ed5e61;color:#fff!important;border-radius:5px;font-size:14px;font-weight:750;text-align:center}
.mock-regulation-active #content .mission-search-open{display:flex!important;align-items:center;gap:5px!important;margin:0 0 14px}
.mock-regulation-active #content .mission-search-open input{display:block!important;width:100%;min-height:34px;margin:0;font-size:12px!important;padding:6px 7px}
.mock-regulation-active .mission-search-open>span{display:none}
.mock-regulation-active #mission-search-count{display:none!important}
.mock-secondary-tools{margin-top:14px}
.mock-secondary-tools>summary{font-size:11px;color:var(--th-muted);cursor:pointer}
.mock-secondary-tools button{max-width:100%;margin:4px 0}
@media(max-width:1100px){
 .themis-workstation .topbar{flex-wrap:wrap;gap:8px;padding:6px 10px}
 .themis-workstation .topbar-brand{flex-basis:130px;max-width:150px;height:34px;min-height:34px}
 .themis-workstation .topbar-brand>img{max-height:34px}
 .themis-workstation .topbar .pc-dms-controls{width:auto;flex:1;flex-wrap:wrap}
 .themis-workstation .topbar .dms-selector{flex:1}
 .themis-workstation .topbar .dms-selector select{width:100%;max-width:100%}
 .themis-workstation .topbar .top-actions{width:100%;justify-content:flex-start}
 .mock-regulation-active .workspace{padding-top:0}
 .mock-regulation-active .topbar{position:static;height:auto}
 .mock-regulation-active .sidebar{top:0}
 .mock-regulation-active .mock-reg-layout{height:auto}
}
@media(max-width:600px){
 .themis-workstation .topbar-brand{flex:1 1 100%;max-width:100%;justify-content:flex-start}
 .themis-workstation .topbar .pc-dms-controls{flex-basis:100%;gap:6px}
 .themis-workstation .topbar .dms-selector{min-width:0;font-size:9px;gap:5px}
 .themis-workstation .topbar .dms-selector select{font-size:14px!important;min-height:44px;height:44px}
 .themis-workstation .topbar button{min-height:44px}
 .mock-regulation-active #content .mock-new-intervention{font-size:12px}
}
/* The large adjacent action is the sole visible engagement control. The legacy
   handler remains available internally to preserve the validated save pipeline. */
.mock-regulation-active #call-form:has([data-commit-units]) #available-means [data-do="engage-selected"]{display:none!important}
.mock-regulation-active #content .mock-new-intervention{width:100%!important;max-width:100%!important;min-height:46px!important;display:flex;align-items:center;justify-content:center;gap:7px}
.mock-regulation-active #content #available-means .means-distance{display:block!important;visibility:visible!important;position:static!important;min-width:64px;max-width:95px;font-size:11px;white-space:nowrap;text-align:right}
.mock-regulation-active #content #available-means .means-distance.mock-nearest{background:#d4f077!important;color:#132000!important;border-radius:3px;font-weight:750;padding:3px 4px}
.mock-regulation-active #content [data-commit-units]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.mock-regulation-active #content [data-commit-units].mock-engage-locked{color:#d2b6b0;background:#4b211b;cursor:pointer}
.mock-regulation-active #content [data-commit-units]>.v3-icon{width:18px;height:18px;flex:none}
@media(max-width:760px){
 .mock-regulation-active #content .mock-mission-header{flex-wrap:wrap;min-width:0}
 .mock-regulation-active #content .mock-caller{flex:1 1 100%;width:100%;max-width:100%}
 .mock-regulation-active #content .mock-caller .form-grid{flex-direction:column;align-items:stretch}
 .mock-regulation-active #content .mock-caller label{flex:auto;min-width:0;display:grid;grid-template-columns:60px minmax(0,1fr)}
 .mock-regulation-active #content .mock-caller label input{width:100%;min-width:0}
}
/* Red is a missing essential item, never the ordinary selection colour. */
.mock-regulation-active #content .mock-call{border-color:#2f4665!important;box-shadow:none!important}
.mock-regulation-active #content .mock-call.selected{border-color:#76aee5!important;outline:1px solid #76aee5!important;outline-offset:2px!important}
.mock-regulation-active #content .mock-call.mock-call-unassigned{border-color:#f13c28!important}
.mock-regulation-active #content .mock-workbench .alarm-stage{border-color:#2c4363!important}
.mock-regulation-active #content .mock-workbench .alarm-stage.mock-essential-missing{border-color:#f03b28!important}
.mock-regulation-active #content [data-commit-units][hidden]{display:none!important}
.mock-drop-chip.mock-already-engaged{background:#284e43;border-color:#71b393;padding-right:7px}
.mock-drop-chip.mock-already-engaged small{color:#d9f3e6}
.mock-dropzone.filled{background:#162635}
.mock-unit-controls{display:flex;flex-direction:column;gap:5px;margin:0 0 8px;min-width:0}
.mock-regulation-active #content .mock-unit-controls>[data-mock-means-toggle]{width:100%;white-space:normal;height:auto;min-height:32px;background:#395c88;color:#fff;border:1px solid #7a9ac2;border-radius:3px;padding:5px 7px;font-size:11px;line-height:1.25}
.mock-regulation-active #content .mock-unit-controls>[data-mock-means-toggle][aria-pressed=true]{background:#514c3d;border-color:#b4a16e}
.mock-unit-controls :is(.resource-type-filters,.mobility-filters481){display:flex;flex-wrap:wrap!important;width:100%;min-width:0}
.mock-regulation-active #content #available-means .mini-resource{display:flex;flex-wrap:wrap;gap:5px;align-items:center;min-width:0;width:100%}
.mock-regulation-active #content #available-means .engage-check{display:flex;flex:1 1 140px;gap:6px;align-items:center;min-width:0;margin:0;white-space:normal}
.mock-regulation-active #content #available-means .engage-check>span{min-width:0;overflow-wrap:anywhere}
.mock-regulation-active #content #available-means .engage-check strong{white-space:normal;overflow-wrap:anywhere;font-size:14px!important;line-height:1.2}
.mock-regulation-active #content #available-means .engage-check input{flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:0}
.mock-regulation-active #content #available-means .means-distance{margin-left:auto;flex:0 0 auto}
.mock-regulation-active #content #available-means .simple-means-comment{flex-basis:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 .mock-regulation-active #content .mock-unit-controls>[data-mock-means-toggle],.mock-regulation-active #content #available-means :is(.resource-type-filters,.mobility-filters481) button{min-height:40px}
 .mock-regulation-active #content #available-means .engage-check{flex-basis:100%}
}
@media(min-width:1101px) and (max-width:1599px){
 .mock-regulation-active #content .mock-unit{display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:3px 5px}
 .mock-unit>strong{grid-column:1;grid-row:1;font-size:12px;overflow-wrap:break-word;word-break:normal}
 .mock-unit>.mock-type{grid-column:1;grid-row:2;max-width:100%;width:max-content;font-size:7px;padding:2px 3px}
 .mock-unit>.mock-unit-status{grid-column:2;grid-row:1 / 3;width:60px;font-size:9px}
 .mock-regulation-active #content .mock-caller{flex:1 1 100%;max-width:100%!important}
 .mock-regulation-active #content .mock-caller .form-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}
 .mock-regulation-active #content .mock-caller label{display:flex;flex-direction:column;align-items:stretch;gap:3px;font-size:10px!important;min-width:0}
}
.themis-workstation .sidebar.icons-only431 #simple-navigation .v3-nav-heading>[data-v3-expand]{display:none!important}
.themis-workstation .sidebar.icons-only431 #simple-navigation .sidebar-new-call{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
.themis-workstation .sidebar.icons-only431 #simple-navigation .sidebar-new-call>.v3-action-icon{display:none!important}
.mock-regulation-active #content [data-commit-units]{background:#a92a1d!important;border-color:#ee604b!important;color:#fff!important}
.mock-regulation-active #content [data-commit-units].mock-engage-locked{background:#4b211b!important;color:#d2b6b0!important;border-color:#a65f51!important}
/* Operational cards live inside the drop zones. Their natural height reserves
   the required space when several units are stacked, including narrow layouts. */
.mock-regulation-active #content .mock-drag-engagement{align-items:flex-start;min-width:0}
.mock-regulation-active #content .mock-dropzones{height:auto;max-height:none!important;align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.mock-regulation-active #content .mock-dropzone{height:auto;max-height:none!important;overflow:visible;min-width:0}
.mock-regulation-active #content .mock-dropzone.filled>.mock-drop-label{display:none!important}
.mock-regulation-active #content .mock-dropzone>[data-engaged-items],.mock-regulation-active #content .mock-dropzone>[data-drop-items]{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0}
.mock-regulation-active #content .mock-dropzone>[data-engaged-items]:not(:empty)+[data-drop-items]:not(:empty){margin-top:5px}
.mock-regulation-active #content .mock-drop-chip{margin:0;max-width:100%;overflow-wrap:anywhere}
.mock-regulation-active #content .mock-dropzone .mock-engaged-card{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;min-width:0;max-width:100%;margin:0;padding:8px;background:#294036!important;color:#f4f5f7!important;border:1px solid #71a38c;border-radius:5px;box-shadow:none}
.mock-regulation-active #content .mock-engaged-card>strong{flex:1 1 100%;font-size:14px!important;line-height:1.25;color:inherit!important;white-space:normal;overflow-wrap:anywhere}
.mock-regulation-active #content .mock-engaged-card>.simple-engaged{font-size:10px;line-height:1.2;color:#c6dfd2!important}
.mock-regulation-active #content .mock-engaged-card>.means-distance:empty{display:none}
.mock-regulation-active #content .mock-engaged-card .quick-status{display:flex;flex:1 1 100%;flex-wrap:wrap;align-items:center;gap:6px;margin:0;min-width:0;max-width:100%}
.mock-regulation-active #content .mock-engaged-card .quick-status select{flex:1 1 100%;width:100%;min-width:0;margin:0;height:auto;min-height:32px;font-size:12px!important}
.mock-regulation-active #content .mock-engaged-card .contact-actions{display:inline-flex;flex-wrap:wrap;gap:5px;align-items:center;margin:0;max-width:100%}
.mock-regulation-active #content .mock-engaged-card button{margin:0;white-space:normal;max-width:100%;font-size:11px;line-height:1.25;min-height:32px;padding:5px 7px}
.mock-regulation-active #content .mock-engaged-card .resource-action-icon{display:inline-flex;align-items:center;justify-content:center;min-width:32px;width:32px;height:32px;padding:5px}
.mock-regulation-active #content .mock-engaged-card .cancel-means{margin-left:auto}
.mock-regulation-active #content #current-engagements>h3,.mock-regulation-active #content #current-engagements>p.muted{display:none!important}
@media(max-width:760px),(pointer:coarse){
 .mock-regulation-active #content .mock-dropzones{grid-template-columns:minmax(0,1fr)}
 .mock-regulation-active #content .mock-engaged-card button,.mock-regulation-active #content .mock-engaged-card .quick-status select{min-height:44px}
 .mock-regulation-active #content .mock-engaged-card .resource-action-icon{width:44px;height:44px;min-width:44px}
}
.mock-regulation-active #content .mock-unit-controls{display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}
.mock-regulation-active #content .mock-unit-controls>[data-mock-means-mode]{flex:1 1 125px;max-width:100%;white-space:normal;height:auto;min-height:34px;background:#263649!important;color:#fff!important;border:1px solid #6e88a9;border-radius:3px;padding:6px 7px;font-size:11px;line-height:1.25}
.mock-regulation-active #content .mock-unit-controls>[data-mock-means-mode][aria-pressed=true]{background:#395c88!important;border-color:#9dc4ec;box-shadow:inset 0 -2px #9dc4ec}
@media(max-width:760px),(pointer:coarse){.mock-regulation-active #content .mock-unit-controls>[data-mock-means-mode]{min-height:44px}}
.mock-regulation-active #content .mock-clear-mission{display:block!important;width:100%;min-height:26px;margin:-5px 0 10px;padding:4px 5px;background:transparent!important;color:#bfccdc!important;border:1px solid #475b76;border-radius:3px;font-size:10px;line-height:1.3;white-space:normal;font-weight:400}
.mock-regulation-active #content #alarm-stage-4{margin-top:0}
.mock-regulation-active #content #alarm-stage-4 .reg-form-block{padding:0;border:0;background:transparent}
.mock-regulation-active #content #mission-notes-journal .mission-footer{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mock-regulation-active #content #mission-notes-journal textarea{width:100%;min-width:0}
@media(max-width:760px),(pointer:coarse){.mock-regulation-active #content .mock-clear-mission{min-height:40px}}
.mock-regulation-active #content .mock-dropzone>[data-linked-items]:not(:empty){display:grid;gap:5px;margin:5px 0;min-width:0}
.mock-linked-support{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:7px;background:#2a4666;border:1px solid #7397bd;border-radius:5px;min-width:0;color:#fff}
.mock-linked-support strong{flex:1 1 100%;overflow-wrap:anywhere;min-width:0}
.mock-linked-support small{flex:1;font-size:10px}
.mock-linked-support button{font-size:10px;min-height:30px;padding:4px 6px}
