/* ================================================================
   REPORTS DASHBOARD
   ================================================================ */
#report-view {
    display: none;
    padding: 6px;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #808080;
}

.report-header .section-label { margin: 0; border: none; padding: 0; font-size: 12px; }

#btn-back-catalog {
    background: #d4d0c8;
    border-top: 1px solid #ffffff; border-left: 1px solid #ffffff;
    border-right: 1px solid #808080; border-bottom: 1px solid #808080;
    font-family: Tahoma, 'MS Sans Serif', Arial, sans-serif;
    font-size: 10px; padding: 2px 10px; cursor: pointer; color: #000000;
}
#btn-back-catalog:active {
    border-top: 1px solid #808080; border-left: 1px solid #808080;
    border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff;
}

/* ── Summary Cards ── */
.report-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.report-card {
    background: #d4d0c8;
    border-top: 2px solid #ffffff; border-left: 2px solid #ffffff;
    border-right: 2px solid #808080; border-bottom: 2px solid #808080;
    padding: 10px 8px;
    text-align: center;
}

.report-card-number {
    font-size: 22px;
    font-weight: bold;
    color: #000080;
}

.report-card-label {
    font-size: 10px;
    color: #444;
    margin-top: 2px;
}

/* ── Category Table ── */
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.report-table th {
    background: #c0bdb5;
    text-align: left;
    padding: 3px 6px;
    border: 1px solid #808080;
    font-size: 10px;
}
.report-table td {
    padding: 3px 6px;
    border: 1px solid #c8c8c8;
}
.report-table tr:hover td {
    background: #e8e8f8;
}

/* ── Price Distribution Bars ── */
.report-bars {
    padding: 4px 0;
}
.report-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.report-bar-label {
    font-size: 10px;
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}
.report-bar-track {
    flex: 1;
    height: 14px;
    background: #d4d0c8;
    border-top: 1px solid #808080; border-left: 1px solid #808080;
    border-right: 1px solid #dfdfdf; border-bottom: 1px solid #dfdfdf;
}
.report-bar-fill {
    height: 100%;
    background: #000080;
    min-width: 1px;
}
.report-bar-count {
    font-size: 10px;
    width: 30px;
    flex-shrink: 0;
    font-weight: bold;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .report-cards { grid-template-columns: repeat(2, 1fr); }
    .report-bar-label { width: 80px; font-size: 9px; }
}
