/* ==== inline-block-1 (extracted from reports.php inline <style>) ==== */
body{background:linear-gradient(180deg,#f8fbff,#eef4ff)}
.report-shell{padding:18px 0 40px}
.head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.head h1{margin:0;font-size:32px}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.report-control{background:#fff;border:1px solid #e5e7eb;border-radius:26px;box-shadow:0 14px 35px rgba(15,23,42,.07);padding:18px}
.report-control h2{margin:0 0 6px;font-size:24px;color:#111827}
.report-control p{margin:0 0 14px;color:#64748b;font-weight:700}
.form-inline{display:grid;grid-template-columns:1fr;gap:12px}
.report-section{margin-top:18px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.section-heading h2{margin:0;font-size:26px;letter-spacing:-.03em;color:#111827}
.section-heading p{margin:5px 0 0;color:#64748b;font-weight:700}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.stat{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.07)}
.stat strong{display:block;font-size:28px;margin-top:8px;color:#111827}
.stat span{color:#64748b;font-weight:800}
.report-box{background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #dbeafe;border-radius:28px;padding:18px;box-shadow:0 18px 45px rgba(37,99,235,.10)}
.revenue{background:linear-gradient(135deg,#111827,#2563eb);color:#fff;border-radius:24px;padding:20px;margin:16px 0;box-shadow:0 20px 45px rgba(37,99,235,.18)}
.revenue.month{background:linear-gradient(135deg,#0f172a,#7c3aed,#2563eb)}
.revenue strong{font-size:34px}
.search-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:16px;margin-top:16px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.search-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.table-card{background:#fff;border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 12px 30px rgba(15,23,42,.07);overflow:auto;margin-top:16px}
table{width:100%;border-collapse:collapse;min-width:900px}
th,td{padding:12px;border-bottom:1px solid #eef2f7;text-align:left;font-size:14px;vertical-align:top}
th{background:#f8fafc;color:#334155}
tr:last-child td{border-bottom:0}
.pill{border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:900;padding:6px 9px;display:inline-block;font-size:12px}
.month-pill{border-radius:999px;background:#fff7ed;color:#9a3412;font-weight:1000;padding:8px 12px;display:inline-block}
.empty-report{background:#fff;border:1px dashed #cbd5e1;border-radius:22px;padding:20px;text-align:center;color:#64748b;font-weight:800}
@media(max-width:900px){.report-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.head h1{font-size:26px}.search-grid{grid-template-columns:1fr}}
@media(max-width:560px){.stats{grid-template-columns:1fr}.section-heading h2{font-size:22px}}

.report-past-panel{
    margin:0 0 18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:16px;
    box-shadow:0 14px 36px rgba(15,23,42,.06);
}
.report-past-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    flex-wrap:wrap;
    margin-bottom:12px;
}
.report-past-head h2{margin:0;font-size:24px}
.report-past-head p{margin:5px 0 0;color:#64748b;font-weight:800}
.report-filter-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr 1.4fr auto auto;
    gap:8px;
    margin-bottom:12px;
}
.report-filter-grid input,.report-filter-grid select{
    min-height:42px;
    border:1px solid #cbd5e1;
    border-radius:13px;
    padding:0 10px;
    font-weight:850;
    background:#fff;
}
.report-stats-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:8px;
    margin:12px 0;
}
.report-stat.pending-stat{background:#fff7ed;border-color:#fed7aa}
.report-stat.pending-stat strong{color:#9a3412}
.report-stat{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:10px;
}
.report-stat small{display:block;color:#64748b;font-weight:900;text-transform:uppercase;font-size:10px}
.report-stat strong{display:block;margin-top:5px;color:#0f172a;font-size:18px}
.report-orders-list{display:grid;gap:9px}
.report-order-card{
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
}
.report-order-head{
    width:100%;
    border:0;
    background:linear-gradient(135deg,#f8fafc,#eef2ff);
    padding:12px;
    text-align:left;
    display:flex;
    justify-content:space-between;
    gap:10px;
    cursor:pointer;
}
.report-order-head strong{display:block;color:#0f172a}
.report-order-head small{display:block;color:#64748b;margin-top:3px;font-weight:800}
.report-pill{background:#111827;color:#fff;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:1000;white-space:nowrap}
.report-order-tags{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.report-pay-pill{border-radius:999px;padding:6px 9px;font-size:11px;font-weight:1000;white-space:nowrap}
.report-pay-pill.paid-cash{background:#dcfce7;color:#166534}
.report-pay-pill.partial-cash{background:#fef3c7;color:#92400e}
.report-pay-pill.pending-cash{background:#fee2e2;color:#991b1b}
.report-pay-pill.unrecorded-cash{background:#e5e7eb;color:#475569}

/* vPendingCash: Pending Payments section, sits above Past Orders Report */
.report-pending-panel{
    margin:0 0 18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:16px;
    box-shadow:0 14px 36px rgba(15,23,42,.06);
}
.pending-list{display:grid;gap:8px}
.pending-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    border:1px solid #fed7aa;
    background:linear-gradient(135deg,#fff7ed,#fff);
    border-radius:16px;
    padding:11px 14px;
    cursor:pointer;
    transition:box-shadow .15s ease, transform .15s ease;
}
.pending-row:hover{box-shadow:0 10px 24px rgba(154,52,18,.14);transform:translateY(-1px)}
.pending-row strong{display:block;color:#0f172a}
.pending-row small{display:block;color:#64748b;margin-top:3px;font-weight:800}
.pending-row .pending-order-meta{color:#9a3412}
.pending-row .pending-order-meta .pill{font-weight:800;font-size:11px}
.pending-row .pending-order-items{font-weight:600;color:#475569}
.pending-row .pending-due{text-align:right;font-weight:1000;color:#9a3412;white-space:nowrap}
.pending-due small{color:#9a3412;font-weight:800;display:block;margin-top:2px}
.pending-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px;flex-wrap:wrap}
.pending-summary strong{font-size:22px;color:#9a3412}

/* PAYMENT_METHOD_RIDER_V1: Cash / Online tabs for the "Payment Received Via
   Cash/Online" section. Row/list styling reuses .pending-row/.pending-due
   from Pending Payments above, so both sections look consistent. */
.payment-method-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.payment-method-tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;background:#f8fafc;cursor:pointer;text-align:left}
.payment-method-tab small{text-transform:uppercase;letter-spacing:.4px;font-size:11px;font-weight:1000;color:#64748b}
.payment-method-tab strong{font-size:20px;color:#0f172a;margin-top:2px}
.payment-method-tab span{font-size:11px;font-weight:800;color:#64748b;margin-top:2px}
.payment-method-tab.active{background:linear-gradient(135deg,#0f172a,#2563eb);border-color:#2563eb}
.payment-method-tab.active small{color:rgba(255,255,255,.75)}
.payment-method-tab.active strong{color:#fff}
.payment-method-tab.active span{color:rgba(255,255,255,.85)}
@media(max-width:520px){.payment-method-summary{grid-template-columns:1fr}}
.payment-method-row{cursor:default}
.payment-method-row:hover{box-shadow:none;transform:none}

/* vCustomerProfileOnReports: floating customer profile card, ported from
   admin-search.php so it opens in place on reports.php instead of
   navigating away. */
.cp-pay-pill{border-radius:999px;padding:5px 10px;font-size:11px;font-weight:1000;white-space:nowrap;margin-left:6px}
.cp-pay-pill.received{background:#dcfce7;color:#166534}
.cp-pay-pill.pending{background:#fee2e2;color:#991b1b}
.cp-pay-pill.partial{background:#fef3c7;color:#92400e}
.cp-pay-pill.unrecorded{background:#f1f5f9;color:#64748b}
.cp-order-tags{display:flex;flex-wrap:wrap;align-items:center;gap:0}
.cp-ledger-grid{display:grid;grid-template-columns:1fr;gap:9px;margin-bottom:14px}
.cp-ledger-box{border:1px solid #e5e7eb;border-radius:16px;padding:11px;background:#f8fafc}
.cp-ledger-box.received{background:#f0fdf4;border-color:#bbf7d0}
.cp-ledger-box.debt{background:#fef2f2;border-color:#fecaca}
.cp-ledger-box label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.3px;font-weight:1000;color:#475569;margin-bottom:6px}
.cp-ledger-row{display:flex;gap:7px}
.cp-ledger-row input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:12px;padding:0 10px;min-height:40px;font:inherit;font-weight:800;background:#fff}
.cp-ledger-row button{border:0;border-radius:12px;padding:0 13px;min-height:40px;font-weight:1000;color:#fff;cursor:pointer;white-space:nowrap}
.cp-ledger-row button:disabled{opacity:.45;cursor:not-allowed}
.cp-ledger-box.received button{background:linear-gradient(135deg,#16a34a,#22c55e)}
.cp-ledger-box.debt button{background:linear-gradient(135deg,#dc2626,#f97316)}
.cp-ledger-msg{font-size:11px;font-weight:850;margin-top:6px;min-height:14px}
.cp-ledger-msg.ok{color:#166534}
.cp-ledger-msg.err{color:#991b1b}
@media(max-width:640px){.cp-ledger-box .cp-ledger-row{flex-wrap:wrap}}
.cp-modal-backdrop{
    position:fixed;inset:0;z-index:600;display:none;align-items:center;justify-content:center;
    padding:16px;background:rgba(15,23,42,.62);backdrop-filter:blur(8px);
}
.cp-modal-backdrop.open{display:flex}
.cp-modal-card{
    width:100%;max-width:640px;max-height:92vh;overflow:hidden;background:#fff;
    border-radius:26px;box-shadow:0 30px 90px rgba(15,23,42,.34);display:flex;flex-direction:column;
}
.cp-modal-head{
    padding:16px 18px;color:#fff;background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
    display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
}
.cp-modal-head h3{margin:0;font-size:20px}
.cp-modal-head p{margin:4px 0 0;font-size:12px;font-weight:850;color:rgba(255,255,255,.85)}
.cp-modal-head button{border:0;border-radius:13px;background:rgba(255,255,255,.18);color:#fff;font-weight:1000;padding:8px 12px;cursor:pointer;flex-shrink:0}
.cp-modal-body{padding:16px;overflow:auto;background:linear-gradient(180deg,#fff,#f8fbff)}
.cp-stat-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-bottom:14px}
.cp-stat{border:1px solid #e5e7eb;border-radius:16px;padding:11px;background:#f8fafc;text-align:center}
.cp-stat small{display:block;text-transform:uppercase;letter-spacing:.35px;font-size:10px;font-weight:1000;color:#64748b}
.cp-stat strong{display:block;margin-top:6px;font-size:17px;color:#0f172a}
.cp-stat.due strong{color:#991b1b}
.cp-stat.paid strong{color:#166534}
.cp-orders-title{font-size:13px;font-weight:1000;color:#0f172a;margin:4px 0 8px;text-transform:uppercase;letter-spacing:.3px}
.cp-order-list{display:grid;gap:8px}
.cp-order-row{
    display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;
    border:1px solid #e5e7eb;border-radius:14px;padding:10px 12px;background:#fff;
}
.cp-order-row strong{display:block;color:#0f172a;font-size:14px}
.cp-order-row small{display:block;color:#64748b;font-weight:800;margin-top:2px}
.cp-order-pill{border-radius:999px;padding:5px 10px;font-size:11px;font-weight:1000;white-space:nowrap;background:#eff6ff;color:#1d4ed8}
.cp-order-pill.cancelled{background:#fee2e2;color:#991b1b}
.cp-order-pill.delivered{background:#dcfce7;color:#166534}
.cp-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.cp-pager button{border:0;min-height:40px;border-radius:13px;padding:0 14px;font-weight:1000;cursor:pointer;background:#f1f5f9;color:#0f172a}
.cp-pager button:disabled{opacity:.45;cursor:not-allowed}
.cp-pager strong{font-size:12px;color:#64748b}
.cp-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;padding:16px;text-align:center;color:#64748b;font-weight:800}
@media(max-width:640px){
    .cp-stat-grid{grid-template-columns:1fr 1fr}
    .cp-order-row{grid-template-columns:1fr}
}
.report-order-body{display:none;border-top:1px solid #e5e7eb;padding:12px}
.report-order-card.open .report-order-body{display:block}
.report-inner-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px;margin-bottom:10px}
.report-inner-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:9px;font-size:12px;font-weight:850}
.report-line{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #e5e7eb;padding:7px 0;font-size:13px}
.report-line:last-child{border-bottom:0}
.report-pager{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px}
@media(max-width:900px){
    .report-filter-grid{grid-template-columns:1fr 1fr}
    .report-filter-grid .wide{grid-column:1/-1}
    .report-stats-grid{grid-template-columns:1fr 1fr}
    .report-inner-grid{grid-template-columns:1fr}
}


.report-summary-panel,.report-items-panel{
    margin:0 0 18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:16px;
    box-shadow:0 14px 36px rgba(15,23,42,.06);
}
.summary-filter-grid,.item-filter-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1.2fr auto auto;
    gap:8px;
    margin-bottom:12px;
}
.summary-filter-grid{grid-template-columns:1fr 1fr 1fr auto}
.summary-filter-grid input,.summary-filter-grid select,.item-filter-grid input,.item-filter-grid select{
    min-height:42px;
    border:1px solid #cbd5e1;
    border-radius:13px;
    padding:0 10px;
    font-weight:850;
    background:#fff;
}
.summary-hero{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:12px;
    margin-top:12px;
}
.summary-card-big{
    background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
    color:#fff;
    border-radius:22px;
    padding:18px;
    box-shadow:0 20px 44px rgba(37,99,235,.22);
}
.summary-card-big small{display:block;text-transform:uppercase;letter-spacing:.5px;font-weight:900;color:#bfdbfe}
.summary-card-big strong{display:block;font-size:32px;margin-top:6px}
.summary-mini-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:12px;
}
.summary-mini{
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:11px;
    background:#f8fafc;
}
.summary-mini:nth-child(2n){background:#ecfeff}.summary-mini:nth-child(3n){background:#f0fdf4}.summary-mini:nth-child(4n){background:#fff7ed}
.summary-mini small{display:block;color:#64748b;font-size:10px;text-transform:uppercase;font-weight:1000;letter-spacing:.3px}
.summary-mini strong{display:block;margin-top:5px;font-size:19px;color:#0f172a}
.summary-compare{background:#f8fafc;border:1px solid #e5e7eb;border-radius:22px;padding:14px}
.summary-compare h3{margin:0 0 10px}.compare-line{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #cbd5e1;padding:8px 0;font-weight:850}.compare-line:last-child{border-bottom:0}
.item-stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}
.item-stat{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:10px}.item-stat small{display:block;color:#64748b;font-weight:900;text-transform:uppercase;font-size:10px}.item-stat strong{display:block;margin-top:5px;color:#0f172a;font-size:18px}
.item-sales-list{display:grid;gap:9px}.item-sale-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;overflow:hidden}.item-sale-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;background:linear-gradient(135deg,#fff,#eef2ff)}.item-rank{width:42px;height:42px;border-radius:14px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:1000}.item-sale-head strong{display:block;color:#0f172a}.item-sale-head small{display:block;color:#64748b;font-weight:800;margin-top:3px}.item-sale-money{text-align:right;font-weight:1000;color:#166534}.item-sale-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;border-top:1px solid #e5e7eb}.item-sale-details div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:9px;font-size:12px;font-weight:850}.item-pager{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px}
@media(max-width:900px){.summary-filter-grid,.item-filter-grid{grid-template-columns:1fr 1fr}.summary-hero{grid-template-columns:1fr}.summary-mini-grid{grid-template-columns:1fr 1fr}.item-stats-grid{grid-template-columns:1fr 1fr}.item-sale-details{grid-template-columns:1fr 1fr}.item-filter-grid .wide{grid-column:1/-1}}
@media(max-width:560px){.summary-mini-grid,.item-stats-grid,.item-sale-details{grid-template-columns:1fr}.item-sale-head{grid-template-columns:1fr}.item-sale-money{text-align:left}}


/* V82: Mobile UX polish for Reports page only */
@media(max-width:720px){
    body{
        background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 45%,#fff7ed 100%);
    }
    .report-shell{
        padding:12px 10px 26px;
    }
    .head{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
        margin-bottom:12px;
        padding:12px;
        border-radius:22px;
        background:#fff;
        color:#0f172a;
        border:1px solid #e5e7eb;
        box-shadow:0 10px 26px rgba(15,23,42,.07);
    }
    .head h1{
        font-size:24px !important;
        line-height:1.08;
        letter-spacing:-.02em;
        color:#0f172a;
    }
    .head p,
    .head small{
        color:#64748b !important;
    }
    .head .ghost-btn,
    .head .solid-btn,
    .head a{
        width:100%;
        justify-content:center;
        min-height:42px;
        border-radius:14px;
    }
    /* Logout isn't needed in the mobile header -- hide it here only;
       desktop keeps it untouched. "html body" prefix so this beats the
       later unconditional ".head .inline-actions{display:flex}" rule
       further down the stylesheet, which has the same specificity otherwise. */
    html body .head .inline-actions{
        display:none !important;
    }

    .report-past-panel,
    .report-summary-panel,
    .report-items-panel,
    .report-control,
    .report-box,
    .search-card{
        border-radius:22px;
        padding:13px;
        margin-bottom:14px;
        box-shadow:0 10px 26px rgba(15,23,42,.07);
    }

    .report-past-head{
        display:grid;
        grid-template-columns:1fr;
        gap:9px;
        margin-bottom:10px;
    }
    .report-past-head h2,
    .section-heading h2,
    .report-control h2{
        font-size:21px !important;
        line-height:1.12;
        letter-spacing:-.02em;
    }
    .report-past-head p,
    .section-heading p,
    .report-control p{
        font-size:13px;
        line-height:1.42;
    }
    .report-past-head .solid-btn,
    .report-past-head .ghost-btn,
    .report-past-head a{
        width:100%;
        justify-content:center;
        min-height:44px;
        border-radius:14px;
    }

    .report-filter-grid,
    .summary-filter-grid,
    .item-filter-grid,
    .search-grid{
        grid-template-columns:1fr !important;
        gap:9px;
    }
    .report-filter-grid input,
    .report-filter-grid select,
    .summary-filter-grid input,
    .summary-filter-grid select,
    .item-filter-grid input,
    .item-filter-grid select,
    .search-grid input,
    .search-grid select{
        width:100%;
        min-height:46px;
        border-radius:14px;
        font-size:14px;
        background:#fff;
    }
    .report-filter-grid button,
    .summary-filter-grid button,
    .item-filter-grid button,
    .search-grid button{
        width:100%;
        min-height:46px;
        border-radius:14px;
    }

    .report-stats-grid,
    .item-stats-grid,
    .stats,
    .summary-mini-grid{
        grid-template-columns:1fr 1fr !important;
        gap:8px;
    }
    .report-stat,
    .item-stat,
    .stat,
    .summary-mini{
        border-radius:16px;
        padding:10px;
        min-height:78px;
    }
    .report-stat small,
    .item-stat small,
    .stat span,
    .summary-mini small{
        font-size:10px;
        line-height:1.15;
    }
    .report-stat strong,
    .item-stat strong,
    .stat strong,
    .summary-mini strong{
        font-size:18px !important;
        line-height:1.15;
        word-break:break-word;
    }

    .summary-hero{
        grid-template-columns:1fr !important;
        gap:10px;
    }
    .summary-card-big{
        border-radius:20px;
        padding:15px;
    }
    .summary-card-big strong{
        font-size:27px;
        line-height:1.1;
    }
    .summary-compare{
        border-radius:18px;
        padding:12px;
    }
    .compare-line{
        display:grid;
        grid-template-columns:1fr;
        gap:4px;
        padding:8px 0;
        font-size:13px;
    }

    .report-order-card,
    .item-sale-card{
        border-radius:17px;
        box-shadow:0 8px 22px rgba(15,23,42,.05);
    }
    .report-order-head{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
        padding:12px;
    }
    .report-order-head strong{
        font-size:15px;
        line-height:1.22;
    }
    .report-order-head small{
        font-size:12px;
        line-height:1.35;
    }
    .report-pill{
        width:max-content;
        max-width:100%;
        padding:7px 10px;
        font-size:11px;
    }
    .report-order-body{
        padding:11px;
    }
    .report-inner-grid{
        grid-template-columns:1fr !important;
        gap:8px;
    }
    .report-inner-box{
        border-radius:13px;
        font-size:12px;
        line-height:1.42;
    }
    .report-line{
        display:grid;
        grid-template-columns:1fr auto;
        gap:8px;
        align-items:start;
        font-size:12px;
    }

    .item-sale-head{
        grid-template-columns:44px minmax(0,1fr) !important;
        gap:9px;
        padding:11px;
    }
    .item-rank{
        width:40px;
        height:40px;
        border-radius:13px;
    }
    .item-sale-money{
        grid-column:1 / -1;
        text-align:left !important;
        background:#ecfdf5;
        border:1px solid #bbf7d0;
        color:#166534;
        border-radius:13px;
        padding:9px 10px;
        width:100%;
    }
    .item-sale-details{
        grid-template-columns:1fr 1fr !important;
        gap:8px;
        padding:11px;
    }
    .item-sale-details div{
        border-radius:13px;
        font-size:12px;
        line-height:1.35;
    }

    .report-pager,
    .item-pager{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
        text-align:center;
    }
    .report-pager button,
    .item-pager button{
        width:100%;
        min-height:44px;
        border-radius:14px;
    }
    .report-pager strong,
    .item-pager strong{
        order:-1;
        display:block;
        background:#f8fafc;
        border:1px solid #e5e7eb;
        border-radius:14px;
        padding:10px;
    }

    .table-card{
        border-radius:18px;
        margin-top:12px;
        -webkit-overflow-scrolling:touch;
    }
    th,td{
        padding:10px;
        font-size:12px;
    }
    .empty-report{
        border-radius:18px;
        padding:16px;
        font-size:13px;
        line-height:1.45;
    }
}

@media(max-width:380px){
    .report-stats-grid,
    .item-stats-grid,
    .stats,
    .summary-mini-grid,
    .item-sale-details{
        grid-template-columns:1fr !important;
    }
}

/* ==== reports-navhead-v1 (extracted from reports.php inline <style>) ==== */
/* Main section headings: blue banner so each report block is easy to spot.
   The heading sits in a wrapper div next to an optional Download button, so
   style the wrapper as the banner and let the button stay outside it. */
.report-past-head{
    align-items:center !important;
    gap:10px !important;
    margin-bottom:14px !important;
}
.report-past-head > div:first-child{
    flex:1 1 auto;
    min-width:0;
    background:linear-gradient(135deg,#0f172a,#2563eb);
    border-radius:16px;
    padding:12px 16px;
    box-shadow:0 10px 26px rgba(37,99,235,.22);
}
.report-past-head > div:first-child h2{
    color:#fff !important;
    font-size:19px !important;
    letter-spacing:-.01em;
    text-transform:uppercase;
    line-height:1.25;
}
.report-past-head > div:first-child p{
    color:rgba(255,255,255,.82) !important;
}
@media(max-width:640px){
    .report-past-head > div:first-child{
        padding:10px 12px;
        border-radius:14px;
    }
    .report-past-head > div:first-child h2{font-size:15px !important;}
}

/* ===== NAVHEAD: burger drawer with index.php page list (all screen sizes) ===== */
.navhead-hidden-status{display:none !important;}
.bill-navhead{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 0 12px !important;
    min-height:0 !important;
}
.navhead-burger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:46px;height:46px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    padding:0 12px;
    flex-shrink:0;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:box-shadow .15s ease, transform .15s ease;
}
.navhead-burger:hover{box-shadow:0 10px 26px rgba(0,0,0,.10);transform:translateY(-1px);}
.navhead-burger span{display:block;height:2.5px;width:100%;border-radius:3px;background:#0f172a;}
.navhead-page-title{
    font-size:16px;
    font-weight:1000;
    color:#0f172a;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    min-width:0;
}
.navhead-lead{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
@media(max-width:640px){
    .navhead-page-title{font-size:14px;}
    .navhead-lead{gap:9px;}
}
/* create-posts.php puts the burger on a dark gradient hero, so the dark
   default would be unreadable there. */
.cp-hero .navhead-page-title{color:#fff;}
@media print{.navhead-page-title,.navhead-lead{display:none !important;}}

/* Drawer: identical behaviour on desktop and mobile */
.navhead-links{
    position:fixed;
    top:0;left:0;bottom:0;
    width:min(300px,86vw);
    background:#fff;
    border-right:1px solid var(--line);
    box-shadow:0 0 60px rgba(0,0,0,.22);
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:4px;
    padding:18px 12px;
    overflow-y:auto;
    z-index:99998;
    transform:translateX(-102%);
    transition:transform .22s ease;
}
.navhead-links.open{transform:translateX(0);}
.navhead-link{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 12px;
    border-radius:12px;
    text-decoration:none;
    color:#334155;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
    transition:background .15s ease,color .15s ease;
}
.navhead-link:hover{background:#f1f5f9;color:#0f172a;}
.navhead-link.active{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;}
.navhead-ico{font-size:17px;line-height:1;}
.navhead-backdrop{
    position:fixed;inset:0;
    background:rgba(15,23,42,.5);
    z-index:99997;
    opacity:0;pointer-events:none;
    transition:opacity .22s ease;
}
.navhead-backdrop.open{opacity:1;pointer-events:auto;}


/* Burger takes the place of the old logo + brand name on the left */
.head{align-items:center !important;}
.navhead-burger{flex-shrink:0 !important;}
.head .inline-actions{
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-shrink:0 !important;
}

/* ==== report-sections-nav-v1 ==== */
/* Lets the person jump straight to one report block.
   Desktop (>960px): a permanent, always-visible sidebar fixed to the left
   edge -- no click needed to reveal it, content shifts right to make room.
   Mobile/narrow (<=960px): the same list becomes a toggled drawer sliding
   in from the left (mirrors the existing page-nav drawer's mechanics), with
   a bold centered "Sections" bar under the header as the trigger, since
   there's no room for a permanent sidebar at that width. */
.report-section-panel{display:none;}
.report-section-panel.active{display:block;}

.report-sections-nav{
    position:fixed;
    top:0;left:0;bottom:0;
    width:264px;
    background:#fff;
    border-right:1px solid var(--line);
    display:flex;
    flex-direction:column;
    gap:5px;
    padding:22px 14px;
    overflow-y:auto;
    z-index:998;
}
.report-sections-nav-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:2px 8px 16px;
    font-weight:1000;
    font-size:12px;
    letter-spacing:.09em;
    text-transform:uppercase;
    color:#64748b;
}
.report-sections-close{
    display:none;
    border:0;background:transparent;font-size:22px;line-height:1;
    color:#64748b;cursor:pointer;padding:2px 6px;
}
.report-sections-link{
    display:flex;
    align-items:center;
    gap:11px;
    border:0;
    background:transparent;
    text-align:left;
    padding:13px 14px;
    border-radius:14px;
    color:#334155;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    font:inherit;
    line-height:1.3;
    transition:background .15s ease,color .15s ease,transform .15s ease;
}
.report-sections-link:hover{background:#f1f5f9;color:#0f172a;transform:translateX(2px);}
.report-sections-link.active{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.28);}
.report-sections-ico{font-size:19px;line-height:1;flex-shrink:0;}

/* Shifts the page content right to make room for the fixed 264px sidebar,
   on desktop only -- see the <=960px override below. */
body{padding-left:264px;}

.report-sections-backdrop{display:none;}

/* Mobile-only trigger bar -- hidden on desktop, where the sidebar above is
   always visible instead and no toggle is needed. Sits inside the normal
   page flow (right under the header, inside .report-shell) instead of
   floating above everything else on its own. */
.report-sections-mobile-bar{
    display:none;
}
.report-sections-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    width:100%;
    border:0;
    border-radius:16px;
    background:linear-gradient(135deg,#1e3a8a,#2563eb);
    padding:0 18px;
    height:54px;
    cursor:pointer;
    box-shadow:0 12px 28px rgba(37,99,235,.28);
    transition:box-shadow .15s ease, transform .15s ease;
}
.report-sections-toggle:hover{box-shadow:0 14px 32px rgba(37,99,235,.36);transform:translateY(-1px);}
.report-sections-toggle-bars{
    display:flex;
    flex-direction:column;
    gap:4px;
    flex-shrink:0;
}
.report-sections-toggle-bars span{
    display:block;height:3px;width:22px;border-radius:3px;background:#fff;
}
.report-sections-toggle-label{font-size:16px;font-weight:1000;letter-spacing:.02em;color:#fff;}

@media(max-width:960px){
    body{padding-left:0;}

    .report-sections-nav{
        width:min(300px,86vw);
        box-shadow:0 0 60px rgba(0,0,0,.22);
        z-index:99998;
        transform:translateX(-102%);
        transition:transform .22s ease;
    }
    .report-sections-nav.open{transform:translateX(0);}
    .report-sections-nav-head{
        text-transform:none;
        font-size:17px;
        color:#0f172a;
        padding:2px 6px 12px;
    }
    .report-sections-close{display:block;}

    .report-sections-backdrop{
        display:block;
        position:fixed;inset:0;
        background:rgba(15,23,42,.5);
        z-index:99997;
        opacity:0;pointer-events:none;
        transition:opacity .22s ease;
    }
    .report-sections-backdrop.open{opacity:1;pointer-events:auto;}

    /* Full-width trigger bar sitting right under the main header, inside
       the normal content flow. */
    .report-sections-mobile-bar{
        display:block;
        margin:0 0 16px;
    }
}
@media(max-width:640px){
    .report-sections-toggle{height:50px;}
    .report-sections-toggle-label{font-size:15px;}
}
@media print{.report-sections-nav,.report-sections-mobile-bar,.report-sections-backdrop{display:none !important;}body{padding-left:0 !important;}}


/* ==== V8-reports-inline-style-1 ==== */
/* REPORT_TIMING_FILTER_V1: scoped styling for the "By Timing" info label.
   Kept here (instead of reports-page.css) since that stylesheet wasn't
   provided for editing. Safe to move into reports-page.css later. */
.report-timing-hint{display:inline-block;color:#64748b;font-weight:700;font-size:12px;padding:8px 10px;border-radius:10px;background:#f1f5f9;}
