:root {
    /*--mindaro*/
    --green-color: #d9fe66;
    --green-meno-color: #739942;
    /*--ghost-white*/
    --lightgray-color: #EFF1F5;
    /*--seasalt*/
    --white-color: #fafafa;
    /*--onyx*/
    --black-color: #424345;
    --gray-color: #7B7D81;
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}
/*------MainLog------*/
.log-page-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.panel-toggle-buttons {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .5rem;
}

.toggle-btn-report {
    writing-mode: vertical-rl;
    height: 120px;
    min-width: 48px;
    white-space: nowrap;
}

.report-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    padding-right: 3.5rem;
    padding-left: 1rem;
    /*gap: .25rem;*/
    box-sizing: border-box;
}
.right-panel {
    transition: all .35s ease;
    overflow: hidden;
    flex-shrink: 0;
}

    .right-panel.hidden {
        width: 0 !important;
        opacity: 0;
        pointer-events: none;
        margin: 0 !important;
    }

    .right-panel.visible {
        width: min(400px, 32%);
        opacity: 1;
    }

.report-panel {
    transition: all .35s ease;
    flex: 1 1 auto;
    min-width: 0;
}

    .report-panel.full-width {
        width: 100%;
    }

.panel-content {
    height: 100%;
}

.showFilterPanel {
    display: block;
    opacity: 1;
    transition: opacity .35s ease;
}

.hidden-filterPanel {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
}



/* Tablet */
@media (max-width: 992px) {
    .report-layout {
        padding-right: 0;
        /*padding-top: 4.5rem;*/
        flex-direction: column;
        height: auto;
    }

    .panel-toggle-buttons {
        position: sticky;
        top: 0;
        right: 0;
        flex-direction: row;
        justify-content: flex-start;
        background: white;
        width: 100%;
        padding: .5rem;
        border-bottom: 1px solid #eee;
    }

    .toggle-btn-report {
        writing-mode: horizontal-tb;
        height: auto;
        min-width: 110px;
    }

    .right-panel.visible {
        width: 100%;
        max-height: 50vh;
    }

    .right-panel.hidden {
        width: 100% !important;
        max-height: 0;
    }

    .report-panel {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .report-page-container {
        min-height: auto;
    }

    .panel-toggle-buttons {
        gap: .4rem;
        padding: .4rem;
    }

    .toggle-btn-report {
        font-size: .85rem;
        min-width: 90px;
        padding: .4rem .75rem;
    }

    .right-panel.visible {
        max-height: 40vh;
    }

    .report-layout {
        gap: .5rem;
    }
}

.LogsReportGrid-table-Wrapper {
    height: calc(100vh - 50px);
    overflow: auto;
    width: 99%;
}
.clickable-row:hover {
    cursor: pointer;
}

/*-------- LogDetailPanel ------------*/
.log-details-panel {
    width: 100%;
    height: 100%;
    padding: 14px;
    overflow-y: auto;
    direction: rtl;
}

    /* Scrollbar */

    .log-details-panel::-webkit-scrollbar {
        width: 5px;
    }

    .log-details-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .log-details-panel::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 10px;
    }

        .log-details-panel::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

/* Properties */

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Property Card */

.property-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

    .property-card:hover {
        background: rgba(255, 255, 255, 0.075);
        border-color: rgba(255, 255, 255, 0.15);
    }


/* Header */

.property-header {
    min-height: 38px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.property-name {
    color: #f1f3f5;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Changed badge */

.changed-badge {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(77, 171, 247, 0.12);
    color: #74c0fc;
    font-size: 10px;
    font-weight: 500;
}

/* Values */

.property-values {
    display: flex;
    align-items: stretch;
    gap: 7px;
    padding: 9px;
}

.value-box {
    flex: 1;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.value-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    color: #adb5bd;
    font-size: 10px;
}

.value-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #868e96;
    flex-shrink: 0;
}

.new-value .value-dot {
    background: #51cf66;
}

.value-content {
    color: #dee2e6;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.old-value .value-content {
    color: #adb5bd;
}

.new-value .value-content {
    color: #f1f3f5;
}

/* Arrow */

.value-arrow {
    width: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868e96;
    font-size: 14px;
}

/* Empty state */

.empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    color: #adb5bd;
}

.empty-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #868e96;
    font-size: 24px;
}

.empty-title {
    margin-bottom: 5px;
    color: #dee2e6;
    font-size: 14px;
    font-weight: 600;
}

.empty-description {
    max-width: 280px;
    color: #868e96;
    font-size: 11px;
    line-height: 1.7;
}

/* Mobile */

@media (max-width: 420px) {

    .log-details-panel {
        padding: 10px;
    }

    .property-values {
        flex-direction: column;
    }

    .value-arrow {
        width: 100%;
        height: 12px;
        transform: rotate(-90deg);
    }
}
/*----------- RolesComponent -----------*/
.role-main-select {
    width: 50%;
    min-height: 42px;
    transition: all 0.2s ease;
}

.placeholder-select {
    color: #888;
}

.normal-select {
    color: #333;
}

.btn.background-lightgray:hover {
    background-color: var(--lightgray-s-color);
}

.btn.background-green-meno:hover {
     /*filter:brightness(.8);*/
    background-color: var(--green-meno-dark-color);
}

.role-group-section {
    width: 100%;
    /* border: 1px solid #e5e7eb;
    border-radius: 14px;*/
     padding: 15px;
    background-color: #fff;
    height: 90%;
}

.role-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.role-group-title {
    font-weight: 600;
    font-size: 15px;
}

.role-group-actions {
    display: flex;
    gap: 6px;
}

.role-group-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 90%;
    overflow-y: auto;
}


.role-group-item {
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    color: #444;
}

    .role-group-item:hover {
        background-color: #eef2f7;
    }


.selected-role-group {
    background-color: var(--lightgray-color);
    border-color: var(--gray-color);
    color: var(--black-color);
    font-weight: 600;
}

    .selected-role-group:hover {
        background-color: var(--lightgray-color);
    }


.empty-role-group {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}