/* Card overrides to match inventio-new / Mecharocket style */
.card {
    border: 0 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0.5rem !important;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 1.1rem 1.5rem !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

.card-body {
    padding: 1.5rem !important;
}

.card-body.p-0 {
    padding: 0 !important;
}

.card-footer {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 1.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

/* Table overrides to match inventio-new / Mecharocket style */
.table {
    vertical-align: middle !important;
    border-collapse: collapse !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.table thead, 
.table .table-light {
    background-color: #f8f9fa !important;
    color: #374151 !important;
}

.table thead th {
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    padding: 0.9rem 1.25rem !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.05em !important;
}

.table tbody td {
    padding: 0.9rem 1.25rem !important;
    font-size: 0.9rem !important;
}

.table.table-sm thead th,
.table.table-sm tbody td {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.85rem !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Titles and Headers styling */
.body h1, 
.body h2, 
h1, 
h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.02em !important;
}

/* Form Controls & Inputs styling */
.form-control, 
.form-select {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.475rem 0.75rem !important;
    font-size: 0.9rem !important;
    color: #374151 !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-control:focus, 
.form-select:focus {
    border-color: #5856d6 !important;
    box-shadow: 0 0 0 0.25rem rgba(88, 86, 214, 0.18) !important;
    outline: 0 !important;
}

/* Button overrides for standard Bootstrap 5 look */
.btn {
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    padding: 0.475rem 1rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
}

.btn-xs {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.25rem !important;
}

.btn-primary {
    background-color: #5856d6 !important;
    border-color: #5856d6 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #4643c1 !important;
    border-color: #413ea3 !important;
}

.btn-info {
    background-color: #39f !important;
    border-color: #39f !important;
    color: #ffffff !important;
}

.btn-info:hover {
    background-color: #2982d9 !important;
    border-color: #2475c4 !important;
}

/* Select2 overrides to match Bootstrap 5 theme */
.select2-container--default .select2-selection--single {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    height: calc(2.25rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    color: #374151 !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

/* Jumbotron style overrides for empty states */
.jumbotron {
    padding: 3rem 2rem !important;
    background-color: #f8f9fa !important;
    border-radius: 0.5rem !important;
    text-align: center !important;
    border: 1px dashed rgba(0, 0, 0, 0.1) !important;
    margin: 1.5rem 0 !important;
}

.jumbotron h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #4f5d73 !important;
    margin-bottom: 0.5rem !important;
}

.jumbotron p {
    color: #6c757d !important;
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

.card-hover {
    transition: transform 0.22s ease-in-out, box-shadow 0.22s ease-in-out !important;
}

.card-hover:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   SIDEBAR AMARILLO #f1c40f CON ACENTOS ROJOS COMPLEMENTARIOS (TICKETVAN)
   Color base amarillo cálido (#f1c40f),
   Hover rojo carmesí (#e74c3c) con texto blanco,
   Activo rojo borgoña (#c0392b / degradado elegante) con texto blanco
   ========================================================================== */
.sidebar.sidebar-dark {
    --cui-sidebar-bg: #f1c40f;
    --cui-sidebar-color: #2c3e50;
    --cui-sidebar-border-color: #d4ac0d;
    --cui-sidebar-brand-color: #1a252f;
    --cui-sidebar-nav-title-color: #7f5300;
    --cui-sidebar-nav-link-color: #2c3e50;
    --cui-sidebar-nav-link-hover-color: #ffffff;
    --cui-sidebar-nav-link-hover-bg: #e74c3c;
    --cui-sidebar-nav-link-active-color: #ffffff;
    --cui-sidebar-nav-link-active-bg: #c0392b;
    background-color: #f1c40f !important;
    border-right: 1px solid #d4ac0d !important;
}

.sidebar.sidebar-dark .sidebar-header {
    background-color: #e1b70e !important;
    border-bottom: 1px solid #d4ac0d !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sidebar.sidebar-dark .sidebar-footer {
    background-color: #e1b70e !important;
    border-top: 1px solid #d4ac0d !important;
}

/* Títulos de sección en el sidebar */
.sidebar.sidebar-dark .sidebar-nav .nav-title {
    color: #78350f !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    opacity: 0.95;
    padding-left: 1.25rem;
}

/* Enlaces del menú del sidebar */
.sidebar.sidebar-dark .sidebar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 600;
    border-radius: 0.375rem;
    margin: 2px 8px;
    padding: 0.65rem 0.85rem;
    transition: all 0.2s ease;
}

.sidebar.sidebar-dark .sidebar-nav .nav-link .nav-icon {
    color: #854d0e;
    transition: color 0.2s ease;
    font-size: 1.1rem;
}

/* Estado Hover: rojo complementario (#e74c3c) con texto blanco */
.sidebar.sidebar-dark .sidebar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: #e74c3c !important;
}

.sidebar.sidebar-dark .sidebar-nav .nav-link:hover .nav-icon {
    color: #ffffff !important;
}

/* Estado Activo: rojo carmesí profundo */
.sidebar.sidebar-dark .sidebar-nav .nav-link.active,
.sidebar.sidebar-dark .sidebar-nav .nav-item.active > .nav-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4) !important;
    font-weight: 700;
}

.sidebar.sidebar-dark .sidebar-nav .nav-link.active .nav-icon,
.sidebar.sidebar-dark .sidebar-nav .nav-item.active > .nav-link .nav-icon {
    color: #ffffff !important;
}

/* Botón toggler inferior */
.sidebar.sidebar-dark .sidebar-toggler {
    background-color: transparent !important;
    color: #2c3e50 !important;
}

.sidebar.sidebar-dark .sidebar-toggler:hover {
    background-color: #e74c3c !important;
    color: #ffffff !important;
}

/* Soporte óptimo para modo narrow / unfoldable */
.sidebar-narrow-unfoldable:not(:hover) .sidebar-nav .nav-link,
.sidebar-narrow .sidebar-nav .nav-link {
    margin: 2px auto !important;
}

/* ==========================================================================
   ESTILOS MAPA VISUAL DE ASIENTOS (BUS Y VAN)
   ========================================================================== */
.seat-bus-container, .seat-van-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: inline-block;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.seat-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    border: 2px solid transparent;
}

.seat-btn * {
    pointer-events: none;
}

.seat-btn.available {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #10b981 !important;
}

.seat-btn.available:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.seat-btn.occupied {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #f87171 !important;
    cursor: not-allowed !important;
    opacity: 0.65;
}

.seat-btn.selected {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.45);
}

.aisle-space {
    width: 32px;
    height: 48px;
    display: inline-block;
}

/* ==========================================================================
   FORMATO DE TICKET TÉRMICO DE 80 MM
   ========================================================================== */
.ticket-80mm-wrapper {
    background-color: #ffffff;
    width: 80mm;
    max-width: 100%;
    margin: 0 auto;
    padding: 3mm 4mm;
    font-family: 'Courier New', Courier, monospace, 'Lucida Console';
    font-size: 12px;
    color: #000000;
    line-height: 1.3;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.ticket-divider-double {
    border-top: 2px dashed #000000;
    margin: 8px 0;
}

@media print {
    @page {
        size: 80mm auto;
        margin: 0;
    }
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .wrapper, header, footer, .sidebar, .btn-no-print {
        display: none !important;
    }
    .ticket-80mm-wrapper {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2mm 3mm !important;
    }
}
