/**

* Estilos para Reporte Combustible CANBUS
 * Asegurar que no interfieran con base.php
 */

/* Ocultar scrollbar en el body y html cuando está en reporte-combustible */
html:has(body.app.reporte-combustible-page),
html body.app.reporte-combustible-page {
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html:has(body.app.reporte-combustible-page)::-webkit-scrollbar,
html body.app.reporte-combustible-page::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

body.app.reporte-combustible-page {
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body.app.reporte-combustible-page #mainContent .container-fluid {
    padding: 20px;
    background: transparent !important;
}

/* Ocultar scrollbars - Vista general y contenedores principales con máxima especificidad */
html body.app.reporte-combustible-page .page-container,
html body.app.reporte-combustible-page .main-content,
html body.app.reporte-combustible-page #mainContent,
body.app.reporte-combustible-page .page-container,
body.app.reporte-combustible-page .main-content,
body.app.reporte-combustible-page #mainContent {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE y Edge */
    overflow-y: auto !important; /* Mantener funcionalidad */
    overflow-x: hidden !important;
}

html body.app.reporte-combustible-page .page-container::-webkit-scrollbar,
html body.app.reporte-combustible-page .main-content::-webkit-scrollbar,
html body.app.reporte-combustible-page #mainContent::-webkit-scrollbar,
body.app.reporte-combustible-page .page-container::-webkit-scrollbar,
body.app.reporte-combustible-page .main-content::-webkit-scrollbar,
body.app.reporte-combustible-page #mainContent::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Ocultar scrollbars en todos los elementos hijos pero mantener funcionalidad */
body.app.reporte-combustible-page * {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE y Edge */
}

body.app.reporte-combustible-page *::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Estilos para las tarjetas */
body.app.reporte-combustible-page .card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

body.app.reporte-combustible-page .card-header {
    background: white;
    color: #333;
    border: 1px solid #000;
    border-bottom: 2px solid #000;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

[data-theme="dark"] body.app.reporte-combustible-page .card-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-bottom-color: #4a5568;
    color: #e2e8f0;
    border: 1px solid #4a5568 !important;
    border-bottom: 2px solid #4a5568 !important;
}

body.app.reporte-combustible-page .card-header h4,
body.app.reporte-combustible-page .card-header h5 {
    margin: 0;
    font-weight: 600;
}

body.app.reporte-combustible-page .card-body {
    padding: 20px;
}

[data-theme="dark"] body.app.reporte-combustible-page .card {
    background-color: #20232a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] body.app.reporte-combustible-page .card-body {
    background-color: #20232a !important;
    color: #e2e8f0 !important;
}

/* Estilos para formularios */
[data-theme="dark"] body.app.reporte-combustible-page .form-control {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page .form-control:focus {
    background-color: #2d3748;
    border-color: #4299e1;
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page .form-control::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] body.app.reporte-combustible-page select.form-control[size] {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page select.form-control option {
    background-color: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page .form-label {
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page .form-label small {
    color: #a0aec0;
}

/* Estilos para tabla de combustible */
body.app.reporte-combustible-page .combustible-table {
    width: 100%;
    font-size: 0.875rem;
}

body.app.reporte-combustible-page .combustible-table thead th {
    background: linear-gradient(135deg, #3a6fad 0%, #2d5a8f 100%);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #2d5a8f;
}

body.app.reporte-combustible-page .combustible-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

body.app.reporte-combustible-page .combustible-table tbody tr:hover {
    background-color: #f7fafc;
}

[data-theme="dark"] body.app.reporte-combustible-page .combustible-table tbody tr {
    background-color: #20232a !important;
}

[data-theme="dark"] body.app.reporte-combustible-page .combustible-table tbody tr:hover {
    background-color: #2d3748 !important;
}

[data-theme="dark"] body.app.reporte-combustible-page .combustible-table tbody td {
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Barra de combustible */
body.app.reporte-combustible-page .combustible-bar {
    display: inline-block;
    height: 20px;
    width: 75px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-left: 5px;
}

/* Colores de estado */
body.app.reporte-combustible-page .estado-encendido {
    color: #22c55e;
    font-weight: 600;
}

body.app.reporte-combustible-page .estado-apagado {
    color: #ef4444;
    font-weight: 600;
}

/* Responsive */
body.app.reporte-combustible-page .table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

/* Espaciado de iconos en títulos */
body.app.reporte-combustible-page .card-header h4 i,
body.app.reporte-combustible-page .card-header h5 i,
body.app.reporte-combustible-page .card-header h6 i,
body.app.reporte-combustible-page .btn i {
    margin-right: 0.5rem !important;
}

body.app.reporte-combustible-page .modal-title i {
    margin-right: 0.5rem !important;
}

/* Botones */
[data-theme="dark"] body.app.reporte-combustible-page .btn-primary {
    background-color: #4299e1;
    border-color: #4299e1;
}

[data-theme="dark"] body.app.reporte-combustible-page .btn-primary:hover {
    background-color: #3182ce;
    border-color: #3182ce;
}

[data-theme="dark"] body.app.reporte-combustible-page .btn-success {
    background-color: #48bb78;
    border-color: #48bb78;
}

[data-theme="dark"] body.app.reporte-combustible-page .btn-success:hover {
    background-color: #38a169;
    border-color: #38a169;
}

/* Modales */
[data-theme="dark"] body.app.reporte-combustible-page .modal-content {
    background-color: #1a202c;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-theme="dark"] body.app.reporte-combustible-page .modal-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-bottom-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page .modal-body {
    background-color: #1a202c;
    color: #e2e8f0;
}

[data-theme="dark"] body.app.reporte-combustible-page .modal-footer {
    background-color: #1a202c;
    border-top-color: #4a5568;
}

