/* =====================
   ESTILOS GLOBALES Y BASE
   ===================== */
/* Estilos globales para evitar scroll horizontal */
* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    background-color: #DBDBDB !important;
}

.container,
.container-fluid {
    max-width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* Asegurar que las imágenes no desborden */
img {
    max-width: 100%;
    height: auto;
}



/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Estilos principales de la aplicación */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #DBDBDB !important;
    min-height: 100vh;
}

.container {
    padding: 20px;
}

.btn {
    margin: 5px;
}

.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.card-header {
    background-color: #007bff;
    color: white;
    border-radius: 8px 8px 0 0;
}

.alert {
    border-radius: 8px;
}

/* Estilos para el dashboard */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    color: #007bff;
    margin-bottom: 15px;
}

/* Estilos para formularios */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}



.content-login {
    padding-top: 20px;
    padding-bottom: 30px;
    background-color: #fff;
    padding-left: 25px;
    padding-right: 29px;
    background-color: #fff;
}

.contExt {
    display: table;
    height: 70px;
    overflow: hidden;
}

.contExt .contInt {
    display: table-cell;
    vertical-align: middle;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

#panel-pre-login {
    border: 0px;
}

#panel-heading {
    background-color: #B72E1C;
    border: 0px;
}

#panel-body .panel-default {
    border-radius: 0px;
    border: 0px;
    width: 700px;
    margin: 0 auto;
}

#panel-body .panel-default .panel-heading {
    background-color: #B72E1C;
    border: 0px;
}

#panel-body .panel-body {
    background-color: #B72E1C;
}

#panel-body .panel-body label {
    color: #fff;
}

#panel-body .panel-body .btn-primary {
    background-color: #263238;
    border: 0px;
}

.pull-left .contInt {
    color: #fff;
}

.login_buttons .btn-primary #panel-pre-login h4 {
    color: #fff;
    background-color: #b72e1c9e;
    margin: 0px;
    padding: 6px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    margin-bottom: 15px;
    border-radius: 0;
    background-color: #dbdbdb;
}

.input-group-addon {
    background-color: #131313 !important;
}

.input-group-addon i {
    color: #fff
}

.btn-primary:focus {
    background-color: #b72e1c9e;
    border-color: #B72E1C;
}

.btn-primary:hover {
    background-color: #b72e1c9e;
}

.btn-primary:active:focus {
    background-color: #b72e1c9e;
    border-color: #b72e1c9e;
}

.label_add_tow {
    color: #fff;
}

.body_add_tow {
    background-color: #B72E1C;
}

.body_add_tow .row {
    margin: 0px;
}

.body_add_tow p {
    color: #fff;
}

.body_add_tow h2 {
    color: #fff;
    text-align: center;
}

#towForm,
#registerMaintenance {
    margin: 0px;
}

.modalRowAddTow {
    margin: 0px;
    padding: 0px;
}

.body-modal {
    background-color: #B72E1C;
}

.modal-style {
    background-color: #B72E1C;
    border: 0px;
}

.modal-content {
    border-radius: 0px;
}

.panel-add-tow {
    border: 0px;
}

#content-form-modal {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

#button-close {
    background-color: #B72E1C;
    border: 0px;
}

#button-close-assignDriver {
    background-color: #B72E1C;
    border: 0px;
}

#button-close-assignDriver button {
    background-color: #B72E1C;
    border: 0px;
}

#title-modal {
    background-color: #B72E1C;
    border: 0px;
    color: #fff;
}

#btn_add_internal_user {
    background-color: #B72E1C;
    border: 0px;
    color: #fff;
}

#body-modal {
    background-color: #B72E1C;
}

#text-required {
    color: #fff;
    background-color: #B72E1C;
    border: 0px;
}

#form_intern {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

#content-price {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

#bodyInterest {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

.btn_add_interest {
    background-color: #B72E1C;
    border: 0px;
    color: #fff;
}

#celda_interest {
    background-color: #B72E1C;
}

#table-year {
    background-color: #B72E1C;
    border: 0px;
}

.btn-accept {
    background-color: #B72E1C;
    border: 0px;
    color: #fff;
}

.btn-actions {
    background-color: #B72E1C;
    border: 0px;
    color: #fff;
}

.btn-actions-disabled {
    background-color: #B72E1C;
    border: 0px;
    color: #fff;
}

#input-paramters {
    background-color: #B72E1C;
}

#input_parameter {
    background-color: #B72E1C;
}

#text-error {
    color: #fff;
    background-color: #B72E1C;
    border: 0px;
}

#listaPosiblesVehiculos {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

.selectionList {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

.selected {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

#listaVehiculos {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
    margin: 0px;
    padding: 0px;
}

#reset_password_force {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
}

#reset_password_force_column {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
}

.fade-animation {
    background-color: #B72E1C;
    border: 0px;
    border-radius: 0px;
}

#my_filter_menu {
    background-color: #fff;
    border: 0px;
    border-radius: 10px;
    margin: 0px;
    padding: 0px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #B72E1C;
    border: 2px solid #fff;
}

input:focus+.slider {
    box-shadow: 0 0 1px #B72E1C;
}

input:checked+.slider:before {
    -webkit-transform: translateX(22px) translateY(2px);
    -ms-transform: translateX(22px) translateY(2px);
    transform: translateX(22px) translateY(2px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.inicio-menu {
    margin-bottom: 2px;
    background-color: #B72E1C !important;
    height: 48px;
}

.hide-element {
    display: none;
}


.btnPrintDisponible {
    color: #fff !important;
}

.btnPrintNoDisponible {
    color: #333 !important;
}

.btn-add-payment {
    padding: 6px;
    background-color: #B72E1C;
    border-radius: 25px;
    font-size: 20px;
}

/* =====================
   ESTILOS ADMINISTRATION
   ===================== */
/* Estilos para el menú de administración y paneles */
#nav_menu_intern {
    background: #6D6D6D;
    border-radius: 0px;
    margin-bottom: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#container_menu {
    margin-left: 0px !important;
    padding-left: 0px !important;
    margin-right: 0px !important;
    padding-right: 0px !important;
    padding: 0;
}

#nav_menu_intern li {
    border: 1px solid;
    border-right-color: #A7A9AC;
}

#nav_menu_intern li:hover {
    background: #b72e1c9e;
}

#nav_menu_intern a {
    color: #fff !important;
}

#navbar_menu {
    padding-left: 0px !important;
}

#nav_menu_intern .navbar-nav>li>a {
    color: #333;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

#nav_menu_intern .navbar-nav>li>a:hover,
#nav_menu_intern .navbar-nav>li.active>a {
    background-color: #B72E1C;
    color: white;
}

#nav_menu_intern .navbar-toggle {
    border-color: #ddd;
}

#nav_menu_intern .navbar-toggle .icon-bar {
    background-color: #ddd;
}

#nav_menu_intern .navbar-toggle:hover {
    background-color: #B72E1C;
}

#nav_menu_intern .navbar-toggle:focus {
    background-color: #B72E1C !important;
}

#nav_menu_intern .navbar-toggle:hover .icon-bar {
    background-color: #ddd;
}

.container>.navbar-collapse {
    margin: 0 !important;
}

.navbar-nav {
    margin: 0 -15px !important;
}

#navbar_menu {
    padding-left: 13px !important;

}

@media (max-width: 768px) {
    #nav_menu_intern .navbar-nav>li>a {
        padding: 10px 15px;
        text-align: center;
    }

    #nav_menu_intern .navbar-collapse {
        border-top: 1px solid #e7e7e7;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* Paneles y pestañas */
.view_tow_navBar {
    background-color: #B72E1C !important;
    border: none;
    border-radius: 0;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.view_tow_navBar .panel-heading {
    background-color: #B72E1C !important;
    border: none;
    padding: 10px 0;
}

.view_tow_navBar .contInt {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.view_tow_navBar .viewtow_contExt {
    padding: 10px 0;
}

.view_tow_navBar a,
.view_tow_navBar a:hover {
    color: #fff;
    text-decoration: none;
}

.view_tow_navBar .glyphicon {
    color: #fff;
}

.panel-default {
    border-color: #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.panel-default .panel-body {
    background-color: #fff;
    padding: 20px;
}

.text-center img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view_tow {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.body_view_tow {
    padding: 20px;
}

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

.nav-tabs>li>a {
    color: #333;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 2px;
}

.nav-tabs>li.active>a,
.nav-tabs>li>a:hover {
    color: #fff;
    background-color: #B72E1C;
    border: 1px solid #B72E1C;
    border-bottom-color: transparent;
}

#estadoTabs li.active {
    background-color: #fff !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

#estadoTabs li {
    background-color: #E5E0DD !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    cursor: pointer;
}

.tab-content {
    padding: 20px 0;
}

.tow-table-container {
    border-left: 1px solid #dddddd;
    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 20px 15px 20px 15px;
}

.tab-pane {
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 4px 4px;
}

[data-toggle="tooltip"] {
    cursor: pointer;
}

.glyphicon {
    font-family: 'Glyphicons Halflings';
}

.pActive a {
    width: 170px !important;
    color: rgb(97, 96, 94) !important;
    text-align: center !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.pInactive a {
    width: 165px !important;
    color: rgb(104, 102, 102) !important;
    text-align: center !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.body_view_tow #pestañas a {
    background-color: #404041;
    width: 170px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: #fff;
    text-align: center;
}

.color-title-modal {
    color: #fff;
}

.color-title-table {
    background-color: #A7A9AC;
}

.color-title-table th {
    border: 1px solid #fff;
    text-align: center;
}

/* =====================
   ESTILOS HOME INTERN
   ===================== */
/* Dashboard y menú hamburguesa */
.dashboard {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin: 0;
}

/* Centrar las cartas del dashboard */
.row .dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* Contenedor principal para centrar todo */
.dashboard-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Centrar las cartas individuales */
.dashboard-container .dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.dashboard>.dashboard-button {
    height: 300px;
    width: 280px;
    margin: 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-bottom: 50px;
    border: 2px solid #e8e8e8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(0);
}

.dashboard>.dashboard-button:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: #B72E1C;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translateY(-8px) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }

    100% {
        transform: translateY(-8px) scale(1);
    }
}

.dashboard-button>.dashboard-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, #B72E1C 0%, #a0251a 100%);
    padding: 8% 5%;
    text-align: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dashboard-button:hover>.dashboard-text {
    background: linear-gradient(135deg, #c73a2a 0%, #B72E1C 100%);
    transform: scale(1.02);
}

.dashboard-button>.dashboard-image {
    display: block;
    margin: auto;
    padding-top: 10%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

.dashboard-button:hover>.dashboard-image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Estilos adicionales para las cartas del dashboard */
.dashboard-button {
    text-decoration: none;
    display: block;
    color: inherit;
}

.dashboard-button-grey {
    background-color: #f5f3f1e2;
}

.dashboard-button-grey-one {
    background-color: #b72e1c9e;
}

.dashboard-button-orange {
    background-color: #f5f3f1e2;
}

/* Efecto de brillo al hacer hover */
.dashboard>.dashboard-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.dashboard>.dashboard-button:hover::before {
    left: 100%;
}

/* Responsive para las cartas del dashboard */
@media (max-width: 768px) {
    .header-container {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .dashboard-container {
        gap: 15px;
        padding: 15px;
    }

    .dashboard>.dashboard-button {
        height: 280px;
        width: 260px;
        margin: 0;
    }

    .dashboard-button>.dashboard-image {
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-container {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .dashboard-container {
        gap: 10px;
        padding: 10px;
    }

    .dashboard>.dashboard-button {
        height: 260px;
        width: 240px;
        margin: 0;
    }

    .dashboard-button>.dashboard-image {
        max-width: 70%;
        height: auto;
    }

    .dashboard-button>.dashboard-text {
        font-size: 15px;
    }
}

body {
    overflow-y: auto !important;
}

.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #010311;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span {
    background-color: white;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    padding: 80px 20px 20px;
    box-sizing: border-box;
    transition: right 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-menu-item:nth-child(1) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-item:nth-child(2) {
    transition-delay: 0.5s;
}

.mobile-menu.active .mobile-menu-item:nth-child(3) {
    transition-delay: 0.7s;
}

.mobile-menu-item h4 {
    color: #010311;
    margin-bottom: 10px;
    font-size: 18px;
}

.mobile-menu-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.mobile-menu-item a {
    color: #010311;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-item a:hover {
    color: #B72E1C;
}

/* =====================
   ESTILOS LOGIN Y LOGIN INTERN
   ===================== */
/* Unificados para evitar duplicidad */
body.login,
body.login-intern {
    background-color: #eee;
}

.header_login {
    background-color: #b72e1c9e;
    -webkit-box-shadow: 0px 10px 5px 7px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0px 10px 5px 7px rgba(0, 0, 0, 0.08);
    box-shadow: 0px 10px 5px 7px rgba(0, 0, 0, 0.08);
    background-image: url("../images/barra-blanca-2.png");
    margin: 0px;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.header_login label {
    color: #010311;
}

.form-signin {
    width: 350px;
    padding-top: 156px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 45px;
    margin: 50px auto 0 auto;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 5px;
}

/* Imágenes de fondo específicas para cada tipo de login */
.form-signin.citizen-login {
    background-image: url("../images/ciudadano.png");
}

.form-signin.intern-login {
    background-image: url("../images/interno.png");
}

.triangulo_login {
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-top: 0px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid #fff;
    margin-top: 10px;
}

.content-login {
    padding-top: 20px;
    padding-bottom: 30px;
    background-color: #fff;
    padding-left: 25px;
    padding-right: 29px;
}

.contExt {
    display: table;
    height: 70px;
    overflow: hidden;
}

.contExt .contInt {
    display: table-cell;
    vertical-align: middle;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

#panel-pre-login {
    border: 0px;
}

#panel-heading {
    background-color: #B72E1C;
    border: 0px;
}

#panel-body .panel-default {
    border-radius: 0px;
    border: 0px;
    width: 700px;
    margin: 0 auto;
}

#panel-body .panel-default .panel-heading {
    background-color: #B72E1C;
    border: 0px;
}

#panel-body .panel-body {
    background-color: #B72E1C;
}

#panel-body .panel-body label {
    color: #fff;
}

#panel-body .panel-body .btn-primary {
    background-color: #263238;
    border: 0px;
}

.pull-left .contInt {
    color: #fff;
}

#panel-pre-login h4 {
    color: #fff;
    background-color: #b72e1c9e;
    margin: 0px;
    padding: 6px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    margin-bottom: 15px;
    border-radius: 0;
    background-color: #dbdbdb;
}

.input-group-addon {
    background-color: #131313;
}

.input-group-addon i {
    color: #fff;
}

.login_buttons .btn-primary {
    background-color: #131313;
    border-color: #131313;
    border-radius: 0px;
    width: 150px;
    height: 30px;
    font-size: 12px;
}

.login_buttons .btn-primary:focus {
    background-color: #b72e1c9e;
    border-color: #B72E1C;
}

.login_buttons .btn-primary:hover {
    background-color: green;
}

.login_buttons .btn-primary:active:focus {
    background-color: #b72e1c9e;
    border-color: #B72E1C;
}

.login_buttons .login_recoverPass {
    margin: 15px 0 15px 0;
}

#title-login {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    text-shadow: 0.1em 0.1em 0.2em black
}

#text-error {
    color: #fff;
    text-align: center;
    margin: 15px 0;
}

.login_recoverPass {
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

/* =====================
   ESTILOS FOOTER (COMPARTIDO)
   ===================== */
.footer-mcc {
    background-image: url("../images/footer-2024.png");
    margin: 0px !important;
    width: 100% !important;
    height: 70px;
    padding-top: 35px;
    bottom: 0 !important;
    position: fixed;
    z-index: 106;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
}

.footer-mcc label {
    color: #010311;
}

@media (max-width: 768px) {
    .footer-mcc {
        padding-top: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-mcc label {
        font-size: 12px;
        line-height: 1.2;
        text-align: right;
    }

    .footer-mcc img {
        max-width: 120px;
        height: auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .footer-mcc {
        padding-top: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-mcc label {
        font-size: 11px;
        text-align: right;
    }

    .footer-mcc img {
        max-width: 100px;
        height: auto;
    }
}

/* Ccs personalizado para Datatable */

/* Centrar el paginador */
div.dataTables_paginate {
    text-align: center !important;
    float: none !important;
    display: flex;
    justify-content: center;
    margin: 50px 0 0 0 !important;
}

#towTable th,
#tableHistoricCV th,
#tableConsultMaintenance th,
#tableConsultIncident th,
#tableChecklist th,
#tableIntern th,
#towTableInactive th,
#internTableInactive th,
#internTable th,
#modalAssignProfile th,
#roleTable th,
#roleTableInactive th,
#tableAssignPermission th,
#priceTable th,
#priceTableInactive th,
#notificationTable th,
#notificationTableInactive th,
#parameterTable th,
#exemptTable th,
#externProcedureTable th,
#externProcedureTableInactive th,
#dataProtectionTable th,
#parkingTable th,
#parkingTableInactive th,
#tableInternParking th,
#tableTowEnable th,
#tableTowOcuppied th,
#tableTowProcess th,
#tableTowProcessOperative th {
    text-align: center !important;
    background-color: #6D6D6D;
    color: #fff;
}

.dataTables_filter {
    position: relative;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
}

.dataTables_filter label::before {
    content: "\f002";
    /* Font Awesome lupa */
    font-family: FontAwesome;
    margin-right: 8px;
    font-size: 16px;
    color: #888;
}

.dataTables_filter input {
    padding-left: 10px;
}

/*Reemplaza directamente el texto del label */
.dataTables_filter label {
    font-size: 0;
}

.dataTables_filter input {
    width: 290px !important;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#towTable_filter,
#internTable_filter,
#roleTable_filter,
#priceTable_filter,
#notificationTable_filter,
#externProcedureTable_filter,
#parkingTable_filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

#towTable_filter label,
#internTable_filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
}

.table td {
    text-align: center;
    vertical-align: middle;
}

.btn-actions {
    background: #B72E1C;
    border-radius: 5px !important;
    border-color: #b72e1c9e;
    padding-bottom: 3px !important;
    padding-top: 3px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.btn-actions-disabled {
    background: #A7A9AC;
    border-radius: 5px !important;
    border-color: #A7A9AC;
    padding-bottom: 3px !important;
    padding-top: 3px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/*
 * ================================
 *  Estilos personalizados para la vista de Grúas
 *  - Botón "Agregar grúa"
 * ================================
 */

.btn-modern {
    position: relative;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    min-width: 280px;
    margin: 10px 0;
    text-decoration: none !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Efecto brillo */
.btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-modern:hover::before {
    left: 120%;
}

.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Responsivo: en pantallas pequeñas el botón se adapta */
@media (max-width: 600px) {
    .btn-modern {
        width: 100%;
        font-size: 14px;
        padding: 14px;
        min-width: unset;
    }
}

button.navbar-toggle {
    margin-right: 20px !important;
}

@media (max-width: 991px) {
    #estadoTabs {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #estadoTabs li {
        width: 100% !important;
        flex: none !important;
    }

    #estadoTabs li.pInactive,
    #estadoTabs li.pInactive.active,
    .pInactive a {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }

    #estadoTabs li a {
        width: 100% !important;
        display: block !important;
    }
}

/* === Espaciado general entre campos === */
.card-body .form-group {
    margin-bottom: 15px;
}

/* === Labels uniformes para Bootstrap 3 === */
.card-body .control-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

/* === Inputs y selects uniformes === */
.card-body .form-control {
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
    padding: 6px 10px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.card-body .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.4);
}

/* === Integración de Select2 con Bootstrap 3 === */
.select2-container .select2-selection--single {
    height: 36px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    font-size: 13px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

/* === Botones de pasos === */
.next-step,
.prev-step,
.btn-close {
    min-width: 110px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.next-step:hover,
.prev-step:hover,
.btn-close:hover {
    transform: translateY(-2px);
}

/* === Barra de progreso mejorada === */
.progress {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    font-weight: 600;
    font-size: 13px;
}

/* === Animación de entrada de cada paso === */
.step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Título con degradado para cajas === */
.text-gradient-box {
    font-weight: bold;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
}

.text-gradient-box span {
    background: linear-gradient(90deg, #B72E1C 0%, #e74c3c 50%, #B72E1C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Estilos para campos flotantes personalizados (form-floating-custom) === */
.form-input-text,
.form-input-text-area {
    position: relative;
    font-size: 15px;
}

.form-input-text label,
.form-input-text-area label {
    position: relative;
    top: 42px;
    left: 10px;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    pointer-events: none;
    color: #ccc;
}

.form-input-text label.active,
.form-input-text-area label.active {
    top: 10px;
    font-size: 14px;
    left: 5px;
    color: #333333;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow {
    height: 35px !important;
}


/* === Estilos para la sección de vehículos asignados === */
.section-title {
    font-weight: bold;
    font-size: 1.2em;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.vehicle-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: self-end;
    gap: 0 20px;
}

.vehicle-list .checkbox {
    flex: 0 0 32%;
    max-width: 32%;
    box-sizing: border-box;
    display: flex;
    margin-bottom: 8px;
}

.vehicle-list .checkbox label {
    font-weight: normal;
    display: flex;
    align-items: baseline;
    width: 100%;
    padding: 5px 0;
    font-size: 0.95em;
    border: 2px solid #eee;
    border-radius: 5px;
}

.vehicle-list input[type="checkbox"] {
    position: relative !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
}

.checkbox+.checkbox,
.radio+.radio {
    margin-top: 0 !important;
}

/* Responsive: en pantallas pequeñas, una sola columna */
@media (max-width: 900px) {
    .vehicle-list .checkbox {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 600px) {
    .vehicle-list {
        flex-direction: column;
        gap: 0;
    }

    .vehicle-list .checkbox {
        flex: 0 0 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .vehicle-list .checkbox label {
        justify-content: flex-start;
    }
}


/* === Estilos para el input de archivo personalizado (Custom File Input) === */
.custom-file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.custom-file-input-wrapper.has-file {
    background: #e9f7ef;
    border-color: #28a745;
}

.custom-file-input-wrapper.has-file a {
    color: #fff !important;
    text-decoration: none !important;
}

.custom-file-input {
    display: none !important;
}

.custom-file-label {
    background: #B72E1C;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s;
    margin: 0 !important;
}

.custom-file-label:hover {
    background: #a82313;
}

.custom-file-label i.glyphicon {
    right: 4px;
}

.file-name,
.file-name-soat,
.file-name-policy,
.file-name-rtm,
.file-name-rps,
.file-name-contractual-policy,
.file-name-photo {
    padding: 6px 12px;
    color: #777;
    font-size: 14px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Estilos personalizados para las cartas del modal hoja de vida de grua.
   ========================================================================== */

.cardCVT {
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none !important;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.cardCVT img {
    width: 100%;
    border-bottom: 3px solid #8f9194;
    transition: transform 0.3s ease-in-out;
}

.cardCVT-footer {
    width: 150px;
    background-color: #8f9194;
    padding: 10px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
}

.cardCVT:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.cardCVT:hover img {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.cardCVT:hover .cardCVT-footer {
    background-color: #6c6f72;
}

#pdf-loader,
#pdf-loader-checklist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    min-width: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
    max-width: none;
    padding: 0;
    position: static;
}

#pdf-loader .spinner-border,
#pdf-loader-checklist .spinner-border {
    width: 70px;
    height: 70px;
    border-width: 8px;
    border-color: #B72E1C #f3f3f3 #f3f3f3 #f3f3f3;
    border-radius: 50%;
    animation: spin-pulse 1.1s cubic-bezier(.68, -0.55, .27, 1.55) infinite;
    margin-bottom: 24px;
    background: transparent;
    box-shadow: 0 0 0 0 rgba(183, 46, 28, 0.15);
}

@keyframes spin-pulse {
    0% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 0 0 rgba(183, 46, 28, 0.15);
    }

    50% {
        transform: rotate(180deg) scale(1.08);
        box-shadow: 0 0 0 12px rgba(183, 46, 28, 0.07);
    }

    100% {
        transform: rotate(360deg) scale(1);
        box-shadow: 0 0 0 0 rgba(183, 46, 28, 0.15);
    }
}

#pdf-loader p,
#pdf-loader-checklist p {
    color: #B72E1C;
    font-size: 1.18rem;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(183, 46, 28, 0.08);
}

#pdf-loader .visually-hidden,
#pdf-loader-checklist .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive for mobile */
@media (max-width: 600px) {

    #pdf-loader,
    #pdf-loader-checklist {
        min-height: 100px;
        max-width: 100vw;
        padding: 0;
    }

    #pdf-loader .spinner-border,
    #pdf-loader-checklist .spinner-border {
        width: 48px;
        height: 48px;
        border-width: 6px;
        margin-bottom: 16px;
    }

    #pdf-loader p,
    #pdf-loader-checklist p {
        font-size: 1rem;
    }
}

.vehicle-dual-list {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-list-panel {
    width: 100%;
    max-width: 250px;
    min-height: 220px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafbfc;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
}

.vehicle-list-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vehicle-list-panel li {
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.vehicle-list-panel li.selected,
.vehicle-list-panel li:hover {
    background: #e9ecef;
}

.vehicle-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 18px;
}

.vehicle-arrow-btn {
    background: #fff;
    border: 1px solid #B72E1C;
    color: #B72E1C;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin: 8px 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.vehicle-arrow-btn:active,
.vehicle-arrow-btn:focus {
    background: #B72E1C;
    color: #fff;
    outline: none;
}

.vehicle-list-title {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 8px;
    text-align: center;
    color: #333;
}

.localizar-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.btn-localizar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.25);
    transition: all 0.3s ease;
}

.btn-localizar .icon {
    width: 22px;
    height: 22px;
}

.btn-localizar:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #b71c1c, #8e0000);
    box-shadow: 0 6px 14px rgba(183, 28, 28, 0.35);
}

#li_red {
    margin-top: 2px;
    border: 2px solid red;
    background-color: #FF3328;
    border-radius: 2px;
    color: white;
    list-style: none;
    width: 100%;
}

#li_yellow {
    margin-top: 2px;
    border: 2px solid #FFCE00;
    background-color: #FFD628;
    border-radius: 2px;
    list-style: none;
    width: 100%;
}

#li_info {
    color: #000;
    padding: 8px;
    font-style: italic;
    text-align: center;
    list-style: none;
    width: 100%;
    margin-top: 1px;
    border: 2px solid #0D47A1;
    background-color: #64B5F6;
    border-radius: 2px;
}

.labels_proceso_operativo_disponibles {
    font-weight: bold;
    font-size: 9px;
    font-stretch: condensed;
    opacity: 1;
    color: black;
    text-align: center;
    width: 65px;
}

.labels_ocupadas_proceso {
    font-weight: bold;
    font-size: 9px;
    font-stretch: condensed;
    opacity: 1;
    color: white;
    text-align: center;
    width: 65px;
}

.labels_parking {
    font-size: 12px;
    font-stretch: condensed;
    opacity: 1;
    color: black;
    text-align: center;
    width: 115px;
    font-weight: bold;
    margin-top: 20px;
}

/* Estilos para el panel de información de ruta */
.route-info-panel {
    font-family: Arial, sans-serif;
}

.route-info-panel h5 {
    color: #B72E1C;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.route-details p {
    margin: 5px 0;
    font-size: 13px;
}

.time-info {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 3px;
    margin-top: 10px;
}

.time-info p {
    margin: 3px 0;
    font-weight: bold;
}

#estimated-time,
#estimated-distance {
    color: #5cb85c;
}


/* Estilos para notificaciones de geofencing */
.geofence-notification {
    border-left: 4px solid #17a2b8;
}

.geofence-notification.success {
    border-left-color: #28a745;
}

.geofence-notification.error {
    border-left-color: #dc3545;
}

.geofence-notification.warning {
    border-left-color: #ffc107;
}/* =====================
   PORTED STYLES FROM SYMFONY 2.8
   ===================== */
/* Button styles from menu_intern.css */
.btn_search {
  background-color: #b72e1c9e;
  padding-bottom: 10px;
  padding-top: 8px;
  padding-left: 15px;
  padding-right: 15px;
  color: #fff;
  border-radius: 15px;
  margin-left: 15px;
  -webkit-box-shadow: 0px 0px 5px 2px #999;
  -moz-box-shadow: 0px 0px 5px 2px #999;
  box-shadow: 0px 0px 5px 2px #999;
  filter: shadow(color=#999999, direction=135, strength=1);
  text-decoration: none !important;
}

.btn_search:hover {
  color: #fff;
  background-color: #B72E1C;
}

.btn_add {
  background-color: #b72e1c9e;
  padding-left: 15px;
  padding-top: 10px;
  padding-right: 15px;
  padding-bottom: 10px;
  color: #fff;
  border-radius: 30px;
  margin-top: 20px;
  -webkit-box-shadow: 0px 0px 5px 2px #999;
  -moz-box-shadow: 0px 0px 5px 2px #999;
  box-shadow: 0px 0px 5px 2px #999;
  filter: shadow(color=#999999, direction=135, strength=1);
  display: block;
  text-decoration: none !important;
}

.btn_add:hover {
  color: #fff;
  background-color: #B72E1C;
}

.btn_operation_add {
    background-color: #b72e1c9e;
    padding: 10px 15px;
    color: #fff;
    border-radius: 30px;
    -webkit-box-shadow: 0px 0px 5px 2px #999;
    -moz-box-shadow: 0px 0px 5px 2px #999;
    box-shadow: 0px 0px 5px 2px #999;
    filter: shadow(color=#999999, direction=135, strength=1);
    display: inline-block;
    text-decoration: none !important;
}

.btn_operation_add:hover {
    color: #fff;
    background-color: #B72E1C;
}

/* Media queries for btn_operation_add */
@media (min-width: 390px) and (max-width: 412px) {
  .btn_operation_add {
    width: 265px;
  }
}

@media (min-width: 412px) and (max-width: 450px) {
  .btn_operation_add {
    width: 305px;
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  .btn_operation_add {
    width: 195px;
  }
}
