:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #7b8794;
  --line: #e1e7ec;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --pos: #15803d;
  --neg: #b91c1c;
  --warn: #b45309;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

/* ---- Side navigation ---- */
.layout { display: flex; align-items: stretch; min-height: 100vh; }

.sidebar {
  --sb-w: 232px;
  flex: 0 0 var(--sb-w); width: var(--sb-w);
  background: #0f172a; color: #cbd5e1;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  transition: flex-basis .18s ease, width .18s ease;
}
.sidebar.icons { --sb-w: 66px; }

.sb-head { display: flex; align-items: center; gap: .5rem; padding: .85rem .9rem;
  border-bottom: 1px solid #1e293b; }
.sidebar .brand { color: #fff; font-weight: 700; font-size: 1.05rem; display: flex;
  align-items: center; gap: .5rem; white-space: nowrap; overflow: hidden; }
.brand-mark { background: var(--primary); color: #fff; border-radius: 6px;
  padding: .1rem .35rem; font-size: .9rem; letter-spacing: .02em; }
.sb-toggle { margin-left: auto; background: none; border: none; color: #94a3b8;
  cursor: pointer; padding: .35rem; border-radius: 6px; display: flex; }
.sb-toggle:hover { background: #1e293b; color: #fff; }
.sidebar.icons .sb-toggle { transform: rotate(180deg); }

.sb-nav { flex: 1; padding: .5rem; display: flex; flex-direction: column; gap: .1rem; }

.sb-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem;
  border-radius: 8px; color: #cbd5e1; font-weight: 500; font-size: .92rem;
  white-space: nowrap; position: relative; }
.sb-link:hover { background: #1e293b; color: #fff; text-decoration: none; }
.sb-link.active { background: var(--primary); color: #fff; }
.sb-link .ic, .section-header .ic, .sb-toggle .ic { flex: 0 0 20px; }

.section { display: flex; flex-direction: column; }
.section-header { display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .5rem .6rem; border: none; background: none; color: #94a3b8;
  font: inherit; font-weight: 600; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .03em; cursor: pointer; border-radius: 8px; white-space: nowrap; }
.section-header:hover { background: #1e293b; color: #fff; }
.section-header > .ic:last-child { margin-left: auto; transition: transform .15s ease; flex-basis: 16px; }
.section.open > .section-header > .ic:last-child { transform: rotate(90deg); }
.section-items { display: none; flex-direction: column; gap: .1rem; padding-left: .6rem; }
.section.open > .section-items { display: flex; }
.section-items .sb-link { font-size: .9rem; }

.sb-badges { margin-left: auto; display: flex; gap: .25rem; }
.sb-link .badge { font-size: .68rem; }

.sb-user { border-top: 1px solid #1e293b; padding: .5rem; display: flex; flex-direction: column; gap: .1rem; }
.sb-uname { padding: .35rem .6rem; color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; }

/* Icons-only (collapsed) mode: hide labels, flatten sections to an icon rail. */
.sidebar.icons .lbl,
.sidebar.icons .sb-badges .badge { display: none; }
.sidebar.icons .section-header { display: none; }
.sidebar.icons .section-items { display: flex; padding-left: 0; }
.sidebar.icons .section { border-top: 1px solid #1e293b; margin-top: .25rem; padding-top: .25rem; }
.sidebar.icons .sb-link, .sidebar.icons .sb-toggle { justify-content: center; gap: 0; }
.sidebar.icons .sb-uname { display: none; }
.sidebar.icons .brand-mark { margin: 0 auto; }
/* small dot to flag pending/rejected timesheets when collapsed */
.sidebar.icons .sb-link .sb-badges:not(:empty)::after {
  content: ""; position: absolute; top: 5px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--neg); }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mobile-topbar { display: none; }
.sb-backdrop { display: none; }

main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 1.5rem 1.75rem 4rem; }
main.centered { max-width: 420px; margin: 8vh auto 0; }

/* Mobile: sidebar becomes a slide-in drawer with a top bar + backdrop. */
@media (max-width: 820px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .2s ease; --sb-w: 240px; }
  .sidebar.icons { --sb-w: 240px; }         /* never icon-collapsed on mobile */
  .sidebar.icons .lbl, .sidebar.icons .section-header { display: initial; }
  .sidebar.icons .section-items { padding-left: .6rem; }
  .layout.nav-open .sidebar { transform: none; }
  .sb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .layout.nav-open .sb-backdrop { display: block; }
  .mobile-topbar { display: flex; align-items: center; gap: .75rem;
    background: #0f172a; color: #fff; height: 52px; padding: 0 .9rem;
    position: sticky; top: 0; z-index: 40; }
  .mobile-topbar .brand { color: #fff; font-weight: 700; }
  .mt-menu { background: none; border: none; color: #fff; cursor: pointer; padding: .3rem; display: flex; }
  main { padding: 1.25rem 1rem 3rem; }
}

h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }

.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.page-head .actions, .page-head .period-filter { display: flex; gap: .5rem; align-items: center; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.login-card { max-width: 360px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px){ .grid-2 { grid-template-columns: 1fr; } }

/* Forms */
label { display: block; font-size: .85rem; color: #52606d; margin-bottom: .9rem; }
input, select, textarea {
  width: 100%; padding: .5rem .6rem; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: .95rem; background: #fff; color: var(--ink);
  margin-top: .25rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px){ .form-grid { grid-template-columns: 1fr; } }
/* Each field: label on its own line, input directly below, consistent heights. */
.form-grid .field { display: flex; flex-direction: column; margin: 0; }
.form-grid .field > label { font-size: .85rem; color: #52606d; margin: 0 0 .3rem; min-height: 1.1em; }
.form-grid .field > input,
.form-grid .field > select,
.form-grid .field > textarea { margin: 0; }
.radios { display: flex; gap: 1.25rem; padding-top: .1rem; }
.radios .radio { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.radios input { width: auto; margin: 0; }
.form-actions { display: flex; gap: .75rem; margin-top: .5rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form input[type=text]{ margin: 0; }
label.inline { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; }
label.inline input { width: auto; margin: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: .45rem .85rem; border-radius: 8px;
  border: 1px solid #cbd5e1; background: #fff; color: var(--ink);
  font-size: .9rem; cursor: pointer; font-weight: 500; white-space: nowrap;
}
.btn:hover { background: #f1f5f9; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--neg); border-color: #f0c4c4; }
.btn.danger:hover { background: #fef2f2; }
.btn.small { padding: .25rem .55rem; font-size: .8rem; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.tbl.striped tbody tr:nth-child(even) { background: #fafbfc; }
.tbl th.sortable { padding: 0; }
.tbl th.sortable > a { display: block; padding: .5rem .6rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tbl th.sortable > a:hover { background: #eef2f7; color: var(--ink); }
.tbl th.sortable.sorted > a { color: var(--ink); }
.tbl th.sortable.num > a { text-align: right; }
.tbl th.sortable.center > a { text-align: center; }
.tbl th .arrow { margin-left: .25rem; font-size: .8em; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.small-text { font-size: .85rem; }
.desc { color: var(--muted); font-size: .8rem; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
tr.inactive td { opacity: .5; }
tr.dup { background: #fff7ed !important; }

.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 860px){ .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--muted);
       border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.kpi.income { border-left-color: var(--pos); }
.kpi.expense { border-left-color: var(--neg); }
.kpi.warn { border-left-color: var(--warn); }
.kpi-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.kpi-value { font-size: 1.5rem; font-weight: 700; }
.kpi-sub { font-size: .78rem; color: var(--muted); }

/* Filters / summary */
.filters { display: flex; flex-direction: column; gap: .6rem; }
.filters-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filters-dates { border-top: 1px solid var(--line); padding-top: .6rem; }
.filters input, .filters select { width: auto; margin: 0; }
.filters .filters-row > input[type=search] { min-width: 260px; }
.filters label { margin: 0; display: inline-flex; align-items: center; gap: .3rem; }
.summary-bar { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: .6rem 0; font-weight: 600; }
.center { text-align: center; }

/* Dropzone */
.dropzone { border: 2px dashed #b6c2cf; border-radius: 12px; background: #f8fafc; padding: 1.5rem;
            text-align: center; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--primary); background: #eff6ff; }
.dz-icon { font-size: 1.8rem; color: var(--primary); }
.dz-inner p { margin: .3rem 0; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.dz-list { list-style: none; padding: 0; margin: .75rem 0 0; text-align: left; font-size: .85rem; }
.dz-list li { padding: .2rem 0; color: #334155; }
.picked-row { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .9rem; }

/* Thumbnails / file links */
.thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; }
.thumb.pdf { display: inline-flex; align-items: center; justify-content: center; background: #fee2e2;
             color: #991b1b; font-size: .62rem; font-weight: 700; }
.file-link { display: inline-flex; align-items: center; gap: .5rem; }
.link-chip { display: inline-block; font-size: .78rem; padding: .15rem .5rem; border-radius: 6px;
             background: #eef2f7; margin: .1rem .2rem .1rem 0; border-left: 3px solid var(--muted); }
.link-chip.income { border-left-color: var(--pos); }
.link-chip.expense { border-left-color: var(--neg); }
.no-file { color: #cbd5e1; }

/* File indicator with hover preview */
.file-indicator { position: relative; cursor: pointer; font-weight: 600; }
.file-popover { display: none; position: absolute; z-index: 30; top: 100%; right: 0; min-width: 220px; max-width: 320px;
                background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
                padding: .5rem; text-align: left; }
.file-indicator:hover .file-popover { display: block; }
.fp-item { display: flex; align-items: center; gap: .5rem; padding: .3rem; border-radius: 6px; }
.fp-item:hover { background: #f1f5f9; text-decoration: none; }
.fp-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.fp-name { font-size: .8rem; word-break: break-word; }

/* Modal picker */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: flex; align-items: center;
         justify-content: center; z-index: 50; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 12px; width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; }
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.modal-head { border-bottom: 1px solid var(--line); }
.modal-foot { border-top: 1px solid var(--line); gap: .5rem; }
.modal-tools { display: flex; gap: 1rem; align-items: center; padding: .75rem 1.25rem; }
.modal-tools input[type=search] { flex: 1; margin: 0; }
.modal-wide { width: min(1000px, 100%); }
/* Two-pane library picker: scrollable list + preview sidebar */
.picker-body { display: flex; height: 65vh; border-top: 1px solid var(--line); min-height: 0; }
.picker-list { flex: 0 0 300px; overflow-y: auto; border-right: 1px solid var(--line); }
.pl-row { display: flex; align-items: flex-start; gap: .55rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.pl-row:hover { background: #f8fafc; }
.pl-row.active { background: #eff6ff; }
.pl-row .pl-check { width: auto; margin: .2rem 0 0; }
.pl-main { min-width: 0; }
.pl-name { font-size: .85rem; word-break: break-word; }
.pl-meta { margin-top: .25rem; display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; font-size: .75rem; }
.picker-preview { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-head { display: flex; align-items: center; gap: .75rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.pp-head .inline { margin: 0; white-space: nowrap; }
.pp-title { font-weight: 600; flex: 1; word-break: break-word; font-size: .9rem; }
.pp-body { flex: 1; overflow: auto; background: #eef2f7; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pp-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 2px 12px rgba(0,0,0,.18); border-radius: 4px; }
.pp-frame { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 4px; }
.pp-empty { padding: 2rem; text-align: center; }
@media (max-width: 720px){ .picker-body { flex-direction: column; height: 70vh; } .picker-list { flex: 0 0 40%; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Rule form */
.rule-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.rule-form label { margin: 0; font-size: .8rem; color: #52606d; }
.rule-form input, .rule-form select { margin-top: .2rem; }

/* Badges */
.badge { font-size: .72rem; padding: .1rem .45rem; border-radius: 20px; background: #e2e8f0; color: #475569; }
.badge.bon-Ja { background: #dcfce7; color: #166534; }
.badge.bon-Nee { background: #fee2e2; color: #991b1b; }
.badge.bon-Nvt { background: #e2e8f0; color: #475569; }
.badge.bon-Declaratie { background: #dbeafe; color: #1e40af; }
.badge.warn { background: #ffedd5; color: #9a3412; }

/* Attachments */
.attach-list { list-style: none; padding: 0; margin: 0; }
.attach-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }

/* AI matching */
.progress { height: 10px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin: .5rem 0; }
.progress-bar { height: 100%; background: var(--primary); transition: width .4s ease; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px){ .match-grid { grid-template-columns: 1fr; } }
.match-preview { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.match-preview .pp-body { height: 62vh; }
.match-side { display: flex; flex-direction: column; gap: 1.25rem; }
.match-side .tbl th { width: 34%; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.cand-list { display: flex; flex-direction: column; gap: .5rem; }
.cand { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; cursor: pointer; border-left-width: 4px; }
.cand:hover { background: #f8fafc; }
.cand:has(input:checked) { border-color: var(--primary); background: #eff6ff; }
.cand.high { border-left-color: var(--pos); }
.cand.med  { border-left-color: var(--warn); }
.cand.low  { border-left-color: #cbd5e1; }
.cand input { width: auto; margin: .2rem 0 0; }
.cand-body { flex: 1; min-width: 0; }
.cand-top { display: flex; justify-content: space-between; gap: .5rem; }
.cand-score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.cand-meta { font-size: .85rem; color: #475569; margin-top: .15rem; }
.cand-bars { font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* Transaction form: type + big amount on the top row */
.form-grid .field.tx-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tx-amount { text-align: right; }
.tx-amount label { text-align: right; }
input.amount-big { font-size: 1.8rem; font-weight: 700; text-align: right; width: 220px; padding: .35rem .5rem; }
@media (max-width: 560px){ .tx-top { flex-direction: column; } .tx-amount { text-align: left; width: 100%; } input.amount-big { width: 100%; text-align: left; } }

/* BTW detail (computed / multi-rate) */
#vat-detail.disabled { opacity: .5; pointer-events: none; }
.vat-computed { font-size: .9rem; padding: .2rem 0; }
.vat-multi-head, .vat-multi-row { display: grid; grid-template-columns: 200px 160px 40px; gap: .5rem; align-items: center; }
.vat-multi-head { font-size: .75rem; color: var(--muted); text-transform: uppercase; margin-bottom: .3rem; }
.vat-multi-row { margin-bottom: .4rem; }
.vat-multi-row select, .vat-multi-row input { margin: 0; }
.vat-multi-total { display: inline-block; margin-left: .5rem; font-weight: 600; }

/* Selected-files list with remove */
.dz-list li { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }

/* Linked files: list + preview */
.linked-list { display: flex; flex-direction: column; gap: .5rem; overflow-y: auto; max-height: 62vh; }
.linked-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
              border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; cursor: pointer; }
.linked-row:hover { background: #f8fafc; }
.linked-row.active { border-color: var(--primary); background: #eff6ff; }
.ll-name { font-size: .88rem; word-break: break-word; }
.ll-meta { margin-top: .2rem; display: flex; gap: .4rem; align-items: center; font-size: .78rem; }
.ll-actions { display: flex; gap: .35rem; align-items: center; white-space: nowrap; }
.linked-preview { display: flex; flex-direction: column; }
.linked-preview .pp-body { height: 62vh; border: 1px solid var(--line); border-radius: 10px; }

/* Budget progress */
.progress .progress-bar.over { background: var(--neg); }
input.budget-input { text-align: right; margin: 0; }

/* SSO divider on the login card */
.sso-divider { display: flex; align-items: center; text-align: center; color: var(--muted); margin: 1rem 0; font-size: .85rem; }
.sso-divider::before, .sso-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); }
.sso-divider span { padding: 0 .75rem; }

/* Flashes */
.flashes { margin-bottom: 1rem; }
.flash { padding: .6rem .9rem; border-radius: 8px; margin-bottom: .5rem; font-size: .9rem; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* ---- Time tracking (urenregistratie) ---- */
.week-nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.week-nav .week-label { display: flex; flex-direction: column; line-height: 1.2; }
.week-nav .week-label .muted { font-size: .8rem; }

.status-banner { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem;
  border: 1px solid var(--line); background: #f8fafc; }
.status-banner.ts-draft     { background: #f1f5f9; }
.status-banner.ts-submitted { background: #dbeafe; }
.status-banner.ts-approved  { background: #dcfce7; }
.status-banner.ts-rejected  { background: #fee2e2; }

.ts-grid th, .ts-grid td { text-align: center; }
.ts-grid th:first-child, .ts-grid td:first-child { text-align: left; }
.ts-grid th.num, .ts-grid td.num { text-align: right; }
.ts-grid td.weekend, .ts-grid th.weekend { background: #f8fafc; }
.ts-grid .dnum { font-size: .72rem; font-weight: 400; }
.ts-proj { font-weight: 600; }
.ts-cell { width: 3.4rem; text-align: right; padding: .3rem .4rem; margin: 0; }
.ts-note { width: 100%; margin: .3rem 0 0; font-size: .8rem; padding: .25rem .4rem; }
.ts-row-total, .ts-total { font-weight: 700; }
.ts-grid tfoot .ts-foot td, .tbl .ts-foot td { border-top: 2px solid var(--line); font-weight: 600; background: #fbfcfe; }
.ts-add { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.ts-add select { width: auto; margin: 0; }
.ts-add .muted { margin-left: auto; }

.badge.ts-badge-draft     { background: #e2e8f0; color: #475569; }
.badge.ts-badge-submitted { background: #dbeafe; color: #1e40af; }
.badge.ts-badge-approved  { background: #dcfce7; color: #166534; }
.badge.ts-badge-rejected  { background: #fee2e2; color: #991b1b; }

.review-actions { display: inline; }
.team-edit { margin-top: 1rem; }
.team-edit summary { cursor: pointer; color: var(--primary); font-size: .9rem; }

.ts-remove { border: none; background: none; color: var(--muted); cursor: pointer;
  font-size: 1.05rem; line-height: 1; padding: 0 .3rem; border-radius: 4px; }
.ts-remove:hover { color: var(--neg); background: #fef2f2; }

.alert-reject { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem;
  background: #fee2e2; border: 1px solid #f0c4c4; color: #991b1b; }
.alert-reject .btn { background: #fff; }
