/*override adminlte*/
.main-header {
    background-color: #00695C !important;
}

    .main-header .navbar-nav .nav-link {
        color: #fff !important; /* Cambia el color del texto a blanco */
    }

    .main-header .navbar-brand {
        color: #fff !important; /* Si tienes una marca, tambi�n cambiar� a blanco */
    }

.brand-link {
    background-color: #00695C !important;
    padding: .8125rem .1rem !important;
    text-align: center;
    text-decoration: none;
}

.brand-text {
    font-family: "Dancing Script", cursive !important;
    font-size: 26px !important;
}

.main-sidebar {
    background-color: #222d32 !important;
}

.content-header {
    background-color: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 5px;
}

.content-wrapper {
    background-color: #E5E5E5 !important;
}

.custom-menu-item {
    
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: #fff;
}

    .custom-menu-item.active,
    .custom-menu-item:hover,
    .custom-menu-item:focus {
        background-color: rgba(255, 255, 255, .1);
        /*background: #0d1214;*/
        border-left-color: #00695C;
        text-decoration: none;
        color: #fff;
    }



/*Login*/
.material-half-bg {
    height: 100vh;
    background-color: #e7e7e7;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

    .material-half-bg .cover {
        background-color: #00695C;
        height: 50vh;
    }


.login-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
}

    .login-content .logo {
        margin-bottom: 20px;
        font-family: "Dancing Script", cursive;
        color: #fff;
    }

        .login-content .logo h1, .login-content .logo .h1 {
            font-size: 52px;
            font-weight: 400;
        }

    .login-content .login-box {
        position: relative;
        min-width: 350px;
        min-height: 500px;
        background-color: #fff;
        -webkit-box-shadow: 0px 29px 147.5px 102.5px rgba(0, 0, 0, 0.05), 0px 29px 95px 0px rgba(0, 0, 0, 0.16);
        box-shadow: 0px 29px 147.5px 102.5px rgba(0, 0, 0, 0.05), 0px 29px 95px 0px rgba(0, 0, 0, 0.16);
        -webkit-perspective: 800px;
        perspective: 800px;
        -webkit-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }
        .login-content .login-box.error-visible {
            min-height: 580px;
            transition: min-height 0.3s ease-in-out;
        }

        .login-content .login-box .login-head {
            margin-top: 0;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #ddd;
            text-align: center;
        }

        .login-content .login-box label {
            color: #666;
            font-weight: 700;
        }

        .login-content .login-box .utility {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            padding: 1px;
            -webkit-box-pack: justify;
            -ms-flex-pack: justify;
            justify-content: space-between;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
        }

        .login-content .login-box .btn-container {
            text-align: center;
            margin-bottom: 0;
        }

        .login-content .login-box .login-form, .login-content .login-box .forget-form {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 40px;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            -webkit-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
        }

        .login-content .login-box .forget-form {
            opacity: 0;
            -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
        }

        .login-content .login-box.flipped {
            min-height: 320px;
        }

            .login-content .login-box.flipped .login-form {
                opacity: 0;
                -webkit-transform: rotateY(-180deg);
                transform: rotateY(-180deg);
            }

            .login-content .login-box.flipped .forget-form {
                opacity: 1;
                -webkit-transform: rotateY(0deg);
                transform: rotateY(0deg);
            }


@media (max-width: 351px) {
    .login-content .login-box {
        min-width: 100%;
    }

        .login-content .login-box .login-form, .login-content .login-box .forget-form {
            width: 100%;
        }
}


.lockscreen-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
}

    .lockscreen-content .logo {
        font-family: "Dancing Script";
        margin-bottom: 40px;
        color: #fff;
    }

        .lockscreen-content .logo h1, .lockscreen-content .logo .h1 {
            font-size: 52px;
            font-weight: 400;
        }

    .lockscreen-content .lock-box {
        position: relative;
        min-width: 320px;
        padding: 20px 40px;
        background-color: #fff;
        -webkit-box-shadow: 0px 29px 147.5px 102.5px rgba(0, 0, 0, 0.05), 0px 29px 95px 0px rgba(0, 0, 0, 0.16);
        box-shadow: 0px 29px 147.5px 102.5px rgba(0, 0, 0, 0.05), 0px 29px 95px 0px rgba(0, 0, 0, 0.16);
        -webkit-perspective: 800px;
        perspective: 800px;
        -webkit-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }

        .lockscreen-content .lock-box .user-image {
            border: 3px solid #fff;
            max-width: 100px;
            display: block;
            margin: 0 auto;
        }

        .lockscreen-content .lock-box .user-name {
            margin-bottom: 2px;
        }

        .lockscreen-content .lock-box label {
            color: #666;
            font-weight: 700;
        }

        .lockscreen-content .lock-box .btn-container {
            text-align: center;
        }


/* CSS para el efecto de sacudida */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* CSS para ajustar datatable */
table.dataTable thead th, table.dataTable tbody td {
    padding: 4px 8px; /* Ajusta el padding para hacer la tabla m�s compacta */
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0; /* Reduce el tama�o de los botones de paginaci�n */
    margin: 0;
}

.text-limited {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* N�mero de l�neas que deseas mostrar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.btn-container {
    display: flex;
    gap: 5px; /* Espacio entre los botones */
}

/*Facturacion, Cotiazion, etc*/
@media (max-width: 768px) {
    .card-footer-buttom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: white;
        padding: 10px;
        box-shadow: 0px -2px 5px rgba(0,0,0,0.1);
        text-align: center;
    }

        .card-footer-buttom button {
            width: 45%;
        }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}


/* Estilo moderno sin l�neas divisorias */

/* Configuraci�n general */
.dataTables_wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c2c2c;
    background-color: #ffffff;
}
/* Estilo de las celdas */
.dataTable td, .dataTable th {
    /*font-size: 14px; tama�os de celdas*/
    font-size: 14.5px;
    padding: 10px 14px; /* Compacto pero espacioso */
    text-align: left;
    vertical-align: middle;
    color: #2c2c2c;
    background-color: #ffffff;
    border: none; /* Sin l�neas divisorias */
}


/* Encabezados */
.dataTable th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: none; /* Sin l�neas divisorias */
}

/* Filas alternadas (si se desea mantener) */
.dataTable tbody tr:nth-child(even) {
    background-color: #fafafa; /* Color muy sutil */
}

/* Efecto hover en celdas */
.dataTable tbody tr:hover td {
    background-color: #e0f7fa; /* Azul claro atractivo */
    transition: background-color 0.3s ease; /* Suavidad en el cambio */
    cursor: pointer; /* Indicar interactividad */
}

/* Campo de b�squeda */
.dataTables_filter input {
    font-size: 13px;
    padding: 6px 10px; /* Reducir tama�o */
    border: 1px solid #d1d1d1;
    border-radius: 8px; /* Bordes redondeados */
    outline: none;
    transition: border-color 0.2s ease;
}

    .dataTables_filter input:focus {
        border-color: #007aff;
        box-shadow: 0px 0px 4px rgba(0, 122, 255, 0.3);
    }

/* Paginaci�n */
.dataTables_paginate .paginate_button {
    font-size: 13px;
    padding: 6px 10px; /* Compactar botones */
    margin: 0 4px;
    border: 1px solid #d1d1d1;
    border-radius: 8px; /* Bordes redondeados */
    background-color: #ffffff;
    color: #007aff;
    transition: all 0.2s ease;
}

    .dataTables_paginate .paginate_button:hover {
        background-color: #f0f8ff;
        border-color: #007aff;
    }

    .dataTables_paginate .paginate_button.current {
        background-color: #007aff;
        color: #ffffff;
        border-color: #007aff;
    }

    /* Ajuste para el bot�n "Primero" y "�ltimo" */
    .dataTables_paginate .paginate_button.disabled {
        color: #bcbcbc;
        border-color: #e0e0e0;
        background-color: #f9f9f9;
        pointer-events: none;
    }

/* Ajuste para el encabezado general */
.dataTables_length select {
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    outline: none;
    background-color: #ffffff;
}

/* Barra de informaci�n */
.dataTables_info {
    font-size: 15px;
    color: #555;
}


.modal-header {
    cursor: grab; /* muestra una mano abierta al pasar el mouse */
}
.modal-header:active {
    cursor: grabbing; /* muestra una mano cerrada mientras se arrastra */
}


/* Estiliza los campos de formulario */
.modal-content input.form-control,
.modal-content select.form-control,
.modal-content textarea.form-control {
    border-radius: 0.4rem;
    border: 1px solid #ced4da;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

/* Efecto al enfocar */
.modal-content input.form-control:focus,
.modal-content select.form-control:focus,
.modal-content textarea.form-control:focus {
    border-color: #3c8dbc; /* color primario AdminLTE */
    box-shadow: 0 0 0 0.2rem rgba(60, 141, 188, 0.25);
}

/* Select moderno */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%233c8dbc'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    padding-right: 2rem;
}

/* Redondeo general del modal */
.modal-content {
    border-radius: 0.6rem;
    overflow: hidden;
}

/* Botones con apariencia moderna */
.modal-footer .btn {
    border-radius: 0.375rem;
    padding: 0.45rem 1.2rem;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.modal-footer .btn-primary {
    background-color: #007bff;
    border: none;
}

.modal-footer .btn-primary:hover {
    background-color: #0069d9;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
}

/* Cursor para campos arrastrables */
.modal-header {
    cursor: grab;
}
.modal-header:active {
    cursor: grabbing;
}

modal-footer .btn {
    border-radius: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.45rem 1.25rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-footer .btn i {
    font-size: 1rem;
}

/* Botón primario */
.modal-footer .btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #0069d9;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.3);
}

/* Botón secundario */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    border: none;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 0 0 0.2rem rgba(108,117,125,0.3);
}

.dropdown-menu .col-4 a {
    display: block;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu .col-4 a:hover {
    background-color: #f0f8ff;
    color: #007bff;
    text-decoration: none;
}


/* Preloader estilo profesional */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

/* Logo estático con sombra suave */
.preloader-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
  opacity: 0.95;
}

/* Ocultamiento suave */
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* Fondo tipo overlay, fijo, ocupa toda la pantalla */
.bloqueo-caja {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10; /* Encima de todo, incluso de sidebar */
  background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all; /* Bloquea interacción detrás */
}

/* Botón estilizado coherente con AdminLTE */
#btnAbrirCaja {
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
}

.bloqueo-box {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.select2-selection__choice__remove {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none !important;          /* Quita el borde azul por defecto */
  box-shadow: 0 0 6px 2px rgba(0, 123, 255, 0.6) !important; /* Resplandor */
  border: 1px solid #007bff !important;         /* Borde azul intenso */
  transition: all 0.2s ease-in-out !important;  /* Animación suave */
}