.loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease;
}

.central-point {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.3);
}

.static-circle {
    position: absolute;
    width: 96px;
    height: 96px;
    border: 2px solid #565755;
    border-radius: 50%;
}

.moving-container {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: rotate-main 2s linear infinite;
}

.moving-arc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #7388a5;
    border-right: 3px solid #7388a5;
}

.dot-arm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(135deg);
}

.dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #7388a5;
    border-radius: 50%;
    top: 2.5px;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #7388a5;
    z-index: 100;
}

#logo-loader {
    width: 70px;
    height: auto;
    position: absolute;
}

@keyframes rotate-main {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif !important;
}

body {
    font-family: 'Cairo', sans-serif;
}

.clear {
    clear: both;
}

.center {
    display: flex;
    padding-top: 0.25rem;
    justify-content: center;
    width: 100%;
    float: left;
}

.dashboard-container-new {
    display: flex;
    flex-direction: column;
    width: 98%;
    margin: 8px auto;
    gap: 8px;
}

.top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1%;
    align-items: stretch;
    height: 360px;
    min-height: 365px;
    max-height: 365px;
}

.filters-box-wrapper .empty-box,
.stats-box-wrapper .right-stats-box {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden;
}

.filters-box-wrapper {
    width: 32%;
}

.stats-box-wrapper {
    width: 67%;
}

.bottom-row {
    position: relative !important;
    z-index: 100 !important;
}

.bottom-row .empty-box {
    overflow: visible !important;
}

.right-stats-box {
    width: 100%;
    border: 1px solid #bfbebe;
    border-radius: 5px;
    padding: 0;
    background-color: #ffffff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.left-side-boxes {
    width: 28%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-box {
    border: 1px solid #bfbebe;
    border-radius: 5px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
}

.box-header {
    background-color: #7388a5;
    color: #ffffff;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
}

.left-side-boxes .empty-box:nth-child(1) {
    flex: 41.5;
}

.left-side-boxes .empty-box:nth-child(2) {
    flex: 58.5;
}

.filters-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    gap: 2px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
}

.separator-line {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
    opacity: 0.5;
}

/* الازرار والنصوص داخل الفلاتر */
.city-btn,
.currency-btn {
    background-color: #fff;
    border: 1px solid #7388a5;
    color: #565755;
    padding: 4px 0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-btn:hover,
.currency-btn:hover {
    background-color: #7388a5;
    color: #565755;
    transform: translateY(-1px);
}

.city-btn.active,
.currency-btn.active {
    background-color: #7388a5;
    border-color: #7388a5;
    color: #565755;
}

.full-width {
    width: 100%;
}

.half-width {
    width: 48%;
    flex: 1;
}

.radio-label {
    flex: 1;
    text-align: center;
    padding: 12px 0 !important;
    font-size: 13px !important;
    font-weight: bold;
    color: #565755;
    cursor: pointer;
    border-radius: 18px;
    transition: color 0.3s;
    margin-bottom: 0;
    z-index: 2;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label:has(input:checked) {
    color: #ffffff;
}

.radio-label:hover {
    background-color: transparent;
    color: #565755;
}

.radio-label:has(input:checked):hover {
    color: #ffffff;
}

.radio-group {
    display: flex;
    position: relative;
    background-color: rgba(86, 87, 85, 0.1);
    border: 1px solid #bfbebe;
    border-radius: 20px;
    padding: 2px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background-color: rgba(86, 87, 85, 0.7);
    border-radius: 18px;
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.radio-group:has(input[value="sell"]:checked) .slide-bg {
    left: 50%;
}

.city-radio-group {
    display: flex;
    position: relative;
    background-color: rgba(86, 87, 85, 0.1);
    border: 1px solid #bfbebe;
    border-radius: 20px;
    padding: 2px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.city-slide-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(33.33% - 3px);
    height: calc(100% - 4px);
    background-color: rgba(86, 87, 85, 0.7);
    border-radius: 18px;
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.city-radio-group:has(input[value="Damascus"]:checked) .city-slide-bg {
    left: 2px;
}

.city-radio-group:has(input[value="Idlib"]:checked) .city-slide-bg {
    left: calc(33.33% + 2px);
}

.city-radio-group:has(input[value="Aleppo"]:checked) .city-slide-bg {
    left: calc(66.66% + 2px);
}

.currency-radio-group {
    display: flex;
    position: relative;
    background-color: rgba(86, 87, 85, 0.1);
    border: 1px solid #bfbebe;
    border-radius: 20px;
    padding: 2px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.currency-slide-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(33.33% - 3px);
    height: calc(100% - 4px);
    background-color: rgba(86, 87, 85, 0.7);
    border-radius: 18px;
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.currency-radio-group:has(input[value="USD"]:checked) .currency-slide-bg {
    left: 2px;
}

.currency-radio-group:has(input[value="Gold"]:checked) .currency-slide-bg {
    left: calc(33.33% + 2px);
}

.currency-radio-group:has(input[value="TRY"]:checked) .currency-slide-bg {
    left: calc(66.66% + 2px);
}

#statsDiv {
    padding: 8px;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    min-height: auto !important;
    line-height: 22px;
    flex-grow: 1;
}

#statsDiv .companyWiseStatsDiv {
    width: 100%;
    padding: 2px;
    border-bottom: none;
    float: left;
}

#noDataMessage {
    text-align: center;
    color: #666;
    font-size: 20px;
    font-weight: bold;
    font-style: normal;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.stats-group {
    display: flex;
    flex-direction: row;
    margin-bottom: 8px;
    width: auto;
    align-items: stretch;
    justify-content: flex-start;
}

.group-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: bold;
    color: #565755;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.group-bracket {
    width: 8px;
    border-left: 2px solid #7388a5;
    border-top: 2px solid #7388a5;
    border-bottom: 2px solid #7388a5;
    border-radius: 0;
    margin: 4px 8px 4px 4px;
    flex-shrink: 0;
}

.group-items {
    flex-grow: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

#statsDiv .companyWiseStatsDiv .companyRow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 22px;
}

.showHide {
    width: 20px;
    height: 13px;
    margin-right: 5px;
    display: block !important;
    cursor: pointer;
}

#statsDiv .companyWiseStatsDiv .companyRow .companyTitle {
    width: 305px;
    min-width: 305px;
    margin-right: 15px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    cursor: pointer;
    flex: none;
}

.companyValue {
    width: 70px;
    min-width: 70px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    margin-left: 0;
    flex: none;
}

.selectedDateLabel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: fit-content;
    min-width: 0;
    padding: 5px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background-color: #7388a5;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    direction: ltr;
    gap: 0px;
}

.selectedDateLabel span,
.selectedDateLabel div {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    display: inline-block;
}

.date-static-label {
    text-align: right;
    width: auto !important;
    white-space: nowrap;
    margin-left: 30px;
    margin-right: 5px;
}

.date-part-day {
    width: 20px;
    text-align: center;
    display: inline-block;
}

.date-part-month {
    width: 35px;
    text-align: center;
    display: inline-block;
}

.date-part-year {
    width: 45px;
    text-align: center;
    display: inline-block;
}

.date-part-time {
    width: 70px;
    text-align: left;
    display: inline-block;
    margin-left: 5px;
}

.date-label-static {
    text-align: right;
    width: 140px;
    white-space: nowrap;
}

.date-value-dynamic {
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

#statsDiv .selectedDateAverageLabel {
    font-size: 25px;
    text-align: center;
    font-weight: bold;
    padding: 3px 0px;
    display: none;
}

#durationFiltersContainer.horizontal-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    gap: 10px;
    height: auto;
    flex-wrap: nowrap;
}

.buttons-group {
    display: flex;
    gap: 3px;
    flex: 1.5;
    justify-content: flex-start;
}

#durationFiltersContainer.horizontal-layout .filterButton {
    flex: 1;
    width: auto !important;
    min-width: 60px;
    padding: 6px 2px;
    font-size: 11px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

#durationFiltersContainer.horizontal-layout .date-filter-container {
    width: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1.6;
    justify-content: flex-end;
}

.date-inputs-row {
    display: flex;
    gap: 5px;
}

.date-input-group.compact {
    width: 100% !important;
    height: 30px !important;
    border-radius: 15px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0 !important;
}

.date-input-group.compact span,
.date-input-group.compact label {
    color: #ffffff;
    font-weight: bold;
    padding: 0 10px 0 8px !important;
    font-size: 13px;
}

.date-input-group.compact input[type="date"] {
    width: 110px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 11px;
    border: none;
    padding: 0 8px;
    font-size: 11px;
    margin-right: 0;
    color: #565755;
    font-weight: bold;
    outline: none;
}

#applyButton {
    height: 30px;
    padding: 0 36px;
    min-width: 108px;
    white-space: nowrap;
    background-color: rgba(86, 87, 85, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    cursor: pointer !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

#applyButton:hover {
    background-color: #565755;
    color: #ffffff;
    transform: translateY(-1px);
}

#applyButton:active {
    transform: translateY(1px);
}

#durationFiltersContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 6px;
    height: 100%;
    padding: 8px 5px 5px 5px;
    overflow: hidden;
}

.filterButton {
    background-color: rgba(86, 87, 85, 0.1);
    border: 1px solid rgba(86, 87, 85, 0.2);
    color: #565755;
    padding: 4px 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

.filterButton.selected {
    background-color: rgba(86, 87, 85, 0.7);
    color: #ffffff;
    border-color: rgba(86, 87, 85, 0.7);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filterButton:hover {
    background-color: #a3a3a3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filterButton.selected {
    background-color: rgba(86, 87, 85, 0.7);
    color: #ffffff;
    border-color: rgba(86, 87, 85, 0.7);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.date-filter-container {
    width: 100%;
    margin-top: 5px;
    padding-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 5px;
    position: relative;
    z-index: 101;
}

.date-inputs-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 3;
}

.date-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #7388a5;
    border-radius: 15px;
    padding: 0 20px;
    width: 100%;
    height: 28px;
}

.date-input-group label {
    font-size: 12px;
    font-weight: bold;
    color: #565755;
    white-space: nowrap;
    padding-left: 35px;
    margin-right: 2px;
}

.date-input-group input[type="date"] {
    flex-grow: 0;
    width: 60%;
    padding: 0px 2px;
    background-color: white;
    border: none;
    border-radius: 10px;
    color: #333;
    font-family: sans-serif;
    font-size: 12px;
    outline: none;
    height: 17px;
    text-align: center;
    min-width: 0;
    margin-right: 5px;
}

.usd_SpTodayTitle,
.usd_SpTodayValue {
    color: #7388a5 !important;
}

.usd_LiraNewsTitle,
.usd_LiraNewsValue {
    color: #a555a1 !important;
}

.usd_LiiraSyTitle,
.usd_LiiraSyValue {
    color: #e2d0a7 !important;
}

.usd_DeiSyTitle,
.usd_DeiSyValue {
    color: #66B7BA !important;
}

.usd_OfficialTitle,
.usd_OfficialValue {
    color: #254d74 !important;
}

.usd_BanksTitle,
.usd_BanksValue {
    color: #a77d54 !important;
}

.usd_BadalatTitle,
.usd_BadalatValue {
    color: #a85555 !important;
}

.usd_CBSTitle,
.usd_CBSValue {
    color: #52a551 !important;
}

.com_HawalaTitle,
.com_HawalaValue {
    color: #B37B3E !important;
}

.non_com_HawalaTitle,
.non_com_HawalaValue {
    color: #A85C85 !important;
}

.un_rateTitle,
.un_rateValue {
    color: #458CA8 !important;
}

.axis path,
.axis line {
    fill: none;
    stroke: black;
    stroke-width: 1;
    shape-rendering: crispEdges;
}

.axis text {
    font-size: 9px;
    font-family: 'Cairo', sans-serif;
    fill: #555;
    pointer-events: none;
}

.yAxis text {
    font-size: 10px;
    font-family: 'Cairo', sans-serif;
    fill: #000;
    pointer-events: none;
    font-weight: bold;
}

.axisPartial path,
.axisPartialVertical path {
    fill: none;
    stroke: black;
    stroke-width: 1;
    shape-rendering: crispEdges;
}

.axisPartial text {
    font-size: 10px;
    font-family: 'Cairo', sans-serif;
    fill: black;
    pointer-events: none;
    font-weight: bold;
}

.axisPartialVertical line,
.axisPartialVertical text {
    display: none;
}

.axis line {
    stroke: lightgrey;
    stroke-opacity: 0.7;
    shape-rendering: crispEdges;
}

.axis path {
    stroke-width: 0.7;
}

.yAxis path {
    opacity: 0;
}

.extent {
    fill: #F6AF3A !important;
    fill-opacity: 0.4 !important;
    stroke: #F6AF3A !important;
}

.resize rect {
    fill: #F6AF3A !important;
    fill-opacity: 1 !important;
    stroke: #F6AF3A !important;
}

.resize .handle {
    fill: white !important;
    stroke: #F6AF3A !important;
    fill-opacity: 1 !important;
}

#brushContainerDiv {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    margin-top: 15px;
    padding: 0;
    position: relative !important;
    z-index: 1 !important;
}

.hr-line-date-time {
    margin: 0.25rem 0px;
    border: 1px solid #bfbebe;
}

.loadingDiv,
.loadingDiv1 {
    font-size: 22px;
    line-height: 180px;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background-color: #6cacd6;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.date-elem-day {
    display: inline-block;
    width: 18px !important;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

.date-elem-month {
    display: inline-block;
    width: 28px !important;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

.date-elem-year {
    display: inline-block;
    width: 38px !important;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

.date-elem-time {
    display: inline-block;
    width: 65px !important;
    text-align: left;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 4px !important;
}

.zeros-radio-group {
    display: flex;
    position: relative;
    background-color: rgba(86, 87, 85, 0.1);
    border: 1px solid #bfbebe;
    border-radius: 20px;
    padding: 2px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.zeros-slide-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background-color: rgba(86, 87, 85, 0.7);
    border-radius: 18px;
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.zeros-radio-group:has(input[value="prior"]:checked) .zeros-slide-bg {
    left: 50%;
}

.zeros-label {
    font-size: 12px !important;
    white-space: nowrap !important;
    font-weight: bold;
    line-height: normal;
    display: block;
    padding: 3px 0;
}


.date-select.expanded::-webkit-scrollbar {
    width: 5px;
}

.date-select.expanded::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px 0;
}

.date-select.expanded::-webkit-scrollbar-thumb {
    background-color: #bfbebe;
    border-radius: 10px;
}

.date-select.expanded::-webkit-scrollbar-thumb:hover {
    background-color: #7388a5;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-selection {
    padding-top: 1rem;
    padding-left: 4rem;
}

.logo-selection img {
    height: 50px;
}

.custom-date-wrapper {
    display: flex;
    align-items: center;
    position: relative !important;
    overflow: visible !important;

    gap: 6px;
}

.select-wrap {
    position: relative;
    height: 22px;
    background-color: #fff;
    border-radius: 11px;
    position: relative !important;
    overflow: visible !important;
}


.date-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: bold;
    color: #565755;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    padding: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    z-index: 1;
}

.date-select.expanded {
    height: auto;
    max-height: 120px;
    background-color: #fff;
    border: 1px solid #7388a5;
    border-radius: 10px;
    z-index: 99999 !important;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
    position: absolute !important;
}

.date-select option {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.select-wrap.day,
.date-select.day {
    width: 40px;
}

.select-wrap.month,
.date-select.month {
    width: 80px;
}

.select-wrap.year,
.date-select.year {
    width: 50px;
}

.logoName {
    padding-bottom: 0.5rem;
    font-size: 12px;
}

.bottom-logo {
    display: none;
}



.group-bracket-right {
    width: 8px;
    border-right: 2px solid #7388a5;
    border-top: 2px solid #7388a5;
    border-bottom: 2px solid #7388a5;
    border-left: none;
    border-radius: 0;
    margin: 4px 0 4px 5px;
    flex-shrink: 0;
}

.group-average {
    margin-left: 20px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

#durationFiltersContainer,
#durationFiltersContainer.horizontal-layout {
    overflow: visible !important;
}

.center,
.dashboard-container-new,
.bottom-row,
.bottom-row .empty-box {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}

@media only screen and (max-width: 992px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .dashboard-container-new {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        padding: 5px !important;
        box-sizing: border-box !important;
    }

    .top-row {
        display: contents !important;
    }

    .filters-box-wrapper {
        order: 1 !important;
        width: 100% !important;
        flex: none !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }

    .bottom-row {
        order: 2 !important;
        width: 100% !important;
        flex: none !important;
        height: auto !important;
        margin-bottom: 10px !important;
        z-index: 99 !important;
        position: relative !important;
    }

    .stats-box-wrapper {
        order: 3 !important;
        width: 100% !important;
        flex: none !important;
        height: auto !important;
        margin-bottom: 15px !important;
    }

    .empty-box,
    .right-stats-box,
    .filters-box-wrapper .empty-box {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        display: block !important;
        padding-bottom: 15px !important;
    }

    .filters-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: auto !important;
        padding: 10px;
    }

    .radio-label {
        padding: 8px 0 !important;
        font-size: 14px !important;
    }

    #durationFiltersContainer.horizontal-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .buttons-group {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 100% !important;
        flex: none !important;
    }

    .filterButton {
        flex: 1 1 30% !important;
        margin: 2px !important;
        height: 35px !important;
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .date-filter-container {
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 5px !important;
        padding-top: 5px !important;
        border-top: 1px solid #eee;
    }

    .date-inputs-row {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 5px !important;
    }

    .date-input-group.compact {
        width: 100% !important;
        height: 40px !important;
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        margin: 0 !important;
    }

    #applyButton {
        width: 100% !important;
        margin-top: 8px !important;
        height: 35px !important;
    }

    #statsDiv {
        height: auto !important;
        padding: 5px !important;
    }

    .stats-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        border-bottom: 1px dashed #ccc;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .group-label {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        width: 100% !important;
        text-align: left !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
        border-bottom: 2px solid #7388a5;
        display: block !important;
    }

    .group-bracket,
    .group-bracket-right {
        display: none !important;
    }

    .group-items {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    #statsDiv .companyWiseStatsDiv .companyRow {
        width: 100% !important;
        display: flex;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        height: auto !important;
        padding: 6px 0 !important;
        border-bottom: 1px dashed #eee !important;
    }

    .showHide {
        flex: none !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        cursor: pointer !important;
    }

    #statsDiv .companyWiseStatsDiv .companyRow .companyTitle {
        width: auto !important;
        min-width: auto !important;
        font-size: 13px !important;
        flex: 1 !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .companyValue {
        flex: none !important;
        text-align: right !important;
        font-size: 13px !important;
        margin-left: auto !important;
        font-weight: bold !important;
    }

    .group-average {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
        padding-top: 5px !important;
        border-top: 2px solid #7388a5 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #brushContainerDiv {
        position: relative !important;
        width: 100% !important;
        height: 350px !important;
        margin-top: 20px !important;
        z-index: 1 !important;
        overflow: hidden !important;
        display: block !important;
    }

    .selectedDateLabel {
        position: absolute !important;
        top: 0 !important;
        left: 50 !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        min-width: 180px !important;
        padding: 6px 15px !important;
        margin: 0 !important;
        background-color: #7388a5 !important;
        color: white !important;
        z-index: 100 !important;
        border-radius: 0 0 10px 10px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .date-value-dynamic {
        display: inline-block !important;
        direction: ltr !important;
    }
}