﻿body {
}
.h-Max-300px{
    max-height:300px;
}
.font-size-small{
    font-size:small;
}


/*------MainReport------*/
.report-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: 4.5rem;
    /*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;
    }
}

/*---------ReportComponent----------*/
.report-table-wrapper {
    height: calc(100vh - 120px);
    overflow: auto;
}

.selected-cell {
    background-color: var(--green-color) !important;
}

.table thead th {
    position: sticky;
    top: 0;
    background: var(--white-color);
    z-index: 10;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.table {
    --bs-table-bg: var(--white-color);
}

.column-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .column-header:hover {
        background-color: var(--green-color);
    }

.h-green:hover {
    background-color: var(--green-color) !important;
}

.btn-2 {
    border: 0;
    padding: .35rem .75rem;
}

@media (max-width: 992px) {
    .report-table-wrapper {
        height: calc(100vh - 280px);
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .report-table-wrapper {
        height: calc(100vh - 320px);
        min-height: 250px;
    }

    .table {
        font-size: .75rem;
    }

    .btn-2 {
        padding: .3rem .55rem;
    }
}

/*-------Filter Select DropDown----------*/
.dropdown-menu-rtl {
    direction: rtl;
    /*text-align: right;*/
    inset: 0 0 auto 0 !important;
    /*transform-origin: right top;*/ 
    /*min-width: max-content;*/ 
    /*max-width: 95%;*/
    white-space: normal; 
    overflow-x: scroll; 
}

/* جلوگیری از خارج شدن محتوا در موبایل */
@media (max-width: 576px) {
    .dropdown-menu-rtl {
        max-width: 90vw;
        font-size: .85rem;
    }
}
.dropdown-menu-rtl label span {
    display: inline-block;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}