/* Diseño creado por seosmartec.com - +593998745371 - luis@seosmartec.com */

/* =====================================================================
   Botón "Ver PDF" en las tarjetas del Historial (verde de la marca).
   ===================================================================== */
.history .history-card-pdf {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 15px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #2fcf5b, #1fa847);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 4px 11px rgba(31, 168, 71, .28);
    transition: filter .15s ease, box-shadow .15s ease, transform .1s ease;
}
.history .history-card-pdf:hover,
.history .history-card-pdf:focus {
    color: #fff !important;
    filter: brightness(1.06);
    box-shadow: 0 6px 15px rgba(31, 168, 71, .38);
}
.history .history-card-pdf:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(31, 168, 71, .3);
}
.history .history-card-pdf i {
    font-size: 13px;
}

/* =====================================================================
   Normalización de modales (corrige el redondeado excesivo y la X
   flotante que inyecta el js.js ofuscado en TODOS los modales).
   Mantiene colores y branding; solo ajusta forma y posición.
   ===================================================================== */

html body .modal .modal-content,
html body .modal-popup .modal-content {
    border-radius: 8px !important;
    overflow: hidden !important;
}

html body .modal .modal-header,
html body .modal-popup .modal-header {
    border-radius: 8px 8px 0 0 !important;
}

/* Botón cerrar: dentro del encabezado, centrado y de tamaño moderado
   (anula el círculo blanco gigante que sobresale de la esquina). */
html body .modal .modal-header .close,
html body .modal .modal-content > .close,
html body .modal-popup .modal-header .close,
html body .modal-popup .modal-content > .close {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    text-align: center !important;
    box-shadow: none !important;
}

/* =====================================================================
   Modal METRIX para alta de dispositivos.
   ===================================================================== */
html body .modal .modal-dialog.modal-device-add {
    width: min(1180px, calc(100vw - 40px)) !important;
    max-width: 1180px !important;
    margin: 24px auto !important;
}

html body .modal .modal-device-add .modal-content {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 28px 75px rgba(15, 23, 42, .32) !important;
}

html body .modal .modal-device-add .modal-header {
    min-height: 110px;
    padding: 27px 42px !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(115deg, rgba(31, 191, 73, .98), rgba(15, 173, 60, .96)),
        radial-gradient(circle at 78% 20%, rgba(255,255,255,.20), transparent 34%) !important;
}

html body .modal .modal-device-add .modal-title {
    margin: 0 !important;
    color: #fff !important;
}

.metrix-device-modal-heading {
    display: flex;
    align-items: center;
    gap: 17px;
}

.metrix-device-modal-heading-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(255,255,255,.07);
}

.metrix-device-modal-heading strong,
.metrix-device-modal-heading small {
    display: block;
    color: #fff !important;
}

.metrix-device-modal-heading strong {
    font-size: 25px;
    font-weight: 750;
    line-height: 1.2;
}

.metrix-device-modal-heading small {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    opacity: .94;
}

html body .modal .modal-device-add .modal-header .close {
    top: 34px !important;
    right: 35px !important;
    width: 40px !important;
    height: 40px !important;
    transform: none !important;
    color: #fff !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 36px !important;
    opacity: 1 !important;
}

html body .modal .modal-device-add .modal-body {
    max-height: calc(100vh - 250px);
    padding: 0 28px 24px !important;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff !important;
}

html body .modal .modal-device-add .modal-body > .nav-tabs {
    display: flex;
    min-height: 84px;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px;
    margin: 0 !important;
    overflow-x: auto;
    border-bottom: 1px solid #e4e7ec !important;
    background: #fff !important;
}

html body .modal .modal-device-add .nav-tabs > li {
    display: flex;
    flex: 1 0 auto;
    margin: 0 !important;
}

html body .modal .modal-device-add .nav-tabs > li > a {
    display: flex;
    min-width: 112px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 !important;
    padding: 25px 15px 19px !important;
    color: #475467 !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

html body .modal .modal-device-add .nav-tabs > li > a i {
    color: #667085 !important;
    font-size: 22px;
    font-weight: 400;
}

html body .modal .modal-device-add .nav-tabs > li.active > a,
html body .modal .modal-device-add .nav-tabs > li > a:hover {
    color: #16a34a !important;
    border-bottom-color: #20bd51 !important;
}

html body .modal .modal-device-add .nav-tabs > li.active > a i {
    color: #16a34a !important;
}

html body .modal .modal-device-add .metrix-services-tab {
    order: 20;
    min-width: 100%;
    flex: 0 0 100% !important;
    justify-content: flex-start;
    border-top: 1px solid #e4e7ec;
}

html body .modal .modal-device-add .metrix-services-tab > a {
    min-width: 210px;
    min-height: 48px;
    flex: 0 0 auto;
    align-self: center;
    margin: 15px 0 !important;
    padding: 12px 24px !important;
    color: #139a42 !important;
    border: 0 !important;
    border-radius: 28px !important;
    background: #eef9f1 !important;
}

html body .modal .modal-device-add form .tab-content {
    padding: 22px 0 0;
}

html body .modal .modal-device-add form .tab-pane {
    padding: 26px 28px 22px;
    border: 1px solid #e1e5ea;
    border-radius: 16px;
    background: #fff;
}

html body .modal .modal-device-add .form-group {
    margin-bottom: 22px;
}

html body .modal .modal-device-add .form-group > label,
html body .modal .modal-device-add .control-label {
    margin-bottom: 10px;
    color: #253047 !important;
    font-size: 14px;
    font-weight: 700;
}

html body .modal .modal-device-add .form-control,
html body .modal .modal-device-add .bootstrap-select > .dropdown-toggle {
    min-height: 52px;
    padding: 13px 18px;
    color: #344054;
    border: 1px solid #cfd5dd !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px;
}

html body .modal .modal-device-add .form-control:focus {
    border-color: #24b957 !important;
    box-shadow: 0 0 0 3px rgba(36,185,87,.12) !important;
}

html body .modal .modal-device-add .checkbox-inline label {
    color: #253047 !important;
    font-size: 14px;
    font-weight: 650;
}

html body .modal .modal-device-add .modal-footer {
    padding: 18px 42px 28px !important;
    border: 0 !important;
    background: #fff !important;
}

html body .modal .modal-device-add .modal-footer .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

html body .modal .modal-device-add .modal-footer .btn {
    min-width: 145px;
    min-height: 50px;
    padding: 13px 27px;
    border-radius: 14px !important;
    font-size: 14px;
    font-weight: 700;
}

html body .modal .modal-device-add .modal-footer .btn-action {
    order: 2;
    color: #fff !important;
    border-color: #18ae48 !important;
    background: linear-gradient(135deg, #22c653, #13ad43) !important;
    box-shadow: 0 8px 18px rgba(20,174,68,.22) !important;
}

html body .modal .modal-device-add .modal-footer .btn-default {
    order: 1;
    color: #667085 !important;
    border: 1px solid #98a2b3 !important;
    background: #fff !important;
}

@media (max-width: 767px) {
    html body .modal .modal-dialog.modal-device-add {
        width: calc(100vw - 18px) !important;
        margin: 9px auto !important;
    }
    html body .modal .modal-device-add .modal-header {
        min-height: 92px;
        padding: 21px 24px !important;
    }
    .metrix-device-modal-heading strong { font-size: 20px; }
    .metrix-device-modal-heading small { font-size: 12px; }
    html body .modal .modal-device-add .modal-body { padding: 0 14px 18px !important; }
    html body .modal .modal-device-add form .tab-pane { padding: 20px 16px; }
    html body .modal .modal-device-add .modal-footer { padding: 14px 20px 20px !important; }
}

/* Escala compacta del modal: conserva el diseño sin cubrir toda la pantalla. */
html body .modal .modal-dialog.modal-device-add {
    width: min(900px, calc(100vw - 36px)) !important;
    max-width: 900px !important;
    margin: 16px auto !important;
}
html body .modal .modal-device-add .modal-content {
    border-radius: 18px !important;
}
html body .modal .modal-device-add .modal-header {
    min-height: 80px !important;
    padding: 17px 28px !important;
}
.metrix-device-modal-heading { gap: 12px; }
.metrix-device-modal-heading-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    box-shadow: 0 0 0 7px rgba(255,255,255,.07);
}
.metrix-device-modal-heading strong { font-size: 21px; }
.metrix-device-modal-heading small { font-size: 12px; }
html body .modal .modal-device-add .modal-header .close {
    top: 20px !important;
    right: 22px !important;
    width: 32px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 28px !important;
    line-height: 30px !important;
    box-shadow: none !important;
}
html body .modal .modal-device-add .modal-header .close::before,
html body .modal .modal-device-add .modal-header .close::after {
    display: none !important;
    content: none !important;
}
html body .modal .modal-device-add .modal-header .close span {
    display: block !important;
    color: #fff !important;
    background: transparent !important;
    line-height: 30px !important;
}
html body .modal .modal-device-add .modal-body {
    max-height: calc(100vh - 172px);
    padding: 0 20px 15px !important;
}
html body .modal .modal-device-add .modal-body > .nav-tabs { min-height: 58px; }
html body .modal .modal-device-add .nav-tabs > li > a {
    min-width: 82px;
    gap: 7px;
    padding: 14px 8px 11px !important;
    font-size: 12px;
}
html body .modal .modal-device-add .nav-tabs > li > a i { font-size: 17px; }
html body .modal .modal-device-add .metrix-services-tab > a {
    min-height: 36px;
    margin: 8px 0 !important;
    padding: 7px 17px !important;
}
html body .modal .modal-device-add form .tab-content { padding-top: 11px; }
html body .modal .modal-device-add form .tab-pane {
    padding: 16px 20px 12px;
    border-radius: 11px;
}
html body .modal .modal-device-add .form-group { margin-bottom: 12px; }
html body .modal .modal-device-add .form-group > label,
html body .modal .modal-device-add .control-label {
    margin-bottom: 6px;
    font-size: 13px;
}
html body .modal .modal-device-add .form-control,
html body .modal .modal-device-add .bootstrap-select > .dropdown-toggle {
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 8px !important;
    font-size: 13px;
}
html body .modal .modal-device-add .modal-footer { padding: 11px 26px 16px !important; }
html body .modal .modal-device-add .modal-footer .buttons { gap: 10px; }
html body .modal .modal-device-add .modal-footer .btn {
    min-width: 112px;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 9px !important;
    font-size: 13px;
}

@media (max-width: 767px) {
    html body .modal .modal-dialog.modal-device-add {
        width: calc(100vw - 14px) !important;
        margin: 7px auto !important;
    }
    html body .modal .modal-device-add .modal-header {
        min-height: 74px !important;
        padding: 15px 20px !important;
    }
    html body .modal .modal-device-add .modal-body { max-height: calc(100vh - 150px); }
}

/* Botón visible para salir del Chat. */
html body .modal .modal-chat-window .modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
html body .modal .modal-chat-window .chat-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
html body .modal .modal-chat-window .chat-modal-exit {
    display: inline-flex;
    min-width: 82px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-right: 34px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
html body .modal .modal-chat-window .chat-modal-exit:hover,
html body .modal .modal-chat-window .chat-modal-exit:focus {
    color: #158436;
    background: #fff;
    outline: none;
}
html body .modal .modal-chat-window .chat-modal-exit:active {
    transform: translateY(1px);
}
@media (max-width: 600px) {
    html body .modal .modal-chat-window .chat-modal-exit {
        min-width: 36px;
        width: 36px;
        padding: 0;
    }
    html body .modal .modal-chat-window .chat-modal-exit span { display: none; }
}

/* =====================================================================
   Configuración compacta: pestañas y campos visibles sin desplazamiento
   vertical en escritorio.
   ===================================================================== */
html body .modal .modal-dialog.modal-settings-compact {
    width: min(1120px, calc(100vw - 30px)) !important;
    max-width: 1120px !important;
    margin: 10px auto !important;
}
html body .modal .modal-settings-compact .modal-content {
    overflow: hidden !important;
    border-radius: 14px !important;
}
html body .modal .modal-settings-compact .modal-header {
    min-height: 52px;
    padding: 14px 20px !important;
}
html body .modal .modal-settings-compact .modal-header .close {
    right: 16px !important;
}
html body .modal .modal-settings-compact .modal-body {
    max-height: calc(100vh - 118px);
    padding: 0 18px 10px !important;
    overflow-y: auto;
}
html body .modal .modal-settings-compact .modal-body > .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    margin: 0 -18px 10px !important;
    padding: 9px 12px !important;
    overflow-x: visible;
    border-bottom: 1px solid #e5e7eb !important;
}
html body .modal .modal-settings-compact .nav-tabs > li {
    float: none !important;
    flex: 1 1 auto;
    margin: 0 !important;
}
html body .modal .modal-settings-compact .nav-tabs > li > a {
    display: block;
    margin: 0 !important;
    padding: 7px 8px !important;
    overflow: hidden;
    border-radius: 18px !important;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html body .modal .modal-settings-compact .tab-content { padding: 0 !important; }
html body .modal .modal-settings-compact #setup-form-main.active {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 20px;
    align-items: start;
}
html body .modal .modal-settings-compact .setup-main-general {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}
html body .modal .modal-settings-compact .setup-main-general .form-group:nth-child(5),
html body .modal .modal-settings-compact .setup-main-general .form-group:nth-child(6),
html body .modal .modal-settings-compact .setup-main-general .form-group:nth-child(7) {
    grid-column: 1 / -1;
}
html body .modal .modal-settings-compact .setup-main-dst {
    padding: 14px 16px 8px;
    border: 1px solid #e3e7eb;
    border-radius: 11px;
    background: #f8faf9;
}
html body .modal .modal-settings-compact .setup-main-dst h4 {
    margin: 0 0 10px;
    color: #158436;
    font-size: 15px;
    font-weight: 700;
}
html body .modal .modal-settings-compact .form-group { margin-bottom: 8px; }
html body .modal .modal-settings-compact .form-group > label,
html body .modal .modal-settings-compact .control-label {
    margin-bottom: 4px;
    font-size: 11.5px;
    line-height: 1.2;
}
html body .modal .modal-settings-compact .form-control,
html body .modal .modal-settings-compact .bootstrap-select > .dropdown-toggle {
    min-height: 34px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 7px !important;
    font-size: 12px;
}
html body .modal .modal-settings-compact .row { margin-right: -5px; margin-left: -5px; }
html body .modal .modal-settings-compact [class*="col-xs-"] { padding-right: 5px; padding-left: 5px; }
html body .modal .modal-settings-compact .modal-footer {
    padding: 8px 18px 10px !important;
}
html body .modal .modal-settings-compact .modal-footer .btn {
    min-width: 100px;
    padding: 7px 16px;
}

@media (max-width: 900px) {
    html body .modal .modal-settings-compact .modal-body > .nav-tabs {
        overflow-x: auto;
    }
    html body .modal .modal-settings-compact .nav-tabs > li { flex: 0 0 auto; }
    html body .modal .modal-settings-compact #setup-form-main.active { grid-template-columns: 1fr; }
}

html body.sign-in-layout {
    background-color: #eaf4fb !important;
    background-position: center center !important;
    background-size: cover !important;
}

html body.sign-in-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 42%, rgba(39, 198, 83, .12), transparent 25%),
        linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(214, 234, 246, .15));
    z-index: 0;
}

html body.sign-in-layout .center-vertical,
html body.sign-in-layout .container,
html body.sign-in-layout .panel {
    position: relative;
    z-index: 1;
}

html body.sign-in-layout .panel {
    overflow: hidden;
    border: 1px solid rgba(177, 213, 235, .72);
    border-radius: 24px;
    background: transparent !important;
    box-shadow: 0 22px 55px rgba(42, 84, 111, .18), 0 0 30px rgba(74, 181, 229, .10) !important;
}

html body.sign-in-layout .panel > .panel-background {
    border-radius: 24px !important;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .74), rgba(231, 246, 252, .60)),
        rgba(242, 250, 255, .54) !important;
    opacity: 1 !important;
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

html body.sign-in-layout .panel-body {
    padding: 64px 20px 42px;
    color: #29445a !important;
}

html body.sign-in-layout .panel-body > a:first-child {
    display: block;
    max-width: 210px;
    margin: 0 auto 54px;
}

html body.sign-in-layout .panel-body img.center-block {
    max-height: 145px;
}

html body.sign-in-layout .panel-body hr {
    margin: 0 -20px 24px;
    border-top-color: rgba(148, 195, 223, .42) !important;
}

html body.sign-in-layout .panel-body label,
html body.sign-in-layout .panel-body .checkbox label,
html body.sign-in-layout .panel-body h3 {
    color: #29445a !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html body.sign-in-layout .panel-body .form-group {
    margin-bottom: 12px;
}

html body.sign-in-layout .panel-body .login-field {
    position: relative;
}

html body.sign-in-layout .panel-body .form-control {
    height: 41px;
    padding-right: 46px;
    border: 1px solid rgba(154, 198, 224, .78) !important;
    border-radius: 9px;
    color: #29445a !important;
    background-color: rgba(255, 255, 255, .64) !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-size: 0 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 5px 13px rgba(45, 82, 105, .06) !important;
    appearance: none;
    -webkit-appearance: none;
}

html body.sign-in-layout .panel-body .form-control:focus {
    border-color: rgba(58, 177, 225, .82) !important;
    background-color: rgba(255, 255, 255, .86) !important;
    box-shadow: 0 0 0 3px rgba(58, 177, 225, .14), 0 8px 19px rgba(45, 82, 105, .10) !important;
}

html body.sign-in-layout .panel-body .form-control::placeholder {
    color: #7b94a7 !important;
}

html body.sign-in-layout .panel-body .login-field-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 2;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: #b3c3cf;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

html body.sign-in-layout .panel-body input::-ms-reveal,
html body.sign-in-layout .panel-body input::-ms-clear,
html body.sign-in-layout .panel-body input::-webkit-credentials-auto-fill-button,
html body.sign-in-layout .panel-body input::-webkit-contacts-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body.sign-in-layout .panel-body input:-webkit-autofill,
html body.sign-in-layout .panel-body input:-webkit-autofill:hover,
html body.sign-in-layout .panel-body input:-webkit-autofill:focus {
    -webkit-text-fill-color: #29445a !important;
    box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, .98), 0 5px 13px rgba(45, 82, 105, .07) !important;
}

html body.sign-in-layout .panel-body .checkbox {
    margin-top: 2px;
    margin-bottom: 14px;
}

html body.sign-in-layout .panel-body .checkbox label {
    font-size: 12px;
    font-weight: 700;
}

html body.sign-in-layout .panel-body .btn {
    height: 41px;
    border-radius: 9px;
    font-weight: 700;
}

html body.sign-in-layout .panel-body .btn-primary {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #28cf52, #20b946) !important;
    box-shadow: 0 12px 25px rgba(34, 199, 75, .24);
}

html body.sign-in-layout .panel-body .btn-primary:hover,
html body.sign-in-layout .panel-body .btn-primary:focus {
    background: linear-gradient(135deg, #35d961, #24c44e) !important;
}

html body.sign-in-layout .panel-body .login-form > hr {
    margin: 26px -20px 24px;
    border-top-color: rgba(148, 195, 223, .32) !important;
}

html body.sign-in-layout .panel-body .btn-default {
    border: 1px solid rgba(190, 215, 230, .70) !important;
    color: #17354b !important;
    background: rgba(255, 255, 255, .66) !important;
    box-shadow: 0 10px 22px rgba(45, 82, 105, .10);
}

@media (min-width: 992px) {
    html body.sign-in-layout .center-vertical .container > [class*="col-"] {
        float: right;
        width: 430px;
        margin-right: 3.8%;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    html body.sign-in-layout .center-vertical {
        padding: 14px 0;
    }

    html body.sign-in-layout .panel {
        border-radius: 22px;
    }

    html body.sign-in-layout .panel > .panel-background {
        border-radius: 22px !important;
    }

    html body.sign-in-layout .panel-body {
        padding: 56px 20px 38px;
    }
}

/* Login METRIX: composición del referente conservando la paleta blanca. */
html body.sign-in-layout .panel-body {
    padding: clamp(28px, 5vh, 48px) 28px 30px;
}
html body.sign-in-layout .panel-body .login-brand {
    max-width: 184px;
    margin-bottom: 8px !important;
}
html body.sign-in-layout .panel-body .login-brand img {
    max-height: 112px;
}
html body.sign-in-layout .panel-body .login-brand-tagline {
    margin: 0 0 clamp(22px, 4vh, 36px);
    color: #7890a2;
    font-size: 13px;
    text-align: center;
}
html body.sign-in-layout .panel-body .login-heading {
    margin-bottom: 24px;
}
html body.sign-in-layout .panel-body .login-form .btn-primary {
    position: relative;
}
html body.sign-in-layout .panel-body .login-form .btn-primary .login-btn-arrow {
    position: absolute;
    right: 18px;
}

@media (min-width: 992px) {
    html body.sign-in-layout .panel-body .login-features {
        position: fixed;
        left: clamp(34px, 4vw, 72px);
        bottom: clamp(24px, 4vh, 48px);
        z-index: 2;
        width: min(610px, 52vw);
        margin: 0;
        padding: 0;
        border: 0;
        gap: 28px;
    }
    html body.sign-in-layout .panel-body .login-feature {
        display: flex;
        align-items: center;
        min-width: 0;
        text-align: left;
    }
    html body.sign-in-layout .panel-body .login-feature i {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        margin: 0 10px 0 0;
        border: 1px solid rgba(69, 154, 196, .28);
        border-radius: 12px;
        background: rgba(255, 255, 255, .78);
        color: #16ae51;
        font-size: 18px;
        line-height: 44px;
        box-shadow: 0 8px 20px rgba(25, 75, 105, .08);
    }
    html body.sign-in-layout .panel-body .login-feature-copy {
        display: block;
        min-width: 0;
    }
    html body.sign-in-layout .panel-body .login-feature strong,
    html body.sign-in-layout .panel-body .login-feature span {
        text-align: left;
    }
    html body.sign-in-layout .panel-body .login-feature strong {
        color: #17608c;
        font-size: 13px;
    }
    html body.sign-in-layout .panel-body .login-feature-copy > span {
        margin-top: 2px;
        color: #5e7789;
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 991px) {
    html body.sign-in-layout .panel-body .login-features {
        margin-top: 20px;
        padding-top: 18px;
    }
}

@media (max-height: 760px) and (min-width: 992px) {
    html body.sign-in-layout .panel-body {
        padding-top: 22px;
        padding-bottom: 22px;
    }
    html body.sign-in-layout .panel-body .login-brand img {
        max-height: 86px;
    }
    html body.sign-in-layout .panel-body .login-brand-tagline {
        margin-bottom: 16px;
    }
    html body.sign-in-layout .panel-body .login-heading {
        margin-bottom: 16px;
    }
}

/* =====================================================================
   Login v2 — refinamiento tipo "METRIX" manteniendo los blancos glass.
   Iconos a la izquierda, ojo para contraseña, encabezado, check verde,
   botón con flecha, divisor "o", enlaces de texto e insignias.
   ===================================================================== */

/* Encabezado dentro de la tarjeta */
html body.sign-in-layout .panel-body > a:first-child {
    margin-bottom: 22px !important;
}

html body.sign-in-layout .panel-body .login-heading {
    margin: 0 0 26px;
    text-align: center;
}
html body.sign-in-layout .panel-body .login-heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #17354b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .82);
}
html body.sign-in-layout .panel-body .login-heading p {
    margin: 0;
    font-size: 13px;
    color: #6a8399;
}

/* Iconos a la izquierda del campo */
html body.sign-in-layout .panel-body .form-control {
    padding: 0 16px 0 44px !important;
}
html body.sign-in-layout .panel-body .login-field-password .form-control {
    padding-right: 46px !important;
}
html body.sign-in-layout .panel-body .login-field-icon {
    right: auto;
    left: 15px;
    color: #9db6c8;
}

/* Botón mostrar / ocultar contraseña */
html body.sign-in-layout .panel-body .login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8aa1b3;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
html body.sign-in-layout .panel-body .login-password-toggle:hover,
html body.sign-in-layout .panel-body .login-password-toggle:focus {
    outline: none;
    color: #3ab1e1;
    background: rgba(58, 177, 225, .10);
}

/* Check "Recordar" en verde de marca */
html body.sign-in-layout .panel-body .checkbox {
    padding-left: 0;
}
html body.sign-in-layout .panel-body .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    margin: 0;
}
html body.sign-in-layout .panel-body .checkbox label {
    position: relative;
    display: inline-block;
    padding-left: 27px;
    cursor: pointer;
    line-height: 19px;
}
html body.sign-in-layout .panel-body .checkbox label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(154, 198, 224, .95);
    border-radius: 5px;
    background: rgba(255, 255, 255, .9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: background .15s ease, border-color .15s ease;
}
html body.sign-in-layout .panel-body .checkbox input[type="checkbox"]:checked + label::before {
    border-color: #22b74a;
    background: linear-gradient(135deg, #28cf52, #20b946);
}
html body.sign-in-layout .panel-body .checkbox input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
html body.sign-in-layout .panel-body .checkbox input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(58, 177, 225, .16);
}

/* Botón Ingresar con flecha */
html body.sign-in-layout .panel-body .login-form .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
html body.sign-in-layout .panel-body .login-form .btn-primary .login-btn-arrow {
    font-size: 15px;
    transition: transform .15s ease;
}
html body.sign-in-layout .panel-body .login-form .btn-primary:hover .login-btn-arrow {
    transform: translateX(3px);
}

/* Divisor "o" bajo el botón */
html body.sign-in-layout .panel-body .login-form > hr {
    position: relative;
    overflow: visible;
}
html body.sign-in-layout .panel-body .login-form > hr::after {
    content: "o";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 12px;
    background: #eef7fd;
    color: #7b94a7;
    font-size: 12px;
    line-height: 1;
}

/* Enlaces inferiores como texto (no botones grandes) */
html body.sign-in-layout .panel-body .login-form .btn-default {
    height: auto;
    padding: 6px 4px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2a7fb0 !important;
    font-weight: 700;
    text-decoration: none;
}
html body.sign-in-layout .panel-body .login-form .btn-default:hover,
html body.sign-in-layout .panel-body .login-form .btn-default:focus {
    color: #1f6c99 !important;
    text-decoration: underline;
}

/* Insignias inferiores: Seguro / Preciso / Inteligente */
html body.sign-in-layout .panel-body .login-features {
    display: flex;
    gap: 10px;
    margin: 26px -2px 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 195, 223, .30);
}
html body.sign-in-layout .panel-body .login-feature {
    flex: 1;
    text-align: center;
}
html body.sign-in-layout .panel-body .login-feature i {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 7px;
    border-radius: 10px;
    color: #22a862;
    background: rgba(40, 207, 82, .12);
    font-size: 15px;
    line-height: 34px;
    text-align: center;
}
html body.sign-in-layout .panel-body .login-feature strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #17354b;
}
html body.sign-in-layout .panel-body .login-feature span {
    display: block;
    font-size: 10.5px;
    line-height: 1.35;
    color: #6a8399;
}

@media (max-width: 767px) {
    html body.sign-in-layout .panel-body .login-feature span {
        display: none;
    }
    html body.sign-in-layout .panel-body .login-features {
        gap: 6px;
    }
}


/* Ajuste final de composición: beneficios fuera de la tarjeta en escritorio. */
html body.sign-in-layout {
    min-height: 100vh;
    overflow: hidden;
}
html body.sign-in-layout .center-vertical {
    position: fixed;
    inset: 0;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    transform: none;
}
html body.sign-in-layout .panel-body > .login-brand {
    max-width: 184px;
    margin-bottom: 8px !important;
}
@media (min-width: 992px) {
    html body.sign-in-layout .panel-body > .login-features {
        position: fixed;
        left: clamp(34px, 4vw, 72px);
        bottom: clamp(24px, 4vh, 48px);
        z-index: 2;
        width: min(610px, 52vw);
        margin: 0;
        padding: 0;
        border: 0;
        gap: 28px;
    }
    html body.sign-in-layout .panel-body > .login-features .login-feature {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .72);
        border-radius: 14px;
        background: rgba(255, 255, 255, .68);
        box-shadow: 0 8px 22px rgba(35, 91, 125, .08);
        backdrop-filter: blur(7px);
        text-align: left;
    }
    html body.sign-in-layout .panel-body > .login-features .login-feature i {
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        margin: 0 10px 0 0;
        border: 1px solid rgba(69, 154, 196, .28);
        border-radius: 12px;
        background: rgba(255, 255, 255, .78);
        font-size: 18px;
        line-height: 44px;
    }
    html body.sign-in-layout .panel-body > .login-features .login-feature-copy > strong,
    html body.sign-in-layout .panel-body > .login-features .login-feature-copy > span {
        text-align: left;
    }
}
