#finance-charts-panel {
    width: calc(100% - 316px) !important;
    max-width: none !important;
    top: 6px !important;
    right: 6px !important;
    height: calc(125vh - 12px) !important;
    border-radius: 42px !important;
    z-index: 10001 !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    border: 1px solid #00000024;
}

#finance-charts-panel::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.custom-charts-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 10px 40px 10px;
    box-sizing: border-box;
}

.custom-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.custom-chart-card .chart-main-area {
    height: 220px;
}   

.chart-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid #b6bdc5;
    padding: 0 10px 15px 10px;
}

.chart-info-icon {
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    margin-left: auto;
}

.chart-info-icon:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.chart-info-icon[data-tooltip]::after,
.chart-info-icon[data-tooltip-pos]::after {
    white-space: normal !important;
    width: 210px !important;
    max-width: 210px !important;
    text-align: left !important;
    line-height: 1.4 !important;
    top: 0 !important;
    bottom: auto !important;
    right: calc(100% + 10px) !important;
    left: auto !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

.chart-info-icon[data-tooltip]::before,
.chart-info-icon[data-tooltip-pos]::before {
    top: 6px !important;
    bottom: auto !important;
    right: calc(100% + 4px) !important;
    left: auto !important;
    border-width: 5px 0 5px 6px !important;
    border-color: transparent transparent transparent #ffffff !important;
    transform: none !important;
}

.chart-info-icon[data-tooltip]:hover::after,
.chart-info-icon[data-tooltip]:hover::before,
.chart-info-icon[data-tooltip-pos]:hover::after,
.chart-info-icon[data-tooltip-pos]:hover::before {
    transform: none !important;
}

.chart-summary-title {
    font-size: 10px;
    color: #474c52;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 100;
    margin-bottom: 4px;
}

.chart-summary-value {
    font-size: 28px;
    font-weight: 100;
    color: #0f172a;
}

.chart-main-area {
    position: relative;
    height: 300px;
    display: flex;
    margin-left: 10px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 15px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    min-width: 60px;
}

.chart-grid-area {
    flex: 1;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
    border-left: 2px solid #e2e8f0;
}

.chart-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #e2e8f0;
    z-index: 1;
}

.chart-bars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    z-index: 2;
    padding: 0 10px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10px;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
}

.chart-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
    position: relative;
    min-height: 2px;
}

.chart-bar-group:hover .chart-bar-fill {
    filter: brightness(1.1);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.chart-x-label {
    position: absolute;
    top: calc(100% + 10px);
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    width: 50%;
}

.chart-tooltip-data {
    position: absolute;
    bottom: calc(100% + 8px);
    background: #1e293b;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-tooltip-data::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.chart-bar-group:hover .chart-tooltip-data {
    opacity: 1;
    transform: translateY(0);
}

.chart-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #94a3b8;
    font-size: 14px;
}

.chart-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-tab-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.chart-tab-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.chart-legend-dot.paid {
    background: #22c55e;
}

.chart-legend-dot.pending {
    background: #ef4444;
}

.chart-legend-dot.time {
    background: #3b82f6;
}

.chart-bar-bi-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    flex: 1;
    max-width: 22px;
    position: relative;
    cursor: pointer;
}

.chart-bar-bi-wrapper:hover .chart-bar-fill-up,
.chart-bar-bi-wrapper:hover .chart-bar-fill-down {
    filter: brightness(1.1);
}

.chart-bar-half {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.chart-bar-half.top {
    height: 50%;
    align-items: flex-end;
    border-bottom: 1px solid #cbd5e1;
}

.chart-bar-half.bottom {
    height: 50%;
    align-items: flex-start;
}

.chart-bar-fill-up {
    width: 50%;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border-radius: 3px 3px 0 0;
    transition: height 0.4s ease;
    min-height: 0px;
}

.chart-bar-fill-down {
    width: 50%;
    background: linear-gradient(180deg, #ef4444 0%, #f87171 100%);
    border-radius: 0 0 3px 3px;
    transition: height 0.4s ease;
    min-height: 0px;
}