/* Backflow Sales Tracker Styles */

/* Dashboard Cards */
.bst-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.bst-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.bst-card h2 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bst-card .bst-amount {
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    margin: 10px 0;
    line-height: 1;
}

.bst-card .bst-week-range {
    font-size: 13px;
    color: #646970;
    margin: 5px 0;
}

/* Sections */
.bst-section {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    border-radius: 4px;
}

.bst-section h2 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
    font-size: 18px;
}

/* Tables */
.bst-section table {
    margin-top: 0;
}

.bst-section table th,
.bst-section table td {
    padding: 12px 10px;
}

.bst-section table tfoot th {
    background: #f6f7f7;
    font-size: 16px;
}

/* Actions */
.bst-actions {
    margin: 30px 0;
    text-align: center;
}

.bst-actions .button-hero {
    padding: 15px 30px;
    height: auto;
    line-height: 1;
    font-size: 16px;
}

/* Admin Stats Grid */
.bst-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bst-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.bst-stat-card h3 {
    margin: 0 0 15px 0;
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bst-stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #2271b1;
    margin: 0;
    line-height: 1;
}

/* Filter Form */
.bst-filter-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.bst-filter-form label {
    display: inline-block;
    margin: 0 10px 0 20px;
    font-weight: 600;
}

.bst-filter-form label:first-of-type {
    margin-left: 0;
}

.bst-filter-form select {
    margin-right: 10px;
}

/* Report Total */
.bst-report-total {
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.bst-report-total h3 {
    margin: 0;
    font-size: 24px;
    color: #1d2327;
}

/* Quick Stats */
.bst-quick-stats {
    margin: 30px 0;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .bst-summary-cards,
    .bst-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bst-card .bst-amount,
    .bst-stat-number {
        font-size: 28px;
    }
    
    .bst-filter-form label,
    .bst-filter-form select,
    .bst-filter-form .button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

/* ACF Field Styling */
.acf-field[data-name="devices"] .acf-table {
    background: #f9f9f9;
}

.acf-field[data-name="devices"] .acf-row {
    background: #fff;
}

/* Commission Status Indicator */
.bst-commission-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.bst-commission-status.active {
    background: #d4edda;
    color: #155724;
}

.bst-commission-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Loading State */
.bst-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notice Styling */
.bst-notice {
    margin: 15px 0;
    padding: 12px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}

.bst-notice.error {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.bst-notice.success {
    border-left-color: #00a32a;
    background: #edfaef;
}
