.map-height {
    height: 500px;
}

/* Utility to replace inline max-height used in some scripts */
.img-max-400 {
    max-height: 400px;
}

/* Utility for disabled buttons if needed */
.inline-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Body scroll lock for modals/drawers === */
body.modal-open {
    overflow: hidden;
}

/* === Drawer slide-in animation === */
@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes drawerSlideOut {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}
.drawer-panel {
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.drawer-panel.closing {
    animation: drawerSlideOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === Dispatch table sticky headers === */
#dispatchTableContainer {
    max-height: calc(100vh - 380px);
    overflow-y: auto;
}
#dispatchTableContainer thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0f172a;
}

/* === Dark mode scrollbar styling === */
#dispatchTableContainer::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar {
    width: 6px;
}
#dispatchTableContainer::-webkit-scrollbar-track,
.drawer-body::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}
#dispatchTableContainer::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}
#dispatchTableContainer::-webkit-scrollbar-thumb:hover,
.drawer-body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* === Monospace number alignment === */
.font-tabular {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-variant-numeric: tabular-nums;
}

/* === Kanban board === */
.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    min-height: 400px;
}
.kanban-column {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}
.kanban-column-header {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kanban-column-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}
.kanban-column-body::-webkit-scrollbar {
    width: 4px;
}
.kanban-column-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 2px;
}
.kanban-card {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}
.kanban-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}
.kanban-column.drag-over .kanban-column-body {
    outline: 2px dashed #3b82f6;
    outline-offset: -2px;
    border-radius: 8px;
}

/* === Urgency dots === */
.urgency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.urgency-dot.urgent { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.urgency-dot.warning { background: #f59e0b; }
.urgency-dot.normal { background: #22c55e; }

/* === Bulk action bar === */
.bulk-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bulk-action-bar.visible {
    transform: translateY(0);
}

/* === Photo metadata overlay === */
.photo-metadata-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
}

/* === Variance pulse animation === */
@keyframes variancePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.variance-pulse {
    animation: variancePulse 2s ease-in-out infinite;
}

/* === Quick-scan focus glow === */
.quick-scan-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Extracted Inline Styles from index.html */
.custom-style-1 { width: 0% }
.custom-style-2 { background:#1e293b;color:#e2e8f0; }
.custom-style-3 { color:#f1f5f9; }
.custom-style-4 { color:#94a3b8; }
.custom-style-5 { color:#cbd5e1; }
.custom-style-6 { background:#0f172a;border:1px solid #334155;color:#e2e8f0; }
.custom-style-7 { color:#64748b; }
.custom-style-8 { background:#374151;color:#d1d5db;border:1px solid #4b5563; }
.custom-style-9 { background:#0f172a; }
.custom-style-10 { background:#2e1065;color:#c4b5fd;border:1px solid #581c87; }
.custom-style-11 { background:#1f2937;border:1px solid #374151; }
.custom-style-12 { color:#bbf7d0;font-weight:500; }
.custom-style-13 { color:#fbbf24;font-weight:500; }
.custom-style-14 { color:#d1d5db; }
.custom-style-15 { color:#5eead4;font-weight:500; }
.custom-style-16 { color:#fdba74;font-weight:500; }
.custom-style-17 { margin-top:8px; }
.custom-style-18 { color:#94a3b8;font-size:12px;cursor:pointer;user-select:none; }
.custom-style-19 { display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px; }
.custom-style-20 { color:#64748b;font-size:11px; }
.custom-style-21 { background:#7f1d1d;color:#fca5a5;border:1px solid #991b1b; }
.custom-style-22 { color:#fde047; }
.custom-style-23 { background:#1e1b4b; }
.custom-style-24 { color:#a78bfa; }
.custom-style-25 { background:#334155; }
.custom-style-26 { width:0% }
.custom-style-27 { background:#064e3b; }
.custom-style-28 { color:#6ee7b7; }
.custom-style-29 { background:#7f1d1d; }
.custom-style-30 { color:#fca5a5; }
.custom-style-31 { max-height: calc(100vh - 340px); }
