/* Sweet — stiluri pentru site, autentificare și panouri. Fără build: fișier CSS simplu. */
:root {
  --ink: #18130f;
  --ink-2: #2a231d;
  --paper: #fbf7f1;
  --card: #ffffff;
  --line: #eadfd0;
  --muted: #6d6257;
  --accent: #e3326b;
  --accent-ink: #b81f52;
  --accent-soft: #fde8ef;
  --butter: #ffd978;
  --mint: #cdeedd;
  --mint-ink: #17694a;
  --amber-soft: #fff1cf;
  --amber-ink: #8a5a00;
  --red-soft: #fde4e1;
  --red-ink: #a3261b;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(24, 19, 15, .04), 0 18px 40px -22px rgba(24, 19, 15, .28);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }

/* Butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-danger { background: #fff; border-color: #f1c4be; color: var(--red-ink); }
.btn-danger:hover { background: var(--red-soft); }
.btn-ok { background: var(--mint-ink); color: #fff; }
.btn-ok:hover { background: #0f5239; }
.btn-block { width: 100%; }

/* Antet site */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; transform: rotate(-8deg); box-shadow: 4px 4px 0 var(--butter); }
.logo-mark i { width: 10px; height: 10px; border-radius: 50%; background: #fff; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.addr { display: inline-flex; align-items: center; gap: 0; padding: 6px 12px; border-radius: 10px; background: var(--ink); color: #fff; font: 500 13.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.addr span { color: var(--butter); }

/* Macheta din hero */
.mock { position: relative; padding: 26px 0 26px 10px; }
.mock::before { content: ""; position: absolute; inset: 0 -40px 0 40px; border-radius: 36px; background: var(--butter); transform: rotate(3deg); }
.mock-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-top strong { font: 700 17px var(--display); }
.mock-tabs { display: flex; gap: 6px; }
.mock-tabs span { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.mock-tabs span.on { background: var(--ink); color: #fff; }
.row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.row .src { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 12px var(--display); background: var(--paper); }
.row .who { font-weight: 600; }
.row .who small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.row .sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--mint); color: var(--mint-ink); }
.pill.wait { background: var(--amber-soft); color: var(--amber-ink); }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.pill.info { background: var(--accent-soft); color: var(--accent-ink); }
.pill.off { background: #efe9df; color: var(--muted); }
.mock-float { position: absolute; right: -18px; bottom: -8px; width: 230px; background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.mock-float small { color: #c9bfb3; font-size: 12.5px; }
.mock-float b { display: block; font: 700 26px/1.1 var(--display); margin: 4px 0 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: #473d33; }
.bars i.hi { background: var(--accent); }
.mock-cap { position: relative; margin-top: 14px; font-size: 12.5px; color: #6b4d00; text-align: left; padding-left: 6px; }

/* Secțiuni */
.section { padding: 76px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.kicker { font: 600 13.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.feature:nth-child(3n+2) .ic { background: var(--amber-soft); color: var(--amber-ink); }
.feature:nth-child(3n) .ic { background: var(--mint); color: var(--mint-ink); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* Integrări */
.band { background: var(--ink); color: #fff; border-radius: 34px; padding: 56px; }
.band .kicker { color: var(--butter); }
.band h2 { color: #fff; }
.band .section-head p { color: #cfc5b9; }
.integ { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.integ-col { background: #221b16; border: 1px solid #3a3028; border-radius: 16px; padding: 18px; }
.integ-col h3 { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #a89c8e; margin-bottom: 14px; }
.integ-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.integ-col li { font: 600 17px/1.2 var(--display); display: flex; align-items: center; gap: 9px; }
.integ-col li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.band-note { margin-top: 22px; color: #a89c8e; font-size: 14.5px; }

/* Două coloane */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.checks li::before { content: ""; flex: none; margin-top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2317694a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.ledger { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ledger-head strong { font: 700 18px var(--display); }
.ledger-head small { color: var(--muted); }
.ledger dl { margin: 0; }
.ledger div.l { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px dashed var(--line); font-size: 15.5px; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger div.total { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 14px; }
.ledger div.total dt { color: var(--ink); font-weight: 700; }
.ledger div.total dd { font: 700 24px var(--display); color: var(--mint-ink); }
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f3ece1; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8cdbd; }
.url { flex: 1; background: #fff; border-radius: 8px; padding: 6px 12px; font: 500 13px ui-monospace, Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url b { color: var(--accent-ink); }
.browser-body { padding: 20px; display: grid; gap: 10px; }
.tenant { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; }
.tenant .av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 700 14px var(--display); background: var(--accent-soft); color: var(--accent-ink); }
.tenant:nth-child(2) .av { background: var(--amber-soft); color: var(--amber-ink); }
.tenant:nth-child(3) .av { background: var(--mint); color: var(--mint-ink); }
.tenant code { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* Pași */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 17px var(--display); margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

.cta { background: var(--accent); color: #fff; border-radius: 34px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: var(--butter); opacity: .9; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 15em; position: relative; z-index: 1; }
.cta p { margin-top: 10px; opacity: .92; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }

.footer { padding: 40px 0 50px; color: var(--muted); font-size: 14.5px; }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 22px; }

/* Autentificare */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { background: var(--ink); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--accent); right: -170px; bottom: -150px; }
.auth-side::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--butter); right: 110px; bottom: 150px; }
.auth-side .logo { color: #fff; }
.auth-side h2 { font-size: clamp(30px, 3.2vw, 44px); max-width: 11em; position: relative; z-index: 1; }
.auth-side p { color: #cfc5b9; margin-top: 14px; max-width: 26em; position: relative; z-index: 1; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; position: relative; z-index: 1; color: #e9e1d6; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--butter); }
.auth-side small { color: #a89c8e; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: min(460px, 100%); }
.auth-box.wide { width: min(560px, 100%); }
.auth-box h1 { font-size: 34px; margin-bottom: 8px; }
.auth-box > p { color: var(--muted); margin-bottom: 26px; }
.auth-alt { margin-top: 22px; color: var(--muted); font-size: 15px; text-align: center; }
.auth-alt a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.only-mobile { display: none; }

/* Formulare */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #dccfbd; background: #fff;
  font: 400 16px/1.3 var(--body); color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.has-error { border-color: #d9584c; }
.err { color: var(--red-ink); font-size: 13.5px; }
.hint { color: var(--muted); font-size: 13.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slug { display: flex; align-items: stretch; border: 1px solid #dccfbd; border-radius: 12px; background: #fff; overflow: hidden; transition: border .15s, box-shadow .15s; }
.slug:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.slug input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 6px 12px 14px; font: 600 16px/1.3 var(--body); color: var(--ink); background: transparent; }
.slug span { display: flex; align-items: center; padding: 0 12px; background: #f6efe4; color: var(--muted); font-size: 14px; white-space: nowrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); margin: -2px 0 18px; }
.fieldset-title { font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.fieldset-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; }
.alert.ok { background: var(--mint); color: var(--mint-ink); }
.alert.bad { background: var(--red-soft); color: var(--red-ink); }
.alert.info { background: var(--amber-soft); color: var(--amber-ink); }
.done { text-align: center; }
.done .big { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; margin: 0 auto 22px; }
.done .big .icon { width: 34px; height: 34px; }

/* Panouri (admin + firmă) */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.side .logo { color: #fff; padding: 4px 8px 18px; }
.side-label { font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #8d8174; padding: 14px 10px 6px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 11px; color: #d9d0c5; text-decoration: none; font-weight: 500; font-size: 15px; }
.side a.item:hover { background: #2a221c; color: #fff; }
.side a.item.on { background: var(--accent); color: #fff; }
.side a.item .count { margin-left: auto; background: var(--butter); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.side .item.soon { display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: #7d7267; font-size: 15px; }
.side .item.soon em { margin-left: auto; font-style: normal; font-size: 10.5px; white-space: nowrap; border: 1px solid #40362d; border-radius: 999px; padding: 2px 7px; }
.side-foot { margin-top: auto; border-top: 1px solid #332a23; padding-top: 14px; font-size: 14px; color: #b9aea1; }
.side-foot b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button { margin-top: 12px; background: #2a221c; color: #fff; border: 0; border-radius: 10px; padding: 9px 12px; font: 600 14px var(--body); cursor: pointer; width: 100%; }
.side-foot button:hover { background: #3a3028; }
.main { padding: 34px 38px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 32px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat small { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat b { display: block; font: 700 34px/1.1 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat.hot { background: var(--butter); border-color: transparent; }
.stat.hot small { color: #6b4d00; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 19px; }
.panel-body { padding: 20px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font: 600 12px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; white-space: nowrap; }
table.t td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t td small { display: block; color: var(--muted); }
table.t a.name { font-weight: 600; text-decoration: none; }
table.t a.name:hover { color: var(--accent-ink); }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.actions form { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { display: flex; gap: 8px; }
.search .input { padding: 8px 12px; font-size: 14.5px; width: 220px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.module .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.module h3 { font-size: 18px; margin-bottom: 6px; }
.module p { color: var(--muted); font-size: 14.5px; }
.welcome { background: var(--ink); color: #fff; border-radius: 22px; padding: 30px; margin-bottom: 22px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: var(--accent); }
.welcome h1 { font-size: 30px; position: relative; z-index: 1; }
.welcome p { color: #cfc5b9; margin-top: 8px; position: relative; z-index: 1; }
.welcome .addr { background: #fff; color: var(--ink); position: relative; z-index: 1; font-size: 14px; padding: 10px 14px; }
.welcome .addr span { color: var(--accent-ink); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pager div { display: flex; gap: 8px; }
.mobile-bar { display: none; }
pre.log { background: var(--ink); color: #e9e1d6; padding: 16px; border-radius: 14px; overflow: auto; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .steps, .modules { grid-template-columns: repeat(2, 1fr); }
  .integ { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .only-mobile { display: inline-flex; margin-bottom: 28px; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 4px; }
  .side .logo { padding: 4px 8px; margin-right: auto; }
  .side-label, .side .item.soon { display: none; }
  .side a.item { padding: 8px 10px; font-size: 14px; }
  .side-foot { margin: 0; border: 0; padding: 0; width: 100%; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
  .side-foot span { display: none; }
  .side-foot form { margin: 0; }
  .side-foot button { margin: 0; width: auto; padding: 7px 12px; }
  .main { padding: 24px 18px 50px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 36px 0 20px; }
  .section { padding: 54px 0; }
  .grid-3, .steps, .modules, .integ, .two { grid-template-columns: 1fr; }
  .band, .cta { padding: 34px 24px; border-radius: 26px; }
  .mock { padding: 14px 0; }
  .mock::before { inset: 0 -10px 0 20px; }
  .mock-float { position: relative; right: auto; bottom: auto; width: auto; margin-top: 12px; }
  .row { grid-template-columns: auto 1fr auto; }
  .row .sum { display: none; }
  .mock-tabs span:not(.on) { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .page-head h1 { font-size: 26px; }
  .search .input { width: 100%; }
  .slug span { font-size: 12.5px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Etapa 1: comenzi și integrări */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { padding: 9px 12px; font-size: 14.5px; width: auto; }
.toolbar .grow { flex: 1 1 280px; min-width: 200px; }
.chip b { font-weight: 700; margin-left: 4px; opacity: .7; }
table.t th.num, table.t td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t td.nowrap { white-space: nowrap; }
table.t.orders td { padding-top: 11px; padding-bottom: 11px; }
.thumbs { display: flex; align-items: center; gap: 6px; min-width: 220px; }
.thumbs img, .thumbs .ph { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: #f1e9dc; border: 1px solid var(--line); flex: none; }
.thumbs-text { margin-left: 4px; line-height: 1.3; }
.totals { border-top: 1px solid var(--line); }
.totals .kv { grid-template-columns: 1fr auto; max-width: 380px; margin-left: auto; }
.totals .kv dd { text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font: 700 22px var(--display); }
.kv.narrow { grid-template-columns: 110px 1fr; }
.kv a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; }
td small.err { color: var(--red-ink); max-width: 320px; }
.btn .icon { width: 16px; height: 16px; }
.btn[disabled] { opacity: .55; cursor: default; }
@media (max-width: 640px) {
  .kv.narrow { grid-template-columns: 1fr; }
  .totals .kv { grid-template-columns: 1fr auto; }
  .toolbar .input { width: 100%; }
}
table.t.tight th, table.t.tight td { padding-left: 12px; padding-right: 12px; }
table.t.tight th:first-child, table.t.tight td:first-child { padding-left: 20px; }
table.t.tight th:last-child, table.t.tight td:last-child { padding-right: 20px; }
table.t.tight .thumbs { min-width: 180px; }

/* Unelte comenzi: etichete, selecție, vederi */
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 7px; font: 600 12px/1.5 var(--body); border: 1px solid transparent; white-space: nowrap; }
.tag-red { background: #fde4e1; color: #a3261b; } .tag-orange { background: #ffe8d1; color: #9a4a00; } .tag-yellow { background: #fff3c4; color: #7a5b00; }
.tag-green { background: #cdeedd; color: #17694a; } .tag-blue { background: #dbe9ff; color: #1d4e9e; } .tag-purple { background: #ebe1ff; color: #5b34a8; } .tag-gray { background: #ece6dc; color: #5c5349; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpick form { margin: 0; }
button.tag { cursor: pointer; font-size: 13.5px; padding: 6px 12px; }
button.tag.is-off { background: #fff; color: var(--muted); border-color: var(--line); }
button.tag.is-off:hover { border-color: var(--ink); color: var(--ink); }
th.check, td.check { width: 34px; padding-right: 0 !important; }
td.check input, th.check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.panel-head.tools { padding: 12px 16px; }
.toolsbar, .bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.toolsbar[hidden], .bulkbar[hidden] { display: none; }
.toolsbar .spacer { flex: 1; }
.toolsbar form { margin: 0; }
.bulkbar .input { width: auto; padding: 7px 10px; font-size: 14px; }
.views { margin-bottom: 12px; align-items: center; }
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; }
.pop-body.wide { width: 320px; }
.pop-body .input { padding: 9px 12px; font-size: 14.5px; }
.tagrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tagrow form { margin: 0; }
.tagform { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.tagform .input:first-of-type { grid-column: 1 / -1; }
.linklike { background: none; border: 0; padding: 0; color: var(--red-ink); font: 500 13px var(--body); cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) { .pop-body, .pop-body.wide { position: static; width: auto; margin-top: 8px; } .toolsbar .spacer { display: none; } }

/* Editarea comenzii: ferestre, acțiuni pe rând, căutare de produse, istoric */
.btn-act { background: #2563eb; color: #fff; }
.btn-act:hover { background: #1d4ed8; }
.btn-xs { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.rowacts { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }
.rowacts form { margin: 0; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.head-actions form { margin: 0; display: flex; gap: 8px; align-items: center; }
.head-actions .input { width: auto; padding: 8px 12px; font-size: 14.5px; }
.panel-head .btn { margin-left: auto; }
dialog.win { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px -20px rgba(24, 19, 15, .5); color: var(--ink); }
dialog.win.narrow { width: min(400px, calc(100vw - 28px)); }
dialog.win::backdrop { background: rgba(24, 19, 15, .45); }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.win-head h3 { margin: 0; font: 700 18px var(--display); }
.win-x { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 6px; }
.win-body { padding: 18px 20px 20px; overflow: auto; }
.win-body .field { margin-bottom: 12px; }
.win-body .input { padding: 10px 12px; font-size: 15px; }
.win-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.prod-results { display: grid; gap: 4px; margin: -4px 0 12px; }
.prod-results button { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; font: 500 14px var(--body); color: var(--ink); }
.prod-results button:hover { border-color: var(--accent); }
.prod-results img, .prod-results .ph { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: var(--paper); flex: none; }
.prod-results small { color: var(--muted); display: block; font-weight: 400; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.events li { font-size: 14.5px; overflow-wrap: anywhere; }
.events small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 1px; }
.hist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.hist li { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.hist a { font-weight: 600; text-decoration: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-ink); font: 600 13px var(--body); cursor: pointer; text-decoration: underline; }
.copyrow { display: flex; gap: 8px; }
.copyrow .input { flex: 1; min-width: 0; font-size: 13px; }
table.t td small a { color: inherit; }
@media (max-width: 640px) { .three { grid-template-columns: 1fr 1fr; } .three > :first-child { grid-column: 1 / -1; } .head-actions { justify-content: flex-start; } }
.opt { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; margin: 0 0 6px; cursor: pointer; }
.opt input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.opt i { color: var(--muted); }
.rowacts.end { justify-content: flex-end; }
table.t.orders th, table.t.orders td { padding-left: 11px; padding-right: 11px; }
table.t.orders th:first-child, table.t.orders td:first-child { padding-left: 18px; }
table.t.orders th:last-child, table.t.orders td:last-child { padding-right: 18px; }
table.t.orders td.client { min-width: 150px; }
table.t.orders td.pay { min-width: 104px; }
table.t.orders .thumbs { min-width: 170px; }
table.t.orders .btn-xs { padding: 5px 9px; }
#items td:last-child { width: 1%; white-space: nowrap; }
a.repeat { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-weight: 700; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
a.repeat:hover { background: var(--butter); }

/* AWB și curieri */
a.awb-chip { display: inline-block; text-decoration: none; line-height: 1.25; }
a.awb-chip small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
a.awb-chip:hover small { color: var(--accent-ink); text-decoration: underline; }
fieldset.awb-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.awb-sum { font: 700 24px var(--display); margin: 0 0 14px; }
.awb-done .kv dd { font-weight: 500; }
[hidden] { display: none !important; }
table.t.orders td.ship { min-width: 110px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extra { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 14px; cursor: pointer; background: #fff; }
.extra:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.extra input { accent-color: var(--accent); }

/* Integrări: harta legăturilor și catalogul */
.imap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 26px; }
.imap-root { display: flex; justify-content: center; }
.imap-root .logo { border: 1px solid var(--line); border-radius: 14px; padding: 14px 30px; font-size: 26px; background: var(--paper); cursor: default; }
.imap-trunk { width: 0; height: 26px; margin: 0 auto; border-left: 2px dashed #cfc3b2; }
.imap-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.imap-node { position: relative; width: 212px; padding-top: 22px; margin-bottom: 4px; }
.imap-node::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px dashed #cfc3b2; }
.imap-node::after { content: ""; position: absolute; top: 0; left: -9px; right: -9px; border-top: 2px dashed #cfc3b2; }
.imap-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 148px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.imap-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.imap-brand { display: flex; align-items: center; gap: 9px; }
.imap-brand i, .icat-tile i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font: 700 13px var(--body); font-style: normal; letter-spacing: .02em; flex: none; background: var(--ink); }
.imap-brand b { font: 700 19px var(--display); letter-spacing: -.02em; }
.imap-card .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imap-card small { color: var(--muted); font-size: 12.5px; }
.imap-add { border-style: dashed; background: var(--paper); }
.imap-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 22px/1 var(--body); }
.icat { margin-bottom: 26px; }
.icat h2 { font: 700 19px var(--display); margin: 0 0 12px; }
.icat h2 span { font: 500 13.5px var(--body); color: var(--muted); }
.icat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.icat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: center; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.icat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.icat-tile b { font: 700 17px var(--display); letter-spacing: -.02em; }
.icat-tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.icat-tile.is-soon { background: transparent; border-style: dashed; color: var(--muted); }
.icat-tile.is-soon i { background: #cfc3b2; }
.icat-tile.is-soon small { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; }
@media (max-width: 640px) { .imap { padding: 20px 12px; } .imap-grid { gap: 0 10px; } .imap-node { width: calc(50% - 5px); } .imap-node::after { left: -5px; right: -5px; } .imap-brand { flex-direction: column; gap: 6px; } .imap-brand b { font-size: 16px; } }

/* Depozit: scanare */
.scan-input { font-size: 20px; padding: 16px 18px; border-width: 2px; }
.scan-input:focus { border-color: var(--accent); }
.scan-msg { margin-top: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 16px; background: var(--mint); color: var(--mint-ink); }
.scan-msg.warn { background: var(--amber-soft); color: var(--amber-ink); }
.scan-msg.bad { background: var(--red-soft); color: var(--red-ink); font-size: 19px; }
.scan-msg.done { background: var(--mint-ink); color: #fff; font-size: 19px; }
.parcel { margin-top: 16px; border: 2px solid var(--line); border-radius: 16px; padding: 18px; }
.parcel.is-packed { border-color: var(--mint-ink); }
.parcel.is-no_stock { border-color: var(--red-ink); }
.parcel-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.parcel-no { font: 700 26px var(--display); margin-right: 12px; }
.parcel-client { color: var(--muted); font-size: 16px; }
.parcel-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.parcel-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14.5px; }
.parcel-items { display: grid; gap: 8px; margin-top: 16px; }
.parcel-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.parcel-item.is-done { background: var(--mint); border-color: transparent; }
.parcel-item img, .parcel-item .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #f1e9dc; flex: none; }
.parcel-item-text { flex: 1; min-width: 0; }
.parcel-item-text b { display: block; font-size: 16px; }
.parcel-item-text small { color: var(--muted); }
.parcel-count { font: 700 22px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.parcel-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats-row .stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stats-row .stat b { display: block; font: 700 26px var(--display); }
.stats-row .stat small { color: var(--muted); font-size: 13px; }
.ret-lines { display: grid; gap: 8px; margin: 14px 0; }
.ret-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) 84px 190px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ret-line img, .ret-line .ph { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: #f1e9dc; }
.ret-line .input { padding: 8px 10px; font-size: 14.5px; }
.decide { display: flex; gap: 5px; flex-wrap: wrap; }
.decide form { margin: 0; }
@media (max-width: 640px) { .ret-line { grid-template-columns: 48px minmax(0, 1fr); } .parcel-no { font-size: 21px; } }
.side { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3028 transparent; }
.side > * { flex-shrink: 0; }
.print-form { margin: 0; display: inline-flex; }
.win-foot form { margin: 0; }

/* Canale de vânzare (marketplace) */
small.chan-status { display: block; width: fit-content; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 11.5px; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check-line input { margin-top: 3px; }
.check-line i { color: var(--muted); font-style: normal; }

/* Achiziții */
.receive-list { display: grid; gap: 8px; max-height: 46vh; overflow: auto; }
.receive-row { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: text; }
.receive-row small { display: block; color: var(--muted); font-size: 13px; }
b.need { color: var(--red-ink); font-size: 16px; }
table.t tfoot td { border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }

/* Facturare */
.inv-chip { display: inline-block; text-decoration: none; line-height: 1.25; }
.inv-chip small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
a.inv-chip:hover small { color: var(--accent-ink); text-decoration: underline; }
.check-list { display: grid; gap: 6px; max-height: 130px; overflow: auto; padding: 2px 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 18px; margin-top: 6px; }

/* Stocuri: bifa verde „verificat” și cantitatea pe care se apasă */
.vcheck-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.vcheck { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.vcheck svg { width: 16px; height: 16px; }
.vcheck:hover { border-color: #16a34a; color: #16a34a; }
.vcheck.on { background: #16a34a; border-color: #16a34a; color: #fff; }
button.pill.stock-qty { border: 0; cursor: pointer; font-family: inherit; min-width: 42px; justify-content: center; }
button.pill.stock-qty:hover { outline: 2px solid var(--line); }
#stock td small.err { color: var(--red-ink); font-weight: 600; }

/* Tabele cu multe coloane de cifre */
table.t.dense th, table.t.dense td { padding: 9px 10px; font-size: 13.5px; }
table.t.dense td.num { font-variant-numeric: tabular-nums; }

/* Verificarea adreselor */
.addr-part { display: grid; gap: 6px; font-size: 14px; min-width: 220px; }
.addr-line { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; overflow-wrap: anywhere; }
.addr-note { color: var(--muted); font-size: 12.5px; }
.addr-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.addr-issues li.critical { color: var(--red-ink); font-weight: 600; }
.addr-issues li.warning { color: var(--amber-ink); }
.addr-issues li.info { color: var(--muted); }
.addr-fix { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; background: var(--mint); color: var(--mint-ink); padding: 6px 10px; border-radius: 10px; }
.addr-alt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.addr-alt small { color: var(--muted); font-size: 12.5px; }
.addr-alt .chip { cursor: pointer; font: inherit; font-size: 12.5px; padding: 3px 9px; }
.addr-block + .addr-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.addr-block h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Comenzi organizate pe statusuri proprii: coloana de statusuri, lista și pagina comenzii */
.oboard { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 22px; align-items: start; }
.ostat { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; display: grid; gap: 2px; font-size: 14.5px; padding-right: 2px; }
.ostat a.st { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.3; }
.ostat a.st:hover { background: #fff; }
.ostat a.st.on { background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.ostat a.st > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostat a.st.all { font-weight: 600; margin-bottom: 4px; }
.ostat a.st.all .icon { width: 18px; height: 18px; color: var(--muted); }
.ostat a.st.all b { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.ostat details { margin-top: 6px; }
.ostat summary { cursor: pointer; padding: 6px 9px; font-weight: 700; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.ostat summary::-webkit-details-marker { display: none; }
.ostat summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); margin-left: 2px; transition: transform .12s ease; }
.ostat details[open] > summary::after { transform: rotate(45deg) translate(-2px, -2px); }
.ostat summary:hover { background: #fff; }
.ostat summary i { font-style: normal; font-weight: 500; color: var(--muted); }
.ostat .ostat-label { font: 700 11.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 9px 6px; }
.ostat .ostat-foot { display: grid; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ostat .ostat-foot a { padding: 6px 9px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ostat .ostat-foot a:hover { background: #fff; color: var(--ink); }
.st-n { min-width: 28px; padding: 2px 6px; border-radius: 6px; color: #fff; font: 700 11.5px/1.4 var(--body); text-align: center; font-variant-numeric: tabular-nums; flex: none; }
.st-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; color: #fff; font: 600 12.5px/1.4 var(--body); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.st-blue { background: #2563eb; } .st-green { background: #16a34a; } .st-orange { background: #ea580c; } .st-red { background: #dc2626; } .st-yellow { background: #ca8a04; }
.st-purple { background: #7c3aed; } .st-pink { background: #db2777; } .st-teal { background: #0d9488; } .st-gray { background: #6b7280; }
.bulkbar .btn, .bulkbar details.pop { margin-left: 0; }
.bulkbar details.pop .pop-body { right: auto; left: 0; }
.ohead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ohead h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.ohead h2 .st-n { font-size: 13px; padding: 3px 8px; }
table.t.orders td.items { min-width: 230px; }
.oitems { display: grid; gap: 5px; }
.oitem { display: flex; align-items: center; gap: 8px; line-height: 1.3; font-size: 14px; }
.oitem img, .oitem .ph { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #f1e9dc; border: 1px solid var(--line); flex: none; }
.oitem b { font-weight: 600; color: var(--muted); margin-right: 2px; }
table.t.orders td small.state { margin-top: 4px; font-size: 12.5px; }
/* Pagina comenzii */
.ogrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; margin-bottom: 22px; }
.ogrid3 > .panel { margin-bottom: 0; }
.oslots { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px; align-items: start; margin-bottom: 22px; }
.oslots > .panel, .oslots > div > .panel { margin-bottom: 0; }
.oinfo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.oinfo > div { padding: 20px; min-width: 0; }
.oinfo > div + div { border-left: 1px solid var(--line); }
.oinfo .kv { grid-template-columns: 150px 1fr; gap: 7px 14px; font-size: 14.5px; }
.oinfo .kv.sep { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.opaid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 15px; }
.opaid b.sum { font: 700 22px var(--display); }
.orow { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; align-items: center; font-size: 14.5px; margin-bottom: 10px; }
.orow > span:first-child { color: var(--muted); }
.orow form { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.orow .input { width: auto; min-width: 0; flex: 1 1 150px; padding: 8px 12px; font-size: 14.5px; }
.oacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.oacts form { margin: 0; }
.panel details.more { border-top: 1px solid var(--line); }
.panel details.more:first-of-type { border-top: 0; }
.panel details.more > summary { cursor: pointer; padding: 13px 20px; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel details.more > summary::-webkit-details-marker { display: none; }
.panel details.more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .12s ease; flex: none; }
.panel details.more[open] > summary::after { transform: rotate(-135deg); }
.panel details.more > div { padding: 0 20px 18px; }
.strow { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.strow:first-child { border-top: 0; }
.strow form { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.strow .input { width: auto; padding: 7px 10px; font-size: 14px; }
.strow .grow { flex: 1 1 260px; }
.strow .grow .input[name=name] { flex: 1 1 140px; min-width: 120px; }
@media (max-width: 1480px) {
  .oboard { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ostat { position: static; max-height: none; overflow: visible; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .ostat a.st { background: #fff; border: 1px solid var(--line); }
  .ostat details { margin-top: 0; }
  .ostat .ostat-label { padding: 0 6px; }
  .ostat .ostat-foot { display: flex; margin: 0; padding: 0; border: 0; }
  .ostat details { display: contents; }
  .ostat summary { background: #fff; border: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .ogrid3 { grid-template-columns: 1fr; }
  .oinfo { grid-template-columns: 1fr; }
  .oinfo > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Alerte */
.alert-msg { white-space: pre-line; color: var(--ink-soft, #4b4640); font-size: 13.5px; margin-top: 4px; overflow-wrap: anywhere; }
