/* RTL Font */

@font-face {
    font-family: 'RTL United Text';
    src: url('/fonts/RTLUnitedText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'RTL United Text';
    src: url('/fonts/RTLUnitedText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'RTL United Text';
    src: url('/fonts/RTLUnitedText-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
  }
  
  @font-face {
    font-family: 'RTL United Text';
    src: url('/fonts/RTLUnitedText-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
  }

body {
    --rz-text-font-family: 'RTL United Text', 'Roboto', sans-serif;
    font-family: var(--rz-text-font-family);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

div.rz-body{
    height: 100vh;
}

.bb-page {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100% !important;
}

.content {
    display: flex;
    flex: 1;
    height: calc(100% - 2rem - 1px);
}

.content > div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-page {
    padding: 1rem;
}

.overview-full-page {
    height: 100% !important;
}

::-webkit-scrollbar-thumb {
    border-radius: 9999px !important;
    background: rgba(0,0,0,0.3) !important;
}

::-webkit-scrollbar:horizontal {
    height: 0.65rem;
}

::-webkit-scrollbar:vertical {
    width: 0.65rem;
}

.top-row {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: .5rem;
    font-size: var(--rz-text-body2-font-size);
    justify-content: flex-end;
    line-height: 1rem;
}

.top-row > * + * {
    border-left: 1px solid rgba(0,0,0,0.1);
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    
}

.filter-component {
    min-width: 14.5rem;
    max-width: 25rem;
    font-size: 0.875rem;
    height: 2.25rem;
    margin: 0;
    padding: 0.5rem;

    .rz-button-text {
        font-size: 0.875rem;
    }
    
    .rz-button {
        padding: 0;
    }

    .rz-dropdown {
        padding-top: 0.35rem;
        padding-left: 0.5rem;
        padding-bottom: 0;
    }

    .rz-dropdown-chips {
        overflow-y: auto;
        height: unset;
        padding: 0.45rem;
    }
}

.text-table {
    font-size: 0.875rem;
}

input.filter-component {
    padding-left: 0.75rem;
}

.bb-sidebar {
    border-right: 1px solid rgba(0,0,0,0.1)
}

.bb-sidebar-content {
    border: 0 !important;
}

.rz-calendar .rz-inputtext {
    font-size: 0.875rem;
    height: 2.25rem;
    width: 14.5rem;
    padding-left: 0.75rem;
}

.rz-grid-table td {
    padding-top: 0;
    padding-bottom: 0;
    height: 2.5rem;
}

.rz-datatable {
    border-left: 0;
    border-right: 0;
}


.rz-data-grid {
    --rz-grid-cell-padding: 0.5rem 0.75rem;
}

.rz-data-grid th {
    --rz-text-body2-font-size: .8rem;
    --rz-text-body2-font-weight: 500;
    --rz-grid-header-title-padding: 0 .75rem;
    position: relative;
}

.rz-data-grid th:hover::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
    width: 6rem;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%);
}

.rz-data-grid .rz-frozen-cell:hover::before {
    content: none;
}

.rz-grid-filter-icon {
    position: absolute;
    right: 1.5rem;
    margin-right: 0;
    display: none !important;
    z-index: 10;
}

.rz-sortable-column-icon,
.rz-sortable-column .rzi-sort {
    position: absolute;
    right: 0;
    z-index: 10;
    color: var(--rz-grid-filter-color);
    display: none;
}

.rz-sortable-column-icon:hover {
    cursor: pointer;
    color: var(--rz-grid-header-filter-icon-hover-color) !important;
}

th:hover .rz-grid-filter-icon,
th:hover .rz-sortable-column-icon {
    display: block !important;
}

.rz-dialog-titlebar {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.rz-dialog-title {
    font-weight: 700;
}

.rz-date-filter-buttons .rz-button, .rz-button-md {
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 800;
}

.rz-datatable-emptymessage {
    padding: 1rem !important;
}

.rz-fileupload-buttonbar {
    background-color: transparent;
}

.info-tooltip {
    pointer-events: none;
}


.table-select-col {
    padding: 0 !important;
    
    span.rz-column-title {
        padding: 0 !important;
        justify-content: center;
    }

    span.rz-cell-data{
        justify-content: center;
        display: flex;
    }
}

span.rz-cell-data:has(.flex-grow-1) {
    display: flex;
    gap: 0.5rem;
    
    .rz-button {
        text-align: center; 
    }
}

.table-edit-col.rz-frozen-cell-right {
    padding: 0 !important;
    .rz-cell-data {
        display: flex;
        justify-content: center;
    }
}