﻿@import url("css/material3-base.css");
@import url("css/material3-base-override.css");
@import url("css/font-config.css");
@import url("css/tailwind.css");

:root {
    --rz-text-primary: #001489;
    --rz-primary: #2e86de;
    --animate-duration: 200ms !important;
    --rz-text-font-family: "Fira Sans", sans-serif;
    --rz-layout-body-padding: 2rem !important;
    /*    --rz-layout-body-padding: 0.50rem 0 0 1rem !important;*/
    --rz-success: #10ac84;
    --rz-danger: #ee5253;
    --rz-warning: #feca57;
    /*   bootstrap*/
    --bs-primary: var(--rz-primary);
    --bs-secondary: var(--rz-secondary);
    --bs-info: var(--rz-info);
    --bs-success: var(--rz-success);
    --bs-warning: var(--rz-warning);
    --bs-danger: var(--rz-danger);
    /* Traído de portfolio/AECA-ITV */
    --rz-white: #ffffff;
    --rz-black: #000000;
    --rz-base-50: #f8fafb;
    --rz-base-100: #f3f6f9;
    --rz-base-200: #e3eaf2;
    --rz-base-300: #dfe5ec;
    --rz-base-400: #dbe0e6;
    --rz-base-500: #d7dbe0;
    --rz-base-600: #c6cbd2;
    --rz-base-700: #74787e;
    --rz-base-800: #45494f;
    --rz-base-900: #1b1d20;
    --rz-primary: #283272;
    --rz-primary-light: #bcd8ff;
    --rz-primary-lighter: rgba(0, 111, 255, 0.13);
    --rz-primary-dark: #375a8b;
    --rz-primary-darker: #00215d;
    --rz-secondary: #5b6471;
    --rz-secondary-light: #c2cddc;
    --rz-secondary-lighter: rgba(0, 107, 255, 0.13);
    --rz-secondary-dark: #444c58;
    --rz-secondary-darker: #19212b;
    --rz-info: #085786;
    --rz-info-light: #aadaff;
    --rz-info-lighter: rgba(170, 218, 255, 0.5);
    --rz-info-dark: #086791;
    --rz-info-darker: #002d41;
    --rz-success: #386A20;
    --rz-success-light: #c0ffaa;
    --rz-success-lighter: rgba(192, 255, 170, 0.5);
    --rz-success-dark: #3e9108;
    --rz-success-darker: #194100;
    --rz-warning: #e8e971;
    --rz-warning-light: #f9ffaa;
    --rz-warning-lighter: rgba(249, 255, 170, 0.5);
    --rz-warning-dark: #918908;
    --rz-warning-darker: #413d00;
    --rz-danger: #b3261e;
    --rz-danger-light: #ffb4aa;
    --rz-danger-lighter: rgba(255, 180, 170, 0.5);
    --rz-danger-dark: #91080a;
    --rz-danger-darker: #410001;
    --rz-on-primary: #ffffff;
    --rz-on-primary-light: #00215d;
    --rz-on-primary-lighter: #00215d;
    --rz-on-primary-dark: #ffffff;
    --rz-on-primary-darker: #bcd8ff;
    --rz-on-secondary: #ffffff;
    --rz-on-secondary-light: #19212b;
    --rz-on-secondary-lighter: #19212b;
    --rz-on-secondary-dark: #ffffff;
    --rz-on-secondary-darker: #c2cddc;
    --rz-on-info: #ffffff;
    --rz-on-info-light: #002d41;
    --rz-on-info-lighter: #086791;
    --rz-on-info-dark: #ffffff;
    --rz-on-info-darker: #aadaff;
    --rz-on-success: #ffffff;
    --rz-on-success-light: #194100;
    --rz-on-success-lighter: #194100;
    --rz-on-success-dark: #ffffff;
    --rz-on-success-darker: #c0ffaa;
    --rz-on-warning: #1b1d20;
    --rz-on-warning-light: #413d00;
    --rz-on-warning-lighter: #413d00;
    --rz-on-warning-dark: #ffffff;
    --rz-on-warning-darker: #f9ffaa;
    --rz-on-danger: #ffffff;
    --rz-on-danger-light: #410001;
    --rz-on-danger-lighter: #410001;
    --rz-on-danger-dark: #ffffff;
    --rz-on-danger-darker: #ffb4aa;
    --rz-series-1: #75abf0;
    --rz-series-2: #9c75f0;
    --rz-series-3: #f075e8;
    --rz-series-4: #f0758c;
    --rz-series-5: #f0ba75;
    --rz-series-6: #c9f075;
    --rz-series-7: #75f07d;
    --rz-series-8: #75f0d9;
    --rz-series-9: #478eeb;
    --rz-series-10: #7b47eb;
    --rz-series-11: #eb47e0;
    --rz-series-12: #eb4766;
    --rz-series-13: #eba447;
    --rz-series-14: #b7eb47;
    --rz-series-15: #47eb52;
    --rz-series-16: #47ebcc;
    --rz-series-17: #3d72b8;
    --rz-series-18: #643db8;
    --rz-series-19: #b83db0;
    --rz-series-20: #b83d54;
    --rz-series-21: #b8823d;
    --rz-series-22: #91b83d;
    --rz-series-23: #3db845;
    --rz-series-24: #3db8a1;
    --rz-panel-menu-item-border-radius: calc(var(--rz-border-radius) * 4.75);
}

html, body {
    font-family: var(--rz-text-font-family);
    font-size: 16px;
    overflow: hidden;
}

@media (max-width: 769px) {
    :root {
        --rz-layout-body-padding: 15px !important;
    }

    .rz-body {
        scrollbar-gutter: auto;
        scrollbar-width: none;
    }

    .rz-footer, #aeca-itv-logo, #admin-badge {
        display: none;
    }
}

.aeca-ia-chat-dialog {
    height: 90vh;
    width: 90vw !important;
    background-color: transparent;
    box-shadow: none;
    border: none;
}

    .aeca-ia-chat-dialog > .rz-dialog-content {
        height: 90vh;
        width: 90vw;
    }

aeca-ia-chat {
    display: flex;
    position: relative;
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: normal;
    align-items: normal;
    height: 100% !important;
    overflow: hidden;
}

    aeca-ia-chat .submit-button {
        position: absolute;
        right: 0.6rem;
        bottom: 12px;
    }

    aeca-ia-chat .close-btn {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        color: white !important;
    }

    aeca-ia-chat > .controls {
        background-color: white;
        border-radius: var(--rz-card-border-radius);
        padding: 0.5rem;
    }

    aeca-ia-chat textarea {
        width: 100% !important;
        resize: none;
        border-radius: 0;
        flex-grow: 1;
        background-color: white !important;
        border: none !important;
        box-shadow: none !important;
    }

        aeca-ia-chat textarea:focus {
            border: none !important;
            box-shadow: none !important;
        }

    aeca-ia-chat section.chat {
        width: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: var(--rz-card-border-radius);
    }

        aeca-ia-chat section.chat .rz-form {
            display: flex;
            flex-direction: column;
            position: relative;
        }

            aeca-ia-chat section.chat .rz-form .rz-stack {
                padding: 0;
            }

        aeca-ia-chat section.chat .messages-container {
            padding: 1.5rem 0.5rem !important;
            overflow-y: auto;
            overflow-x: hidden;
            background-color: black;
            flex-grow: 1;
            scrollbar-gutter: stable;
        }

.rz-form-field[data-is-checkbox],
.rz-form-field[data-is-checkbox] > .rz-form-field-content {
    border: none !important;
    outline: none !important;
}

    .rz-form-field[data-is-checkbox] > .rz-form-field-content {
        min-height: 41px;
        display: grid;
        place-items: center;
    }

.upload-temporalfile-button .rz-fileupload-buttonbar {
    padding: 0;
}

.toggle-password-container {
    width: fit-content;
    position: relative;
}

    .toggle-password-container .toggle-password {
        right: 0;
        cursor: pointer;
        position: absolute;
    }

.social-link-icon {
    cursor: pointer;
}

.azul-aeca {
    color: #001489;
}

.rz-navigation-item-button {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    text-align: start;
    padding-block: var(--rz-menu-item-padding-block);
    padding-inline: var(--rz-menu-item-padding-inline);
}

.abm-modal-buttons {
    padding-bottom: 10px;
    background-color: var(--rz-header-background-color);
    left: 50%;
    bottom: 0;
    position: absolute;
    width: 100%;
    transform: translate(-50%, 0);
}

.dimensionless {
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

stack-page {
    overflow-x: hidden;
    scrollbar-gutter: stable;
    height: 100%;
}

    stack-page:first-of-type {
        display: block;
    }

    stack-page:only-of-type {
        display: block;
    }

.rz-message.rz-messages-error.rz-message-popup {
    top: 1rem !important;
    left: -3px !important;
    z-index: 1;
}

.rz-datatable-loading {
    position: static;
    min-height: 150px;
}

.rz-form-field-slider {
    height: 58px;
}

    .rz-form-field-slider .rz-form-field-content > *:nth-child(1) {
        margin-top: 20px;
    }

    .rz-form-field-slider .rz-form-field-content {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

.rz-form-field-compact .rz-form-field-content {
    border-radius: 20px;
    margin: 0;
}

.rz-fileupload-fileexplorer {
    gap: 0;
}

    .rz-fileupload-fileexplorer .rz-fileupload-buttonbar {
        padding: 0;
    }

        .rz-fileupload-fileexplorer .rz-fileupload-buttonbar .rzi {
            color: rgb(52, 129, 229) !important;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

    .rz-fileupload-fileexplorer .rz-fileupload-choose.rz-button {
        position: relative;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .rz-fileupload-fileexplorer .rz-fileupload-choose.rz-button {
        width: 28px;
        height: 28px;
        border: 1px solid rgb(52, 129, 229);
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .rz-fileupload-fileexplorer .rz-fileupload-choose:hover.rz-button {
        background-color: transparent;
        box-shadow: none;
    }

.rz-datalist-fileexplorer {
    --rz-datalist-padding: 0.5rem;
}

    .rz-datalist-fileexplorer .rz-datalist-data > li {
        cursor: pointer;
        padding: 0;
    }

        .rz-datalist-fileexplorer .rz-datalist-data > li:hover {
            background-color: var(--bs-gray-400);
        }

        .rz-datalist-fileexplorer .rz-datalist-data > li > div {
            padding: 15px;
        }

.rz-breadcrumb-fileexplorer .rz-breadcrumb-item {
    cursor: pointer;
}

pre {
    text-wrap: pretty;
}

.system-message::before {
    content: "Asistente 🤖";
    background-color: #9b59b6;
    position: absolute;
    top: -10px;
    border-radius: 10px;
    padding: 0 10px;
}

.user-message::before {
    content: "Tu 😃";
    background-color: blue;
    position: absolute;
    top: -10px;
    border-radius: 10px;
    padding: 0 10px;
}

.user-message, .system-message, .suggestion-message {
    position: relative;
    overflow: visible;
    padding: 1rem;
    width: max-content;
    border-radius: 15px;
    max-width: 100%;
    min-width: 80px;
}

.suggestion-message {
    border: 1px solid #9b59b6;
    cursor: pointer;
    padding: 0.3rem 1rem;
    color: white;
    margin-bottom: 0.25rem;
    transition: all ease-in-out 200ms;
}

    .suggestion-message:hover {
        background-color: #9b59b6;
    }

.user-message {
    background-color: #201f1b;
    color: white;
}

.system-message {
    background-color: #373635;
    color: white;
}

.stack-page[hidden="true"] {
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
}

dl.companyinfo {
    display: grid;
    grid-template-columns: max-content auto;
}

    dl.companyinfo > dt {
        grid-column-start: 1;
    }

    dl.companyinfo > dd {
        grid-column-start: 2;
        margin-left: 1rem;
    }

.rz-link {
    gap: .25rem;
}

.rgap-1 {
    row-gap: .25rem;
}

.rgap-2 {
    row-gap: .5rem;
}

.rz-button-zonas {
    flex-grow: 1;
    text-wrap: nowrap;
    border-radius: unset;
    padding: 0.25rem;
}

    .rz-button-zonas > .rz-button-box {
        flex-direction: row-reverse;
    }

.rz-form-field[required]:not([readonly]) .rz-form-field-label:after {
    content: " (*)";
    color: red !important;
}

.rz-sidebar-expanded {
    max-width: 300px !important;
}

.rz-dialog-confirm-buttons > button.rz-secondary {
    background-color: transparent !important;
    color: var(--rz-secondary) !important;
    box-shadow: none !important;
}

    .rz-dialog-confirm-buttons > button.rz-secondary:not(.rz-state-disabled):hover:not(:active) {
        background-color: var(--rz-secondary-lighter) !important;
        color: var(--rz-on-secondary-lighter) !important;
        background-image: none !important;
        box-shadow: none !important;
    }

.rz-accordion-objectviewer.rz-accordion a[role="tab"] {
    max-height: 40px;
}

.rz-tree-disabled .rz-chkbox {
    opacity: 0.3;
    pointer-events: none;
}

a:has(> .rz-button) {
    text-decoration: none !important;
}

.rz-row {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rz-text-primary {
    color: var(--rz-text-primary);
}

.scrollbar-stable {
    scrollbar-gutter: stable !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPj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1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.rz-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 0.5rem;
}

    .rz-menu-list .rz-menu-list-item {
        list-style-type: none;
        font-size: var(--rz-panel-menu-font-size);
        font-weight: var(--rz-panel-menu-font-weight);
        transition: transform ease-in-out 200ms;
    }

        .rz-menu-list .rz-menu-list-item p {
            color: #8a8a8a !important;
        }

        .rz-menu-list .rz-menu-list-item .rzi.rz-navigation-item-icon {
            height: var(--rz-panel-menu-icon-height);
            width: var(--rz-panel-menu-icon-width);
            font-size: var(--rz-panel-menu-icon-font-size);
            color: var(--rz-primary);
        }

    .rz-menu-list .rz-card {
        cursor: pointer;
        border-left: 6px solid transparent;
        transition: var(--rz-panel-menu-item-transition);
        border-radius: var(--rz-panel-menu-item-border-radius) !important;
    }

    .rz-menu-list .rz-menu-list-item:hover {
        transform: translateX(8px);
    }

        .rz-menu-list .rz-menu-list-item:hover .rz-card {
            color: var(--rz-panel-menu-item-active-color);
            background-color: var(--rz-panel-menu-item-active-background-color);
        }

    .rz-menu-list .rz-card {
        box-shadow: var(--rz-shadow-1);
    }

    .rz-menu-list .rz-link {
        color: var(--rz-panel-menu-color);
    }

        .rz-menu-list .rz-link:hover .rz-link-text,
        .rz-menu-list .rz-link:focus .rz-link-text {
            text-decoration: none;
        }

/*.rz-sidebar {
    scrollbar-gutter: stable !important;
}*/

.rz-sidebar::-webkit-scrollbar {
    width: 12px !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(1) {
    animation-delay: 0ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(2) {
    animation-delay: 20ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(3) {
    animation-delay: 40ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(4) {
    animation-delay: 60ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(5) {
    animation-delay: 80ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(6) {
    animation-delay: 100ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(7) {
    animation-delay: 120ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(8) {
    animation-delay: 140ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(9) {
    animation-delay: 160ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(10) {
    animation-delay: 180ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(11) {
    animation-delay: 200ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(12) {
    animation-delay: 220ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(13) {
    animation-delay: 240ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(14) {
    animation-delay: 260ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(15) {
    animation-delay: 280ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(16) {
    animation-delay: 300ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(17) {
    animation-delay: 320ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(18) {
    animation-delay: 340ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(19) {
    animation-delay: 360ms !important;
}

ul > li.animate__animated.animate__autoDelay:nth-of-type(20) {
    animation-delay: 380ms !important;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Cargando");
    }

.rz-file-form-field > .rz-form-field-content {
    padding-top: 0.55rem;
}

@media screen and (max-width: 768px) {

    .rz-breadcrumb,
    .rz-footer,
    #goback-btn,
    #app-logo,
    #culture-selector,
    #admin-badge,
    #btn-toggle-fullscreen,
    #render-mode-icon {
        display: none;
    }

    .rz-body {
        padding: 10px !important;
        margin: 0 !important;
        scrollbar-width: none; /* Firefox */
    }

        .rz-body::-webkit-scrollbar {
            width: 0px;
        }
}
