/* Portal depozitebrasov.ro — același stil ca site-ul (Inter, albastru #1d4ed8) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #f4f6fa; --white: #fff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --primary: #1d4ed8; --primary-h: #1e40af; --primary-soft: #eff6ff;
  --ok: #15803d; --ok-soft: #f0fdf4; --warn: #b45309; --warn-soft: #fffbeb; --err: #dc2626; --err-soft: #fef2f2;
  --radius: 12px; --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; }
h3 { font-size: .95rem; margin: 1.2rem 0 .6rem; }
code { font-size: .85em; background: #f1f5f9; padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--muted); }
.text-err { color: var(--err); } .text-ok { color: var(--ok); }
.wrap { width: min(1180px, 94%); margin: 0 auto; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

/* Antet */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top__inner { width: min(1180px, 94%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand img { border-radius: 8px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { color: var(--muted); font-size: .78rem; }
.brand--center { justify-content: center; margin-bottom: 1rem; }
.top__user { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.top__who { color: var(--muted); font-size: .85rem; }
.nav { border-top: 1px solid var(--line); }
.nav__inner { width: min(1180px, 94%); margin: 0 auto; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__link { padding: .7rem .8rem; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.count { display: inline-block; min-width: 1.35rem; padding: 0 .35rem; border-radius: 99px; background: var(--primary); color: #fff; font-size: .72rem; text-align: center; line-height: 1.35rem; margin-left: .2rem; }
.page-title { font-size: 1.45rem; margin: 1.5rem 0 1rem; }
.foot { color: var(--muted); font-size: .8rem; padding: 2rem 0; }

/* Carduri, grile */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card--info { background: var(--primary-soft); border-color: #bfdbfe; font-size: .9rem; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.card__head h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + * { margin-top: 1rem; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; }
a.stat:hover { border-color: #93c5fd; }
.stat strong { font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Formulare */
.stack { display: flex; flex-direction: column; gap: .8rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.stack .field { margin-bottom: 0; }
.field > span { font-size: .8rem; font-weight: 600; color: #334155; }
.hint { color: var(--muted); font-size: .78rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=search], select, textarea {
  font: inherit; font-size: .92rem; width: 100%; padding: .6rem .7rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--text);
}
.toolbar select, .toolbar input[type=search] { width: auto; min-width: 180px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; outline-offset: 1px; border-color: var(--primary); }
textarea { resize: vertical; }
.out { display: block; padding: .6rem .7rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem .8rem; margin-bottom: .9rem; }
.check, .radio { display: flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
.check input, .radio input { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
.radios { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.row-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-form input { flex: 1 1 200px; width: auto; }
.row-form--tight input { flex: 1 1 160px; padding: .35rem .5rem; font-size: .85rem; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; background: rgba(244,246,250,.94); backdrop-filter: blur(4px); padding: .8rem 0; margin: .5rem 0 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); }
.tag { font-style: normal; font-size: .7rem; font-weight: 600; padding: .15rem .45rem; border-radius: 99px; vertical-align: middle; margin-left: .3rem; }
.tag--live { background: var(--ok-soft); color: var(--ok); }
.tag--mod { background: var(--warn-soft); color: var(--warn); }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; font-weight: 600; font-size: .9rem; padding: .6rem 1rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-h); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: #94a3b8; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--danger { background: #fff; border-color: #fecaca; color: var(--err); }
.btn--danger:hover { background: var(--err-soft); }
.btn--sm { padding: .4rem .7rem; font-size: .82rem; }
.btn--xs { padding: .25rem .5rem; font-size: .76rem; border-radius: 6px; }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Mesaje, insigne */
.alert { padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-size: .9rem; border: 1px solid; }
.alert ul { margin: .4rem 0 .2rem 1.1rem; padding: 0; }
.alert--ok { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
.alert--err { background: var(--err-soft); border-color: #fecaca; color: #7f1d1d; }
.alert--warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
.alert del { color: #9a3412; } .alert ins { text-decoration: none; font-weight: 600; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .18rem .55rem; border-radius: 99px; background: #f1f5f9; color: #334155; white-space: nowrap; }
.badge--new, .badge--pending, .badge--invited { background: var(--warn-soft); color: var(--warn); }
.badge--active, .badge--approved, .badge--confirmed, .badge--moved_in, .badge--converted { background: var(--ok-soft); color: var(--ok); }
.badge--contacted { background: var(--primary-soft); color: var(--primary); }
.badge--lost, .badge--rejected, .badge--disabled { background: var(--err-soft); color: var(--err); }

/* Tabele */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.card .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: .45rem .8rem .45rem 0; width: 38%; vertical-align: top; }
.kv td { padding: .45rem 0; }
.diff th { width: 18%; }
.diff tr.is-changed .diff__old { background: #fff1f2; color: #881337; text-decoration: line-through; text-decoration-color: rgba(136,19,55,.35); }
.diff tr.is-changed .diff__new { background: #f0fdf4; color: #14532d; font-weight: 500; }

/* Flux rezervare */
.flow { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 1rem; counter-reset: s; overflow-x: auto; }
.flow__step { flex: 1; min-width: 120px; padding: .6rem .8rem; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); position: relative; counter-increment: s; }
.flow__step::before { content: counter(s) ". "; }
.flow__step:first-child { border-radius: 10px 0 0 10px; } .flow__step:last-child { border-radius: 0 10px 10px 0; }
.flow__step.is-done { background: var(--ok-soft); color: var(--ok); }
.flow__step.is-current { background: var(--primary); color: #fff; font-weight: 600; border-color: var(--primary); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.timeline li { padding: .5rem 0 .5rem 1rem; border-left: 2px solid var(--line); }

/* Poze */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; margin-top: 1rem; }
.photos--sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e2e8f0; }
.photo figcaption { padding: .55rem; display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; }
.photo__alt { display: flex; gap: .3rem; }
.photo__alt input { padding: .3rem .45rem; font-size: .8rem; }
.photo__actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.upload { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.upload__drop { flex: 1 1 260px; display: flex; align-items: center; gap: .6rem; padding: .8rem; border: 2px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; cursor: pointer; font-size: .85rem; color: var(--muted); }
.upload__drop.is-over { border-color: var(--primary); background: var(--primary-soft); }
.upload__drop input { max-width: 220px; font-size: .8rem; }
.upload__status { margin: 0; font-size: .85rem; flex-basis: 100%; }
.company-logo { max-width: 140px; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: .6rem; }
.company-cover { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: .6rem; }
.thumb-sm { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.map-picker { height: 260px; border-radius: 10px; border: 1px solid var(--line); background: #e2e8f0; margin-top: .3rem; }

/* Autentificare */
.auth-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem 2rem; background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 320px); }
.auth-box { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; box-shadow: 0 10px 40px rgba(15,23,42,.08); }
.auth-box--wide { width: min(720px, 100%); }
.auth-box h1 { font-size: 1.3rem; margin: 0 0 1rem; text-align: center; }
.auth-links { text-align: center; font-size: .85rem; margin: 1rem 0 0; }

/* Contract */
.contract { max-width: 760px; margin: 2rem auto; padding: 0 1.5rem; background: #fff; font-family: Georgia, serif; }
.contract .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
@media print { .no-print { display: none; } }

@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .top__who { display: none; }
  .page-title { font-size: 1.2rem; }
  .card { padding: 1rem; }
  .table th, .table td { padding: .55rem .6rem; }
  .toolbar select, .toolbar input[type=search] { min-width: 0; flex: 1 1 140px; }
  .upload__drop { flex-direction: column; align-items: flex-start; }
  .upload__drop input { max-width: 100%; }
}
.log{white-space:pre-wrap;font-size:.8rem;background:#f4f6fa;padding:.6rem .8rem;border-radius:8px;overflow:auto;max-height:22rem}
.page-preview{border:1px solid var(--line);border-radius:10px;padding:1rem;max-height:28rem;overflow:auto;background:#fff}
textarea.code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.82rem;width:100%}
.tag--warn { background: #fee2e2; color: #b91c1c; }

code.wrap{word-break:break-all;white-space:normal}

/* Tipuri de spațiu + adăugare rapidă (mai multe rânduri) */
.type-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; background: #f1f5f9; color: #334155; white-space: nowrap; vertical-align: middle; }
.type-badge--container { background: #fff7ed; color: #9a3412; }
.type-badge--box { background: var(--primary-soft); color: var(--primary); }
.type-badge--depozit { background: #f0fdfa; color: #0f766e; }
.type-badge--garaj { background: #f5f3ff; color: #6d28d9; }
.qa-rows { display: grid; gap: .8rem; margin-bottom: .9rem; }
.qa-row { border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; background: #fbfcfe; }
.qa-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.qa-row__grid { display: grid; grid-template-columns: 2fr 1fr .7fr 1fr; gap: .7rem; }
.qa-row__notes { grid-column: 1 / -1; }
.qa-row .field { margin: 0; }
.qa-map summary { cursor: pointer; color: var(--primary); font-weight: 600; margin: .4rem 0 .6rem; }
.qa-newco { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.table--rows td { vertical-align: middle; }
.small { font-size: .85rem; }
@media (max-width: 640px) { .qa-row__grid { grid-template-columns: 1fr 1fr; } .qa-row__type { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { padding-left: 1.2rem; } .steps li { margin: .3rem 0; }
.signup__legal { margin: .2rem 0 .8rem; } .signup__legal summary { cursor: pointer; color: var(--primary); font-weight: 600; margin-bottom: .6rem; }
.choice { display: flex; flex-direction: column; gap: .35rem; }
.choice__other[hidden] { display: none; }
.feat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.feat-group { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .6rem; }
.feat-group legend { font-weight: 700; font-size: .85rem; padding: 0 .3rem; }
.feat-group .checks { display: flex; flex-direction: column; gap: .25rem; }
.field--other { margin: .5rem 0 0; }
.report-bar { height: .5rem; background: var(--primary-soft); border-radius: 99px; overflow: hidden; min-width: 80px; }
.report-bar > span { display: block; height: 100%; background: var(--primary); }
.cat-actions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cat-actions input[type=text] { width: 9rem; padding: .25rem .4rem; }
.cat-actions select { max-width: 11rem; padding: .25rem; }
.qa-hint { display: block; margin-top: .6rem; }
.check:has(a) { display: block; line-height: 1.45; } .check:has(a) input { vertical-align: -.2rem; margin-right: .4rem; }
