/* Sound selector bar – tablet orders */
.sound-selector-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sound-selector-bar label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
}

.sound-selector-bar label i {
    color: #3498db;
}

.sound-select {
    padding: 8px 12px;
    font-size: 0.95rem;
    font-family: 'Funnel Sans', sans-serif;
    color: #2c3e50;
    background: #f8f9fa;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    cursor: pointer;
    min-width: 140px;
}

.sound-select:hover {
    border-color: #3498db;
    background: #fff;
}

.sound-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-test-sound {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-family: 'Funnel Sans', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    background: #f0f4f8;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-test-sound:hover {
    background: #e8eef4;
    border-color: #3498db;
    color: #3498db;
}

.btn-test-sound:active {
    background: #dde4ec;
}

.sound-bar-spacer {
    flex: 1;
    min-width: 16px;
}

/* Momenteel buttons (order pressure + deliveries) – base and state colors */
.btn-momenteel {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 12px;
    min-width: 40px;
    font-size: 0.9rem;
    font-family: 'Funnel Sans', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-momenteel-icon {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
}

/* Label kept for JS updates and screen readers; icon is the visible control (title on button for tooltip). */
.btn-momenteel-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Group order pressure + printer status + deliveries on one row (wide screens). */
.sound-bar-quick-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-order-pressure.moment-normal {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.btn-order-pressure.moment-normal:hover {
    background: #c3e6cb;
    border-color: #1e7e34;
}

.btn-order-pressure.moment-busy {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}
.btn-order-pressure.moment-busy:hover {
    background: #ffe69c;
    border-color: #e0a800;
}

.btn-order-pressure.moment-paused {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}
.btn-order-pressure.moment-paused:hover {
    background: #f5c6cb;
    border-color: #bd2130;
}

.btn-deliveries.moment-on {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.btn-deliveries.moment-on:hover {
    background: #c3e6cb;
    border-color: #1e7e34;
}

.btn-deliveries.moment-off {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}
.btn-deliveries.moment-off:hover {
    background: #f5c6cb;
    border-color: #bd2130;
}

/* Orders layout: columns vs rows/cards — both are valid modes, keep green (icon shows active layout) */
.btn-orders-layout.moment-on,
.btn-orders-layout.moment-off {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.btn-orders-layout.moment-on:hover,
.btn-orders-layout.moment-off:hover {
    background: #c3e6cb;
    border-color: #1e7e34;
}

/* USB printer polling status (next to order pressure). Hidden unless USB printer enabled. */
.printer-poll-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 8px 12px;
    min-width: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f0f4f8;
    color: #2c3e50;
    cursor: default;
}

.printer-poll-status i {
    font-size: 1.15rem;
    line-height: 1;
}

.printer-poll-status.is-hidden {
    display: none;
}

.printer-poll-status.is-ok {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.printer-poll-status.is-warn {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}
