.wms-module-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #dce4ed;
    border-radius: 6px;
    background: #fff;
}
.wms-module-layout-mode,
.wms-module-layout-actions,
.wms-module-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.wms-module-layout-mode-label { color: #667085; font-size: 13px; }
.wms-module-layout-mode .btn.is-active {
    color: #fff;
    border-color: #246fb3;
    background: #246fb3;
}
.wms-module-layout-toolbar .btn,
.wms-module-controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
}
.wms-module-layout-toolbar svg,
.wms-module-controls svg { width: 15px; height: 15px; }
.wms-layout-module-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
}
.wms-layout-generated-head {
    min-height: 42px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5eaf0;
    background: #f8fafc;
}
.wms-layout-generated-title { color: #344054; font-size: 14px; font-weight: 700; }
[data-layout-module].is-layout-collapsed > :not(.wms-layout-module-head) { display: none !important; }
[data-layout-module].is-layout-collapsed { min-height: 42px !important; }
.wms-module-controls .btn:disabled { opacity: .35; }
html[data-wms-display-mode="black"] .wms-module-layout-toolbar,
html[data-wms-display-mode="black"] .wms-layout-generated-head {
    color: #f1f3f5;
    border-color: #454a50;
    background: #24272a;
}
html[data-wms-display-mode="black"] .wms-layout-generated-title { color: #f1f3f5; }
@media (max-width: 700px) {
    .wms-module-layout-toolbar { align-items: stretch; flex-direction: column; }
    .wms-module-layout-mode { justify-content: space-between; }
    .wms-module-layout-actions { justify-content: flex-end; }
    .wms-module-layout-mode .btn span { display: none; }
}
