body {
    /*font-family: 'Segoe UI', sans-serif;*/
    font-family: var(--rz-text-font-family);
    /*margin: 0;*/
    background-color: #f6f7f9;
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    color: var(--rz-text-color);
}

:root {
    --baggie-primary-color: #004531;
}

hr.divider {
    margin: 0.275em 0em !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: all;
    backdrop-filter: blur(1px);
}

.page-title-wrapper {
    display: flex;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.search-container .rz-textbox {
    flex: 1;
    margin-right: 0.5rem;
}

.rz-messages-error {
    display: block;
    margin-top: 0.25rem;
}

.footer {
    color: #b8b8b9;
}

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


.selected-row {
    outline: 1px solid #dadfe2;
    outline-offset: -1px;
}

.selected-row td {
    font-weight: 600;
    background-color: #e9eaed !important;
}

.custom-hover-row:hover:not(.selected-row) > td {
    background-color: #e9eaed !important;
    cursor: default;
}

.rz-form-field-content {
    margin-block: 0;
    box-shadow: var(--rz-input-shadow);
}

.rz-autocomplete-input {
    height: 100%;
}

/* Chips de metadatos */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f7fa;
    color: #2f3640;
    font-size: 12.5px;
    border: 1px solid #eef0f4;
}

/* Métricas compactas */
.metric {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    min-width: 110px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eef0f4;
}

.metric small {
    color: #6b7280;
    font-weight: 600;
    letter-spacing: .2px;
}

.metric strong {
    font-size: 16px;
    line-height: 1.2;
}

/* Badge de código de error */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
}

/* Texto con ellipsis */
.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 220px;
}

/* Leyenda de severidades */
.legend {
    color: #6b7280;
    font-size: 12.5px;
}

.legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

/* Hover sutil en filas (un poquito más oscuro que #f6f7fa) */
.rz-data-grid .rz-data-row:hover {
    background: #eef0f4;
}


@keyframes blinkHighlight {
    0% {
        background: #fff8d6;
    }

    25% {
        background: #ffe8a3;
    }

    50% {
        background: #fff8d6;
    }

    75% {
        background: #ffe8a3;
    }

    100% {
        background: transparent;
    }
}

.rz-data-grid .blink-row td {
    animation: blinkHighlight 2.2s ease-out 1;
}


.password-input-container {
    position: relative;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    user-select: none;
    height: 20px;
    width: 20px;
}

.password-toggle-icon:hover {
    color: #000;
    background-color: transparent;
}

.rz-textbox.password-input {
    padding-right: 40px !important;
}

.container {
    max-width: 100% !important;
}

.copyright-footer-bottom {
    width: 100%;
    text-align: center;
    background-color: #f8f9fa;
    padding: 0;
    margin-top: auto;
}

.copyright-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.copyright-text {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.2;
    margin: 0;
}

.hibull-link {
    color: #509e2f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.hibull-link:hover {
    color: #3d7a23;
    text-decoration: underline;
}

.hibull-link:active {
    color: #2d5a1a;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 576px) {
    .copyright-container {
        padding: 15px;
    }

    .copyright-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .copyright-text {
        font-size: 0.75rem;
    }
}