﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. RESET Y BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

    body::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(images/fondo_login2.jpg);
        background-position: center;
        background-attachment: fixed;
        z-index: -1;
        background-size: cover;
        opacity: 0.5;
    }

/* ============================================================
   2. VARIABLES Y TEMA GLOBAL
   ============================================================ */

:root {
    --rz-font-family: 'Montserrat', sans-serif !important;
    --rz-text-font-family: 'Montserrat', sans-serif !important;
    --rz-body-font-family: 'Montserrat', sans-serif !important;
    --rz-heading-font-family: 'Montserrat', sans-serif !important;
    --rz-button-font-family: 'Montserrat', sans-serif !important;
    --rz-primary: #D76A0B !important;
    --rz-primary-light: #F88C2F !important;
    --rz-primary-dark: #B5651F !important;
    --rz-primary-contrast: #ffffff !important;
}

/* ============================================================
   3. OVERRIDES GLOBALES DE RADZEN
   ============================================================ */

.rz-body {
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.rz-card {
    padding: 0.7rem 0.7rem 0.4rem 0.7rem !important;
}

.rz-dialog {
    border-radius: 20px !important;
}

.rz-group-header {
    display: contents;
}

.rz-label {
    font-size: 0.9rem;
}

.rz-button-md .rzi {
    font-size: 1rem;
}

.rz-tooltip {
    background-color: transparent !important;
}

.rz-tooltip-content {
    background-color: #1e1e1e;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.rz-switch {
    --rz-switch-checked-background-color: #FF8C42;
    --rz-switch-unchecked-background-color: #3a3a3a;
    --rz-switch-handle-background-color: #ffffff;
}

.sh .rz-fieldset-content-wrapper {
    overflow: initial;
}

.sh .rz-textbox {
    width: 100%;
}

.sh .rz-label {
    font-weight: 500;
}

.sh .rz-dialog-content {
    overflow: visible;
}

.sh .rz-row {
    margin-bottom: 0.75rem !important;
    padding: 0px !important;
}

.sh .rz-form-field {
    width: 100%;
}

.rz-form-field:not(.rz-floating-label) .rz-form-field-label,
.rz-textbox:focus ~ .rz-form-field-label,
.rz-textarea:focus ~ .rz-form-field-label,
.rz-spinner:focus-within ~ .rz-form-field-label,
.rz-autocomplete:focus-within ~ .rz-form-field-label,
.rz-textbox:not(:placeholder-shown) ~ .rz-form-field-label,
:not(.rz-state-empty) ~ .rz-form-field-label,
.rz-variant-filled .rz-textarea:focus ~ .rz-form-field-label,
.rz-variant-flat .rz-textarea:focus ~ .rz-form-field-label,
.rz-variant-filled :not(.rz-state-empty) ~ .rz-form-field-label,
.rz-variant-flat :not(.rz-state-empty) ~ .rz-form-field-label,
.rz-radio-button-list-vertical ~ .rz-form-field-label,
.rz-radio-button-list-horizontal ~ .rz-form-field-label,
.rz-checkbox-list-vertical ~ .rz-form-field-label,
.rz-checkbox-list-horizontal ~ .rz-form-field-label,
.rz-chkbox ~ .rz-form-field-label,
.rz-state-empty:has(.rz-placeholder) ~ .rz-form-field-label {
    top: -0.60rem;
    font-size: 0.90rem;
    font-weight: 500;
}

/* ============================================================
   4. LAYOUT GENERAL
   ============================================================ */

.sh-layout {
    height: 100dvh;
}

.sh-body {
    height: 85dvh;
    gap: 0px !important;
    width: 100%;
    justify-self: center;
    max-width: 1300px;
}

.content {
    padding-top: 1.1rem;
}

.container-sm {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.container-lg {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* ============================================================
   5. HEADER
   ============================================================ */

.header-estilo {
    background-image: url(/images/background-header.png);
    background-position: center;
    background-size: cover;
}

.logo-header {
    height: 2.5rem;
    align-self: center;
}

.sh-header-body {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 1rem 0;
    transition: all 0.2s ease;
    min-height: 150px;
    padding: 0 0.5rem;
}

.sh-header-radzenSidebarToggle {
    color: lightgray;
    background: transparent;
    border-radius: 10px;
}

    .sh-header-radzenSidebarToggle:hover {
        color: #ffffff;
        background: #D76A0B;
        border-radius: 10px;
    }

.sh-header-dropdown {
    background: none;
    color: white;
    width: 10vw;
    justify-content: center;
}

    .sh-header-dropdown:focus,
    .sh-header-dropdown:hover {
        background-color: #D76A0B !important;
        color: white;
        cursor: pointer;
    }

.sh-header-dd-text {
    font-size: 0.9rem;
}

ul.rz-profile-menu {
    box-sizing: border-box;
    list-style: none;
    margin-block-start: 0;
    margin-block-end: 0;
    padding: 0;
    display: inline-block;
    background-color: var(--rz-profile-menu-top-item-background-color);
    border-inline-start: var(--rz-profile-menu-border);
    position: relative;
    z-index: 3;
}

.imagen-user {
    height: 45px;
    filter: drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.14));
    padding-right: 15px;
    padding-left: 15px;
}

.header-components {
    height:2.5rem;
    border-radius: 5px;
}

    .header-components::placeholder {
        color: white;
    }

.search-button {
    color: #ffffff;
    padding: 0 1rem;
    border-radius: 5px;
    background: #D76A0B;
    width: 2.5rem;
    font-size: 1rem;
    cursor: pointer;
}

    .search-button:hover {
        background: #cd5000;
    }

.gen-status-stack {
    padding: 0.3rem 0.5rem;
    width: 180px;
    cursor: pointer;
    border-radius: 8px;
}

/* ============================================================
   6. SIDEBAR / MENÚ DE NAVEGACIÓN
   ============================================================ */

.rz-sidebar {
    border-inline-end: none !important;
    box-shadow: 6px 0px 10px rgba(0, 0, 0, 0.5);
}

.nav-base {
    height: 100%;
    background: #262626 !important;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.15);
}

.rz-panel-menu {
    background-color: #262626 !important;
}

    .rz-panel-menu .rz-navigation-item-wrapper,
    .rz-panel-menu .rz-navigation-item,
    .rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }

    .rz-panel-menu .rz-navigation-item-icon {
        color: rgba(255, 255, 255, 0.7) !important;
    }

.rz-navigation-item-wrapper:hover .rz-navigation-item-icon {
    color: #D76A0B !important;
}

.rz-panel-menu .rz-navigation-item {
    border-block-end: 0;
    border-radius: var(--rz-panel-menu-item-border-radius);
    overflow: hidden;
}

.rz-panel-menu .rz-navigation-item-link {
    color: #ffffff !important;
    background: #262626 !important;
    border-bottom: none !important;
    background-position: center;
    transition: none;
}

.rz-panel-menu .rz-navigation-item .rz-navigation-item-link:hover {
    color: #D76A0B !important;
    background-color: #4D4D4F !important;
}

.rz-panel-menu .rz-navigation-item-text {
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper {
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.6);
}

.rz-panel-menu .rz-navigation-menu .rz-navigation-item .rz-navigation-item-link {
    color: rgba(255, 255, 255, 0.7) !important;
    background-color: #404040 !important;
}

    .rz-panel-menu .rz-navigation-menu .rz-navigation-item .rz-navigation-item-link:hover {
        color: #D76A0B !important;
        background-color: rgb(99, 99, 99) !important;
    }

/* ============================================================
   7. TABS
   ============================================================ */

.rz-tabview-nav li a,
.rz-tabview-nav li a:not([href]):not([class]) {
    display: flex;
    font-size: 0.8rem;
    align-items: center;
    height: 30px;
    color: #D76A0B;
    padding-block: var(--rz-tabs-tab-padding-block);
    padding-inline: var(--rz-tabs-tab-padding-inline);
    font-weight: var(--rz-tabs-tab-font-weight);
    text-transform: var(--rz-tabs-tab-text-transform);
    letter-spacing: var(--rz-tabs-tab-letter-spacing);
    text-decoration: none;
    cursor: pointer;
}

.rz-tabview.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected {
    border-top-width: 0;
    border-bottom: 2px solid #D76A0B;
}

/* ============================================================
   8. DIALOGS
   ============================================================ */

.custom-dialog .rz-dialog-title {
    padding-bottom: 1.5rem;
}

.detail-dialog {
    margin: 0.5rem;
}

.custom-dialog .rz-form-field-label.rz-text-truncate {
    color: #182337db !important;
}

.dialog-tracker .rz-dialog-titlebar {
    background: linear-gradient(135deg, #ffecdf 0%, #ffd9bc 100%);
}

.dialog-generador .rz-dialog-titlebar {
    background: linear-gradient(135deg, #eff3f7 0%, #dce6f0 100%);
}

.dialog-contrato .rz-dialog-titlebar {
    background: linear-gradient(135deg, #fffdf2 0%, #fff6cc 100%);
}

/* ============================================================
   9. BREADCRUMB Y NAVEGACIÓN
   ============================================================ */

.sh-breadcrumb-estilo {
    background-color: #D76A0B !important;
    width: fit-content;
    padding: 0.5rem;
    align-content: center;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.sh-breadcrumb-estilo-contenido {
    background: linear-gradient(135deg, #D76A0B 0%, #9F4E06 100%);
    color: #ffffff;
    font-size: 1rem !important;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: default;
}

.sh-back-boton {
    color: #FFFFFF;
    background: linear-gradient(135deg, #2f415f87 0%, #2c6ad278 100%) !important;
    font-size: 0.7rem;
    transition: all .3s ease;
}

    .sh-back-boton:hover {
        background: linear-gradient(135deg, #2f415f 0%, #2c6ad2 100%) !important;
    }

/* ============================================================
   10. CARDS GENERALES
   ============================================================ */

.card-animada {
    background: linear-gradient(to bottom, #fbfbfb, #f3f5f7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

    .card-animada:hover {
        transform: scale(1.01);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
        background: linear-gradient(to bottom, #fff4eb, #ffe9d6);
        color: #1F3A57;
    }

        .card-animada:hover .text-title-card {
            color: #1F3A57;
        }

@media (max-width: 768px) {
    .card-animada {
        height: auto;
    }
}

.card-critica {
    cursor: pointer;
    border: 2px solid #D32F2F;
    animation: pulso-error 1.5s ease-in-out infinite;
}

.card-advertencia {
    cursor: pointer;
    border: 2px solid #F57C00;
    animation: pulso-error 1.5s ease-in-out infinite;
}

@keyframes pulso-error {
    0%, 100% {
        border-color: #D32F2F;
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    50% {
        border-color: #FF5252;
        box-shadow: 0 0 8px 4px rgba(211, 47, 47, 0.2);
    }
}

.card-footer {
    flex-shrink: 0;
    padding: 0.3rem;
    display: flex;
    justify-content: flex-end;
}

.footer-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
}

.card-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cardgroup-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    .cardgroup-container:hover .rzi {
        transform: scale(1.2);
    }

/* ============================================================
   11. CARDS DE GENERADORES (VISTA GRID)
   ============================================================ */

.generator-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    padding: 0 !important;
    height: 35vh;
    min-height: 310px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2) !important;
}

    .generator-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }

        .generator-card:hover .detail-button,
        .list-gen-card:hover .detail-button {
            background-color: #FF8C42 !important;
            color: white !important;
            transform: scale(1.03);
        }

        .generator-card:hover .button-icon {
            color: white;
        }

        .generator-card:hover .sh-text-go-details,
        .list-gen-card:hover .sh-text-go-details {
            color: white;
        }

.accent-bar {
    height: 2vh;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

/* Rotación de colores cada 9 cards */
.sh-tam3010-device-card-column:nth-child(9n+1) .sh-tam3010-card-devices {
    --device-accent: #394B59;
}

.sh-tam3010-device-card-column:nth-child(9n+2) .sh-tam3010-card-devices {
    --device-accent: #F5C06A;
}

.sh-tam3010-device-card-column:nth-child(9n+3) .sh-tam3010-card-devices {
    --device-accent: #3F6E63;
}

.sh-tam3010-device-card-column:nth-child(9n+4) .sh-tam3010-card-devices {
    --device-accent: #B4472A;
}

.sh-tam3010-device-card-column:nth-child(9n+5) .sh-tam3010-card-devices {
    --device-accent: #704A84;
}

.sh-tam3010-device-card-column:nth-child(9n+6) .sh-tam3010-card-devices {
    --device-accent: #D96B4C;
}

.sh-tam3010-device-card-column:nth-child(9n+8) .sh-tam3010-card-devices {
    --device-accent: #5DAE9E;
}

.sh-tam3010-device-card-column:nth-child(9n+9) .sh-tam3010-card-devices {
    --device-accent: #3375FF;
}

.sh-tam3010-card-devices {
    min-height: 310px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 0 0 0 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 25vh;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, #fbfbfb, #f3f5f7);
}

    .sh-tam3010-card-devices::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 0;
        border-bottom: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom-color: var(--device-accent, #394B59);
    }

    .sh-tam3010-card-devices:hover {
        transform: scale(1.01);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
        background-color: #FFEAC8 !important;
    }

        .sh-tam3010-card-devices:hover .sh-tam3010-card-icon {
            color: var(--device-accent, #394B59);
        }

.sh-tam3010-card-icon {
    color: #ACACAD;
    font-size: 14vh !important;
    margin-top: 0vh;
}

.sh-tam3010-devicename-text {
    overflow: hidden;
    font-style: normal;
    font-size: 1.8vh;
    color: #464648;
    font-weight: bold;
    padding: 0 2vh 2vh 2vh;
    align-items: center !important;
}

/* ============================================================
   12. CARDS DE GENERADORES (VISTA LISTA)
   ============================================================ */

.list-gen-card {
    padding: 10px;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease;
}

    .list-gen-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }

.list-gen-status-on {
    border-left: 10px solid mediumseagreen;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0% {
        border-left-color: mediumseagreen;
        box-shadow: -4px 0 4px rgba(60, 179, 113, 0);
    }

    50% {
        border-left-color: #7fffd4;
        box-shadow: -4px 0 10px rgba(127, 255, 212, 0.6);
    }

    100% {
        border-left-color: mediumseagreen;
        box-shadow: -4px 0 4px rgba(60, 179, 113, 0);
    }
}

.list-gen-status-off {
    border-left: 10px solid #a1a1a1;
}

/* ============================================================
   13. ESTADO DEL GENERADOR / ICONOS DE STATUS
   ============================================================ */

.text-shadow-icon {
    filter: drop-shadow(0 0 6px #32cd32);
    font-size: 2vh;
    color: mediumseagreen;
}

.text-shadow-icon-online {
    font-size: 2vh;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform, filter, color;
    animation: pulse-green-stable 3s ease-in-out infinite;
}

@keyframes pulse-green-stable {
    0% {
        color: mediumseagreen;
        filter: drop-shadow(0 0 4px mediumseagreen);
        transform: scale(1);
    }

    50% {
        color: #7fffd4;
        filter: drop-shadow(0 0 10px #7fffd4);
        transform: scale(1.08);
    }

    100% {
        color: mediumseagreen;
        filter: drop-shadow(0 0 4px mediumseagreen);
        transform: scale(1);
    }
}

.generator-off {
    background-color: #7A7A7A;
}

.generator-on {
    background-color: #28a745;
}

.generator-status {
    padding: 0.5rem;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .generator-status:hover {
        transform: translateY(-2px);
        cursor: default;
    }

.container-gen-status {
    height: auto;
}

/* ============================================================
   14. ICONOS SEÑAL GSM
   ============================================================ */

.gsm-signal-none {
    color: #7A7A7A;
}

.gsm-signal-weak {
    color: #a74628;
}

.gsm-signal-fair {
    color: #a78728;
}

.gsm-signal-good {
    color: #98a728;
}

.gsm-signal-strong {
    color: #7ba728;
}

.gsm-signal-excellent {
    color: #28a745;
}

/* ============================================================
   15. ICONOS BATERÍAS
   ============================================================ */

.battery-critical {
    color: #CF2121;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-low {
    color: #CF6A21;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-good {
    color: #AAC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-almost-full {
    color: #6CC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.battery-full {
    color: #2AC225;
    font-size: 6VH;
    transition: transform 0.5s ease;
}

/* ============================================================
   16. ICONOS DATA GRID / EVENTOS
   ============================================================ */

.icon-error {
    color: #D32F2F;
}

.icon-ok {
    color: green;
}

.icon-gen-on {
    color: #ffe200;
}

.icon-gen-off {
    color: grey;
}

.icon-output-on {
    color: #03ffff;
}

.icon-output-off {
    color: #464648;
}

.icon-moving {
    color: #464648;
}

.icon-stopped {
    color: #757575;
}

.icon-door-closed {
    color: #464648;
}

.icon-door-open {
    color: #C35A3A;
}

.icon-temp {
    color: #a75d5d;
}

.icon-humidity {
    color: #5DAE9E;
}

.icon-power-on {
    color: #2cdb15;
}

.icon-power-off {
    color: red;
}

.icon-default {
    color: inherit;
}

/* ============================================================
   17. BOTONES Y ACCIONES
   ============================================================ */

.sh-editbutton {
    box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #464648;
    background-color: #007fff38 !important;
    transition: transform 0.5s ease, box-shadow 0.5s ease !important;
}

    .sh-editbutton:hover {
        transform: scale(1.01);
        background-color: #1F3A57 !important;
        color: white !important;
    }

.detail-button {
    transition: all 0.3s ease;
    background: none !important;
    box-shadow: none !important;
    padding: 0.5rem;
    border-radius: 50px;
}

.sh-text-go-details {
    margin: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.status-badge {
    padding: 0.25rem 0.5rem;
}

/* ============================================================
   18. COLUMNAS DE DETALLE (CONTRATO / GENERADOR / TRACKALERT)
   ============================================================ */

.contract-details {
    background: linear-gradient(135deg, #fffdf2 0%, #fff6cc 100%);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.generator-details {
    background: linear-gradient(135deg, #eff3f7 0%, #dce6f0 100%);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trackalert-details {
    background: linear-gradient(135deg, #ffecdf 0%, #ffd9bc 100%);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .trackalert-details:hover,
    .contract-details:hover,
    .generator-details:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.25);
        cursor: pointer;
    }

        .trackalert-details:hover .title-columns-details,
        .generator-details:hover .title-columns-details,
        .contract-details:hover .title-columns-details {
            color: #f27100;
        }

.title-columns-details {
    font-weight: 600;
    margin: 0;
    align-self: center;
    transition: all 0.3s ease;
}

/* ============================================================
   19. CARD GROUPS
   ============================================================ */

.ta-cardgroup-value {
    align-content: center;
}

.temp-group {
    gap: 0;
    width: 100%;
    flex-wrap: wrap;
}

.ta-1er-stack-groupcard {
    margin-bottom: 0;
}

.ta-2do-stack-groupcard {
    margin-bottom: 0;
}

.ta-column-groupcard {
    border: none;
}

.temp-item {
    text-align: center;
    flex: 1 1 0;
}

.temp-subtitle-item {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.temp-divider {
    width: 1px;
    height: 80px;
    background-color: #e0e0e0;
}

/* ============================================================
   20. TEXTOS Y UTILIDADES
   ============================================================ */

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-shadow {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.sh-text-status {
    font-size: 0.7rem;
}

.text-title-card {
    height: 100%;
    overflow: hidden;
    font-style: normal;
    font-size: 0.8rem;
    color: #454545;
    font-weight: 600;
    align-content: center;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-value-card {
    height: 100%;
    overflow: hidden;
    font-style: normal;
    font-size: 1.5rem;
    align-content: center;
    align-items: center;
}

.icon-card {
    font-size: 6VH;
    transition: transform 0.5s ease;
}

.alert-icon {
    font-size: 1.4rem;
    color: limegreen;
}

    .alert-icon:hover {
        color: green;
        cursor: pointer;
        transform: scale(1.1);
    }

    .alert-icon:active {
        color: #D76A0B;
    }

.only-desktop {
    display: block;
}

/* ============================================================
   21. FORMULARIOS / USER PROFILE
   ============================================================ */

.elemento-form .rz-form-field-content,
.elemento-form .rz-form-field-content:hover,
.elemento-form .rz-form-field-content:focus,
.elemento-form .rz-form-field-content:focus-within,
.elemento-form .rz-form-field-content.rz-state-focused,
.elemento-form .rz-form-field-content.rz-state-filled {
    background: transparent !important;
    box-shadow: none !important;
}

.sh-formfield {
    margin: 0.5rem;
}

.form-container {
    display: flex;
    height: 100%;
}

    .form-container .rz-form {
        justify-items: center;
        width: 100%;
    }

.sh-card-userprofile {
    position: relative;
    overflow: hidden;
    align-content: center;
    height: auto;
    width: 60%;
    padding: 3rem 1rem 1rem 1rem !important;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2) !important;
}

    .sh-card-userprofile::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2rem;
        background: linear-gradient(135deg, #D76A0B 0%, #9F4E06 100%);
        z-index: 0;
    }

.sh-card-form > * {
    position: relative;
    z-index: 1;
}

.ta-col-dialog-dropdown {
    align-content: center;
}

/* ============================================================
   22. LOGIN
   ============================================================ */

.fondo-login {
    background-image: url(/images/fondo_login2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.card-login {
    height: auto;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 239, 255, 0.9);
    position: relative;
    text-align: center;
    overflow: hidden;
    animation: shadowPulse 3s infinite ease-in-out;
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0 0 10px 6px rgba(207, 239, 255, 0);
    }

    50% {
        box-shadow: 0 0 10px 6px rgba(207, 239, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 10px 6px rgba(207, 239, 255, 0);
    }
}

.img-login {
    height: 120px;
    align-self: center;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.4));
}

.info-login {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.40);
    font-size: 0.9rem;
    height: 2.5rem;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1F1F1F;
    border: none !important;
}

    .info-login::placeholder {
        color: #EDEDED;
    }

    .info-login:hover {
        transform: scale(1.01);
        border-color: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        transition: all .2s ease;
        outline: none !important;
        box-shadow: none !important;
    }

    .info-login:focus {
        border-color: #1F1F1F !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        transition: all .2s ease;
        color: white;
        outline: none !important;
        box-shadow: none !important;
    }

/* ============================================================
   23. LOGIN RESET
   ============================================================ */

.sh-card-loginreset {
    position: relative;
    overflow: hidden;
    align-content: center;
    height: auto;
    width: 50vw;
    padding: 1.5rem !important;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px 0px rgba(207, 239, 255, 0.3) !important;
}

    .sh-card-loginreset .rz-fieldset-legend-text {
        color: white !important;
        font-weight: 400;
    }

    .sh-card-loginreset .rz-form-field-content {
        background: none !important;
    }

.img-loginreset {
    height: 80px;
    align-self: center;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.4));
    margin: 0.5rem;
}

/* ============================================================
   24. IMÁGENES Y ELEMENTOS VISUALES
   ============================================================ */

.img-device {
    height: 130px;
    filter: drop-shadow(0 4px 15px #464648);
}

.img-animada {
    transition: transform 0.25s ease;
    cursor: pointer;
}

    .img-animada:hover {
        transform: scale(1.1);
    }

.loading-pulse {
    height: 20vh;
    animation: pulseOpacity 4s ease-in-out infinite;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.4));
}

@keyframes pulseOpacity {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.85);
        opacity: 0.6;
    }
}

/* ============================================================
   25. PANTALLA DE CARGA ANIMADA
   ============================================================ */

.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
    background-image: url('images/fondo_login2.jpg');
    background-size: cover;
    background-position: center;
    z-index: 9999;
}

    .loading-screen::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
        z-index: 1;
    }

    .loading-screen.fade-out {
        opacity: 0;
        pointer-events: none;
    }

.loading-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-main {
    position: relative;
    z-index: 3;
    width: 120px;
    height: auto;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 140, 66, 0.4));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.signal-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #FF8C42;
    border-radius: 50%;
    opacity: 0;
    animation: signalPulse 3s ease-out infinite;
}

    .signal-wave:nth-child(1) {
        animation-delay: 0s;
    }

    .signal-wave:nth-child(2) {
        animation-delay: 1s;
    }

    .signal-wave:nth-child(3) {
        animation-delay: 2s;
    }

@keyframes signalPulse {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }

    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.brand-text {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1rem;
    animation: textFade 2s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.loading-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    text-align: center;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #FF8C42;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.5);
}

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 180px;
    height: 180px;
}

.progress-ring-circle {
    stroke: #FF8C42;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    animation: progressRing 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 140, 66, 0.6));
}

@keyframes progressRing {
    0% {
        stroke-dashoffset: 565;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 565;
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 140, 66, 0.3) 50%, transparent 100%);
    animation: scan 4s linear infinite;
    top: 0;
    z-index: 1;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ============================================================
   26. ANIMACIÓN CARGANDO GENERADOR (GC)
   ============================================================ */

.gc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .82);
    z-index: 9998;
}

.gc-gen {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
}

.gc-escape {
    width: 1.75em;
    height: 0.75em;
    background: #e8e8e6;
    border: 0.09em solid #464648;
    border-radius: 0.25em 0.25em 0 0;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}

.gc-humo {
    position: absolute;
    top: -0.2em;
    left: 50%;
    width: 0.38em;
    height: 0.38em;
    border-radius: 50%;
    background: rgba(70, 70, 72, .28);
    transform: translateX(-50%);
    animation: gcSmok 1.3s ease-out infinite;
}

    .gc-humo:nth-child(2) {
        animation-delay: .43s;
        left: 28%;
    }

    .gc-humo:nth-child(3) {
        animation-delay: .86s;
        left: 68%;
    }

@keyframes gcSmok {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: .4;
    }

    100% {
        transform: translateY(-1.4em) scaleX(1.5);
        opacity: 0;
    }
}

.gc-top {
    width: 7.5em;
    background: #1F3A57;
    border: 0.09em solid #464648;
    border-radius: 0.38em 0.38em 0 0;
    height: 1.63em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.63em;
}

.gc-led {
    width: 0.44em;
    height: 0.44em;
    border-radius: 50%;
    background: #F88C2F;
    animation: gcPuls .5s ease-in-out infinite;
}

.gc-mlabel {
    font-size: 0.5em;
    letter-spacing: 0.2em;
    color: #FFF;
}

.gc-main {
    width: 7.5em;
    background: #FFF;
    border: 0.09em solid #464648;
    border-bottom: none;
    height: 5em;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gcVib .09s linear infinite;
    position: relative;
}

    .gc-main::before, .gc-main::after {
        content: '';
        position: absolute;
        left: 0.5em;
        right: 0.5em;
        height: 0.06em;
        background: #46464818;
    }

    .gc-main::before {
        top: 0.63em;
    }

    .gc-main::after {
        bottom: 0.63em;
    }

.gc-rotor {
    width: 3.38em;
    height: 3.38em;
    border: 0.16em solid #1F3A57;
    border-radius: 50%;
    border-top-color: #D97A28;
    border-right-color: #F88C2F;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.gc-rotor-i {
    width: 1.63em;
    height: 1.63em;
    border: 0.13em solid #46464840;
    border-radius: 50%;
    border-bottom-color: #B5651F;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-dot {
    width: 0.5em;
    height: 0.5em;
    background: #F88C2F;
    border-radius: 50%;
    animation: gcPuls .6s ease-in-out infinite;
}

.gc-base {
    width: 7.5em;
    background: #464648;
    border: 0.09em solid #464648;
    border-radius: 0 0 0.38em 0.38em;
    height: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38em;
}

.gc-perno {
    width: 0.81em;
    height: 0.44em;
    background: #5a5a5c;
    border: 0.06em solid #6e6e70;
    border-radius: 0.13em;
}

.gc-door-frame {
    width: 7em;
    height: 8em;
    border: 0.2em solid #1F3A57;
    border-radius: 0.25em 0.25em 0 0;
    position: relative;
    background: #e8f0f8;
    overflow: hidden;
}

.gc-door-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-right: 0.15em solid #464648;
    transform-origin: left center;
    animation: gcDoor 2.4s ease-in-out infinite;
}

    .gc-door-panel::after {
        content: '';
        position: absolute;
        right: 0.4em;
        top: 50%;
        width: 0.35em;
        height: 0.35em;
        background: #F88C2F;
        border-radius: 50%;
        transform: translateY(-50%);
    }

.gc-door-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.18em;
    background: #F88C2F;
    opacity: .8;
    animation: gcScan 1.2s ease-in-out infinite alternate;
}

.gc-door-base {
    width: 7.6em;
    height: 0.5em;
    background: #464648;
    border-radius: 0 0 0.25em 0.25em;
}

.gc-msg {
    font-size: 0.45em;
    letter-spacing: 0.3em;
    color: #1F3A57;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin: 1.1em 0 0.9em;
}

.gc-track {
    height: 0.44em;
    background: #e8e8e6;
    border-radius: 0.25em;
    overflow: hidden;
    position: relative;
}

.gc-beam {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #F88C2F, #FFFFFF, #F88C2F, transparent);
    border-radius: 0.25em;
    animation: gcBeam 1.4s ease-in-out infinite;
}

@keyframes gcPuls {
    0%, 100% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }
}

@keyframes gcVib {
    0%, 100% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(-0.12em);
    }

    66% {
        transform: translateX(0.12em);
    }
}

@keyframes gcDoor {
    0%, 100% {
        transform: perspective(300px) rotateY(0deg);
    }

    50% {
        transform: perspective(300px) rotateY(-55deg);
    }
}

@keyframes gcScan {
    0% {
        top: 0%;
        opacity: .9;
    }

    100% {
        top: 90%;
        opacity: .3;
    }
}

@keyframes gcBeam {
    0% {
        left: -40%;
        opacity: .9;
    }

    100% {
        left: 110%;
        opacity: .6;
    }
}

@keyframes gcBar {
    from {
        width: 0%;
    }

    to {
        width: 88%;
    }
}

/* ============================================================
   27. ANIMACIÓN CARGANDO TELEMETRÍA (GT)
   ============================================================ */

.gt-antena {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gt-torre {
    width: 0.25em;
    height: 2.8em;
    background: #1F3A57;
    border-radius: 0.13em;
}

.gt-base {
    width: 1.5em;
    height: 0.25em;
    background: #464648;
    border-radius: 0.13em;
}

.gt-ondas {
    position: relative;
    width: 5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2.2em;
}

.gt-onda {
    position: absolute;
    border: 0.15em solid #D97A28;
    border-radius: 50%;
    opacity: 0;
    animation: gtOnda 1.8s ease-out infinite;
}

.gt-onda1 {
    width: 1.5em;
    height: 1.5em;
    animation-delay: 0s;
}

.gt-onda2 {
    width: 2.8em;
    height: 2.8em;
    animation-delay: .6s;
}

.gt-onda3 {
    width: 4.2em;
    height: 4.2em;
    animation-delay: 1.2s;
}

.gt-display {
    width: 7.5em;
    background: #FFFFFF;
    border: 1.5px solid #464648;
    border-bottom: none;
    border-radius: 0.38em 0.38em 0 0;
    padding: 0.5em 0.6em;
    margin-top: 0.6em;
}

.gt-display-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.gt-display-label {
    font-size: 0.5em;
    letter-spacing: 0.2em;
    color: #1F3A57;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.gt-led {
    width: 0.44em;
    height: 0.44em;
    border-radius: 50%;
    background: #F88C2F;
    animation: gtPuls .6s ease-in-out infinite;
}

.gt-led-activo {
    box-shadow: 0 0 4px #F88C2F88;
}

.gt-linea {
    height: 0.38em;
    background: linear-gradient(90deg, #1F3A57, #D97A28);
    border-radius: 0.2em;
    margin-bottom: 0.4em;
    width: 0%;
    animation: gtScan 1.6s ease-in-out infinite;
}

.gt-linea1 {
    animation-delay: 0s;
}

.gt-linea2 {
    animation-delay: .4s;
}

.gt-linea3 {
    animation-delay: .8s;
    margin-bottom: 0;
}

.gt-base-display {
    width: 7.5em;
    background: #464648;
    border: 1.5px solid #464648;
    border-radius: 0 0 0.38em 0.38em;
    height: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38em;
}

.gt-perno {
    width: 0.81em;
    height: 0.44em;
    background: #5a5a5c;
    border: 0.06em solid #6e6e70;
    border-radius: 0.13em;
}

@keyframes gtOnda {
    0% {
        transform: scale(0.6);
        opacity: .8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes gtPuls {
    0%, 100% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }
}

@keyframes gtScan {
    0% {
        width: 0%;
    }

    60% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

@keyframes gtParpadeo {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

/* ============================================================
   28. LOADING INICIAL (PANTALLA PREVIA)
   ============================================================ */

.loading-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

.loading-box {
    padding: 40px;
    background-color: #FFF;
    width: 300px;
    height: 250px;
    position: absolute;
    text-align: center;
    top: 25%;
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.6);
    border-radius: 15px;
}

.loading-text p {
    color: black;
    font-size: 35px;
    font-weight: bold;
}

.loading-text img {
    width: 350px;
    height: auto;
}

.lds-ellipsis {
    position: absolute;
    width: 80px;
    height: 80px;
    left: calc(50% - 40px);
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #333333;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

/* ============================================================
   29. ANIMACIONES GENERALES
   ============================================================ */

.boton-animado {
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

    .boton-animado:hover {
        transform: scale(1.2);
    }

.boton-loading .rz-button-icon,
.spin-icon .rz-button-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   30. MISCELÁNEOS
   ============================================================ */

.mi-data-list-wrapper {
    --rz-datalist-item-border: 0px;
    --rz-datalist-item-background: transparent;
    --rz-datalist-background: transparent;
    --rz-datalist-content-background: transparent;
    --rz-datalist-content-padding: 0;
    --rz-datalist-data-background: transparent;
    --rz-datalist-item-margin-bottom: 1rem;
    --rz-datalist-item-padding: 0;
    --rz-datalist-item-box-shadow: none;
}

.status-generators {
    transition: transform 300ms ease-out, box-shadow 300ms ease-out;
    padding: 0.5rem;
    border: 1px solid lightgrey;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
}

    .status-generators:hover {
        transform: translateY(-2px);
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.25);
        cursor: default;
    }

.sh-big-icon-12 {
    font-size: 8vh !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.sh .blazored-typeahead__results {
    width: fit-content;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ============================================================
   31. RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
    .sh-card-userprofile {
        width: 80%;
    }
}

@media (max-width: 1024px) {
    .sh-card-userprofile {
        width: 90%;
    }

    .loading-box {
        padding: 15px;
        width: 200px;
        height: 200px;
    }

    .loading-text p {
        font-size: 20px;
    }

    .loading-text img {
        width: 150px;
    }

    .lds-ellipsis {
        top: calc(50% + 50px);
    }
}

@media (max-width: 768px) {

    .sh-header-body {
        height: auto !important;
        position: static;
        min-height: auto;
    }

    .rz-header {
        position: relative !important;
        z-index: 1000 !important;
    }

    .sh-header-radzenSidebarToggle {
        padding: 0 !important;
    }

    .sh-header-dropdown {
        width: 15vw;
    }

    .sh-header-dd-text {
        display: none;
    }

    .sh-header-dropdown .rz-dropdown-trigger {
        display: none !important;
    }

    .sh-header-dropdown .rz-dropdown-label {
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .sh-card-userprofile {
        width: 95%;
    }

    .rz-sidebar {
        width: fit-content !important;
        max-width: 100% !important;
        position: fixed !important;
        z-index: 999;
        height: auto !important;
        max-height: fit-content !important;
        top: 64px !important;
        left: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        border-radius: 0 0 16px 16px;
    }

        .rz-sidebar.rz-sidebar-expanded {
            transform: translateY(0);
        }

    .rz-layout:has(.rz-sidebar-expanded)::after {
        display: none;
    }

    .container-gen-status {
        align-items: center !important;
        flex-direction: row !important;
    }

    .sh-header-body .rz-row {
        display: flex !important;
        flex-wrap: wrap !important;
        height: auto !important;
    }

    .sh-header-body .rz-col {
        height: auto !important;
        min-height: unset !important;
        flex-shrink: 0 !important;
    }

    .sh-header-body .rz-card {
        height: auto !important;
        min-height: unset !important;
    }

    .card-animada {
        height: auto;
    }

    .temp-divider {
        display: none;
    }

    .temp-item {
        flex: 1 1 100%;
        margin-bottom: 1rem;
    }

    .only-desktop {
        display: none;
    }

    .ta-column-groupcard {
        border-bottom: 1px solid #e0e0e0;
    }

    .ta-1er-stack-groupcard {
        margin-bottom: 1rem;
    }

    .ta-2do-stack-groupcard {
        margin-top: 1rem;
    }

    .gen-status-stack {
        padding: 0.3rem 0.5rem;
        width: 100px;
        cursor: pointer;
        border-radius: 8px;
    }
}
