/* Plataforma AKD CSS Stylesheet - Design System: LOGO CREA 5 (Champagne/Sand/Atelier theme) */

:root {
    --bg-main: #fcfbf7;            /* Creamy light background */
    --bg-sidebar: #1e1b15;         /* Deep off-black charcoal from Logo 6/4 */
    --bg-card: #ffffff;            /* Pure white for layout cards */
    --border-color: #eae2d2;       /* Sand border color from Logo 5 */
    --accent-sand: #f3ece1;        /* Cream/Champagne highlight */
    --accent-sand-hover: #eae2d2;  /* Slightly darker sand */
    --accent-sand-dark: #d5c8b5;   /* Accent border / slider */
    
    /* Text colors */
    --text-primary: #2d2922;       /* Charcoal brown/black for body */
    --text-muted: #726b5e;         /* Warm grey for captions */
    --text-white: #ffffff;
    
    /* Branding Accent colors from LOGO 2 & 3 */
    --brand-navy: #162135;         /* Deep luxury blue for buttons/headers */
    --brand-navy-hover: #263855;
    --brand-olive: #4b4f3a;        /* Elegant sage green for success/badges */
    --brand-olive-light: #f4f5f0;
    
    /* Status colors */
    --color-success: #438a5e;
    --color-warning: #e09f3e;
    --color-danger: #9e2a2b;
    --color-info: #3f72af;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(45, 41, 34, 0.05);
    --shadow-md: 0 4px 12px rgba(45, 41, 34, 0.08);
    --shadow-lg: 0 10px 25px rgba(45, 41, 34, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Layout App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 0 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    flex-direction: column;
    letter-spacing: 2px;
}

.logo-text-krea {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-sand);
}

.logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.menu-item.active {
    background-color: var(--accent-sand);
    color: var(--bg-sidebar);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sand);
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar Header */
.topbar {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-status {
    padding: 10px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.danger-alert {
    background-color: #fdf2f2;
    color: var(--color-danger);
    border: 1px solid #fde2e2;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(158, 42, 43, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(158, 42, 43, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(158, 42, 43, 0); }
}

.date-display {
    background-color: var(--accent-sand);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Body */
.content-body {
    padding: 30px 40px;
    flex: 1;
}

/* Tab display logic */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.bg-sand-light {
    background-color: #faf7f2;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header.split {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-body {
    padding: 24px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: var(--brand-navy);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--brand-navy-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--accent-sand);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent-sand-hover);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-sand-dark);
}

.kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background-color: var(--accent-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
}

.kpi-details {
    display: flex;
    flex-direction: column;
}

.kpi-title {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0;
}

.kpi-trend {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-trend.positive {
    color: var(--color-success);
}

/* Two-column layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.layout-column {
    display: flex;
    flex-direction: column;
}

/* Alert list */
.alert-item {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    border-left: 4px solid transparent;
}

.alert-item.urgent {
    background-color: #fdf2f2;
    border-left-color: var(--color-danger);
}

.alert-item.warning {
    background-color: #fffbeb;
    border-left-color: var(--color-warning);
}

.alert-icon {
    font-size: 20px;
    margin-top: 2px;
}

.alert-item.urgent .alert-icon { color: var(--color-danger); }
.alert-item.warning .alert-icon { color: var(--color-warning); }

.alert-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Timeline */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 2px;
    height: 90%;
    background-color: var(--border-color);
}

.timeline li {
    position: relative;
    margin-bottom: 24px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--brand-navy);
    border: 2px solid var(--bg-card);
}

.timeline .time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.timeline-content strong {
    font-size: 14px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Table Style */
.table-container {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.custom-table th {
    background-color: var(--accent-sand);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-sand-dark);
}

.custom-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.custom-table tbody tr:hover {
    background-color: rgba(243, 236, 225, 0.2);
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-danger { background-color: #fdf2f2; color: var(--color-danger); border: 1px solid #fde2e2; }
.badge-warning { background-color: #fffbeb; color: var(--color-warning); border: 1px solid #fef3c7; }
.badge-success { background-color: #f0fdf4; color: var(--color-success); border: 1px solid #dcfce7; }
.badge-secondary { background-color: #f4f5f0; color: var(--brand-olive); border: 1px solid #eae2d2; }

/* Locations stock grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.location-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background-color: #faf7f2;
}

.location-box.highlight {
    background-color: var(--bg-card);
    border-color: var(--brand-navy);
    border-width: 2px;
}

.location-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.location-box .stock-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin: 8px 0;
}

.location-box .desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dotaciones tab specifics */
.dotaciones-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.client-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.client-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.client-item:hover {
    background-color: var(--accent-sand);
}

.client-item.active {
    background-color: var(--accent-sand);
    border-color: var(--accent-sand-dark);
}

.client-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.client-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.observation-cell {
    background-color: #fdfaf2;
    border-left: 3px solid var(--color-warning);
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: #855d10;
}

.helper-box {
    margin-top: 24px;
    background-color: var(--brand-olive-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
}

.helper-box h4 {
    color: var(--brand-olive);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.helper-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Mini stats for payroll */
.kpi-grid.miniature {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
    gap: 16px;
}

.kpi-mini {
    background-color: #faf7f2;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-mini span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.kpi-mini strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    width: 480px;
    max-width: 90%;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-content.modal-large {
    width: 1200px;
    max-width: 95vw;
    max-height: 90vh;
    padding: 28px;
    overflow-y: auto;
}

.edit-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.edit-grid-table th, .edit-grid-table td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: 12px;
    white-space: nowrap;
}

.edit-grid-table th {
    background: #f4eedd;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.edit-grid-table input[type="number"]::-webkit-outer-spin-button,
.edit-grid-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.edit-grid-table input[type="number"] {
    -moz-appearance: textfield;
    width: 52px;
    padding: 6px 2px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.edit-grid-table input[type="number"]:focus {
    border-color: var(--color-accent-gold);
    background: #fffdf7;
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

select, input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

select:focus, input:focus {
    outline: none;
    border-color: var(--brand-navy);
    background-color: var(--bg-card);
}

/* Login Screen Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-main);
    padding: 20px;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo-text-krea {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    letter-spacing: 2px;
}

.login-header .logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
    margin-bottom: 12px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.error-msg {
    color: var(--color-danger);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

/* Logout Button */
.btn-logout {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    margin-left: auto;
}

.btn-logout:hover {
    color: var(--color-danger);
}

/* Responsive Adjustments for Mobile & Tablets */
@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 12px 16px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        background: var(--brand-navy);
    }
    
    .sidebar-header {
        padding-bottom: 8px;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-container .logo-text-krea {
        font-size: 20px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        justify-content: flex-start;
        padding: 6px 0;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .menu-item {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .menu-item span {
        display: inline-block !important; /* Always show text on mobile */
    }
    
    .sidebar-footer {
        border-top: none;
        padding-top: 6px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .header-title h1 {
        font-size: 18px !important;
    }
    
    .header-title p {
        font-size: 12px !important;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .content-body {
        padding: 12px;
    }
    
    /* Responsive Grid Adjustments */
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    .kpi-card {
        padding: 12px !important;
    }

    /* Force 1-column layout for dashboard Intelligence & Reports on mobile */
    #tab-dashboard section, 
    #tab-dashboard div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Responsive table wrapping */
    .table-container,
    div[style*="overflow-x: auto"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px;
    }
    
    .brand-table {
        min-width: 600px;
    }

    /* Modals Responsive Layout */
    .modal-content {
        width: 95% !important;
        max-width: 95vw !important;
        max-height: 92vh !important;
        padding: 16px !important;
        overflow-y: auto !important;
        margin: 10px auto !important;
    }
}

@media (max-width: 576px) {
    .sidebar-menu {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .menu-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .topbar {
        padding: 10px 12px;
    }

    .content-body {
        padding: 8px;
    }

    .card-header h2 {
        font-size: 14px !important;
    }
}

/* Utility visibility classes */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
}

/* --- PRODUCT SELECT DROPDOWN STYLES --- */
.product-select-wrapper {
    margin-bottom: 20px;
    background: #fdfdfa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.subtabs-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-box-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.select-box-custom .select-icon {
    position: absolute;
    left: 14px;
    color: var(--color-accent-gold);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.select-box-custom .dropdown-arrow {
    position: absolute;
    right: 16px;
    color: var(--color-accent-gold);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s ease;
}

.product-dropdown {
    width: 100%;
    padding: 12px 42px 12px 42px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-text-main);
    background-color: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 1;
}

.product-dropdown:hover {
    border-color: var(--color-accent-gold);
    background-color: #fcfbf7;
}

.product-dropdown:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.2);
}

.product-dropdown option {
    padding: 10px;
    font-weight: 500;
}

/* --- TWO TABLES & NOTES BANNER STYLES (PLATFORM BRAND PALETTE) --- */
.dual-tables-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 15px;
}

.table-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.table-card-title {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Premium Brand Table Styling */
.brand-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
}

.brand-table th, .brand-table td {
    padding: 10px 14px;
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-family: var(--font-primary);
}

.brand-table th {
    background: #f4eedd; /* Warm Champagne Header */
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-table th.col-desc {
    text-align: left;
    min-width: 170px;
}

.brand-table td.col-desc {
    text-align: left;
    font-weight: 600;
}

/* Table 1: Ubicación Física Rows */
.brand-table tr.row-almacen td {
    background: #ffffff;
    color: var(--color-text-main);
}
.brand-table tr.row-almacen td.col-desc {
    border-left: 4px solid var(--color-accent-gold);
}

.brand-table tr.row-bodega td {
    background: #fdfdfa;
    color: var(--color-text-main);
}
.brand-table tr.row-bodega td.col-desc {
    border-left: 4px solid #8d7b51;
}

.brand-table tr.row-fabrica td {
    background: #ffffff;
    color: var(--color-text-main);
}
.brand-table tr.row-fabrica td.col-desc {
    border-left: 4px solid #5a6b7c;
}

.brand-table tr.row-corte td {
    background: #fdfdfa;
    color: var(--color-text-main);
}
.brand-table tr.row-corte td.col-desc {
    border-left: 4px solid #b89b5e;
}

.brand-table tr.row-totales td {
    background: #f4eedd;
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: 700;
}
.brand-table tr.row-totales td.total-section-col {
    background: var(--color-text-main);
    color: var(--color-accent-gold);
    font-weight: 800;
}

/* Table 2: Kardex Rows */
.brand-table tr.row-inventario td {
    background: #ffffff;
    color: var(--color-text-main);
}
.brand-table tr.row-inventario td.col-desc {
    border-left: 4px solid #7c6f55;
}

.brand-table tr.row-entrada td {
    background: #fdfdfa;
    color: var(--color-text-main);
}
.brand-table tr.row-entrada td.col-desc {
    border-left: 4px solid #2e7d32;
}

.brand-table tr.row-salida td {
    background: #ffffff;
    color: var(--color-text-main);
}
.brand-table tr.row-salida td.col-desc {
    border-left: 4px solid #c62828;
}

.brand-table tr.row-stock td,
.brand-table tr.row-stock td.cell-value {
    background: #2b261f !important;
    color: #ffffff !important;
    font-weight: 800;
}
.brand-table tr.row-stock td.col-desc {
    background: #2b261f !important;
    color: var(--color-accent-gold) !important;
    font-weight: 800;
    border-left: 4px solid var(--color-accent-gold);
}

/* Non-Editable Cells */
.brand-table td.cell-value {
    font-weight: 600;
    color: var(--color-text-main);
}

/* Elegant Notes Card (Brand Gold Accent) */
.notes-brand-card {
    background: #fdfdfa;
    color: var(--color-text-main);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-accent-gold);
}

.notes-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.notes-brand-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent-gold);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-item .delete-note-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.note-item .delete-note-btn:hover {
    opacity: 1;
    color: var(--color-danger);
}

/* --- MOVEMENT TYPE, USER & ROTATION BADGES (100% IDENTICAL FIXED DIMENSIONS) --- */
.badge-mov-type,
.badge-user-tag,
.badge-rot-type {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.badge-mov-type {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    text-transform: uppercase !important;
}

.badge-user-tag {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    text-transform: lowercase !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

.badge-rot-type {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.badge-mov-type i.badge-mov-icon,
.badge-user-tag i.badge-user-icon,
.badge-rot-type i.badge-rot-icon {
    font-size: 13px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.badge-user-tag i.badge-user-icon {
    color: #2563eb !important;
}

.badge-mov-entrada {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.badge-mov-salida {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.badge-mov-traslado {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.badge-mov-prestamo {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.badge-mov-devolucion {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.badge-rot-alta {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.badge-rot-alta i.badge-rot-icon {
    color: #dc2626 !important;
}

.badge-rot-moderada {
    background: #fffbebfb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.badge-rot-moderada i.badge-rot-icon {
    color: #d97706 !important;
}

.badge-rot-estandar {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.badge-rot-estandar i.badge-rot-icon {
    color: #64748b !important;
}

/* --- ESTILOS DE CHIPS DE TALLA EN LISTADO DE EXISTENCIAS --- */
.product-size-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    align-items: center;
}

.size-chip-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    color: #64748b;
}

.size-chip-meta .meta-instock {
    color: #15803d;
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    font-size: 10px;
    font-weight: 700;
}

.size-chip-meta .meta-zero {
    color: #b91c1c;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fecaca;
    font-size: 10px;
    font-weight: 700;
}

.size-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.15s ease-in-out;
    cursor: default;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.size-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.size-chip .sz-tag {
    opacity: 0.85;
    font-size: 10px;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.size-chip .sz-val {
    font-size: 12px;
    font-weight: 800;
}

.size-chip .sz-warn {
    font-size: 10px;
    color: #dc2626;
    margin-left: 2px;
}

/* Good stock chip (> 5 pzas) */
.chip-stock-good {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Low stock chip (1 - 5 pzas) */
.chip-stock-low {
    background: #fffbe6;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Out of stock chip (0 pzas) */
.chip-stock-zero {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Filter buttons in Card Header */
.btn-size-filter {
    background: transparent;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-size-filter:hover {
    color: #0f172a;
    background: rgba(255,255,255,0.7);
}

.btn-size-filter.active-filter {
    background: #1e293b !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* --- ESTILOS DE SALUD DE CURVA Y DESGLOSE ACCORDION (PALETA SOBRIA Y ELEGANTE) --- */
.curva-badge {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    user-select: none !important;
    letter-spacing: 0.2px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.curva-badge i {
    font-size: 12px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 5px !important;
    flex-shrink: 0 !important;
}

.curva-ok {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.curva-warn {
    background: #fffbe6 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.curva-danger {
    background: #fff1f2 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
}

/* --- CONFIGURATION MODULE STYLING --- */
.config-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

/* Header Banner Main */
.config-header-banner-main {
    background: linear-gradient(135deg, #162135 0%, #1e293b 100%);
    border-radius: 14px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(22, 33, 53, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.25);
    flex-wrap: wrap;
    gap: 16px;
}

.config-header-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.config-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    font-size: 24px;
}

.config-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.config-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.btn-create-user-hero {
    background: linear-gradient(135deg, #c5a059 0%, #d4af67 100%);
    color: #162135;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
    transition: all 0.25s ease;
}

.btn-create-user-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.55);
}

/* Config Stats Grid */
.config-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .config-stats-grid {
        grid-template-columns: 1fr;
    }
}

.config-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.config-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.config-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.config-stat-icon.icon-users {
    background: #f0f4ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

.config-stat-icon.icon-logs {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #dcfce7;
}

.config-stat-icon.icon-db {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.config-stat-info {
    display: flex;
    flex-direction: column;
}

.config-stat-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.config-stat-value {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #162135;
    line-height: 1.2;
}

.config-stat-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* User Card */
.config-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.config-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-card-title i {
    font-size: 18px;
    color: #c5a059;
    background: rgba(197, 160, 89, 0.12);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.config-card-title h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #162135;
    margin: 0 0 2px 0;
}

.config-card-title p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* User Table */
.config-table-wrapper {
    overflow-x: auto;
}

.config-user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.config-user-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
    padding: 14px 24px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.config-user-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.config-user-table tr:hover td {
    background: #fcfbfa;
}

.user-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #162135;
    color: #c5a059;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: 1.5px solid #c5a059;
}

.user-name-text {
    font-weight: 800;
    color: #1e293b;
    font-size: 14px;
}

.user-self-pill {
    background: rgba(197, 160, 89, 0.15);
    color: #8c733e;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.user-protected-badge {
    background: rgba(197, 160, 89, 0.15);
    color: #8c733e;
    border: 1px solid rgba(197, 160, 89, 0.35);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.role-badge-admin {
    background: #162135;
    color: #c5a059;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.role-badge-coord {
    background: #f1f5f9;
    color: #475569;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mod-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
}

.mod-badge-dash {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mod-badge-inv {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-badge-active {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-table-edit {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-table-edit:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-table-delete {
    background: #fff1f2;
    color: #e11d48;
    border: 1.5px solid #fecdd3;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    margin-left: 6px;
}

.btn-table-delete:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

/* Downloads Grid */
.config-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 850px) {
    .config-downloads-grid {
        grid-template-columns: 1fr;
    }
}

.download-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 3px solid #c5a059;
}

.download-card-header {
    padding: 24px 28px 16px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-log-header {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #dcfce7;
}

.icon-db-header {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.download-card-header h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #162135;
    margin: 0 0 2px 0;
}

.download-card-header p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.download-card-body {
    padding: 0 28px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.download-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.download-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.download-feature-list li {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-feature-list li i {
    color: #10b981;
    font-size: 12px;
}

.download-card-footer {
    margin-top: auto;
    padding-top: 12px;
}

.btn-download-action {
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-download-logs {
    background: #162135;
    color: #ffffff;
    border: 1.5px solid #c5a059;
    box-shadow: 0 4px 14px rgba(22, 33, 53, 0.2);
}

.btn-download-logs:hover {
    background: #1e293b;
    box-shadow: 0 6px 18px rgba(22, 33, 53, 0.35);
    transform: translateY(-2px);
}

.btn-download-logs i {
    color: #c5a059;
    font-size: 16px;
}

.btn-download-backup {
    background: linear-gradient(135deg, #c5a059 0%, #d4af67 100%);
    color: #162135;
    border: none;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}

.btn-download-backup:hover {
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.5);
    transform: translateY(-2px);
}

.btn-download-backup i {
    font-size: 16px;
}

/* --- SIZE DETAIL DROPDOWN TOGGLE BUTTONS --- */
.btn-toggle-size-detail {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 14px;
    width: 145px;
    min-width: 145px;
    height: 36px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-toggle-size-detail:hover {
    background: #fcfbfa;
    border-color: #c5a059;
    color: #162135;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
    transform: translateY(-1px);
}

.btn-toggle-size-detail.active {
    background: #162135;
    color: #ffffff;
    border-color: #c5a059;
    box-shadow: 0 4px 12px rgba(22, 33, 53, 0.25);
}

.btn-toggle-size-detail.active i {
    color: #c5a059 !important;
}

.btn-toggle-size-detail i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* --- MOVEMENT TYPE FILTER BUTTONS --- */
.btn-mov-filter {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-mov-filter:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

.btn-mov-filter.active {
    background: #162135;
    color: #ffffff;
    border-color: #c5a059;
    box-shadow: 0 3px 8px rgba(22, 33, 53, 0.25);
}

.btn-mov-filter.active i {
    color: #c5a059 !important;
}

.mov-count-badge {
    background: #e2e8f0;
    color: #334155;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-mov-filter.active .mov-count-badge {
    background: #c5a059;
    color: #162135;
}






