/* GAVIO Workspace — structural enterprise UI */
:root {
    --gw-rail: 74px;
    --gw-inspector: 278px;
    --gw-command: 62px;
    --gw-bg: #eef1f3;
    --gw-surface: #ffffff;
    --gw-subtle: #f6f7f8;
    --gw-line: #d5dce0;
    --gw-line-strong: #b6c0c6;
    --gw-ink: #142027;
    --gw-muted: #5d6a71;
    --gw-faint: #849097;
    --gw-rail-bg: #16252b;
    --gw-rail-hover: #22373e;
    --gw-accent: #087f78;
    --gw-accent-soft: #e6f3f1;
    --gw-success: #297a52;
    --gw-warning: #a66708;
    --gw-danger: #b33434;
    --gw-info: #226e93;
    --gw-font: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    --gw-mono: "Cascadia Mono", Consolas, monospace;
}

html.gw-enabled,
html.gw-enabled body {
    width: 100%;
    height: 100%;
    margin: 0;
}

html.gw-enabled {
    color-scheme: light;
    background: var(--gw-bg);
}

html.gw-enabled *,
html.gw-enabled *::before,
html.gw-enabled *::after {
    box-sizing: border-box;
}

html.gw-enabled body.gw-application {
    display: block !important;
    min-width: 320px;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--gw-bg) !important;
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
    font-size: 13px;
    line-height: 1.35;
}

html.gw-enabled body.gw-application::before,
html.gw-enabled body.gw-application::after {
    display: none !important;
}

.gw-shell {
    display: grid;
    grid-template-columns: var(--gw-rail) minmax(0, 1fr);
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.gw-workspace {
    display: grid;
    grid-template-rows: var(--gw-command) minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.gw-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.gw-stage:has(> .gw-inspector) {
    grid-template-columns: minmax(0, 1fr) var(--gw-inspector);
}

/* Navigation rail */
html.gw-enabled body.gw-application .gw-rail {
    position: relative !important;
    inset: auto !important;
    z-index: 70 !important;
    display: grid !important;
    grid-template-rows: var(--gw-command) minmax(0, 1fr) auto auto !important;
    width: var(--gw-rail) !important;
    height: 100dvh !important;
    min-width: var(--gw-rail) !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    border: 0 !important;
    border-right: 1px solid #0d1a1f !important;
    border-radius: 0 !important;
    background: var(--gw-rail-bg) !important;
    box-shadow: none !important;
}

.gw-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    height: var(--gw-command);
    color: #fff !important;
    text-decoration: none !important;
}

.gw-brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255,255,255,.52);
    background: #0e7772;
    color: #fff;
    font: 700 17px/1 var(--gw-font);
    letter-spacing: -.04em;
}

.gw-brand-word {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .11em;
}

.gw-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.gw-brand-slogan {
    color: #9fb6c2;
    font-size: 7px;
    font-weight: 650;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.gw-rail .gw-brand-copy,
.gw-rail .gw-brand-word,
.gw-rail .gw-brand-slogan {
    display: none;
}

.gw-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    padding: 12px 7px;
}

.gw-rail-group {
    position: relative;
}

html.gw-enabled body.gw-application .gw-rail-trigger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 59px !important;
    min-width: 59px !important;
    height: 57px !important;
    min-height: 57px !important;
    margin: 0 !important;
    padding: 5px 2px !important;
    border: 1px solid transparent !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: #b8c5ca !important;
    box-shadow: none !important;
    font-family: var(--gw-font) !important;
    cursor: pointer;
}

.gw-rail-trigger:hover,
.gw-rail-trigger:focus-visible,
.gw-rail-group.is-open .gw-rail-trigger {
    border-color: rgba(255,255,255,.08) !important;
    background: var(--gw-rail-hover) !important;
    color: #fff !important;
}

.gw-rail-group.is-active .gw-rail-trigger {
    border-color: rgba(83, 203, 192, .36) !important;
    background: #1e3d42 !important;
    color: #fff !important;
}

.gw-rail-group.is-active .gw-rail-trigger::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: -7px;
    width: 3px;
    background: #51bdb4;
    content: "";
}

.gw-rail-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 25px;
    border: 1px solid currentColor;
    color: inherit;
    font: 600 9px/1 var(--gw-mono);
    letter-spacing: .04em;
}

.gw-rail-label {
    overflow: hidden;
    max-width: 56px;
    color: inherit;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-rail-flyout {
    position: absolute;
    top: 0;
    left: 66px;
    z-index: 90;
    display: none;
    width: 250px;
    padding: 8px;
    border: 1px solid #243c43;
    background: #1b2e34;
    box-shadow: 0 12px 32px rgba(7,17,21,.26);
}

.gw-rail-group.is-open .gw-rail-flyout {
    display: block;
}

.gw-rail-flyout-title {
    padding: 6px 9px 9px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #8ea0a7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gw-rail-link {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin-top: 3px;
    padding: 7px 10px;
    border-left: 3px solid transparent;
    color: #d4dde0 !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
}

.gw-rail-link:hover {
    background: #263d44;
    color: #fff !important;
}

.gw-rail-link.is-current {
    border-left-color: #51bdb4;
    background: #233c42;
    color: #fff !important;
    font-weight: 700;
}

.gw-rail-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 61px;
    padding: 8px 3px 10px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: #a9b8be !important;
    font-size: 9px;
    text-decoration: none !important;
}

.gw-rail-logout span:first-child {
    font-size: 18px;
}

.gw-rail-logout:hover {
    background: #21353c;
    color: #fff !important;
}

/* Global command bar */
.gw-commandbar {
    position: relative;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto auto;
    align-items: center;
    min-width: 0;
    height: var(--gw-command);
    padding: 0 14px 0 17px;
    border-bottom: 1px solid var(--gw-line);
    background: rgba(255,255,255,.97);
    box-shadow: 0 1px 3px rgba(25,40,48,.06);
}

.gw-mobile-nav {
    display: none;
}

.gw-command-context {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: start;
    gap: 1px 9px;
    min-width: 0;
    padding-right: 18px;
}

.gw-command-area {
    grid-column: 1;
    color: var(--gw-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gw-command-context strong {
    grid-column: 1;
    overflow: hidden;
    color: var(--gw-ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-command-code {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding: 4px 6px;
    border: 1px solid var(--gw-line);
    background: var(--gw-subtle);
    color: var(--gw-muted);
    font: 600 9px/1 var(--gw-mono);
}

.gw-command-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    overflow: visible;
}

html.gw-enabled body.gw-application .gw-command-moved,
html.gw-enabled body.gw-application .gw-command-actions .ui-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gw-command-actions #userBadge,
.gw-command-actions .user-badge,
.gw-command-actions .status-badge {
    display: inline-flex !important;
    align-items: center;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    border: 1px solid var(--gw-line) !important;
    border-radius: 2px !important;
    background: var(--gw-subtle) !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    font: 600 11px/1 var(--gw-font) !important;
}

.gw-command-actions select,
.gw-command-actions button,
.gw-context-toggle {
    min-height: 30px !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    border: 1px solid var(--gw-line-strong) !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    font: 600 10px/1 var(--gw-font) !important;
    text-transform: none !important;
}

.gw-command-actions button:hover,
.gw-context-toggle:hover {
    border-color: var(--gw-accent) !important;
    color: var(--gw-accent) !important;
}

.gw-command-actions .gavio-language-menu {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
}

.gw-command-actions .gavio-language-trigger {
    width: auto !important;
}

.gw-command-actions .gavio-language-options {
    top: calc(100% + 5px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 120 !important;
    min-width: 180px !important;
}

.gw-command-state {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--gw-line);
    color: var(--gw-muted);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.gw-command-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gw-success);
    box-shadow: 0 0 0 3px #e4f1ea;
}

.gw-command-state time {
    min-width: 31px;
    color: var(--gw-ink);
    font-family: var(--gw-mono);
}

.gw-context-toggle {
    margin-left: 10px !important;
}

/* Workspace and page heading */
html.gw-enabled body.gw-application .gw-stage > main.gw-page {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--gw-bg) !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    transform: none !important;
    scrollbar-color: #aab5ba transparent;
    scrollbar-width: thin;
}

.gw-page-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gw-page-intro {
    display: block;
    min-width: 0;
}

.gw-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    color: var(--gw-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gw-eyebrow span {
    padding: 3px 5px;
    background: var(--gw-accent);
    color: #fff;
    font: 600 9px/1 var(--gw-mono);
}

.gw-page-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

html.gw-enabled body.gw-application .gw-page-title-row h1 {
    margin: 0 !important;
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
    font-size: clamp(22px, 2vw, 28px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.03em !important;
    text-shadow: none !important;
    text-transform: none !important;
}

.gw-mandate {
    padding: 3px 6px;
    border: 1px solid #b6d8d3;
    background: var(--gw-accent-soft);
    color: #176f69;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gw-page-intro p {
    max-width: 760px;
    margin: 5px 0 0;
    color: var(--gw-muted);
    font-size: 12px;
}

.gw-legacy-heading {
    display: none !important;
}

.gw-section-nav {
    position: sticky;
    top: -16px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 37px;
    margin: 0 !important;
    padding: 0 2px;
    overflow-x: auto;
    border: 1px solid var(--gw-line);
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 5px rgba(20,32,39,.04);
}

.gw-section-nav a {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 13px;
    border-right: 1px solid var(--gw-line);
    border-bottom: 2px solid transparent;
    color: var(--gw-muted) !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.gw-section-nav a:hover,
.gw-section-nav a.is-current {
    border-bottom-color: var(--gw-accent);
    background: var(--gw-subtle);
    color: var(--gw-accent) !important;
}

/* Existing page content, remapped to work surfaces */
html.gw-enabled body.gw-application .gw-page :where(
    .panel, .gw-work-card, .admin-panel, .employee-panel, .worker-section,
    .lager-panel, .saldo-panel, .year-panel, .matrix-section, .project-board,
    .payroll-guide, .gav-guide, .year-guide, .compliance-hero, .coverage-strip,
    .planner-view-strip, .action-bar, .saldo-toolbar, .year-toolbar, .matrix-toolbar
) {
    border: 1px solid var(--gw-line) !important;
    border-radius: 2px !important;
    background: var(--gw-surface) !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html.gw-enabled body.gw-application .gw-page :where(
    .panel, .gw-work-card, .admin-panel, .employee-panel, .worker-section,
    .lager-panel, .saldo-panel, .year-panel, .matrix-section, .project-board
) {
    scroll-margin-top: 42px;
}

html.gw-enabled body.gw-application .gw-page :where(
    .panel-head, .report-center-head, .employee-panel-head, .worker-section-head,
    .year-timeline-head, .matrix-section-head, .payroll-guide-head, .gav-guide-head,
    .year-guide-head, .employee-pool-head, .project-toolbar
) {
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--gw-line) !important;
    border-radius: 0 !important;
    background: var(--gw-subtle) !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page :where(h2, h3, h4) {
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
    text-shadow: none !important;
    text-transform: none !important;
}

html.gw-enabled body.gw-application .gw-page h2 {
    font-size: 16px !important;
}

html.gw-enabled body.gw-application .gw-page h3 {
    font-size: 14px !important;
}

html.gw-enabled body.gw-application .gw-page :where(p, span, small, label, li, .admin-meta, .saldo-sub) {
    text-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page :where(.muted, .subtitle, .module-subtitle, .admin-meta, small) {
    color: var(--gw-muted) !important;
}

/* KPI systems */
.metric-card,
.fin-card,
.saldo-card,
.lager-card,
.year-kpi,
.matrix-kpi,
.gav-summary-card,
.overlord-card,
.worker-card {
    position: relative !important;
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--gw-line) !important;
    border-top: 3px solid var(--gw-info) !important;
    border-radius: 2px !important;
    background: var(--gw-surface) !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
}

.metric-card.ok,
.year-kpi.ok,
.matrix-kpi.ok,
.saldo-card.vacation {
    border-top-color: var(--gw-success) !important;
}

.metric-card.warning,
.year-kpi.warning,
.matrix-kpi.warn,
.lager-card.warn,
.saldo-card.pending {
    border-top-color: var(--gw-warning) !important;
}

.metric-card.danger,
.year-kpi.danger,
.matrix-kpi.danger,
.lager-card.danger,
.saldo-card.minus {
    border-top-color: var(--gw-danger) !important;
}

html.gw-enabled body.gw-application .gw-page :where(.metric-card, .fin-card, .saldo-card, .lager-card, .year-kpi, .matrix-kpi, .gav-summary-card, .overlord-card, .worker-card) :where(strong, .iznos, .metric-value, .year-kpi-value) {
    color: var(--gw-ink) !important;
    font-family: var(--gw-mono) !important;
    text-shadow: none !important;
}

.finance-dashboard,
.saldo-dashboard,
.lager-grid,
.year-kpis,
.matrix-kpis,
.gav-summary-grid,
.overlord-metrics,
.worker-grid {
    gap: 10px !important;
}

/* Dashboard retains its information-dense matrix */
html.gw-enabled body.dashboard-production-page .gw-stage > main.gw-page {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-content: start !important;
    gap: 12px !important;
}

body.dashboard-production-page .gw-page > .gw-page-header,
body.dashboard-production-page .gw-page > .gw-section-nav,
body.dashboard-production-page .gw-page > .header-cortex-strip {
    grid-column: 1 / -1;
}

body.dashboard-production-page .metric-card {
    grid-column: span 3 !important;
    grid-row: auto !important;
}

body.dashboard-production-page .queue-panel {
    grid-column: span 8 !important;
    grid-row: auto !important;
}

body.dashboard-production-page .ops-panel {
    grid-column: span 4 !important;
    grid-row: auto !important;
}

body.dashboard-production-page .warning-panel,
body.dashboard-production-page .timeline-panel {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
}

.header-cortex-strip {
    display: grid !important;
    grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(105px, 1fr)) !important;
    gap: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--gw-line) !important;
    border-left: 4px solid var(--gw-accent) !important;
    border-radius: 2px !important;
    background: var(--gw-surface) !important;
    box-shadow: none !important;
}

.header-cortex-main,
.header-cortex-metric {
    min-width: 0;
    padding: 10px 12px !important;
    border: 0 !important;
    border-right: 1px solid var(--gw-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.header-cortex-main :where(label, strong, span),
.header-cortex-metric :where(label, strong, span) {
    color: var(--gw-ink) !important;
    text-shadow: none !important;
}

.header-cortex-main label,
.header-cortex-metric label {
    color: var(--gw-muted) !important;
    font-size: 9px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Tables and list grids */
.gw-page .table-shell,
.gw-page .year-table-wrap,
.gw-page .lager-table,
.gw-page .saldo-table,
.gw-page .op-lista {
    min-width: 0;
    overflow-x: auto !important;
    border-radius: 0 !important;
    scrollbar-color: #adb8bd #f1f3f4;
}

html.gw-enabled body.gw-application .gw-page table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
}

html.gw-enabled body.gw-application .gw-page :where(th, .op-header, .saldo-header, .lager-row.header) {
    padding: 8px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--gw-line-strong) !important;
    background: #e8ecee !important;
    color: #354249 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .035em !important;
    text-align: left;
    text-shadow: none !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-application .gw-page :where(td, .op-red, .saldo-row, .lager-row) {
    border-color: var(--gw-line) !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page td {
    padding: 8px 10px !important;
    border-bottom: 1px solid #e1e6e8 !important;
}

html.gw-enabled body.gw-application .gw-page tbody tr:hover td,
html.gw-enabled body.gw-application .gw-page :where(.op-red, .saldo-row, .lager-row):hover {
    background: #f2f7f6 !important;
}

/* Forms and operational buttons */
html.gw-enabled body.gw-application .gw-page :where(input, select, textarea),
html.gw-enabled .modal-box :where(input, select, textarea) {
    min-height: 34px !important;
    padding: 7px 9px !important;
    border: 1px solid var(--gw-line-strong) !important;
    border-radius: 2px !important;
    outline: 0 !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    font-family: var(--gw-font) !important;
    font-size: 12px !important;
}

html.gw-enabled body.gw-application .gw-page :where(input, select, textarea):focus,
html.gw-enabled .modal-box :where(input, select, textarea):focus {
    border-color: var(--gw-accent) !important;
    box-shadow: 0 0 0 2px rgba(8,127,120,.13) !important;
}

html.gw-enabled body.gw-application .gw-page :where(button, .btn, [class*="btn-"]) {
    min-height: 32px;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-family: var(--gw-font) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-primary, .primary, .action-primary) {
    border-color: var(--gw-accent) !important;
    background: var(--gw-accent) !important;
    color: #fff !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-danger, .danger-button) {
    border-color: var(--gw-danger) !important;
    background: var(--gw-danger) !important;
    color: #fff !important;
}

/* State labels */
.gw-state-label,
.chip,
.badge,
.status-badge,
.payroll-control-state,
.worker-status-chip {
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: var(--gw-font) !important;
    text-shadow: none !important;
}

.ok,
.success,
.status-active {
    --state-color: var(--gw-success);
}

.warning,
.warn,
.pending {
    --state-color: var(--gw-warning);
}

.danger,
.critical,
.blocked {
    --state-color: var(--gw-danger);
}

/* Planner and calendar */
#calendar,
#calendar-dostupnost {
    min-width: 0 !important;
    border: 1px solid var(--gw-line) !important;
    border-radius: 2px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.fc,
.fc :where(a, span, div) {
    font-family: var(--gw-font) !important;
    text-shadow: none !important;
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--gw-line) !important;
}

.fc .fc-col-header-cell,
.fc .fc-timegrid-axis,
.fc .fc-daygrid-day-number {
    background: #f5f7f8 !important;
    color: var(--gw-ink) !important;
}

.fc .fc-button-primary {
    border-color: var(--gw-line-strong) !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
}

.fc .fc-button-active,
.fc .fc-button-primary:hover {
    border-color: var(--gw-accent) !important;
    background: var(--gw-accent) !important;
    color: #fff !important;
}

.employee-pool-sidebar {
    border: 1px solid var(--gw-line) !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
}

/* Context inspector */
html.gw-enabled body.gw-application .gw-inspector {
    position: relative !important;
    inset: auto !important;
    z-index: 25 !important;
    display: flex !important;
    flex-direction: column !important;
    width: var(--gw-inspector) !important;
    min-width: var(--gw-inspector) !important;
    max-width: var(--gw-inspector) !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-left: 1px solid var(--gw-line) !important;
    border-radius: 0 !important;
    background: #f7f8f8 !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    transform: none !important;
}

html.gw-enabled .gw-inspector :where(h2, h3, h4, strong, label, span, p) {
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
    text-shadow: none !important;
}

html.gw-enabled .gw-inspector :where(.context-section, .context-card, .context-block, .context-feed, section) {
    border-color: var(--gw-line) !important;
    border-radius: 2px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html.gw-enabled .gw-inspector a {
    color: var(--gw-accent) !important;
}

/* Dialogs stay above the workspace */
html.gw-enabled body .modal-overlay,
html.gw-enabled body .prompt-overlay,
html.gw-enabled body .exception-dialog-backdrop,
html.gw-enabled body .rule-detail-backdrop {
    z-index: 300 !important;
    background: rgba(14,27,33,.64) !important;
    backdrop-filter: blur(2px) !important;
}

html.gw-enabled body .modal-box,
html.gw-enabled body .prompt-box,
html.gw-enabled body .exception-dialog,
html.gw-enabled body .rule-detail-panel {
    border: 1px solid var(--gw-line-strong) !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    box-shadow: 0 22px 60px rgba(12,25,31,.24) !important;
}

html.gw-enabled body .modal-box :where(h2, h3, h4, label, p, span),
html.gw-enabled body .prompt-box :where(h2, h3, label, p, span) {
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
    text-shadow: none !important;
}

/* Public and legal screens */
html.gw-enabled body.gw-public-page {
    display: flex !important;
    flex-direction: column;
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    background: #edf1f2 !important;
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
}

.gw-public-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 clamp(18px, 4vw, 52px);
    border-bottom: 3px solid var(--gw-accent);
    background: var(--gw-rail-bg);
    color: #fff;
}

.gw-public-header .gw-brand {
    justify-content: flex-start;
}

.gw-public-meta {
    display: grid;
    justify-items: end;
    color: #cbd5d8;
    font-size: 10px;
    letter-spacing: .04em;
}

.gw-public-meta strong {
    color: #fff;
    font-size: 12px;
}

html.gw-enabled body.gw-public-page :where(.login-container, .login-card, .legal-container, main) {
    color: var(--gw-ink) !important;
    font-family: var(--gw-font) !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-public-page :where(.login-card, .legal-container, main) {
    border-color: var(--gw-line) !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: 0 12px 38px rgba(18,33,40,.1) !important;
}

/* Global accessibility */
html.gw-enabled :focus-visible {
    outline: 2px solid var(--gw-accent) !important;
    outline-offset: 2px !important;
}

html.gw-enabled ::selection {
    background: #c5e5e1;
    color: #10252a;
}

@media (max-width: 1180px) {
    .gw-stage:has(> .gw-inspector) {
        grid-template-columns: minmax(0, 1fr);
    }

    html.gw-enabled body.gw-application .gw-inspector {
        position: fixed !important;
        top: var(--gw-command) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        height: calc(100dvh - var(--gw-command)) !important;
        transform: translateX(102%) !important;
        transition: transform .18s ease !important;
        box-shadow: -12px 0 30px rgba(17,31,37,.14) !important;
    }

    html.gw-enabled body.gw-context-open .gw-inspector {
        transform: translateX(0) !important;
    }

    .header-cortex-strip {
        grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(105px, 1fr)) !important;
    }

    .header-cortex-metric:nth-of-type(n+4) {
        display: none !important;
    }
}

@media (max-width: 920px) {
    .gw-commandbar {
        grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
    }

    .gw-command-state {
        display: none;
    }

    body.dashboard-production-page .metric-card {
        grid-column: span 6 !important;
    }

    body.dashboard-production-page .queue-panel,
    body.dashboard-production-page .ops-panel {
        grid-column: 1 / -1 !important;
    }

    .finance-dashboard,
    .saldo-dashboard,
    .lager-grid,
    .year-kpis,
    .matrix-kpis,
    .worker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .gw-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    html.gw-enabled body.gw-application .gw-rail {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 150 !important;
        width: 260px !important;
        min-width: 260px !important;
        transform: translateX(-102%) !important;
        transition: transform .18s ease !important;
        box-shadow: 14px 0 36px rgba(8,18,23,.24) !important;
    }

    html.gw-enabled body.gw-nav-open .gw-rail {
        transform: translateX(0) !important;
    }

    .gw-rail > .gw-brand {
        justify-content: flex-start;
        padding-left: 18px;
        border-bottom: 1px solid rgba(255,255,255,.09);
    }

    .gw-rail > .gw-brand .gw-brand-word {
        display: block;
    }

    .gw-rail-nav {
        padding: 10px;
        overflow-y: auto;
    }

    html.gw-enabled body.gw-application .gw-rail-trigger {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 8px 10px !important;
    }

    .gw-rail-label {
        max-width: none;
        font-size: 12px;
    }

    .gw-rail-group.is-active .gw-rail-trigger::before {
        left: -10px;
    }

    .gw-rail-flyout,
    .gw-rail-group.is-open .gw-rail-flyout {
        position: static;
        display: none;
        width: 100%;
        padding: 4px 5px 7px 40px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .gw-rail-group.is-open .gw-rail-flyout {
        display: block;
    }

    .gw-rail-flyout-title {
        display: none;
    }

    .gw-rail-logout {
        flex-direction: row;
        gap: 8px;
        font-size: 11px;
    }

    .gw-commandbar {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        padding: 0 10px;
    }

    .gw-mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid var(--gw-line-strong);
        border-radius: 2px;
        background: #fff;
    }

    .gw-mobile-nav span {
        width: 14px;
        height: 1px;
        background: var(--gw-ink);
    }

    .gw-command-context {
        grid-column: 2;
        padding-right: 8px;
    }

    .gw-command-actions {
        display: none;
    }

    .gw-context-toggle {
        grid-column: 3;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        padding: 12px !important;
    }

    .gw-section-nav {
        top: -12px;
    }

    .header-cortex-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .header-cortex-metric {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Large-display action inspector v32
   Gives the operational sidebar enough room on 2K/4K workstations while
   preserving the compact 278px inspector on ordinary laptop viewports.
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
    :root {
        --gw-inspector: 278px;
    }

    html.gw-enabled body.gw-application .gw-context-panel.gw-inspector {
        gap: 0 !important;
        padding: 0 16px 16px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-head {
        min-height: 128px !important;
        margin-inline: -16px !important;
        padding: 18px 58px 18px 20px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-title {
        font-size: 20px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-subtitle {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-kicker,
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sync,
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-label > span,
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title > span {
        font-size: 9px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus {
        gap: 7px !important;
        margin: 14px 0 !important;
        padding: 14px 15px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-title {
        font-size: 15px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus > p {
        font-size: 10.5px !important;
        line-height: 1.45 !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sections {
        gap: 15px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section {
        gap: 8px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title {
        min-height: 24px !important;
        padding-bottom: 6px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link {
        grid-template-columns: 36px minmax(0, 1fr) auto auto !important;
        gap: 10px !important;
        min-height: 54px !important;
        padding: 9px 11px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 9px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > strong {
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > small {
        font-size: 9px !important;
    }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar.planner-context-pool {
        min-height: 360px !important;
        padding: 13px !important;
    }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-head h2 {
        font-size: 14px !important;
    }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-search {
        min-height: 38px !important;
        padding: 9px 11px !important;
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-card {
        padding: 11px 12px !important;
    }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-name span:first-child {
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar :is(.employee-pool-meta, .employee-pool-hint) {
        font-size: 10px !important;
    }
}

/* --------------------------------------------------------------------------
   Enterprise workspace correction v28
   Restores useful workspace density and removes legacy dark-layout leakage.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-rail-label {
    font-size: 9.5px !important;
    font-weight: 700 !important;
}

html.gw-enabled body.gw-application .gw-context-panel {
    font-size: 11px !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-title {
    font-size: 17px !important;
    line-height: 1.15 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-subtitle,
html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus > p {
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > strong {
    font-size: 10.5px !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > small,
html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title {
    font-size: 7.5px !important;
}

/* Dashboard KPI view: a full 2x2 decision surface instead of a thin row. */
html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
    display: grid !important;
    grid-column: span 6 !important;
    align-content: center !important;
    min-height: clamp(132px, 16vh, 190px) !important;
    padding: clamp(18px, 2vw, 28px) !important;
    border: 1px solid #c4d0d7 !important;
    border-left: 5px solid #1d628b !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(15, 42, 58, .07) !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active.warning {
    border-left-color: #b7791f !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active.danger {
    border-left-color: #b23a48 !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > span {
    color: #536b79 !important;
    font-size: 11px !important;
    letter-spacing: .055em !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > strong {
    margin: 8px 0 5px !important;
    color: #163246 !important;
    font-size: clamp(34px, 4vw, 52px) !important;
    line-height: 1 !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > small {
    color: #667d89 !important;
    font-size: 10.5px !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .gw-workflow-footer {
    grid-column: 1 / -1 !important;
}

/* Kunden & Objekte: consistent light B2B cards with bounded readable width. */
html.gw-enabled body.gw-module-klijenti main.gw-page[data-gw-view="kunden-objekte"] > #listaLokacija.gw-view-active {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)) !important;
    align-content: start !important;
    gap: 12px !important;
    min-height: 210px !important;
    margin-top: 0 !important;
    padding: 14px !important;
    border: 1px solid #c7d3da !important;
    border-radius: 5px !important;
    background: #f7f9fa !important;
    box-shadow: 0 3px 10px rgba(15, 42, 58, .05) !important;
}

html.gw-enabled body.gw-module-klijenti :is(.loc-karta, .project-card) {
    margin: 0 !important;
    border: 1px solid #c3d0d8 !important;
    border-left: 4px solid #1d628b !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(15, 42, 58, .055) !important;
    transform: none !important;
}

html.gw-enabled body.gw-module-klijenti :is(.loc-karta, .project-card):hover {
    border-color: #7fa4b9 !important;
    border-left-color: #1d628b !important;
    box-shadow: 0 5px 14px rgba(15, 42, 58, .09) !important;
}

html.gw-enabled body.gw-module-klijenti :is(.loc-ime, .project-card h3, .project-toolbar h2, .project-detail-panel h3) {
    color: #173246 !important;
}

html.gw-enabled body.gw-module-klijenti :is(.loc-adresa, .project-code, .project-brief) {
    color: #607684 !important;
}

html.gw-enabled body.gw-module-klijenti :is(.loc-badge, .project-meta div, .project-detail-grid div, .project-staffing-strip div) {
    border-color: #c9d6dd !important;
    background: #f3f7f9 !important;
    color: #245c7c !important;
}

html.gw-enabled body.gw-module-klijenti :is(.project-meta strong, .project-detail-grid strong, .project-staffing-strip strong) {
    color: #173246 !important;
}

/* Planning: the employee pool belongs to the 278px inspector, never below main. */
html.gw-enabled body.planner-page.gw-module-planer > aside.employee-pool-sidebar#employeePoolSidebar {
    display: none !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar.planner-context-pool {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex: 1 1 300px !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 250px !important;
    max-height: none !important;
    padding: 10px !important;
    overflow: hidden !important;
    border: 1px solid #c4d1d8 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #173246 !important;
    box-shadow: none !important;
    transform: none !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar :is(h2, .employee-pool-name span:first-child) {
    color: #173246 !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar :is(p, .employee-pool-hint, .employee-pool-meta) {
    color: #607684 !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-card {
    border: 1px solid #c7d3da !important;
    border-left: 3px solid #5f8da8 !important;
    border-radius: 3px !important;
    background: #f8fafb !important;
    color: #173246 !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-card:hover {
    border-color: #7ca4ba !important;
    border-left-color: #1d628b !important;
    background: #edf4f7 !important;
    transform: none !important;
}

html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-pill {
    border-color: #becdd5 !important;
    background: #eaf0f3 !important;
    color: #3f5968 !important;
}

/* Mitarbeiter dossier: contained, light, readable enterprise editor. */
html.gw-enabled body.gw-module-operativci #employeeFileModal {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    background: rgba(9, 31, 44, .58) !important;
    backdrop-filter: blur(4px) !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .employee-file-modal {
    width: min(1480px, calc(100vw - 32px)) !important;
    max-width: 1480px !important;
    height: min(920px, calc(100dvh - 32px)) !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #819baa !important;
    border-radius: 7px !important;
    background: #f4f7f9 !important;
    color: #173246 !important;
    box-shadow: 0 24px 70px rgba(4, 22, 33, .34) !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .employee-file-head {
    flex: 0 0 auto !important;
    align-items: center !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #c4d0d7 !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal :is(.employee-file-name, .employee-panel h3, .dossier-photo-name, .salary-panel h4, .cv-current-box strong, .profile-stat strong, .recent-shift strong) {
    color: #173246 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal :is(.employee-file-sub, .dossier-upload-note, .dossier-identity-list div, .cv-current-box span, .salary-meta, .equipment-headline) {
    color: #607684 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .employee-file-workspace {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    gap: 0 !important;
    background: #f4f7f9 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster {
    padding: 12px !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-right: 1px solid #c4d0d7 !important;
    border-radius: 0 !important;
    background: #eaf0f3 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster h3 {
    color: #173246 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster-item {
    border: 1px solid #c7d3da !important;
    border-left: 3px solid #8da5b2 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #173246 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster-item:hover,
html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster-item.active {
    border-color: #76a1b8 !important;
    border-left-color: #1d628b !important;
    background: #e7f1f6 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster-item span {
    color: #647b88 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-detail {
    padding: 12px 14px 16px !important;
    background: #f4f7f9 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-tabs {
    position: sticky !important;
    top: -12px !important;
    z-index: 4 !important;
    gap: 0 !important;
    margin: -12px -14px 14px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #c4d0d7 !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-tab {
    min-height: 34px !important;
    padding: 7px 12px !important;
    border: 1px solid #b7c8d1 !important;
    border-right-width: 0 !important;
    border-radius: 0 !important;
    background: #f4f7f9 !important;
    color: #31556a !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-tab:first-child {
    border-radius: 4px 0 0 4px !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-tab:last-child {
    border-right-width: 1px !important;
    border-radius: 0 4px 4px 0 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-tab.active {
    border-color: #174d6d !important;
    background: #174d6d !important;
    color: #fff !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal :is(.employee-panel, .cv-current-box, .profile-stat, .salary-panel, .dossier-identity-list div) {
    border-color: #c8d4db !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .dossier-photo-frame {
    border-color: #b8c9d2 !important;
    border-radius: 4px !important;
    background: #eaf0f3 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .dossier-photo-role,
html.gw-enabled body.gw-module-operativci #employeeFileModal .dossier-section-title {
    color: #1d628b !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal .dossier-section-title {
    border-bottom-color: #c8d6dd !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal :is(.form-control, input, select, textarea) {
    border-color: #b9c8d0 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #173246 !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal :is(.form-control, input, select, textarea):focus {
    border-color: #1d628b !important;
    outline: 2px solid rgba(29, 98, 139, .14) !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal :is(.form-control[disabled], input[disabled], select[disabled], textarea[disabled]) {
    background: #e3e9ed !important;
    color: #526b79 !important;
    opacity: 1 !important;
}

html.gw-enabled body.gw-module-operativci #employeeFileModal label {
    color: #4e6876 !important;
}

html.gw-enabled body.gw-module-operativci:has(#employeeFileModal[style*="display: flex"]) :is(.gavio-ai-root, .gavio-guide-launcher) {
    display: none !important;
}

@media (max-width: 980px) {
    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
        grid-column: 1 / -1 !important;
        min-height: 118px !important;
    }

    html.gw-enabled body.gw-module-operativci #employeeFileModal {
        padding: 8px !important;
    }

    html.gw-enabled body.gw-module-operativci #employeeFileModal .employee-file-modal {
        width: calc(100vw - 16px) !important;
        height: calc(100dvh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }

    html.gw-enabled body.gw-module-operativci #employeeFileModal .employee-file-workspace {
        display: block !important;
        overflow-y: auto !important;
    }

    html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-roster {
        max-height: 190px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #c4d0d7 !important;
    }

    html.gw-enabled body.gw-module-operativci #employeeFileModal .akte-detail {
        overflow: visible !important;
    }
}

@media (max-width: 560px) {
    html.gw-enabled body.dashboard-production-page .gw-stage > main.gw-page {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.dashboard-production-page .metric-card,
    body.dashboard-production-page .queue-panel,
    body.dashboard-production-page .ops-panel,
    body.dashboard-production-page .warning-panel,
    body.dashboard-production-page .timeline-panel {
        grid-column: 1 !important;
    }

    .finance-dashboard,
    .saldo-dashboard,
    .lager-grid,
    .year-kpis,
    .matrix-kpis,
    .worker-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .gw-page-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gw-public-meta {
        display: none;
    }
}

/* Final integration polish: page-specific legacy surfaces inherit the executive system. */
html.gw-enabled body.gw-module-index .gw-inspector .context-note {
    border: 1px solid #e2c77d !important;
    background: #fff8e7 !important;
    color: #725210 !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(.fast-planning-field, .context-detail-field) {
    border: 1px solid var(--gw-line) !important;
    border-radius: 3px !important;
    background: #f4f7f7 !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(.context-card, .context-summary, .context-stack, .context-code) {
    color: var(--gw-ink) !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(.context-card, .context-detail, .fast-planning-console, .context-feed) {
    border: 1px solid var(--gw-line) !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(button, .primary) {
    border-radius: 3px !important;
    box-shadow: none !important;
}

body.gw-module-planer .planner-view-tabs {
    display: flex !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body.gw-module-planer .planner-view-tab {
    white-space: nowrap !important;
}

body.gw-module-planer .planner-view-filters {
    min-width: 0 !important;
}

body.gw-module-planer .fc-event,
body.gw-module-planer .fc-event * {
    color: #12343b !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

@media (max-width: 1420px) {
    body.gw-module-planer .planner-view-meta {
        display: none !important;
    }

    body.gw-module-planer .planner-scope-summary {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 7px !important;
    }

    body.gw-module-planer .planner-scope-metrics {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    body.gw-module-planer .planner-coverage-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.gw-module-planer .planner-coverage-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.gw-module-planer .planner-coverage-form-grid > fieldset {
        grid-column: 1 / -1 !important;
    }
}

/* Responsive shell authority: keep the workspace fluid and turn support panes into drawers. */
@media (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-stage > .gw-inspector,
    html.gw-enabled body.gw-application div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
    html.gw-enabled body.gw-application div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
        position: fixed !important;
        top: var(--gw-command) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 160 !important;
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        height: calc(100dvh - var(--gw-command)) !important;
        transform: translateX(102%) !important;
        transition: transform .18s ease !important;
        box-shadow: -12px 0 30px rgba(17, 31, 37, .14) !important;
    }

    html.gw-enabled body.gw-context-open .gw-stage > .gw-inspector {
        transform: translateX(0) !important;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100vw !important;
    }

    html.gw-enabled body.gw-application .gw-rail {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 170 !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        height: 100dvh !important;
        transform: translateX(-102%) !important;
        transition: transform .18s ease !important;
        box-shadow: 14px 0 36px rgba(8, 18, 23, .24) !important;
    }

    html.gw-enabled body.gw-nav-open .gw-rail {
        transform: translateX(0) !important;
    }

    html.gw-enabled body.gw-application .gw-workspace,
    html.gw-enabled body.gw-application .gw-stage {
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
    }

    html.gw-enabled body.gw-application .gw-commandbar {
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        padding-inline: 10px !important;
    }

    html.gw-enabled body.gw-application .gw-mobile-nav {
        display: flex !important;
    }

    html.gw-enabled body.gw-application .gw-command-actions {
        display: none !important;
    }

    html.gw-enabled body.gw-application .gw-stage > .gw-inspector {
        width: min(var(--gw-inspector), calc(100vw - 20px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
    }

    /* The enterprise shell owns mobile navigation. Suppress the legacy
       injected toggle/backdrop so it cannot cover the command-bar control. */
    html.gw-enabled body.gw-application .mobile-menu-toggle,
    html.gw-enabled body.gw-application .sidebar-backdrop {
        display: none !important;
        pointer-events: none !important;
    }
}

/* Hidden notifications must never become an invisible interaction shield on
   compact viewports; legacy mobile CSS otherwise stretches them edge to edge. */
html.gw-enabled body.gw-application .sci-toast:not(.show) {
    left: auto !important;
    right: -420px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.gw-enabled body.gw-application .sci-toast.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   Page-aware B2B work areas
   Restrained domain accents replace the legacy neon mix while semantic
   green, amber and red remain reserved for operational state.
   -------------------------------------------------------------------------- */
body.gw-module-index,
body.gw-module-planer { --gw-accent: #215f7a; --gw-accent-strong: #17465b; --gw-accent-soft: #e6f0f5; }
body.gw-module-dostupnost { --gw-accent: #2f6b60; --gw-accent-strong: #235048; --gw-accent-soft: #e7f1ef; }
body.gw-module-operativci { --gw-accent: #365f78; --gw-accent-strong: #28485b; --gw-accent-soft: #e8eef2; }
body.gw-module-izvestaji { --gw-accent: #365d86; --gw-accent-strong: #294766; --gw-accent-soft: #e8edf4; }
body.gw-module-hr-saldo { --gw-accent: #35695f; --gw-accent-strong: #284f48; --gw-accent-soft: #e8f1ef; }
body.gw-module-jahressicht { --gw-accent: #4d5f7c; --gw-accent-strong: #39475e; --gw-accent-soft: #ebedf2; }
body.gw-module-archiv { --gw-accent: #5b646c; --gw-accent-strong: #434b52; --gw-accent-soft: #eef0f1; }
body.gw-module-klijenti { --gw-accent: #6a5b3f; --gw-accent-strong: #4f442f; --gw-accent-soft: #f1eee8; }
body.gw-module-lagerbestand { --gw-accent: #596744; --gw-accent-strong: #414c32; --gw-accent-soft: #edf0e9; }
body.gw-module-gav-compliance { --gw-accent: #7a424a; --gw-accent-strong: #5d3138; --gw-accent-soft: #f3e9eb; }
body.gw-module-admin { --gw-accent: #4d5a65; --gw-accent-strong: #39434b; --gw-accent-soft: #eceff1; }
body.gw-module-worker { --gw-accent: #2f675d; --gw-accent-strong: #244e47; --gw-accent-soft: #e7f0ee; }

html.gw-enabled body.gw-application .gw-page-header {
    box-shadow: inset 4px 0 0 var(--gw-accent) !important;
}

html.gw-enabled body.gw-application .gw-page-options {
    position: sticky;
    top: -1px;
    z-index: 48;
    display: flex;
    align-items: stretch;
    min-height: 48px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #c7d1d6;
    border-left: 4px solid var(--gw-accent);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(18, 39, 50, .07);
    scrollbar-width: thin;
}

html.gw-enabled body.gw-application .gw-page-options-title {
    display: grid;
    align-content: center;
    flex: 0 0 134px;
    min-width: 134px;
    padding: 7px 13px;
    border-right: 1px solid #cbd4d9;
    background: #e9eef1;
    color: #273a45 !important;
}

html.gw-enabled body.gw-application .gw-page-options-title small {
    color: #687780 !important;
    font-size: 8px !important;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-page-options-title strong {
    color: var(--gw-accent-strong) !important;
    font-family: var(--gw-mono) !important;
    font-size: 11px;
    letter-spacing: .04em;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-width: 126px;
    min-height: 47px;
    margin: 0;
    padding: 7px 14px;
    border: 0 !important;
    border-right: 1px solid #d7dfe3 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #40515b !important;
    box-shadow: none !important;
    font-family: var(--gw-font) !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option > span {
    color: #89969d !important;
    font-family: var(--gw-mono) !important;
    font-size: 9px;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option > strong {
    color: inherit !important;
    font-size: 11px;
    font-weight: 700;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option:hover,
html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current {
    border-bottom-color: var(--gw-accent) !important;
    background: var(--gw-accent-soft) !important;
    color: var(--gw-accent-strong) !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option:focus-visible {
    z-index: 2;
    outline: 2px solid var(--gw-accent) !important;
    outline-offset: -3px;
}

/* Lohnvorbereitung: finance-grade surfaces and a single blue work accent. */
html.gw-enabled body.gw-module-izvestaji .finance-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html.gw-enabled body.gw-module-izvestaji .fin-card.cost { border-top-color: #7b5b2e !important; }
html.gw-enabled body.gw-module-izvestaji .fin-card.hours { border-top-color: #365d86 !important; }
html.gw-enabled body.gw-module-izvestaji .fin-card.people { border-top-color: #347055 !important; }

html.gw-enabled body.gw-module-izvestaji :where(.payroll-guide, .gav-payroll-panel, .action-bar, .op-lista) {
    border: 1px solid #cbd5da !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide {
    padding: 0 0 12px !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide-steps {
    padding: 2px 12px 0;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide-step {
    border: 1px solid #d2dbe0 !important;
    border-left: 3px solid #8a9ba5 !important;
    border-radius: 4px !important;
    background: #f7f9fa !important;
    color: #283a45 !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide-step strong,
html.gw-enabled body.gw-module-izvestaji .gav-payroll-row,
html.gw-enabled body.gw-module-izvestaji .payroll-control-issue {
    color: #243640 !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide-step.ok { border-left-color: var(--gw-success) !important; background: #edf6f1 !important; }
html.gw-enabled body.gw-module-izvestaji .payroll-guide-step.warning { border-left-color: var(--gw-warning) !important; background: #fbf4e8 !important; }
html.gw-enabled body.gw-module-izvestaji .payroll-guide-step.danger { border-left-color: var(--gw-danger) !important; background: #f9ecec !important; }

html.gw-enabled body.gw-module-izvestaji :where(.payroll-guide-action, .gav-payroll-actions .primary, .payroll-control-actions button) {
    border-color: var(--gw-accent) !important;
    background: var(--gw-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide-action.warning {
    border-color: var(--gw-warning) !important;
    background: var(--gw-warning) !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-guide-action.danger,
html.gw-enabled body.gw-module-izvestaji .gav-payroll-actions .danger {
    border-color: var(--gw-danger) !important;
    background: var(--gw-danger) !important;
    color: #fff !important;
}

html.gw-enabled body.gw-module-izvestaji .gav-payroll-panel {
    padding: 0 12px 12px !important;
}

html.gw-enabled body.gw-module-izvestaji .payroll-details-summary {
    margin: 0 -12px 12px !important;
    padding: 11px 12px !important;
    border-bottom: 1px solid #cbd5da !important;
    background: #eef2f5 !important;
}

html.gw-enabled body.gw-module-izvestaji :where(.gav-summary-card, .gav-payroll-row, .gav-category-section, .payroll-control-box) {
    border-color: #d0d9de !important;
    background: #f8fafb !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-worker .worker-tabs {
    display: none !important;
}

@media (max-width: 920px) {
    html.gw-enabled body.gw-module-izvestaji .finance-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    html.gw-enabled body.gw-application .gw-page-options-title {
        flex-basis: 104px;
        min-width: 104px;
        padding-inline: 9px;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
        min-width: 116px;
        padding-inline: 10px;
    }

    html.gw-enabled body.gw-module-izvestaji .finance-dashboard {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* --------------------------------------------------------------------------
   Business palette reset
   One appearance across every module: navy, blue, white and neutral grey.
   Semantic colours are reserved exclusively for status and risk.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application {
    --gw-bg: #eef2f5;
    --gw-surface: #ffffff;
    --gw-subtle: #f5f7f9;
    --gw-subtle-strong: #e7edf1;
    --gw-line: #cbd5dc;
    --gw-line-strong: #aebbc4;
    --gw-ink: #172b38;
    --gw-muted: #5b6b76;
    --gw-faint: #7b8992;
    --gw-rail-bg: #132733;
    --gw-rail-hover: #1d3a4a;
    --gw-accent: #1f5b7a;
    --gw-accent-strong: #17465f;
    --gw-accent-soft: #e6f0f5;
    --gw-info: #2f6f95;
    --gw-success: #2f6f4e;
    --gw-warning: #94600f;
    --gw-danger: #a6373f;
    background: #eef2f5 !important;
    color: #172b38 !important;
}

html.gw-enabled body.gw-application .gw-rail {
    background: linear-gradient(180deg, #173442 0, #132733 210px) !important;
}

html.gw-enabled body.gw-application .gw-brand-mark {
    border-color: rgba(255, 255, 255, .55) !important;
    background: linear-gradient(145deg, #2f7295, #194e69) !important;
}

html.gw-enabled body.gw-application .gw-command-actions .theme-control {
    display: none !important;
}

html.gw-enabled body.gw-application .gw-page,
html.gw-enabled body.gw-application .gw-page :where(p, div, label, li, td) {
    color: #172b38;
}

html.gw-enabled body.gw-application .gw-page :where(.admin-meta, small, .muted, .subtitle) {
    color: #5b6b76 !important;
}

html.gw-enabled body.gw-application .gw-page :where(input, select, textarea) {
    border-color: #aebbc4 !important;
    background: #fff !important;
    color: #172b38 !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-sci, .primary, .btn-primary, .action-primary) {
    border-color: #1f5b7a !important;
    background: #1f5b7a !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-sci, .primary, .btn-primary, .action-primary):hover {
    border-color: #17465f !important;
    background: #17465f !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-ai, .btn-ai-small, .period-controls button, .gav-payroll-actions button) {
    border-color: #8fa5b2 !important;
    background: #fff !important;
    color: #1f5b7a !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-ai, .btn-ai-small, .period-controls button, .gav-payroll-actions button):hover {
    border-color: #1f5b7a !important;
    background: #eaf1f5 !important;
    color: #17465f !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-cancel) {
    border-color: #aebbc4 !important;
    background: #f3f5f6 !important;
    color: #44545e !important;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-red, .danger.action-primary) {
    border-color: #a6373f !important;
    background: #a6373f !important;
    color: #fff !important;
}

/* Admin command center: remove all inherited dark/neon values. */
html.gw-enabled body.gw-module-admin .admin-command-strip {
    gap: 9px !important;
    padding: 10px !important;
    border: 1px solid #cbd5dc !important;
    border-radius: 5px !important;
    background: #e8edf1 !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card {
    min-height: 62px !important;
    border: 1px solid #bcc9d1 !important;
    border-left: 4px solid #1f5b7a !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #172b38 !important;
    box-shadow: 0 1px 2px rgba(20, 43, 56, .06) !important;
    transform: none !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card::before {
    display: none !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card:hover,
html.gw-enabled body.gw-module-admin .admin-command-card:focus-visible {
    border-color: #6f8fa2 !important;
    border-left-color: #1f5b7a !important;
    background: #f3f7f9 !important;
    box-shadow: 0 4px 12px rgba(20, 43, 56, .09) !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card :where(div, strong) {
    color: #172b38 !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card span {
    color: #5b6b76 !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card b {
    border: 1px solid #b7c6cf !important;
    background: #e8eff3 !important;
    color: #1f5b7a !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-admin .admin-command-card.danger { border-left-color: #a6373f !important; }
html.gw-enabled body.gw-module-admin .admin-command-card.warning { border-left-color: #94600f !important; }
html.gw-enabled body.gw-module-admin .admin-command-card.ok { border-left-color: #2f6f4e !important; }
html.gw-enabled body.gw-module-admin .admin-command-card.danger b { border-color: #dfb7bb !important; background: #f7e9ea !important; color: #8e2d34 !important; }
html.gw-enabled body.gw-module-admin .admin-command-card.warning b { border-color: #e0c490 !important; background: #fbf2e2 !important; color: #7c500c !important; }
html.gw-enabled body.gw-module-admin .admin-command-card.ok b { border-color: #acd0bd !important; background: #e7f2ec !important; color: #24583f !important; }

html.gw-enabled body.gw-module-admin .notification-item {
    border: 1px solid #cbd5dc !important;
    border-left: 4px solid #2f6f95 !important;
    border-radius: 4px !important;
    background: #f7f9fa !important;
    color: #172b38 !important;
}

html.gw-enabled body.gw-module-admin .notification-item strong {
    color: #172b38 !important;
}

html.gw-enabled body.gw-module-admin .notification-item small {
    color: #5b6b76 !important;
}

html.gw-enabled body.gw-module-admin .notification-item.ok { border-left-color: #2f6f4e !important; background: #edf5f0 !important; }
html.gw-enabled body.gw-module-admin .notification-item.warn { border-left-color: #94600f !important; background: #fbf4e8 !important; }
html.gw-enabled body.gw-module-admin .notification-item.danger { border-left-color: #a6373f !important; background: #f8ecee !important; }
html.gw-enabled body.gw-module-admin .notification-item.info { border-left-color: #2f6f95 !important; background: #edf3f7 !important; }

html.gw-enabled body.gw-module-admin .report-metric {
    border: 1px solid #cbd5dc !important;
    border-top: 3px solid #2f6f95 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #172b38 !important;
}

html.gw-enabled body.gw-module-admin .report-metric span {
    color: #5b6b76 !important;
}

html.gw-enabled body.gw-module-admin .report-metric strong {
    color: #172b38 !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-module-admin .subscription-alert {
    border: 1px solid #cbd5dc !important;
    border-left: 4px solid #2f6f95 !important;
    border-radius: 4px !important;
    background: #f3f6f8 !important;
    color: #172b38 !important;
}

html.gw-enabled body.gw-module-admin .subscription-alert.ok { border-left-color: #2f6f4e !important; background: #edf5f0 !important; color: #24583f !important; }
html.gw-enabled body.gw-module-admin .subscription-alert.warn { border-left-color: #94600f !important; background: #fbf4e8 !important; color: #754b0b !important; }
html.gw-enabled body.gw-module-admin .subscription-alert.danger { border-left-color: #a6373f !important; background: #f8ecee !important; color: #872b32 !important; }

html.gw-enabled body.gw-module-admin :where(.admin-empty, .empty-state) {
    border: 1px dashed #aebbc4 !important;
    background: #f5f7f9 !important;
    color: #5b6b76 !important;
}

html.gw-enabled body.gw-module-admin :where(.admin-row, .user-admin-row, .admin-message-row, .shift-report-row) {
    border-color: #d3dce1 !important;
    background: #fff !important;
    color: #172b38 !important;
}

html.gw-enabled body.gw-module-admin :where(.admin-name, .admin-row strong, .user-admin-row strong) {
    color: #172b38 !important;
}

html.gw-enabled body.gw-application:not(.login-page):not(.logout-page):not(.legal-page) {
    display: block !important;
}

html.gw-enabled body.gw-module-admin .notification-list:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr) !important;
}

html.gw-enabled body.gw-module-admin .notification-list:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Comfortable enterprise scale for high-resolution and ultra-wide screens. */
@media (min-width: 1900px) and (min-height: 900px) {
    html.gw-enabled body.gw-application {
        font-size: 14px;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        gap: 14px !important;
        padding: 18px 20px 24px !important;
    }

    html.gw-enabled body.gw-application .gw-page-header {
        min-height: 104px !important;
        padding: 16px 18px !important;
    }

    html.gw-enabled body.gw-application .gw-page-title-row h1 {
        font-size: 30px !important;
    }

    html.gw-enabled body.gw-application .gw-page-intro > p {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-application .gw-page-options {
        min-height: 56px;
    }

    html.gw-enabled body.gw-application .gw-page-options-title {
        flex-basis: 150px;
        min-width: 150px;
        padding-inline: 15px;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
        min-width: 142px;
        min-height: 55px;
        padding-inline: 16px;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option > strong {
        font-size: 12px;
    }

    html.gw-enabled body.gw-module-admin .admin-command-strip {
        gap: 12px !important;
        padding: 12px !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card {
        min-height: 76px !important;
        padding: 12px 13px 12px 15px !important;
        font-family: var(--gw-font) !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card strong {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card span {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card b {
        min-width: 38px;
        min-height: 32px;
        font-size: 13px;
    }

    html.gw-enabled body.gw-module-admin :where(.admin-panel, .onboarding-panel) {
        padding: 16px !important;
    }

    html.gw-enabled body.gw-module-admin :where(.admin-panel h2, .report-center-head h2) {
        font-size: 18px !important;
    }

    html.gw-enabled body.gw-module-admin .admin-meta {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    html.gw-enabled body.gw-module-admin .notification-item {
        min-height: 76px;
        padding: 14px 16px !important;
    }

    html.gw-enabled body.gw-module-admin .notification-item strong {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-module-admin .notification-item small {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    html.gw-enabled body.gw-module-admin :where(.overlord-card, .report-metric) {
        min-height: 92px !important;
        padding: 16px !important;
    }

    html.gw-enabled body.gw-module-admin :where(.overlord-card span, .report-metric span) {
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-module-admin :where(.overlord-card strong, .report-metric strong) {
        font-size: 20px !important;
    }
}

/* --------------------------------------------------------------------------
   Collapsible page header v66
   The module identity remains available while the operational workspace gains
   the vertical space previously occupied by the full introduction block.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-page-header {
    position: relative !important;
    transition:
        min-height .16s ease,
        padding .16s ease,
        background-color .16s ease,
        border-color .16s ease !important;
}

html.gw-enabled body.gw-application .gw-page-intro {
    padding-right: 44px;
}

html.gw-enabled body.gw-application .gw-page-intro-toggle {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #9fb3be !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #1d526f !important;
    box-shadow: 0 1px 3px rgba(18, 39, 50, .08) !important;
    cursor: pointer;
}

html.gw-enabled body.gw-application .gw-page-intro-toggle:hover,
html.gw-enabled body.gw-application .gw-page-intro-toggle:focus-visible {
    border-color: #2d789e !important;
    background: #eaf3f7 !important;
    color: #123f58 !important;
}

html.gw-enabled body.gw-application .gw-page-intro-toggle-icon {
    color: inherit !important;
    font: 900 18px/1 var(--gw-mono) !important;
    transform: translateY(-1px);
}

html.gw-enabled body.gw-application .gw-page-intro-toggle-label {
    display: none;
    color: inherit !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-page-intro-summary {
    display: none;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

html.gw-enabled body.gw-application .gw-page-intro-summary > span {
    display: inline-grid;
    min-height: 22px;
    place-items: center;
    padding: 3px 7px;
    border-radius: 3px;
    background: var(--gw-accent) !important;
    color: #fff !important;
    font: 800 9px/1 var(--gw-mono) !important;
    letter-spacing: .05em;
}

html.gw-enabled body.gw-application .gw-page-intro-summary > strong {
    overflow: hidden;
    min-width: 0;
    color: #173f57 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-page-intro-summary > small {
    color: #6b7d87 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 6px 8px 6px 10px !important;
    border-left-width: 3px !important;
    background: #f8fafb !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed
    > :not(.gw-page-intro-summary):not(.gw-page-intro-toggle) {
    display: none !important;
}

html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed .gw-page-intro-summary {
    display: flex !important;
    flex: 1 1 auto;
}

html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed .gw-page-intro-toggle {
    position: static !important;
    flex: 0 0 auto;
    width: auto !important;
    min-width: 116px !important;
    height: 26px !important;
    min-height: 26px !important;
    margin-left: auto !important;
    padding: 0 9px !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed .gw-page-intro-toggle-label {
    display: inline !important;
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-page-intro-summary > small,
    html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed .gw-page-intro-toggle-label {
        display: none !important;
    }

    html.gw-enabled body.gw-application .gw-page-header.gw-page-header-collapsed .gw-page-intro-toggle {
        width: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gw-enabled body.gw-application .gw-page-header {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Collapsible context inspector v69
   Desktop keeps a 42px control rail; main workspace receives the released
   width. Laptop and mobile continue to use the off-canvas inspector.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-stage {
    transition: grid-template-columns .18s ease;
}

html.gw-enabled body.gw-application .gw-inspector {
    transition:
        width .18s ease,
        min-width .18s ease,
        max-width .18s ease,
        padding .18s ease !important;
}

html.gw-enabled body.gw-application .gw-inspector > .gavio-context-toggle,
html.gw-enabled body.gw-application .gw-inspector .context-toggle {
    display: none !important;
}

html.gw-enabled body.gw-application .gw-inspector > .gw-inspector-collapse {
    position: absolute !important;
    top: 13px !important;
    right: 12px !important;
    z-index: 20 !important;
    display: inline-grid !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, .09) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font: 900 18px/1 var(--gw-font) !important;
    cursor: pointer;
}

html.gw-enabled body.gw-application .gw-inspector > .gw-inspector-collapse:hover,
html.gw-enabled body.gw-application .gw-inspector > .gw-inspector-collapse:focus-visible {
    border-color: rgba(255, 255, 255, .78) !important;
    background: rgba(255, 255, 255, .18) !important;
}

@media (min-width: 1181px) {
    html.gw-enabled body.gw-application.gw-context-collapsed .gw-stage:has(> .gw-inspector) {
        grid-template-columns: minmax(0, 1fr) 42px !important;
    }

    html.gw-enabled body.gw-application.gw-context-collapsed .gw-stage > .gw-inspector {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-left-color: #0c2f42 !important;
        background: #123a52 !important;
    }

    html.gw-enabled body.gw-application.gw-context-collapsed .gw-stage > .gw-inspector
        > :not(.gw-inspector-collapse) {
        display: none !important;
    }

    html.gw-enabled body.gw-application.gw-context-collapsed .gw-inspector > .gw-inspector-collapse {
        top: 12px !important;
        right: 5px !important;
        border-color: rgba(255, 255, 255, .5) !important;
        background: rgba(255, 255, 255, .12) !important;
    }

    html.gw-enabled body.gw-application.gw-context-collapsed .gavio-ai-root {
        right: 56px !important;
    }
}

@media (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-inspector > .gw-inspector-collapse {
        top: 13px !important;
        right: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gw-enabled body.gw-application .gw-stage,
    html.gw-enabled body.gw-application .gw-inspector {
        transition: none !important;
    }
}

/* Visible context edge v69: the closed inspector always remains discoverable. */
html.gw-enabled body.gw-application .gw-context-edge-toggle {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    z-index: 190 !important;
    display: grid !important;
    grid-template-rows: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 94px !important;
    min-height: 94px !important;
    margin: 0 !important;
    padding: 6px 4px !important;
    transform: translateY(-50%) !important;
    border: 1px solid #2f6079 !important;
    border-right: 0 !important;
    border-radius: 5px 0 0 5px !important;
    background: #123a52 !important;
    color: #fff !important;
    box-shadow: -5px 0 16px rgba(8, 30, 43, .24) !important;
    cursor: pointer !important;
    transition: right .18s ease, background .14s ease !important;
}

html.gw-enabled body.gw-application .gw-context-edge-toggle:hover,
html.gw-enabled body.gw-application .gw-context-edge-toggle:focus-visible {
    background: #1b5675 !important;
}

html.gw-enabled body.gw-application .gw-context-edge-toggle > span {
    font: 900 22px/1 var(--gw-font) !important;
}

html.gw-enabled body.gw-application .gw-context-edge-toggle > small {
    color: #d9ebf4 !important;
    font: 800 8px/1 var(--gw-font) !important;
    letter-spacing: .12em !important;
    writing-mode: vertical-rl !important;
    transform: rotate(180deg) !important;
}

@media (min-width: 1181px) {
    html.gw-enabled body.gw-application:not(.gw-context-collapsed) .gw-context-edge-toggle {
        right: var(--gw-inspector) !important;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-stage,
    html.gw-enabled body.gw-application .gw-stage:has(> .gw-inspector) {
        grid-template-columns: minmax(0, 1fr) 42px !important;
    }

    html.gw-enabled body.gw-application .gw-stage > .gw-inspector {
        position: relative !important;
        inset: auto !important;
        z-index: 1 !important;
        display: flex !important;
        grid-column: 2 !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        background: #123a52 !important;
    }

    html.gw-enabled body.gw-application:not(.gw-context-open) .gw-stage > .gw-inspector
        > :not(.gw-inspector-collapse) {
        display: none !important;
    }

    html.gw-enabled body.gw-application:not(.gw-context-open) .gw-inspector > .gw-inspector-collapse {
        top: 12px !important;
        right: 5px !important;
    }

    html.gw-enabled body.gw-application.gw-context-open .gw-stage > .gw-inspector,
    html.gw-enabled body.gw-application.gw-context-open div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
    html.gw-enabled body.gw-application.gw-context-open div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
        position: fixed !important;
        top: var(--gw-command) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 180 !important;
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        height: calc(100dvh - var(--gw-command)) !important;
        padding: 0 !important;
        overflow: auto !important;
        background: #fff !important;
        box-shadow: -12px 0 30px rgba(17, 31, 37, .18) !important;
    }

    html.gw-enabled body.gw-application.gw-context-open .gw-context-edge-toggle {
        right: var(--gw-inspector) !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application.gw-context-open .gw-context-edge-toggle {
        right: min(var(--gw-inspector), calc(100vw - 20px)) !important;
    }
}

/* Nachrichten: stable information hierarchy with actions on a dedicated row. */
html.gw-enabled body.gw-module-admin #adminMessagesPanel {
    grid-column: 1 / -1 !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-list {
    display: grid !important;
    gap: 10px !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-row {
    display: grid !important;
    grid-template-columns: minmax(150px, .55fr) minmax(240px, 1.45fr) minmax(110px, .38fr) !important;
    gap: 10px 14px !important;
    align-items: start !important;
    padding: 13px 14px !important;
    border: 1px solid #cbd5dc !important;
    border-left: 4px solid #2f6f95 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #172b38 !important;
    opacity: 1 !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-row.worker_to_supervisor {
    border-left-color: #94600f !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-row.supervisor_to_worker {
    border-left-color: #2f6f4e !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-direction {
    margin-bottom: 3px !important;
    color: #1f5b7a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .07em !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-text {
    margin-top: 5px !important;
    color: #2b404c !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-row .admin-name {
    color: #172b38 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-row .admin-meta {
    color: #64747e !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions-cell {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid #d9e0e4 !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(96px, 132px)) !important;
    gap: 8px !important;
    justify-content: end !important;
    align-items: center !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 7px 10px !important;
    border-radius: 4px !important;
    font-family: var(--gw-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions .btn-ai-approve {
    border: 1px solid #1f5b7a !important;
    background: #1f5b7a !important;
    color: #fff !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions .btn-sci {
    border: 1px solid #8fa5b2 !important;
    background: #fff !important;
    color: #1f5b7a !important;
}

html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions .btn-red {
    border: 1px solid #c98f94 !important;
    background: #fff !important;
    color: #932f37 !important;
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-module-admin #adminMessagesPanel .admin-message-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions-cell {
        grid-column: auto !important;
    }

    html.gw-enabled body.gw-module-admin #adminMessagesPanel .user-admin-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 1180px) {
    html.gw-enabled body.gw-application div.gw-stage > aside#gavioContextSidebar.gw-inspector {
        position: fixed !important;
        top: var(--gw-command) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
    }
}

/* Final integration corrections for legacy module styles. */
html.gw-enabled body.gw-application .gw-page-header > .gw-legacy-heading {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html.gw-enabled body.gw-application .gw-inspector .gavio-context-head {
    display: block !important;
    min-height: 54px !important;
}

html.gw-enabled body.gw-application .gw-inspector .gavio-context-head > * {
    width: auto !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-application .gw-inspector .gavio-context-title,
html.gw-enabled body.gw-application .gw-inspector .gavio-context-subtitle {
    width: auto !important;
    max-width: none !important;
}

html.gw-enabled body.gw-application .gw-inspector > .gavio-context-toggle {
    align-self: flex-start !important;
    flex: 0 0 34px !important;
}

html.gw-enabled body.gw-application .gw-inspector .employee-pool-sidebar {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 1px solid var(--gw-line) !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

html.gw-enabled body.gw-application .gw-inspector .employee-pool-search {
    padding: 8px !important;
    border-color: var(--gw-line) !important;
    background: #f7f9f9 !important;
}

html.gw-enabled body.gw-application .gw-page .report-metrics {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-application .gw-page .report-metric {
    width: auto !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-application .gav-shield-box {
    left: calc(var(--gw-rail) + 14px) !important;
    bottom: 14px !important;
    min-width: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #73aaa5 !important;
    border-radius: 4px !important;
    background: #123239 !important;
    color: #d9fffb !important;
    box-shadow: 0 6px 18px rgba(8, 27, 33, .18) !important;
    font-family: var(--gw-font) !important;
    font-size: 10px !important;
    text-shadow: none !important;
}

html.gw-enabled body .gavio-ai-launcher,
html.gw-enabled body .gavio-guide-launcher {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    font-size: 12px !important;
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gav-shield-box {
        left: 12px !important;
        bottom: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-rail,
    .gw-inspector,
    .gw-section-nav * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media print {
    html.gw-enabled body.gw-application {
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .gw-shell,
    .gw-workspace,
    .gw-stage {
        display: block !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .gw-rail,
    .gw-commandbar,
    .gw-inspector,
    .gw-section-nav {
        display: none !important;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        display: block !important;
        height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .gw-page > * {
        break-inside: avoid;
        margin-bottom: 10px !important;
    }
}

/* --------------------------------------------------------------------------
   GAVIO Executive Workspace 2.0
   A calm, information-dense DACH operations system layered over every module.
   -------------------------------------------------------------------------- */

:root {
    --gw-command: 64px;
    --gw-bg: #edf1f3;
    --gw-surface: #ffffff;
    --gw-subtle: #f5f7f8;
    --gw-subtle-strong: #e8edef;
    --gw-line: #d4dce0;
    --gw-line-strong: #aebbc1;
    --gw-ink: #102129;
    --gw-muted: #58676e;
    --gw-faint: #7d8b91;
    --gw-rail-bg: #10242b;
    --gw-rail-hover: #1a333b;
    --gw-accent: #087c73;
    --gw-accent-strong: #05655f;
    --gw-accent-soft: #e5f3f1;
    --gw-success: #26724e;
    --gw-warning: #9d650e;
    --gw-danger: #ad3438;
    --gw-info: #246f91;
    --gw-shadow-xs: 0 1px 2px rgba(12, 31, 39, .05);
    --gw-shadow-sm: 0 4px 14px rgba(12, 31, 39, .07);
    --gw-shadow-md: 0 14px 34px rgba(12, 31, 39, .14);
    --gw-radius: 5px;
}

html.gw-enabled body.gw-application {
    letter-spacing: normal;
    text-rendering: optimizeLegibility;
}

/* Shell and navigation */
html.gw-enabled body.gw-application .gw-rail {
    background:
        linear-gradient(180deg, rgba(31, 71, 79, .22), transparent 190px),
        var(--gw-rail-bg) !important;
    border-right-color: #07171c !important;
}

.gw-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 4px;
    background: linear-gradient(145deg, #0e8c82, #075d59);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
    font-size: 18px;
}

.gw-rail-nav {
    gap: 5px;
    padding-top: 16px;
}

html.gw-enabled body.gw-application .gw-rail-trigger {
    width: 59px !important;
    height: 61px !important;
    min-height: 61px !important;
    border-radius: 4px !important;
    color: #b6c4c9 !important;
}

.gw-rail-icon {
    width: 29px;
    height: 27px;
    border-color: #7d9198;
    border-radius: 3px;
    background: rgba(255, 255, 255, .025);
    font-size: 9px;
}

.gw-rail-label {
    max-width: 58px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .01em;
}

.gw-rail-group.is-active .gw-rail-trigger {
    border-color: rgba(90, 205, 194, .22) !important;
    background: #1c3940 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

.gw-rail-group.is-active .gw-rail-trigger::before {
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #55c6bb;
}

.gw-rail-group.is-active .gw-rail-icon {
    border-color: #62cbbf;
    background: rgba(83, 197, 186, .09);
    color: #dffffb;
}

.gw-rail-flyout {
    left: 67px;
    width: 268px;
    padding: 9px;
    border-color: #27434b;
    border-radius: 6px;
    background: #152b32;
    box-shadow: 0 18px 44px rgba(5, 17, 22, .3);
}

.gw-rail-link {
    min-height: 38px;
    border-radius: 3px;
    font-size: 12px;
}

/* Command bar */
.gw-commandbar {
    grid-template-columns: minmax(245px, auto) minmax(0, 1fr) auto auto;
    height: var(--gw-command);
    padding: 0 15px 0 17px;
    border-bottom-color: var(--gw-line);
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 2px 8px rgba(10, 31, 40, .055);
}

.gw-command-context {
    gap: 2px 10px;
}

.gw-command-area {
    color: var(--gw-accent);
    font-size: 9px;
    letter-spacing: .12em;
}

.gw-command-context strong {
    font-size: 14px;
    letter-spacing: -.01em;
}

.gw-command-code {
    padding: 4px 7px;
    border-radius: 3px;
    background: #f1f4f5;
    color: #536168;
}

html.gw-enabled body.gw-application .gw-command-actions .ui-controls {
    gap: 7px !important;
}

.gw-command-actions #lang-switcher:has(+ .gavio-language-menu),
.gw-command-actions #lang-switcher:has(~ .gavio-language-menu) {
    display: none !important;
}

.gw-command-actions #userBadge,
.gw-command-actions .user-badge {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 132px;
    min-height: 34px !important;
    padding: 5px 9px !important;
    border-color: #d9e0e3 !important;
    border-radius: 4px !important;
    background: #f8f9fa !important;
}

.gw-command-actions .user-badge-name {
    overflow: hidden;
    color: var(--gw-ink) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    text-shadow: none !important;
    white-space: nowrap;
}

.gw-command-actions .user-badge-role {
    color: var(--gw-accent) !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .08em;
    text-shadow: none !important;
}

.gw-command-actions .theme-trigger {
    display: grid !important;
    grid-template-columns: 22px auto;
    align-items: center;
    gap: 7px;
    min-width: 148px !important;
    min-height: 34px !important;
    padding: 5px 9px !important;
    border-color: #ccd5d9 !important;
    border-radius: 4px !important;
}

.gw-command-actions .theme-trigger::before {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
}

.gw-command-actions :where(select, button),
.gw-context-toggle {
    min-height: 34px !important;
    border-color: #cbd5d9 !important;
    border-radius: 4px !important;
    background: #fff !important;
}

.gw-context-toggle {
    min-width: 40px;
    color: #405158 !important;
}

.gw-command-state {
    min-height: 34px;
    margin-left: 10px;
    padding-left: 12px;
}

/* Center workspace */
html.gw-enabled body.gw-application .gw-stage > main.gw-page {
    gap: 13px !important;
    padding: 18px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 180px),
        var(--gw-bg) !important;
}

html.gw-enabled body.gw-application .gw-page-header {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 12px 18px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 88px !important;
    max-height: none !important;
    padding: 2px 2px 4px !important;
    overflow: visible !important;
}

.gw-page-header > .gw-page-intro {
    grid-column: 1;
    align-self: end;
    min-width: 0;
}

.gw-page-header > .gavio-readiness-slot,
.gw-page-header > .status-badge {
    position: static !important;
    inset: auto !important;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 2px !important;
    transform: none !important;
}

.gw-page-header > .header-cortex-strip {
    grid-column: 1 / -1;
}

.gw-eyebrow {
    gap: 9px;
    margin-bottom: 5px;
    color: #53646b;
    font-size: 9px;
    letter-spacing: .1em;
}

.gw-eyebrow span {
    padding: 4px 6px;
    border-radius: 3px;
    background: var(--gw-accent);
}

html.gw-enabled body.gw-application .gw-page-title-row h1 {
    font-size: clamp(23px, 2vw, 30px) !important;
    letter-spacing: -.035em !important;
}

.gw-mandate {
    padding: 4px 7px;
    border-radius: 3px;
    color: #146a64;
    font-size: 8px;
    letter-spacing: .07em;
}

.gw-page-intro p {
    max-width: 820px;
    margin-top: 6px;
    color: #5b6970;
    font-size: 12px;
    line-height: 1.4;
}

.gavio-readiness-slot {
    min-height: 0 !important;
}

html.gw-enabled .gavio-readiness-chip {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 9px !important;
    border: 1px solid #b9d8d4 !important;
    border-radius: 4px !important;
    background: #edf7f5 !important;
    color: #1a655f !important;
    box-shadow: none !important;
}

html.gw-enabled .gavio-readiness-chip :where(span, strong) {
    color: inherit !important;
    font-family: var(--gw-font) !important;
    text-shadow: none !important;
}

html.gw-enabled .gavio-readiness-label {
    font-size: 8px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html.gw-enabled .gavio-readiness-score {
    font-size: 11px !important;
}

html.gw-enabled .gavio-readiness-status {
    display: none !important;
}

.gw-section-nav {
    position: sticky;
    top: -1px;
    min-height: 40px;
    padding: 0 3px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .975);
    box-shadow: var(--gw-shadow-xs);
}

.gw-section-nav a {
    min-height: 39px;
    padding: 0 15px;
    border-bottom-width: 3px;
    color: #526169 !important;
    font-size: 11px;
}

/* Work surfaces */
html.gw-enabled body.gw-application .gw-page :where(
    .panel, .gw-work-card, .admin-panel, .employee-panel, .worker-section,
    .lager-panel, .saldo-panel, .year-panel, .matrix-section, .project-board,
    .payroll-guide, .gav-guide, .year-guide, .compliance-hero, .coverage-strip,
    .planner-view-strip, .action-bar, .saldo-toolbar, .year-toolbar, .matrix-toolbar
) {
    border-color: var(--gw-line) !important;
    border-radius: var(--gw-radius) !important;
    background: var(--gw-surface) !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

html.gw-enabled body.gw-application .gw-page :where(
    .panel-head, .report-center-head, .employee-panel-head, .worker-section-head,
    .year-timeline-head, .matrix-section-head, .payroll-guide-head, .gav-guide-head,
    .year-guide-head, .employee-pool-head, .project-toolbar
) {
    min-height: 46px !important;
    padding: 10px 13px !important;
    border-bottom-color: #dce2e5 !important;
    background: #f7f8f9 !important;
}

html.gw-enabled body.gw-application .gw-page h2 {
    font-size: 16px !important;
    letter-spacing: -.02em !important;
}

.metric-card,
.fin-card,
.saldo-card,
.lager-card,
.year-kpi,
.matrix-kpi,
.gav-summary-card,
.overlord-card,
.worker-card {
    border-color: var(--gw-line) !important;
    border-top-width: 3px !important;
    border-radius: var(--gw-radius) !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

html.gw-enabled body.gw-application .gw-page :where(
    .metric-card, .fin-card, .saldo-card, .lager-card, .year-kpi,
    .matrix-kpi, .gav-summary-card, .overlord-card, .worker-card
) {
    padding: 13px !important;
}

.header-cortex-strip {
    border-color: var(--gw-line) !important;
    border-left-color: var(--gw-accent) !important;
    border-radius: var(--gw-radius) !important;
    background: #fff !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

.header-cortex-main,
.header-cortex-metric {
    padding: 11px 13px !important;
    border-right-color: #dce2e5 !important;
}

/* Tables and forms */
html.gw-enabled body.gw-application .gw-page :where(th, .op-header, .saldo-header, .lager-row.header) {
    min-height: 38px;
    padding: 9px 11px !important;
    border-bottom-color: #bfc9ce !important;
    background: #e7ecee !important;
    color: #3d4c53 !important;
    font-size: 9px !important;
    letter-spacing: .055em !important;
}

html.gw-enabled body.gw-application .gw-page td {
    height: 42px;
    padding: 9px 11px !important;
}

html.gw-enabled body.gw-application .gw-page :where(.op-red, .saldo-row, .lager-row) {
    min-height: 44px;
}

html.gw-enabled body.gw-application .gw-page :where(input, select, textarea),
html.gw-enabled .modal-box :where(input, select, textarea) {
    min-height: 36px !important;
    border-color: #aebbc1 !important;
    border-radius: 4px !important;
    background: #fff !important;
}

html.gw-enabled body.gw-application .gw-page :where(button, .btn, [class*="btn-"]) {
    min-height: 34px;
    border-radius: 4px !important;
    letter-spacing: .01em;
}

html.gw-enabled body.gw-application .gw-page :where(.btn-primary, .primary, .action-primary) {
    background: var(--gw-accent) !important;
}

/* Context inspector */
html.gw-enabled body.gw-application .gw-inspector {
    gap: 12px !important;
    padding: 14px 12px !important;
    border-left-color: #cbd5d9 !important;
    background: #f5f7f8 !important;
    scrollbar-color: #a8b5ba transparent;
}

html.gw-enabled .gw-inspector .gavio-context-head {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 0 1px 12px !important;
    border-bottom: 1px solid var(--gw-line) !important;
    background: transparent !important;
}

html.gw-enabled .gw-inspector .gavio-context-toggle {
    position: static !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid #b9c6cb !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: var(--gw-accent) !important;
    box-shadow: none !important;
}

html.gw-enabled .gw-inspector .gavio-context-title {
    color: var(--gw-ink) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    letter-spacing: -.015em;
}

html.gw-enabled .gw-inspector .gavio-context-subtitle {
    color: #68767d !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}

html.gw-enabled .gw-inspector .gavio-context-section {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--gw-line) !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

html.gw-enabled .gw-inspector .gavio-context-section-title {
    margin: 0 0 3px !important;
    color: #4a5a61 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
}

html.gw-enabled .gw-inspector .gavio-context-link {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #dbe2e5 !important;
    border-left: 3px solid #8ea3ab !important;
    border-radius: 4px !important;
    background: #f8fafb !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

html.gw-enabled .gw-inspector .gavio-context-link:hover {
    border-color: #93bdb8 !important;
    border-left-color: var(--gw-accent) !important;
    background: #eef7f6 !important;
    transform: none !important;
}

html.gw-enabled .gw-inspector .gavio-context-link.danger {
    border-left-color: var(--gw-danger) !important;
}

html.gw-enabled .gw-inspector .gavio-context-link.warning {
    border-left-color: var(--gw-warning) !important;
}

html.gw-enabled .gw-inspector .gavio-context-link.ok {
    border-left-color: var(--gw-success) !important;
}

html.gw-enabled .gw-inspector .gavio-context-link-icon {
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid #a9bdc3 !important;
    border-radius: 4px !important;
    background: #edf2f4 !important;
    color: #40565e !important;
    font: 700 8px/1 var(--gw-mono) !important;
}

html.gw-enabled .gw-inspector .gavio-context-link-text {
    overflow: hidden;
    color: var(--gw-ink) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Page-family layouts */
body.gw-module-admin .admin-command-strip {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
}

body.gw-module-admin :where(.admin-ops-grid, .admin-work-grid) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body.gw-module-admin .admin-panel {
    min-width: 0 !important;
}

body.gw-module-gav-compliance .compliance-hero {
    border-left: 4px solid var(--gw-accent) !important;
    padding: 14px 16px !important;
}

body.gw-module-gav-compliance .matrix-kpis {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.gw-module-planer .planner-view-strip {
    display: grid !important;
    grid-template-columns: auto minmax(240px, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px 12px !important;
}

body.gw-module-planer .planner-view-tab {
    min-height: 34px !important;
    border-color: #b8c5ca !important;
    border-radius: 4px !important;
    background: #f2f5f6 !important;
    color: #4b5b62 !important;
    box-shadow: none !important;
}

body.gw-module-planer .planner-view-tab.active {
    border-color: var(--gw-accent) !important;
    background: var(--gw-accent) !important;
    color: #fff !important;
}

body.gw-module-planer .planner-view-filters {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
}

body.gw-module-planer .planner-view-filter {
    min-width: 0 !important;
    width: min(260px, 100%) !important;
    max-width: 260px !important;
}

body.gw-module-planer .planner-view-filter select {
    width: 100% !important;
    min-height: 34px !important;
    border: 1px solid #afbec5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    font-weight: 650 !important;
}

body.gw-module-planer .planner-scope-summary {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-width: 0 !important;
    padding-top: 9px !important;
    border-top: 1px solid var(--gw-line) !important;
}

body.gw-module-planer .planner-scope-copy {
    display: grid !important;
    grid-template-columns: auto auto minmax(180px, 1fr) !important;
    align-items: baseline !important;
    gap: 7px !important;
    min-width: 0 !important;
    color: var(--gw-ink) !important;
}

body.gw-module-planer .planner-scope-kicker {
    color: #60727a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-scope-copy strong {
    color: #143c4b !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-scope-copy > span:last-child {
    overflow: hidden !important;
    color: #5b6d75 !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-scope-metrics {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
}

body.gw-module-planer .planner-scope-metric {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 26px !important;
    padding: 4px 7px !important;
    border: 1px solid #c4d0d5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #52656d !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-scope-metric b {
    color: #163b49 !important;
    font-size: 12px !important;
}

body.gw-module-planer .planner-scope-metric.compliant {
    border-left: 3px solid #2c8b67 !important;
}

body.gw-module-planer .planner-scope-metric.warning {
    border-left: 3px solid #c78312 !important;
}

body.gw-module-planer .planner-scope-metric.violation {
    border-left: 3px solid #bd3f46 !important;
}

body.gw-module-planer .planner-calendar-shell {
    position: relative !important;
    min-width: 0 !important;
}

body.gw-module-planer .planner-filter-empty-state {
    position: absolute !important;
    top: 84px !important;
    left: 50% !important;
    z-index: 18 !important;
    display: grid !important;
    justify-items: start !important;
    width: min(420px, calc(100% - 32px)) !important;
    gap: 5px !important;
    padding: 15px 17px !important;
    transform: translateX(-50%) !important;
    border: 1px solid #aebfc6 !important;
    border-left: 4px solid var(--gw-accent) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 10px 26px rgba(18, 47, 61, .16) !important;
    color: var(--gw-ink) !important;
}

body.gw-module-planer .planner-filter-empty-state[hidden] {
    display: none !important;
}

body.gw-module-planer .planner-filter-empty-kicker {
    color: var(--gw-accent) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-filter-empty-state strong {
    color: #143c4b !important;
    font-size: 15px !important;
}

body.gw-module-planer .planner-filter-empty-state p {
    margin: 0 !important;
    color: #52656d !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

body.gw-module-planer .planner-filter-empty-state button {
    min-height: 30px !important;
    margin-top: 4px !important;
    padding: 5px 10px !important;
    border: 1px solid var(--gw-accent) !important;
    border-radius: 3px !important;
    background: var(--gw-accent) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body.gw-module-planer .planner-coverage-panel {
    grid-column: 1 / -1 !important;
    display: grid !important;
    gap: 9px !important;
    min-width: 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--gw-line) !important;
}

body.gw-module-planer .planner-coverage-panel[hidden],
body.gw-module-planer .planner-coverage-form[hidden] {
    display: none !important;
}

body.gw-module-planer .planner-coverage-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

body.gw-module-planer .planner-coverage-head > div:first-child {
    display: grid !important;
    gap: 1px !important;
    min-width: 0 !important;
}

body.gw-module-planer .planner-coverage-kicker {
    color: var(--gw-accent) !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-coverage-head strong {
    color: #143c4b !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

body.gw-module-planer .planner-coverage-head p {
    margin: 0 !important;
    color: #60727a !important;
    font-size: 10px !important;
}

body.gw-module-planer .planner-coverage-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
}

body.gw-module-planer .planner-coverage-freshness {
    color: #6a7b82 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-coverage-actions button,
body.gw-module-planer .planner-coverage-message button,
body.gw-module-planer .planner-coverage-form-actions button {
    min-height: 29px !important;
    padding: 5px 9px !important;
    border: 1px solid #9eb2bb !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #245367 !important;
    cursor: pointer !important;
    font: 800 10px/1 var(--gw-font) !important;
}

body.gw-module-planer .planner-coverage-actions button:hover,
body.gw-module-planer .planner-coverage-message button:hover,
body.gw-module-planer .planner-coverage-form-actions button:hover {
    border-color: var(--gw-accent) !important;
    background: #eaf5f4 !important;
    color: #075f59 !important;
}

body.gw-module-planer .planner-coverage-actions button.bulk-confirm {
    border-color: #49877f !important;
    background: #edf7f5 !important;
    color: #075f59 !important;
}

body.gw-module-planer .planner-coverage-actions button.bulk-lock {
    border-color: #274f63 !important;
    background: #274f63 !important;
    color: #fff !important;
}

body.gw-module-planer .planner-coverage-actions button:disabled {
    cursor: wait !important;
    opacity: .58 !important;
}

body.gw-module-planer .planner-coverage-overview {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

body.gw-module-planer .planner-coverage-metric {
    display: grid !important;
    min-width: 0 !important;
    gap: 1px !important;
    padding: 7px 8px !important;
    border: 1px solid #c3d0d5 !important;
    border-left: 3px solid #718892 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

body.gw-module-planer .planner-coverage-metric.planned,
body.gw-module-planer .planner-coverage-metric.coverage {
    border-left-color: #267c8e !important;
}

body.gw-module-planer .planner-coverage-metric.gap {
    border-left-color: #c78312 !important;
}

body.gw-module-planer .planner-coverage-metric.gav {
    border-left-color: #bd3f46 !important;
}

body.gw-module-planer .planner-coverage-metric > span {
    overflow: hidden !important;
    color: #5f7179 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-coverage-metric > strong {
    color: #143c4b !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
}

body.gw-module-planer .planner-coverage-metric > small {
    overflow: hidden !important;
    color: #75868d !important;
    font-size: 8px !important;
    font-weight: 650 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-coverage-progress {
    position: relative !important;
    overflow: hidden !important;
    height: 5px !important;
    border-radius: 2px !important;
    background: #dfe7ea !important;
}

body.gw-module-planer .planner-coverage-progress > span {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 0;
    border-radius: inherit !important;
    background: #2c8b67 !important;
    transition: width .18s ease !important;
}

body.gw-module-planer .planner-coverage-progress > span[data-state="uncovered"],
body.gw-module-planer .planner-coverage-progress > span[data-state="warning"] {
    background: #c78312 !important;
}

body.gw-module-planer .planner-coverage-progress > span[data-state="violation"] {
    background: #bd3f46 !important;
}

body.gw-module-planer .planner-coverage-body {
    min-width: 0 !important;
}

body.gw-module-planer .planner-coverage-list {
    display: grid !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    border: 1px solid #c7d2d7 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

body.gw-module-planer .planner-coverage-row {
    display: grid !important;
    grid-template-columns: minmax(92px, .8fr) minmax(180px, 1.7fr) repeat(5, minmax(72px, .65fr)) !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #e0e7ea !important;
    border-left: 3px solid #718892 !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    text-align: left !important;
}

body.gw-module-planer .planner-coverage-row.window {
    grid-template-columns: minmax(64px, .55fr) minmax(130px, 1.2fr) repeat(5, minmax(48px, .45fr)) minmax(102px, .8fr) !important;
}

body.gw-module-planer button.planner-coverage-row {
    width: 100% !important;
    cursor: pointer !important;
}

body.gw-module-planer button.planner-coverage-row:hover {
    background: #f1f7f7 !important;
}

body.gw-module-planer button.planner-coverage-row.window.is-actionable {
    box-shadow: inset 0 0 0 1px rgba(33, 95, 122, .08) !important;
}

body.gw-module-planer button.planner-coverage-row.window.is-actionable:focus-visible {
    outline: 2px solid #215f7a !important;
    outline-offset: -2px !important;
}

body.gw-module-planer .planner-coverage-row .planner-gap-action {
    width: max-content !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #174f68 !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-coverage-row:last-child {
    border-bottom: 0 !important;
}

body.gw-module-planer .planner-coverage-row.state-covered {
    border-left-color: #2c8b67 !important;
}

body.gw-module-planer .planner-coverage-row.state-warning,
body.gw-module-planer .planner-coverage-row.state-uncovered,
body.gw-module-planer .planner-coverage-row.state-overstaffed {
    border-left-color: #c78312 !important;
}

body.gw-module-planer .planner-coverage-row.state-violation {
    border-left-color: #bd3f46 !important;
}

body.gw-module-planer .planner-coverage-row.state-draft {
    border-left-color: #718892 !important;
    background: #f7f9fa !important;
}

body.gw-module-planer .planner-coverage-row > span {
    display: grid !important;
    min-width: 0 !important;
    gap: 1px !important;
}

body.gw-module-planer .planner-coverage-row :is(strong, b) {
    overflow: hidden !important;
    color: #173f4d !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-coverage-row small {
    overflow: hidden !important;
    color: #71838b !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-requirement-status {
    display: inline-flex !important;
    width: max-content !important;
    margin-top: 2px !important;
    padding: 2px 5px !important;
    border: 1px solid #aebdc3 !important;
    border-radius: 2px !important;
    background: #eef3f5 !important;
    color: #546a73 !important;
    font-size: 8px !important;
    font-style: normal !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-requirement-status.status-confirmed {
    border-color: #77a2ae !important;
    background: #e5f2f4 !important;
    color: #1f6170 !important;
}

body.gw-module-planer .planner-requirement-status.status-locked,
body.gw-module-planer .planner-requirement-status.status-planned {
    border-color: #74a990 !important;
    background: #e8f4ed !important;
    color: #246b4e !important;
}

body.gw-module-planer .planner-requirement-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
}

body.gw-module-planer .planner-requirement-actions:empty::before {
    content: "—" !important;
    color: #91a0a6 !important;
}

body.gw-module-planer .planner-requirement-actions button {
    min-width: 27px !important;
    min-height: 25px !important;
    padding: 4px 6px !important;
    border: 1px solid #aebdc3 !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #315765 !important;
    cursor: pointer !important;
    font: 800 8px/1 var(--gw-font) !important;
    white-space: nowrap !important;
}

body.gw-module-planer .planner-requirement-actions button.primary {
    border-color: #347687 !important;
    background: #e3f0f3 !important;
    color: #164f5e !important;
}

body.gw-module-planer .planner-requirement-actions button.danger {
    border-color: #c89ca0 !important;
    background: #fff5f5 !important;
    color: #9d333b !important;
}

body.gw-module-planer .planner-coverage-state {
    display: flex !important;
    align-items: center !important;
    grid-auto-flow: column !important;
    justify-content: start !important;
    gap: 5px !important;
    color: #4d626b !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-coverage-state i {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #718892 !important;
}

body.gw-module-planer .state-covered .planner-coverage-state i { background: #2c8b67 !important; }
body.gw-module-planer :is(.state-warning, .state-uncovered, .state-overstaffed) .planner-coverage-state i { background: #c78312 !important; }
body.gw-module-planer .state-violation .planner-coverage-state i { background: #bd3f46 !important; }

body.gw-module-planer .planner-coverage-message {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    border: 1px dashed #b9c7cd !important;
    border-radius: 3px !important;
    background: #f8fafb !important;
    color: #60727a !important;
    font-size: 10px !important;
    text-align: center !important;
}

body.gw-module-planer .planner-coverage-message strong {
    color: #173f4d !important;
}

body.gw-module-planer .planner-coverage-message.unconfigured {
    border-left: 3px solid #c78312 !important;
    background: #fff9ed !important;
}

body.gw-module-planer .planner-coverage-form {
    display: grid !important;
    gap: 9px !important;
    padding: 10px !important;
    border: 1px solid #aebfc6 !important;
    border-left: 3px solid var(--gw-accent) !important;
    border-radius: 3px !important;
    background: #f5f8f9 !important;
}

body.gw-module-planer .planner-coverage-form-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

body.gw-module-planer .planner-coverage-form-head > div {
    display: grid !important;
    gap: 2px !important;
}

body.gw-module-planer .planner-coverage-form-head strong {
    color: #143c4b !important;
    font-size: 12px !important;
}

body.gw-module-planer .planner-coverage-form-head p {
    margin: 0 !important;
    color: #64767e !important;
    font-size: 9px !important;
}

body.gw-module-planer .planner-coverage-form-head > button {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid #b6c4ca !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #51666f !important;
    cursor: pointer !important;
}

body.gw-module-planer .planner-coverage-form-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(90px, 1fr)) minmax(250px, 2fr) !important;
    gap: 7px !important;
}

body.gw-module-planer .planner-coverage-form-grid > :is(label, fieldset) {
    display: grid !important;
    min-width: 0 !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.gw-module-planer .planner-coverage-form-grid :is(label > span, legend) {
    color: #5f7179 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

body.gw-module-planer .planner-coverage-form-grid input:not([type="checkbox"]),
body.gw-module-planer .planner-coverage-form-grid select {
    width: 100% !important;
    min-height: 31px !important;
    padding: 5px 7px !important;
    border: 1px solid #afbec5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: var(--gw-ink) !important;
    font: 700 10px/1 var(--gw-font) !important;
}

body.gw-module-planer .planner-coverage-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(28px, 1fr)) !important;
    gap: 3px !important;
}

body.gw-module-planer .planner-coverage-weekdays label {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    min-height: 31px !important;
    cursor: pointer !important;
}

body.gw-module-planer .planner-coverage-weekdays input {
    position: absolute !important;
    opacity: 0 !important;
}

body.gw-module-planer .planner-coverage-weekdays span {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    border: 1px solid #b6c5cb !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #596d75 !important;
    font-size: 9px !important;
    font-weight: 850 !important;
}

body.gw-module-planer .planner-coverage-weekdays input:checked + span {
    border-color: var(--gw-accent) !important;
    background: #dff1ef !important;
    color: #075f59 !important;
}

body.gw-module-planer .planner-coverage-form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

body.gw-module-planer .planner-coverage-form-actions > span {
    margin-right: auto !important;
    color: #526870 !important;
    font-size: 9px !important;
    font-weight: 750 !important;
}

body.gw-module-planer .planner-coverage-form-actions button[type="submit"] {
    border-color: var(--gw-accent) !important;
    background: var(--gw-accent) !important;
    color: #fff !important;
}

body.gw-module-planer #calendar,
body.gw-module-dostupnost #calendar-dostupnost {
    overflow: hidden !important;
    border-radius: 5px !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

body.gw-module-planer .fc .fc-toolbar,
body.gw-module-dostupnost .fc .fc-toolbar {
    margin: 0 !important;
    padding: 11px 12px !important;
    border-bottom: 1px solid var(--gw-line) !important;
    background: #f7f9f9 !important;
    color: var(--gw-ink) !important;
}

body.gw-module-planer .fc .fc-toolbar-title,
body.gw-module-dostupnost .fc .fc-toolbar-title {
    color: var(--gw-ink) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    text-shadow: none !important;
}

/* Personnel register grid v43 */
body.gw-module-operativci .op-grid-toolbar {
    display: grid !important;
    grid-template-columns: minmax(230px, .8fr) minmax(430px, 1.7fr) auto !important;
    gap: 10px !important;
    align-items: end !important;
    margin: 0 0 8px !important;
    padding: 9px 10px !important;
    border: 1px solid #b8c5ca !important;
    border-radius: 5px !important;
    background: #f7f9fa !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

body.gw-module-operativci .op-grid-search {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
    color: #445a63 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

body.gw-module-operativci .op-grid-search input {
    width: 100% !important;
    height: 31px !important;
    padding: 5px 9px !important;
    border: 1px solid #aebdc3 !important;
    border-radius: 3px !important;
    outline: none !important;
    background: #fff !important;
    color: #172f3a !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

body.gw-module-operativci .op-grid-search input:focus {
    border-color: #08736c !important;
    box-shadow: 0 0 0 2px rgba(8, 115, 108, .12) !important;
}

body.gw-module-operativci .op-grid-views {
    display: flex !important;
    gap: 4px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
}

body.gw-module-operativci .op-grid-views button {
    min-height: 31px !important;
    padding: 5px 9px !important;
    border: 1px solid #b8c5ca !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #40545d !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

body.gw-module-operativci .op-grid-views button:hover,
body.gw-module-operativci .op-grid-views button.is-active {
    border-color: #0b5d6f !important;
    background: #0b5d6f !important;
    color: #fff !important;
}

body.gw-module-operativci .op-grid-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 54px !important;
    height: 31px !important;
    padding: 0 8px !important;
    border: 1px solid #9fb1b8 !important;
    border-radius: 3px !important;
    background: #e7ecef !important;
    color: #183b4a !important;
    font: 850 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

body.gw-module-operativci .op-lista {
    --op-grid-columns: minmax(200px, 1.7fr) minmax(90px, .7fr) minmax(130px, 1fr) minmax(135px, 1fr) minmax(110px, .85fr) minmax(80px, .65fr) minmax(220px, 1.55fr);
    position: relative !important;
    min-height: 130px;
    padding: 0 !important;
    overflow: auto !important;
    border: 1px solid #b8c5ca !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: var(--gw-shadow-xs) !important;
    scrollbar-gutter: stable;
}

body.gw-module-operativci .op-header,
body.gw-module-operativci .op-red {
    display: grid !important;
    grid-template-columns: var(--op-grid-columns) !important;
    gap: 0 !important;
    min-width: 965px !important;
    padding: 0 !important;
    align-items: stretch !important;
}

body.gw-module-operativci .op-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    min-height: 34px !important;
    border-bottom: 1px solid #aebdc3 !important;
    background: #e7ecef !important;
}

html.gw-enabled body.gw-application.gw-module-operativci .gw-page .op-lista > .op-header {
    padding: 0 !important;
}

body.gw-module-operativci .op-header > div {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 8px 11px !important;
    border-right: 1px solid #c8d2d6 !important;
    color: #354952 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.gw-module-operativci .op-red {
    min-height: 66px !important;
    border: 0 !important;
    border-bottom: 1px solid #d7dfe2 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: background-color .12s ease !important;
}

body.gw-module-operativci .op-red.is-archived {
    background: #f2f4f5 !important;
    opacity: .82 !important;
}

body.gw-module-operativci #teloTabele .op-red:nth-child(even) {
    background: #f7f9fa !important;
}

body.gw-module-operativci #teloTabele .op-red:hover {
    transform: none !important;
    background: #edf5f4 !important;
    box-shadow: inset 3px 0 0 var(--gw-accent) !important;
}

body.gw-module-operativci .op-header > div:last-child,
body.gw-module-operativci .op-red > .op-cell:last-child {
    border-right: 0 !important;
}

body.gw-module-operativci .op-red > .op-cell {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 9px 11px !important;
    border-right: 1px solid #e0e6e8 !important;
}

body.gw-module-operativci .op-cell-identity > div:first-child {
    overflow: hidden !important;
    color: #172f3a !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-operativci .employee-mini {
    overflow: hidden !important;
    margin-top: 3px !important;
    color: #60727a !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-operativci .employee-status {
    align-self: flex-start !important;
    margin-top: 5px !important;
    padding: 2px 6px !important;
    border-color: #9bc9c3 !important;
    border-radius: 3px !important;
    background: #edf7f5 !important;
    color: #08736c !important;
    font-size: 8px !important;
    box-shadow: none !important;
}

body.gw-module-operativci .op-cell-number .op-kategorija {
    padding: 0 !important;
    background: transparent !important;
    color: #183b4a !important;
    font: 800 11px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

body.gw-module-operativci .op-cell-contract .op-kategorija {
    align-self: flex-start !important;
    padding: 3px 7px !important;
    border: 1px solid #aebec5 !important;
    border-radius: 3px !important;
    background: #f2f5f6 !important;
    color: #304852 !important;
    font-size: 9px !important;
    box-shadow: none !important;
}

body.gw-module-operativci .op-cell-contract strong {
    margin-top: 5px !important;
    overflow: hidden !important;
    color: #263f49 !important;
    font-size: 9px !important;
    text-overflow: ellipsis !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
}

body.gw-module-operativci .op-cell-contract small,
body.gw-module-operativci .op-cell-dossier small {
    margin-top: 3px !important;
    overflow: hidden !important;
    color: #667980 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.gw-module-operativci .op-document-set {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

body.gw-module-operativci .op-document-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 22px !important;
    padding: 0 5px !important;
    border: 1px solid #b8c5ca !important;
    border-radius: 3px !important;
    background: #f1f4f5 !important;
    color: #60727a !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
}

body.gw-module-operativci .op-document-chip.ok {
    border-color: #8fc5b8 !important;
    background: #e9f5f1 !important;
    color: #0a6b5d !important;
}

body.gw-module-operativci .op-document-chip.warn {
    border-color: #d7b977 !important;
    background: #fff7e5 !important;
    color: #8a5a0a !important;
}

body.gw-module-operativci .op-document-chip.danger {
    border-color: #d79a9a !important;
    background: #fceeee !important;
    color: #a32828 !important;
}

body.gw-module-operativci .op-document-chip.missing {
    border-style: dashed !important;
    background: #f4f6f7 !important;
    color: #7b8a90 !important;
}

body.gw-module-operativci .op-dossier-meter {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
    color: #183b4a !important;
}

body.gw-module-operativci .op-dossier-meter strong {
    font-size: 13px !important;
    font-weight: 900 !important;
}

body.gw-module-operativci .op-dossier-meter span {
    color: #667980 !important;
    font: 800 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

body.gw-module-operativci .op-dossier-bar {
    width: 100% !important;
    height: 5px !important;
    margin-top: 5px !important;
    overflow: hidden !important;
    border-radius: 1px !important;
    background: #dce4e7 !important;
}

body.gw-module-operativci .op-dossier-bar i {
    display: block !important;
    height: 100% !important;
    background: #9aa9af !important;
}

body.gw-module-operativci .op-dossier-bar i.ok { background: #0b7a69 !important; }
body.gw-module-operativci .op-dossier-bar i.warn { background: #c18418 !important; }
body.gw-module-operativci .op-dossier-bar i.danger { background: #b63a3a !important; }

body.gw-module-operativci .op-grid-empty {
    min-width: 965px !important;
    padding: 28px 14px !important;
    color: #60727a !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    text-align: center !important;
}

body.gw-module-operativci .satnica-wrapper {
    width: auto !important;
    max-width: none !important;
}

body.gw-module-operativci .satnica-tekst {
    margin-bottom: 6px !important;
    color: #304852 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

body.gw-module-operativci .satnica-bar-bg {
    width: 100% !important;
    max-width: none !important;
    height: 4px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #dce4e7 !important;
}

body.gw-module-operativci .satnica-bar-fill {
    box-shadow: none !important;
}

body.gw-module-operativci .op-red > .row-actions {
    flex-direction: row !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
}

body.gw-module-operativci .row-actions .btn-small {
    min-height: 28px !important;
    padding: 5px 6px !important;
    border-radius: 3px !important;
    font-size: 9px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

body.gw-module-operativci .row-actions a.btn-small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

body.gw-module-operativci .operativci-context-preview {
    display: grid !important;
    gap: 8px !important;
    border-left: 3px solid #0b7a69 !important;
    background: #f6faf9 !important;
}

body.gw-module-operativci .operativci-context-person {
    display: grid !important;
    gap: 2px !important;
}

body.gw-module-operativci .operativci-context-person strong {
    color: #173843 !important;
    font-size: 11px !important;
}

body.gw-module-operativci .operativci-context-person small {
    color: #62757d !important;
    font-size: 8px !important;
    font-weight: 750 !important;
}

body.gw-module-operativci .operativci-context-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
}

body.gw-module-operativci .operativci-context-actions :where(button, a) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 5px !important;
    font-size: 8px !important;
    text-decoration: none !important;
}

@media (max-width: 1180px) {
    body.gw-module-operativci .op-grid-toolbar {
        grid-template-columns: minmax(210px, 1fr) auto !important;
    }

    body.gw-module-operativci .op-grid-views {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 940px) {
    body.gw-module-operativci .op-header {
        display: grid !important;
    }

    body.gw-module-operativci .op-grid,
    body.gw-module-operativci .op-red {
        grid-template-columns: var(--op-grid-columns) !important;
        gap: 0 !important;
    }
}

body.gw-module-izvestaji :where(.finance-dashboard, .gav-summary-grid),
body.gw-module-hr-saldo .saldo-dashboard,
body.gw-module-lagerbestand .lager-grid,
body.gw-module-jahressicht .year-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

body.gw-module-worker .worker-shell {
    display: grid !important;
    gap: 12px !important;
}

body.gw-module-worker .worker-hero {
    border: 1px solid #b8d5d1 !important;
    border-left: 4px solid var(--gw-accent) !important;
    border-radius: 5px !important;
    background: linear-gradient(120deg, #f6fbfa, #fff) !important;
    box-shadow: var(--gw-shadow-xs) !important;
}

/* Auxiliary tools never obscure live work */
html.gw-enabled .gavio-ai-live-ticker {
    display: none !important;
}

html.gw-enabled .gavio-ai-launcher,
html.gw-enabled .gavio-guide-launcher {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #7fb7b1 !important;
    border-radius: 50% !important;
    background: #0b6f69 !important;
    color: #fff !important;
    box-shadow: 0 7px 20px rgba(9, 46, 51, .2) !important;
    text-shadow: none !important;
}

html.gw-enabled .gavio-guide-launcher {
    right: 68px !important;
    bottom: 16px !important;
    font: 750 15px/1 var(--gw-font) !important;
}

html.gw-enabled .gavio-ai-launcher {
    right: 16px !important;
    bottom: 16px !important;
}

html.gw-enabled .gavio-guide-panel,
html.gw-enabled .gavio-ai-panel {
    border: 1px solid #243b43 !important;
    border-radius: 7px !important;
    box-shadow: var(--gw-shadow-md) !important;
}

/* Responsive refinements */
@media (max-width: 1280px) {
    .gw-command-actions #userBadge,
    .gw-command-actions .user-badge {
        min-width: 112px;
    }

    .gw-command-actions .theme-trigger {
        min-width: 126px !important;
    }

    body.gw-module-admin .admin-command-strip,
    body.gw-module-gav-compliance .matrix-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1180px) {
    .gw-page-header > .gavio-readiness-slot,
    .gw-page-header > .status-badge {
        display: none !important;
    }

    .gw-page-header {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 920px) {
    body.gw-module-admin :where(.admin-ops-grid, .admin-work-grid),
    body.gw-module-planer .planner-view-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.gw-module-izvestaji :where(.finance-dashboard, .gav-summary-grid),
    body.gw-module-hr-saldo .saldo-dashboard,
    body.gw-module-lagerbestand .lager-grid,
    body.gw-module-jahressicht .year-kpis,
    body.gw-module-gav-compliance .matrix-kpis,
    body.gw-module-admin .admin-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        gap: 10px !important;
        padding: 12px !important;
    }

    html.gw-enabled body.gw-application .gw-page-header {
        min-height: 82px !important;
        padding-top: 0 !important;
    }

    .gw-section-nav {
        top: -1px;
    }

    html.gw-enabled .gavio-guide-launcher {
        right: 62px !important;
        bottom: 10px !important;
    }

    html.gw-enabled .gavio-ai-launcher {
        right: 10px !important;
        bottom: 10px !important;
    }
}

@media (max-width: 560px) {
    body.gw-module-izvestaji :where(.finance-dashboard, .gav-summary-grid),
    body.gw-module-hr-saldo .saldo-dashboard,
    body.gw-module-lagerbestand .lager-grid,
    body.gw-module-jahressicht .year-kpis,
    body.gw-module-gav-compliance .matrix-kpis,
    body.gw-module-admin .admin-command-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Final cascade authority for embedded legacy page modules. */
html.gw-enabled body.gw-module-index .gw-inspector .context-note {
    border: 1px solid #e2c77d !important;
    background: #fff8e7 !important;
    color: #725210 !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(.fast-planning-field, .context-detail-field) {
    border: 1px solid var(--gw-line) !important;
    border-radius: 3px !important;
    background: #f4f7f7 !important;
    color: var(--gw-ink) !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(.context-card, .context-summary, .context-stack, .context-code) {
    color: var(--gw-ink) !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(.context-card, .context-detail, .fast-planning-console, .context-feed) {
    border: 1px solid var(--gw-line) !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-index .gw-inspector :where(button, .primary) {
    border-radius: 3px !important;
    box-shadow: none !important;
}

body.gw-module-planer .planner-view-tabs {
    display: flex !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

body.gw-module-planer .planner-view-tab {
    white-space: nowrap !important;
}

body.gw-module-planer .planner-view-filters {
    min-width: 0 !important;
}

body.gw-module-planer .fc-event,
body.gw-module-planer .fc-event * {
    color: #12343b !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

@media (max-width: 1420px) {
    body.gw-module-planer .planner-view-meta {
        display: none !important;
    }
}

@media (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-stage > .gw-inspector {
        position: fixed !important;
        top: var(--gw-command) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 160 !important;
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        height: calc(100dvh - var(--gw-command)) !important;
        transform: translateX(102%) !important;
        transition: transform .18s ease !important;
        box-shadow: -12px 0 30px rgba(17, 31, 37, .14) !important;
    }

    html.gw-enabled body.gw-context-open .gw-stage > .gw-inspector {
        transform: translateX(0) !important;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100vw !important;
    }

    html.gw-enabled body.gw-application .gw-rail {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        z-index: 170 !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        height: 100dvh !important;
        transform: translateX(-102%) !important;
        transition: transform .18s ease !important;
        box-shadow: 14px 0 36px rgba(8, 18, 23, .24) !important;
    }

    html.gw-enabled body.gw-nav-open .gw-rail {
        transform: translateX(0) !important;
    }

    html.gw-enabled body.gw-application .gw-workspace,
    html.gw-enabled body.gw-application .gw-stage {
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
    }

    html.gw-enabled body.gw-application .gw-commandbar {
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        padding-inline: 10px !important;
    }

    html.gw-enabled body.gw-application .gw-mobile-nav {
        display: flex !important;
    }

    html.gw-enabled body.gw-application .gw-command-actions {
        display: none !important;
    }

    html.gw-enabled body.gw-application .gw-stage > .gw-inspector {
        width: min(var(--gw-inspector), calc(100vw - 20px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* --------------------------------------------------------------------------
   Enterprise module header v14
   One dense, predictable command hierarchy for every operational page.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-stage > main.gw-page {
    scroll-padding-top: 72px;
}

html.gw-enabled body.gw-application .gw-page-header {
    min-height: 98px !important;
    padding: 13px 16px 14px !important;
    border: 1px solid #c8d2d7 !important;
    border-left: 4px solid var(--gw-accent) !important;
    border-radius: 6px !important;
    background:
        linear-gradient(90deg, var(--gw-accent-soft) 0, rgba(255, 255, 255, .98) 210px),
        #fff !important;
    box-shadow: 0 2px 8px rgba(18, 39, 50, .07) !important;
}

html.gw-enabled body.gw-application .gw-page-header > .gw-page-intro {
    align-self: center;
}

html.gw-enabled body.gw-application .gw-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 21px;
    margin-bottom: 5px;
}

html.gw-enabled body.gw-application .gw-eyebrow > span {
    display: inline-grid;
    min-height: 21px;
    place-items: center;
    padding: 3px 7px;
    border-radius: 3px;
    background: var(--gw-accent) !important;
    color: #fff !important;
    font-family: var(--gw-mono) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
}

html.gw-enabled body.gw-application .gw-eyebrow > strong {
    color: var(--gw-accent-strong) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-eyebrow > em {
    padding-left: 8px;
    border-left: 1px solid #b9c5ca;
    color: #75838a !important;
    font-size: 8px !important;
    font-style: normal;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-page-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-page-title-row h1 {
    min-width: 0;
    color: #172b38 !important;
    line-height: 1.05 !important;
}

html.gw-enabled body.gw-application .gw-page-statusline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

html.gw-enabled body.gw-application .gw-mandate,
html.gw-enabled body.gw-application .gw-section-count {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #b8d4cf;
    border-radius: 3px;
    background: #edf6f4;
    color: #235f58 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-section-count {
    border-color: #c7d1d6;
    background: #f4f6f7;
    color: #52616a !important;
    font-family: var(--gw-mono) !important;
}

html.gw-enabled body.gw-application .gw-page-intro > p {
    max-width: 900px;
    margin-top: 7px;
    color: #53646d !important;
    font-size: 12px !important;
    font-weight: 550;
    line-height: 1.35;
}

html.gw-enabled body.gw-application .gw-page-options {
    top: 0;
    z-index: 90;
    min-height: 54px;
    border-color: #c4cfd4;
    border-left-color: var(--gw-accent);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(18, 39, 50, .07);
    transition: box-shadow .16s ease, border-color .16s ease;
}

html.gw-enabled body.gw-application .gw-page-options.is-scrolled {
    border-color: #aebdc4;
    border-left-color: var(--gw-accent);
    box-shadow: 0 7px 18px rgba(18, 39, 50, .14);
}

html.gw-enabled body.gw-application .gw-page-options-title {
    position: sticky;
    left: 0;
    z-index: 3;
    align-content: center;
    flex: 0 0 118px;
    min-width: 118px;
    padding: 7px 11px;
    border-right-color: #c4cfd4;
    background: linear-gradient(145deg, #e8edef, #f4f6f7);
    box-shadow: 4px 0 8px rgba(20, 41, 51, .04);
}

html.gw-enabled body.gw-application .gw-page-options-title > small {
    margin-bottom: 3px;
    color: #65747c !important;
    font-size: 8px !important;
    letter-spacing: .1em;
}

html.gw-enabled body.gw-application .gw-page-options-title > span {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-page-options-title strong {
    color: var(--gw-accent-strong) !important;
    font-size: 10px !important;
}

html.gw-enabled body.gw-application .gw-page-options-title em {
    overflow: hidden;
    color: #77858c !important;
    font-size: 7px !important;
    font-style: normal;
    font-weight: 750;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
    grid-template-columns: 24px minmax(0, 1fr);
    justify-content: start;
    gap: 8px;
    flex: 1 1 126px;
    min-width: 108px;
    max-width: 190px;
    min-height: 53px;
    padding: 7px 11px;
    border-right-color: #d4dde1 !important;
    border-bottom-width: 3px !important;
    text-align: left;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option-index {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #c9d3d8;
    border-radius: 3px;
    background: #f4f6f7;
    color: #64737b !important;
    font-size: 8px !important;
    font-weight: 800;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option > strong {
    overflow: hidden;
    color: inherit !important;
    font-size: 10.5px !important;
    font-weight: 750;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: normal;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option:hover .gw-page-option-index,
html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current .gw-page-option-index {
    border-color: var(--gw-accent);
    background: var(--gw-accent) !important;
    color: #fff !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current {
    box-shadow: inset 0 -1px 0 var(--gw-accent) !important;
}

html.gw-enabled body.gw-application .gw-page :where(
    section, .panel, .admin-panel, .employee-panel, .worker-section,
    .lager-panel, .saldo-panel, .year-panel, .matrix-section,
    .project-board, .payroll-guide, .gav-guide, .year-guide
) {
    scroll-margin-top: 68px;
}

@media (min-width: 1900px) and (min-height: 900px) {
    html.gw-enabled body.gw-application .gw-page-header {
        min-height: 110px !important;
        padding: 16px 19px !important;
    }

    html.gw-enabled body.gw-application .gw-page-options {
        min-height: 58px;
    }

    html.gw-enabled body.gw-application .gw-page-options-title {
        flex-basis: 136px;
        min-width: 136px;
        padding-inline: 13px;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
        min-width: 122px;
        min-height: 57px;
        padding-inline: 13px;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option > strong {
        font-size: 11.5px !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-page-header {
        min-height: 88px !important;
        padding: 11px 12px 12px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html.gw-enabled body.gw-application .gw-page-title-row {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 6px !important;
    }

    html.gw-enabled body.gw-application .gw-page-title-row h1 {
        font-size: clamp(21px, 7vw, 26px) !important;
    }

    html.gw-enabled body.gw-application .gw-section-count,
    html.gw-enabled body.gw-application .gw-eyebrow > em {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-page-intro > p {
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-application .gw-page-options {
        min-height: 52px;
    }

    html.gw-enabled body.gw-application .gw-page-options-title {
        flex-basis: 68px;
        min-width: 68px;
        padding: 6px 8px;
    }

    html.gw-enabled body.gw-application .gw-page-options-title > small,
    html.gw-enabled body.gw-application .gw-page-options-title em {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-page-options-title > span {
        justify-content: center;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
        flex-basis: 132px;
        min-width: 126px;
        max-width: 160px;
        min-height: 51px;
        padding-inline: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gw-enabled body.gw-application .gw-page-options {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Single-workspace focus mode v15
   Header options behave as ERP views: one work context, zero page clutter.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-focus-mode {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #aebfc8;
    border-radius: 3px;
    background: #eaf0f3;
    color: #365565 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .055em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option[hidden],
html.gw-enabled body.gw-application .gw-view-hidden {
    display: none !important;
}

html.gw-enabled body.gw-application main.gw-page.gw-single-workspace {
    align-content: start;
}

html.gw-enabled body.gw-application main.gw-page.gw-single-workspace > .gw-view-active {
    min-width: 0 !important;
    margin-bottom: 0 !important;
    animation: gw-workspace-view-in .16s ease-out both;
}

html.gw-enabled body.gw-application main.gw-page.gw-single-workspace > .gw-page-options {
    border-bottom-color: var(--gw-accent);
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current {
    background: var(--gw-accent-soft) !important;
    color: var(--gw-accent-strong) !important;
}

html.gw-enabled body.gw-module-admin .gw-page-options .gw-page-option {
    min-width: 94px;
    padding-inline: 9px;
}

html.gw-enabled body.gw-module-admin .gw-page-options .gw-page-option > strong {
    font-size: 9.5px !important;
}

@keyframes gw-workspace-view-in {
    from { opacity: .45; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-focus-mode {
        min-height: 20px;
        padding-inline: 6px;
        font-size: 7px !important;
    }

    html.gw-enabled body.gw-module-admin .gw-page-options .gw-page-option {
        min-width: 126px;
        padding-inline: 9px;
    }

    html.gw-enabled body.gw-module-admin .gw-page-options .gw-page-option > strong {
        font-size: 10.5px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gw-enabled body.gw-application main.gw-page.gw-single-workspace > .gw-view-active {
        animation: none;
    }
}

/* Navigation dropdown stacking correction v18. */
html.gw-enabled body.gw-application .gw-shell > .gw-rail {
    z-index: 500 !important;
    overflow: visible !important;
    isolation: isolate;
}

html.gw-enabled body.gw-application .gw-shell > .gw-workspace {
    position: relative;
    z-index: 1;
}

html.gw-enabled body.gw-application .gw-rail-nav,
html.gw-enabled body.gw-application .gw-rail-group {
    overflow: visible !important;
}

html.gw-enabled body.gw-application .gw-rail-group.is-open {
    z-index: 510;
}

html.gw-enabled body.gw-application .gw-rail-flyout {
    z-index: 520 !important;
}

/* --------------------------------------------------------------------------
   Workflow-first enterprise workspace v19
   One business palette, one active work step, and explicit chronological flow.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application {
    --gw-command: 56px;
    --gw-bg: #edf1f4;
    --gw-surface: #ffffff;
    --gw-subtle: #f4f7f9;
    --gw-line: #cdd7de;
    --gw-line-strong: #aebdc7;
    --gw-ink: #152b3a;
    --gw-muted: #566b78;
    --gw-faint: #7d8e98;
    --gw-rail-bg: #102a3a;
    --gw-rail-hover: #183c52;
    --gw-accent: #1d628b;
    --gw-accent-strong: #154761;
    --gw-accent-soft: #e8f1f6;
}

html.gw-enabled body.gw-application:is(
    .gw-module-index, .gw-module-planer, .gw-module-dostupnost,
    .gw-module-operativci, .gw-module-izvestaji, .gw-module-hr-saldo,
    .gw-module-jahressicht, .gw-module-archiv, .gw-module-klijenti,
    .gw-module-lagerbestand, .gw-module-gav-compliance, .gw-module-admin,
    .gw-module-worker
) {
    --gw-accent: #1d628b;
    --gw-accent-strong: #154761;
    --gw-accent-soft: #e8f1f6;
}

html.gw-enabled body.gw-application .gw-commandbar {
    grid-template-columns: minmax(168px, auto) minmax(0, 1fr) auto auto;
    height: var(--gw-command);
    padding-inline: 14px;
    border-bottom-color: #c6d1d8;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 42, 58, .06);
}

html.gw-enabled body.gw-application .gw-command-context {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding-right: 14px;
}

html.gw-enabled body.gw-application .gw-command-product {
    color: #173f57;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
}

html.gw-enabled body.gw-application .gw-command-divider {
    color: #9aabb5;
    font-weight: 500;
}

html.gw-enabled body.gw-application .gw-command-context strong {
    display: block;
    grid-column: auto;
    overflow: hidden;
    color: #445b69;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-command-code {
    grid-column: auto;
    grid-row: auto;
    padding: 4px 6px;
    border-color: #c9d4da;
    background: #f2f5f7;
    color: #4c6370;
}

html.gw-enabled body.gw-application .gw-stage > main.gw-page {
    gap: 10px !important;
    padding: 14px !important;
    scroll-padding-top: 68px;
}

html.gw-enabled body.gw-application .gw-page-header {
    min-height: 82px !important;
    padding: 11px 14px 12px !important;
    border-color: #c5d1d8 !important;
    border-left-color: var(--gw-accent) !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(15, 42, 58, .055) !important;
}

html.gw-enabled body.gw-application .gw-eyebrow {
    min-height: 18px;
    margin-bottom: 3px;
}

html.gw-enabled body.gw-application .gw-eyebrow > span {
    min-height: 19px;
    padding: 3px 6px;
    border-radius: 2px;
    background: #173f57 !important;
}

html.gw-enabled body.gw-application .gw-page-title-row {
    gap: 10px !important;
}

html.gw-enabled body.gw-application .gw-page-title-row h1 {
    font-size: clamp(23px, 2.1vw, 30px) !important;
    letter-spacing: -.025em !important;
}

html.gw-enabled body.gw-application .gw-page-intro > p {
    margin-top: 5px;
    color: #5b6e79 !important;
    font-size: 11.5px !important;
}

html.gw-enabled body.gw-application .gw-page-statusline {
    gap: 5px;
}

html.gw-enabled body.gw-application :is(.gw-mandate, .gw-workflow-state, .gw-focus-mode) {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid #c5d2d9;
    border-radius: 2px;
    background: #f3f6f8;
    color: #405a69 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .045em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-mandate {
    border-color: #b9d3c8;
    background: #edf6f2;
    color: #276247 !important;
}

html.gw-enabled body.gw-application .gw-workflow-state {
    gap: 4px;
    border-color: #b8cad6;
    background: #eef4f7;
    color: #264f68 !important;
    font-family: var(--gw-mono) !important;
}

html.gw-enabled body.gw-application .gw-workflow-state b {
    font-weight: 850;
}

html.gw-enabled body.gw-application .gw-workflow-state em {
    color: #69808e !important;
    font-style: normal;
    font-weight: 700;
}

html.gw-enabled body.gw-application .gw-focus-mode {
    max-width: 210px;
    overflow: hidden;
    border-color: #a9bfd0;
    background: #e7f0f6;
    color: #174d6d !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-page-options {
    top: -1px;
    min-height: 56px;
    border-color: #bdcbd4;
    border-left-color: #173f57;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 42, 58, .065);
}

html.gw-enabled body.gw-application .gw-page-options-title {
    flex: 0 0 112px;
    min-width: 112px;
    padding: 7px 10px;
    border-right-color: #bdcbd4;
    background: #e8eef2;
}

html.gw-enabled body.gw-application .gw-page-options-title > small {
    color: #5c7180 !important;
}

html.gw-enabled body.gw-application .gw-page-options-title strong {
    color: #173f57 !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
    position: relative;
    grid-template-columns: 24px minmax(0, 1fr);
    flex: 1 1 136px;
    min-width: 122px;
    max-width: 190px;
    min-height: 55px;
    gap: 8px;
    padding: 6px 10px;
    border-right-color: #d2dce2 !important;
    border-bottom-width: 0 !important;
    background: #fff !important;
    color: #344e5d !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option-copy {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    color: inherit !important;
    font-family: var(--gw-font) !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option-copy > strong {
    overflow: hidden;
    color: inherit !important;
    font-size: 10.5px !important;
    font-weight: 780;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: normal;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option-copy > small {
    color: #7b8d98 !important;
    font-size: 7px !important;
    font-weight: 750;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option-index {
    width: 24px;
    height: 24px;
    border-color: #bdcbd4;
    border-radius: 2px;
    background: #f1f5f7;
    color: #5b7180 !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-step:not([hidden]) + .gw-page-option.is-step::before {
    position: absolute;
    top: 50%;
    left: -4px;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-top: 1px solid #9fb1bc;
    border-right: 1px solid #9fb1bc;
    background: #fff;
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current {
    background: #173f57 !important;
    color: #fff !important;
    box-shadow: inset 0 -3px 0 #4ea5d1 !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current .gw-page-option-index {
    border-color: #7fb3d0;
    background: #fff !important;
    color: #173f57 !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-current .gw-page-option-copy > small {
    color: #c9deea !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-action {
    flex-grow: 0;
    border-left: 1px solid #aebdc7 !important;
    background: #f4f7f9 !important;
    color: #415a68 !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option.is-action .gw-page-option-index {
    border-color: #9eb1bd;
    background: #e3eaee;
    color: #294f65 !important;
    font-size: 13px !important;
}

html.gw-enabled body.gw-application .gw-page-options .gw-page-option:hover:not(.is-current) {
    background: #edf3f7 !important;
    color: #173f57 !important;
}

html.gw-enabled body.gw-application .gw-workflow-footer {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, auto) minmax(150px, 1fr);
    align-items: stretch;
    min-height: 48px;
    margin-top: 1px;
    overflow: hidden;
    border: 1px solid #bdcbd4;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 42, 58, .06);
}

html.gw-enabled body.gw-application .gw-workflow-footer[hidden] {
    display: none !important;
}

html.gw-enabled body.gw-application .gw-workflow-button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f5f7f8 !important;
    color: #1d4d68 !important;
    box-shadow: none !important;
    font-family: var(--gw-font) !important;
    text-align: left;
}

html.gw-enabled body.gw-application .gw-workflow-button.is-next {
    justify-content: flex-end;
    border-left: 1px solid #d1dbe1 !important;
    text-align: right;
}

html.gw-enabled body.gw-application .gw-workflow-button.is-previous {
    border-right: 1px solid #d1dbe1 !important;
}

html.gw-enabled body.gw-application .gw-workflow-button > span:first-child:last-child,
html.gw-enabled body.gw-application .gw-workflow-button > span[aria-hidden="true"] {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
}

html.gw-enabled body.gw-application .gw-workflow-button > span:not([aria-hidden="true"]) {
    display: grid;
    gap: 1px;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-workflow-button small,
html.gw-enabled body.gw-application .gw-workflow-current small {
    color: #758894 !important;
    font-size: 7px !important;
    font-weight: 800;
    letter-spacing: .085em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-workflow-button strong {
    overflow: hidden;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-workflow-button:hover:not(:disabled) {
    background: #e8f1f6 !important;
}

html.gw-enabled body.gw-application .gw-workflow-button:disabled {
    color: #95a3ab !important;
    cursor: default;
    opacity: .62;
}

html.gw-enabled body.gw-application .gw-workflow-current {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    padding: 6px 14px;
    background: #173f57;
    color: #fff;
    text-align: center;
}

html.gw-enabled body.gw-application .gw-workflow-current small {
    color: #bcd3df !important;
}

html.gw-enabled body.gw-application .gw-workflow-current strong {
    overflow: hidden;
    max-width: 240px;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 780;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-workflow-current span {
    color: #bcd3df !important;
    font: 700 7px/1 var(--gw-mono) !important;
    letter-spacing: .05em;
    text-transform: uppercase;
}

@media (max-width: 1020px) {
    html.gw-enabled body.gw-application .gw-page-statusline {
        flex-wrap: wrap;
    }

    html.gw-enabled body.gw-application .gw-focus-mode {
        max-width: 150px;
    }

    html.gw-enabled body.gw-application .gw-workflow-footer {
        grid-template-columns: minmax(120px, 1fr) minmax(150px, auto) minmax(120px, 1fr);
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-commandbar {
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        padding-inline: 9px !important;
    }

    html.gw-enabled body.gw-application .gw-command-divider,
    html.gw-enabled body.gw-application .gw-command-code,
    html.gw-enabled body.gw-application .gw-command-state span {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-command-context {
        gap: 5px;
        padding-right: 6px;
    }

    html.gw-enabled body.gw-application .gw-command-context strong {
        font-size: 10px;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        gap: 8px !important;
        padding: 9px !important;
    }

    html.gw-enabled body.gw-application .gw-page-header {
        min-height: 78px !important;
        padding: 10px 11px !important;
    }

    html.gw-enabled body.gw-application .gw-page-title-row {
        gap: 5px !important;
    }

    html.gw-enabled body.gw-application .gw-page-title-row h1 {
        font-size: clamp(20px, 6.3vw, 25px) !important;
    }

    html.gw-enabled body.gw-application .gw-page-intro > p {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-mandate {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-focus-mode {
        max-width: 170px;
    }

    html.gw-enabled body.gw-application .gw-page-options-title {
        flex: 0 0 62px;
        min-width: 62px;
        padding-inline: 6px;
    }

    html.gw-enabled body.gw-application .gw-page-options-title > small,
    html.gw-enabled body.gw-application .gw-page-options-title em {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
        flex: 0 0 128px;
        min-width: 128px;
        max-width: 154px;
        padding-inline: 8px;
    }

    html.gw-enabled body.gw-application .gw-workflow-footer {
        grid-template-columns: minmax(76px, 1fr) minmax(120px, 1.25fr) minmax(76px, 1fr);
        min-height: 44px;
    }

    html.gw-enabled body.gw-application .gw-workflow-button {
        justify-content: center !important;
        min-height: 44px;
        padding-inline: 8px !important;
        text-align: center !important;
    }

    html.gw-enabled body.gw-application .gw-workflow-button strong {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-workflow-current {
        padding-inline: 7px;
    }

    html.gw-enabled body.gw-application .gw-workflow-current strong {
        max-width: 150px;
        font-size: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gw-enabled body.gw-application .gw-page-options,
    html.gw-enabled body.gw-application .gw-workflow-button {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Context action inspector v21
   The fixed right pane explains the active step and exposes scoped actions.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-context-panel.gw-inspector {
    gap: 0 !important;
    padding: 0 12px 12px !important;
    border-left: 1px solid #c4d0d7 !important;
    background: #f3f6f8 !important;
    scrollbar-color: #9eafb9 transparent;
}

html.gw-enabled body.gw-application .gw-context-panel > .gavio-context-toggle {
    position: absolute !important;
    top: 13px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 4 !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .36) !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: var(--gw-mono) !important;
    font-size: 13px !important;
}

html.gw-enabled body.gw-application .gw-context-panel > .gavio-context-toggle:hover {
    border-color: rgba(255, 255, 255, .65) !important;
    background: rgba(255, 255, 255, .16) !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    align-items: start !important;
    min-height: 120px !important;
    margin: 0 -12px !important;
    padding: 14px 52px 14px 15px !important;
    border: 0 !important;
    border-bottom: 3px solid #3a8bb8 !important;
    background: #123a52 !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #bcd4e1 !important;
    font-size: 7px !important;
    font-weight: 800 !important;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-kicker > span {
    color: #bcd4e1 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-kicker > strong {
    padding: 3px 5px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2px;
    color: #fff !important;
    font: 800 8px/1 var(--gw-mono) !important;
    letter-spacing: .04em;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-identity {
    display: grid;
    gap: 3px;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-title {
    overflow: hidden;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 780 !important;
    letter-spacing: -.02em;
    line-height: 1.08 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-subtitle {
    color: #c3d4de !important;
    font-size: 9.5px !important;
    font-weight: 560 !important;
    line-height: 1.3 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sync {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a8cad9 !important;
    font-size: 7px !important;
    font-weight: 800 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sync > i,
html.gw-enabled body.gw-application .gw-context-panel .gavio-context-footer i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #42b883;
    box-shadow: 0 0 0 3px rgba(66, 184, 131, .15);
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sync > span {
    color: #a8cad9 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus {
    display: grid !important;
    gap: 5px !important;
    margin: 10px 0 12px !important;
    padding: 11px 12px !important;
    border: 1px solid #b8cbd7 !important;
    border-left: 4px solid #1d628b !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(15, 42, 58, .055) !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-label > span {
    color: #617887 !important;
    font-size: 7px !important;
    font-weight: 850 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-position {
    padding: 3px 5px;
    border-radius: 2px;
    background: #e8f1f6;
    color: #245977 !important;
    font: 800 8px/1 var(--gw-mono) !important;
    font-style: normal;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-title {
    overflow: hidden;
    color: #173f57 !important;
    font-size: 13px !important;
    font-weight: 780 !important;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus > p {
    margin: 0 !important;
    color: #6a7b85 !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sections {
    display: grid;
    gap: 12px;
}

html.gw-enabled body.gw-application .gw-context-panel.is-summary-only .gavio-context-sections,
html.gw-enabled body.gw-application .gw-context-panel.is-summary-only .gavio-context-footer,
html.gw-enabled body.gw-application .gw-context-panel.is-summary-only #employeePoolSidebar {
    display: none !important;
}

html.gw-enabled body.gw-application .gw-context-panel.is-summary-only .gavio-context-focus {
    margin-bottom: 0 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin: 0 !important;
    padding: 0 2px 4px !important;
    border-bottom: 1px solid #ccd7de;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title > span {
    color: #435c6b !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .095em !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title > b {
    color: #758b98 !important;
    font: 750 8px/1 var(--gw-mono) !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-links {
    display: grid;
    gap: 5px;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link {
    position: relative;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) auto auto !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 45px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: 1px solid #d1dce2 !important;
    border-left: 3px solid #91a6b2 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #263f4e !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link[data-scope="action"] {
    border-left-color: #1d628b !important;
    background: #edf4f8 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link[data-scope="related"] {
    border-left-color: #667d8b !important;
    background: #f7f9fa !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link:is(:hover, :focus-visible) {
    border-color: #7fa7bd !important;
    border-left-color: #1d628b !important;
    background: #e8f1f6 !important;
    outline: none !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link:is(.active, .is-relevant),
html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link[aria-current="page"] {
    border-color: #6f9db7 !important;
    border-left-color: #1d628b !important;
    background: #e4eef4 !important;
    color: #173f57 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-icon {
    width: 28px !important;
    height: 28px !important;
    border-color: #afc0c9 !important;
    border-radius: 3px !important;
    background: #edf2f5 !important;
    color: #36596d !important;
    font-size: 7.5px !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > strong {
    overflow: hidden;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > small {
    overflow: hidden;
    color: #7a8d98 !important;
    font-size: 6.5px !important;
    font-weight: 750 !important;
    letter-spacing: .055em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-badge {
    padding: 3px 5px !important;
    border: 1px solid #d5b46a !important;
    border-radius: 2px !important;
    background: #fff7e5 !important;
    color: #76530d !important;
    font-size: 6px !important;
    font-weight: 850 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-arrow {
    color: #6b8492 !important;
    font: 800 12px/1 var(--gw-mono) !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    margin-top: auto;
    padding: 10px 2px 0;
    color: #738692 !important;
    font-size: 7px !important;
    font-weight: 800 !important;
    letter-spacing: .075em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-footer > span {
    color: #738692 !important;
}

html.gw-enabled body.gw-application .gw-context-panel .gavio-context-footer > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2d674c !important;
    font-size: 7px !important;
}

/* The dashboard already owns a rich live inspector; align it with the same shell. */
html.gw-enabled body.gw-application .gw-context-panel.dashboard-context-sidebar .context-head {
    margin: 0 -12px 10px !important;
    padding: 14px !important;
    border: 0 !important;
    border-bottom: 3px solid #3a8bb8 !important;
    background: #123a52 !important;
}

html.gw-enabled body.gw-application .gw-context-panel.dashboard-context-sidebar .context-head :where(.context-title, .context-progress strong) {
    color: #fff !important;
}

html.gw-enabled body.gw-application .gw-context-panel.dashboard-context-sidebar .context-head :where(.context-subtitle, .context-meta) {
    color: #bcd3df !important;
}

html.gw-enabled body.gw-application .gw-context-panel.dashboard-context-sidebar .context-toggle {
    border-color: rgba(255, 255, 255, .36) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

@media (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-context-panel.gw-inspector {
        box-shadow: -16px 0 34px rgba(12, 35, 49, .18) !important;
    }

    html.gw-enabled body.gw-application .gavio-ai-root {
        right: 14px !important;
    }

    html.gw-enabled body.gw-application.gw-context-open .gavio-ai-root {
        right: calc(var(--gw-inspector) + 14px) !important;
    }
}

@media (min-width: 1181px) {
    html.gw-enabled body.gw-application .gavio-ai-root {
        right: calc(var(--gw-inspector) + 14px) !important;
        bottom: 14px !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-head {
        min-height: 110px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus {
        margin-top: 8px !important;
    }

    html.gw-enabled body.gw-application.gw-context-open .gavio-ai-root {
        opacity: 0;
        pointer-events: none;
    }
}

/* --------------------------------------------------------------------------
   Module navigation rail v26
   The 74px rail owns module choice; flyouts explain destination and scope.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-shell > .gw-rail {
    border-right-color: #071d2a !important;
    background:
        linear-gradient(180deg, rgba(39, 105, 139, .18), transparent 210px),
        #0e2a3a !important;
}

html.gw-enabled body.gw-application .gw-rail > .gw-brand {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

html.gw-enabled body.gw-application .gw-rail .gw-brand-mark {
    border-color: rgba(255, 255, 255, .62);
    border-radius: 4px;
    background: #1c648b;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
}

html.gw-enabled body.gw-application .gw-rail-nav {
    gap: 6px;
    padding: 14px 6px;
    overflow: visible !important;
}

html.gw-enabled body.gw-application .gw-rail-group {
    position: relative;
}

html.gw-enabled body.gw-application .gw-rail-trigger {
    position: relative;
    width: 61px !important;
    min-width: 61px !important;
    height: 62px !important;
    min-height: 62px !important;
    gap: 5px !important;
    padding: 6px 2px !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #afc0ca !important;
}

html.gw-enabled body.gw-application .gw-rail-trigger:hover,
html.gw-enabled body.gw-application .gw-rail-trigger:focus-visible,
html.gw-enabled body.gw-application .gw-rail-group.is-open .gw-rail-trigger {
    border-color: rgba(126, 177, 204, .34) !important;
    background: #173e54 !important;
    color: #fff !important;
    outline: none !important;
}

html.gw-enabled body.gw-application .gw-rail-group.is-active .gw-rail-trigger {
    border-color: rgba(110, 176, 211, .48) !important;
    background: #194b67 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

html.gw-enabled body.gw-application .gw-rail-group.is-active .gw-rail-trigger::before {
    top: 7px;
    bottom: 7px;
    left: -6px;
    width: 4px;
    border-radius: 0 2px 2px 0;
    background: #56a9d2;
}

html.gw-enabled body.gw-application .gw-rail-icon {
    width: 30px;
    height: 28px;
    border-color: #7892a0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .025);
    color: inherit;
    font-size: 8.5px;
    font-weight: 750;
}

html.gw-enabled body.gw-application .gw-rail-group.is-active .gw-rail-icon,
html.gw-enabled body.gw-application .gw-rail-group.is-open .gw-rail-icon {
    border-color: #8fc3df;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

html.gw-enabled body.gw-application .gw-rail-label {
    max-width: 58px;
    color: inherit;
    font-size: 8.5px;
    font-weight: 650;
    letter-spacing: .01em;
}

html.gw-enabled body.gw-application .gw-rail-flyout {
    top: -5px;
    left: 67px;
    width: 304px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #9fb3bf;
    border-radius: 5px;
    background: #f4f7f9;
    box-shadow: 0 18px 46px rgba(5, 24, 35, .28);
}

html.gw-enabled body.gw-application .gw-rail-flyout::before {
    position: absolute;
    top: 24px;
    left: -6px;
    width: 11px;
    height: 11px;
    border-bottom: 1px solid #274f66;
    border-left: 1px solid #274f66;
    background: #123a52;
    content: "";
    transform: rotate(45deg);
}

html.gw-enabled body.gw-application .gw-rail-flyout-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 9px;
    min-height: 70px;
    padding: 11px 10px 11px 14px;
    border-bottom: 3px solid #3a8bb8;
    background: #123a52;
}

html.gw-enabled body.gw-application .gw-rail-flyout-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-rail-flyout-head small {
    color: #aac8d7 !important;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-rail-flyout-title {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff !important;
    font-size: 16px;
    font-weight: 780;
    letter-spacing: -.015em;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-rail-flyout-head > span {
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 2px;
    color: #c5d9e4 !important;
    font: 750 7px/1 var(--gw-mono) !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-rail-flyout-close {
    display: grid;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
    box-shadow: none !important;
    font: 500 16px/1 var(--gw-font) !important;
}

html.gw-enabled body.gw-application .gw-rail-flyout-close:hover,
html.gw-enabled body.gw-application .gw-rail-flyout-close:focus-visible {
    border-color: rgba(255, 255, 255, .62) !important;
    background: rgba(255, 255, 255, .14) !important;
    outline: none !important;
}

html.gw-enabled body.gw-application .gw-rail-flyout-links {
    display: grid;
    gap: 5px;
    padding: 8px;
}

html.gw-enabled body.gw-application .gw-rail-link {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 55px;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #d1dce2;
    border-left: 3px solid #8fa5b2;
    border-radius: 3px;
    background: #fff;
    color: #263f4e !important;
}

html.gw-enabled body.gw-application .gw-rail-link:hover,
html.gw-enabled body.gw-application .gw-rail-link:focus-visible {
    border-color: #7fa7bd;
    border-left-color: #1d628b;
    background: #e8f1f6;
    color: #173f57 !important;
    outline: none;
}

html.gw-enabled body.gw-application .gw-rail-link.is-current {
    border-color: #6e9db7;
    border-left-color: #1d628b;
    background: #e4eef4;
    color: #173f57 !important;
}

html.gw-enabled body.gw-application .gw-rail-link-code {
    display: grid;
    min-height: 27px;
    place-items: center;
    padding: 4px;
    border: 1px solid #b5c5ce;
    border-radius: 2px;
    background: #eef3f6;
    color: #3c5c6e !important;
    font: 750 7px/1 var(--gw-mono) !important;
    letter-spacing: .025em;
}

html.gw-enabled body.gw-application .gw-rail-link.is-current .gw-rail-link-code {
    border-color: #7ea8bf;
    background: #fff;
    color: #174d6d !important;
}

html.gw-enabled body.gw-application .gw-rail-link-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

html.gw-enabled body.gw-application .gw-rail-link-copy > strong {
    overflow: hidden;
    color: inherit !important;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-rail-link-copy > small {
    overflow: hidden;
    color: #71838e !important;
    font-size: 8px;
    font-weight: 550;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.gw-enabled body.gw-application .gw-rail-link-state {
    color: #6e8795 !important;
    font: 750 11px/1 var(--gw-mono) !important;
}

html.gw-enabled body.gw-application .gw-rail-link.is-current .gw-rail-link-state {
    padding: 4px 5px;
    border-radius: 2px;
    background: #1d628b;
    color: #fff !important;
    font-size: 6px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

html.gw-enabled body.gw-application .gw-rail-logout {
    border-top-color: rgba(255, 255, 255, .1);
    color: #9eb2bd !important;
}

html.gw-enabled body.gw-application .gw-rail-logout:hover,
html.gw-enabled body.gw-application .gw-rail-logout:focus-visible {
    background: #173e54;
    color: #fff !important;
    outline: none;
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-rail > .gw-brand {
        justify-content: flex-start;
        padding: 0 14px;
    }

    html.gw-enabled body.gw-application .gw-rail > .gw-brand .gw-brand-word {
        display: inline;
        color: #fff;
        font-size: 14px;
        font-weight: 780;
        letter-spacing: .11em;
    }

    html.gw-enabled body.gw-application .gw-rail-nav {
        gap: 5px;
        padding: 10px 8px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html.gw-enabled body.gw-application .gw-rail-trigger {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 6px 9px !important;
        text-align: left;
    }

    html.gw-enabled body.gw-application .gw-rail-trigger::after {
        color: #9cb2bf;
        content: "›";
        font: 700 16px/1 var(--gw-font);
    }

    html.gw-enabled body.gw-application .gw-rail-group.is-open .gw-rail-trigger::after {
        content: "⌄";
    }

    html.gw-enabled body.gw-application .gw-rail-label {
        max-width: none;
        font-size: 11px;
        font-weight: 700;
    }

    html.gw-enabled body.gw-application .gw-rail-flyout {
        position: static;
        width: 100%;
        margin-top: 4px;
        border-color: #527284;
        border-radius: 4px;
        box-shadow: none;
    }

    html.gw-enabled body.gw-application .gw-rail-flyout::before {
        display: none;
    }

    html.gw-enabled body.gw-application .gw-rail-flyout-head {
        min-height: 54px;
        padding-block: 8px;
    }

    html.gw-enabled body.gw-application .gw-rail-flyout-title {
        font-size: 14px;
    }

    html.gw-enabled body.gw-application .gw-rail-link {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        min-height: 50px;
        padding: 6px 8px;
    }

    html.gw-enabled body.gw-application .gw-rail-logout {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
        min-height: 52px;
        padding: 9px 16px;
        font-size: 10px;
    }
}

/* Large-display inspector v32: final cascade lock. */
@media (min-width: 1600px) {
    :root { --gw-inspector: 278px; }

    html.gw-enabled body.gw-application .gw-context-panel.gw-inspector {
        padding: 0 16px 16px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-head {
        min-height: 128px !important;
        margin-inline: -16px !important;
        padding: 18px 58px 18px 20px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-title { font-size: 20px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-subtitle { font-size: 11px !important; line-height: 1.4 !important; }
    html.gw-enabled body.gw-application .gw-context-panel :is(.gavio-context-kicker, .gavio-context-sync) { font-size: 9px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus { gap: 7px !important; margin: 14px 0 !important; padding: 14px 15px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-label > span { font-size: 9px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-title { font-size: 15px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus > p { font-size: 10.5px !important; line-height: 1.45 !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-sections { gap: 15px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section { gap: 8px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title { min-height: 24px !important; padding-bottom: 6px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title > span { font-size: 9px !important; }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link {
        grid-template-columns: 36px minmax(0, 1fr) auto auto !important;
        gap: 10px !important;
        min-height: 54px !important;
        padding: 9px 11px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-icon { width: 34px !important; height: 34px !important; font-size: 9px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > strong { font-size: 12px !important; }
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > small { font-size: 9px !important; }

    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar.planner-context-pool { min-height: 360px !important; padding: 13px !important; }
    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-head h2 { font-size: 14px !important; }
    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-search { min-height: 38px !important; padding: 9px 11px !important; font-size: 12px !important; }
    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-card { padding: 11px 12px !important; }
    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar .employee-pool-name span:first-child { font-size: 12px !important; }
    html.gw-enabled body.gw-module-planer .gw-inspector #employeePoolSidebar :is(.employee-pool-meta, .employee-pool-hint) { font-size: 10px !important; }
}

/* Desktop shell edge lock v33: neutralize legacy planner right offsets. */
@media (min-width: 1181px) {
    html.gw-enabled body.gw-application .gw-shell {
        width: 100vw !important;
        max-width: none !important;
    }

    html.gw-enabled body.gw-application .gw-workspace,
    html.gw-enabled body.gw-application .gw-stage {
        width: 100% !important;
        max-width: none !important;
    }

    html.gw-enabled body.gw-application .gw-stage > .gw-inspector,
    html.gw-enabled body.planner-page.gw-application .gw-stage > #gavioContextSidebar.gw-inspector {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        height: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }

    html.gw-enabled body.planner-page.gw-application .gw-stage > main.gw-page {
        width: 100% !important;
        max-width: none !important;
        padding-right: 14px !important;
    }
}

/* Navigation rail alignment v34: neutralize page-level legacy flex alignment. */
html.gw-enabled body.gw-application .gw-shell > .gw-rail {
    align-items: stretch !important;
    justify-items: stretch !important;
    align-content: stretch !important;
    gap: 0 !important;
}

html.gw-enabled body.gw-application .gw-shell > .gw-rail > .gw-rail-nav {
    align-self: stretch !important;
    align-items: stretch !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

/* Planner operational calendar grid v35. */
html.gw-enabled body.gw-module-planer #calendar {
    --planner-grid-line: #c5d0d6;
    --planner-grid-line-strong: #93a7b2;
    --planner-grid-band: #f2f6f8;
    --planner-grid-axis: #e7edf0;
    --planner-grid-header: #dfe8ec;
    --planner-grid-weekend: rgba(42, 63, 74, .055);
    --planner-grid-today: rgba(8, 127, 120, .075);
    background: #f8fafb !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-scrollgrid {
    overflow: hidden;
    border: 1px solid var(--planner-grid-line-strong) !important;
    border-radius: 4px !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-scrollgrid-section-header > th {
    border-bottom: 2px solid var(--planner-grid-line-strong) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-col-header-cell {
    height: 44px !important;
    padding: 0 !important;
    border-color: var(--planner-grid-line-strong) !important;
    background: var(--planner-grid-header) !important;
    color: #173f57 !important;
    vertical-align: middle !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-col-header-cell-cushion {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 43px !important;
    padding: 7px 10px !important;
    color: #173f57 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-col-header-cell.fc-day-today {
    background: #d3e8e5 !important;
    box-shadow: inset 0 -4px 0 var(--gw-accent) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-axis,
html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slot-label {
    width: 76px !important;
    min-width: 76px !important;
    border-right: 2px solid var(--planner-grid-line-strong) !important;
    background: var(--planner-grid-axis) !important;
    color: #284854 !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slot {
    height: 38px !important;
    border-color: var(--planner-grid-line) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slot:not(.fc-timegrid-slot-minor) {
    border-top: 1px solid var(--planner-grid-line-strong) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slot.fc-timegrid-slot-minor {
    border-top: 1px dashed #d9e1e5 !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slot-label-cushion {
    padding: 0 12px 0 8px !important;
    color: #284854 !important;
    font-family: var(--gw-mono) !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    letter-spacing: .02em !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slots tbody tr:nth-child(4n + 1) .fc-timegrid-slot-lane,
html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-slots tbody tr:nth-child(4n + 2) .fc-timegrid-slot-lane {
    background: var(--planner-grid-band) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-col {
    border-left: 1px solid var(--planner-grid-line-strong) !important;
    background-color: transparent !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-col.fc-day-sat,
html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-col.fc-day-sun,
html.gw-enabled body.gw-module-planer #calendar .fc-daygrid-day.fc-day-sat,
html.gw-enabled body.gw-module-planer #calendar .fc-daygrid-day.fc-day-sun {
    background-color: var(--planner-grid-weekend) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-col.fc-day-today,
html.gw-enabled body.gw-module-planer #calendar .fc-daygrid-day.fc-day-today {
    background-color: var(--planner-grid-today) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-now-indicator-line {
    border-width: 2px 0 0 !important;
    border-color: #c43f46 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-now-indicator-arrow {
    margin-top: -6px !important;
    border-width: 6px 0 6px 8px !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    border-left-color: #c43f46 !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timeGridWeek-view .fc-timegrid-event-harness > .fc-timegrid-event,
html.gw-enabled body.gw-module-planer #calendar .fc-timeGridDay-view .fc-timegrid-event-harness > .fc-timegrid-event {
    width: calc(100% - 10px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 2px 5px !important;
    border: 1px solid #3e92af !important;
    border-left: 4px solid #176789 !important;
    border-radius: 4px !important;
    background: #ccebf5 !important;
    box-shadow: 0 2px 5px rgba(23, 63, 87, .16) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-timegrid-event:hover {
    border-color: #0b6965 !important;
    border-left-color: var(--gw-accent) !important;
    background: #bfe4ee !important;
    box-shadow: 0 4px 10px rgba(23, 63, 87, .22) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-event :is(.fc-event-time, .fc-event-title, .planner-service-badge) {
    color: #113946 !important;
}

html.gw-enabled body.gw-module-planer #calendar .planner-service-badge {
    border-color: #77a9b9 !important;
    background: rgba(255, 255, 255, .76) !important;
}

html.gw-enabled body.gw-module-planer #calendar .fc-daygrid-day {
    min-height: 112px !important;
    border-color: var(--planner-grid-line) !important;
    background-color: #fff;
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-module-planer #calendar {
        overflow-x: auto !important;
    }

    html.gw-enabled body.gw-module-planer #calendar .fc-view-harness,
    html.gw-enabled body.gw-module-planer #calendar .fc-scrollgrid {
        min-width: 820px !important;
    }
}

/* Planner utility dock v36: keep GAV, help and AI out of the calendar canvas. */
html.gw-enabled body.gw-module-planer .gw-planner-utility-dock {
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 10px !important;
    border: 1px solid #bccbd2 !important;
    border-left: 3px solid var(--gw-accent) !important;
    border-radius: 4px !important;
    background: #f3f7f8 !important;
    box-shadow: 0 2px 7px rgba(20, 47, 60, .08) !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-head > span {
    color: #234656 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-head > strong {
    color: #66808d !important;
    font: 700 7px/1 var(--gw-mono) !important;
    letter-spacing: .04em !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px 40px !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > .gav-shield-box {
    position: relative !important;
    inset: auto !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid #9ebcb4 !important;
    border-radius: 3px !important;
    background: #e8f3ef !important;
    color: #285e45 !important;
    box-shadow: none !important;
    cursor: help !important;
    backdrop-filter: none !important;
    order: 1 !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > .gav-shield-box > span {
    overflow: hidden !important;
    color: #285e45 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .025em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > .gav-shield-box::before {
    content: "GAV";
    display: grid;
    place-items: center;
    width: 25px;
    height: 24px;
    margin-right: 8px;
    flex: 0 0 25px;
    border: 1px solid #75a696;
    border-radius: 2px;
    background: #fff;
    color: #285e45;
    font: 800 7px/1 var(--gw-mono);
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions .gav-rules-popup {
    top: calc(100% + 7px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 40 !important;
    width: 280px !important;
    max-width: calc(100vw - 42px) !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > .gav-shield-box:focus-within .gav-rules-popup {
    display: block !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > :is(.gw-planner-help-launcher, .gw-planner-ai-launcher) {
    position: relative !important;
    inset: auto !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #91aab5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #1d5d7e !important;
    box-shadow: none !important;
    transform: none !important;
    font: 850 11px/1 var(--gw-font) !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > .gw-planner-help-launcher {
    order: 2 !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > .gw-planner-ai-launcher {
    order: 3 !important;
}

html.gw-enabled body.gw-module-planer .gw-planner-utility-actions > :is(.gw-planner-help-launcher, .gw-planner-ai-launcher):hover {
    border-color: var(--gw-accent) !important;
    background: #e8f3f2 !important;
    color: #075f59 !important;
}

html.gw-enabled body.gw-module-planer .gavio-ai-root {
    right: 14px !important;
    bottom: 14px !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

html.gw-enabled body.gw-application.gw-module-planer.gw-context-open .gavio-ai-root {
    right: 14px !important;
}

html.gw-enabled body.gw-module-planer .gavio-ai-root .gavio-ai-panel {
    width: clamp(300px, calc(var(--gw-inspector) - 28px), 400px) !important;
    max-width: calc(100vw - 28px) !important;
}

html.gw-enabled body.gw-module-planer .gavio-ai-root .gavio-ai-panel.gavio-ai-max {
    width: min(760px, calc(100vw - 28px)) !important;
}

@media (max-width: 760px) {
    body.gw-module-planer .planner-view-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.gw-module-planer .planner-view-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    body.gw-module-planer .planner-view-tab {
        min-width: 0 !important;
        padding: 7px 4px !important;
        font-size: 10px !important;
    }

    body.gw-module-planer .planner-view-filters {
        align-items: stretch !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    body.gw-module-planer .planner-view-filter {
        width: 100% !important;
        max-width: none !important;
    }

    body.gw-module-planer .planner-scope-copy {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
    }

    body.gw-module-planer .planner-scope-copy > span:last-child {
        white-space: normal !important;
    }

    body.gw-module-planer .planner-scope-metrics {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.gw-module-planer .planner-scope-metric {
        justify-content: flex-start !important;
    }

    body.gw-module-planer .planner-coverage-head {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.gw-module-planer .planner-coverage-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    body.gw-module-planer .planner-coverage-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.gw-module-planer .planner-coverage-row,
    body.gw-module-planer .planner-coverage-row.window {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px 10px !important;
        padding: 9px !important;
    }

    body.gw-module-planer .planner-coverage-row > :is(.planner-coverage-state, .planner-coverage-project-name, .planner-coverage-window-time) {
        grid-column: 1 / -1 !important;
    }

    body.gw-module-planer .planner-requirement-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    body.gw-module-planer .planner-coverage-message {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.gw-module-planer .planner-coverage-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.gw-module-planer .planner-coverage-form-grid > fieldset {
        grid-column: 1 / -1 !important;
    }

    body.gw-module-planer .planner-coverage-form-actions {
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    body.gw-module-planer .planner-coverage-form-actions > span {
        width: 100% !important;
        margin: 0 !important;
    }

    html.gw-enabled body.gw-module-planer .gw-planner-utility-dock {
        margin-bottom: 10px !important;
    }

    html.gw-enabled body.gw-module-planer .gavio-ai-root .gavio-ai-panel {
        width: calc(100vw - 28px) !important;
        height: min(640px, calc(100dvh - 28px)) !important;
    }
}

/* --------------------------------------------------------------------------
   Release shell and utility authority v44
   Keep every module inside the available workspace row and place persistent
   assistance controls inside the contextual action pane instead of over data.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-application .gw-stage {
    grid-template-rows: minmax(0, 1fr) !important;
}

html.gw-enabled body.gw-application .gw-stage > main.gw-page {
    align-self: stretch !important;
    height: 100% !important;
    max-height: 100% !important;
}

html.gw-enabled body.gw-application .gw-stage > .gw-inspector {
    align-self: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
}

html.gw-enabled body.gw-application .gw-page-options-title {
    position: relative !important;
    left: auto !important;
}

html.gw-enabled body.gw-application div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
html.gw-enabled body.gw-application div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
}

html.gw-enabled body.gw-application .gw-utility-dock {
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    margin: 12px 0 !important;
    padding: 9px !important;
    border: 1px solid #b9c9d1 !important;
    border-left: 3px solid var(--gw-accent) !important;
    border-radius: 4px !important;
    background: #edf3f5 !important;
    box-shadow: 0 2px 7px rgba(20, 47, 60, .07) !important;
}

html.gw-enabled body.gw-application .gw-utility-dock[hidden] {
    display: none !important;
}

html.gw-enabled body.gw-application .gw-utility-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-application .gw-utility-head > span {
    color: #234656 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-application .gw-utility-head > strong {
    overflow: hidden !important;
    color: #68808b !important;
    font: 700 7px/1 var(--gw-mono) !important;
    letter-spacing: .03em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-application .gw-utility-actions {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-application .gw-utility-actions > .gav-shield-box {
    position: relative !important;
    inset: auto !important;
    z-index: 6 !important;
    display: flex !important;
    grid-column: 1 / -1 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    border: 1px solid #9ebcb4 !important;
    border-radius: 3px !important;
    background: #e5f1ed !important;
    color: #285e45 !important;
    box-shadow: none !important;
    cursor: help !important;
    backdrop-filter: none !important;
}

html.gw-enabled body.gw-application .gw-utility-actions > .gav-shield-box::before {
    content: "GAV";
    display: grid;
    place-items: center;
    width: 25px;
    height: 24px;
    margin-right: 8px;
    flex: 0 0 25px;
    border: 1px solid #75a696;
    border-radius: 2px;
    background: #fff;
    color: #285e45;
    font: 800 7px/1 var(--gw-mono);
}

html.gw-enabled body.gw-application .gw-utility-actions > .gav-shield-box > span {
    overflow: hidden !important;
    color: #285e45 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .025em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-application .gw-utility-actions .gav-rules-popup {
    top: calc(100% + 7px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 80 !important;
    width: 280px !important;
    max-width: calc(100vw - 42px) !important;
}

html.gw-enabled body.gw-application .gw-utility-actions > :is(.gw-utility-help-launcher, .gw-utility-ai-launcher) {
    position: static !important;
    inset: auto !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid #91aab5 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #1d5d7e !important;
    box-shadow: none !important;
    transform: none !important;
    font: 850 11px/1 var(--gw-font) !important;
}

html.gw-enabled body.gw-application .gw-utility-actions > :is(.gw-utility-help-launcher, .gw-utility-ai-launcher):only-child {
    grid-column: 1 / -1 !important;
}

html.gw-enabled body.gw-application .gw-utility-actions > .gw-utility-help-launcher::after {
    content: "Hilfe";
    font-size: 9px;
    letter-spacing: .03em;
}

html.gw-enabled body.gw-application .gw-utility-actions > .gw-utility-ai-launcher::after {
    content: "Assistent";
    font-size: 9px;
    letter-spacing: .03em;
}

html.gw-enabled body.gw-application .gw-utility-actions > :is(.gw-utility-help-launcher, .gw-utility-ai-launcher):hover,
html.gw-enabled body.gw-application .gw-utility-actions > :is(.gw-utility-help-launcher, .gw-utility-ai-launcher):focus-visible {
    border-color: var(--gw-accent) !important;
    background: #e7f2f1 !important;
    color: #075f59 !important;
    outline: none !important;
}

html.gw-enabled body.gw-application .gavio-ai-root {
    pointer-events: none !important;
}

html.gw-enabled body.gw-application .gavio-ai-root .gavio-ai-panel[aria-hidden="false"] {
    pointer-events: auto !important;
}

html.gw-enabled body.gw-application .gavio-ai-root .gavio-ai-panel[aria-hidden="true"] {
    pointer-events: none !important;
}

@media (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-stage > .gw-inspector {
        height: calc(100dvh - var(--gw-command)) !important;
        max-height: calc(100dvh - var(--gw-command)) !important;
    }

    html.gw-enabled body.gw-application div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
    html.gw-enabled body.gw-application div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
        height: calc(100dvh - var(--gw-command)) !important;
        max-height: calc(100dvh - var(--gw-command)) !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-utility-dock {
        margin: 9px 0 !important;
    }
}

/* Public authentication surface v44. */
html.gw-enabled body.gw-public-page.login-page .gw-public-header,
html.gw-enabled body.gw-public-page.logout-page .gw-public-header {
    width: 100% !important;
    flex: 0 0 auto !important;
}

html.gw-enabled body.gw-public-page.login-page .login-page-frame {
    margin: auto !important;
}

html.gw-enabled body.gw-public-page.login-page .login-shell {
    border: 1px solid #c7d3d9 !important;
    border-top: 3px solid var(--gw-accent) !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 14px 38px rgba(18, 39, 50, .11) !important;
}

html.gw-enabled body.gw-public-page.login-page .login-logo {
    color: #173f57 !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-public-page.login-page :where(.login-subtitle, .login-help, .login-legal-copy) {
    color: #61727a !important;
    text-shadow: none !important;
}

html.gw-enabled body.gw-public-page.login-page .form-group label {
    color: #40545f !important;
    font-family: var(--gw-font) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

html.gw-enabled body.gw-public-page.login-page :where(.form-control, .lang-select) {
    min-height: 42px !important;
    border: 1px solid #aebdc5 !important;
    border-radius: 3px !important;
    background: #f8fafb !important;
    color: #142027 !important;
    font-family: var(--gw-font) !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-public-page.login-page :where(.form-control, .lang-select):focus {
    border-color: var(--gw-accent) !important;
    outline: 2px solid rgba(8, 127, 120, .14) !important;
    outline-offset: 0 !important;
}

html.gw-enabled body.gw-public-page.login-page .login-status {
    border: 1px solid #acd4cd !important;
    background: #e8f4f1 !important;
    color: #17675e !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-public-page.login-page #loginButton {
    min-height: 42px !important;
    border: 1px solid #17617c !important;
    border-radius: 3px !important;
    background: #17617c !important;
    color: #fff !important;
    font-family: var(--gw-font) !important;
    font-size: 13px !important;
    font-weight: 780 !important;
    letter-spacing: .025em !important;
    box-shadow: none !important;
}

html.gw-enabled body.gw-public-page.login-page #loginButton:hover:not(:disabled) {
    border-color: #0f4d63 !important;
    background: #0f4d63 !important;
}

html.gw-enabled body.gw-public-page.login-page #loginButton:disabled {
    border-color: #bdc8cd !important;
    background: #dfe5e8 !important;
    color: #6e7b81 !important;
    cursor: wait !important;
}

html.gw-enabled body.gw-public-page.login-page .login-legal-footer {
    border: 1px solid #c7d3d9 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #61727a !important;
    box-shadow: 0 8px 24px rgba(18, 39, 50, .08) !important;
}

html.gw-enabled body.gw-public-page.login-page .login-legal-links a {
    color: #28566d !important;
    text-shadow: none !important;
}

/* Dashboard operational overview v45. */
html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    gap: 10px !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
    grid-column: span 3 !important;
    min-height: 102px !important;
    padding: 14px 16px !important;
    align-content: center !important;
    border-width: 1px 1px 1px 4px !important;
    box-shadow: 0 2px 7px rgba(15, 42, 58, .055) !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > strong {
    margin: 5px 0 3px !important;
    font-size: clamp(27px, 2.4vw, 38px) !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > #dashboardOperationsOverview.gw-view-active {
    display: block !important;
    grid-column: 1 / -1 !important;
    height: auto !important;
    min-height: max-content !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid #bfccd3 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 3px 10px rgba(15, 42, 58, .06) !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-head {
    min-height: 54px !important;
    padding: 10px 13px !important;
    border-bottom: 1px solid #d3dde2 !important;
    background: #f4f7f8 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-head h2 {
    margin: 0 0 3px !important;
    color: #17384b !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-head p {
    margin: 0 !important;
    color: #637983 !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-body {
    display: grid !important;
    gap: 10px !important;
    padding: 10px !important;
    background: #edf2f4 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-height: 50px !important;
    padding: 9px 11px 9px 13px !important;
    border: 1px solid #b9cbd2 !important;
    border-left: 4px solid #2c6b88 !important;
    border-radius: 3px !important;
    background: #f8fafb !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status.ok {
    border-color: #a8c9be !important;
    border-left-color: #27715e !important;
    background: #edf6f2 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status.warning {
    border-color: #dbc49d !important;
    border-left-color: #b7791f !important;
    background: #fbf6eb !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status.danger {
    border-color: #dfb2b9 !important;
    border-left-color: #b23a48 !important;
    background: #fbf0f2 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status.stale {
    border-color: #c6b8d9 !important;
    border-left-color: #72589a !important;
    background: #f5f2f8 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status > div {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status strong {
    color: #17384b !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status span {
    color: #5d737e !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status > .btn {
    flex: 0 0 auto !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats > article {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 3px 10px !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 9px 11px !important;
    border: 1px solid #c9d5da !important;
    border-top: 3px solid #2c6b88 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats span {
    color: #516a76 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats strong {
    grid-row: 1 / span 2 !important;
    grid-column: 2 !important;
    color: #17384b !important;
    font: 850 25px/1 var(--gw-mono) !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats small {
    grid-column: 1 !important;
    color: #70838c !important;
    font-size: 8.5px !important;
    line-height: 1.25 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important;
    gap: 10px !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-overview-panel, .dashboard-recent-activity) {
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid #c9d5da !important;
    border-radius: 3px !important;
    background: #fff !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 43px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid #d7e0e4 !important;
    background: #f8fafb !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head > div {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head strong {
    color: #17384b !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head span {
    color: #70838c !important;
    font-size: 8.5px !important;
    line-height: 1.25 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head :is(a, button) {
    flex: 0 0 auto !important;
    min-height: 28px !important;
    padding: 0 8px !important;
    border: 1px solid #9eb3bd !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #1b5b78 !important;
    font: 800 8.5px/26px var(--gw-font) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head :is(a, button):hover,
html.gw-enabled body.gw-module-index .dashboard-overview-panel-head :is(a, button):focus-visible {
    border-color: #087f78 !important;
    background: #e8f3f1 !important;
    color: #075f59 !important;
    outline: none !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-list, .dashboard-overview-priority-list) {
    display: grid !important;
    min-height: 124px !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item) {
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 6px 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #e1e7ea !important;
    background: #fff !important;
    color: #1c3543 !important;
    text-align: left !important;
    cursor: pointer !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item):last-child {
    border-bottom: 0 !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item):hover,
html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item):focus-visible {
    background: #edf5f4 !important;
    outline: 2px solid rgba(8, 127, 120, .18) !important;
    outline-offset: -2px !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item) > time {
    color: #1c5875 !important;
    font: 850 10px/1.2 var(--gw-mono) !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-item-copy {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-item-copy strong {
    overflow: hidden !important;
    color: #17384b !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-item-copy span {
    overflow: hidden !important;
    color: #697d87 !important;
    font-size: 8.5px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-state {
    min-width: 54px !important;
    padding: 4px 6px !important;
    border: 1px solid #b7c8cf !important;
    border-radius: 2px !important;
    background: #eef3f5 !important;
    color: #4e6874 !important;
    font: 800 7.5px/1 var(--gw-mono) !important;
    letter-spacing: .04em !important;
    text-align: center !important;
    text-transform: uppercase !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-state.ok {
    border-color: #9fc9bc !important;
    background: #e7f3ef !important;
    color: #246753 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-state.warning {
    border-color: #ddc598 !important;
    background: #fbf3e4 !important;
    color: #855b19 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-state.danger {
    border-color: #ddb0b7 !important;
    background: #f9eaed !important;
    color: #9b3040 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-empty {
    display: grid !important;
    place-items: center !important;
    min-height: 82px !important;
    padding: 14px !important;
    color: #667c87 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 3px 8px !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-right: 1px solid #e0e7ea !important;
    background: #fff !important;
    text-align: left !important;
    cursor: pointer !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item:last-child {
    border-right: 0 !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item:hover,
html.gw-enabled body.gw-module-index .dashboard-recent-activity-item:focus-visible {
    background: #edf5f4 !important;
    outline: 2px solid rgba(8, 127, 120, .18) !important;
    outline-offset: -2px !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item time {
    color: #1d5d7e !important;
    font: 850 9px/1.2 var(--gw-mono) !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item strong {
    overflow: hidden !important;
    color: #17384b !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item span {
    grid-column: 1 / -1 !important;
    overflow: hidden !important;
    color: #697d87 !important;
    font-size: 8.5px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.gw-enabled body.gw-module-index .gw-page-option[data-workspace-count] .gw-page-option-copy small {
    color: #45616f !important;
    font: 800 7.5px/1 var(--gw-mono) !important;
    letter-spacing: .025em !important;
}

html.gw-enabled body.gw-module-index .gw-page-option[data-workspace-alert="true"] .gw-page-option-index {
    border-color: #c98c95 !important;
    background: #f7e7ea !important;
    color: #9b3040 !important;
}

@media (max-width: 1180px) {
    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
        grid-column: span 6 !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
        grid-column: 1 / -1 !important;
        min-height: 92px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-stats,
    html.gw-enabled body.gw-module-index .dashboard-recent-activity-list {
        grid-template-columns: 1fr !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-status,
    html.gw-enabled body.gw-module-index .dashboard-overview-panel-head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-recent-activity-item {
        border-right: 0 !important;
        border-bottom: 1px solid #e0e7ea !important;
    }

    html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item) {
        grid-template-columns: 54px minmax(0, 1fr) !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-state {
        grid-column: 2 !important;
        justify-self: start !important;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    html.gw-enabled body.gw-module-index .gw-stage {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 278px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    html.gw-enabled body.gw-module-index .gw-stage > main.gw-page {
        position: relative !important;
        inset: auto !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important;
    }

    html.gw-enabled body.gw-module-index .gw-stage > #dashboardContextSidebar.gw-inspector {
        position: relative !important;
        inset: auto !important;
        z-index: 1 !important;
        display: flex !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 278px !important;
        min-width: 278px !important;
        max-width: 278px !important;
        height: 100% !important;
        max-height: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Strict three-pane laptop authority v50.
   Keep the 74px navigation, fluid workspace and 278px action inspector in flow. */
@media (min-width: 761px) and (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-stage,
    html.gw-enabled body.gw-application .gw-stage:has(> .gw-inspector) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) var(--gw-inspector) !important;
        grid-template-rows: minmax(0, 1fr) !important;
        align-items: stretch !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        position: relative !important;
        inset: auto !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important;
    }

    html.gw-enabled body.gw-application .gw-stage > .gw-inspector,
    html.gw-enabled body.gw-application div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
    html.gw-enabled body.gw-application div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
        position: relative !important;
        inset: auto !important;
        z-index: 1 !important;
        display: flex !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        height: 100% !important;
        max-height: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
    }
}

/* --------------------------------------------------------------------------
   Expandable enterprise navigation v51
   Compact: 74px. Expanded: 242px with full inline module names.
   -------------------------------------------------------------------------- */
:root {
    --gw-rail-expanded: 242px;
}

html.gw-enabled body.gw-application .gw-rail-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: var(--gw-command);
    min-height: var(--gw-command);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

html.gw-enabled body.gw-application .gw-rail-head > .gw-brand {
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0 !important;
}

html.gw-enabled body.gw-application .gw-rail-toggle {
    position: static !important;
    inset: auto !important;
    z-index: 1;
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    width: calc(100% - 14px) !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    place-items: center;
    margin: 0 7px 7px !important;
    padding: 0 8px !important;
    border: 1px solid rgba(150, 185, 202, .28) !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, .045) !important;
    color: #b7ccd7 !important;
    box-shadow: none !important;
    cursor: pointer;
}

html.gw-enabled body.gw-application .gw-rail-toggle:hover,
html.gw-enabled body.gw-application .gw-rail-toggle:focus-visible {
    border-color: rgba(143, 194, 220, .68) !important;
    background: rgba(255, 255, 255, .11) !important;
    color: #fff !important;
    outline: none !important;
}

html.gw-enabled body.gw-application .gw-rail-toggle-icon {
    font: 800 20px/1 var(--gw-font);
    transform: none;
}

html.gw-enabled body.gw-application .gw-rail-toggle-text,
html.gw-enabled body.gw-application .gw-rail-copy > small,
html.gw-enabled body.gw-application .gw-rail-chevron {
    display: none;
}

html.gw-enabled body.gw-application .gw-rail-copy {
    display: block;
    min-width: 0;
}

@media (min-width: 761px) {
    html.gw-enabled body.gw-application .gw-shell,
    html.gw-enabled body.gw-application .gw-shell > .gw-rail,
    html.gw-enabled body.gw-application .gw-rail-trigger {
        transition: width .18s ease, min-width .18s ease, grid-template-columns .18s ease;
    }

    html.gw-enabled body.gw-rail-expanded .gw-shell {
        grid-template-columns: var(--gw-rail-expanded) minmax(0, 1fr) !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-shell > .gw-rail {
        width: var(--gw-rail-expanded) !important;
        min-width: var(--gw-rail-expanded) !important;
        max-width: var(--gw-rail-expanded) !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-head > .gw-brand {
        justify-content: flex-start;
        gap: 11px;
        padding: 0 14px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-head > .gw-brand .gw-brand-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-head > .gw-brand .gw-brand-word {
        display: block;
        margin: 0;
        color: #fff;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: .13em;
        line-height: 1;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-head > .gw-brand .gw-brand-slogan {
        display: block;
        overflow: hidden;
        max-width: 164px;
        color: #9fb9c7;
        font-size: 6.5px;
        font-weight: 700;
        letter-spacing: .055em;
        line-height: 1.1;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-toggle {
        position: static !important;
        right: auto !important;
        grid-template-columns: 32px minmax(0, 1fr);
        justify-items: start;
        width: calc(100% - 16px) !important;
        margin: 0 8px 8px !important;
        padding: 0 12px !important;
        border-color: rgba(154, 194, 215, .45) !important;
        background: rgba(255, 255, 255, .07) !important;
        color: #dcecf4 !important;
        box-shadow: none !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-toggle-text {
        display: block;
        overflow: hidden;
        width: 100%;
        color: inherit;
        font-size: 10px;
        font-weight: 720;
        line-height: 1.15;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-toggle:hover,
    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-toggle:focus-visible {
        border-color: rgba(185, 220, 238, .7) !important;
        background: rgba(255, 255, 255, .14) !important;
        color: #fff !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-nav {
        gap: 4px;
        padding: 10px 8px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-color: #426579 transparent;
        scrollbar-width: thin;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-trigger {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) 16px;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 9px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 6px 9px !important;
        text-align: left;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-group.is-active .gw-rail-trigger::before {
        left: -8px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-icon {
        width: 34px;
        height: 32px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-label {
        display: block;
        overflow: hidden;
        max-width: none;
        color: inherit;
        font-size: 12px;
        font-weight: 760;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-copy > small {
        display: block;
        overflow: hidden;
        color: #8fa9b8 !important;
        font-size: 8px;
        font-weight: 650;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-group.is-active .gw-rail-copy > small,
    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-group.is-open .gw-rail-copy > small {
        color: #c8dce7 !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-chevron {
        display: block;
        color: #90aab9;
        font: 800 16px/1 var(--gw-font);
        text-align: center;
        transition: transform .16s ease;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-group.is-open .gw-rail-chevron {
        transform: rotate(90deg);
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-flyout,
    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-group.is-open .gw-rail-flyout {
        position: static;
        inset: auto;
        width: 100%;
        margin: 4px 0 6px;
        overflow: hidden;
        border-color: #416276;
        border-radius: 4px;
        background: #0b2230;
        box-shadow: none;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-flyout::before,
    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-flyout-head {
        display: none;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-flyout-links {
        gap: 4px;
        padding: 5px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-link {
        grid-template-columns: 43px minmax(0, 1fr) auto;
        gap: 7px;
        min-height: 48px;
        padding: 6px 7px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-link-copy > strong {
        font-size: 10.5px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-link-copy > small {
        font-size: 7.5px;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-logout {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        min-height: 52px;
        padding: 9px 16px;
        font-size: 10px;
    }
}

@media (max-width: 760px) {
    html.gw-enabled body.gw-application .gw-rail-toggle {
        display: none !important;
    }

    html.gw-enabled body.gw-application .gw-rail-head > .gw-brand {
        justify-content: flex-start;
        padding: 0 14px;
    }

    html.gw-enabled body.gw-application .gw-rail-head > .gw-brand .gw-brand-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    html.gw-enabled body.gw-application .gw-rail-head > .gw-brand .gw-brand-word {
        display: block;
        margin: 0;
        color: #fff;
        font-size: 14px;
        font-weight: 780;
        letter-spacing: .11em;
    }

    html.gw-enabled body.gw-application .gw-rail-head > .gw-brand .gw-brand-slogan {
        display: block;
        color: #9fb9c7;
        font-size: 6.5px;
        font-weight: 700;
        letter-spacing: .05em;
        line-height: 1.1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    html.gw-enabled body.gw-application .gw-rail-copy {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    html.gw-enabled body.gw-application .gw-rail-copy > small {
        display: block;
        overflow: hidden;
        color: #8fa9b8 !important;
        font-size: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.gw-enabled body.gw-application .gw-rail-chevron {
        display: block;
        color: #9cb2bf;
        font: 800 16px/1 var(--gw-font);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.gw-enabled body.gw-application .gw-shell,
    html.gw-enabled body.gw-application .gw-shell > .gw-rail,
    html.gw-enabled body.gw-application .gw-rail-trigger,
    html.gw-enabled body.gw-application .gw-rail-chevron {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Dashboard command center v52
   Adaptive desktop density for 100% and 125% Windows display scaling.
   -------------------------------------------------------------------------- */
html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] {
    min-height: 100% !important;
    padding: 12px 14px 18px !important;
    gap: 12px !important;
    background: #edf2f4 !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
    min-height: 112px !important;
    padding: 15px 16px !important;
    gap: 7px !important;
    border-top: 1px solid #c7d4da !important;
    border-right: 1px solid #c7d4da !important;
    border-bottom: 1px solid #c7d4da !important;
    border-radius: 4px !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > span {
    color: #526d7a !important;
    font-size: 10.5px !important;
    font-weight: 820 !important;
    letter-spacing: .065em !important;
    line-height: 1.15 !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > strong {
    margin: 4px 0 2px !important;
    color: #17384b !important;
    font: 850 clamp(30px, 2.45vw, 42px)/1 var(--gw-mono) !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > small {
    color: #647b86 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > #dashboardOperationsOverview.gw-view-active {
    min-height: clamp(560px, calc(100dvh - 500px), 880px) !important;
    border-color: #b9c8cf !important;
    box-shadow: 0 5px 16px rgba(15, 42, 58, .075) !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-head {
    min-height: 58px !important;
    padding: 11px 14px !important;
    background:
        linear-gradient(90deg, #e8f0f3 0, #f7f9fa 48%, #f4f7f8 100%) !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-head h2 {
    margin-bottom: 4px !important;
    font-size: 17px !important;
    font-weight: 780 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-head p {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-body {
    grid-template-rows: auto auto minmax(210px, 1fr) minmax(96px, auto) !important;
    min-height: 500px !important;
    height: calc(100% - 58px) !important;
    gap: 11px !important;
    padding: 11px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status {
    min-height: 56px !important;
    padding: 10px 12px 10px 14px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status strong {
    font-size: 12.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status span {
    font-size: 10.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-status > .btn {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 9.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats {
    gap: 10px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats > article {
    min-height: 72px !important;
    padding: 10px 12px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats span {
    font-size: 9.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats strong {
    font-size: 29px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-stats small {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-grid {
    min-height: 210px !important;
    gap: 11px !important;
    align-items: stretch !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-overview-panel, .dashboard-recent-activity) {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head {
    min-height: 48px !important;
    padding: 9px 11px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head strong {
    font-size: 11.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head span {
    font-size: 9.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-panel-head :is(a, button) {
    min-height: 30px !important;
    padding: 0 9px !important;
    font: 800 9px/28px var(--gw-font) !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-list, .dashboard-overview-priority-list) {
    min-height: 0 !important;
    height: 100% !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item) {
    min-height: 50px !important;
    padding: 8px 10px !important;
}

html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item) > time {
    font-size: 11px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-item-copy strong {
    font-size: 10.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-item-copy span {
    font-size: 9.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-state {
    min-width: 60px !important;
    padding: 5px 7px !important;
    font-size: 8.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-overview-empty {
    min-height: 100% !important;
    font-size: 10.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity {
    min-height: 98px !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-list {
    height: 100% !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item {
    min-height: 62px !important;
    padding: 9px 11px !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item time {
    font-size: 10px !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item strong {
    font-size: 10.5px !important;
}

html.gw-enabled body.gw-module-index .dashboard-recent-activity-item span {
    font-size: 9.5px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar.gw-inspector {
    gap: 10px !important;
    padding: 10px !important;
    background:
        linear-gradient(180deg, #eef3f5 0%, #e8eef1 100%) !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-head {
    min-height: 62px !important;
    padding: 9px !important;
    border-radius: 4px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-title {
    font-size: 16px !important;
    line-height: 1.1 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar :is(.context-subtitle, .context-meta) {
    font-size: 10px !important;
    line-height: 1.25 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-note {
    padding: 9px 10px !important;
    border-radius: 4px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .fast-planning-console {
    gap: 9px !important;
    padding: 10px !important;
    border-radius: 4px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .fast-planning-head strong {
    font-size: 13px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .fast-planning-head span {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .priority-list {
    gap: 7px !important;
    margin-top: 1px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .priority-item {
    min-height: 62px !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 3px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .priority-item strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .priority-item span {
    font-size: 9px !important;
    line-height: 1.2 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .priority-item time {
    font-size: 9px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-detail {
    gap: 9px !important;
    padding: 10px !important;
    border-radius: 4px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-detail-head span {
    font-size: 9px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-detail-head strong {
    margin-top: 3px !important;
    font-size: 14px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-detail-field {
    padding: 8px !important;
    border-radius: 3px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-detail-field label {
    font-size: 8.5px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-detail-field b {
    font-size: 11px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-card strong {
    font-size: 11px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-card span {
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-summary {
    min-height: 40px !important;
    padding: 9px !important;
    font-size: 10px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-link {
    min-height: 32px !important;
    font-size: 9px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .context-feed-title {
    font-size: 8.5px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .feed-event {
    min-height: 44px !important;
    font-size: 9px !important;
}

html.gw-enabled body.gw-module-index #dashboardContextSidebar .gw-utility-dock {
    margin-top: auto !important;
}

@media (min-width: 1600px) and (min-height: 850px) {
    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] {
        padding: 15px 18px 20px !important;
        gap: 14px !important;
    }

    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
        min-height: 124px !important;
        padding: 17px 19px !important;
    }

    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > span {
        font-size: 11.5px !important;
    }

    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > strong {
        font-size: 43px !important;
    }

    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active > small {
        font-size: 11.5px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-head {
        min-height: 64px !important;
        padding: 12px 16px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-head h2 {
        font-size: 19px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-head p,
    html.gw-enabled body.gw-module-index .dashboard-overview-status span {
        font-size: 11.5px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-status strong {
        font-size: 13.5px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-stats span {
        font-size: 10.5px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-stats strong {
        font-size: 34px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-stats small,
    html.gw-enabled body.gw-module-index .dashboard-overview-panel-head span,
    html.gw-enabled body.gw-module-index .dashboard-overview-item-copy span,
    html.gw-enabled body.gw-module-index .dashboard-recent-activity-item span {
        font-size: 10.5px !important;
    }

    html.gw-enabled body.gw-module-index .dashboard-overview-panel-head strong,
    html.gw-enabled body.gw-module-index .dashboard-overview-item-copy strong,
    html.gw-enabled body.gw-module-index .dashboard-recent-activity-item strong {
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-index :is(.dashboard-upcoming-item, .dashboard-overview-priority-item) {
        min-height: 58px !important;
    }
}

@media (max-height: 800px) and (min-width: 1181px) {
    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] {
        padding-top: 10px !important;
        gap: 10px !important;
    }

    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > .metric-card.gw-view-active {
        min-height: 104px !important;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }

    html.gw-enabled body.gw-module-index main.gw-page[data-gw-view="kennzahlen"] > #dashboardOperationsOverview.gw-view-active {
        min-height: 540px !important;
    }
}

@media (min-width: 761px) and (max-width: 1380px) {
    html.gw-enabled body.gw-module-index.gw-rail-expanded .gw-page-options-title {
        flex-basis: 92px !important;
        min-width: 92px !important;
        padding-inline: 8px !important;
    }

    html.gw-enabled body.gw-module-index.gw-rail-expanded .gw-page-options .gw-page-option {
        flex: 1 1 104px !important;
        min-width: 102px !important;
        max-width: 132px !important;
        gap: 6px !important;
        padding-inline: 7px !important;
    }

    html.gw-enabled body.gw-module-index.gw-rail-expanded .gw-page-options .gw-page-option-copy > strong {
        font-size: 9.5px !important;
    }
}

/* --------------------------------------------------------------------------
   High-resolution readability authority v61
   1900px+ workspaces keep enterprise density without microscopic typography.
   This block must remain last so later module additions cannot cancel it.
   -------------------------------------------------------------------------- */
@media (min-width: 1900px) and (min-height: 900px) {
    html.gw-enabled body.gw-application {
        --gw-command: 64px;
        font-size: 15px !important;
    }

    html.gw-enabled body.gw-application .gw-commandbar {
        height: var(--gw-command) !important;
        padding-inline: 18px !important;
    }

    html.gw-enabled body.gw-application .gw-command-product,
    html.gw-enabled body.gw-application .gw-command-context strong,
    html.gw-enabled body.gw-application .gw-command-status,
    html.gw-enabled body.gw-application .gw-command-action {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-application .gw-stage > main.gw-page {
        gap: 14px !important;
        padding: 18px 20px 26px !important;
    }

    html.gw-enabled body.gw-application .gw-page-header {
        min-height: 110px !important;
        padding: 17px 20px !important;
    }

    html.gw-enabled body.gw-application .gw-page-title-row h1 {
        font-size: 32px !important;
        line-height: 1.08 !important;
    }

    html.gw-enabled body.gw-application .gw-page-intro > p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    html.gw-enabled body.gw-application .gw-page-options {
        min-height: 64px !important;
    }

    html.gw-enabled body.gw-application .gw-page-options-title {
        flex-basis: 158px !important;
        min-width: 158px !important;
        padding-inline: 16px !important;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option {
        min-width: 154px !important;
        min-height: 63px !important;
        gap: 10px !important;
        padding: 9px 17px !important;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option > strong,
    html.gw-enabled body.gw-application .gw-page-options .gw-page-option-copy > strong {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    html.gw-enabled body.gw-application .gw-page-options .gw-page-option :is(span, small),
    html.gw-enabled body.gw-application .gw-page-options-title :is(span, small) {
        font-size: 10px !important;
    }

    html.gw-enabled body.gw-application main.gw-page :is(input, select, textarea, button) {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-application main.gw-page table {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-application main.gw-page table th {
        padding-top: 11px !important;
        padding-bottom: 11px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    html.gw-enabled body.gw-application main.gw-page table td {
        padding-top: 11px !important;
        padding-bottom: 11px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-trigger {
        height: 58px !important;
        min-height: 58px !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-label {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-copy > small {
        font-size: 9.5px !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-toggle-text,
    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-logout {
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel.gw-inspector {
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        padding: 0 16px 18px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-head {
        min-height: 142px !important;
        padding: 20px 58px 20px 20px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-title {
        font-size: 21px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-subtitle {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel :is(.gavio-context-kicker, .gavio-context-sync),
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-label > span,
    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-section-title > span {
        font-size: 10px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus {
        gap: 9px !important;
        margin: 16px 0 !important;
        padding: 16px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus-title {
        font-size: 16px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-focus > p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link {
        grid-template-columns: 38px minmax(0, 1fr) auto auto !important;
        min-height: 60px !important;
        padding: 10px 12px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 10px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > strong {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-application .gw-context-panel .gavio-context-link-text > small {
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-shell {
        gap: 12px !important;
        padding: 12px !important;
        font-size: 15px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-toolbar {
        min-height: 70px !important;
        padding: 11px 13px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-toolbar label,
    html.gw-enabled body.gw-module-jahressicht .year2-kicker {
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-control,
    html.gw-enabled body.gw-module-jahressicht .year2-button {
        min-height: 38px !important;
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-kpi {
        min-height: 96px !important;
        padding: 15px 16px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-kpi > span,
    html.gw-enabled body.gw-module-jahressicht .year2-kpi > small {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-kpi > strong {
        font-size: 25px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-view {
        padding: 16px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-view-head h2 {
        font-size: 22px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-view-head p {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-status {
        padding: 5px 9px !important;
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-module-jahressicht .year2-workflow-footer {
        min-height: 64px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-shell {
        gap: 12px !important;
        padding: 12px !important;
        font-size: 15px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-panel {
        padding: 14px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi {
        min-height: 92px !important;
        padding: 14px 16px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi strong {
        font-size: 27px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi :is(.ava-label, small),
    html.gw-enabled body.gw-module-dostupnost .ava-live-state,
    html.gw-enabled body.gw-module-dostupnost .ava-legend-item {
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-button,
    html.gw-enabled body.gw-module-dostupnost .ava-control,
    html.gw-enabled body.gw-module-dostupnost .ava-tab {
        min-height: 38px !important;
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-grid .ava-worker-column {
        width: 235px !important;
        min-width: 235px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-worker-name {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-worker-meta,
    html.gw-enabled body.gw-module-dostupnost .ava-cell-code,
    html.gw-enabled body.gw-module-dostupnost .ava-shift-count {
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-cell {
        width: 31px !important;
        min-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-strip {
        gap: 12px !important;
        padding: 13px !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card {
        min-height: 88px !important;
        padding: 14px 15px !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card strong {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card span {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    html.gw-enabled body.gw-module-admin .admin-command-card b {
        min-width: 40px !important;
        min-height: 36px !important;
        font-size: 14px !important;
    }

    html.gw-enabled body.gw-module-admin :is(.admin-panel, .onboarding-panel) {
        padding: 16px !important;
    }

    html.gw-enabled body.gw-module-admin :is(.admin-panel h2, .report-center-head h2) {
        font-size: 18px !important;
    }

    html.gw-enabled body.gw-module-admin .admin-meta,
    html.gw-enabled body.gw-module-admin .notification-item small {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    html.gw-enabled body.gw-module-admin .notification-item {
        min-height: 82px !important;
        padding: 14px 16px !important;
    }

    html.gw-enabled body.gw-module-admin .notification-item strong {
        font-size: 13px !important;
    }
}

/* --------------------------------------------------------------------------
   Availability workspace hierarchy v62
   The shared page header already carries the module identity. Keep the local
   header as a compact command bar so the operational matrix starts above the
   fold instead of repeating the title and consuming half of the viewport.
   -------------------------------------------------------------------------- */
@media (min-width: 1900px) and (min-height: 900px) {
    html.gw-enabled body.gw-module-dostupnost .gw-stage > main.gw-page {
        gap: 10px !important;
        padding: 12px 14px 18px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .gw-page-header {
        min-height: 88px !important;
        padding: 12px 16px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .gw-page-options {
        min-height: 54px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .gw-page-options-title {
        flex-basis: 150px !important;
        min-width: 150px !important;
        padding-inline: 13px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .gw-page-options .gw-page-option {
        min-height: 53px !important;
        padding: 6px 14px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-shell {
        gap: 8px !important;
        padding: 8px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-page-header {
        min-height: 50px !important;
        padding: 6px 10px !important;
        border-top-width: 2px !important;
        justify-content: flex-end !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-page-header > div:first-child {
        display: flex !important;
        align-items: center !important;
        min-width: max-content !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-page-header > div:first-child :is(h1, p) {
        display: none !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-page-header .ava-kicker {
        font-size: 10.5px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-header-actions {
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 7px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpis {
        gap: 7px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        min-height: 64px !important;
        padding: 8px 12px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi .ava-label {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: end !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi strong {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        margin: 0 0 0 12px !important;
        font-size: 26px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-kpi small {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: start !important;
        margin-top: 3px !important;
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-tabs {
        min-height: 46px !important;
        padding: 5px 8px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-tab {
        min-height: 34px !important;
        padding: 6px 11px !important;
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-toolbar {
        min-height: 46px !important;
        padding: 5px 8px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-button,
    html.gw-enabled body.gw-module-dostupnost .ava-control {
        min-height: 34px !important;
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-legend {
        min-height: 34px !important;
        padding: 5px 8px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-legend-item {
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-grid thead th {
        height: 52px !important;
        padding: 7px 5px !important;
        font-size: 11px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-grid tbody td {
        height: 54px !important;
        padding: 5px !important;
        font-size: 12px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-grid .ava-worker-column {
        width: 235px !important;
        min-width: 235px !important;
        padding: 7px 11px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-worker-name {
        font-size: 13px !important;
    }

    html.gw-enabled body.gw-module-dostupnost .ava-worker-meta {
        margin-top: 3px !important;
        font-size: 11px !important;
    }
}

/* Visible context edge final authority v69. */
@media (min-width: 761px) and (max-width: 1180px) {
    html.gw-enabled body.gw-application .gw-stage,
    html.gw-enabled body.gw-application .gw-stage:has(> .gw-inspector) {
        grid-template-columns: minmax(0, 1fr) 42px !important;
    }

    html.gw-enabled body.gw-application .gw-stage > .gw-inspector,
    html.gw-enabled body.gw-application div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
    html.gw-enabled body.gw-application div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
        position: relative !important;
        inset: auto !important;
        z-index: 1 !important;
        grid-column: 2 !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        background: #123a52 !important;
        box-shadow: none !important;
    }

    html.gw-enabled body.gw-application:not(.gw-context-open) .gw-stage > .gw-inspector
        > :not(.gw-inspector-collapse) {
        display: none !important;
    }

    html.gw-enabled body.gw-application:not(.gw-context-open) .gw-inspector > .gw-inspector-collapse {
        top: 12px !important;
        right: 5px !important;
    }

    html.gw-enabled body.gw-application.gw-context-open .gw-stage > .gw-inspector,
    html.gw-enabled body.gw-application.gw-context-open div.gw-stage > aside#gavioContextSidebar.gw-inspector.gw-context-panel,
    html.gw-enabled body.gw-application.gw-context-open div.gw-stage > aside#dashboardContextSidebar.gw-inspector.gw-context-panel {
        position: fixed !important;
        top: var(--gw-command) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 180 !important;
        width: var(--gw-inspector) !important;
        min-width: var(--gw-inspector) !important;
        max-width: var(--gw-inspector) !important;
        height: calc(100dvh - var(--gw-command)) !important;
        padding: 0 !important;
        overflow: auto !important;
        background: #fff !important;
        box-shadow: -12px 0 30px rgba(17, 31, 37, .18) !important;
    }
}

/* Stable navigation targets: rail expansion must never move a module under the pointer. */
@media (min-width: 761px) {
    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-nav {
        gap: 6px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    html.gw-enabled body.gw-application.gw-rail-expanded .gw-rail-trigger {
        height: 62px !important;
        min-height: 62px !important;
    }
}
