/* ── TALLER: Bahía Cards Premium ─────────────────── */
#bahias-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 18px !important;
    width: 100%;
}

.taller-bay-card {
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.taller-bay-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
    border-color: #cbd5e1;
}

body[data-theme="dark"] .taller-bay-card {
    background: linear-gradient(145deg, #1e293b, #1a2332);
    border-color: #334155;
}

body[data-theme="dark"] .taller-bay-card:hover {
    border-color: #475569;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header */
.taller-bay-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    background: rgba(255,255,255,0.5);
}

body[data-theme="dark"] .taller-bay-head {
    background: rgba(30, 41, 59, 0.5);
    border-bottom-color: #334155;
}

.taller-bay-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.taller-bay-head strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.03em;
}

body[data-theme="dark"] .taller-bay-head strong {
    color: #f8fafc;
}

.taller-bay-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
    box-shadow: 0 1px 3px rgba(109, 40, 217, 0.15);
}

body[data-theme="dark"] .taller-bay-type-badge {
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
    color: #ddd6fe;
}

.taller-bay-state-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.taller-bay-state-dot.dot-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18), 0 2px 6px rgba(34, 197, 94, 0.3);
}

.taller-bay-state-dot.dot-green::after { content: '✓'; font-size: 0.6rem; }

.taller-bay-state-dot.dot-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18), 0 2px 6px rgba(239, 68, 68, 0.3);
}

.taller-bay-state-dot.dot-red::after { content: '●'; font-size: 0.35rem; }

.taller-bay-head .badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.taller-bay-head .badge.done {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

body[data-theme="dark"] .taller-bay-head .badge.done {
    background: linear-gradient(135deg, #052e16, #14532d);
    color: #4ade80;
}

.taller-bay-head .badge.progress {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #b91c1c;
}

body[data-theme="dark"] .taller-bay-head .badge.progress {
    background: linear-gradient(135deg, #450a0a, #7f1d1d);
    color: #fca5a5;
}

/* Body content */
.taller-bay-occupancy {
    padding: 16px 20px 12px;
    background: transparent;
}

.taller-bay-occupancy .taller-bay-plate {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 4px;
    background: transparent;
    line-height: 1.2;
    text-transform: uppercase;
}

body[data-theme="dark"] .taller-bay-occupancy .taller-bay-plate {
    color: #f8fafc !important;
}

.taller-bay-occupancy strong {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    background: transparent;
    font-weight: 600;
    margin-bottom: 3px;
}

body[data-theme="dark"] .taller-bay-occupancy strong {
    color: #94a3b8 !important;
}

.taller-bay-occupancy small {
    font-size: 0.76rem;
    color: #94a3b8;
    display: block;
    background: transparent;
}

body[data-theme="dark"] .taller-bay-occupancy small {
    color: #64748b !important;
}

/* Meta info */
.taller-bay-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 20px 14px;
    flex-shrink: 0;
}

.taller-bay-meta span {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

body[data-theme="dark"] .taller-bay-meta span {
    color: #64748b;
}

.taller-bay-meta span::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    flex-shrink: 0;
}

body[data-theme="dark"] .taller-bay-meta span::before {
    background: linear-gradient(135deg, #475569, #334155);
}

/* Action buttons */
.taller-mini-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 14px 20px 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

body[data-theme="dark"] .taller-mini-actions {
    border-top-color: #334155;
}

.taller-mini-actions .btn {
    font-size: 0.68rem !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    flex: 1;
    text-align: center;
    min-width: 0;
    justify-content: center;
    transition: all 0.15s ease;
}

.taller-mini-actions .btn:hover {
    transform: translateY(-1px);
}

.taller-mini-actions .btn.danger {
    color: #ef4444;
}

.taller-mini-actions .btn.danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

body[data-theme="dark"] .taller-mini-actions .btn.danger:hover {
    background: #450a0a;
    border-color: #7f1d1d;
}
