﻿html,
body {
    scroll-behavior: smooth;
}

form {
    height: 100%;
}

#loader {
    position: fixed;
    display: grid;
    align-content: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: white;
    top: 0px;
    left: 0px;
    z-index: 999;
}


.sk-folding-cube {
    margin: 20px auto;
    width: 25px;
    height: 25px;
    position: relative;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.sk-folding-cube .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    -webkit-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}

.sk-folding-cube .sk-cube:nth-child(-n+2):before {
    background-color: #0b9fcd;
}

.sk-folding-cube .sk-cube:nth-child(n+3):before {
    background-color: #27cbc8;
}

.sk-folding-cube .sk-cube2 {
    -webkit-transform: scale(1.1) rotateZ(90deg);
    transform: scale(1.1) rotateZ(90deg);
}

.sk-folding-cube .sk-cube3 {
    -webkit-transform: scale(1.1) rotateZ(180deg);
    transform: scale(1.1) rotateZ(180deg);
}

.sk-folding-cube .sk-cube4 {
    -webkit-transform: scale(1.1) rotateZ(270deg);
    transform: scale(1.1) rotateZ(270deg);
}

.sk-folding-cube .sk-cube2:before {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.sk-folding-cube .sk-cube3:before {
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.sk-folding-cube .sk-cube4:before {
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

@-webkit-keyframes sk-foldCubeAngle {

    0%,
    10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%,
    75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%,
    100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@keyframes sk-foldCubeAngle {

    0%,
    10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%,
    75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%,
    100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

.text-ellipsis {
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.form-control input[type=radio]+label {
    margin-left: 1rem;
}


.phone {
    height: 50px;
    width: 100px;
    border: 3px solid white;
    border-radius: 10px;
    animation: rotate 1.5s ease-in-out infinite alternate;
}

.signature-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    touch-action: none;
}

.message {
    color: white;
    font-size: 1em;
    margin-top: 40px;
}

.portrait-container {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: black;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(-90deg)
    }

    100% {
        transform: rotate(-90deg)
    }
}

@media only screen and (max-width: 824px) and (orientation: landscape) {
    .portrait-container {
        display: none;
    }

    .landscape-container {
        display: block;
        background-color: white;
        top: 0;
        left: 0;
        position: relative;
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 824px) and (orientation: portrait) {
    .portrait-container {
        display: flex;
    }

    .landscape-container {
        display: none;
    }
}

.landscape-left {
    float: left;
    width: 90%;
    height: 100%;
}

.landscape-left canvas {
    left: 5%;
    top: 5%;
    position: relative;
    width: 90%;
    height: 90%;
    border: 1px solid #212529;
}

.landscape-right {
    padding: 4px;
    float: left;
    width: 10%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.landscape-right button {
    width: 100%;
    height: 47%;
}

.sign-help-overlay {
    left: 5%;
    top: 5%;
    position: fixed;
    width: 80%;
    height: 90%;
}

.sign-help-overlay .help-text {
    position: absolute;
    left: 10%;
    width: 80%;
    bottom: 20%;
    border-top: 1px solid #000;
}



.digit-group input {
    width: 30px !important;
    height: 50px !important;
    background-color: #18182a !important;
    border: none !important;
    line-height: 50px !important;
    text-align: center !important;
    font-size: 24px !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 200 !important;
    color: white !important;
    margin: 0 2px !important;
    padding: 0 !important;
}

.digit-group .splitter {
    padding: 0 5px;
    color: #18182a !important;
    font-size: 30px;
}

#overlay-container {
    touch-action: none;
}


/*extra breakpoints for better mobile support*/
@media(max-width:411px) {

    html,
    body {
        font-size: 11px !important;
    }
}

@media(max-width:320px) {

    html,
    body {
        font-size: 9px !important;
    }
}

.user-initials {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
}

.image-input.image-input-outline .image-input-wrapper {
    background-size: contain;
    background-position: center;
}

.content {
    background: #f8f8ff;
}


.img-loader .spinner:before {
    left: -0.75rem;
}

.note-editable {
    background-color: white;
}

.dataTables_info {
    overflow-x: hidden;
    white-space: normal !important;
}

.select2-hidden {
    display: none !important;
}

.document {
    position: relative;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgb(0 0 0 / 7%);
    border-radius: 1rem;
}

.document .document-index {
    position: absolute;
    left: -10px;
    top: -10px;
}

.document [data-action="remove"] {
    position: absolute;
    right: 20px;
    top: -10px;
}

.document .checkbox {
    font-size: 0.8rem;
}

.document [data-action="move"] {
    position: absolute;
    right: -10px;
    top: -10px;
}

.document [data-action="restore"] {
    position: absolute;
    right: 80px;
    top: -10px;
}

.document [data-action="edit"] {
    position: absolute;
    right: 50px;
    top: -10px;
}


.color-info {
    color: #03a9f4;
}

.color-danger {
    color: #F64E60;
}

.color-warning {
    color: #FFA800;
}


.completed-process g [fill] {
    fill: #4caf50;
}

.pending-process g [fill] {
    fill: #ff9800;
}

.cancelled-export g [fill] {
    fill: #f44336;
}



/*custom input file*/
.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.inputfile+label {
    max-width: 80%;
    font-size: 0.75rem;
    /* 20px */
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    padding: 0.625rem 1.25rem;
    /* 10px 20px */
}

.no-js .inputfile+label {
    display: none;
}

.inputfile:focus+label,
.inputfile.has-focus+label {
    outline: 1px dotted #000;
    outline: -webkit-focus-ring-color auto 5px;
}

.inputfile+label * {
    /* pointer-events: none; */
    /* in case of FastClick lib use */
}

.inputfile+label svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    margin-top: -0.25em;
    /* 4px */
    margin-right: 0.25em;
    /* 4px */
}


/* style 1 */

.inputfile-1+label {
    color: #f1e5e6;
    background-color: #7e8299;
    border-color: #7e8299;
}

.inputfile-1:focus+label,
.inputfile-1.has-focus+label,
.inputfile-1+label:hover {
    background-color: #7e8299cc;
    border-color: #7e8299cc;
}


/* style 2 */

.inputfile-2+label {
    color: #d3394c;
    border: 2px solid currentColor;
}

.inputfile-2:focus+label,
.inputfile-2.has-focus+label,
.inputfile-2+label:hover {
    color: #722040;
}


/* style 3 */

.inputfile-3+label {
    color: #d3394c;
}

.inputfile-3:focus+label,
.inputfile-3.has-focus+label,
.inputfile-3+label:hover {
    color: #722040;
}


/* style 4 */

.inputfile-4+label {
    color: #d3394c;
}

.inputfile-4:focus+label,
.inputfile-4.has-focus+label,
.inputfile-4+label:hover {
    color: #722040;
}

.inputfile-4+label figure {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #d3394c;
    display: block;
    padding: 20px;
    margin: 0 auto 10px;
}

.inputfile-4:focus+label figure,
.inputfile-4.has-focus+label figure,
.inputfile-4+label:hover figure {
    background-color: #722040;
}

.inputfile-4+label svg {
    width: 100%;
    height: 100%;
    fill: #f1e5e6;
}


/* style 5 */

.inputfile-5+label {
    color: #d3394c;
}

.inputfile-5:focus+label,
.inputfile-5.has-focus+label,
.inputfile-5+label:hover {
    color: #722040;
}

.inputfile-5+label figure {
    width: 100px;
    height: 135px;
    background-color: #d3394c;
    display: block;
    position: relative;
    padding: 30px;
    margin: 0 auto 10px;
}

.inputfile-5:focus+label figure,
.inputfile-5.has-focus+label figure,
.inputfile-5+label:hover figure {
    background-color: #722040;
}

.inputfile-5+label figure::before,
.inputfile-5+label figure::after {
    width: 0;
    height: 0;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
}

.inputfile-5+label figure::before {
    border-top: 20px solid #dfc8ca;
    border-left: 20px solid transparent;
}

.inputfile-5+label figure::after {
    border-bottom: 20px solid #722040;
    border-right: 20px solid transparent;
}

.inputfile-5:focus+label figure::after,
.inputfile-5.has-focus+label figure::after,
.inputfile-5+label:hover figure::after {
    border-bottom-color: #d3394c;
}

.inputfile-5+label svg {
    width: 100%;
    height: 100%;
    fill: #f1e5e6;
}


/* style 6 */

.inputfile-6+label {
    color: #d3394c;
}

.inputfile-6+label {
    border: 1px solid #d3394c;
    background-color: #f1e5e6;
    padding: 0;
}

.inputfile-6:focus+label,
.inputfile-6.has-focus+label,
.inputfile-6+label:hover {
    border-color: #722040;
}

.inputfile-6+label span,
.inputfile-6+label strong {
    padding: 0.625rem 1.25rem;
    /* 10px 20px */
}

.inputfile-6+label span {
    width: 200px;
    min-height: 2em;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: top;
}

.inputfile-6+label strong {
    height: 100%;
    color: #f1e5e6;
    background-color: #d3394c;
    display: inline-block;
}

.inputfile-6:focus+label strong,
.inputfile-6.has-focus+label strong,
.inputfile-6+label:hover strong {
    background-color: #722040;
}

@media screen and (max-width: 50em) {
    .inputfile-6+label strong {
        display: block;
    }
}

.dz-message {
    display: flex;
}

.dropzone .dz-preview .dz-error-message {
    color: white;
}

/*.note-attachment > span {
    color: blue;
}*/

input[type=file].note-attachments+label>svg g [fill] {
    fill: #8950FC;
}

input[type=file].note-attachments+label:hover>svg g [fill] {
    fill: white;
}

.login-logo>img {
    max-height: 50px;
    width: auto;
}


@media (max-width: 991.98px) {
    .login-logo>img {
        max-height: 40px;
        width: auto;
    }
}




/* facebook like tagging */

.contentbox {
    width: 100%;
    min-height: 50px;
    text-align: left;
    height: auto !important;
    /*border: solid 2px #333;
    font-family: Arial, Helvetica, sans-serif;*/
    /*font-size: 14px;
    margin-bottom: 6px;
    */
}

/*.display .display_box .img {
    float: left;
    width: 150px;
    margin-right: 10px;
    text-align: center;
}

.msgbox {
    border: solid 1px #dedede;
    padding: 5px;
    display: none;
    background-color: #f2f2f2
}
*/
/*.contentbox .red {
    color: #cc0000;
    font-weight: bold;
}

.contentbox a {
    text-decoration: none;
}

.contentbox a:hover {
    text-decoration: none;
}*/

/*.display {
    display: none;
    border-left: solid 1px #dedede;
    border-right: solid 1px #dedede;
    border-bottom: solid 1px #dedede;
    overflow: hidden;
    margin:0;
    padding:0;
}

    .display .display_box {
        min-height: 50px;
        padding: 4px;
        font-size: 12px;
        height: 30px;
    }

.user-box:not(:last-child) {
    border-bottom: solid 1px #dedede;
}

.display .display_box:hover {
    background: #3b5998;
}

        .display .display_box:active {
            background: #3b5998;
        }

.display .display_box:focus-visible {
    outline: none;
}



    .display .display_box:hover .user-fullname {
        color: #FFFFFF !important;
    }

        .display .display_box:active .user-fullname {
            color: #FFFFFF !important;
        }

    .display .display_box:hover .user-email {
        color: #ffffff91 !important;
    }

        .display .display_box:active .user-email {
            color: #ffffff91 !important;
        }

    .display .display_box a {
        color: #333;
    }

.display .display_box a:hover {
    color: #fff;
}


.display .display_box .image {
    width: 25px;
    float: left;
    margin-right: 6px
}*/



.ui-menu-item-wrapper {
    display: flex;
}

.ui-menu-item-wrapper.ui-state-active span .user-fullname {
    color: #FFFFFF !important;
}

.ui-menu-item-wrapper.ui-state-active span .user-email {
    color: #ffffff91 !important;
}

.ui-menu-item:not(:last-child) {
    border-bottom: solid 1px #dedede !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: #3b5998;
    border-color: #3b5998;
}


table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody td.select-checkbox:after,
table.dataTable tbody th.select-checkbox:before,
table.dataTable tbody th.select-checkbox:after {
    top: 45%;
}


.alert[data-notify] {
    z-index: 9999 !important;
}


.file-options {
    top: 0;
    position: absolute;
    right: 5%;
}

.dropdown-toggle.file-options::after {
    display: none;
}

.ocr-icon {
    position: absolute;
    left: 55%;
    bottom: 8%;
    font-size: 0.47rem !important;
}

.file-options-dropdown .dropdown-item {
    padding: 0.2rem 1rem !important;
}

.input-action-icon {
    position: absolute;
    bottom: 0;
    right: 10px;
    padding: 1.75rem 1rem;
    cursor: pointer;
}

i.copy-input-text:hover {
    color: #3b5998;
}


.warning-row {
    background-color: #ffeb3b54;
}

.success-row {
    background-color: #3bff4654;
}

.auth-side-panel-logo {
    background-size: contain !important;
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-position-x: right;
}

/* ========== ESTILOS PARA LAS CARDS DEL DASHBOARD ========== */
.dashboard-card .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* Colores de fondo personalizados */
.dashboard-card .bg-light-orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.dashboard-card .bg-light-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.dashboard-card .bg-light-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.dashboard-card .bg-light-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.dashboard-card .bg-light-indigo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.dashboard-card .bg-light-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
}

/* Estilo base de las cards - Mejorado */
.dashboard-card .card-stats {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid;
    border-radius: 16px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.dashboard-card .card-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Bordes light personalizados */
.dashboard-card .card-stats.border-orange {
    border-color: #fed7aa;
    color: #ea580c;
}

.dashboard-card .card-stats.border-green {
    border-color: #a7f3d0;
    color: #059669;
}

.dashboard-card .card-stats.border-red {
    border-color: #fecaca;
    color: #dc2626;
}

.dashboard-card .card-stats.border-blue {
    border-color: #bfdbfe;
    color: #2563eb;
}

.dashboard-card .card-stats.border-indigo {
    border-color: #c7d2fe;
    color: #4f46e5;
}

.dashboard-card .card-stats.border-teal {
    border-color: #99f6e4;
    color: #0d9488;
}

/* Hover: resalta color y sombra - Mejorado */
.dashboard-card .card-stats:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: currentColor;
}

.dashboard-card .card-stats:hover::before {
    height: 4px;
    opacity: 1;
}

.dashboard-card .card-stats.border-orange:hover {
    box-shadow: 0 20px 25px -5px rgba(234, 88, 12, 0.25), 0 10px 10px -5px rgba(234, 88, 12, 0.1);
}

.dashboard-card .card-stats.border-green:hover {
    box-shadow: 0 20px 25px -5px rgba(5, 150, 105, 0.25), 0 10px 10px -5px rgba(5, 150, 105, 0.1);
}

.dashboard-card .card-stats.border-red:hover {
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.25), 0 10px 10px -5px rgba(220, 38, 38, 0.1);
}

.dashboard-card .card-stats.border-blue:hover {
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.25), 0 10px 10px -5px rgba(37, 99, 235, 0.1);
}

.dashboard-card .card-stats.border-indigo:hover {
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.25), 0 10px 10px -5px rgba(79, 70, 229, 0.1);
}

.dashboard-card .card-stats.border-teal:hover {
    box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.25), 0 10px 10px -5px rgba(13, 148, 136, 0.1);
}

/* Estilos para el contenido - Mejorados */
.dashboard-card .card-header {
    border: none;
    background: none;
    padding: 0;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-card .card-category {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
}

.dashboard-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-card .card-footer {
    border: none;
    background: rgba(0, 0, 0, 0.02);
    padding: 12px;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    border-radius: 0 0 16px 16px;
    margin-top: 1rem;
}

.dashboard-card .stats {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.dashboard-card .stats svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Optimización de espaciado */
.container {
    padding-top: 0 !important;
}

.subheader {
    margin-bottom: 0 !important;
}

/* Espaciado compacto entre filas */
.row.g-3 {
    margin-bottom: 1.5rem !important;
}

.row.g-3:last-of-type {
    margin-bottom: 2.5rem !important;
}

/* Mejores espaciados responsive */
@media (max-width: 768px) {
    .row.g-3 {
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .dashboard-card .card-stats {
        min-height: 140px;
        padding: 1.25rem;
    }

    .dashboard-card .card-title {
        font-size: 1.75rem;
    }

    .dashboard-card .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .row.g-3 {
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .dashboard-card .card-stats {
        min-height: 120px;
        padding: 1rem;
    }

    .dashboard-card .card-category {
        font-size: 0.75rem;
    }

    .dashboard-card .card-title {
        font-size: 1.5rem;
    }

    .dashboard-card .stats {
        font-size: 0.75rem;
    }

    .dashboard-card .card-footer {
        padding: 10px;
        margin: 0 -1rem -1rem -1rem;
    }

    .dashboard-card .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
}

/* Animación de entrada */
.dashboard-card {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}