/* =============================================================
   Kinwi: Reports Dashboard Styling — 15-reports.css
   Professional, responsive styling for all Dokan vendor dashboard
   Reports sub-tabs (Products, Revenue, Orders, Variations,
   Categories, Coupons, Stock, Statement).
   Matches Products/Orders tab design: emerald scrollbar, sticky
   first column, badge-style headers.
   ============================================================= */

/* -----------------------------------------------------------------
   1. PAGE TITLE & HEADER LAYOUT
   ----------------------------------------------------------------- */

/* Kinwi: Reports page title — Gabriela upload 20px, consistent with Products tab */
.woocommerce-layout__main .woocommerce-layout__header {
    padding: 16px 0 8px 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    min-height: auto !important;
}

.woocommerce-layout__main .woocommerce-layout__header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 0 !important;
}

.woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title {
    font-family: "Gabriela upload", "Gabriela", serif !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
}

/* -----------------------------------------------------------------
   2. FILTER CONTROLS (Date Range, Show Dropdowns)
   ----------------------------------------------------------------- */

/* Kinwi: Filter section layout */
.woocommerce-layout__main .woocommerce-filters {
    margin-bottom: 16px !important;
}

.woocommerce-layout__main .woocommerce-filters__basic-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
}

/* Kinwi: Filter labels — Lora upload, consistent sizing */
.woocommerce-layout__main .woocommerce-filters-label {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Kinwi: Override WooCommerce core width:25% which pushes filters right */
.woocommerce-layout__main .woocommerce-filters-filter {
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 200px !important;
}

/* -----------------------------------------------------------------
   2b. VIEWPORT CONTAINMENT (small screens)
   WooCommerce Admin sets internal widths that can exceed the viewport
   on small screens. Constrain the entire dashboard layout chain.
   ----------------------------------------------------------------- */

@media (max-width: 640px) {
    .dokan-dashboard-content,
    #dokan-analytics-app,
    .woocommerce-layout,
    #woocommerce-layout__primary,
    .woocommerce-layout__primary,
    .woocommerce-layout__main,
    .customizable-dashboard,
    .woocommerce-dashboard-section,
    .woocommerce-dashboard__store-performance {
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* -----------------------------------------------------------------
   3. SUMMARY / PERFORMANCE CARDS
   ----------------------------------------------------------------- */

/* Kinwi: Summary cards list — CSS Grid auto-fill so cards fill width equally,
   and last-row cards stay the same size as all others */
.woocommerce-layout__main ul.woocommerce-summary {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: min-content !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Kinwi: Individual card container — grid handles sizing */
.woocommerce-layout__main .woocommerce-summary__item-container {
    border: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-layout__main .woocommerce-summary__item-container:last-child {
    border-right: none !important;
}

/* Kinwi: Card link — green interactive button style so users know they can click */
.woocommerce-layout__main a.woocommerce-summary__item,
.woocommerce-layout__main button.woocommerce-summary__item {
    display: block !important;
    padding: 16px 20px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background-color: #00967d !important;
    border: none !important;
    border-left: none !important;
    border-radius: 10px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce-layout__main a.woocommerce-summary__item:hover,
.woocommerce-layout__main button.woocommerce-summary__item:hover {
    background-color: #007d67 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

/* Kinwi: Active/selected card — darker green with subtle inset shadow */
.woocommerce-layout__main a.woocommerce-summary__item.is-selected,
.woocommerce-layout__main button.woocommerce-summary__item.is-selected {
    background-color: #007d67 !important;
    border-left-color: transparent !important;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 150, 125, 0.3) !important;
}

/* Kinwi: Mobile dropdown (< 960px) — green button with proper arrow spacing */
.woocommerce-layout__main .woocommerce-summary.components-dropdown button.woocommerce-summary__item {
    background-color: #00967d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 44px 12px 16px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    width: 100% !important;
    text-align: left !important;
    position: relative !important;
    cursor: pointer !important;
}

.woocommerce-layout__main .woocommerce-summary.components-dropdown button.woocommerce-summary__item:hover {
    background-color: #007d67 !important;
}

/* Kinwi: White dropdown arrow, positioned so it doesn't overlap text */
.woocommerce-layout__main .woocommerce-summary.components-dropdown button.woocommerce-summary__item svg.woocommerce-summary__toggle {
    fill: #ffffff !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Kinwi: Dropdown popover items — style each option as its own mini green card */
.woocommerce-layout__main .woocommerce-summary.components-dropdown .components-popover__content .woocommerce-summary__item {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    transition: background-color 0.15s ease !important;
}

.woocommerce-layout__main .woocommerce-summary.components-dropdown .components-popover__content .woocommerce-summary__item:hover {
    background-color: #f0faf8 !important;
    transform: none !important;
}

.woocommerce-layout__main .woocommerce-summary.components-dropdown .components-popover__content .woocommerce-summary__item.is-selected {
    background-color: #f0faf8 !important;
    border-left: 3px solid #00967d !important;
    box-shadow: none !important;
}

/* Kinwi: Hide WooCommerce dropdown when our custom card row is present */
.kinwi-summary-row ~ .woocommerce-summary.components-dropdown {
    display: none !important;
}

/* Kinwi: Add scroll padding so native focus/scrollIntoView doesn't hide content under sticky header */
html {
    scroll-padding-top: 120px !important;
}

/* Kinwi: Custom summary card row — CSS Grid auto-fill, same as native cards */
.kinwi-summary-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 24px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.kinwi-summary-card {
    background-color: #00967d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 6px !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: "Lora upload", "Lora", serif !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
}

.kinwi-summary-card:hover {
    background-color: #007d67 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

.kinwi-summary-card.is-active {
    background-color: #007d67 !important;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 150, 125, 0.3) !important;
}

.kinwi-card-label {
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.kinwi-card-data {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
}

.kinwi-card-value {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.kinwi-card-delta {
    font-size: 10px !important;
    color: #1a1a1a !important;
    background-color: #ffffff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}


.woocommerce-layout__main .woocommerce-summary__item-label {
    margin-bottom: 6px !important;
}

.woocommerce-layout__main .woocommerce-summary__item-label .components-text {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 500 !important;
}

/* Kinwi: Card value and delta row */
.woocommerce-layout__main .woocommerce-summary__item-data {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.woocommerce-layout__main .woocommerce-summary__item-value .components-text {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.woocommerce-layout__main .woocommerce-summary__item-delta .components-text {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 13px !important;
    color: #1a1a1a !important;
    background-color: #ffffff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

/* Kinwi: Dropdown popover text colors — dark on white background */
.woocommerce-layout__main .woocommerce-summary.components-dropdown .components-popover__content .woocommerce-summary__item-label .components-text {
    color: #666 !important;
}
.woocommerce-layout__main .woocommerce-summary.components-dropdown .components-popover__content .woocommerce-summary__item-value .components-text {
    color: #1a1a1a !important;
}
.woocommerce-layout__main .woocommerce-summary.components-dropdown .components-popover__content .woocommerce-summary__item-delta .components-text {
    color: #888 !important;
}

/* -----------------------------------------------------------------
   4. CHART AREA
   ----------------------------------------------------------------- */

/* Kinwi: Chart section spacing */
.woocommerce-layout__main .woocommerce-chart {
    margin-bottom: 24px !important;
}

/* Kinwi: Chart title ("Items sold") — left-aligned, Lora font */
.woocommerce-layout__main .woocommerce-chart__title {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-align: left !important;
    margin-right: auto !important; /* Push everything else to the right */
}

/* Kinwi: Chart header — group "By day" dropdown and toggle buttons */
.woocommerce-layout__main .woocommerce-chart__header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 8px 0 !important;
}

/* Kinwi: Chart type toggle buttons (line/bar) */
.woocommerce-layout__main .woocommerce-chart__types button {
    font-family: "Lora upload", "Lora", serif !important;
    border: 1px solid #00967d !important;
    background: transparent !important;
    color: #00967d !important;
    transition: all 0.15s ease !important;
}

.woocommerce-layout__main .woocommerce-chart__types button.is-pressed,
.woocommerce-layout__main .woocommerce-chart__types button:hover {
    background: #00967d !important;
    color: #fff !important;
}

/* Kinwi: "No data for the selected date range" message */
.woocommerce-layout__main .woocommerce-chart__empty-message {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    color: #888 !important;
    text-align: center !important;
    padding: 40px 20px !important;
}

/* Kinwi: Chart legend rows styling */
.woocommerce-layout__main .woocommerce-legend {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
}

.woocommerce-layout__main .woocommerce-legend__item {
    font-family: "Lora upload", "Lora", serif !important;
}

/* -----------------------------------------------------------------
   5. REPORT TABLES — MATCHING PRODUCTS/ORDERS TAB
   ----------------------------------------------------------------- */

/* Kinwi: Table card wrapper — clean border and shadow */
.woocommerce-layout__main .woocommerce-table.woocommerce-report-table {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 16px !important;
}

/* Kinwi: Table card header — title, download, menu */
.woocommerce-layout__main .woocommerce-report-table .components-card__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background: #fff !important;
}

/* Kinwi: Table title in header */
.woocommerce-layout__main .woocommerce-report-table .components-card__header .components-text {
    font-family: "Gabriela upload", "Gabriela", serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
}

/* Kinwi: Table actions area — download button + ellipsis */
.woocommerce-layout__main .woocommerce-table__actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Kinwi: Download button — emerald themed */
.woocommerce-layout__main .woocommerce-table__download-button {
    font-family: "Lora upload", "Lora", serif !important;
    background: #00967d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.15s ease !important;
}

.woocommerce-layout__main .woocommerce-table__download-button:hover {
    background: #007a65 !important;
}

.woocommerce-layout__main .woocommerce-table__download-button svg {
    fill: #fff !important;
    width: 16px !important;
    height: 16px !important;
}

/* Kinwi: Ellipsis (three-dot) menu button — consistent sizing */
.woocommerce-layout__main .woocommerce-ellipsis-menu .components-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    transition: background-color 0.15s ease !important;
}

.woocommerce-layout__main .woocommerce-ellipsis-menu .components-button:hover {
    background: #f5f5f5 !important;
}

/* --- 5a. EMERALD SCROLLBAR (matching Products/Orders tab) --- */

/* Kinwi: Large emerald scrollbar on report table scroll container — always visible */
.woocommerce-layout__main .woocommerce-table__table {
    overflow-x: scroll !important;
    scrollbar-width: auto !important;
    scrollbar-color: #00967d #f1f1f1 !important;
}

.woocommerce-layout__main .woocommerce-table__table::-webkit-scrollbar {
    height: 10px;
    width: 10px;
    -webkit-appearance: none;
    background-color: transparent;
}
.woocommerce-layout__main .relative.overflow-x-auto::-webkit-scrollbar {
    height: 10px;
    width: 10px;
    -webkit-appearance: none;
    background-color: transparent;
}

.woocommerce-layout__main .woocommerce-table__table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}
.woocommerce-layout__main .relative.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.woocommerce-layout__main .woocommerce-table__table::-webkit-scrollbar-thumb {
    background: #00967d;
    border-radius: 6px;
}
.woocommerce-layout__main .relative.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #00967d;
    border-radius: 6px;
}

.woocommerce-layout__main .woocommerce-table__table::-webkit-scrollbar-thumb:hover {
    background: #007a65;
}
.woocommerce-layout__main .relative.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #007a65;
}

/* Kinwi: Remove the vertical border between the checkbox and title columns at all widths. */
.woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column,
.woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column {
    border-right: none !important;
    box-shadow: none !important;
}
.woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column + th,
.woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column + td,
.woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column + th,
.woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column + td {
    border-left: none !important;
}

/* Ensure no pseudo-element lines overlap the checkbox */
.woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column::before,
.woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column::before,
.woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column::after,
.woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column::after {
    display: none !important;
    content: none !important;
}

/* Kinwi: Sticky columns for WC Report tables.
   Two patterns:
   A) Tables WITH checkbox (Products, Variations, Categories):
      - th.is-checkbox-column sticky at left:0
      - next sibling (title) sticky at left:52px
   B) Tables WITHOUT checkbox (Revenue, Orders, Stock):
      - th:first-child sticky at left:0 with separator shadow
*/
@media (min-width: 768px) {
    /* --- Pattern A: Checkbox tables --- */
    /* Checkbox column — narrow, sticky at left:0 */
    .woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column,
    .woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column {
        position: sticky !important;
        left: 0 !important;
        background-color: #ffffff !important;
        z-index: 3 !important;
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        box-sizing: border-box !important;
    }

    /* Title column (next sibling after checkbox) — sticky at left:52px */
    .woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column + th,
    .woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column + td,
    .woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column + th,
    .woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column + td {
        position: sticky !important;
        left: 52px !important;
        background-color: #ffffff !important;
        z-index: 2 !important;
        box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.15) !important;
        min-width: 150px !important;
        max-width: 250px !important;
        white-space: normal !important;
        border-left: none !important;
    }

    /* Kinwi: Pseudo-element border for sticky title cell (bypasses border-collapse issues) */
    .woocommerce-layout__main .woocommerce-table__table table tr th.is-checkbox-column + th::after,
    .woocommerce-layout__main .woocommerce-table__table table tr th.is-checkbox-column + td::after {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 1px !important;
        background-color: #e0e0e0 !important;
        z-index: 3 !important;
    }

    /* --- Pattern B: Non-checkbox tables (Revenue, Orders, Stock) --- */
    /* First column sticky at left:0 — only when there is NO checkbox column */
    .woocommerce-layout__main .woocommerce-table__table table th:first-child:not(.is-checkbox-column) {
        position: sticky !important;
        left: 0 !important;
        background-color: #ffffff !important;
        z-index: 2 !important;
        box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.15) !important;
        min-width: 120px !important;
    }
    
    /* Ensure no vertical borders on the first column just in case */
    .woocommerce-layout__main .woocommerce-table__table table th:first-child,
    .woocommerce-layout__main .woocommerce-table__table table td:first-child {
        border-right: none !important;
    }
    .woocommerce-layout__main .woocommerce-table__table table th:first-child::after,
    .woocommerce-layout__main .woocommerce-table__table table td:first-child::after {
        display: none !important;
    }
}

/* --- 5c. TABLE HEADER — badge-style column labels --- */

/* Kinwi: Ensure sticky columns have OPAQUE backgrounds on ALL rows
   including alternating striped rows, so scrolling content goes UNDER them */
.woocommerce-layout__main .woocommerce-table__table table tr th.is-checkbox-column,
.woocommerce-layout__main .woocommerce-table__table table tr td.is-checkbox-column,
.woocommerce-layout__main .woocommerce-table__table table tr th.is-checkbox-column + th,
.woocommerce-layout__main .woocommerce-table__table table tr td.is-checkbox-column + td {
    background-color: #ffffff !important;
}
.woocommerce-layout__main .woocommerce-table__table table tbody tr:nth-child(even) th.is-checkbox-column,
.woocommerce-layout__main .woocommerce-table__table table tbody tr:nth-child(even) td.is-checkbox-column,
.woocommerce-layout__main .woocommerce-table__table table tbody tr:nth-child(even) th.is-checkbox-column + th,
.woocommerce-layout__main .woocommerce-table__table table tbody tr:nth-child(even) td.is-checkbox-column + td {
    background-color: #f9f9f9 !important;
}


.woocommerce-layout__main .woocommerce-search,
.woocommerce-layout__main .woocommerce-select-control {
    border: none !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Make sure the internal React components don't force a fixed width causing overflow */
.woocommerce-layout__main .woocommerce-search *,
.woocommerce-layout__main .woocommerce-select-control * {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-layout__main .woocommerce-search input,
.woocommerce-layout__main .woocommerce-select-control input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100% !important;
    padding: 4px 8px 4px 0 !important; /* Wrapper handles left padding for icon */
}

/* Kinwi: Add some margin to the Compare button so it doesn't bump the title */
.woocommerce-layout__main .woocommerce-table__compare {
    margin-left: 16px !important;
}

/* Kinwi: Download button — vertically centre icon + text */
.woocommerce-layout__main .woocommerce-table__download-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    line-height: 1 !important;
}


/* Kinwi: Table header row — white background */
.woocommerce-layout__main .woocommerce-table__table table tr:first-child {
    background-color: #ffffff !important;
}

/* Kinwi: All table header cells — base styling */
.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header {
    background-color: #ffffff !important;
    padding: 12px 16px !important;
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #e0e0e0 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Kinwi: All header cells — left-aligned plain text, no emerald badges.
   Matches the Products/Orders tab header styling. */
.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header:not(:first-child) {
    text-align: left !important;
}

/* Kinwi: Header buttons → plain text (strip emerald badge) */
.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header button,
.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header span[aria-hidden="false"] {
    background: transparent !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: "Lora upload", "Lora", serif !important;
    display: inline-block !important;
    border: none !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    cursor: default !important;
    text-align: left !important;
}

/* Kinwi: Hide sort arrow SVGs — not needed for vendors */
.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header button svg {
    display: none !important;
}

/* Kinwi: First column header — same plain text, left-aligned */
.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header:first-child {
    text-align: left !important;
}

.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header:first-child button {
    background: transparent !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    font-family: "Lora upload", "Lora", serif !important;
}

.woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header:first-child button svg {
    display: none !important;
}

/* --- 5d. TABLE DATA ROWS --- */

/* Kinwi: Data cells — consistent padding and font */
.woocommerce-layout__main .woocommerce-table__table td.woocommerce-table__item {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    color: #4a4a4a !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
}

/* Ensure links inside data cells also inherit the font properly */
.woocommerce-layout__main .woocommerce-table__table td.woocommerce-table__item a {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
}

/* Kinwi: Numeric cells — right-aligned */
.woocommerce-layout__main .woocommerce-table__table td.woocommerce-table__item.is-numeric {
    text-align: right !important;
}

/* Kinwi: Alternating row colours */
.woocommerce-layout__main .woocommerce-table__table table tr:nth-child(even) td {
    background-color: #f9f9f9 !important;
}

.woocommerce-layout__main .woocommerce-table__table table tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

/* Kinwi: Row hover effect */
.woocommerce-layout__main .woocommerce-table__table table tr:hover td {
    background-color: #f0faf8 !important;
}

/* Kinwi: Keep sticky first column bg correct on hover/alternating */
@media (min-width: 768px) {
    .woocommerce-layout__main .woocommerce-table__table table tr:nth-child(even) td:first-child {
        background-color: #f9f9f9 !important;
    }

    .woocommerce-layout__main .woocommerce-table__table table tr:nth-child(odd) td:first-child {
        background-color: #ffffff !important;
    }

    .woocommerce-layout__main .woocommerce-table__table table tr:hover td:first-child {
        background-color: #f0faf8 !important;
    }

    /* Kinwi: Sticky first-column header needs correct bg too */
    .woocommerce-layout__main .woocommerce-table__table table tr:first-child th:first-child {
        background-color: #ffffff !important;
        z-index: 3 !important;
    }
}

/* -----------------------------------------------------------------
   6. TABLE FOOTER / SUMMARY
   ----------------------------------------------------------------- */

/* Kinwi: Table summary row at bottom (e.g. "22 days  0 orders  $0.00 Gross sales") */
.woocommerce-layout__main .woocommerce-table__summary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 16px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    list-style: none !important;
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 13px !important;
    color: #555 !important;
    border-top: 1px solid #e0e0e0 !important;
    background: #fafafa !important;
}

.woocommerce-layout__main .woocommerce-table__summary li {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.woocommerce-layout__main .woocommerce-table__summary li .woocommerce-table__summary-value,
.woocommerce-layout__main .woocommerce-table__summary li strong {
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

/* Also handle inline summary text below table card */
.woocommerce-layout__main .woocommerce-report-table + div {
    font-family: "Lora upload", "Lora", serif !important;
}

/* -----------------------------------------------------------------
   7. STATEMENT TAB SPECIFICS
   ----------------------------------------------------------------- */

/* Kinwi: Export Statement button — emerald theme */
.woocommerce-layout__main .dokan-analytics-vendor-earning-section .dokan-btn,
.woocommerce-layout__main .dokan-analytics-vendor-earning-section button {
    font-family: "Lora upload", "Lora", serif !important;
    background-color: #00967d !important;
    border-color: #00967d !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
    box-shadow: none !important;
}

.woocommerce-layout__main .dokan-analytics-vendor-earning-section .dokan-btn:hover,
.woocommerce-layout__main .dokan-analytics-vendor-earning-section button:hover {
    background-color: #111 !important;
    border-color: #111 !important;
}

/* Kinwi: Statement summary cards (Total Debit, Total Credit, Balance) */
.woocommerce-layout__main .dokan-report-statement-wrapper .grid {
    gap: 16px !important;
}

.woocommerce-layout__main .dokan-report-statement-wrapper .grid > div {
    border-radius: 8px !important;
    border-color: #e0e0e0 !important;
    padding: 20px !important;
}

.woocommerce-layout__main .dokan-report-statement-wrapper .grid h3 {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #666 !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

.woocommerce-layout__main .dokan-report-statement-wrapper .grid .text-2xl {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #00967d !important;
}

/* Kinwi: Statement range label */
.woocommerce-layout__main .dokan-report-statement-wrapper > .woocommerce-filters-label {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Kinwi: Statement table — uses dataviews so inherits existing styles from
   02-dokan-dashboard.css (emerald scrollbar + sticky first column already applied).
   Just ensure the wrapper has rounded corners. */
.woocommerce-layout__main .dokan-report-statement-wrapper .relative.overflow-x-auto {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
}

/* Kinwi: Statement table inner text */
.woocommerce-layout__main .dokan-report-statement-wrapper .dataviews-view-table td,
.woocommerce-layout__main .dokan-report-statement-wrapper .dataviews-view-table td * {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
}

/* -----------------------------------------------------------------
   8. GENERAL TYPOGRAPHY OVERRIDES
   ----------------------------------------------------------------- */

/* Kinwi: All text inside reports — Lora upload baseline */
.woocommerce-layout__main .woocommerce-layout__main {
    font-family: "Lora upload", "Lora", serif !important;
}

/* Kinwi: "Compare" button on Products report tab */
.woocommerce-layout__main .woocommerce-table__actions .components-button:not(.woocommerce-table__download-button) {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
}

/* Kinwi: Search input inside report tables */
.woocommerce-layout__main .woocommerce-search {
    font-family: "Lora upload", "Lora", serif !important;
}

.woocommerce-layout__main .woocommerce-search input {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    border-color: #e0e0e0 !important;
}

/* Kinwi: Pagination in report tables */
.woocommerce-layout__main .woocommerce-pagination {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px 8px !important;
    width: 100% !important;
    border-top: 1px solid #e0e0e0 !important;
}

.woocommerce-layout__main .woocommerce-pagination *,
.woocommerce-layout__main .woocommerce-pagination button,
.woocommerce-layout__main .woocommerce-pagination input,
.woocommerce-layout__main .woocommerce-pagination select,
.woocommerce-layout__main .woocommerce-pagination span {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
}

/* Italic text and prevent internal wrap for page info text */
.woocommerce-layout__main .woocommerce-pagination span,
.woocommerce-layout__main .woocommerce-pagination-page-info {
    font-style: italic !important;
    white-space: nowrap !important;
}

/* Remove top margins and align children vertically within each section */
.woocommerce-layout__main .woocommerce-pagination > div {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Remove margin on "Page X of Y" label that pushes it below the baseline */
.woocommerce-layout__main .woocommerce-pagination .woocommerce-pagination__page-arrows-label {
    margin: 0 !important;
}

/* Uniform height and styling for "Go to page" input and "Rows per page" select */
.woocommerce-layout__main .woocommerce-pagination input[type="number"] {
    height: 30px !important;
    box-sizing: border-box !important;
    padding: 4px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    width: 40px !important;
    text-align: center !important;
    -moz-appearance: textfield !important;
}

/* Hide number input spinners */
.woocommerce-layout__main .woocommerce-pagination input[type="number"]::-webkit-inner-spin-button,
.woocommerce-layout__main .woocommerce-pagination input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Match select height to input */
.woocommerce-layout__main .woocommerce-pagination select.components-select-control__input {
    height: 30px !important;
    box-sizing: border-box !important;
    padding: 4px 6px !important;
}

/* Kinwi: Fix "Rows per page" select — use native browser appearance.
   Gutenberg's custom SVG arrow suffix collapses to 0px in the flex layout
   and overlaps the select text. Solution: restore native <select> appearance
   (which includes a built-in arrow) and hide the custom SVG suffix. */
.woocommerce-layout__main .woocommerce-pagination select.components-select-control__input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 6px 8px !important;
    min-width: 36px !important;
    width: auto !important;
}

/* Hide the Gutenberg SVG arrow suffix — native select has its own arrow */
.woocommerce-layout__main .woocommerce-pagination .components-input-control__suffix {
    display: none !important;
}

/* Hide the backdrop border — the select itself now has the single border */
.woocommerce-layout__main .woocommerce-pagination .components-input-control__backdrop {
    border: none !important;
}

/* Constrain the entire InputBase wrapper so it doesn't overflow on small screens */
.woocommerce-layout__main .woocommerce-pagination .components-input-base {
    max-width: 100% !important;
    width: auto !important;
}

/* Ensure the select wrapper (components-base-control) doesn't overflow */
.woocommerce-layout__main .woocommerce-pagination .components-base-control {
    max-width: 100% !important;
}

/* Prevent "Rows per page" label from wrapping or being truncated.
   Gutenberg's components-truncate class sets overflow:hidden which collapses
   the label to 0px width inside the flex layout. Override all truncation. */
.woocommerce-layout__main .woocommerce-pagination .components-input-control__label {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    width: auto !important;
    font-size: 14px !important;
}

/* Let the label's flex-item parent grow to its natural width */
.woocommerce-layout__main .woocommerce-pagination .components-input-base > .components-flex-item {
    flex: 1 0 auto !important;
    overflow: visible !important;
}

/* Allow the select container to shrink so the label gets space */
.woocommerce-layout__main .woocommerce-pagination .components-input-control__container {
    flex: 0 1 auto !important;
}

/* -----------------------------------------------------------------
   9. RESPONSIVE — TABLET (≤880px)
   ----------------------------------------------------------------- */

@media (max-width: 880px) {

    /* Kinwi: Filter controls — stack vertically */
    .woocommerce-layout__main .woocommerce-filters__basic-filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .woocommerce-layout__main .woocommerce-filters-filter {
        min-width: unset !important;
        width: 100% !important;
    }

    /* Kinwi: Statement summary cards — 3 still works at tablet */
    .woocommerce-layout__main .dokan-report-statement-wrapper .grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* -----------------------------------------------------------------
   10. RESPONSIVE — MOBILE (≤640px)
   ----------------------------------------------------------------- */

@media (max-width: 640px) {


    .woocommerce-layout__main .woocommerce-summary__item-container,
    .kinwi-summary-card {
        border-right: none !important;
    }

    /* Kinwi: Card padding tighter on mobile */
    .woocommerce-layout__main a.woocommerce-summary__item {
        padding: 12px 16px !important;
    }

    /* Kinwi: Table card header stacks */
    .woocommerce-layout__main .woocommerce-report-table .components-card__header {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    /* Kinwi: Table cells — tighter padding */
    .woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header {
        padding: 10px 10px !important;
    }

    .woocommerce-layout__main .woocommerce-table__table td.woocommerce-table__item {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    /* Kinwi: Table summary — tighter */
    .woocommerce-layout__main .woocommerce-table__summary {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Kinwi: Statement summary cards — stack to 1 column */
    .woocommerce-layout__main .dokan-report-statement-wrapper .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Kinwi: Statement header — stack title and button */
    .woocommerce-layout__main .woocommerce-layout__header-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Kinwi: Statement range dropdown — full width */
    .woocommerce-layout__main .dokan-report-statement-wrapper .w-96 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce-layout__main .dokan-report-statement-wrapper .woocommerce-dropdown-button {
        padding-right: 48px !important;
        color: #00967d !important;
    }

    .woocommerce-layout__main .dokan-report-statement-wrapper .woocommerce-dropdown-button svg {
        fill: #00967d !important;
        color: #00967d !important;
    }

    /* Kinwi: Chart header controls stack */
    .woocommerce-layout__main .woocommerce-chart__header {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

/* -----------------------------------------------------------------
   11. RESPONSIVE — EXTRA SMALL (≤480px)
   ----------------------------------------------------------------- */

@media (max-width: 480px) {
    /* Kinwi: Even tighter spacing */
    .woocommerce-layout__main .woocommerce-layout__header {
        padding: 12px 10px 4px 10px !important;
        box-sizing: border-box !important;
    }

    /* Prevent dropdown buttons pushing off the page on very small (260px) screens */
    .woocommerce-layout__main .woocommerce-filters {
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .woocommerce-layout__main .woocommerce-filters-filter,
    .woocommerce-layout__main .components-dropdown button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-layout__main a.woocommerce-summary__item {
        padding: 10px 12px !important;
    }

    .woocommerce-layout__main .woocommerce-summary__item-value .components-text {
        font-size: 16px !important;
    }

    /* Kinwi: Header text slightly smaller on very small screens */
    .woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header button,
    .woocommerce-layout__main .woocommerce-table__table th.woocommerce-table__header span[aria-hidden="false"] {
        font-size: 12px !important;
    }

    /* Kinwi: Statement cards — smaller text */
    .woocommerce-layout__main .dokan-report-statement-wrapper .grid > div {
        padding: 14px !important;
    }

    .woocommerce-layout__main .dokan-report-statement-wrapper .grid .text-2xl {
        font-size: 16px !important;
    }
}

/* -----------------------------------------------------------------
   11b. RESPONSIVE — VERY SMALL (≤360px)
   Force exactly 2 columns and constrain grid directly to viewport.
   Uses calc(100vw - 20px) to bypass parent chain width issues.
   ----------------------------------------------------------------- */

@media (max-width: 360px) {
    .woocommerce-layout__main ul.woocommerce-summary,
    .kinwi-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: calc(100vw - 20px) !important;
        overflow: hidden !important;
    }
}

/* -----------------------------------------------------------------
   12. RESPONSIVE — MOBILE (≤767px)
   ----------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Kinwi: Make the checkboxes smaller on mobile view */
    .woocommerce-layout__main .woocommerce-table__table table td.is-checkbox-column input[type="checkbox"],
    .woocommerce-layout__main .woocommerce-table__table table th.is-checkbox-column input[type="checkbox"] {
        transform: scale(0.8);
        transform-origin: left center;
        margin-left: 2px;
    }
}

/* Kinwi: Helper class to hide unwanted columns/summary items */
.kinwi-hidden {
    display: none !important;
}

/* --- Stock Report Specifics --- */
.woocommerce-layout__main.kinwi-report-stock .woocommerce-table__table table td:first-child,
.woocommerce-layout__main.kinwi-report-stock .woocommerce-table__table table td:first-child *,
.woocommerce-layout__main.kinwi-report-stock .woocommerce-table__table table th:first-child:not(.woocommerce-table__header),
.woocommerce-layout__main.kinwi-report-stock .woocommerce-table__table table th:first-child:not(.woocommerce-table__header) * {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-style: italic !important;
    text-transform: none !important;
}

/* Kinwi: Hide "On backorder" option from Stock report dropdown popover */
.woocommerce-filters-filter__content-list-item.kinwi-hidden,
.woocommerce-filters-filter__content-list-item[data-kinwi-hidden="true"],
.components-popover .woocommerce-filters-filter__content-list-item:has(button[aria-label*="backorder" i]) {
    display: none !important;
}


/* -----------------------------------------------------------------
   8. STATEMENT TABLE STYLING (Calendar fix removed - was affecting all calendars)
   ----------------------------------------------------------------- */

/* Kinwi: Statement page table styling only
   Calendar-related CSS was removed as it affected ALL dashboard calendars.
   Statement calendar will be replaced with standard WooCommerce date picker. */

/* Statement table — match other report tables */
.dokan-report-statement-wrapper .relative.overflow-x-auto table,
body.dokan-dashboard .dokan-report-statement-wrapper .relative.overflow-x-auto table {
    font-family: "Lora upload", "Lora", serif !important;
}

.dokan-report-statement-wrapper .relative.overflow-x-auto table th,
body.dokan-dashboard .dokan-report-statement-wrapper .relative.overflow-x-auto table th {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    background-color: #f9fafb !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.dokan-report-statement-wrapper .relative.overflow-x-auto table td,
body.dokan-dashboard .dokan-report-statement-wrapper .relative.overflow-x-auto table td {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Statement table links */
.dokan-report-statement-wrapper .relative.overflow-x-auto table a,
body.dokan-dashboard .dokan-report-statement-wrapper .relative.overflow-x-auto table a {
    color: #00967d !important;
    text-decoration: none !important;
}

.dokan-report-statement-wrapper .relative.overflow-x-auto table a:hover,
body.dokan-dashboard .dokan-report-statement-wrapper .relative.overflow-x-auto table a:hover {
    text-decoration: underline !important;
}

/* -----------------------------------------------------------------
   END STATEMENT TABLE STYLING
   ----------------------------------------------------------------- */

 
 
/* ============================================================================
   Kinwi: UNIFIED DASHBOARD HEADINGS
   Forces all variable dashboard page/section titles to match the global H1
   (Gabriela upload, 32px desktop, 26px mobile, 500 weight).
   Addresses user request to make Products, Items sold, Stock, TOTAL DEBIT, 
   and Tools headings consistent.
   ============================================================================ */
html body.dokan-dashboard .dokan-dashboard-wrap h3.text-2xl.font-semibold.text-gray-800,
html body.dokan-dashboard .dokan-dashboard-content > h3.text-2xl,
html body.dokan-dashboard .dokan-dashboard-wrap h2.woocommerce-chart__title,
html body.dokan-dashboard .dokan-dashboard-wrap .woocommerce-report-table .components-card__header .components-text,
html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h2,
html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h3,
html body.dokan-dashboard .dokan-dashboard-wrap h1.entry-title,
html body.dokan-dashboard .dokan-dashboard-content .woocommerce-exporter h2,
.woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title {
    font-family: "Gabriela upload", "Gabriela", serif !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #111111 !important;
    margin-bottom: 15px !important;
}

/* Kinwi: Protect inner spans (e.g. flex wrappers in React) from the global Lora override */
html body.dokan-dashboard .dokan-dashboard-wrap h3.text-2xl.font-semibold.text-gray-800 *,
html body.dokan-dashboard .dokan-dashboard-content > h3.text-2xl *,
html body.dokan-dashboard .dokan-dashboard-wrap h2.woocommerce-chart__title *,
html body.dokan-dashboard .dokan-dashboard-wrap .woocommerce-report-table .components-card__header .components-text *,
html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h2 *,
html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h3 *,
html body.dokan-dashboard .dokan-dashboard-wrap h1.entry-title *,
html body.dokan-dashboard .dokan-dashboard-content .woocommerce-exporter h2 *,
.woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title * {
    font-family: "Gabriela upload", "Gabriela", serif !important;
}

/* Make Stock table heading stand out (24px Gabriela) */
html body.dokan-dashboard .woocommerce-report-table .components-card__header .components-truncate.components-text {
    font-family: "Gabriela upload", "Gabriela", serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

/* Make Statement Headings (TOTAL DEBIT, BALANCE) uncapitalised Lora */
html body.dokan-dashboard .dokan-dashboard-wrap h3.text-lg.font-bold.mb-2 {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #111111 !important;
}

@media screen and (max-width: 1024px) {
    html body.dokan-dashboard .dokan-dashboard-wrap h3.text-2xl.font-semibold.text-gray-800,
    html body.dokan-dashboard .dokan-dashboard-content > h3.text-2xl,
    html body.dokan-dashboard .dokan-dashboard-wrap h2.woocommerce-chart__title,
    html body.dokan-dashboard .dokan-dashboard-wrap .woocommerce-report-table .components-card__header .components-text,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h2,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h3,
    html body.dokan-dashboard .dokan-dashboard-wrap h1.entry-title,
    html body.dokan-dashboard .dokan-dashboard-content .woocommerce-exporter h2,
    .woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title {
        font-size: 28px !important;
    }
}

@media screen and (max-width: 800px) {
    html body.dokan-dashboard .dokan-dashboard-wrap h3.text-2xl.font-semibold.text-gray-800,
    html body.dokan-dashboard .dokan-dashboard-content > h3.text-2xl,
    html body.dokan-dashboard .dokan-dashboard-wrap h2.woocommerce-chart__title,
    html body.dokan-dashboard .dokan-dashboard-wrap .woocommerce-report-table .components-card__header .components-text,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h2,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h3,
    html body.dokan-dashboard .dokan-dashboard-wrap h1.entry-title,
    html body.dokan-dashboard .dokan-dashboard-content .woocommerce-exporter h2,
    .woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title {
        font-size: 26px !important;
    }
}

@media screen and (max-width: 480px) {
    html body.dokan-dashboard .dokan-dashboard-wrap h3.text-2xl.font-semibold.text-gray-800,
    html body.dokan-dashboard .dokan-dashboard-content > h3.text-2xl,
    html body.dokan-dashboard .dokan-dashboard-wrap h2.woocommerce-chart__title,
    html body.dokan-dashboard .dokan-dashboard-wrap .woocommerce-report-table .components-card__header .components-text,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h2,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h3,
    html body.dokan-dashboard .dokan-dashboard-wrap h1.entry-title,
    html body.dokan-dashboard .dokan-dashboard-content .woocommerce-exporter h2,
    .woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title {
        font-size: 22px !important;
    }
}

@media screen and (max-width: 400px) {
    html body.dokan-dashboard .dokan-dashboard-wrap h3.text-2xl.font-semibold.text-gray-800,
    html body.dokan-dashboard .dokan-dashboard-content > h3.text-2xl,
    html body.dokan-dashboard .dokan-dashboard-wrap h2.woocommerce-chart__title,
    html body.dokan-dashboard .dokan-dashboard-wrap .woocommerce-report-table .components-card__header .components-text,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h2,
    html body.dokan-dashboard .dokan-dashboard-wrap .components-card__header h3,
    html body.dokan-dashboard .dokan-dashboard-wrap h1.entry-title,
    html body.dokan-dashboard .dokan-dashboard-content .woocommerce-exporter h2,
    .woocommerce-layout__main .woocommerce-layout__header-wrapper h3.entry-title {
        font-size: 20px !important;
    }
}


/* Analytics Dashboard JS-injected Classes */
html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-performance-title {
    font-family: "Gabriela upload", "Gabriela", serif !important;
    font-size: 32px !important;
    font-weight: 500 !important;
}
html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-charts-title {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 24px !important;
    font-weight: normal !important;
}
html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-chart-subheading {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 18px !important;
    font-weight: normal !important;
}

@media screen and (max-width: 1024px) {
    html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-performance-title {
        font-size: 28px !important;
    }
}

@media screen and (max-width: 800px) {
    html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-performance-title {
        font-size: 26px !important;
    }
    html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-charts-title {
        font-size: 20px !important;
    }
    html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-chart-subheading {
        font-size: 16px !important;
    }
}

@media screen and (max-width: 480px) {
    html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-performance-title {
        font-size: 22px !important;
    }
}

@media screen and (max-width: 400px) {
    html body.dokan-dashboard .dokan-dashboard-wrap .kinwi-performance-title {
        font-size: 20px !important;
    }
}
