.workspace {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text)
}

.sidebar {
    width: 244px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    padding: 29px 18px 0;
    overflow-y: auto
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: var(--sidebar-text-strong);
    padding: 0 12px;
    text-align: left;
    min-height: 44px
}

.workspace-brand strong {
    font: 800 31px 'Manrope', sans-serif;
    letter-spacing: -1.6px
}

.workspace-brand strong>span {
    color: var(--brand-gold)
}

.workspace-brand small {
    font-size: 8px;
    letter-spacing: 2px;
    border-left: 1px solid var(--sidebar-border);
    padding-left: 11px;
    margin: 8px 0 0 3px;
    color: var(--sidebar-muted)
}

.workspace-brand .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: var(--radius-lg)
}

.warehouse-choice {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--sidebar-border);
    background: var(--sidebar-surface);
    border-radius: var(--radius-lg);
    padding: 12px 10px;
    margin: 29px 0 24px
}

.warehouse-avatar {
    display: grid;
    place-items: center;
    color: var(--sidebar-text);
    width: 30px;
    flex-shrink: 0
}

.warehouse-choice strong {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--sidebar-text-strong)
}

.warehouse-choice div>span {
    display: block;
    font-size: 8px;
    margin-top: 5px;
    color: var(--sidebar-muted)
}

.nav-caption {
    font-size: 8px;
    letter-spacing: 1.7px;
    margin: 21px 14px 10px;
    color: var(--sidebar-muted)
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: var(--radius);
    color: var(--sidebar-text-strong);
    background: var(--sidebar-surface);
    text-align: left;
    padding: 10px 13px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 8px 0 6px;
    cursor: pointer
}

.nav-section:hover {
    background: var(--sidebar-hover);
    color: var(--orange)
}

/* The icon of the section (svg) comes first, so the caption is the first span, not the first child. */
.nav-section>svg {
    flex-shrink: 0;
    color: var(--orange)
}

.nav-section>span:first-of-type {
    flex: 1
}

.nav-section-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s
}

.nav-section-icon::after {
    content: '▶';
    font-size: 10px;
    color: var(--orange)
}

.nav-section.expanded .nav-section-icon::after {
    transform: rotate(90deg)
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    background: none;
    text-align: left;
    padding: 10px 13px;
    font-size: 11px;
    margin: 3px 0
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-strong)
}

.nav-item svg {
    stroke-width: 1.6;
    flex-shrink: 0
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text)
}

.nav-active-dot {
    margin-left: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange)
}

.nav-item:not(.active) .nav-active-dot {
    display: none
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px
}

.sidebar-note {
    font-size: 9px;
    padding: 15px 6px;
    color: var(--sidebar-muted);
    display: flex;
    align-items: center;
    gap: 8px
}

/* Signed-in user in the top bar (was the operator block at the bottom of the menu). */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0
}

.topbar-user>div {
    min-width: 0;
    line-height: 1.2
}

.workspace-topbar .topbar-user strong {
    display: block;
    max-width: 180px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.topbar-user div>span {
    display: block;
    max-width: 180px;
    margin-top: 3px;
    font-size: 9px;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.topbar-user button {
    display: flex;
    padding: 6px;
    background: none;
    border: 0;
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer
}

.topbar-user button:hover {
    background: var(--hover);
    color: var(--orange)
}

.workspace-main {
    margin-left: 244px;
    min-width: 0;
    width: calc(100% - 244px)
}

.workspace-topbar {
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 36px;
    background: var(--surface);
    border-bottom: 1px solid var(--border)
}

.workspace-topbar>div {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 10px;
    color: var(--text-faint)
}

.workspace-topbar strong {
    font-weight: 500;
    color: var(--text-2)
}

.breadcrumb-separator {
    color: var(--text-placeholder)
}

.dashboard-main {
    max-width: 1480px;
    margin: auto;
    padding: 34px 36px 24px
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px
}

.dashboard-eyebrow {
    font-size: 8px;
    color: var(--text-faint);
    letter-spacing: 1.8px;
    font-weight: 600
}

.dashboard-heading h1 {
    font: 800 31px/1.3 'Manrope', sans-serif;
    letter-spacing: -1.2px;
    margin: 8px 0;
    color: var(--text)
}

.dashboard-heading h1>span {
    color: var(--orange)
}

.dashboard-heading p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0
}

.dashboard-date {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0
}

.dashboard-date>span {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
    font-size: 9px;
    color: var(--text-faint);
    margin-top: 9px
}

.demo-banner {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--primary-border);
    background: var(--primary-soft);
    border-radius: var(--radius);
    padding: 11px 14px;
    margin-bottom: 27px;
    color: var(--primary-text)
}

.demo-banner>svg {
    flex-shrink: 0
}

.demo-banner p {
    margin: 0;
    font-size: 9px;
    line-height: 1.6
}

.demo-banner p strong {
    font-weight: 600;
    margin-right: 9px
}

.demo-tag {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    font-size: 6px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-text);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    padding: 2px 4px;
    border-radius: var(--radius-xs)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px
}

.section-heading h2 {
    font: 700 15px 'Manrope', sans-serif;
    letter-spacing: -.3px;
    margin: 0
}

.section-heading p {
    font-size: 10px;
    color: var(--text-faint);
    margin: 5px 0 0
}

.period-select {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 9px
}

.period-select select {
    border: 1px solid var(--border);
    background: var(--field-bg);
    color: var(--text-2);
    outline-color: var(--focus-ring)
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px
}

.metric-card {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius)
}

.metric-card>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px
}

.metric-card>div>span:first-child {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.5
}

.tone-orange {
    --tone: var(--orange);
    --tint: var(--orange-tint)
}

.tone-blue {
    --tone: var(--blue);
    --tint: var(--blue-tint)
}

.tone-purple {
    --tone: var(--purple);
    --tint: var(--purple-tint)
}

.tone-slate {
    --tone: var(--slate);
    --tint: var(--slate-tint)
}

.metric-icon {
    background: var(--tint);
    color: var(--tone);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0
}

.metric-card>strong {
    font: 800 28px 'Manrope', sans-serif;
    letter-spacing: -1px;
    display: block;
    margin: 13px 0 5px
}

.metric-card>p {
    font-size: 8px;
    color: var(--text-faint);
    margin: 0
}

.charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
    gap: 18px
}

.chart-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px
}

.chart-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start
}

.chart-heading h3 {
    font-size: 11px;
    font-weight: 600;
    margin: 0
}

.chart-heading p {
    font-size: 8px;
    color: var(--text-faint);
    margin: 6px 0 0
}

.chart-heading>svg {
    color: var(--text-faint);
    flex-shrink: 0;
    stroke-width: 1.5
}

.chart-legend {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin: 16px 0 9px;
    font-size: 8px;
    color: var(--text-muted)
}

.chart-legend i,
.occupancy-legend i {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-xs);
    display: inline-block;
    flex-shrink: 0
}

.flow-chart {
    display: flex;
    height: 166px;
    gap: 13px;
    padding-top: 4px
}

.y-rubist {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 23px;
    font-size: 7px;
    color: var(--text-faint);
    width: 25px;
    text-align: right
}

.bars-area {
    display: flex;
    justify-content: space-around;
    position: relative;
    flex: 1;
    min-width: 0;
    gap: 5px
}

.chart-gridlines {
    position: absolute;
    inset: 0 0 23px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.chart-gridlines i {
    width: 100%;
    border-top: 1px dashed var(--chart-grid)
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
    min-width: 0
}

.bar-pair {
    height: calc(100% - 23px);
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    padding: 0 5px
}

.chart-bar {
    width: 16px;
    max-width: 30%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-width: 4px;
    transition: height .35s
}

.incoming {
    background: linear-gradient(var(--chart-orange-light), var(--chart-orange))
}

.outgoing {
    background: linear-gradient(var(--chart-blue-light), var(--chart-blue))
}

.bar-group>span {
    font-size: 8px;
    color: var(--text-faint);
    line-height: 23px
}

.chart-footnote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 13px;
    padding-top: 12px;
    font-size: 9px;
    color: var(--text-faint)
}

.chart-footnote strong {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600
}

.chart-footnote small {
    font-size: 8px;
    color: var(--text-faint);
    font-weight: 400;
    margin-left: 3px
}

.donut-wrap {
    position: relative;
    margin: 11px auto 8px;
    width: 155px;
    height: 155px
}

.occupancy-donut {
    width: 100%;
    height: 100%
}

.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

.donut-center>strong {
    font: 800 30px 'Manrope', sans-serif;
    letter-spacing: -1px
}

.donut-center strong>span {
    font-size: 15px;
    color: var(--text-faint);
    margin-left: 2px
}

.donut-center>span {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    margin-top: 4px
}

.occupancy-legend {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 8px;
    color: var(--text-muted)
}

.occupancy-legend strong {
    margin-left: auto;
    color: var(--text-muted);
    font-weight: 500
}

.occupancy-volume {
    justify-content: center
}

.occupancy-status {
    margin: 13px 0 0;
    font-size: 8px;
    line-height: 1.5;
    color: var(--text-faint);
    text-align: center
}

.occupancy-status.is-error {
    color: var(--danger-text)
}

.slate {
    background: var(--slate)
}

.quick-access {
    margin-top: 30px
}

.module-search {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--field-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-faint)
}

.module-search input {
    font-size: 9px;
    outline: 0;
    border: 0;
    background: transparent;
    min-width: 0;
    width: 150px;
    color: var(--text-2)
}

.module-search input::placeholder {
    color: var(--text-faint)
}

.module-search:focus-within {
    border-color: var(--focus-ring);
    box-shadow: 0 0 0 2px var(--focus-shadow)
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px
}

.module-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: var(--text-2);
    transition: transform .2s, border-color .2s, box-shadow .2s
}

.module-card>span {
    width: 44px;
    height: 44px;
    background: var(--tint);
    color: var(--tone);
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center
}

.module-card strong {
    font-size: 10px;
    font-weight: 500
}

.module-card:hover {
    border-color: var(--tone);
    box-shadow: 0 6px 17px var(--shadow);
    transform: translateY(-3px)
}

.module-card:hover strong {
    color: var(--tone)
}

.empty-search {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 30px;
    border: 1px dashed var(--border);
    border-radius: var(--radius)
}

.empty-search button {
    display: block;
    margin: 12px auto 0;
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 11px
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--text-faint)
}

.dashboard-footer>span:last-child {
    letter-spacing: 0;
    font-size: 8px
}

.dashboard-footer i {
    width: 3px;
    height: 3px;
    background: var(--orange);
    border-radius: 50%
}

.nav-toggle,
.nav-close,
.nav-scrim {
    display: none
}

.module-page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 470px;
    padding: 30px
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 11px;
    padding: 0;
    margin-bottom: 40px
}

.module-placeholder-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: var(--tint);
    color: var(--tone);
    display: grid;
    place-items: center;
    margin-bottom: 25px
}

.module-page h1 {
    font: 800 32px 'Manrope', sans-serif;
    letter-spacing: -1px;
    margin: 8px 0 14px;
    color: var(--text-2)
}

.module-page p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px
}

.module-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    color: var(--warning-text);
    background: var(--warning-soft);
    margin: 10px 0
}

.module-status span {
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%
}

.module-explanation {
    font-size: 11px !important
}

.workspace button:focus-visible,
.workspace input:focus-visible,
.workspace select:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px
}

@media(min-width:1500px) {
    .dashboard-main {
        padding-top: 43px
    }

    .metrics-grid {
        gap: 20px
    }

    .metric-card {
        padding: 20px
    }

    .flow-chart {
        height: 200px
    }

    .module-card {
        min-height: 140px
    }

    .donut-wrap {
        width: 175px;
        height: 175px;
        margin-top: 15px;
        margin-bottom: 17px
    }
}

@media(max-width:1150px) {
    .sidebar {
        width: 214px;
        padding-left: 13px;
        padding-right: 13px
    }

    .workspace-main {
        margin-left: 214px;
        width: calc(100% - 214px)
    }

    .workspace-topbar {
        padding: 0 25px
    }

    .dashboard-main {
        padding: 26px 25px
    }

    .metrics-grid {
        gap: 10px
    }

    .metric-card {
        padding: 13px
    }

    .metric-card>strong {
        font-size: 25px
    }

    .charts-grid {
        gap: 13px;
        grid-template-columns: minmax(0, 1.55fr) minmax(225px, 1fr)
    }

    .chart-panel {
        padding: 17px
    }

    .module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .demo-banner p span {
        display: block
    }

    .dashboard-heading h1 {
        font-size: 28px
    }
}

@media(max-width:850px) {
    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .charts-grid {
        grid-template-columns: 1fr
    }

    .occupancy-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        column-gap: 20px
    }

    .occupancy-panel .chart-heading {
        grid-column: 1/-1
    }

    .occupancy-panel .donut-wrap {
        margin: 17px auto 0
    }

    .occupancy-legend {
        font-size: 10px;
        gap: 15px
    }

    .dashboard-date {
        display: none
    }


    .module-search input {
        width: 110px
    }

    .module-card strong {
        font-size: 9px
    }

    .dashboard-footer>span:last-child {
        display: none
    }
}

@media(max-width:640px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
        width: 244px
    }

    .sidebar.is-open {
        transform: translateX(0)
    }

    .workspace-main {
        margin-left: 0;
        width: 100%
    }

    .workspace-topbar {
        height: 50px;
        padding: 0 18px
    }

    .workspace-topbar>div {
        gap: 10px
    }

    .nav-toggle {
        display: flex;
        border: 0;
        background: none;
        color: var(--text-2);
        padding: 0
    }

    .nav-close {
        display: flex;
        position: absolute;
        right: 13px;
        top: 15px;
        background: none;
        border: 0;
        color: var(--sidebar-text);
        padding: 4px
    }

    .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 25;
        background: var(--scrim);
        border: 0
    }

    .dashboard-main {
        padding: 25px 18px
    }

    .dashboard-heading h1 {
        font-size: 27px
    }


    .dashboard-heading p {
        font-size: 10px
    }

    .demo-banner {
        padding: 10px;
        font-size: 9px
    }

    .section-heading {
        gap: 10px
    }

    .section-heading h2 {
        font-size: 14px
    }

    .period-select {
        font-size: 0;
        gap: 0
    }

    .metric-card>div>span:first-child {
        font-size: 9px
    }

    .metric-card>strong {
        font-size: 26px
    }

    .metric-card>p {
        font-size: 8px
    }

    .charts-grid {
        gap: 14px
    }

    .quick-access>.section-heading {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 13px
    }

    .module-search {
        width: 100%
    }

    .module-search input {
        width: 100%
    }

    .module-grid {
        gap: 10px
    }

    .module-card {
        min-height: 108px;
        gap: 12px
    }

    .module-card>span {
        width: 39px;
        height: 39px
    }

    .module-card strong {
        font-size: 9px
    }

    .module-card svg {
        width: 24px
    }

    .occupancy-panel {
        column-gap: 10px
    }

    .occupancy-legend {
        font-size: 9px
    }

    .module-page {
        padding: 23px
    }

    .dashboard-footer {
        font-size: 6px
    }
}

@media(prefers-reduced-motion:reduce) {
    .workspace * {
        transition: none !important
    }
}

.workspace-brand {
    padding-left: 6px;
    padding-right: 6px
}

.workspace-brand strong {
    font-size: 26px;
    letter-spacing: -1px
}

.workspace-brand small {
    letter-spacing: 1.5px;
    padding-left: 8px;
    margin-left: 0
}

.master-warehouse-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    height: 100%
}

.master-warehouse-selector select {
    max-width: 230px;
    border: 1px solid var(--border);
    background: var(--field-bg);
    color: var(--text-2);
    outline-color: var(--focus-ring);
    height: 32px;
    padding: 6px 10px;
    font-size: 10px
}

@media(max-width:600px) {
    .master-warehouse-selector select {
        max-width: 140px
    }
}

.occupancy-donut .donut-track {
    stroke: var(--chart-track)
}

.occupancy-donut .donut-segment.is-occupied {
    stroke: var(--chart-purple)
}

.occupancy-donut .donut-segment.is-free {
    stroke: var(--chart-blue)
}

.occupancy-donut .donut-segment.is-blocked {
    stroke: var(--chart-slate)
}

/* Right side of the top bar: master warehouse, theme switch (ThemeToggle) and environment. */
/* The sidebar is dark in both themes: its scrollbar follows it. */
.sidebar {
    color-scheme: dark
}

/* Collapsed menu (desktop only): an icon rail. The state is data-sidebar="collapsed" on <html> (wms.js, theme-init.js); the markup is the same, the texts are
   only hidden and every entry has its name in title. On phones (<=640px) the menu is the sliding drawer and the toggle does not exist. */
/* Floating square toggle just OUTSIDE the right edge of the menu (not over the scrollbar of the menu), near the bottom (outside the aside, which clips its overflow). Its left follows the width of the menu. */
.sidebar-toggle {
    position: fixed;
    left: calc(244px + 4px);
    bottom: 28px;
    z-index: 35;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: left .15s ease, color .15s ease, border-color .15s ease
}

.sidebar-toggle:hover {
    color: var(--orange);
    border-color: var(--orange)
}

.sidebar-toggle:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px
}

.sidebar-toggle .lucide-chevron-right,
html[data-sidebar=collapsed] .sidebar-toggle .lucide-chevron-left {
    display: none
}

html[data-sidebar=collapsed] .sidebar-toggle .lucide-chevron-right {
    display: block
}

@media(max-width:1150px) {
    .sidebar-toggle {
        left: calc(214px + 2px)
    }
}

html[data-sidebar=collapsed] .sidebar-toggle {
    left: calc(68px + 4px)
}

@media(min-width:641px) {
    .sidebar {
        transition: width .15s ease
    }

    .workspace-main {
        transition: margin-left .15s ease
    }

    html[data-sidebar=collapsed] .sidebar {
        width: 68px;
        padding-left: 10px;
        padding-right: 10px
    }

    html[data-sidebar=collapsed] .workspace-main {
        margin-left: 68px;
        width: calc(100% - 68px)
    }

    html[data-sidebar=collapsed] .workspace-brand {
        padding: 0;
        justify-content: center
    }

    html[data-sidebar=collapsed] .workspace-brand strong,
    html[data-sidebar=collapsed] .workspace-brand small,
    html[data-sidebar=collapsed] .nav-caption,
    html[data-sidebar=collapsed] .sidebar-note,
    html[data-sidebar=collapsed] .warehouse-choice>div,
    html[data-sidebar=collapsed] .nav-item>span,
    html[data-sidebar=collapsed] .nav-section>span {
        display: none
    }

    html[data-sidebar=collapsed] .warehouse-choice {
        justify-content: center;
        padding: 12px 0;
        margin: 20px 0 14px
    }

    html[data-sidebar=collapsed] .nav-item,
    html[data-sidebar=collapsed] .nav-section {
        justify-content: center;
        padding-left: 0;
        padding-right: 0
    }

}

@media(max-width:640px) {
    .sidebar-toggle {
        display: none
    }
}

@media(max-width:640px) {
    .topbar-user>div,
    .topbar-user-avatar {
        display: none
    }

    /* The sign-out lives in the top bar now, so it must stay on screen on phones: the actions get compact (no "Armazém" label, icon-only theme toggle). */
    .workspace-topbar .topbar-actions {
        gap: 8px;
        min-width: 0
    }

    .workspace-topbar .master-warehouse-selector {
        font-size: 0;
        gap: 0
    }

    .workspace-topbar .master-warehouse-selector select {
        max-width: 110px
    }

    .workspace-topbar .theme-toggle button span {
        display: none
    }

    /* 375 px (validation of the MCP screens, 2026-10-09): the breadcrumb gives way (only the screen title, cut with an ellipsis), so the actions and the
       sign-out never leave the screen (the bar was 13 to 31 px wider than a 375 px phone on every screen with a long title). */
    .workspace-topbar {
        gap: 8px
    }

    .workspace-topbar>div:first-child {
        flex: 1 1 auto;
        min-width: 0
    }

    .workspace-topbar>div:first-child>span {
        display: none
    }

    .workspace-topbar>div:first-child>strong {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

    .workspace-topbar .topbar-actions,
    .workspace-topbar .logout-form {
        flex-shrink: 0
    }
}
