.listdiv {
    width: 99%;
    height: 100%;
    position: relative;
    margin-top: 40px;
    margin-left: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

table {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

tr {
    height: 30px;
    width: 100%;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 30px;
    padding-right: 10px;
    padding-left: 10px;
    color: var(--text-secondary);
    font-weight: 700;
    font-family: 'Inter';
    font-size: 14px;
    position: relative;
    text-align: left;
}

tbody {
    border: 1px solid var(--border-subtle);
    border-collapse: separate;
    background-color: var(--bg-surface);
}

thead {
    height: 30px;
    background-color: var(--bg-subtle);
}

td {
    height: 30px;
    font-family: 'Inter';
    font-size: 12px;
}

.pointer-cursor {
    cursor: pointer;
}

.default-cursor {
    cursor: default;
}

.mat-styles {
    padding-bottom: 0px;
    padding-top: 0px;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
}

.listdata {
    padding-right: 10px;
    padding-left: 10px;
    color: var(--text-primary);
}

.right-align {
    text-align: right;
}

.left-align {
    text-align: left;
}

.heading-div {
    justify-content: center;
    align-items: center;
    max-height: 26px;
    min-height: 26px;
}

.drilldown-display {
    display: inline-flex;
}

.chart-container {
    margin-top: 25px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-left: 10px;
    margin-right: 10px;
}

.chart-scroll {
    max-height: 400px; // Visible chart height
    overflow-y: auto; // Vertical scroll
    overflow-x: hidden;
}

/* Optional – smoother scrollbar */
.chart-scroll::-webkit-scrollbar {
    width: 6px;
}

.chart-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.page-button-block {
    height: 50px;
}

.pagebuttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

button {
    margin-left: 10px;
    color: var(--button-secondary-text-default);
    width: 90px;
    height: 30px;
    border-radius: 6px;
    font-size: 16px;
    border: 1.5px solid var(--button-secondary-border-default);
}

button:hover {
    background-color: var(--button-secondary-bg-hover);
}

.next-button {
    margin-right: 20px;
}

.icon-less-than {
    font-size: 16px;
}

.mat-styles {
    padding-bottom: 0px;
    padding-top: 0px;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
}

.custom-header {
    background-color: var(--button-secondary-bg-default);
}

// Tooltip custom styles for charts
:host ::ng-deep .apexcharts-tooltip {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Tooltip header (date section) */
:host ::ng-deep .apexcharts-tooltip-title {
    background: var(--bg-subtle) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* Field name (Net Profit / Revenue) */
:host ::ng-deep .apexcharts-tooltip-text-y-label {
    color: var(--text-secondary) !important;
}

/* Value */
:host ::ng-deep .apexcharts-tooltip-text-y-value {
    color: var(--text-primary) !important;
}

/* Marker text alignment */
:host ::ng-deep .apexcharts-tooltip-series-group {
    color: var(--text-secondary) !important;
}

/* X axis hover tooltip (Sep-2024 box) */
:host ::ng-deep .apexcharts-xaxistooltip {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 6px;
}

/* Arrow under the tooltip */
:host ::ng-deep .apexcharts-xaxistooltip-bottom:before {
    border-bottom-color: var(--bg-surface) !important;
}

:host ::ng-deep .apexcharts-xaxistooltip-bottom:after {
    border-bottom-color: var(--bg-surface) !important;
}

:host ::ng-deep .apexcharts-xaxis-label {
    fill: var(--text-secondary) !important;
}

::ng-deep .apexcharts-menu-icon svg,
.apexcharts-reset-icon svg,
.apexcharts-zoom-icon svg,
.apexcharts-zoomin-icon svg,
.apexcharts-zoomout-icon svg {
    fill: var(--button-secondary-text-default) !important;
}

::ng-deep .apexcharts-menu {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

::ng-deep .apexcharts-theme-light .apexcharts-menu-item:hover {
    background: var(--bg-hover) !important;
}

::ng-deep .apexcharts-menu-item {
    color: var(--text-primary) !important;
}