﻿/* =============================================================================
   BODEGA CASILLERO — Operative warehouse UI aligned with Logi design system
   ============================================================================= */

.bodega-page {
    gap: 0;
    --bod-accent: #2563eb;
    --bod-accent-soft: #eff6ff;
    --bod-accent-ring: rgba(37, 99, 235, 0.14);
    --bod-accent-shadow: rgba(37, 99, 235, 0.22);
    --bod-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.bodega-page[data-mode="recibir"] {
    --bod-accent: #0d9488;
    --bod-accent-soft: #f0fdfa;
    --bod-accent-ring: rgba(13, 148, 136, 0.16);
    --bod-accent-shadow: rgba(13, 148, 136, 0.22);
}

.bodega-page[data-mode="mover"] {
    --bod-accent: #7c3aed;
    --bod-accent-soft: #f5f3ff;
    --bod-accent-ring: rgba(124, 58, 237, 0.16);
    --bod-accent-shadow: rgba(124, 58, 237, 0.22);
}

.bodega-page[data-mode="entregar"] {
    --bod-accent: #dc2626;
    --bod-accent-soft: #fef2f2;
    --bod-accent-ring: rgba(220, 38, 38, 0.16);
    --bod-accent-shadow: rgba(220, 38, 38, 0.22);
}

.bodega-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 0.875rem;
    align-items: start;
    padding-top: 0.75rem;
}

.bodega-main,
.bodega-side {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
}

.bodega-side {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
}

/* Subtle custom scrollbar */
.bodega-side::-webkit-scrollbar,
.bodega-timeline::-webkit-scrollbar {
    width: 6px;
}

.bodega-side::-webkit-scrollbar-thumb,
.bodega-timeline::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 999px;
}

.bodega-side::-webkit-scrollbar-thumb:hover,
.bodega-timeline::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* =============================================================================
   HERO CARD — Scan + Mode + Package
   ============================================================================= */
.bodega-hero-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--logi-border, #e2e8f0);
    border-radius: var(--logi-radius-card, 14px);
    box-shadow: var(--bod-card-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s var(--logi-ease, ease);
}

.bodega-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bod-accent) 0%, #7c3aed 100%);
    opacity: 0.85;
    transition: background 0.25s var(--logi-ease, ease);
}

.bodega-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.1rem;
    padding: 1.1rem 1.2rem 1rem;
    background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
    border-bottom: 1px solid var(--logi-border, #e2e8f0);
}

.bodega-block-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--logi-text-muted, #94a3b8);
}

.bodega-block-label i {
    color: var(--bod-accent, #2563eb);
    font-size: 0.72rem;
    transition: color 0.25s var(--logi-ease, ease);
}

/* ── Scan input ─────────────────────────────────────────────────────────── */
.bodega-scan-block {
    min-width: 0;
}

.bodega-scan-input {
    width: 100%;
    min-height: 54px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.7rem;
    color: var(--logi-text-primary, #0f172a);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    outline: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='3' height='14'/%3E%3Crect x='8' y='5' width='1' height='14'/%3E%3Crect x='11' y='5' width='2' height='14'/%3E%3Crect x='15' y='5' width='1' height='14'/%3E%3Crect x='18' y='5' width='3' height='14'/%3E%3C/svg%3E") no-repeat 0.95rem center / 18px 18px,
        #fff;
    transition: border-color 0.15s var(--logi-ease, ease), box-shadow 0.15s var(--logi-ease, ease);
}

.bodega-scan-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.bodega-scan-input:focus {
    border-color: var(--bod-accent, #2563eb);
    box-shadow: 0 0 0 4px var(--bod-accent-ring, rgba(37, 99, 235, 0.14));
}

.bodega-scan-hint {
    margin: 0.5rem 0 0;
    font-size: 0.74rem;
    color: var(--logi-text-secondary, #64748b);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.bodega-scan-hint::before {
    content: "↵";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Mode segment ───────────────────────────────────────────────────────── */
.bodega-mode-block {
    min-width: 0;
}

.bodega-mode-subtitle {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--logi-text-primary, #0f172a);
    letter-spacing: -0.01em;
}

.bodega-mode-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.bodega-mode-segment__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 40px;
    border: 1.5px solid var(--logi-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s var(--logi-ease, ease);
    overflow: hidden;
}

.bodega-mode-segment__btn i {
    font-size: 0.85rem;
    transition: transform 0.2s var(--logi-ease, ease);
}

.bodega-mode-segment__btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.bodega-mode-segment__btn:hover i {
    transform: scale(1.1);
}

.bodega-mode-segment__btn.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--bod-accent, #2563eb) 0%, color-mix(in srgb, var(--bod-accent, #2563eb) 80%, #000) 100%);
    color: #fff;
    box-shadow: 0 6px 18px var(--bod-accent-shadow, rgba(37, 99, 235, 0.22));
}

.bodega-mode-segment__btn.is-active::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
    animation: bodega-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes bodega-pulse-dot {
    0%, 100% { opacity: 0.6; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* =============================================================================
   PACKAGE PANEL
   ============================================================================= */
.bodega-package-panel {
    padding: 1.1rem 1.2rem 1.2rem;
}

.bodega-package-loading,
.bodega-package-empty {
    min-height: 140px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--logi-text-secondary, #64748b);
    font-size: 0.9rem;
    font-weight: 600;
}

.bodega-package-loading {
    justify-content: center;
}

.bodega-package-empty {
    justify-content: flex-start;
    padding: 0.5rem;
    border: 1.5px dashed #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbfdff 0%, #f8fafc 100%);
    padding: 1.1rem;
}

.bodega-package-empty__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bod-accent-soft, #eff6ff) 0%, #fff 100%);
    color: var(--bod-accent, #2563eb);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px var(--bod-accent-ring, rgba(37, 99, 235, 0.14));
}

.bodega-package-empty__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--logi-text-primary, #0f172a);
}

.bodega-package-empty__copy {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--logi-text-secondary, #64748b);
    line-height: 1.4;
}

.bodega-package-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 1.1rem;
    align-items: start;
    animation: bodega-fade-up 0.3s var(--logi-ease, ease) both;
}

@keyframes bodega-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ── Tracking ──────────────────────────────────────────────────────────── */
.bodega-tracking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.bodega-tracking-text {
    min-width: 0;
}

.bodega-tracking-value {
    margin: 0;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--logi-text-primary, #0f172a);
    overflow-wrap: anywhere;
}

.bodega-tracking-copy {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--logi-border, #e2e8f0);
    border-radius: 9px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s var(--logi-ease, ease);
    margin-top: 0.85rem;
}

.bodega-tracking-copy:hover {
    color: var(--bod-accent, #2563eb);
    border-color: var(--bod-accent, #2563eb);
    background: var(--bod-accent-soft, #eff6ff);
    transform: translateY(-1px);
}

/* ── Stat grid ─────────────────────────────────────────────────────────── */
.bodega-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.bodega-stat {
    min-width: 0;
    border: 1px solid var(--logi-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    padding: 0.65rem 0.75rem;
    transition: border-color 0.15s var(--logi-ease, ease), background 0.15s var(--logi-ease, ease);
}

.bodega-stat:hover {
    border-color: #cbd5e1;
    background: #fbfdff;
}

.bodega-stat__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--logi-text-muted, #94a3b8);
}

.bodega-stat__label i {
    font-size: 0.6rem;
    color: #cbd5e1;
}

.bodega-stat__value {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.86rem;
    font-weight: 750;
    color: var(--logi-text-primary, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bodega-stat--link:hover {
    border-color: var(--bod-accent, #2563eb);
    background: var(--bod-accent-soft, #eff6ff);
}

.bodega-stat__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
    border: 0;
    background: transparent;
    padding: 0;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.bodega-stat__link i {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.15s var(--logi-ease, ease);
}

.bodega-stat__link:hover i {
    transform: translate(1px, -1px);
    opacity: 1;
}

.bodega-stat__badge {
    margin-top: 0.32rem;
}

/* ── Location pills ────────────────────────────────────────────────────── */
.bodega-location-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.bodega-location-pill {
    position: relative;
    border: 1px solid var(--logi-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    padding: 0.65rem 0.75rem;
}

.bodega-location-pill__head {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--logi-text-muted, #94a3b8);
}

.bodega-location-pill__head i {
    font-size: 0.62rem;
    color: #cbd5e1;
}

.bodega-location-pill strong {
    display: block;
    margin-top: 0.22rem;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--logi-text-primary, #0f172a);
    overflow-wrap: anywhere;
    letter-spacing: -0.01em;
}

.bodega-location-pill--suggested {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.bodega-location-pill--suggested .bodega-location-pill__head {
    color: #92400e;
}

.bodega-location-pill--suggested .bodega-location-pill__head i {
    color: #f59e0b;
    animation: bodega-star-spin 4s ease-in-out infinite;
}

@keyframes bodega-star-spin {
    0%, 90%, 100% { transform: rotate(0deg) scale(1); }
    45% { transform: rotate(20deg) scale(1.15); }
}

.bodega-location-pill--suggested strong {
    color: #78350f;
}

/* ── Action panel ──────────────────────────────────────────────────────── */
.bodega-action-panel {
    border: 1px solid var(--logi-border, #e2e8f0);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: inset 0 1px 0 #fff;
}

.bodega-destino-field .logi-field__input {
    min-height: 44px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
}

.bodega-deliver-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bodega-deliver-note i {
    margin-top: 0.1rem;
    flex-shrink: 0;
    color: #ea580c;
}

.bodega-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bodega-action-buttons__primary,
.bodega-action-buttons__secondary {
    width: 100%;
}

.bodega-action-buttons__primary .logi-btn {
    min-height: 42px;
    font-size: 0.9rem;
}

/* =============================================================================
   LOCATIONS CARD
   ============================================================================= */
.bodega-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.7rem;
}

.bodega-eyebrow {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bod-accent, #2563eb);
}

.bodega-section-title {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--logi-text-primary, #0f172a);
}

.bodega-section-meta {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--logi-text-secondary, #64748b);
}

.bodega-ubicacion-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--logi-border, #e2e8f0);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.bodega-ubicacion-summary__code {
    margin: 0.15rem 0 0;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--logi-text-primary, #0f172a);
}

.bodega-ubicacion-summary__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.bodega-ubicacion-summary__stat {
    font-size: 0.78rem;
    color: var(--logi-text-secondary, #64748b);
}

.bodega-ubicacion-summary__stat strong {
    color: var(--logi-text-primary, #0f172a);
}

.bodega-mode-chip .logi-header-chip__value {
    font-size: 0.82rem;
    color: var(--bod-accent, #2563eb);
}

/* Locations table filter bar */
.bodega-locations-card .logi-filter-bar.bodega-filter-bar {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin: 0;
}

.bodega-row--selected {
    background: var(--bod-accent-soft, #eff6ff) !important;
    border-left-color: var(--bod-accent, #2563eb) !important;
}

.bodega-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.bodega-icon-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--logi-border, #e2e8f0);
    border-radius: 9px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s var(--logi-ease, ease);
}

.bodega-icon-btn:hover {
    color: var(--bod-accent, #2563eb);
    border-color: var(--bod-accent, #2563eb);
    background: var(--bod-accent-soft, #eff6ff);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--bod-accent-ring, rgba(37, 99, 235, 0.14));
}

/* =============================================================================
   DIALOG FORMS
   ============================================================================= */
.bodega-dialog-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.bodega-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.bodega-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.2rem;
}

.bodega-reservation {
    padding: 0.85rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--logi-border, #e2e8f0);
}

.bodega-reservation__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.bodega-reservation__name {
    margin: 0.18rem 0 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--logi-text-primary, #0f172a);
    overflow-wrap: anywhere;
}

.bodega-reservation__chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.bodega-reservation--dialog {
    margin: 0.85rem 0 0;
}

/* =============================================================================
   TIMELINE — Real vertical rail with dot + wire
   ============================================================================= */
.bodega-history-card {
    padding-bottom: 0.25rem;
}

.bodega-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 1.1rem 1.1rem;
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.bodega-timeline--empty {
    padding: 0 1.1rem 1.1rem;
}

.bodega-timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.1rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1.5px dashed #e2e8f0;
    text-align: center;
}

.bodega-timeline-empty__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.9rem;
}

.bodega-timeline-empty__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--logi-text-primary, #0f172a);
}

.bodega-timeline-empty__copy {
    margin: 0;
    font-size: 0.78rem;
    color: var(--logi-text-secondary, #64748b);
    line-height: 1.35;
}

.bodega-timeline-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0 0 0.55rem;
}

.bodega-timeline-item.is-last {
    padding-bottom: 0;
}

.bodega-timeline-item__rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.35rem;
}

.bodega-timeline-item__dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--bod-accent, #2563eb);
    box-shadow: 0 0 0 3px var(--bod-accent-ring, rgba(37, 99, 235, 0.14));
}

.bodega-timeline-item:first-child .bodega-timeline-item__dot {
    background: var(--bod-accent, #2563eb);
}

.bodega-timeline-item__wire {
    flex: 1;
    width: 2px;
    margin-top: 4px;
    margin-bottom: -0.4rem;
    background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 2px;
}

.bodega-timeline-item__body {
    min-width: 0;
    padding: 0.1rem 0 0;
}

.bodega-timeline-item__route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.28rem;
}

.bodega-timeline-item__route i {
    color: #94a3b8;
    font-size: 0.68rem;
}

.bodega-timeline-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bodega-timeline-chip--target {
    background: var(--bod-accent-soft, #eff6ff);
    color: var(--bod-accent, #2563eb);
}

.bodega-timeline-item__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--logi-text-secondary, #64748b);
}

.bodega-timeline-item__meta time {
    font-weight: 700;
    color: #475569;
}

.bodega-timeline-item__dot-sep {
    color: #cbd5e1;
}

.bodega-timeline-item__user {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.22rem;
    font-size: 0.72rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bodega-timeline-item__user i {
    font-size: 0.62rem;
    color: #cbd5e1;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (min-width: 1024px) and (max-width: 1440px) {
    .bodega-shell {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 0.75rem;
    }

    .bodega-hero-top {
        grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
        padding: 0.95rem 1rem;
    }

    .bodega-package-layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
        gap: 0.85rem;
    }
}

@media (max-width: 1180px) {
    .bodega-shell {
        grid-template-columns: 1fr;
    }

    .bodega-side {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .bodega-hero-top,
    .bodega-package-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bodega-shell {
        padding-top: 0.5rem;
        gap: 0.75rem;
    }

    .bodega-hero-top,
    .bodega-package-panel {
        padding: 0.9rem;
    }

    .bodega-mode-segment,
    .bodega-stat-grid,
    .bodega-location-row,
    .bodega-form-row {
        grid-template-columns: 1fr;
    }

    .bodega-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .bodega-stat__value {
        font-size: 0.78rem;
    }

    .bodega-scan-input {
        min-height: 48px;
        font-size: 1rem;
    }

    .bodega-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bodega-table-actions {
        justify-content: flex-start;
    }

    .bodega-mode-chip {
        display: none;
    }

    .bodega-tracking-copy {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .bodega-stat-grid {
        grid-template-columns: 1fr;
    }

    .bodega-package-empty {
        flex-direction: column;
        align-items: flex-start;
    }
}
