@import url('./icons.css');

html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.title.title-secondary {
    padding: 0.313rem 0 0;
    color: var(--bs-secondary-color);
}

.title-header-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 2.5rem;
}

.title-content-text {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.375rem;
}

.main-content {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.login-boot-loading {
    align-items: center;
    background: #ffffff;
    display: flex;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: fixed;
    z-index: 10000;
}

.login-boot-loading[hidden] {
    display: none;
}

.login-boot-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
    max-width: 28rem;
    overflow: hidden;
    width: 100%;
}

.login-boot-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.login-boot-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.login-boot-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    min-height: 12rem;
    padding: 2rem;
    text-align: center;
}

.login-boot-body p {
    margin: 0;
}

.login-boot-spinner,
.authorization-loading-spinner {
    animation: login-loading-spin 0.8s linear infinite;
    border: 0.25rem solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    border-top-color: currentColor;
    height: 2.5rem;
    width: 2.5rem;
}

.authorization-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

@keyframes login-loading-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================================
   Mantenedor de Materiales
   ========================================================================== */

/*
 * El menú contextual de DevExpress se renderiza fuera del scope CSS del
 * componente. Por eso este tamaño debe estar en site.css (global).
 */
.materiales-context-menu-item img,
.materiales-context-menu-item svg,
.materiales-context-menu-item .dxbl-image,
.materiales-context-menu-item .dxbl-menu-item-image {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain !important;
}

/*
 * El IconUrl de Materiales posee tamaño intrínseco 16x16. Estas reglas
 * garantizan que el popup de DxMenu no lo amplíe.
 */
.menu-icon-standard img,
.menu-icon-standard svg,
.menu-icon-standard .dxbl-image,
.menu-icon-standard .dxbl-menu-item-image {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain !important;
}
