/* Shared shell styles for the kitchen-station family of pages: the physical
   station dashboards (Kitchen/StationDashboard.razor) and the kitchen-facing
   orders overview (CashierDashboard.razor, "/orders"). Keeping this in one
   place means both surfaces share the exact same dark full-screen chrome and
   station switcher so operators get a consistent experience when jumping
   between them. */

.station-dashboard {
    height: 100vh;
    padding: .75rem 1rem;
    background: #0b0d10;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f4f5f7;
    background: #16191f;
    padding: .55rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #262b34;
    border-left: 3px solid var(--station-color, #e63946);
    flex-shrink: 0;
    transition: padding .15s ease;
}

.station-header.collapsed {
    padding: .15rem .6rem;
    border-radius: 8px;
    border-left-width: 2px;
}

.station-header.collapsed .station-title {
    font-size: .6rem;
    letter-spacing: .04em;
}

.station-header.collapsed .header-collapse-btn {
    width: 20px;
    height: 20px;
}

.station-header.collapsed .header-collapse-btn i {
    font-size: .65rem;
}

.station-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #f4f5f7;
    padding-left: 0;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: font-size .15s ease;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.station-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.header-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #0f1216;
    border: 1px solid #262b34;
    border-radius: 8px;
    color: #8b93a1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease, width .15s ease, height .15s ease;
}

.header-collapse-btn:hover {
    background: #1b1f27;
    color: #d6dae2;
}

.bar-picker,
.station-picker-group {
    display: flex;
    align-items: center;
    gap: .25rem;
    background: #0f1216;
    border: 1px solid #262b34;
    border-radius: 10px;
    padding: .2rem;
}

.bar-picker-btn,
.station-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: transparent;
    border: none;
    color: #8b93a1;
    padding: .35rem .6rem;
    border-radius: 7px;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.bar-picker-label {
    white-space: nowrap;
}

.station-picker-btn {
    padding: .35rem .55rem;
    font-size: 1rem;
}

.bar-picker-btn:hover,
.station-picker-btn:hover {
    background: #1b1f27;
    color: #d6dae2;
}

.bar-picker-btn.active,
.station-picker-btn.active {
    background: var(--station-color, #e63946);
    color: #fff;
}

/* KI-Sortierung header toggle (CashierDashboard) */
.smart-sorting-toggle {
    position: relative;
}

.smart-sorting-btn.active {
    background: #3a86ff;
    color: #fff;
}

.smart-sorting-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 300px;
    background: #14171d;
    border: 1px solid #262b34;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    color: #d6dae2;
    font-size: 0.85rem;
}

.smart-sorting-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.smart-sorting-master {
    font-weight: 700;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed #262b34;
}

.smart-sorting-sub {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: opacity .15s ease;
}

.smart-sorting-sub.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.smart-sorting-numbers {
    display: flex;
    gap: 0.6rem;
}

.smart-sorting-numbers label {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #8b93a1;
}

.smart-sorting-numbers input {
    background: #0f1216;
    border: 1px solid #262b34;
    border-radius: 6px;
    color: #d6dae2;
    padding: 0.25rem 0.4rem;
    width: 100%;
}

.smart-sorting-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #8b93a1;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.15rem 0.3rem;
}

.smart-sorting-close:hover {
    color: #d6dae2;
}
