:root {
  --blue: #1F4E79;
  --blue-light: #2E75B6;
  --green: #1e7e34;
  --red: #c0392b;
  --orange: #e67e22;
  --grey: #6c757d;
  --bg: #f8f9fa;
  --border: #dee2e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; background: var(--bg); color: #212529; }

nav { background: var(--blue); color: white; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.logo { color: white; text-decoration: none; font-weight: 700; font-size: 16px; }
.nav-sub { opacity: .6; font-size: 12px; }

main { max-width: 1400px; margin: 0 auto; padding: 24px; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 16px; }
.page-header h1 { font-size: 20px; color: var(--blue); margin-bottom: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.back { color: var(--blue-light); text-decoration: none; font-size: 13px; display: block; margin-bottom: 4px; }
.back:hover { text-decoration: underline; }

.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Badges */
.badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.pending    { background: #e9ecef; color: var(--grey); }
.badge.analyzed   { background: #cff4fc; color: #0c5460; }
.badge.in_review  { background: #fff3cd; color: #856404; }
.badge.approved   { background: #d1e7dd; color: var(--green); }
.badge.exported   { background: #d0d0ff; color: #3333aa; }

.status-dot { font-size: 11px; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.status-dot.status-pending   { background: #e9ecef; color: var(--grey); }
.status-dot.status-approved  { background: #d1e7dd; color: var(--green); }
.status-dot.status-rejected  { background: #f8d7da; color: var(--red); }

/* Knoppen */
.btn { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-light); }
.btn-export { background: #6c757d; color: white; }
.btn-export:hover { background: #495057; }
.btn-copy { background: var(--green); color: white; margin-top: 8px; }
.btn-sm { font-size: 12px; color: var(--blue-light); text-decoration: none; padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; }
.btn-sm:hover { background: white; }

.btn-icon { width: 26px; height: 26px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 700; background: transparent; }
.btn-icon.approve { color: var(--green); }
.btn-icon.approve:hover { background: #d1e7dd; }
.btn-icon.reject  { color: var(--red); }
.btn-icon.reject:hover  { background: #f8d7da; }
.btn-icon.expand  { color: var(--grey); }
.btn-icon.expand:hover  { background: #e9ecef; }

/* Tabellen */
.cat-table, .option-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cat-table th, .option-table th { background: var(--blue); color: white; padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; }
.cat-table td, .option-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cat-table tr:last-child td, .option-table tr:last-child td { border-bottom: none; }
.cat-table tr:hover td { background: #f0f6ff; }

.row-approved td { opacity: .7; }
.row-exported td { opacity: .5; }

.opt-row.opt-rejected td { opacity: .4; text-decoration: line-through; }
.opt-row.opt-approved { background: #f8fff9; }

.num { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.dim { color: var(--grey); }
.small { font-size: 12px; }
.vol-high { color: var(--green); font-weight: 700; }
.actions { white-space: nowrap; }

/* Filter cards */
.filter-card { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 20px; overflow: hidden; }
.filter-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f0f6ff; border-bottom: 1px solid var(--border); }
.filter-pos { font-size: 11px; color: var(--grey); margin-right: 8px; }
.filter-name { font-size: 15px; color: var(--blue); margin-right: 8px; }
.filter-actions { display: flex; align-items: center; gap: 8px; }

.tag { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #e9ecef; color: #495057; margin-right: 4px; }
.tag-new { background: #cff4fc; color: #0c5460; }
.tag-existing { background: #d1e7dd; color: var(--green); }

/* CSU toggle */
.csu-toggle { background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; cursor: pointer; font-size: 13px; }
.csu-toggle.csu-on { background: #cff4fc; border-color: #0c5460; }

/* CSU sectie */
.csu-section { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 20px; margin-top: 24px; }
.csu-section h2 { font-size: 16px; color: var(--blue); margin-bottom: 8px; }
.csu-preview { background: #f8f9fa; border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-family: monospace; font-size: 12px; overflow-x: auto; white-space: pre; max-height: 300px; overflow-y: auto; margin-top: 8px; }

/* Notities */
.notes-input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; resize: vertical; min-height: 60px; margin-bottom: 20px; font-family: inherit; }
.notes-block { background: #fff3cd; border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }

/* Products */
.products-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.product-tag { background: #f0f6ff; border: 1px solid #c8d8f0; border-radius: 4px; padding: 2px 8px; font-size: 12px; color: var(--blue); }

.empty { text-align: center; padding: 48px; color: var(--grey); }
.empty code { background: #e9ecef; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
