/* 
    ORION WORKSHOP V2 - MINIMALIST INDUSTRIAL DESIGN
    Focus: Data Density, Professional Typography, Space Efficiency
*/

:root {
    --workshop-bg: var(--app-bg, #ffffff);
    --card-bg: var(--panel-bg, #ffffff);
    --glass-border: var(--border-color, rgba(0, 0, 0, 0.06));
    --glass-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
    --workshop-text: var(--app-text, #1e293b);
    
    /* Stage Colors (Industrial Palette) */
    --state-recepcion: #64748b;
    --state-diagnostico: #2563eb;
    --state-cotizacion: #d97706;
    --state-aprobado: #059669;
    --state-reparacion: #7c3aed;
    --state-calidad: #0891b2;
    --state-listo: #16a34a;
}

/* Workshop V2 Layout */
.workshop-v2-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--workshop-bg);
    overflow: hidden;
}

.workshop-v2-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: #f8fafc;
    color: var(--workshop-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back-circle:hover {
    background: #f1f5f9;
}

.brand h1 {
    font-size: 2.25rem; /* Increased from 1.75rem */
    font-weight: 900;
    margin: 0;
    color: var(--workshop-text);
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.brand .accent {
    color: #2563eb;
    background: linear-gradient(120deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Pills */
.workshop-nav-pills {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

.nav-pill {
    padding: 5px 14px;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.nav-pill.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.btn-premium.primary {
    background: #1e293b;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Kanban Container - Optimized for Fitting */
.workshop-v2-container {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    background: var(--workshop-bg);
    flex: 1;
    scroll-behavior: smooth;
}

/* Kanban Column - Narrower */
.kanban-column {
    flex: 0 0 280px; /* Reduced from 320px */
    background: #f8fafc;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.column-title {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.count-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.column-icon {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Compact Kanban Card */
.kanban-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.kanban-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.case-code {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #94a3b8;
}

.plate-badge {
    background: #f1f5f9;
    color: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    border: 1px solid #e2e8f0;
}

.card-body h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Compact Progress */
.card-progress {
    margin-top: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.progress-track {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
}

.technician-info {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
}

.time-ago {
    font-size: 0.625rem;
    color: #94a3b8;
}

/* Custom premium emphasis for Expedientes */
.nav-pill-emphasis {
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    background: rgba(37, 99, 235, 0.06) !important;
    color: #2563eb !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.05);
}
.nav-pill-emphasis.active {
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}
