/*
   Operational shell inspired by promoscore-app/apps/admin.
   Hipercom blue remains the product accent; neutral surfaces stay deliberately quiet.
*/

:root {
    --ui-canvas: #f7fafc;
    --ui-surface: #ffffff;
    --ui-surface-muted: #f1f5f9;
    --ui-ink: #1f2937;
    --ui-muted: #64748b;
    --ui-border: #e2e8f0;
    --ui-primary: #0b75bb;
    --ui-primary-strong: #075c94;
    --ui-primary-soft: #e7f3fb;
    --ui-accent: #5a5b5e;
    --ui-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --ui-radius: 8px;
    --admin-sidebar: #1a202c;
    --admin-sidebar-muted: #cbd5e1;
    --admin-sidebar-hover: #2d3748;
    --admin-sidebar-submenu: #111820;
}

html,
body,
app,
.app-body,
.home-body {
    background: var(--ui-canvas);
}

app {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

body {
    color: var(--ui-ink);
    font-size: 0.875rem;
}

.app-body {
    overflow: auto;
}

.app-topbar,
.home-topbar {
    height: 64px;
    padding: 0 20px;
    background: var(--ui-surface);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: none;
}

.home-topbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-topbar .user-details,
.home-topbar .user-details {
    font-weight: 600;
    color: var(--ui-ink);
}

.app-topbar .icon,
.home-topbar .icon {
    border-radius: 6px;
}

.sidebar,
.sidebar.expanded,
.sidebar-collapsed,
.std-hc-blue-background {
    background: var(--admin-sidebar);
    border-color: #111827;
}

.sidebar,
.sidebar.expanded {
    flex-basis: 280px;
    width: 280px;
    min-width: 280px;
    box-shadow: 2px 0 8px rgba(15, 23, 42, 0.16);
}

.sidebar.expanded {
    flex-basis: clamp(460px, 32vw, 620px);
    width: clamp(460px, 32vw, 620px);
}

.sidebar.expanded .tree-row {
    display: flex;
    align-items: flex-start;
    height: auto;
    min-height: 28px;
    overflow: visible;
    white-space: normal;
}

.sidebar.expanded .tree-row .tree-anchor,
.sidebar.expanded .tree-row .tree-toggle {
    flex: 0 0 auto;
}

.sidebar.expanded .tree-row .tree-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sidebar.expanded .tree-row .tree-toggle {
    float: none;
    margin-left: 8px;
}

.sidebar-collapsed {
    flex-basis: 12px;
    width: 12px;
}

.sidebar .logo {
    min-height: 72px;
    padding: 18px 20px;
    border-bottom-color: rgba(226, 232, 240, 0.12);
}

.sidebar .logo img {
    max-width: 176px;
}

.sidebar-mobile-close {
    display: none;
}

.sidebar .menu-row {
    min-height: 42px;
    margin: 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-left: 3px solid transparent;
    color: var(--admin-sidebar-muted);
    line-height: 1.25;
}

.sidebar .menu-row:hover {
    background: var(--admin-sidebar-hover);
}

.sidebar > .menu-active > .menu-row:first-child,
.sidebar .menu-row-active {
    border-left-color: var(--ui-primary);
    background: var(--admin-sidebar-hover);
    color: #ffffff;
}

.sidebar .menu-active {
    border-right: 0;
}

.sidebar .menu-body-active {
    border-bottom: 0;
}

.sidebar .menu-row.menu-body-active {
    display: block;
    min-height: 0;
    padding: 8px 12px 12px;
}

.sidebar .menu-row:has(> .collapse) {
    min-height: 0;
    margin: 0;
    padding: 0;
}

.sidebar .menu-row .label,
.sidebar .menu-row .double-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.sidebar .menu-row .double-label.selected {
    color: #ffffff;
    text-decoration: none;
}

.sidebar .menu-row .collapse-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.sidebar .badge {
    min-width: 21px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #475569;
    color: #ffffff;
}

.sidebar .badge-success {
    background: var(--ui-primary);
}

.sidebar .submenu-row {
    padding: 4px 0 10px;
    background: var(--admin-sidebar-submenu);
    font-size: 0.74rem;
}

.sidebar .submenu-row .menu-row {
    min-height: 38px;
    padding: 6px 16px;
    background: transparent;
}

.sidebar .submenu-row .menu-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar .filter-panel {
    margin: 0;
    padding: 10px 12px 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #101923;
}

.sidebar .filter-panel .menu-row {
    min-height: 0;
    margin: 0;
    padding: 5px 0;
}

.sidebar .product-filter-panel .menu-row > u {
    display: block;
    margin: 4px 0 2px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    color: #8fd0f4;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar .product-filter-panel .full-width {
    min-height: 30px;
    height: 30px;
    margin: 0;
    padding: 4px 8px;
    font-size: 0.74rem;
}

.sidebar .product-filter-panel .menu-row:has(.range) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) minmax(72px, 1fr);
    align-items: center;
    gap: 6px;
}

.sidebar .product-filter-panel .range {
    width: 100%;
    min-height: 30px;
    height: 30px;
    margin: 0;
    padding: 4px 7px;
    float: none;
    font-size: 0.74rem;
}

.sidebar .product-filter-panel .filler {
    margin: 0;
    text-align: center;
}

.sidebar .period-filter-panel .menu-row {
    padding: 0;
}

.sidebar .period-filter-panel .filters-menu-period {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.sidebar .period-filter-panel .filters-menu-period tr {
    height: auto;
}

.sidebar .period-filter-panel .filters-menu-period td {
    padding: 4px 3px;
    color: var(--admin-sidebar-muted);
    font-size: 0.74rem;
    vertical-align: middle;
}

.sidebar .period-filter-panel .filters-menu-period td[style] {
    padding: 7px 8px !important;
    border: 1px solid #475569;
    border-radius: 4px;
    background: #26313f !important;
    color: #f8fafc !important;
    font-size: 0.78rem !important;
    font-weight: 600;
}

.sidebar .period-filter-panel .filters-menu-period hr {
    margin: 6px 0;
    border-top-color: rgba(148, 163, 184, 0.18);
}

.sidebar .period-filter-panel .filters-menu-period strong {
    color: #8fd0f4;
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar .period-filter-panel .filters-menu-period input.date,
.sidebar .period-filter-panel .filters-menu-period input.yearsback {
    min-height: 30px;
    height: 30px;
    padding: 4px 7px;
    font-size: 0.74rem;
}

.sidebar .period-filter-panel .filters-menu-period input[type="radio"] {
    margin-right: 4px;
    vertical-align: -1px;
}

.sidebar .treeview-search {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.sidebar .treeview-search .tree-phrase {
    width: auto;
    min-width: 0;
    max-width: calc(100% - 84px);
    flex: 1 1 calc(100% - 84px);
    float: none;
}

.sidebar .treeview-search .tree-phrase-confirm {
    flex: 0 0 68px;
    float: none;
}

.sidebar .treeview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

.sidebar .treeview-actions .filter-tree-action {
    margin: 0;
}

.sidebar .treeview-exclusions {
    display: flex !important;
    align-items: center;
    min-height: 30px;
    padding: 5px 0 !important;
}

.sidebar .treeview-exclusions .form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.sidebar .treeview-exclusions .form-check-input {
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
}

.sidebar .treeview-exclusions .form-check-label {
    margin: 0;
    line-height: 16px;
    cursor: pointer;
}

.sidebar .treeview-filter-panel .tree-row {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.72rem;
}

.sidebar .full-width,
.sidebar .tree-phrase,
.sidebar .tree-phrase-confirm,
.sidebar select.range,
.sidebar input.range,
.sidebar table.filters-menu-period input.date,
.sidebar table.filters-menu-period input.yearsback {
    min-height: 32px;
    height: 32px;
    border: 1px solid #475569;
    border-radius: 5px;
    background: #26313f;
    color: #f8fafc;
}

.sidebar .full-width,
.sidebar .tree-phrase-confirm {
    background: #26313f;
    color: #e2e8f0;
}

.sidebar .full-width:hover,
.sidebar .tree-phrase-confirm:hover {
    border-color: var(--ui-primary);
    background: #334155;
    color: #ffffff;
}

.sidebar .tree-phrase {
    width: calc(100% - 76px);
    min-height: 30px;
    height: 30px;
    margin-bottom: 0;
    font-size: 0.74rem;
}

.sidebar .tree-phrase-confirm {
    width: 68px;
    min-height: 30px;
    height: 30px;
    padding: 4px 8px;
    font-size: 0.74rem;
}

.sidebar .filter-tree-action {
    width: auto;
    min-width: 0;
    min-height: 30px;
    height: 30px;
    padding: 4px 10px;
    font-size: 0.74rem;
}

.sidebar .submenu-row .menu-row:has(.filter-tree-action) {
    margin: 0;
    padding: 2px 16px;
}

.sidebar .form-control,
.sidebar input,
.sidebar select {
    background: #26313f;
    color: #f8fafc;
}

.sidebar .form-check-label,
.sidebar .tree-row {
    color: var(--admin-sidebar-muted);
}

.sidebar .tree-row {
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 0;
}

.sidebar .tree-row.branch-row {
    background: rgba(148, 163, 184, 0.12);
}

.sidebar .tree-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar .tree-row.selected {
    background: rgba(11, 117, 187, 0.2);
    color: #ffffff;
}

.sidebar .tree-row .tree-anchor i {
    color: #8fd0f4;
}

.fltrs-summary,
.std-hc-whiteboard,
.holding-panel,
.management-whiteboard {
    width: auto;
    min-width: 0;
    margin: 16px 20px;
    padding: 16px;
    position: static;
    z-index: auto;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.fltrs-summary .primary-panel {
    min-height: 44px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--ui-border);
    font-size: 1rem;
}

.fltrs-summary .primary-panel .left-side,
.fltrs-summary .primary-panel .left-side .select-panel,
.fltrs-summary .primary-panel .right-side {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
}

.fltrs-summary .primary-panel .left-side {
    flex: 0 1 auto;
    min-width: 0;
}

.fltrs-summary .primary-panel .left-side .label {
    min-width: auto;
    margin: 0;
    color: var(--ui-primary-strong);
    font-weight: 650;
    white-space: nowrap;
}

.fltrs-summary .primary-panel .left-side .select-panel {
    flex: 0 1 520px;
    width: min(520px, 56vw);
    min-width: 0;
}

.fltrs-summary .primary-panel .left-side .select-panel .input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.fltrs-summary .primary-panel .left-side .select-panel .input input,
.fltrs-summary .primary-panel .left-side .select-panel .input select {
    width: 100%;
    height: 34px;
}

.fltrs-summary .primary-panel .left-side .select-panel .fltrs-control,
.fltrs-summary .primary-panel .right-side .fltrs-state-controller {
    margin: 0;
}

.fltrs-summary .primary-panel .right-side {
    margin-left: auto;
}

.fltrs-summary .secondary-panel table.summary {
    color: var(--ui-muted);
}

.fltrs-summary .secondary-panel table.summary tr,
.fltrs-summary .secondary-panel table.summary tr td:first-child {
    border-color: var(--ui-border);
}

.features-container {
    width: calc(100% - 40px);
    min-width: 0;
    margin: 0 20px 16px;
    border-spacing: 8px;
}

.features-container button {
    min-height: 46px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: var(--ui-surface);
    color: var(--ui-ink);
    font-size: 0.84rem;
    font-weight: 600;
}

.features-container button.on,
.features-container button.live {
    border-color: var(--ui-border);
    background: var(--ui-surface);
    color: var(--ui-ink);
}

.features-container button.live {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

.features-container button:hover:not(.off) {
    border-color: var(--ui-primary);
    background: #f8fbfe;
    color: var(--ui-primary-strong);
}

.features-container button.off {
    border-color: var(--ui-border);
    background: var(--ui-surface-muted);
    color: #94a3b8;
}

.calendar-options-panel {
    padding: 16px 18px 18px;
}

.calendar-options-panel .internal-options {
    margin: 0 0 10px;
}

.calendar-options-panel .internal-options:last-child {
    margin-bottom: 0;
}

.calendar-options-panel .custom-control-label {
    padding-left: 4px;
}

.submenu-options-panel {
    padding: 16px 18px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
}

.submenu-options-panel > .internal-options {
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
}

.submenu-options-panel > .btn {
    margin: 0;
}

.submenu-options-panel > .internal-options + .btn {
    margin-top: 0;
}

.submenu-options-panel .submenu-actions {
    flex: 1 0 100%;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ui-border);
}

.std-hc-whiteboard .primary-panel .saved-selection-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.std-hc-whiteboard .primary-panel .saved-selection-toolbar > div {
    margin: 0;
}

.std-hc-whiteboard .primary-panel .saved-selection-toolbar .input {
    flex: 0 1 340px;
    width: min(100%, 340px);
    min-width: 180px;
}

.std-hc-whiteboard .primary-panel .saved-selection-toolbar .input select,
.std-hc-whiteboard .primary-panel .saved-selection-toolbar .input input {
    width: 100%;
    height: 34px;
}

.std-hc-whiteboard .primary-panel .saved-selection-toolbar .fltrs-control {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--ui-primary);
    cursor: pointer;
}

.std-hc-whiteboard .primary-panel .saved-selection-toolbar .fltrs-control:hover {
    border-color: var(--ui-border);
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

.submenu-options-panel .grouping-heading {
    flex: 0 0 auto;
    width: auto;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #b9d9ec;
    border-left: 3px solid var(--ui-primary);
    border-radius: 4px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

.submenu-options-panel .grouping-heading ~ .internal-options .custom-control {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px 8px 42px;
    border: 1px solid var(--ui-border);
    border-radius: 4px;
    background: var(--ui-surface-muted);
}

.submenu-options-panel .grouping-heading ~ .internal-options .custom-control-label {
    display: flex;
    align-items: center;
    min-height: 20px;
    line-height: 1.25;
    color: var(--ui-ink);
    font-weight: 600;
}

.submenu-options-panel .grouping-heading ~ .internal-options:not(.submenu-actions) {
    flex: 0 1 180px;
    width: auto;
    min-width: 156px;
    margin: 0;
}

.submenu-options-panel .grouping-heading ~ .internal-options .custom-control-label::before {
    top: 50%;
    left: -32px;
    transform: translateY(-50%);
}

.submenu-options-panel .grouping-heading ~ .internal-options .custom-control-label::after {
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
}

.submenu-options-panel .grouping-heading ~ .internal-options .custom-control-input:checked ~ .custom-control-label {
    color: var(--ui-primary-strong);
}

.submenu-options-panel .grouping-heading ~ .internal-options .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--ui-primary);
    background-color: var(--ui-primary);
}

.btn.std-hc-green-background,
.btn-success {
    border-color: #087a67;
    background: #087a67;
    color: #ffffff;
}

.btn.std-hc-green-background:hover,
.btn.std-hc-green-background:focus,
.btn-success:hover,
.btn-success:focus {
    border-color: #066454;
    background: #066454;
    color: #ffffff;
}

.btn.std-hc-blue-background,
.btn-primary,
.btn-info,
.std-export-btn {
    border-color: #0b75bb;
    background: #0b75bb;
    color: #ffffff;
}

.btn.std-hc-blue-background:hover,
.btn.std-hc-blue-background:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-info:hover,
.btn-info:focus,
.std-export-btn:hover,
.std-export-btn:focus {
    border-color: #085d95;
    background: #085d95;
    color: #ffffff;
}

.btn.std-hc-green-background:disabled,
.btn-success:disabled,
.btn.std-hc-blue-background:disabled,
.btn-primary:disabled,
.btn-info:disabled,
.std-export-btn:disabled {
    border-color: #94a3b8;
    background: #94a3b8;
    color: #ffffff;
    opacity: 0.72;
}

.std-hc-whiteboard .primary-panel,
.holding-panel .header {
    min-height: 38px;
    border-bottom-color: var(--ui-border);
}

.std-hc-whiteboard .secondary-panel,
.holding-panel .secondary-panel,
.sticky-table {
    border-color: var(--ui-border);
    background: var(--ui-surface);
}

.std-hc-whiteboard .tabs {
    background: transparent;
    border-bottom: 1px solid var(--ui-border);
}

.nav-tabs .nav-link {
    padding: 8px 12px;
    color: var(--ui-muted);
    font-weight: 600;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.live {
    border-color: var(--ui-border) var(--ui-border) var(--ui-surface);
    color: var(--ui-primary-strong) !important;
}

.nav-tabs .nav-link.on {
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

.btn-primary,
.std-export-btn {
    border-color: var(--ui-primary);
    background: var(--ui-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.std-export-btn:hover,
.std-export-btn:focus {
    border-color: var(--ui-primary-strong);
    background: var(--ui-primary-strong);
}

.btn-secondary,
.btn-light,
.btn-outline-secondary {
    border-color: #cbd5e1;
    background: var(--ui-surface);
    color: #475569;
}

.form-control,
.custom-select,
.std-hc-whiteboard .primary-panel input,
.std-hc-whiteboard .primary-panel select,
.holding-panel input,
.holding-panel select,
.management-whiteboard input,
.management-whiteboard select {
    min-height: 34px;
    border-color: #cbd5e1;
    color: var(--ui-ink);
    background: #ffffff;
}

.form-control:focus,
.custom-select:focus,
.std-hc-whiteboard .primary-panel input:focus,
.std-hc-whiteboard .primary-panel select:focus,
.holding-panel input:focus,
.holding-panel select:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 3px rgba(11, 117, 187, 0.14);
}

table.listing-results {
    font-size: 0.78rem;
}

table.listing-results thead tr th {
    padding: 11px 10px;
    border-bottom-color: var(--ui-border);
    background: var(--ui-surface-muted);
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

table.listing-results tbody tr td {
    padding: 10px 8px;
    border-color: var(--ui-border);
    color: var(--ui-ink);
}

table.listing-results tbody tr:hover {
    background: #f8fbfe;
}

.sticky-table table tr.sticky-header th,
.sticky-table table tr.sticky-header td,
.sticky-table table tr.sticky-footer th,
.sticky-table table tr.sticky-footer td,
.sticky-table table td.sticky-cell,
.sticky-table table th.sticky-cell,
.sticky-table table td.sticky-cell-opposite,
.sticky-table table th.sticky-cell-opposite {
    outline-color: var(--ui-border);
    background-color: var(--ui-surface);
}

.dashboard-workspace,
.home-body {
    min-height: calc(100vh - 64px);
    margin-top: 0;
    padding: 24px;
}

.background-dashboard {
    min-height: 0;
    padding: 24px;
    border-color: var(--ui-border);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.item-dashboard {
    min-height: 104px;
    border-color: var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: none;
}

.item-dashboard:hover {
    border-color: var(--ui-primary);
    background: #f8fbfe;
    box-shadow: var(--ui-shadow);
}

.management-whiteboard {
    max-width: none;
    margin: 24px;
}

app:has(> .management-page) {
    display: block;
    width: 100%;
    min-width: 0;
}

.management-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}

.management-page .home-topbar {
    flex: 0 0 64px;
}

.management-page .home-body {
    flex: 1 1 auto;
    width: 100%;
}

.management-whiteboard .control {
    position: static;
    float: right;
}

.section-separator {
    margin: 22px 0 12px;
    padding-bottom: 8px;
    border-bottom-color: var(--ui-border);
    color: var(--ui-ink);
    font-size: 0.95rem;
    font-weight: 700;
}

table.quick-steps-holder {
    width: 100%;
    margin: 0;
    border-spacing: 10px;
}

table.quick-steps-holder td {
    width: 33.333%;
}

.management-whiteboard table.quick-steps-holder tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: start;
    column-gap: 12px;
    row-gap: 16px;
}

.management-whiteboard table.quick-steps-holder tr + tr {
    margin-top: 12px;
}

.management-whiteboard table.quick-steps-holder td {
    width: auto;
    padding: 0;
}

table.quick-steps-holder td button {
    min-width: 0;
    max-width: none;
    min-height: 46px;
    padding: 10px 12px;
    border-color: var(--ui-border);
    border-radius: 6px;
    color: var(--ui-ink);
    font-weight: 600;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

table.quick-steps-holder td button:hover:not(.off) {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

table.quick-steps-holder td button.off {
    border-color: var(--ui-border);
    background: var(--ui-surface-muted);
    color: #94a3b8;
}

table.manage-companies,
table.manage-users,
table.changelog {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table.manage-companies tr,
table.manage-users tr,
table.changelog tr {
    border-top-color: var(--ui-border);
}

table.manage-companies td,
table.manage-users td,
table.changelog td,
table.changelog th {
    padding: 10px 8px;
}

.std-ftc-modal:has(.manage-companies-modal) {
    width: fit-content;
    min-width: 450px;
    max-width: calc(100vw - 32px);
}

.manage-companies-modal,
.manage-companies-modal table.manage-companies {
    width: fit-content;
}

.manage-companies-modal table.manage-companies td:first-child {
    width: 280px;
    min-width: 280px;
}

.manage-companies-modal table.manage-companies td:not(:first-child) {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.blazored-modal,
.modal-content,
.standard-modal-style {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.std-ftc-modal,
.std-big-modal,
.std-details-modal {
    max-width: min(1120px, calc(100vw - 32px));
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.std-ftc-modal {
    min-width: min(450px, calc(100vw - 32px));
}

.std-big-modal {
    width: min(90vw, 1120px);
    height: min(80vh, 860px);
}

.std-ftc-modal .primary-panel,
.std-big-modal .primary-panel,
.std-details-modal .primary-panel {
    min-height: 42px;
    padding: 10px 0;
    border-bottom-color: var(--ui-border);
}

.std-ftc-modal .secondary-panel,
.std-big-modal .secondary-panel,
.std-details-modal .secondary-panel {
    padding: 12px 0;
}

.std-ftc-modal .footer-panel,
.std-big-modal .footer-panel,
.std-details-modal .footer-panel {
    padding-top: 12px;
    border-top-color: var(--ui-border);
}

.std-big-modal .tabs,
.std-details-modal .tabs {
    background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--ui-border) 51%, var(--ui-border) 100%);
}

.std-big-modal .secondary-panel .overflow-area table thead,
.std-details-modal .secondary-panel .overflow-area table thead {
    border-bottom-color: var(--ui-border);
    background: var(--ui-surface-muted);
    color: #475569;
}

.std-big-modal .secondary-panel .overflow-area table thead i,
.std-details-modal .secondary-panel .overflow-area table thead i {
    color: var(--ui-primary);
}

.std-big-modal .secondary-panel .overflow-area table tbody tr,
.std-details-modal .secondary-panel .overflow-area table tbody tr,
.std-big-modal .secondary-panel .overflow-area table tbody tr td,
.std-details-modal .secondary-panel .overflow-area table tbody tr td {
    border-color: var(--ui-border);
}

.home-container {
    min-height: calc(100vh - 164px);
    padding: clamp(32px, 6vh, 72px) clamp(20px, 7vw, 96px) 120px;
}

.home-container .media-container {
    border-color: var(--ui-border);
    box-shadow: none;
}

.home-container .media-container.on:hover {
    border-color: var(--ui-primary);
    background: #f8fbfe;
    box-shadow: var(--ui-shadow);
}

app:has(> .login-body) {
    display: block;
    width: 100%;
    min-width: 0;
}

.login-body {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 96px 24px 84px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 380px);
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: center;
    gap: 20px;
    background: var(--ui-canvas);
}

.login-localization {
    width: auto;
    height: auto;
    position: absolute;
    top: 24px;
    right: 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.login-localization .login-localization-section {
    width: auto;
    min-width: 136px;
    margin: 0;
    float: none;
}

.login-localization .login-localization-section .login-localization-label {
    color: var(--ui-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.login-localization .login-localization-dropdown .custom-select {
    width: 100%;
    min-height: 36px;
}

.login-form {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.login-form .header {
    margin: 0 0 4px;
    color: var(--ui-ink);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
}

.login-form .input {
    display: block;
}

.login-form .input input {
    width: 100%;
    min-width: 0;
}

.login-form .disclosure,
.login-form .forgot-pswd,
.login-form .pswd-reset-disclosure {
    margin: 0;
}

.login-form .btn {
    min-height: 36px;
    padding: 6px 14px;
    align-self: flex-start;
}

.login-logo {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    display: flex;
    justify-content: center;
}

.login-logo .logo {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-top: 0;
}

.login-logo .logo img {
    display: block;
    max-width: 220px;
    max-height: 80px;
}

.fixed-bottom {
    padding: 10px 16px;
    background: transparent;
}

.login-bottom {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.72rem;
}

.login-bottom img {
    width: auto;
    max-width: 88px;
    max-height: 20px;
    margin-left: 4px;
    vertical-align: middle;
}

.customization-workarea {
    min-width: 0;
}

.columns-holder .group-label,
.section-title {
    color: var(--ui-primary-strong);
    border-bottom-color: var(--ui-border);
}

.columns-holder button.field,
.selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.empty,
.selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.field,
.selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field {
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    box-shadow: none;
    color: var(--ui-primary-strong);
}

.columns-selector-modal .nav-tabs {
    background: transparent;
    border-bottom-color: var(--ui-border);
}

.columns-selector-modal .nav-tabs .nav-link {
    margin-right: 6px;
    border-color: var(--ui-border);
    background: var(--ui-surface-muted) !important;
    color: var(--ui-muted) !important;
}

.columns-selector-modal .nav-tabs .nav-link.active {
    border-color: var(--ui-primary) var(--ui-primary) var(--ui-surface);
    background: var(--ui-surface) !important;
    color: var(--ui-primary-strong) !important;
}

.columns-selector-modal .footer-panel .btn-green-set button {
    border-color: #13775d;
    background: #16835c;
    color: #ffffff;
}

.columns-selector-modal .footer-panel .btn-blue-set button {
    border-color: var(--ui-primary-strong);
    background: var(--ui-primary);
    color: #ffffff;
}

.columns-selector-modal .footer-panel .btn-green-set button:hover,
.columns-selector-modal .footer-panel .btn-green-set button:focus {
    border-color: #1ca675;
    background: #1b956b;
}

.columns-selector-modal .footer-panel .btn-blue-set button:hover,
.columns-selector-modal .footer-panel .btn-blue-set button:focus {
    border-color: var(--ui-primary);
    background: var(--ui-primary-strong);
}

html.theme-dark {
    --ui-canvas: #111827;
    --ui-surface: #182230;
    --ui-surface-muted: #202d3d;
    --ui-ink: #edf4f8;
    --ui-muted: #a7b6c6;
    --ui-border: #34465a;
    --ui-primary: #48abe0;
    --ui-primary-strong: #a6ddf6;
    --ui-primary-soft: #173d5b;
    --ui-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    --admin-sidebar: #0f1620;
    --admin-sidebar-muted: #cbd5e1;
    --admin-sidebar-hover: #202d3d;
    --admin-sidebar-submenu: #0b1118;
}

html.theme-dark .app-topbar,
html.theme-dark .home-topbar,
html.theme-dark bottombar {
    background: #182230;
}

html.theme-dark .sidebar,
html.theme-dark .sidebar.expanded,
html.theme-dark .sidebar-collapsed,
html.theme-dark .std-hc-blue-background {
    background: var(--admin-sidebar);
    border-color: #070d14;
}

html.theme-dark .sidebar .menu-row:hover,
html.theme-dark .sidebar > .menu-active > .menu-row:first-child,
html.theme-dark .sidebar .menu-row-active {
    background: var(--admin-sidebar-hover);
}

html.theme-dark .sidebar .full-width,
html.theme-dark .sidebar .tree-phrase-confirm,
html.theme-dark .sidebar .form-control,
html.theme-dark .sidebar input,
html.theme-dark .sidebar select {
    border-color: #40536a;
    background: #202d3d;
}

html.theme-dark .fltrs-summary,
html.theme-dark .std-hc-whiteboard,
html.theme-dark .holding-panel,
html.theme-dark .management-whiteboard,
html.theme-dark .background-dashboard,
html.theme-dark .item-dashboard,
html.theme-dark .home-container .media-container,
html.theme-dark .login-form {
    background: var(--ui-surface);
}

html.theme-dark .features-container button,
html.theme-dark .features-container button.on,
html.theme-dark .features-container button.live,
html.theme-dark .btn-secondary,
html.theme-dark .btn-light,
html.theme-dark .btn-outline-secondary,
html.theme-dark .dropdown-menu,
html.theme-dark .std-hc-whiteboard .secondary-panel,
html.theme-dark .holding-panel .secondary-panel,
html.theme-dark .sticky-table,
html.theme-dark .std-ftc-modal,
html.theme-dark .std-big-modal,
html.theme-dark .std-details-modal {
    background: var(--ui-surface-muted);
}

html.theme-dark .features-container button.on {
    border-color: #405d73;
    background: #213548;
    color: #c8d7e1;
}

html.theme-dark .features-container button.live {
    border-color: #3ca9e1;
    background: #173d5b;
    box-shadow: inset 4px 0 0 #3ca9e1, inset 0 -3px 0 #75c5eb;
    color: var(--ui-primary-strong);
}

html.theme-dark .features-container button.live i {
    color: #75c5eb;
}

html.theme-dark .features-container button:hover:not(.off),
html.theme-dark .item-dashboard:hover,
html.theme-dark .home-container .media-container.on:hover,
html.theme-dark table.listing-results tbody tr:hover {
    background: #23364a;
}

html.theme-dark .form-control,
html.theme-dark .custom-select,
html.theme-dark .std-hc-whiteboard .primary-panel input,
html.theme-dark .std-hc-whiteboard .primary-panel select,
html.theme-dark .holding-panel input,
html.theme-dark .holding-panel select,
html.theme-dark .management-whiteboard input,
html.theme-dark .management-whiteboard select {
    border-color: #40536a;
    background: #111b27;
    color: var(--ui-ink);
}

html.theme-dark .management-whiteboard table.quick-steps-holder td button {
    border-color: var(--ui-border);
    background: var(--ui-surface-muted);
    color: var(--ui-ink);
}

html.theme-dark .management-whiteboard table.quick-steps-holder td button:hover:not(.off) {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

html.theme-dark .management-whiteboard table.quick-steps-holder td button.off {
    border-color: #34465a;
    background: #263342;
    color: #9aabba;
}

html.theme-dark .management-whiteboard table.quick-steps-holder td button.off .icon i {
    color: #9aabba !important;
}

html.theme-dark .std-hc-whiteboard .tabs {
    background: transparent;
    border-bottom: 1px solid var(--ui-border);
}

html.theme-dark .std-big-modal .tabs,
html.theme-dark .std-details-modal .tabs {
    background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--ui-border) 51%, var(--ui-border) 100%);
}

html.theme-dark .std-big-modal .secondary-panel .overflow-area table thead,
html.theme-dark .std-details-modal .secondary-panel .overflow-area table thead {
    background: var(--ui-surface-muted);
    color: var(--ui-ink);
}

html.theme-dark .std-details-modal,
html.theme-dark .std-details-modal .details-unit-view,
html.theme-dark .std-big-modal .details-unit-view {
    color: var(--ui-ink);
}

html.theme-dark .std-details-modal .details-unit-view .image-side,
html.theme-dark .std-details-modal .details-unit-view .data-side,
html.theme-dark .std-big-modal .details-unit-view .image-side,
html.theme-dark .std-big-modal .details-unit-view .data-side {
    box-sizing: border-box;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
}

html.theme-dark .std-details-modal .details-unit-view .data-side,
html.theme-dark .std-big-modal .details-unit-view .data-side {
    overflow: hidden;
}

html.theme-dark .std-details-modal .details-unit-view .data-side table,
html.theme-dark .std-big-modal .details-unit-view .data-side table {
    margin-bottom: 0;
    background: transparent;
    color: var(--ui-ink);
}

html.theme-dark .std-details-modal .details-unit-view .data-side table td,
html.theme-dark .std-big-modal .details-unit-view .data-side table td {
    border-top-color: var(--ui-border);
    background: var(--ui-surface) !important;
    color: var(--ui-ink) !important;
}

html.theme-dark .std-details-modal .details-unit-view .data-side .table-striped tbody tr:nth-of-type(odd) td,
html.theme-dark .std-big-modal .details-unit-view .data-side .table-striped tbody tr:nth-of-type(odd) td {
    background: var(--ui-surface-muted) !important;
    color: var(--ui-primary-strong) !important;
}

html.theme-dark .columns-holder button.field,
html.theme-dark .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.empty,
html.theme-dark .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.field,
html.theme-dark .selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field {
    border-color: #3e5b73;
    color: #e4f4fc !important;
}

html.theme-dark .columns-selector-modal .columns-holder button.field {
    background: #263b4d !important;
}

html.theme-dark .columns-selector-modal .columns-holder button.field.selected {
    border-color: #34465a;
    background: #1b2a38 !important;
    color: var(--ui-muted) !important;
    opacity: 1;
}

html.theme-dark .columns-selector-modal .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.field,
html.theme-dark .columns-selector-modal .selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field {
    border-color: #39749a;
    background: #1c4059 !important;
}

html.theme-dark .columns-selector-modal .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.empty {
    border-style: dashed;
    background: #162536 !important;
    color: #91adc0 !important;
}

html.theme-dark .columns-selector-modal .selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field .overlay {
    background: #203448;
    color: var(--ui-ink);
}

html.theme-dark .columns-selector-modal .selected-columns-holder .field.add-row,
html.theme-dark .columns-selector-modal .selected-columns-holder .selected-columns-containter .field.add-column {
    color: var(--ui-primary-strong);
}

html.theme-dark .columns-selector-modal .nav-tabs .nav-link {
    border-color: #3e5b73;
    background: #1a2b3b !important;
    color: var(--ui-muted) !important;
}

html.theme-dark .columns-selector-modal .nav-tabs .nav-link.active {
    border-color: #3681ae #3681ae var(--ui-surface-muted);
    background: #21465f !important;
    color: #e4f4fc !important;
}

html.theme-dark .columns-selector-modal .footer-panel .btn-blue-set button {
    border-color: #3079a4;
    background: #176f9e;
    color: #eef8fd;
}

html.theme-dark .columns-selector-modal .footer-panel .btn-blue-set button:hover,
html.theme-dark .columns-selector-modal .footer-panel .btn-blue-set button:focus {
    border-color: #4cafe4;
    background: #2589bd;
}

/* Column selector: the component owns this class so the dark theme cannot miss the modal. */
.std-big-modal:has(.column-selector-workspace) {
    width: min(94vw, 1600px);
    height: min(90vh, 980px);
    max-width: calc(100vw - 24px);
}

.column-selector-workspace .tabs {
    background: transparent !important;
    border-bottom: 1px solid var(--ui-border);
}

.column-selector-workspace .tabs .nav-item {
    margin-right: 6px !important;
}

.column-selector-workspace .tabs .nav-link {
    border: 1px solid var(--ui-border);
    border-bottom-color: var(--ui-border);
    border-radius: 6px 6px 0 0;
    background: var(--ui-surface-muted) !important;
    color: var(--ui-muted) !important;
}

.column-selector-workspace .tabs .nav-link.active {
    border-color: var(--ui-primary) var(--ui-primary) var(--ui-surface);
    background: var(--ui-surface) !important;
    color: var(--ui-primary-strong) !important;
}

.column-selector-workspace .columns-holder button.field,
.column-selector-workspace .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.empty,
.column-selector-workspace .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.field,
.column-selector-workspace .selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field {
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    box-shadow: none;
    color: var(--ui-primary-strong);
}

.column-selector-workspace .primary-panel .saved-selection-toolbar {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.column-selector-workspace .primary-panel .saved-selection-toolbar > div {
    margin: 0 !important;
}

.column-selector-workspace .primary-panel .saved-selection-toolbar .input {
    flex: 0 1 clamp(220px, 24vw, 340px);
    min-width: 220px;
    max-width: 340px;
}

.column-selector-workspace .primary-panel .saved-selection-toolbar .input select,
.column-selector-workspace .primary-panel .saved-selection-toolbar .input input {
    width: 100%;
    height: 38px;
}

.column-selector-workspace .primary-panel .saved-selection-toolbar .fltrs-control {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: var(--ui-surface-muted);
    color: var(--ui-primary);
    cursor: pointer;
}

.column-selector-workspace .primary-panel .saved-selection-toolbar .fltrs-control:hover {
    border-color: var(--ui-primary);
    background: var(--ui-primary-soft);
    color: var(--ui-primary-strong);
}

.column-selector-workspace .footer-panel .btn-green-set button {
    border-color: #13775d;
    background: #16835c;
    color: #ffffff;
}

.column-selector-workspace .footer-panel .btn-blue-set button {
    border-color: var(--ui-primary-strong);
    background: var(--ui-primary);
    color: #ffffff;
}

html.theme-dark .column-selector-workspace .tabs .nav-link {
    border-color: #3e5b73;
    background: #1a2b3b !important;
    color: #c7d9e5 !important;
}

html.theme-dark .column-selector-workspace .tabs .nav-link.active {
    border-color: #3681ae #3681ae var(--ui-surface-muted);
    background: #21465f !important;
    color: #eaf7ff !important;
}

html.theme-dark .column-selector-workspace .columns-holder button.field {
    border-color: #3e5b73;
    background: #263b4d !important;
    color: #e4f4fc !important;
}

html.theme-dark .column-selector-workspace .columns-holder button.field.selected {
    border-color: #34465a;
    background: #1b2a38 !important;
    color: #b9cad7 !important;
    opacity: 1;
}

html.theme-dark .column-selector-workspace button.field {
    border-bottom: 4px solid var(--field-color) !important;
}

html.theme-dark .column-selector-workspace .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.field,
html.theme-dark .column-selector-workspace .selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field {
    border-color: #39749a;
    background: #1c4059 !important;
    color: #e4f4fc !important;
}

html.theme-dark .column-selector-workspace .selected-columns-holder .selected-columns-containter .columns-row .dropzone-columns button.empty {
    border-color: #3e5b73;
    border-style: dashed;
    background: #162536 !important;
    color: #a8c6d8 !important;
}

html.theme-dark .column-selector-workspace .selected-columns-holder .selected-columns-containter .dropzone-columns .columns-row .field .overlay {
    background: #203448;
    color: var(--ui-ink);
}

html.theme-dark .column-selector-workspace .primary-panel .saved-selection-toolbar .fltrs-control {
    border-color: #3e5b73;
    background: #1a2b3b;
    color: #6bc4ef;
}

html.theme-dark .column-selector-workspace .primary-panel .saved-selection-toolbar .fltrs-control:hover {
    border-color: #4cafe4;
    background: #21465f;
    color: #eaf7ff;
}

html.theme-dark .column-selector-workspace .footer-panel .btn-blue-set button {
    border-color: #3079a4;
    background: #176f9e;
    color: #eef8fd;
}

html.theme-dark .column-selector-workspace .footer-panel .btn-blue-set button:hover,
html.theme-dark .column-selector-workspace .footer-panel .btn-blue-set button:focus {
    border-color: #4cafe4;
    background: #2589bd;
}

html.theme-dark table.listing-results thead tr th,
html.theme-dark .sticky-table table tr.sticky-header th,
html.theme-dark .sticky-table table tr.sticky-header td,
html.theme-dark .sticky-table table tr.sticky-footer th,
html.theme-dark .sticky-table table tr.sticky-footer td,
html.theme-dark .sticky-table table td.sticky-cell,
html.theme-dark .sticky-table table th.sticky-cell,
html.theme-dark .sticky-table table td.sticky-cell-opposite,
html.theme-dark .sticky-table table th.sticky-cell-opposite {
    background: var(--ui-surface-muted);
    color: var(--ui-ink);
}

@media (max-width: 960px) {
    .sidebar,
    .sidebar.expanded {
        flex-basis: 264px;
        width: 264px;
        min-width: 264px;
    }

    .sidebar.expanded {
        flex-basis: min(460px, 56vw);
        width: min(460px, 56vw);
    }

    .fltrs-summary .primary-panel .left-side {
        flex-basis: 100%;
    }

    .fltrs-summary .primary-panel .right-side {
        margin-left: 0;
    }

    .features-container {
        overflow-x: auto;
    }
}

@media (max-width: 680px) {
    app {
        display: block;
    }

    .app-topbar,
    .home-topbar {
        height: 56px;
        padding: 0 12px;
    }

    .sidebar,
    .sidebar.expanded {
        width: min(320px, 88vw);
        min-width: min(320px, 88vw);
        max-height: none;
        height: 100dvh;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1050;
        overflow-y: auto;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 180ms ease, visibility 180ms ease;
    }

    .sidebar.expanded {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar-collapsed {
        display: none;
    }

    .sidebar-mobile-close {
        width: 36px;
        height: 36px;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
    }

    .sidebar-mobile-close:hover,
    .sidebar-mobile-close:focus {
        background: var(--admin-sidebar-hover);
    }

    .app-topbar .sidebar-collapse-controller {
        display: none;
    }

    .app-body {
        min-height: 0;
    }

    .fltrs-summary,
    .std-hc-whiteboard,
    .holding-panel,
    .management-whiteboard {
        margin: 12px;
        padding: 14px;
    }

    .fltrs-summary .primary-panel,
    .fltrs-summary .primary-panel .left-side,
    .fltrs-summary .primary-panel .left-side .select-panel,
    .fltrs-summary .primary-panel .right-side {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .fltrs-summary .primary-panel .left-side .label,
    .fltrs-summary .primary-panel .right-side {
        margin-left: 0;
    }

    .fltrs-summary .primary-panel .left-side .select-panel .input {
        width: 100%;
        flex-basis: auto;
    }

    .features-container,
    .features-container tbody,
    .features-container tr,
    .features-container td {
        display: block;
        width: 100%;
    }

    .features-container {
        width: auto;
        margin: 0 12px 12px;
        border-spacing: 0;
    }

    .features-container td {
        padding: 4px 0;
    }

    .features-container button {
        width: 100%;
    }

    .dashboard-workspace,
    .home-body {
        min-height: calc(100vh - 56px);
        padding: 14px;
    }

    table.quick-steps-holder,
    table.quick-steps-holder tbody,
    table.quick-steps-holder tr,
    table.quick-steps-holder td {
        display: block;
        width: 100%;
    }

    table.quick-steps-holder {
        border-spacing: 0;
    }

    table.quick-steps-holder td {
        padding: 4px 0;
    }

    .management-whiteboard table.quick-steps-holder tr {
        display: block;
        grid-template-columns: none;
    }

    .login-body {
        min-height: 100dvh;
        padding: 128px 20px 82px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        gap: 20px;
    }

    .login-logo {
        order: 0;
        text-align: center;
    }

    .login-localization {
        width: auto;
        position: absolute;
        top: 18px;
        right: 20px;
        left: 20px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .login-localization .login-localization-section {
        width: 100%;
        min-width: 0;
    }

    .customization-workarea {
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .customization-area,
    .customization-area.raw-config,
    .customization-area.new-config,
    .customization-area.new-config-buttons {
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: none;
        float: none;
    }

    table.company-edition,
    table.permission-edition,
    table.media-access-configuration {
        min-width: 0;
    }

    .columns-holder button.field {
        width: calc(50% - 8px);
        height: auto;
        min-height: 72px;
    }

    .std-ftc-modal,
    .std-big-modal,
    .std-details-modal {
        width: calc(100vw - 24px);
        min-width: 0;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 14px;
    }

    .std-big-modal {
        height: calc(100vh - 24px);
    }
}
