:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', 'Roboto', -apple-system, sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
    /* Removed uppercase for a more professional look */
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.modern-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

input,
select,
textarea {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: white;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

a {
    outline: 0 !important;
}

a:active,
a:hover,
a:focus {
    outline: 0 !important;
}

input:focus,
form:focus,
select:focus,
textarea:focus {
    color: #000 !important;
}

input:hover,
form:hover,
select:hover,
textarea:hover {
    color: #000 !important;
}

input:checked,
form:checked,
select:checked,
textarea:checked {
    color: #000 !important;
}

input:active,
form:active,
select:active,
textarea:active {
    color: #000 !important;
}

input[type=submit] {
    color: #fff !important;
}

textarea {
    resize: none;
    height: 34px !important;
}

/* Button Overrides */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white !important;
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    color: white !important;
}

.btn-default {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}


.dt-buttons {
    margin-top: 25px;
}

.canvasjs-chart-credit {
    margin-top: 25px !important;
}


.form-signin {
    background: rgba(255, 255, 255, 0.9) none repeat scroll 0 0;
    border-radius: 5px;
    margin: 20px auto 0;
    max-width: 750px;
    padding: 40px;
    height: 550px;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -3px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.logotipo {
    text-align: center;
    margin-bottom: 3rem;
}

.logotipo img {
    width: -moz-available;
}


/* Navbar Modernization */
.navbar-default {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 15px !important;
}

.navbar-brand center {
    font-size: 10px;
    color: var(--text-muted);
}

.nav-pills.menu-hundido>li>a {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-pills.menu-hundido>li>a:hover {
    background: var(--bg-light) !important;
    color: var(--accent-color) !important;
}

.nav-pills.menu-hundido>li.active>a {
    background: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Main Content Container */
.contenido {
    background: white !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 130px !important;
    padding: 2.5rem !important;
    min-height: calc(100vh - 160px) !important;
    border: 1px solid var(--border-color);
}


.form-control option:first {
    color: #999;
}

input[type="submit"] {
    margin: 5px 0;
}

.label {}

.bloque {
    margin: 10px 0;
    padding: 10px;
}

.bloque h3 {
    margin: 0;
}


.titulo-pagina {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    letter-spacing: -0.02em;
}

.titulo-pagina svg,
.titulo-pagina i {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

/* DataTables Styling Overrides */
.dataTables_wrapper {
    padding: 1rem 0;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    border: none !important;
}

table.dataTable thead th {
    background: var(--bg-light);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 12px 15px !important;
    border: none !important;
}

table.dataTable tbody tr {
    background: white !important;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    transition: transform 0.2s;
}

table.dataTable tbody tr:hover {
    transform: scale(1.005);
    box-shadow: var(--shadow-md);
}

table.dataTable tbody td {
    padding: 15px !important;
    border: none !important;
    vertical-align: middle !important;
}

table.dataTable tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table.dataTable tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* Firma */
.info {
    color: #acacac;
    font-size: 0.9em;
    line-height: 1.1;
    padding: 10px;
    width: 285px;
    text-transform: initial;
}

.firmando {
    margin: 0 auto;
    text-align: center;
    width: 288px;
    z-index: 9999;
    position: absolute;
    left: 0;
    right: 0;
    top: 20%;
    margin-left: auto;
    margin-right: auto;
}

.fondo-oscuro {
    background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0;
    height: 110%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9991;
}

.toggle-button {
    background: none;
    /* Fondo transparente o el que desees */
    border: none;
    /* Sin bordes */
    cursor: pointer;
    /* Cambia el cursor al puntero cuando se pasa sobre el botón */
    padding: 0;
    /* Sin relleno para que el botón se ajuste al contenido */
    text-align: left;
    /* Alinea el texto a la izquierda */
}

.toggle-content {
    display: none;
    /* Oculta el contenido del desplegable */
    margin-top: 10px;
    /* Espacio entre el título y el contenido */
}


.pad {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
}

.listaconfig li {
    /*! background: #fff none repeat scroll 0 0; */
    /*! border: 1px solid #dcdcdc; */
    border-radius: 5px;
    display: block;
    float: left;
    list-style-type: none;
    margin: 3px;
    padding: 4px 8px;
}

.datospaciente {
    background: #ffffcf none repeat scroll 0 0;
    margin: 10px 0;
    padding: 10px 0;
}

.noedit {
    color: #337ab7;
    cursor: pointer;
    font-weight: bold;
}

.noedit:hover {
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.Vehiculosida,
.Vehiculosvuelta {
    border: 0 none;
    border-radius: 3px;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.enlinea {
    position: relative;
}

.enlinea a {
    height: 34px;
    position: absolute;
    right: 15px;
    top: 13px;
}

.enlinea .nombre {
    background: #fff none repeat scroll 0 0;
    border: 1px solid green;
    border-radius: 5px;
    color: green;
    font-size: 1.1em;
    margin: 5px 0;
    padding: 9px 5px;
    line-height: 1
}


#printable div {
    padding: 2px;
}

#printable {
    background: #fff none repeat scroll 0 0;
    min-height: 1080px;
    margin: 0 auto;
    max-width: 740px;
    overflow: scroll;
}

#printableinforme div {
    padding: 2px;
}

#printableinforme {
    background: #fff none repeat scroll 0 0;
    height: 1080px;
    margin: 0 auto;
    max-width: 740px;
    overflow: scroll;
}

#printable .firma {
    border: 0;
    background-image: none;
    text-align: center;
    border-radius: 3px;
    box-shadow: none;
    margin: 3px 0;
    padding: 6px;
    width: 100%;
    display: block;
    min-height: 140px;
}

#printable .form-control {
    height: 18px;
    margin: 0;
    font-size: 12px;
    border: 0;
    box-shadow: none;
    font-weight: 600;
}

#printable h5 {
    font-size: 12px;
}



#printable .printvale {
    border: 1px dashed #222;
    padding: 6px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 5px;
}

#visualizar #listadovales {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #707070;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    min-height: 1115px;
    margin: 10px auto;
    max-width: 740px;
    overflow-y: scroll;
    padding: 0;
}

#datatabla,
#datatabla2 {
    width: 100% !important;
}

table {
    width: 100% !important;
}

.dtr-modal-content>table {
    margin: auto;
}

.dtr-modal-content>table td {
    margin: auto;
    border-right: 0px;
}

table .btn {
    padding: 2px 10px;
}

table .btn-group {
    float: right;
}

table#datatabla thead tr th:last-child {
    max-width: 20px;
}

table#datatabla2 thead tr th:last-child {
    max-width: 20px;
}

table#datatabla td {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 8px;
    border-bottom: 2px solid #ffffe2;

}

table#datatabla2 td {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 5px 8px;
    border-bottom: 2px solid #ffffe2;

}

.icon-custom {
    text-align: center;
    position: relative;
}

.notificacion {
    background-color: #fff;
    border: 2px solid;
    border-radius: 50%;
    height: 22px;
    line-height: 19px;
    position: absolute;
    right: 6px;
    text-align: center;
    top: -6px;
    width: 22px;
}

.icon-custom i {
    font-size: 2em;
}

.icon-custom>span {
    display: block;
    font-size: 0.8em;
}

.modelo {
    width: 720px;
    position: relative;
}

.modelo .modelo-cabecera {
    font-size: 1.1em;
    height: 295px;
    overflow: hidden;
    top: 0;
    width: 720px;

}

.modelo .modelo-content {
    font-size: 0.9em;
    width: 720px;
    min-height: 550px;
}

.modelo .modelo-footer {
    font-size: 1em;
    height: 205px;
    position: relative;
    width: 720px;
}

@page {
    margin-top: 223px;
    /* this affects the margin in the printer settings */
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 185px;
}

.mod-fecha {
    left: 92px;
    top: 150px;
    position: absolute;
}

.mod-factura {
    font-size: 2em;
    position: absolute;
    right: 27px;
    text-align: right;
    top: 140px;
    width: 159px;
}

.mod-cif {
    position: absolute;
    right: 40px;
    top: 188px;
}

.mod-cliente {
    left: 115px;
    position: absolute;
    top: 188px;
    max-width: 440px;
}

.mod-domicilio {
    left: 115px;
    line-height: 1.2;
    position: absolute;
    top: 215px;
    width: 580px;
}

.mod-modo {
    left: 206px;
    position: absolute;
    top: 262px;
}

.mod-banco {
    font-size: 1.3em;
    left: 12px;
    position: fixed;
    top: 122px;
}

.mod-cuenta {
    font-size: 1.3em !important;
    left: 22px;
    position: fixed;
    top: 136px;
}

.mod-bruto {
    position: fixed;
    right: 169px;
    text-align: right;
    width: 76px;
    top: 108px;
}

.mod-descuento {
    position: fixed;
    right: 12px;
    text-align: left;
    top: 108px;
    width: 100px;
}

.mod-total {
    font-size: 2em;
    position: fixed;
    right: 31px;
    text-align: right;
    top: 150px;
    width: 150px;
}

.mod-final {
    font-size: 0.4em;
    line-height: 1;
    position: absolute;
    text-transform: capitalize;
    top: 174px;
}

.topconcept {
    border: 1px solid #dcdcdc;
    font-size: 1.2em;
    font-weight: 600;
    padding: 5px;
    text-transform: none;
}

.detalleservicio h5 {
    border: 1px solid #dcdcdc;
    font-size: 1.2em;
    font-weight: 600;
    padding: 5px;
    text-transform: none;
}

.tabla-impresion td {
    font-size: 0.7em;
    line-height: 1;
    padding: 5px;
}

.tabla-impresion thead {
    font-size: 0.8em;
    border-bottom: 2px solid #000;
    text-transform: capitalize;
}

.tabla-impresion thead th {
    padding: 0 2px;
}

.infoextra {
    border-bottom: 1px solid #000;
    padding: 0 0 4px !important;
}

.informe-content {
    margin-top: 147px;
}

.mensajeria td {
    border-bottom: 1px solid #bcbcbc !important;
    border-left: 0 none !important;
    border-right: 0 none !important;
}

.mensajeria tr:hover {
    background: #fff;
    cursor: pointer;
}

.mensaje {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    padding: 10px;
}

.modal-body {
    background: #f7f7f7;
}

.negrita {
    font-weight: 700;
}

.tabla-responsive {
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    height: auto;
}

table {
    width: 100%;
    font-size: 10pt;
}

.verde {
    background-color: #66ccff !important;
}

.results {
    max-width: 430px;
    margin: 30px auto;
    text-align: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
}

.bloq,
.bloq2 {
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 30px;
    background-image: -webkit-linear-gradient(top, #fff 0%, #f2f2f2 100%);
    background-image: -o-linear-gradient(top, #fff 0%, #f2f2f2 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f2f2f2));
    background-image: linear-gradient(to bottom, #fff 0%, #f2f2f2 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    background-repeat: repeat-x;
}

.bloq:hover,
.bloq2:hover {
    cursor: pointer;
    background-color: #e8e8e8;
    background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
    background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
    background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
    background-repeat: repeat-x;
}

.bloq2 i {
    font-size: 20px;
}

.bloq2 input {
    font-size: 20px;
    height: 43px;
}

.bloq2 button {
    font-size: 20px;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
    border: 1px solid #fff;
}

.dataTables_length {
    width: 50% !important;
    float: left;
    padding: 10px 0px;
}

div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
    width: 50% !important;
    padding: 10px 0px;
    float: right;
}

div.dataTables_wrapper div.dataTables_filter label {
    font-weight: normal;
    white-space: nowrap;
    text-align: right !important;
}

.button-a {
    margin: 2rem;
}

.panel.widget {
    padding: 30px;
    border-radius: 2rem 4rem;
}

.botonazul {
    font-size: 48px;
    background: #337ab7;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
    color: #eee;
    line-height: 110px;
}

.panel.widget i {
    font-size: 48px;
    background: #337ab7;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
    color: #eee;
    line-height: 110px;
}

.panel.widget.center {
    text-align: center;
}

.row>[class*="col-"] {
    margin-bottom: 25px;
}

.panel.widget h4 {
    font-weight: bold;
    text-transform: none;
    font-size: 20px;
}

/* Modern SweetAlert2 Custom Styling */
.swal2-popup.modern-swal {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.swal2-title {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.swal2-html-container {
    color: var(--text-muted) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.swal2-actions {
    margin-top: 2rem !important;
    gap: 12px;
}

.swal2-styled.swal2-confirm {
    background-color: var(--accent-color) !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-confirm:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4) !important;
}

.swal2-styled.swal2-deny {
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
}

.swal2-styled.swal2-cancel {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.swal2-styled.swal2-cancel:hover {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
}

.swal2-icon {
    border-width: 2px !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}