:root {
	--ink: #172e2c;
	--muted: #73817c;
	--line: #e2e8e3;
	--green: #17604f;
	--paper: #f7f9f6;
	--accent: #d6ed9e;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--paper);
	font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #8ac6a9; outline-offset: 3px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 254px; padding: 31px 22px; background: #123c34; color: #d3e2da; display: flex; flex-direction: column; z-index: 10; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 650; color: #fff; letter-spacing: -.4px; }
.brand-mark { width: 38px; height: 40px; color: var(--accent); font-size: 42px; line-height: 25px; letter-spacing: -6px; font-weight: 500; }
.brand-mark span { color: #81b69b; }
.brand-sub { display: block; font-size: 8px; letter-spacing: 1.9px; margin-top: 2px; font-weight: 500; color: #a3bfb1; }
.workspace { display: flex; align-items: center; gap: 10px; padding: 16px 10px; margin: 24px 0 13px; border-block: 1px solid #ffffff1c; font-size: 12px; color: #fff; flex-shrink: 0; }
.workspace-icon { background: #ffffff10; border: 1px solid #ffffff26; border-radius: 7px; width: 31px; height: 32px; display: grid; place-items: center; }
.workspace small { display: block; color: #9bb6a8; font-size: 10px; }
.workspace-dot, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.workspace-dot { margin-left: auto; }
.nav-label { padding: 18px 13px 8px; color: #8dac9b; font-size: 9px; letter-spacing: 1.7px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 13px; margin: 3px 0; border-radius: 7px; font-size: 12px; }
.nav-link:hover { background: #ffffff09; }
.nav-link.active { background: #d6ed9e; color: #234735; font-weight: 650; }
.nav-icon { width: 19px; font-size: 17px; text-align: center; }
.nav-count { margin-left: auto; font-size: 10px; opacity: .6; }
.sidebar-foot { margin-top: auto; padding-top: 25px; font-size: 9px; color: #b6cbbd; }
.sidebar-foot .status-dot { margin-right: 6px; }
.sidebar-foot small { display: block; margin: 6px 0 0 15px; color: #799b88; font-size: 9px; }
.main-shell { margin-left: 254px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 72px; padding: 0 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; background: #ffffffb3; }
#breadcrumb { color: #6c7c73; }
#breadcrumb span { padding: 0 12px; color: #b0bcb4; }
.local-badge { font-size: 8px; letter-spacing: 1.2px; color: #527461; border: 1px solid #dce6da; border-radius: 4px; padding: 5px 9px; }
main { padding: 37px 42px 35px; flex: 1; max-width: 1600px; width: 100%; margin: 0 auto; }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; color: #708977; font-weight: 650; }
h1 { font-size: 30px; font-weight: 550; letter-spacing: -1.1px; margin: 6px 0 6px; }
h2 { font-size: 19px; letter-spacing: -.5px; font-weight: 550; margin: 4px 0; }
h3 { font-size: 14px; margin: 0 0 6px; font-weight: 600; }
p { margin: 0; }
.subtitle { color: var(--muted); font-size: 12px; max-width: 690px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 6px; padding: 10px 15px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.button:hover { background: #114d40; }
.button.secondary { background: white; border-color: #d9e2d9; color: #44604e; }
.button.secondary:hover { background: #f0f5ed; }
.button.small { padding: 6px 10px; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 27px; }
.stat { padding: 19px 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.stat-label { display: flex; justify-content: space-between; color: #718273; font-size: 10px; }
.stat-symbol { color: #a7b7a3; font-size: 17px; }
.stat-number { font-size: 32px; font-weight: 500; letter-spacing: -1px; margin-top: 5px; }
.stat-caption { font-size: 9px; color: #9aa697; margin-top: 5px; }
.hero { border: 1px solid #d5e0cd; background: #edf3e5; padding: 25px 29px; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 28px; }
.hero h2 { font-size: 22px; margin-bottom: 7px; }
.hero p { color: #6b7c65; font-size: 11px; max-width: 520px; }
.hero-visual { display: grid; grid-template-columns: repeat(3, 36px); gap: 8px; transform: rotate(-8deg); padding: 4px 24px; }
.hero-visual span { height: 31px; border: 1px solid #b4c7a6; border-radius: 5px; background: #ffffff99; }
.hero-visual span:nth-child(2n) { background: #d1e4b4; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 14px; }
.section-heading span { color: #8b998a; font-size: 10px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.catalog-card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 21px; transition: border-color .15s, transform .15s; }
.catalog-card:hover { border-color: #7aab8d; transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-icon { font-size: 20px; width: 37px; height: 37px; border-radius: 7px; display: grid; place-items: center; background: #f0f5e9; color: #597b50; }
.card-arrow { color: #9fac9c; }
.catalog-card p { color: #899485; font-size: 10px; min-height: 31px; }
.card-foot { border-top: 1px solid #edf0e9; padding-top: 13px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; color: #697c62; font-size: 10px; }
.reference-values ul { list-style: none; padding: 0; margin: 0; }
.reference-values { max-height: 260px; overflow-y: auto; }
.reference-values li { padding: 6px 0; font-size: 11px; line-height: 1.5; }
.reference-values li .muted { display: block; margin-top: 2px; }
.reference-entry-picker { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.reference-entry-picker label { display: flex; flex-direction: column; gap: 8px; }
.pill { font-size: 9px; background: #eef5e8; color: #567447; padding: 3px 7px; border-radius: 4px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.toolbar { padding: 16px 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.search { max-width: 350px; width: 100%; padding: 8px 12px; font-size: 11px; }
.product-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.product-filters label { display: flex; flex: 1 1 180px; flex-direction: column; gap: 6px; min-width: 0; }
.product-filters select { width: 100%; min-width: 0; font-size: 11px; }
.product-filters button { margin-bottom: 1px; }
.record-count { color: #879582; font-size: 10px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: #f9faf6; font-size: 9px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: #8a9683; padding: 13px 20px; border-bottom: 1px solid var(--line); }
td { padding: 16px 20px; border-bottom: 1px solid #eef1ea; font-size: 11px; }
tr:last-child td { border-bottom: 0; }
td .record-name { font-weight: 600; color: #365a44; }
.products-table { min-width: 1080px; }
.products-table th:first-child { width: 17%; }
.products-table th:nth-child(2) { width: 28%; }
.products-table th:nth-child(3) { width: 15%; }
.products-table th:nth-child(4) { width: 19%; }
.target-species span, .classification-values span { display: block; line-height: 1.6; }
.muted { color: #8b9985; font-size: 10px; }
.source-link { display: inline-flex; align-items: center; font-size: 11px; line-height: 1.5; color: var(--muted); }
.source-link:hover { color: var(--ink); text-decoration: underline; }
.product-source { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 16px 0 20px; }
.product-source p { margin: 0; line-height: 1.5; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #7b8b75; font-size: 10px; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.empty { text-align: center; padding: 58px 25px; }
.empty-icon { display: block; width: 51px; height: 51px; margin: 0 auto 16px; background: #f1f6ea; border-radius: 12px; color: #69895a; font-size: 26px; line-height: 51px; }
.empty p { color: var(--muted); font-size: 11px; margin: 8px auto 20px; max-width: 410px; }
.info-strip { padding: 15px 20px; background: #f0f5e9; border: 1px solid #dce7d1; border-radius: 7px; font-size: 11px; color: #597449; margin-bottom: 20px; }
.page-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin: 0 42px; padding: 18px 0 22px; color: #96a18f; font-size: 8px; letter-spacing: 1px; }
.page-footer span { letter-spacing: 0; }
dialog { border: 1px solid #d9e2d4; border-radius: 12px; box-shadow: 0 25px 100px #102f3340; width: min(860px, calc(100vw - 40px)); max-height: 90vh; padding: 0; color: var(--ink); }
dialog::backdrop { background: #132f3366; backdrop-filter: blur(3px); }
.dialog-head { padding: 23px 27px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.icon-button { border: 0; background: #f2f5ed; border-radius: 5px; font-size: 22px; color: #71816b; width: 30px; height: 30px; }
#form-body, #details-body { padding: 24px 27px; }
.dialog-foot { border-top: 1px solid var(--line); padding: 18px 27px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; background: #f9faf7; }
.dialog-foot span { font-size: 9px; color: #8c9983; margin-right: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label, .field-label { font-size: 11px; font-weight: 600; color: #526849; }
input, textarea, select { background: white; border: 1px solid #dce4d6; padding: 10px 11px; border-radius: 5px; color: #284b34; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #a2ad9a; font-size: 11px; }
textarea { min-height: 86px; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; }
.field small { font-size: 10px; color: #8d9a85; font-weight: 400; }
.form-section { margin: 23px 0 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-section h3 { font-size: 12px; }
.checklist { border: 1px solid var(--line); border-radius: 6px; max-height: 265px; overflow: auto; margin-top: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #edf1e8; font-size: 11px; flex-wrap: wrap; }
.check-row:last-child { border-bottom: 0; }
.check-row label { display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 400; flex: 1; cursor: pointer; }
.supplier-extra { display: flex; gap: 8px; width: 100%; padding-left: 26px; }
.supplier-extra input { padding: 7px 8px; font-size: 11px; }
.check-empty { color: #8c9c82; font-size: 11px; padding: 18px; }
.lines { display: grid; gap: 9px; }
.line-row { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr 30px; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.line-row.material-line { grid-template-columns: 3fr 1fr 1fr 30px; }
.line-row input, .line-row select { font-size: 11px; padding: 9px 7px; }
.line-row label { font-size: 9px; }
.line-row button { margin-bottom: 3px; }
.add-line { margin-top: 10px; }
.error-box { margin: 0 27px 20px; border-radius: 6px; border: 1px solid #e9c9b9; padding: 12px 15px; color: #9a4324; background: #fff5ee; font-size: 11px; }
[hidden] { display: none !important; }
#toast { position: fixed; right: 28px; bottom: 25px; background: #173e31; border: 1px solid #62876a; color: #e6f0dd; border-radius: 7px; padding: 13px 21px; box-shadow: 0 10px 35px #123c3422; z-index: 40; font-size: 12px; }
.version-card { padding: 18px; border: 1px solid var(--line); border-radius: 7px; margin-top: 14px; }
.version-card h3 { display: flex; gap: 10px; align-items: center; }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 7px 18px; font-size: 11px; }
dt { color: #85967b; } dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.loading { padding: 100px 20px; text-align: center; color: #8d9d82; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
@media (min-width: 1500px) { main { padding-top: 45px; } .catalog-card { padding: 26px; } }
@media (max-width: 1100px) { .sidebar { width: 218px; padding-inline: 15px; } .main-shell { margin-left: 218px; } main { padding: 28px; } .topbar { padding-inline: 28px; } .catalog-grid { grid-template-columns: repeat(2, 1fr); } .stats { gap: 10px; } .stat { padding: 15px; } }
@media (max-width: 760px) { .sidebar { position: static; width: auto; padding: 18px; } .workspace, .sidebar-foot, .nav-label { display: none; } #navigation { display: flex; overflow-x: auto; gap: 5px; margin-top: 16px; } .nav-link { white-space: nowrap; padding: 8px 11px; } .nav-count { display: none; } .brand-sub { font-size: 7px; } .main-shell { margin-left: 0; } .topbar { height: 50px; padding-inline: 20px; } main { padding: 25px 20px; } .stats { grid-template-columns: repeat(2, 1fr); } .catalog-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } .hero { padding: 20px; } h1 { font-size: 25px; } .page-heading { align-items: flex-start; } .page-footer { margin-inline: 20px; } .page-footer span { display: none; } .dialog-foot span { display: none; } .form-grid { grid-template-columns: 1fr; } .line-row, .line-row.material-line { grid-template-columns: 1fr 1fr; } .line-row > :first-child { grid-column: 1 / -1; } .line-row .icon-button { justify-self: end; } dl { grid-template-columns: 100px 1fr; } }

.account-bar { display: flex; align-items: center; gap: 10px; }
.account-bar strong { display: block; font-size: 11px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-bar small { display: block; font-size: 9px; color: var(--muted); }
.account-bar form { margin: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: #123c34; padding: 30px 20px; }
.login-card { max-width: 430px; padding: 37px; background: var(--paper); border-radius: 13px; box-shadow: 0 20px 80px #08241f66; margin: auto; }
.login-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 35px; font-weight: 650; font-size: 20px; }
.login-brand .brand-mark { color: #588551; }
.login-brand small { display: block; font-size: 8px; letter-spacing: 1.6px; font-weight: 500; color: #7b9779; }
.login-form { display: grid; gap: 18px; margin-top: 27px; }
.login-form .button { margin-top: 4px; font-size: 13px; padding: 12px; }
.login-foot { font-size: 10px; text-align: center; color: #8b9b83; margin-top: 28px; }
.login-error { padding: 12px; margin-top: 20px; border-radius: 5px; color: #963c25; background: #ffede2; font-size: 12px; }
.login-card .info-strip { margin: 24px 0 0; }
.login-card .info-strip p { margin: 7px 0 12px; }
.login-card code { font-size: 11px; }
@media (max-width: 760px) {
	.topbar { height: auto; min-height: 60px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
	.account-bar { margin-left: auto; }
	.account-bar strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
	.login-card { padding: 28px; }
}

.language-form { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.language-form label { font-size: 10px; white-space: nowrap; }
.language-form select { width: auto; padding: 6px 8px; font-size: 11px; min-width: 90px; }
.login-card .language-form { justify-content: flex-end; flex-wrap: wrap; margin: -12px 0 24px; }
.topbar { height: auto; min-height: 72px; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.account-bar { flex-wrap: wrap; margin-left: auto; }
html[lang="ro"] .brand { font-size: 17px; }
@media (max-width: 760px) {
	.account-bar { width: 100%; gap: 8px; }
	.language-form label { font-size: 9px; }
	.language-form { margin-right: auto; }
	.login-card .language-form { margin-right: 0; }
	.account-bar small { max-width: 140px; }
}

.pack-lines { display: grid; gap: 14px; margin-bottom: 14px; }
.pack-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--border, #dfe5e1); border-radius: 12px; background: #f8faf9; }
.pack-line .icon-button { justify-self: end; }
.pack-line label { min-width: 0; }
.artwork-choice { margin: 18px 0; }
.artwork-choice select { margin-top: 8px; }
#product-name-preview { overflow-wrap: anywhere; }
@media (max-width: 650px) {
	.pack-line { grid-template-columns: 1fr; }
}
