/* OHTech Workflow — Global Styles */

html, body {
    font-family: 'Roboto', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
}

.kanban-column {
    flex: 1 1 0;
    min-width: 150px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

.kanban-column-header {
    padding: 6px 8px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 3px;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 3px 2px;
}

.kanban-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 5px !important;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Status header colours */
.status-created    { background-color: #78909C; }
.status-ready      { background-color: #1E88E5; }
.status-assigned   { background-color: #7B1FA2; }
.status-inprogress { background-color: #F57C00; }
.status-blocked      { background-color: #C62828; }
.status-pending-mgr  { background-color: #00796B; }
.status-pending-admin{ background-color: #0277BD; }
.status-completed    { background-color: #2E7D32; }
.status-cancelled    { background-color: #424242; }

/* Low-stock pulsing animation */
@keyframes low-stock-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.45; }
    100% { opacity: 1; }
}

.low-stock-row {
    animation: low-stock-pulse 2s ease-in-out infinite;
}

/* Wide-column variant — used by Parts Queue (4 columns filling full width) */
.kanban-board--wide .kanban-column {
    flex: 1 1 20%;
    min-width: 220px;
    max-width: none;
}

/* Responsive mobile adjustments */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
    }
    .kanban-column {
        flex: 1 1 auto;
        min-width: 100%;
        max-height: none;
    }
}

/* ── Mobile Bottom Navigation ───────────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-divider);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 1300;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
}

@media (max-width: 959px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2px;
    text-decoration: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0;
    padding: 6px 0;
    transition: color 0.15s;
}

.mobile-tab-label {
    font-size: 0.65rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}

.mobile-tab--active {
    color: var(--mud-palette-primary);
}

.mobile-tab:hover {
    color: var(--mud-palette-primary-lighten);
}
