.reports-page-header .reports-title-icon {
    font-size: 1.06rem;
    color: var(--accent-color);
    transform: translateY(1px);
}

.reports-page-header h1 {
    margin: 0;
    font-size: clamp(1.18rem, 1.45vw, 1.45rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.reports-page-header h1 span {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reports-page-header p {
    margin: 0.28rem 0 0;
    font-size: 0.83rem;
    line-height: 1.45;
}

.reports-toolbar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: var(--dashboard-card-gap);
    box-shadow: var(--shadow);
}

.reports-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: end;
}

.reports-toolbar-label {
    display: block;
    font-size: 0.73rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.reports-toolbar-note {
    font-size: 0.76rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    line-height: 1.45;
}

.reports-page-header--with-range {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    direction: ltr;
    min-height: var(--dashboard-hero-min-height, 104px);
    z-index: 40;
}

.reports-page-header-copy {
    text-align: right;
    margin-left: auto;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: min(100%, 420px);
}

.reports-page-header-range {
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.reports-range-card {
    position: relative;
    width: 390px;
    padding: 0.14rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 74, 203, 0.1);
    background:
        radial-gradient(circle at top left, rgba(10, 74, 203, 0.06), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.045);
}

.reports-range-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.reports-range-dropdown {
    position: relative;
    width: 100%;
}

.reports-range-trigger {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(10, 74, 203, 0.22);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.68rem 0.9rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.reports-range-trigger:hover,
.reports-range-trigger[aria-expanded="true"] {
    border-color: rgba(10, 74, 203, 0.42);
    box-shadow: 0 8px 18px rgba(10, 74, 203, 0.1);
}

.reports-range-trigger-text {
    flex: 1;
    text-align: start;
    direction: rtl;
    font-variant-numeric: tabular-nums;
    font-size: 0.845rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reports-range-trigger-icon,
.reports-range-trigger-caret {
    color: var(--text-secondary);
    font-size: 1rem;
}

.reports-range-trigger[aria-expanded="true"] .reports-range-trigger-caret {
    transform: rotate(180deg);
}

.reports-range-trigger-caret {
    transition: transform 0.2s ease;
}

.reports-range-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    width: min(520px, calc(100vw - 2rem));
    min-width: min(390px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
    z-index: 3500;
}

.reports-page-header--with-range,
.reports-page-header-range,
.reports-range-dropdown,
.reports-date-field-shell {
    overflow: visible !important;
}

.reports-range-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(164px, 0.58fr);
    gap: 0.85rem;
    width: 100%;
    align-items: stretch;
    direction: rtl;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    overflow: visible;
}

.reports-range-manual,
.reports-range-quick {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: 100%;
}

.reports-range-quick {
    border-inline-start: 1px solid rgba(148, 163, 184, 0.22);
    padding-inline-start: 0.85rem;
    order: 2;
}

.reports-range-manual {
    padding-inline-end: 0.2rem;
    order: 1;
}

.reports-manual-mode {
    display: flex;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.72rem;
}

.reports-mode-chip,
.reports-quick-chip {
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.5rem 0.78rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-mode-chip.is-active,
.reports-quick-chip.is-active {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    border-color: rgba(10, 74, 203, 0.48);
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(10, 74, 203, 0.16);
}

.reports-quick-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.48rem;
    margin-top: 0.2rem;
}

.reports-quick-chip {
    width: 100%;
    text-align: start;
}

.reports-page-header-range .reports-toolbar-grid {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
    direction: rtl;
}

.reports-toolbar-field {
    min-width: 150px;
    flex: 0 0 auto;
}

.reports-date-field-shell {
    position: relative;
}

.reports-date-display {
    cursor: pointer;
    padding-inline-start: 2.6rem;
}

.reports-date-display-toggle {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.reports-custom-date-picker {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 260px;
    font-size: 16px;
    z-index: 3600;
}

.reports-custom-date-picker[hidden] {
    display: none;
}

.reports-custom-date-picker .custom-date-picker-actions,
.reports-custom-date-picker .custom-date-picker-calendar {
    direction: rtl;
}

.reports-custom-date-picker .custom-date-picker-head {
    direction: ltr;
}

.reports-custom-date-picker .custom-date-picker-month,
.reports-custom-date-picker .custom-date-picker-nav {
    color: var(--text-primary);
}

.reports-custom-date-picker .custom-date-picker-month,
.reports-custom-date-picker .custom-date-picker-day-number,
.reports-custom-date-picker .custom-date-picker-btn {
    font-size: 1rem;
}

.reports-custom-date-picker .custom-date-picker-day {
    border: none;
    padding: 0;
    color: var(--text-primary);
}

.reports-custom-date-picker .custom-date-picker-day.is-selected {
    color: #fff;
}

.reports-custom-date-picker .custom-date-picker-btn {
    color: var(--text-primary);
}

.reports-custom-date-picker .custom-date-picker-btn--today {
    color: #fff;
}

.reports-toolbar-field--scope {
    min-width: 126px;
}

.reports-page-header-range .form-select,
.reports-page-header-range .form-control {
    min-height: 46px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.reports-page-header-range .form-select {
    padding-inline-start: 0.9rem;
    padding-inline-end: 2rem;
}

.reports-page-header-range .form-control {
    text-align: start;
    direction: rtl;
    font-variant-numeric: tabular-nums;
}

.reports-page-header-range .pais-report-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}

.reports-page-header--with-range {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.report-date-selector.is-hidden {
    display: none !important;
}

#reportsContainer {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

#reportsContainer > .report-card:first-child,
#reportsContainer > .report-loading:first-child,
#reportsContainer > .report-no-data:first-child {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.reports-content-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.3rem;
    margin-bottom: 1rem;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.reports-content-tabs__main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.reports-content-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.reports-content-tab i {
    font-size: 0.82rem;
}

.reports-content-tab.is-active {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(10, 74, 203, 0.16);
}

.reports-content-action {
    border: none;
    background: linear-gradient(180deg, #0f766e, #0d9488);
    color: #fff;
    border-radius: 999px;
    padding: 0.68rem 1.05rem;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 18px rgba(13, 148, 136, 0.2);
    white-space: nowrap;
}

.reports-content-action:hover {
    transform: translateY(-1px);
}

.reports-content-action:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.reports-tab-panel {
    display: none;
}

.reports-tab-panel.is-active {
    display: block;
}

.report-card {
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lotto-chart-layout {
    --lotto-panel-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 0.9rem;
    align-items: stretch;
    height: var(--lotto-panel-height);
}

.lotto-chart-main {
    margin: 0;
    height: 100%;
}

.lotto-chart-main.chart-container {
    height: var(--lotto-panel-height);
    margin: 0;
    box-sizing: border-box;
}

.lotto-chart-layout > * {
    align-self: stretch;
}

.lotto-legend-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98));
    padding: 0.72rem 0.82rem;
    height: var(--lotto-panel-height);
    min-height: var(--lotto-panel-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lotto-legend-header,
.lotto-legend-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.lotto-legend-header {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: color-mix(in srgb, var(--text-secondary) 88%, white 12%);
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.28rem;
}

.lotto-legend-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: auto;
}

.lotto-legend-row {
    padding: 0.48rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.lotto-legend-row:last-child {
    border-bottom: none;
}

.lotto-legend-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--text-primary) 82%, white 18%);
}

.lotto-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 12px;
}

.lotto-legend-value {
    font-weight: 500;
    color: color-mix(in srgb, var(--text-primary) 84%, white 16%);
    font-size: 0.78rem;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.month-selector-card {
    background: linear-gradient(135deg, #0a4acb 0%, #0a4acb 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.month-selector-card .card-title {
    color: white;
    font-weight: 600;
}

.month-selector-card .form-select {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
}

.month-selector-card .form-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.month-selector-card .form-select option {
    background: #0a4acb;
    color: white;
}

.month-selector-card .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.month-selector-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.report-card:hover {
    border-color: rgba(10, 74, 203, 0.35);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.reports-range-trigger:focus-visible,
.reports-mode-chip:focus-visible,
.reports-quick-chip:focus-visible,
.report-view-toggle:focus-visible {
    outline: 3px solid rgba(10, 74, 203, 0.28);
    outline-offset: 1px;
}

.reports-toolbar,
.report-card,
.reports-range-card,
.reports-range-shell,
.chart-container,
.commission-breakdown-summary,
.commission-breakdown-visual,
.commission-breakdown-table-wrap,
.fixed-commission-card__main {
    backdrop-filter: saturate(1.03);
}

.report-header {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 11px 14px;
    text-align: start;
    border-bottom: 1px solid var(--border-color);
}

.report-header h3 {
    margin: 0;
    font-family: var(--font-family-display);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.report-header p {
    margin: 0.22rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.report-header--toto {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.05));
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.report-header--lotto {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.14), rgba(10, 74, 203, 0.05));
    border-bottom-color: rgba(10, 74, 203, 0.3);
}

.report-header--scratch {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(10, 74, 203, 0.04));
    border-bottom-color: rgba(14, 165, 233, 0.22);
}

.report-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.report-view-toggle {
    margin-inline-start: auto;
    border-color: var(--border-color);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 0.75rem;
}

.main-content.reports-active.reports-simple-view [data-reports-advanced-only] {
    display: none !important;
}

.main-content.reports-active.reports-simple-view .report-body .analysis-section,
.main-content.reports-active.reports-simple-view .report-card--scratch-compact .scratch-summary-table-wrap,
.main-content.reports-active.reports-simple-view .report-card--scratch-compact .scratch-raw-details,
.main-content.reports-active.reports-simple-view .report-card--scratch-compact .scratch-range-insights,
.main-content.reports-active.reports-simple-view .report-card--scratch-compact .scratch-distribution-section,
.main-content.reports-active.reports-simple-view .report-card--scratch-compact .scratch-daily-breakdown,
.main-content.reports-active.reports-simple-view .scratch-seller-breakdown {
    display: none !important;
}

.report-body {
    padding: 12px 14px;
}

.chart-container {
    position: relative;
    height: 320px;
    margin: 6px 0 2px;
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, color-mix(in srgb, var(--accent-primary) 2%, var(--bg-primary)) 100%);
    padding: 14px 16px 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 6px 0 10px;
}

.stats-grid--commission-split .stat-value {
    color: #0f766e;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(220px, 0.85fr);
    gap: 10px;
    margin: 4px 0 8px;
    align-items: start;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 14px 16px;
    border-radius: 12px;
    text-align: start;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-family: var(--font-family-display);
    font-size: 1.42rem;
    line-height: 1.05;
    font-weight: 800;
    color: #0a4acb;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-family-display);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-item--secondary {
    display: grid;
    align-content: center;
    justify-items: stretch;
    gap: 0.22rem;
    min-height: 100%;
    padding-block: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
    text-align: start;
}

.stat-item--secondary .stat-value {
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    margin-bottom: 0;
    width: 100%;
    text-align: start;
}

.stat-item--secondary .stat-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    width: 100%;
    text-align: start;
}

.stat-item--secondary .stat-caption {
    max-width: 24ch;
    width: 100%;
    text-align: start;
}

.scratch-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scratch-range-insights {
    margin-top: 16px;
}

.scratch-range-insights__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.scratch-range-pill {
    flex: 1 1 180px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 11px 13px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.scratch-range-pill__label {
    display: block;
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.scratch-range-pill__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.scratch-range-insights__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.scratch-range-panel {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.scratch-range-panel--attention {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,248,235,0.95) 100%);
}

.scratch-range-panel__eyebrow {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.scratch-range-panel__title {
    margin: 8px 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.scratch-range-panel__text {
    margin: 8px 0 0;
    font-size: 0.79rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.scratch-range-list,
.scratch-range-alerts {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scratch-range-list__item,
.scratch-range-alert {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 11px 12px;
    background: var(--bg-primary);
}

.scratch-range-list__head,
.scratch-range-list__meta,
.scratch-range-alert__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scratch-range-list__head,
.scratch-range-alert__top {
    color: var(--text-primary);
    font-size: 0.82rem;
}

.scratch-range-list__meta,
.scratch-range-alert__meta {
    margin-top: 5px;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.scratch-range-list__bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-top: 9px;
    overflow: hidden;
}

.scratch-range-list__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.scratch-range-empty {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

.scratch-raw-details {
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.scratch-raw-details__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: var(--text-primary);
}

.scratch-raw-details__summary::-webkit-details-marker {
    display: none;
}

.scratch-raw-details__summary small {
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
}

.scratch-daily-breakdown {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.scratch-daily-breakdown__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.scratch-daily-breakdown__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.scratch-daily-breakdown__title {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
}

.scratch-daily-breakdown__text {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.55;
    max-width: 68ch;
}

.scratch-daily-highlight {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(10, 74, 203, 0.16);
    background: rgba(255, 255, 255, 0.92);
    text-align: start;
}

.scratch-daily-highlight__label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 800;
}

.scratch-daily-highlight__value {
    display: block;
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
}

.scratch-daily-highlight__meta {
    display: block;
    margin-top: 4px;
    color: #0a4acb;
    font-size: 0.82rem;
    font-weight: 700;
}

.scratch-daily-breakdown__table-wrap,
.scratch-summary-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: auto;
    background: var(--bg-primary);
}

.scratch-daily-breakdown__table-wrap {
    margin-top: 10px;
}

.scratch-daily-table,
.scratch-summary-table {
    margin-bottom: 0;
    min-width: 860px;
    --bs-table-bg: transparent;
}

.scratch-daily-table th,
.scratch-daily-table td,
.scratch-summary-table th,
.scratch-summary-table td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
    border-color: color-mix(in srgb, var(--border-color) 75%, transparent);
    font-size: 0.84rem;
}

.scratch-daily-table thead th,
.scratch-summary-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--bg-tertiary) 82%, transparent);
    color: var(--text-secondary);
    font-family: 'Manrope', 'Heebo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.scratch-daily-table tbody tr:nth-child(even),
.scratch-summary-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--bg-tertiary) 40%, transparent);
}

.scratch-daily-cell--date {
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.scratch-summary-table__row:hover,
.scratch-daily-table tbody tr:hover {
    background: color-mix(in srgb, var(--accent-primary) 4%, transparent);
}

.scratch-summary-table__name-cell {
    min-width: 190px;
}

.scratch-card-name {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.35;
}

.scratch-card-mode {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.4;
}

.scratch-distribution-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.scratch-distribution-card {
    background: var(--bg-primary);
    border: 1px solid #dbe3ed;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}

.scratch-distribution-card--ranked {
    margin-top: 16px;
}

.scratch-category-focus {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scratch-category-focus__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 0;
    color: var(--text-secondary);
}

.scratch-category-focus__summary strong {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.scratch-category-focus__summary span {
    font-size: 0.8rem;
}

.scratch-category-focus__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scratch-category-focus__row {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 11px 12px;
    background: var(--bg-primary);
}

.scratch-category-focus__head,
.scratch-category-focus__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scratch-category-focus__head {
    font-size: 0.83rem;
    color: var(--text-primary);
}

.scratch-category-focus__meta {
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.scratch-category-focus__bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-top: 9px;
    overflow: hidden;
}

.scratch-category-focus__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a4acb 0%, #38bdf8 100%);
}

.scratch-category-focus__remainder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 0.79rem;
}

.scratch-distribution-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.scratch-distribution-card__title i {
    color: #94a3b8;
    font-size: 0.84rem;
}

.scratch-distribution-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
}

.scratch-distribution-chart__wrapper {
    width: min(100%, 180px);
    position: relative;
}

.scratch-distribution-chart__svg {
    display: block;
    width: 100%;
    height: auto;
}

.scratch-distribution-chart__track {
    opacity: 0.9;
}

.scratch-distribution-chart__segment {
    filter: drop-shadow(0 4px 10px rgba(10, 74, 203, 0.12));
}

.scratch-distribution-center-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    pointer-events: none;
}

.scratch-distribution-center-label strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.scratch-distribution-center-label span {
    margin-top: 0.1rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

.scratch-distribution-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.scratch-distribution-legend-item {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    font-size: 0.79rem;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.42rem 0.56rem;
}

.scratch-distribution-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.scratch-distribution-legend-label {
    flex: 1;
    color: #64748b;
    font-weight: 500;
}

.scratch-distribution-legend-value {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.scratch-distribution-legend-pct {
    min-width: 42px;
    text-align: center;
    color: #0a4acb;
    font-weight: 800;
    background: rgba(219, 234, 254, 0.7);
    border: 1px solid rgba(147, 197, 253, 0.9);
    border-radius: 999px;
    padding: 0.18rem 0.42rem;
    line-height: 1.1;
}

.scratch-seller-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.employee-reports-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employee-reports-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.employee-reports-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

.employee-reports-overview {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.employee-comparison-card {
    justify-content: center;
}

.employee-comparison-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.employee-comparison-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.employee-comparison-item__head span {
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.employee-comparison-item__track {
    height: 12px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    overflow: hidden;
}

.employee-comparison-item__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a4acb, #60a5fa);
    box-shadow: 0 4px 12px rgba(10, 74, 203, 0.22);
}

.employee-comparison-empty {
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-align: center;
    padding: 1rem 0;
}

.scratch-seller-breakdown__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.scratch-seller-breakdown__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
}

.scratch-seller-breakdown__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.9rem;
}

.scratch-seller-card {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid #dbe3ed;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}

.scratch-seller-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.scratch-seller-card__name {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
}

.scratch-seller-card__meta {
    margin-top: 0.25rem;
    font-size: 0.79rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.scratch-seller-card__rows {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scratch-seller-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.58rem 0.65rem;
}

.scratch-seller-row__main,
.scratch-seller-row__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.scratch-seller-row__main {
    color: var(--text-primary);
    font-size: 0.82rem;
}

.scratch-seller-row__sub {
    margin-top: 0.26rem;
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.stat-caption {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.commission-hero {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(10, 74, 203, 0.08) 100%);
}

.commission-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 42%);
    pointer-events: none;
}

.commission-hero__eyebrow {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.commission-hero__label {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}

.commission-hero__value {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: clamp(1.38rem, 2.5vw, 1.9rem);
    line-height: 1;
    font-weight: 900;
    color: #16a34a;
}

.commission-hero__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

.commission-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.commission-badge--positive {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.commission-badge--neutral {
    background: rgba(10, 74, 203, 0.12);
    color: #1d4ed8;
}

.commission-badge--attention {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.report-header--commission-breakdown {
    text-align: start;
}

.commission-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

.commission-breakdown-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.commission-breakdown-summary {
    padding: 0;
}

.commission-breakdown-summary__eyebrow {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.commission-breakdown-summary__title {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.45;
}

.commission-breakdown-summary__text {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.58;
    font-size: 0.8rem;
}

.commission-breakdown-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.commission-breakdown-kpi {
    min-height: 74px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.035);
}

.commission-breakdown-kpi.is-primary {
    border-color: rgba(10, 74, 203, 0.22);
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.08), rgba(255, 255, 255, 0.86));
}

.commission-breakdown-kpi__label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.commission-breakdown-kpi__value {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.commission-breakdown-kpi__meta {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commission-breakdown-visual {
    padding: 0;
}

.commission-tier-rail-card {
    padding: 12px 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.035), rgba(255, 255, 255, 0.78));
}

.commission-tier-rail-card__topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.35;
}

.commission-tier-rail-card__topline strong {
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.commission-tier-rail-card__title {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 800;
}

.commission-tier-rail-card__text {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.6;
}

.commission-tier-rail {
    position: relative;
    margin-top: 10px;
    padding-top: 34px;
    padding-bottom: 2px;
}

.commission-tier-rail__track {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    min-height: 68px;
}

.commission-tier-rail__segment {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.06));
    border-inline-start: 1px solid var(--border-color);
}

.commission-tier-rail__segment:first-child {
    border-inline-start: none;
}

.commission-tier-rail__segment.is-active {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.16), rgba(10, 74, 203, 0.08));
}

.commission-tier-rail__segment-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 100%;
    padding: 8px 7px;
    text-align: center;
}

.commission-tier-rail__segment-rate {
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
}

.commission-tier-rail__segment-range {
    color: var(--text-secondary);
    font-size: 0.68rem;
    line-height: 1.28;
}

.commission-tier-rail__marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.commission-tier-rail__marker::after {
    content: '';
    width: 2px;
    height: 22px;
    background: rgba(220, 38, 38, 0.72);
}

.commission-tier-rail__marker-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #dc2626;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.commission-tier-rail__marker-label {
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.commission-tier-rail-card__footnote {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

.commission-breakdown-table-wrap {
    margin-top: 14px;
    overflow: hidden;
}

.commission-tier-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.commission-tier-table th,
.commission-tier-table td {
    padding: 0.65rem 0.75rem;
    text-align: start;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 75%, transparent);
    font-size: 0.84rem;
    color: var(--text-primary);
}

.commission-tier-table th {
    font-family: 'Manrope', var(--font-family-sans);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: color-mix(in srgb, var(--bg-tertiary) 82%, transparent);
}

.commission-tier-table tbody tr:last-child td {
    border-bottom: none;
}

.commission-tier-row.is-active {
    background: rgba(10, 74, 203, 0.08);
}

.commission-tier-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    font-size: 0.74rem;
    font-weight: 800;
}

.report-body .analysis-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem;
    margin-top: 0.9rem !important;
}

.report-body .analysis-section h5 {
    margin: 0 0 0.7rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 800;
}

.report-body .analysis-list {
    display: grid;
    gap: 0.55rem;
}

.report-body .analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0;
    padding: 0.8rem 0.9rem;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    border-inline-start: 3px solid #0a4acb;
    line-height: 1.55;
}

.report-body .analysis-item i {
    margin-inline-end: 0;
    margin-top: 0.12rem;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.report-body .analysis-item strong {
    color: var(--text-primary);
    font-weight: 800;
}

.commission-tier-pill--muted {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
}

.fixed-commission-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr);
    gap: 14px;
    align-items: stretch;
}

.fixed-commission-card__main {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.05), rgba(255, 255, 255, 0.9));
}

.fixed-commission-card__eyebrow {
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
}

.fixed-commission-card__rate {
    margin-top: 8px;
    color: var(--text-primary);
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1;
    font-weight: 900;
}

.fixed-commission-card__text {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.65;
}

.fixed-commission-card__stats {
    display: grid;
    gap: 10px;
}

.report-date-selector {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.report-loading {
    text-align: center;
    padding: 34px 20px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.report-no-data {
    text-align: center;
    padding: 28px 20px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    max-width: 980px;
    margin: 0 auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.report-no-data i {
    color: #60a5fa;
    margin-bottom: 0.65rem;
    opacity: 0.95;
}

.report-no-data h4 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.report-no-data p {
    margin: 0.12rem 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.report-no-data .report-no-data-note {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.report-no-data--inline {
    min-height: 0;
    margin-bottom: 14px;
    padding: 20px 18px;
}

[data-theme="dark"] .report-card,
[data-theme="dark"] .report-date-selector,
[data-theme="dark"] .reports-toolbar {
    background: var(--bg-primary);
    border-color: var(--border-color);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .reports-content-tabs {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] .reports-content-tab {
    color: #cbd5e1;
}

[data-theme="dark"] .reports-content-tab.is-active {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.32), rgba(29, 78, 216, 0.22));
    color: #bfdbfe;
}

[data-theme="dark"] .report-header {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .report-header--toto {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.12), rgba(10, 74, 203, 0.04));
}

[data-theme="dark"] .report-header--lotto {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.14), rgba(10, 74, 203, 0.05));
}

[data-theme="dark"] .report-header--scratch {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(10, 74, 203, 0.06));
}

[data-theme="dark"] .report-view-toggle {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .stat-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.8));
    color: var(--text-primary);
}

[data-theme="dark"] .commission-hero {
    border-color: rgba(74, 222, 128, 0.18);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.18) 0%, rgba(30, 64, 175, 0.18) 100%);
}

[data-theme="dark"] .commission-hero::after {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 42%);
}

[data-theme="dark"] .commission-hero__value {
    color: #4ade80;
}

[data-theme="dark"] .commission-badge--positive {
    background: rgba(74, 222, 128, 0.16);
    color: #86efac;
}

[data-theme="dark"] .commission-badge--neutral {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

[data-theme="dark"] .commission-badge--attention {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
}

[data-theme="dark"] .commission-breakdown-table-wrap {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .commission-breakdown-kpi {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .commission-breakdown-kpi.is-primary {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.2), rgba(15, 23, 42, 0.46));
    border-color: rgba(96, 165, 250, 0.24);
}

[data-theme="dark"] .commission-tier-rail-card {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.08), rgba(15, 23, 42, 0.18));
    border-color: var(--border-color);
}

[data-theme="dark"] .commission-tier-rail__track {
    background: rgba(15, 23, 42, 0.42);
}

[data-theme="dark"] .commission-tier-rail__segment {
    background: linear-gradient(180deg, rgba(71, 85, 105, 0.32), rgba(30, 41, 59, 0.2));
}

[data-theme="dark"] .commission-tier-rail__segment.is-active {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.32), rgba(10, 74, 203, 0.16));
}

[data-theme="dark"] .commission-tier-rail__marker-label {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

[data-theme="dark"] .commission-tier-table th {
    background: color-mix(in srgb, var(--bg-tertiary) 82%, transparent);
}

[data-theme="dark"] .commission-tier-table td {
    color: var(--text-primary);
    border-bottom-color: color-mix(in srgb, var(--border-color) 75%, transparent);
}

[data-theme="dark"] .commission-tier-row.is-active {
    background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
}

[data-theme="dark"] .commission-tier-pill {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

[data-theme="dark"] .commission-tier-pill--muted {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-secondary);
}

[data-theme="dark"] .fixed-commission-card__main {
    background: linear-gradient(180deg, rgba(10, 74, 203, 0.1), rgba(15, 23, 42, 0.3));
    border-color: var(--border-color);
}

[data-theme="dark"] .scratch-daily-breakdown {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.94));
    border-color: var(--border-color);
}

[data-theme="dark"] .scratch-distribution-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] .scratch-range-pill,
[data-theme="dark"] .scratch-range-panel,
[data-theme="dark"] .scratch-raw-details,
[data-theme="dark"] .scratch-range-list__item,
[data-theme="dark"] .scratch-range-alert,
[data-theme="dark"] .scratch-category-focus__row,
[data-theme="dark"] .scratch-category-focus__remainder {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .scratch-range-list__bar,
[data-theme="dark"] .scratch-category-focus__bar {
    background: rgba(51, 65, 85, 0.95);
}

[data-theme="dark"] .scratch-distribution-card__title {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .scratch-distribution-legend-item {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .scratch-distribution-legend-label {
    color: #cbd5e1;
}

[data-theme="dark"] .scratch-distribution-legend-pct {
    background: rgba(30, 64, 175, 0.22);
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

[data-theme="dark"] .scratch-seller-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.96));
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] .employee-comparison-item__track {
    background: rgba(51, 65, 85, 0.95);
}

[data-theme="dark"] .scratch-seller-row {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .scratch-daily-highlight,
[data-theme="dark"] .scratch-daily-breakdown__table-wrap,
[data-theme="dark"] .scratch-summary-table-wrap {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .scratch-daily-table thead th,
[data-theme="dark"] .scratch-summary-table thead th {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
}

[data-theme="dark"] .scratch-daily-table tbody tr:nth-child(even),
[data-theme="dark"] .scratch-summary-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.38);
}

[data-theme="dark"] .scratch-summary-table__row:hover,
[data-theme="dark"] .scratch-daily-table tbody tr:hover {
    background: rgba(10, 74, 203, 0.16);
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .chart-container {
    border-color: color-mix(in srgb, var(--border-color) 60%, transparent);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .reports-page-header-range .form-select,
[data-theme="dark"] .reports-page-header-range .form-control {
    background: rgba(24, 30, 39, 0.96);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .reports-range-manual,
[data-theme="dark"] .reports-range-quick {
    background: transparent;
}

[data-theme="dark"] .reports-range-trigger {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(15, 23, 42, 0.98));
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 32px rgba(2, 6, 23, 0.36);
}

[data-theme="dark"] .reports-range-shell {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(15, 23, 42, 0.99));
    border-color: rgba(96, 165, 250, 0.12);
}

[data-theme="dark"] .reports-range-card {
    border-color: rgba(96, 165, 250, 0.12);
    background:
        radial-gradient(circle at top left, rgba(10, 74, 203, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.3);
}

[data-theme="dark"] .reports-range-card::after {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .reports-range-quick {
    border-inline-start-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .reports-toolbar-label {
    color: rgba(148, 163, 184, 0.82);
    font-weight: 600;
}

[data-theme="dark"] .reports-range-trigger-icon,
[data-theme="dark"] .reports-range-trigger-caret {
    color: rgba(148, 163, 184, 0.82);
}

[data-theme="dark"] .reports-range-trigger-text {
    color: rgba(148, 163, 184, 0.82);
    font-weight: 400;
}

[data-theme="dark"] .reports-mode-chip,
[data-theme="dark"] .reports-quick-chip {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    color: rgba(226, 232, 240, 0.84);
    font-weight: 500;
    box-shadow: none;
}

[data-theme="dark"] .reports-page-header-range .form-control {
    color: rgba(226, 232, 240, 0.82);
    font-weight: 400;
}

[data-theme="dark"] .reports-page-header-range input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.8);
    opacity: 0.95;
}

[data-theme="dark"] .reports-page-header-range .form-control::placeholder {
    color: rgba(148, 163, 184, 0.52);
}

[data-theme="dark"] .lotto-legend-panel {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.98));
    border-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .lotto-legend-header {
    color: rgba(148, 163, 184, 0.84);
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .lotto-legend-row {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .lotto-legend-name {
    color: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .lotto-legend-value {
    color: rgba(226, 232, 240, 0.84);
}

[data-theme="dark"] .reports-mode-chip.is-active,
[data-theme="dark"] .reports-quick-chip.is-active {
    background: rgba(51, 65, 85, 0.88);
    color: rgba(241, 245, 249, 0.96);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .report-header--lotto h3,
[data-theme="dark"] .report-header--lotto p,
[data-theme="dark"] .report-header--lotto .report-header-top,
[data-theme="dark"] .report-header--lotto {
    color: rgba(226, 232, 240, 0.94);
}

[data-theme="dark"] .reports-page-header--with-range {
    border-bottom-color: transparent;
}

[data-theme="dark"] .report-no-data,
[data-theme="dark"] .report-loading {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

@media (max-width: 768px) {
    .reports-page-header h1 {
        font-size: 1.06rem;
    }

    .reports-page-header p {
        font-size: 0.76rem;
    }

    .reports-toolbar {
        padding: 0.62rem;
    }

    .report-card {
        border-radius: 12px;
    }

    .reports-content-tabs {
        display: flex;
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .reports-content-tabs__main {
        display: flex;
        width: 100%;
    }

    .reports-content-tab {
        flex: 1 1 0;
        justify-content: center;
        padding-inline: 0.8rem;
    }

    .reports-content-action {
        width: 100%;
        justify-content: center;
    }

    .reports-page-header--with-range {
        flex-direction: column !important;
        align-items: stretch;
        direction: rtl;
    }

    .reports-page-header-copy {
        width: 100%;
        max-width: none;
        margin-inline-start: 0;
        margin-inline-end: 0;
        align-items: flex-end;
    }

    .reports-page-header-range {
        width: 100%;
        flex-basis: auto;
    }

    .reports-page-header-range .pais-report-generate-btn {
        width: 100%;
    }

    .reports-range-card {
        width: 100%;
        padding: 0.18rem;
        border-radius: 16px;
    }

    .reports-range-panel {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 0.65rem;
    }

    .reports-range-shell {
        grid-template-columns: 1fr;
    }

    .reports-range-quick {
        border-inline-start: none;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        padding-inline-start: 0;
        padding-top: 0.9rem;
    }

    .reports-range-manual {
        padding-inline-end: 0;
        padding-bottom: 0.1rem;
    }

    .lotto-chart-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .reports-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .reports-page-header-range .reports-toolbar-grid {
        display: grid;
        grid-template-columns: 1fr;
        direction: rtl;
    }

    .reports-toolbar-field,
    .reports-toolbar-field--scope {
        min-width: 0;
        width: 100%;
    }

    .reports-range-trigger {
        min-height: 52px;
        padding: 0.75rem 0.9rem;
    }

    .reports-range-trigger-text {
        font-size: 0.92rem;
    }

    .report-header {
        padding: 10px 11px;
    }

    .report-header h3 {
        font-size: 0.9rem;
    }

    .report-header p {
        font-size: 0.72rem;
    }

    .report-body {
        padding: 10px 11px 12px;
    }

    .chart-container {
        height: 255px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .finance-summary-grid {
        grid-template-columns: 1fr;
    }

    .scratch-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .scratch-range-insights__grid {
        grid-template-columns: 1fr;
    }

    .scratch-distribution-section {
        grid-template-columns: 1fr;
    }

    .scratch-seller-breakdown__grid {
        grid-template-columns: 1fr;
    }

    .employee-reports-toolbar {
        align-items: stretch;
    }

    .employee-reports-filter {
        min-width: 0;
        width: 100%;
    }

    .commission-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .commission-breakdown-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fixed-commission-card {
        grid-template-columns: 1fr;
    }

    .scratch-daily-breakdown__header {
        flex-direction: column;
    }

    .scratch-daily-highlight {
        width: 100%;
        min-width: 0;
    }

    .commission-tier-rail {
        padding-top: 42px;
    }

    .commission-tier-rail__track {
        min-height: 88px;
    }

    .commission-tier-rail__segment-body {
        padding: 10px 6px;
    }

    .commission-tier-rail__segment-rate {
        font-size: 1rem;
    }

    .commission-tier-rail__segment-range {
        font-size: 0.74rem;
    }

    .commission-tier-rail__marker-label {
        max-width: 180px;
        white-space: normal;
        text-align: center;
    }

    .scratch-daily-table,
    .scratch-summary-table {
        min-width: 760px;
    }
}
