body {
    background: #f4f6f9;
    font-family: Arial, sans-serif;
}

.navbar-brand {
    letter-spacing: .4px;
}

.card {
    border-radius: 18px;
}

.form-control,
.form-select,
.btn {
    border-radius: 10px;
}

.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #f8fbff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.propietario-card {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

/* ===== PESTAÑAS (tabs) MÁS PROFESIONALES ===== */

.nav-tabs {
    border-bottom: 2px solid #d0d7e2;
}

.nav-tabs .nav-link {
    background-color: #e9eef5; /* gris suave */
    color: #495057;
    border: 1px solid #d0d7e2;
    margin-right: 5px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Hover */
.nav-tabs .nav-link:hover {
    background-color: #dce4ef;
    color: #0d6efd;
}

/* Activa */
.nav-tabs .nav-link.active {
    background-color: #ffffff;
    color: #0d6efd;
    border-bottom: 2px solid white;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}

/*DISEÑO PAGINA INICIAL MATRICULA*/
/* ===== FORMULARIO MÁS COMPACTO ===== */

#formMatricula,
.card-body,
.modal-body {
    font-size: 0.88rem;
}

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

#formMatricula .row.g-3,
.modal-body .row.g-3,
.modal-body .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.55rem;
}

#formMatricula .form-label,
.modal-body .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

#formMatricula .form-control,
#formMatricula .form-select,
.modal-body .form-control,
.modal-body .form-select {
    font-size: 0.82rem;
    min-height: 32px;
    height: 32px;
    padding: 0.2rem 0.55rem;
    border-radius: 0.45rem;
}

#formMatricula input[type="date"],
.modal-body input[type="date"] {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

#formMatricula textarea,
.modal-body textarea {
    font-size: 0.82rem;
    padding: 0.35rem 0.55rem;
}

#formMatricula h5,
.modal-body h5,
.modal-body h6 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem !important;
}

.nav-tabs .nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
}

.btn {
    font-size: 0.82rem;
    padding: 0.38rem 0.7rem;
    border-radius: 0.5rem;
}

#mensaje,
#mensajeSolicitante,
#mensajeLiquidacion {
    font-size: 0.82rem;
}

.table {
    font-size: 0.82rem;
}

.table th,
.table td {
    padding: 0.45rem 0.55rem;
    vertical-align: middle;
}

/* Reduce un poco el bloque superior */
.card.shadow-sm.border-0.rounded-4.mb-4 .card-body {
    padding: 0.9rem !important;
}

/* Tabs y títulos más compactos */
#tabsMatricula {
    margin-bottom: 1rem !important;
}

/* Secciones internas de modal */
.modal-body .border.rounded-4.p-3.bg-light {
    padding: 0.8rem !important;
}

/* Modales más aprovechados en pantalla */
.modal-dialog.modal-xl {
    max-width: 92vw;
}

.modal-dialog.modal-lg {
    max-width: 80vw;
}

/* En pantallas grandes, meter más campos por fila */
@media (min-width: 1400px) {
    #vehiculo .col-md-3,
    #modalOtrasCaracteristicas .col-md-3 {
        flex: 0 0 auto;
        width: 20%;
    }

    #modalOtrasCaracteristicas .col-md-4 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* 🔥 Reducir altura barra superior */
.navbar, .topbar, header {
    min-height: 50px !important;
    height: 50px !important;
    padding: 0.2rem 1rem !important;
}

/* Usuario (derecha) más compacto */
.navbar .user-info,
.topbar .user-info {
    font-size: 0.8rem;
}

/* Avatar más pequeño */
.navbar img,
.topbar img {
    width: 30px;
    height: 30px;
}

/* 🔥 Compactar solo el bloque superior */
.card:first-of-type .card-body {
    padding: 0.8rem !important;
}

/* Título más pequeño */
.card:first-of-type h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

/* Texto más compacto */
.card:first-of-type p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

#placa_busqueda {
    height: 34px;
    font-size: 0.85rem;
}

#btnConsultar,
#btnMatricular,
#btnLiquidar {
    height: 34px;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

@media print {
    body {
        margin: 15px;
    }
}

#btnLiquidar {
    background-color: #f6b26b; /* naranja claro */
    border: none;
    color: #333;
}

#btnLiquidar:hover {
    background-color: #f39c12;
    color: #fff;
}

#btnOtrasCaracteristicas,
#btnAgregarSolicitante {
    background-color: #e0e0e0;
    border: none;
    color: #333;
}

#btnOtrasCaracteristicas:hover,
#btnAgregarSolicitante:hover {
    background-color: #cfcfcf;
}

/* 🔵 BUSCAR */
#btnConsultar {
    background-color: #3b82f6;  /* azul suave */
    border: none;
    color: white;
}

#btnConsultar:hover {
    background-color: #2563eb;
}


/* 🟢 GUARDAR */
#btnMatricular {
    background-color: #34d399;  /* verde suave */
    border: none;
    color: #064e3b;
}

#btnMatricular:hover {
    background-color: #10b981;
    color: white;
}


/* 🟠 LIQUIDAR */
#btnLiquidar {
    background-color: #fcd9b6; /* naranja MUY suave */
    border: none;
    color: #7c2d12;
}

#btnLiquidar:hover {
    background-color: #f4a261;
    color: white;
}

/* 🔵 BUSCAR */
#btnConsultar {
    background-color: #4f8df5;
    border: none;
    color: #fff;
}

#btnConsultar:hover {
    background-color: #3b73e6;
}


/* 🟢 GUARDAR */
#btnMatricular {
    background-color: #3cbf8f;
    border: none;
    color: #fff;
}

#btnMatricular:hover {
    background-color: #2da97c;
}


/* 🟠 LIQUIDAR */
#btnLiquidar {
    background-color: #f4a261;
    border: none;
    color: #fff;
}

#btnLiquidar:hover {
    background-color: #e76f51;
}

/* ===== MODAL SOLICITANTE MÁS COMPACTO ===== */
#modalSolicitante .modal-dialog {
    max-width: 700px;
}

#modalSolicitante .modal-content {
    border-radius: 14px;
}

#modalSolicitante .modal-header,
#modalSolicitante .modal-footer {
    padding: 0.7rem 1rem;
}

#modalSolicitante .modal-body {
    padding: 0.9rem 1rem;
}

#modalSolicitante .form-label {
    font-size: 0.76rem;
    margin-bottom: 0.18rem;
    font-weight: 600;
}

#modalSolicitante .form-control,
#modalSolicitante .form-select {
    height: 31px;
    min-height: 31px;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
}

#modalSolicitante .btn {
    font-size: 0.8rem;
    padding: 0.34rem 0.65rem;
}

#modalSolicitante .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

/* ===== MODAL LIQUIDACIÓN MÁS COMPACTO ===== */
#modalLiquidacion .modal-dialog {
    max-width: 1080px;
}

#modalLiquidacion .modal-content {
    border-radius: 14px;
}

#modalLiquidacion .modal-header,
#modalLiquidacion .modal-footer {
    padding: 0.7rem 1rem;
}

#modalLiquidacion .modal-body {
    padding: 0.9rem 1rem;
}

#modalLiquidacion .form-label {
    font-size: 0.76rem;
    margin-bottom: 0.18rem;
    font-weight: 600;
}

#modalLiquidacion .form-control,
#modalLiquidacion .form-select {
    height: 31px;
    min-height: 31px;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
}

#modalLiquidacion textarea {
    min-height: 58px;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

#modalLiquidacion .btn {
    font-size: 0.8rem;
    padding: 0.34rem 0.65rem;
}

#modalLiquidacion .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

#modalLiquidacion .table {
    font-size: 0.79rem;
    margin-bottom: 0.4rem;
}

#modalLiquidacion .table th,
#modalLiquidacion .table td {
    padding: 0.38rem 0.45rem;
    vertical-align: middle;
}

#modalLiquidacion .table input.form-control,
#modalLiquidacion .table select.form-select {
    height: 29px;
    min-height: 29px;
    font-size: 0.78rem;
    padding: 0.15rem 0.4rem;
}

#modalLiquidacion h5,
#modalLiquidacion h6 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem !important;
}

#modalLiquidacion #liq_total {
    font-size: 1rem;
    font-weight: 700;
    color: #173da7;
}

/* Mensajes dentro de modales */
#mensajeSolicitante,
#mensajeLiquidacion {
    font-size: 0.8rem;
    margin-bottom: 0.6rem !important;
}

/* Reduce espacio vertical interno de filas */
#modalSolicitante .row.g-3,
#modalLiquidacion .row.g-3,
#modalLiquidacion .row.g-4 {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.45rem;
}

/* Footer más fino y elegante */
#modalSolicitante .modal-footer,
#modalLiquidacion .modal-footer {
    border-top: 1px solid #e9ecef;
    gap: 0.4rem;
}

/* Botones de acciones de liquidación más equilibrados */
#btnAgregarConceptoLiquidacion {
    padding: 0.34rem 0.7rem;
    font-size: 0.8rem;
}

#btnGuardarImprimirLiquidacion,
#btnGuardarLiquidacion {
    min-width: 125px;
}

/* En pantallas medianas, que no se vea tan ancho */
@media (max-width: 1200px) {
    #modalLiquidacion .modal-dialog {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    #modalSolicitante .modal-dialog,
    #modalLiquidacion .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
    }

    #modalSolicitante .modal-body,
    #modalLiquidacion .modal-body {
        padding: 0.75rem;
    }
}

/* ===== MODAL OTRAS CARACTERÍSTICAS MÁS COMPACTO ===== */
#modalOtrasCaracteristicas .modal-dialog {
    max-width: 1080px;
}

#modalOtrasCaracteristicas .modal-content {
    border-radius: 14px;
}

#modalOtrasCaracteristicas .modal-header,
#modalOtrasCaracteristicas .modal-footer {
    padding: 0.7rem 1rem;
}

#modalOtrasCaracteristicas .modal-body {
    padding: 0.9rem 1rem;
}

#modalOtrasCaracteristicas .form-label {
    font-size: 0.76rem;
    margin-bottom: 0.18rem;
    font-weight: 600;
}

#modalOtrasCaracteristicas .form-control,
#modalOtrasCaracteristicas .form-select {
    height: 31px;
    min-height: 31px;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
}

#modalOtrasCaracteristicas .btn {
    font-size: 0.8rem;
    padding: 0.34rem 0.65rem;
}

#modalOtrasCaracteristicas .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

#modalOtrasCaracteristicas h5,
#modalOtrasCaracteristicas h6 {
    font-size: 0.92rem;
    margin-bottom: 0.5rem !important;
}

#modalOtrasCaracteristicas .row.g-3,
#modalOtrasCaracteristicas .row.g-4 {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.45rem;
}

#modalOtrasCaracteristicas .border.rounded-4.p-3.bg-light {
    padding: 0.75rem !important;
    border-radius: 0.75rem !important;
}

#modalOtrasCaracteristicas .modal-footer {
    border-top: 1px solid #e9ecef;
    gap: 0.4rem;
}

@media (max-width: 1200px) {
    #modalOtrasCaracteristicas .modal-dialog {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    #modalOtrasCaracteristicas .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
    }

    #modalOtrasCaracteristicas .modal-body {
        padding: 0.75rem;
    }
}

/* 💰 CAJA - ROSADO PROFESIONAL */
#btnIrCaja {
    background: #fce7f3;   /* rosado clarito */
    border: none;
    color: #9d174d;        /* rosado oscuro elegante */
    font-weight: 600;
}

#btnIrCaja:hover {
    background: #f9a8d4;   /* rosado más fuerte */
    color: white;
}

#btnIrCaja:hover {
    background: #e2e6ea;
    color: #212529;
}

/* Botones alineados y elegantes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Iconos */
.btn i {
    font-size: 0.95rem;
}

/* Botón liquidar más elegante */
.btn-warning {
    background: #f59f00;
    border: none;
}

.btn-warning:hover {
    background: #e67700;
}

/* Botón caja  más elegante */
#btnIrCaja {
    background-color: #ec489aa9;  /* rosado */
    color: #ffffff;
    border: none;

    height: 34px;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    transition: all 0.2s ease;  /* 👈 IMPORTANTE */
}

/* 🔥 HOVER IGUAL A LOS OTROS */
#btnIrCaja:hover {
    background-color: #be185d;  /* rosado más oscuro */
    color: #ffffff;
    transform: translateY(-1px); /* pequeño efecto pro */
}

.limitacion-card {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.header-otsoft {
    background: linear-gradient(135deg, #4a90e2, #357ABD);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Opcional - mejora general del modal */
#modalPlacaNoExiste .modal-content {
    border-radius: 18px;
}

#modalPlacaNoExiste .modal-body {
    font-size: 15px;
}

#modalPlacaNoExiste .modal-title {
    font-weight: 600;
}

.header-otsoft .modal-title {
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* BOTONES SUAVES OTSoft */

.btn-soft-primary {
    background-color: #e7f0ff;
    color: #1d4ed8;
    border: 1px solid #c7dbff;
}

.btn-soft-primary:hover {
    background-color: #d6e6ff;
    color: #1e40af;
}

.btn-soft-success {
    background-color: #e6f7ef;
    color: #0f7a4f;
    border: 1px solid #bfe8d4;
}

.btn-soft-success:hover {
    background-color: #d4f2e3;
    color: #0c5f3e;
}

.observacion-vehiculo {
    background-color: #eef6ff;
    border: 1px solid #b8d8ff;
    color: #1f2937;
    font-weight: 500;
    resize: vertical;
}

.observacion-vehiculo:focus {
    background-color: #e7f1ff;
    border-color: #4f8df7;
    box-shadow: 0 0 0 0.15rem rgba(79, 141, 247, 0.18);
}

.historial-preview {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 14px;
    padding: 12px;
    min-height: 120px;
}

.btn-soft-primary {
    background: #eaf2ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.btn-soft-success {
    background: #eafaf1;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.btn-soft-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-soft-dark {
    background: #eef2f7;
    color: #1f2937;
    border: 1px solid #cbd5e1;
}

.historial-preview {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 10px;
}

.btn-liquidar {
    background: #f59e0b;
    border: none;
    color: white;
}

.btn-liquidar:hover {
    background: #d97706;
}

/* Botones suaves OTSoft */
.btn-otsoft-suave {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    opacity: 0.9;
}

.btn-otsoft-suave:hover {
    opacity: 1;
    transform: scale(1.02);
}

.btn-otsoft-suave {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    opacity: 0.85;
}

/* 🔥 Igualar tamaño exacto */
.btn-liquidar-historial,
.btn-imprimir-historial {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* 🔥 Texto blanco en botón liquidar */
.btn-liquidar-historial {
    color: #fff !important;
}

/* 🔥 Botón imprimir más suave (gris elegante) */
.btn-imprimir-historial {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-imprimir-historial:hover {
    background: #dfe3e6;
}

.btn-liquidar-historial,
.btn-imprimir-historial {
    height: 28px;
    display: inline-flex;
    align-items: center;
}