.overview-page {
    width: 100%;
    max-width: 100%;
    padding: 32px 40px;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.overview-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 26px;
}

.overview-title {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

.overview-subtitle {
    font-size: 14px;
    color: #64748b;
}

.overview-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.overview-kpi-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.overview-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.overview-kpi-title {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
}

.overview-kpi-value {
    margin-top: 6px;
    font-size: 30px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.1;
}

.overview-lower-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.overview-table-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.overview-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.overview-empty-card {
    background-color: transparent;
    border-radius: 14px;
}

.overview-table-card .ag-theme-alpine {
    --ag-background-color: #ffffff;
    --ag-header-background-color: #f1f5f9;
    --ag-odd-row-background-color: #f8fafc;
    --ag-border-color: #e2e8f0;
    --ag-row-border-color: #e2e8f0;
    --ag-header-foreground-color: #0f172a;
    --ag-foreground-color: #0f172a;
    --ag-row-hover-color: #f1f5f9;
    --ag-selected-row-background-color: #dbeafe;
}

.overview-table-card .ag-header-cell-label {
    font-weight: 600;
    color: #334155;
}

.overview-table-card .ag-row {
    border-bottom: 1px solid #f1f5f9;
}

.overview-table-card .ag-row-hover {
    background-color: #f1f5f9 !important;
}

.overview-table-card .ag-root-wrapper {
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .overview-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-lower-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .overview-kpi-row {
        grid-template-columns: 1fr;
    }
}

.overview-ag-compact {
    --ag-font-size: 12px;
    --ag-grid-size: 4px;
    --ag-row-height: 32px;
    --ag-header-height: 34px;
}

.overview-ag-compact .ag-cell {
    padding: 4px 6px !important;
}

.overview-ag-compact .ag-header-cell {
    padding: 4px 6px !important;
}

.overview-ag-compact .ag-header-cell-label {
    font-size: 12px;
    font-weight: 600;
}

.overview-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
    text-transform: none;
}

.overview-month-filter {
    margin-bottom: 10px;
    max-width: 220px;
}

.overview-month-filter .Select-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 34px;
    font-size: 12px;
}

.overview-month-filter .Select-placeholder {
    font-size: 12px;
    color: #94a3b8;
}

.overview-table-card,
.overview-chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
}

.overview-chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 14px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.overview-month-filter {
    margin-bottom: 14px;
    max-width: 240px;
}

.overview-month-filter .Select-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-height: 36px;
    font-size: 13px;
    background-color: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.overview-month-filter .Select-control:hover {
    border-color: #cbd5f5;
}

.overview-month-filter.is-focused .Select-control {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.overview-month-filter .Select-value-label {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.overview-month-filter .Select-placeholder {
    font-size: 12px;
    color: #94a3b8;
}

.overview-month-filter .Select-arrow {
    border-color: #64748b transparent transparent;
}

.overview-table-card iframe {
    flex: 1;
}

.overview-chart-card .overview-date-filter {
    width: 100%;
    max-width: 340px;
    margin-bottom: 14px;
}

.overview-chart-card .DateRangePicker {
    width: 100%;
}

.overview-chart-card .DateRangePickerInput {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    width: 100%;
}

.overview-chart-card .DateRangePickerInput:hover {
    border-color: #94a3b8;
}

.overview-chart-card .DateRangePickerInput__focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.overview-chart-card .DateInput {
    flex: 1 1 0;
    display: flex;
    align-items: center;
}

.overview-chart-card .DateInput_input {
    width: 100%;
    font-size: 14px;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #94a3b8;
    padding: 0 6px;
    border: none;
    background: transparent;
    text-align: left;
    height: 100%;
}

.overview-chart-card .DateInput_input:not([placeholder-shown]) {
    color: #0f172a;
}

.overview-chart-card .DateInput_input::placeholder {
    color: #94a3b8;
}

.overview-chart-card .DateRangePickerInput__dash {
    margin: 0 6px;
    color: #94a3b8;
    font-size: 14px;
}

.overview-chart-card .DateRangePickerInput_arrow {
    display: none;
}

.DateRangePicker_picker {
    z-index: 2000;
}

.overview-date-range-box {
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    background: #ffffff;
    max-width: 520px;
}

.overview-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-date-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.overview-date-range-box .DateInput_input {
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 4px 6px;
}

.overview-date-range-box .DateInput {
    border: none;
}

.overview-date-range-box .SingleDatePickerInput {
    border: none;
}

.overview-table-card .ag-paging-panel {
    font-size: 10px;
}

.overview-table-card .ag-paging-button {
    margin: 0 2px !important;
}

.overview-table-card .ag-paging-row-summary-panel,
.overview-table-card .ag-paging-description {
    margin: 0 4px !important;
}