/* Picking App - Action Bar Styles */

/* Content Area - Scrollable between status bar and action bar */
.picking-content-area {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0px;
    padding-bottom: 60px; /* Action bar height + extra padding */
    height: calc(100vh - var(--status-bar-height, 60px) - var(--action-bar-height, 72px));
}

/* Action Bar - Fixed Bottom */
.picking-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    gap: 8px;
    padding: 8px;
    transition: bottom 0.2s ease-in-out;
}

/* Primary Action Button - 80% */
.primary-action-button {
    flex: 4;
    height: 56px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    min-width: 0; /* Allow flex shrink */
}

/* Secondary Menu Button - square 56x56. The class lands on MudMenu's outer
   wrapper; we have to push the sizing down to the inner clickable button or
   the wrapper just gains whitespace on the right. */
.secondary-menu-button {
    height: 56px !important;
    width: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px;
}

.secondary-menu-button .mud-button-root,
.secondary-menu-button > button {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
}

.secondary-menu-button:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.12) !important;
    border-color: var(--mud-palette-primary) !important;
}

/* Mobile Keyboard Adjustment */
@media (max-width: 768px) {
    .picking-action-bar.keyboard-open {
        bottom: var(--keyboard-offset, 0px);
    }
}

/* Responsive chip text for status bar badges */
/* Hide chip text on narrow screens (show icons/counts only) */
@media (max-width: 250px) {
    .chip-text {
        display: none;
    }
}

@media (min-width: 251px) and (max-width: 350px) {
    .chip-text {
        display: inline;
        max-width: 40px;
    }
}

/* Show chip text on wider screens */
@media (min-width: 351px) {
    .chip-text {
        display: inline;
        max-width: 100px;
    }
}

/* Limit printer name width with ellipsis truncation */
.chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
