.reports-module {
    display: grid;
    gap: 20px;
}

.reports-header {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #f8fafc;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}

.reports-header h2 {
    margin: 0;
    font-size: 28px;
}

.reports-header p {
    margin: 10px 0 0;
    color: #cbd5e1;
}

.reports-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reports-category {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.reports-category h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.reports-category-label {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.reports-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.reports-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    gap: 6px;
    background: #f8fafc;
}

.reports-item-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.reports-item-title {
    font-weight: 600;
    color: #0f172a;
}

.reports-pill {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.reports-pill-ready {
    background: #dcfce7;
    color: #166534;
}

.reports-pill-soon {
    background: #e2e8f0;
    color: #334155;
}

.reports-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.reports-item button {
    width: fit-content;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    padding: 7px 11px;
    cursor: pointer;
}

.reports-item button[disabled] {
    background: #94a3b8;
    cursor: not-allowed;
}

.reports-result {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
}

.reports-result h3 {
    margin: 0 0 10px;
}

.reports-result pre {
    margin: 0;
    font-size: 13px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
}

.reports-result-error {
    color: #b91c1c;
    font-weight: 600;
}
.reports-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.reports-ribbon label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.reports-ribbon select,
.reports-ribbon input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
}

.reports-ribbon button {
    border: none;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

.reports-result-meta {
    margin: 8px 0 12px;
    color: #334155;
    font-size: 13px;
}

.reports-analysis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.reports-analysis-summary > div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    display: grid;
    gap: 4px;
}

.reports-analysis-summary span {
    color: #64748b;
    font-size: 12px;
}

.reports-analysis-summary strong {
    color: #0f172a;
    font-size: 18px;
}

.reports-analysis-chart-wrap {
    height: 320px;
    margin-bottom: 12px;
}

.reports-analysis-stockouts h4 {
    margin: 0 0 8px;
}

.reports-analysis-stockouts ul {
    margin: 0;
    padding-left: 18px;
}
.reports-acquisition-actions {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.reports-acquisition-actions button {
    border: none;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

.reports-acquisition-output pre {
    margin-top: 8px;
}

.reports-analysis-sku-table {
    margin-bottom: 12px;
    overflow-x: auto;
}

.reports-sku-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.reports-sku-table th,
.reports-sku-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.reports-sku-table thead th {
    background: #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1;
}

.reports-sku-row {
    cursor: pointer;
}

.reports-sku-row:hover {
    background: #eff6ff;
}

.reports-wholesale-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.reports-wholesale-header h3 {
    margin: 0;
}

.reports-wholesale-header p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.reports-wholesale-table-wrap {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: auto;
    max-height: 70vh;
}

.reports-wholesale-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: #fff;
}

.reports-wholesale-table th,
.reports-wholesale-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.reports-wholesale-table thead th {
    background: #0f172a;
    color: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
}

.reports-wholesale-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.reports-wholesale-table tbody tr:hover {
    background: #eff6ff;
}

.reports-price-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reports-wholesale-col {
    font-weight: 700;
    color: #1d4ed8;
}
.reports-commission-summary-wrap {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: auto;
    margin-bottom: 14px;
}

.reports-commission-table,
.reports-commission-totals {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: #fff;
}

.reports-commission-table th,
.reports-commission-table td,
.reports-commission-totals th,
.reports-commission-totals td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.reports-commission-table thead th {
    background: #0f172a;
    color: #f8fafc;
}

.reports-commission-table tbody tr:nth-child(even),
.reports-commission-totals tbody tr:nth-child(even) {
    background: #f8fafc;
}

.reports-commission-totals {
    max-width: 520px;
    margin-left: auto;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.reports-commission-totals th {
    color: #334155;
    width: 60%;
}

.reports-commission-totals td,
.reports-number-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reports-commission-section-head {
    margin: 18px 0 8px;
}

.reports-commission-section-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.reports-commission-section-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.reports-commission-table tbody tr.reports-commission-unspecified-shop,
.reports-commission-table tbody tr.reports-commission-unspecified-shop:nth-child(even) {
    background: #fee2e2;
}

.reports-commission-labor-detail {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}
.reports-list,
.reports-sku-table,
.reports-wholesale-table,
.reports-commission-table,
.reports-commission-totals {
    font-family: var(--app-list-font-family);
    font-size: var(--app-list-font-size);
    line-height: var(--app-list-line-height);
    letter-spacing: var(--app-list-letter-spacing);
    color: var(--app-list-color);
}
.reports-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.reports-back-link:hover { text-decoration: underline; }
