﻿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;
}

/*Timeline*/
.rz-timeline.no-content-start .rz-timeline-item .rz-timeline-content-start {
    display: none;
}
.rz-timeline-content-end{
    cursor: default;
}
.no-content-start .rz-timeline-axis {
    margin-left: 0 !important;
}

.no-content-start .rz-timeline-content-end {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none;
}

.rz-timeline.no-content-start .rz-timeline-item:before {
    left: 100%;
    bottom: 0;
}

.rz-timeline-column .rz-timeline-item:hover:before {
    background-color: #598087;
}

.rz-timeline.rz-timeline-column .rz-timeline-item:hover {
    color: #598087;
}

.rz-timeline-column .rz-timeline-item:first-child:before {
    top: 0;
}

.rz-timeline-column .rz-timeline-item:last-child:before {
    bottom: 0;
}

/*Dashboard*/
.env-dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    width: 100%;
}

.env-dashboard-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: self-start;
}

.env-dashboard-filters {
    display: flex;
    gap: 0.5rem;
}

.env-dashboard-chart-wrapper {
    width: 100%;
}
