:root {
  --bg: #f6f7f4; --card: #fff; --ink: #222; --muted: #6b6f68; --line: #dde3d9;
  --accent: #5b7a5a; --accent-ink: #fff; --error: #b3261e; --ok: #2e7d32; --chosen: #eef3ec;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
main { max-width: 1200px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0; }
h1 small, h2 small { color: var(--muted); font-weight: 400; font-size: 60%; }
.top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); }
.top a { color: var(--accent-ink); text-decoration: none; }
.top .brand { font-weight: 700; }
.top nav { display: flex; gap: 14px; flex: 1; }
.top .logout { display: flex; gap: 8px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }
.big { font-size: 28px; font-weight: 700; margin: 4px 0; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--error); }
.ok { color: var(--ok); }
button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; padding: 7px 14px; font: inherit; cursor: pointer; }
button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.top button { background: #fff; color: var(--accent); }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.login { max-width: 360px; margin: 10vh auto; display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
tr.chosen { background: var(--chosen); }
.catalog img { object-fit: contain; background: #fff; border-radius: 4px; }
.pager { display: flex; gap: 16px; justify-content: center; margin: 16px 0; }
.flash { background: var(--chosen); }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: var(--line); color: var(--ink); text-decoration: none; }
.s-tradus { background: #fff3cd; } .s-aprobat { background: #d4edda; } .s-publicat { background: #cce5ff; } .s-eroare { background: #f8d7da; } .s-in_lucru { background: #e2e3e5; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tabs a { padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.tabs a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.warn { border-color: #e0b84c; background: #fffaf0; margin-bottom: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.edit label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.edit input, .edit textarea { font-weight: 400; width: 100%; font-family: inherit; }
.edit textarea { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; max-height: 260px; overflow: auto; }
.cats label { flex-direction: row; font-weight: 400; margin: 0; align-items: center; }
.cats input { width: auto; }
.orig { font-size: 13px; color: var(--muted); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; align-items: end; margin-bottom: 12px; }
.filters-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.filters-grid input, .filters-grid select { width: 100%; font-weight: 400; }
.filters-grid .range { display: flex; gap: 6px; }
.filters-grid .checks { display: flex; flex-direction: column; gap: 4px; }
.filters-grid .checks label { flex-direction: row; align-items: center; font-weight: 400; }
.filters-grid .checks input { width: auto; }
.filters-grid .actions { margin: 0; }
.excel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 12px 0 16px; }
@media (max-width: 900px) { .excel { grid-template-columns: 1fr; } }
.excel form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.excel p { margin: 4px 0 8px; }
a.button { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 7px 14px; text-decoration: none; }
