.nsrb-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--nsrb-border); }
.nsrb-title { font-family: var(--nsrb-font); font-size: 32px; font-weight: 700; color: var(--nsrb-text); letter-spacing: -0.5px; line-height: 1.2; }
.nsrb-subtitle { font-size: 12px; font-weight: 400; color: var(--nsrb-text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
.nsrb-header-right { display: flex; gap: 12px; }

.nsrb-debug-panel { background: #050505; border: 2px dashed var(--nsrb-danger); border-radius: var(--nsrb-radius-lg); padding: 24px; margin-bottom: 32px; }
.nsrb-debug-title { font-size: 16px; font-weight: 700; color: var(--nsrb-danger); margin-bottom: 8px; font-family: var(--nsrb-font); }
.nsrb-debug-subtitle { font-size: 12px; color: var(--nsrb-text-muted); margin-bottom: 16px; font-family: var(--nsrb-font); }
.nsrb-debug-scroll { overflow-x: auto; border: 1px solid var(--nsrb-border); border-radius: 8px; }
.nsrb-debug-table { width: 100%; border-collapse: collapse; font-family: var(--nsrb-font); font-size: 12px; color: var(--nsrb-text); }
.nsrb-debug-table th { background: #1a0505; padding: 10px; text-align: left; border-bottom: 1px solid var(--nsrb-border); color: var(--nsrb-danger); }
.nsrb-debug-table td { padding: 10px; border-bottom: 1px solid var(--nsrb-border); }
.nsrb-debug-table tr:hover { background: #111; }

.nsrb-filter-bar { background: var(--nsrb-surface); border: 1px solid var(--nsrb-border); border-radius: var(--nsrb-radius-lg); padding: 20px; margin-bottom: 24px; }
.nsrb-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nsrb-form-group { display: flex; flex-direction: column; gap: 8px; }
.nsrb-form-group-full { grid-column: 1 / -1; }
.nsrb-label { font-family: var(--nsrb-font); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--nsrb-text-secondary); }
.nsrb-required { color: var(--nsrb-danger); }
.nsrb-textarea { resize: vertical; min-height: 90px; }

.nsrb-stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.nsrb-stat-card { background: var(--nsrb-surface); border: 1px solid var(--nsrb-border); border-radius: var(--nsrb-radius-lg); padding: 20px; text-align: center; }
.nsrb-stat-num { display: block; font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.nsrb-stat-label { font-size: 12px; text-transform: uppercase; color: var(--nsrb-text-muted); letter-spacing: 1px; }
.nsrb-stat-overdue .nsrb-stat-num { color: var(--nsrb-danger); }
.nsrb-stat-today .nsrb-stat-num { color: var(--nsrb-warning); }
.nsrb-stat-amount .nsrb-stat-num { color: var(--nsrb-primary); }

.nsrb-section-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--nsrb-border); }
.nsrb-table-wrapper { background: var(--nsrb-surface); border: 1px solid var(--nsrb-border); border-radius: var(--nsrb-radius-lg); overflow: hidden; overflow-x: auto; margin-bottom: 24px; }
.nsrb-table { width: 100%; border-collapse: collapse; font-family: var(--nsrb-font); font-size: 14px; }
.nsrb-table thead { background: var(--nsrb-surface-2); }
.nsrb-table th { padding: 16px 20px; text-align: left; font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--nsrb-text-secondary); border-bottom: 1px solid var(--nsrb-border); white-space: nowrap; }
.nsrb-table td { padding: 16px 20px; color: var(--nsrb-text); border-bottom: 1px solid var(--nsrb-border); vertical-align: middle; }
.nsrb-table tbody tr:hover { background: var(--nsrb-surface-2); }
.nsrb-th-actions { width: 140px; text-align: center; }

.nsrb-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 8px; }
.nsrb-badge-invoice { background: rgba(139, 149, 255, 0.2); color: var(--nsrb-primary); border: 1px solid var(--nsrb-primary); }
.nsrb-badge-lead { background: rgba(76, 175, 80, 0.2); color: var(--nsrb-success); border: 1px solid var(--nsrb-success); }
.nsrb-badge-customer { background: rgba(255, 193, 7, 0.2); color: var(--nsrb-warning); border: 1px solid var(--nsrb-warning); }
.nsrb-days-pending { font-weight: 700; color: var(--nsrb-danger); }

.nsrb-action-btns { display: flex; gap: 8px; justify-content: center; }
.nsrb-btn-icon-sm { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 14px; border: 1px solid var(--nsrb-border); border-radius: 8px; background: transparent; color: var(--nsrb-text-secondary); cursor: pointer; text-decoration: none; transition: all var(--nsrb-transition); }
.nsrb-btn-call:hover { color: var(--nsrb-primary); border-color: var(--nsrb-primary); }
.nsrb-btn-wa:hover { color: var(--nsrb-success); border-color: var(--nsrb-success); }
.nsrb-btn-log:hover { color: var(--nsrb-warning); border-color: var(--nsrb-warning); }

.nsrb-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 99999; align-items: center; justify-content: center; }
.nsrb-modal-overlay.nsrb-active { display: flex; }
.nsrb-modal { width: 90%; max-width: 600px; background: var(--nsrb-surface-2); border: 1px solid var(--nsrb-border); border-radius: var(--nsrb-radius-lg); box-shadow: var(--nsrb-shadow-lg); }
.nsrb-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 16px; border-bottom: 1px solid var(--nsrb-border); }
.nsrb-modal-title { font-size: 20px; font-weight: 600; color: var(--nsrb-text); }
.nsrb-modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--nsrb-text-secondary); background: transparent; border: 1px solid var(--nsrb-border); border-radius: 8px; cursor: pointer; }
.nsrb-form { padding: 28px; }
.nsrb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.nsrb-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--nsrb-border); }

@media print {
    body, .nsrb-container { background: #ffffff !important; color: #000000 !important; padding: 0 !important; margin: 0 !important; }
    .nsrb-header-right, .nsrb-filter-bar, .nsrb-modal-overlay, .nsrb-toast, .nsrb-no-print, .nsrb-btn, .nsrb-debug-panel { display: none !important; }
    .nsrb-title { color: #000000; font-size: 24px; }
    .nsrb-subtitle { color: #555555; }
    .nsrb-stats-strip { border: 1px solid #000000; }
    .nsrb-stat-card { border: 1px solid #cccccc; background: #f9f9f9 !important; }
    .nsrb-stat-num, .nsrb-stat-label { color: #000000 !important; }
    .nsrb-table-wrapper { border: 1px solid #000000; background: #ffffff !important; }
    .nsrb-table th { background: #f0f0f0 !important; color: #000000 !important; border-bottom: 2px solid #000000; }
    .nsrb-table td { color: #000000 !important; border-bottom: 1px solid #cccccc; }
    .nsrb-badge { border: 1px solid #000000 !important; color: #000000 !important; background: transparent !important; }
    .nsrb-days-pending { color: #ff0000 !important; }
    .nsrb-section-title { color: #000000; border-bottom: 2px solid #000000; }
}

@media (max-width: 1024px) and (min-width: 641px) { .nsrb-filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .nsrb-header { flex-direction: column; align-items: flex-start; gap: 16px; } .nsrb-header-right { width: 100%; flex-direction: column; } .nsrb-header-right .nsrb-btn { width: 100%; justify-content: center; } .nsrb-filter-grid { grid-template-columns: 1fr; } .nsrb-stats-strip { grid-template-columns: 1fr; } .nsrb-form-grid { grid-template-columns: 1fr; } .nsrb-container { padding: 20px 16px; } .nsrb-title { font-size: 24px; } }

.nsrb-debug-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; padding: 16px; background: #0a0a0a; border-radius: 8px; font-family: var(--nsrb-font); font-size: 12px; }
.nsrb-debug-grid div { padding: 8px; }
.nsrb-debug-grid strong { color: var(--nsrb-primary); }
