/* ==========================================================================
   BarberosPOS - Estilos SaaS Modernos, Responsivos y Flexibles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #0f172a;
    --accent-gold: #f59e0b;
    --accent-gold-dark: #d97706;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-active: #2563eb;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 72px;
    --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 26px 0 rgba(0, 0, 0, 0.09);
    --card-radius: 14px;
    --input-radius: 10px;
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Scrollbars personalizados delgados y elegantes */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----------------------------------------------------
   Layout & Wrapper Responsivo
   ---------------------------------------------------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.main-content {
    flex: 1;
    min-width: 0; /* Previene desbordamiento flexbox */
    margin-left: var(--sidebar-width);
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Estado Sidebar Colapsada en Pantallas Medianas / Grandes */
body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar .sidebar-brand-text,
body.sidebar-collapsed .sidebar .sidebar-heading,
body.sidebar-collapsed .sidebar .sidebar-link span,
body.sidebar-collapsed .sidebar .sidebar-footer span {
    display: none !important;
}

body.sidebar-collapsed .sidebar .sidebar-brand {
    justify-content: center;
    padding: 1rem 0.5rem;
}

body.sidebar-collapsed .sidebar .sidebar-link {
    justify-content: center;
    padding: 0.75rem 0;
    margin: 4px auto;
    width: 46px;
    border-radius: 10px;
}

body.sidebar-collapsed .sidebar .sidebar-link i {
    font-size: 1.35rem;
    margin: 0;
}

/* ----------------------------------------------------
   Sidebar Navigation
   ---------------------------------------------------- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    padding: 1.25rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

.sidebar-brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-brand-text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.65rem;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 0.4rem 0.65rem;
    margin-top: 0.4rem;
    white-space: nowrap;
}

.sidebar-item {
    margin-bottom: 3px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.85rem;
    border-radius: 9px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Backdrop para móviles */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

/* Dispositivos móviles y tablets (< 992px) */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0 !important;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show-mobile {
        transform: translateX(0);
    }
    .sidebar-backdrop.show {
        display: block;
    }
}

/* ----------------------------------------------------
   Navbar Superior
   ---------------------------------------------------- */
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-sidebar-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-sidebar-toggle:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* ----------------------------------------------------
   Tarjetas & Componentes
   ---------------------------------------------------- */
.card-modern {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.card-modern:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header-modern {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.9rem 1.25rem;
}

/* Tarjetas KPI de Resumen Compactas */
.kpi-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.kpi-card .kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.1;
    margin-bottom: 2px;
}

.kpi-card .kpi-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
}

.kpi-icon-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.kpi-icon-blue { background: #dbeafe; color: #1d4ed8; }
.kpi-icon-green { background: #d1fae5; color: #059669; }
.kpi-icon-amber { background: #fef3c7; color: #d97706; }
.kpi-icon-purple { background: #f3e8ff; color: #7e22ce; }

/* ----------------------------------------------------
   PUNTO DE VENTA (POS) - Componentes Adaptables
   ---------------------------------------------------- */
.barcode-search-box {
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 0.3rem 0.65rem;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.barcode-search-box input {
    border: none;
    outline: none;
    font-size: 0.92rem;
    font-weight: 600;
    flex: 1;
    min-width: 80px;
    background: transparent;
    color: #1e293b;
}

.barcode-search-box input::placeholder {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Grilla de Servicios Táctiles */
#grillaServicios {
    align-content: flex-start;
    overflow: visible !important;
}

.service-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    transition: all 0.18s ease;
    height: 134px !important;
    min-height: 134px !important;
    max-height: 138px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.service-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
}

.service-card:active {
    transform: scale(0.98);
}

.service-card .service-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.service-card .service-price {
    font-size: 1.25rem !important; /* Precio notablemente más grande */
    font-weight: 900 !important;
    color: #059669;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.service-card .btn-add-service {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px; /* Botón un poco más arriba */
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.service-card .service-code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

/* Panel del Carrito POS (Estructura Fija con Scroll Interno) */
.pos-cart-panel {
    background: #ffffff;
    border-radius: var(--card-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    max-height: calc(100vh - 180px);
    position: sticky;
    top: 70px;
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .pos-cart-panel {
        position: static;
        height: auto;
        max-height: 520px;
        margin-top: 1rem;
    }
}

.pos-cart-header {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.pos-cart-customer {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.pos-cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 60px;
    padding: 0.45rem 0.75rem;
}

.pos-cart-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.45rem;
    transition: border-color 0.2s ease;
}

.pos-cart-item:hover {
    border-color: #cbd5e1;
}

.pos-cart-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.02);
}

.pos-total-display {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* ----------------------------------------------------
   FORMATO DE TICKET / RECIBO TÉRMICO (58mm - 80mm)
   ---------------------------------------------------- */
.ticket-preview-container {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.25rem 1.2rem 1.25rem 0.9rem;
    max-width: 360px;
    margin: 0 auto;
    font-family: var(--font-mono);
    color: #000000;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.ticket-header {
    text-align: center;
    border-bottom: 1.5px dashed #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.ticket-header h4 {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.ticket-divider {
    border-top: 1.5px dashed #000;
    margin: 6px 0;
}

.ticket-table {
    width: 100%;
    margin-bottom: 8px;
}

.ticket-table th {
    border-bottom: 1.5px dashed #000;
    padding: 3px 0;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ticket-table td {
    padding: 3px 0;
    font-size: 0.82rem;
    font-weight: 700;
    vertical-align: top;
}

.ticket-total-row {
    font-size: 1.05rem;
    font-weight: 900;
    border-top: 1.5px dashed #000;
    border-bottom: 1.5px dashed #000;
    padding: 6px 0;
}

.ticket-footer {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ==========================================================================
   REGLAS DE IMPRESIÓN DIRECTA PARA TICKETS TÉRMICOS (80mm / 58mm)
   ========================================================================== */
@media print {
    @page {
        margin: 0 !important;
        size: 80mm auto !important;
    }

    html, body {
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* Ocultar toda la interfaz de la aplicación */
    .app-wrapper, .sidebar, .top-navbar, .sidebar-backdrop, .no-print, 
    .modal-backdrop, .modal-header, .modal-footer, .btn, .btn-close {
        display: none !important;
    }

    /* Resetear modal para que no centre verticalmente */
    .modal {
        position: static !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 80mm !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .modal-dialog, .modal-dialog-centered {
        display: block !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 80mm !important;
        max-width: 80mm !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .modal-content {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 80mm !important;
        height: auto !important;
        background: transparent !important;
    }

    .modal-body {
        padding: 0 !important;
        margin: 0 !important;
        width: 80mm !important;
        background: transparent !important;
    }

    /* Ticket ajustado al tope superior con margen derecho amplio y negrita nítida */
    .ticket-preview-container, #ticket-print-area {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 2mm 7mm 2mm 3mm !important;
        width: 72mm !important;
        max-width: 74mm !important;
        border: none !important;
        box-shadow: none !important;
        font-family: 'JetBrains Mono', monospace, Arial !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #000000 !important;
        background: #ffffff !important;
        display: block !important;
    }

    .ticket-header h4 {
        font-weight: 900 !important;
    }

    .ticket-table th, .ticket-total-row, .fw-bold, strong {
        font-weight: 900 !important;
    }

    .text-end {
        text-align: right !important;
        padding-right: 3px !important;
        font-weight: 900 !important;
    }

    #ticketBarcodeSvg {
        max-width: 88% !important;
        height: 35px !important;
        margin: 4px auto 0 auto !important;
        display: block !important;
    }
}

/* ----------------------------------------------------
   Login Page Styling Responsivo, Elegante y de Alto Contraste
   ---------------------------------------------------- */
.login-bg {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(37, 99, 235, 0.16) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.98) 0%, #070b14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Efecto sutil de cuadrícula de fondo */
.login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.login-card {
    background: rgba(17, 24, 39, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75),
                0 0 50px rgba(245, 158, 11, 0.12);
    max-width: 460px;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card-header {
    padding: 2.5rem 2rem 1.25rem 2rem;
    text-align: center;
}

.login-brand-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0f172a;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    margin-bottom: 1.25rem;
    transition: transform 0.25s ease;
}

.login-brand-icon:hover {
    transform: scale(1.06) rotate(6deg);
}

.login-card-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.login-badge-subtitle {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.login-card-body {
    padding: 1.5rem 2.25rem 2.5rem 2.25rem;
}

.login-label {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.login-input-group {
    background: rgba(30, 41, 59, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.login-input-group:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.24);
    background: rgba(30, 41, 59, 0.98);
}

.login-input-icon {
    background: transparent;
    border: none;
    color: #fbbf24;
    padding: 0 0.95rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-input {
    background: transparent;
    border: none;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.85rem 0.75rem 0.85rem 0;
    height: 52px;
    flex: 1;
    outline: none;
}

.login-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover, 
.login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #1e293b inset;
    transition: background-color 5000s ease-in-out 0s;
}

.login-toggle-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0 1rem;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.login-toggle-btn:hover {
    color: #fbbf24;
}

.btn-login-submit {
    height: 52px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    color: #000;
}

.btn-login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-footer-security {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* ----------------------------------------------------
   Tablas y Formularios Responsivos
   ---------------------------------------------------- */
.table-custom {
    vertical-align: middle;
}

.table-custom th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.75rem 0.85rem;
    white-space: nowrap;
}

.table-custom td {
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}

.form-control, .form-select {
    border-radius: var(--input-radius);
    padding: 0.55rem 0.8rem;
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.btn-modern {
    border-radius: 9px;
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.badge-soft-success {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.badge-soft-primary {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.badge-soft-warning {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.badge-soft-danger {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

/* Modales fluidos en móviles */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-content {
        border-radius: 14px !important;
    }
    .modal-body {
        padding: 1.25rem !important;
    }
}
