:root {
  --bg: #e7eef6;
  --ink: #122033;
  --muted: #4a5d72;
  --card: #ffffff;
  --ok: #1a7a45;
  --bad: #b42318;
  --accent: #0c7a56;
  --accent-2: #1f6f9f;
  --line: #c8d4e2;
  --top: #0a2540;
  --side: #0a2540;
  --side-w: 260px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 15% -5%, #b8e0d0 0%, transparent 55%),
    radial-gradient(800px 380px at 95% 0%, #a8c8e8 0%, transparent 50%),
    radial-gradient(600px 300px at 50% 100%, #d4e8f5 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

body.has-sidebar {
  padding-bottom: 0;
}
body.no-sidebar {
  padding-bottom: 0;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(120deg, #0a2540 0%, #0c5c48 55%, #1a6b8a 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 10px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.brand { font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; }
.badge {
  font-size: 12px;
  background: rgba(255,255,255,0.18);
  padding: 6px 10px;
  border-radius: 999px;
}
.top-user { display: flex; align-items: center; gap: 10px; }
.who { font-size: 0.9rem; opacity: 0.9; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ——— Sidebar fix ——— */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--side-w);
  background: linear-gradient(180deg, #071c31 0%, #0a2540 40%, #0d3d36 100%);
  color: #fff;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px 18px;
  box-shadow: 8px 0 28px rgba(7, 28, 49, 0.35);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-text span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7dceb0;
}
.sidebar-user {
  margin: 0 8px 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-group {
  margin: 12px 8px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dceb0;
}
.side-link {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.side-search {
  margin: 0 4px 12px;
}
.side-search input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.85rem;
}
.side-search input::placeholder { color: rgba(255,255,255,0.45); }
.side-search input:focus {
  outline: none;
  border-color: #7dceb0;
  background: rgba(255,255,255,0.12);
}
.side-link:hover { background: rgba(255,255,255,0.08); }
.side-link.active {
  background: linear-gradient(90deg, #0c7a56, #1a8f6a);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 122, 86, 0.35);
}
.side-logout { margin-top: 8px; color: #ffb4ae; }
.badge-n {
  display: inline-block;
  background: #f0b429;
  color: #122033;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
  min-width: 1.4em;
  text-align: center;
}
.badge-n-zero {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.side-notif {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(240, 180, 41, 0.18);
  border: 1px solid rgba(240, 180, 41, 0.45);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.side-notif:hover, .side-notif.active {
  background: rgba(240, 180, 41, 0.28);
  color: #fff;
}
.side-notif .badge-n { font-size: 0.85rem; padding: 2px 9px; margin: 0; }
.mobile-notif {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
}
.mobile-notif .badge-n { margin: 0; }
.notif-strip {
  display: block;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(90deg, #f0b429, #e8a317);
  color: #122033;
  position: sticky;
  top: 0;
  z-index: 25;
}
body.has-sidebar .notif-strip { margin-left: var(--side-w); }
@media (max-width: 899px) {
  body.has-sidebar .notif-strip { margin-left: 0; top: 52px; }
}

.sidebar-foot {
  margin: 14px 8px 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

.mobile-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(120deg, #0a2540, #0c5c48);
  color: #fff;
}
.menu-toggle {
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}
.mobile-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; flex: 1; min-width: 0;
}
.mobile-brand img { border-radius: 8px; }
.who-mobile {
  font-size: 0.8rem; opacity: 0.85;
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 28, 49, 0.45);
  z-index: 35;
}

.app-shell {
  min-height: 100vh;
}
body.has-sidebar .app-shell {
  margin-left: var(--side-w);
}
body.has-sidebar .flashes {
  margin-left: var(--side-w);
  max-width: none;
}

@media (max-width: 899px) {
  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-top { display: flex; }
  body.has-sidebar .app-shell { margin-left: 0; }
  body.has-sidebar .flashes { margin-left: 0; }
}

.wrap { max-width: 960px; margin: 0 auto; padding: 18px 16px 36px; }
.hero h1 { margin: 0 0 8px; font-size: 1.55rem; }
.lead { margin: 0; color: var(--muted); line-height: 1.45; }

.cards {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card, .panel, .login-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.08);
}
.panel { margin-top: 16px; }
.panel h2, .card h2 { margin: 0 0 10px; font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.card.ok { border-color: #9fd5b8; background: #f3faf6; }
.card.bad { border-color: #f0b4ae; background: #fff8f7; }
.big { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; color: var(--accent); }
.card.bad .big { color: var(--bad); }
.mono { font-family: Consolas, monospace; font-size: 0.78rem; word-break: break-all; color: var(--muted); }
.muted { color: var(--muted); }
.err { color: var(--bad); }
ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hint { margin-top: 14px; color: var(--muted); }
.hint.small { font-size: 0.85rem; }
.hint a { color: var(--accent); }

.login-box { max-width: 420px; margin: 24px auto; }
.login-box h1 { margin: 0 0 8px; font-size: 1.4rem; }

.form { display: grid; gap: 12px; margin-top: 12px; }
.form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form input, .form select {
  font: inherit;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.form.compact { margin-top: 8px; }
.form.inline { display: inline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #0c7a56, #1aa872);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 122, 86, 0.28);
}
.btn-secondary {
  background: linear-gradient(135deg, #0a2540, #1a4f75);
  color: #fff;
}
.btn-ghost, a.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
}
button.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
}
.btn-block { width: 100%; }

.flashes { max-width: 920px; margin: 10px auto 0; padding: 0 14px; }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; font-size: 0.92rem; }
.flash-ok { background: #e5f6ec; color: var(--ok); }
.flash-err, .flash-warn { background: #fdecea; color: var(--bad); }

body.has-nav { padding-bottom: 0; }

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.worlds {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.world-card {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  min-height: 120px;
  box-shadow: 0 10px 28px rgba(18, 48, 71, 0.12);
}
.world-inchirieri {
  background: linear-gradient(145deg, #0f3d5c 0%, #1a6b8a 100%);
}
.world-programari {
  background: linear-gradient(145deg, #0b5c45 0%, #1a8f6a 100%);
}
.world-rapoarte {
  background: linear-gradient(145deg, #4a3a1a 0%, #b8860b 55%, #d4a017 100%);
  color: #fff;
}
.world-rapoarte .world-label,
.world-rapoarte .world-desc,
.world-rapoarte .world-cta,
.world-rapoarte strong {
  color: #fff;
  opacity: 1;
}
.world-label { font-size: 0.75rem; opacity: 0.85; font-weight: 600; }
.world-card strong { font-size: 1.45rem; }
.world-desc { font-size: 0.92rem; opacity: 0.92; line-height: 1.4; }
.world-cta { margin-top: 6px; font-weight: 700; font-size: 0.9rem; }

.home-kpi .muted-num { color: var(--muted); font-weight: 700; }

.hub-list { display: grid; gap: 10px; margin-top: 8px; }
.hub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.06);
}
.hub-item strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.hub-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hub-item-alt { border-left: 4px solid #1a8f6a; }
.hub-alt-motiv { border-left-color: #c47a1a; background: #fffaf0; }
.hub-meta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a2540;
  background: #d9ebe3;
  padding: 6px 10px;
  border-radius: 999px;
}
.hub-static { cursor: default; }
.hub-danger { border-color: #f0b4ae; }
.hub-danger strong { color: var(--bad); }

.crumb { margin: 0 0 12px; }
.crumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.placeholder-panel h1 { margin: 0 0 10px; font-size: 1.35rem; }

.bottom-nav { display: none !important; }

.user-row {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.user-row.inactive { opacity: 0.55; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  background: #eef2f6;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--muted);
}
.legend { margin-top: 14px; font-size: 0.88rem; }
.pw summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 16px;
}

.row-between { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.search-bar { display:flex; gap:8px; margin:12px 0 16px; }
.search-bar input { flex:1; padding:12px; border:1px solid var(--line); border-radius:10px; font:inherit; }
.car-list { display:grid; gap:10px; }
.car-card {
  display:block; padding:14px 16px; background:#fff; border:1px solid var(--line);
  border-radius:14px; text-decoration:none; color:inherit;
  box-shadow:0 6px 18px rgba(18,48,71,0.05);
}
.car-card.alerta { border-color:#f0b4ae; background:#fff8f7; }
.car-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.car-num { font-size:1.15rem; font-weight:800; margin:6px 0; letter-spacing:0.02em; }
.car-meta { font-size:0.85rem; color:var(--muted); }
.car-warn { margin-top:8px; font-size:0.85rem; font-weight:700; color:var(--bad); }
.pill {
  font-size:0.75rem; font-weight:700; padding:4px 8px; border-radius:999px;
  background:#eef2f6; color:var(--muted);
}
.status-Disponibilă .pill { background:#e5f6ec; color:var(--ok); }
.status-Închiriată .pill, .car-card .pill { }
.actions-grid { display:grid; gap:10px; margin:14px 0; }
.btn-ghost-dark {
  display:inline-flex; justify-content:center; align-items:center;
  padding:12px 16px; border-radius:10px; border:1px solid var(--line);
  background:#fff; color:var(--ink); font:inherit; font-weight:700; text-decoration:none;
}
.hist-row { padding:10px 0; border-bottom:1px solid var(--line); font-size:0.92rem; }
.hist-row:last-child { border-bottom:0; }
.warn-panel { border-color:#f0b4ae; }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.chip {
  padding:8px 12px; border-radius:999px; background:#fff; border:1px solid var(--line);
  text-decoration:none; color:var(--muted); font-size:0.82rem; font-weight:700;
}
.chip.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.alert-row {
  display:block; padding:12px 0; border-bottom:1px solid var(--line);
  text-decoration:none; color:inherit;
}
.alert-row.critic strong { color:var(--bad); }
.total-line { font-size:1.1rem; margin:4px 0 8px; }
.danger-zone { margin:24px 0; text-align:center; }

.check { display:flex; align-items:center; gap:8px; font-weight:600; margin:8px 0; }
.check input { width:auto; }
.check-group { border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:12px 0; }
.check-group legend { font-weight:700; padding:0 4px; }
.small { font-size:0.85rem; }
.dot-culoare {
  display:inline-block; width:12px; height:12px; border-radius:50%;
  vertical-align:middle; margin-right:6px;
}
.orar-zi {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 0; border-bottom:1px solid var(--line);
}
.orar-zi:last-of-type { border-bottom:0; }
.orar-ore { display:flex; align-items:center; gap:8px; }
.orar-ore input[type="time"],
.orar-ore input[type="text"] { width:5.5rem; padding:8px; text-align:center; font-variant-numeric:tabular-nums; }

/* Alegere vizuală culoare post */
.culoare-picker { border:0; padding:0; margin:0 0 12px; }
.culoare-picker legend { font-weight:600; margin-bottom:4px; }
.culoare-swatches { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.culoare-swatch { position:relative; cursor:pointer; margin:0; }
.culoare-swatch input { position:absolute; opacity:0; width:0; height:0; }
.culoare-swatch span {
  display:block; width:36px; height:36px; border-radius:50%;
  border:3px solid transparent; box-shadow:0 0 0 1px rgba(0,0,0,0.12);
}
.culoare-swatch input:checked + span {
  border-color:#123047; box-shadow:0 0 0 2px #fff, 0 0 0 4px #123047;
}
.culoare-swatch input:focus-visible + span {
  outline:2px solid #0c7a56; outline-offset:3px;
}
.slot-preview { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.car-card.inactive { opacity:0.55; }

.cal-nav {
  display:flex; justify-content:center; align-items:center; gap:10px;
  margin: 8px 0 14px;
}
.prog-list { display:grid; gap:10px; }
.prog-card {
  display:flex; gap:0; background:#fff; border:1px solid var(--line);
  border-radius:14px; overflow:hidden; text-decoration:none; color:inherit;
  box-shadow:0 6px 18px rgba(18,48,71,0.05);
}
.prog-bar { width:6px; flex-shrink:0; }
.prog-body { padding:12px 14px; flex:1; min-width:0; }
.prog-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.prog-client { font-size:1.05rem; font-weight:700; margin:4px 0; }
.prog-meta { font-size:0.85rem; color:var(--muted); }
.prog-card.status-anulata, .prog-card.status-neprezentare { opacity:0.55; }
.prog-card.status-anulata .pill, .prog-card.status-neprezentare .pill { background:#f0f0f0; }
.prog-card.status-in_lucru .pill { background:#fff4e5; color:#9a5b00; }
.prog-card.status-finalizata .pill { background:#e5f6ec; color:var(--ok); }
.prog-card.status-cerere .pill { background:#eef2f6; }

.week-grid { display:grid; gap:10px; }
@media (min-width:640px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
}
.week-day {
  display:block; padding:12px 14px; background:#fff; border:1px solid var(--line);
  border-radius:14px; text-decoration:none; color:inherit;
}
.week-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(11,110,79,0.15); }
.week-day-head { display:flex; justify-content:space-between; margin-bottom:6px; }
.week-count { font-weight:700; font-size:0.95rem; margin-bottom:8px; }
.week-mini { list-style:none; margin:0; padding:0; font-size:0.85rem; color:var(--muted); }
.week-mini li { padding:2px 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.status-actions .chip { border:0; cursor:pointer; font:inherit; }
.public-body { padding-bottom: 24px; }
.public-top .badge { background: rgba(255,255,255,0.2); }
.hint { color: var(--muted); margin-top: 12px; line-height: 1.4; }
.legend { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.legend li { margin-bottom: 8px; }
.notif-row {
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
  padding:12px 0; border-bottom:1px solid var(--line);
}
.notif-row:last-child { border-bottom:0; }
.notif-row.unread { background: #f3faf6; margin: 0 -12px; padding:12px; border-radius:10px; border-bottom:0; margin-bottom:8px; }
.card.warn { border-color: #e0c56e; }
.home-kpi { display:grid; gap:10px; grid-template-columns: 1fr 1fr; }
@media (min-width:700px) {
  .home-kpi { grid-template-columns: repeat(4, 1fr); }
}
.pwa-panel { text-align: center; }
.pwa-icon-wrap {
  display:flex; justify-content:center; margin-bottom:12px;
}
.pwa-icon-wrap img {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(18,48,71,0.18);
}
.ios-hint { text-align: left; margin-top: 18px; }
.pwa-standalone .top { padding-top: max(14px, env(safe-area-inset-top)); }
.modul-list { list-style: none; margin: 0; padding: 0; }
.modul-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.modul-list li:last-child { border-bottom: 0; }
.modul-list li.ok strong::before { content: "✓ "; color: var(--ok); }
.modul-list li span { color: var(--muted); font-size: 0.9rem; }
.bar-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 8px;
  align-items: center; margin: 8px 0; font-size: 0.85rem;
}
.bar-label { color: var(--muted); font-weight: 600; }
.bar-track {
  position: relative; height: 14px; background: #eef2f6;
  border-radius: 6px; overflow: hidden;
}
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: 0.85; }
.bar-fill.inc { background: var(--ok); }
.bar-fill.chelt { background: var(--bad); opacity: 0.55; }
.bar-val { color: var(--muted); white-space: nowrap; font-size: 0.78rem; }

/* Rapoarte — contrast clar */
.report-kpi .card h2 { color: #3d4a5c; font-weight: 700; }
.report-kpi .card .big { font-size: 1.55rem; margin-bottom: 4px; }
.report-kpi .card .muted { font-weight: 600; }

.kpi-inc {
  background: #e8f6ee;
  border-color: #2a9a5c;
}
.kpi-inc .big { color: #146c3a; }

.kpi-chelt {
  background: #fdf0ee;
  border-color: #d4584c;
}
.kpi-chelt .big { color: #9a1f16; }

.kpi-profit {
  background: #e8f2fb;
  border-color: #2f6f9f;
}
.kpi-profit .big { color: #1a4f75; }

.kpi-loss {
  background: #fdecea;
  border-color: #b42318;
}
.kpi-loss .big { color: #b42318; }

.kpi-ocup {
  background: #f0f3f7;
  border-color: #123047;
}
.kpi-ocup .big { color: #123047; }

.kpi-cereri {
  background: #fff6e8;
  border-color: #c47d1a;
}
.kpi-cereri .big { color: #8a5508; }

.legend-bars {
  display: flex; gap: 16px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 700;
}
.leg-inc::before, .leg-chelt::before {
  content: ""; display: inline-block; width: 12px; height: 12px;
  border-radius: 3px; margin-right: 6px; vertical-align: -1px;
}
.leg-inc::before { background: #1f7a4d; }
.leg-chelt::before { background: #b42318; }
.leg-inc { color: #146c3a; }
.leg-chelt { color: #9a1f16; }

.bar-day {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.bar-day:last-child { border-bottom: 0; }
.bar-day-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px; gap: 8px;
}
.bar-day-head strong { color: var(--ink); font-size: 0.92rem; }
.bar-day-head .bar-val { color: var(--ink); font-weight: 700; font-size: 0.85rem; }
.bar-row-split { display: grid; gap: 5px; }
.bar-row-split .bar-track {
  height: 16px;
  background: #e2e8ef;
  border-radius: 8px;
}
.bar-row-split .bar-fill {
  position: relative;
  height: 100%;
  border-radius: 8px;
  opacity: 1;
  min-width: 0;
}
.bar-row-split .bar-fill.inc { background: #1f7a4d; }
.bar-row-split .bar-fill.chelt { background: #c0392b; }

.panel-venit { border-color: #2a9a5c; background: #f3faf6; }
.venit-big {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #146c3a;
}
.venit-big span { font-size: 1rem; font-weight: 700; color: #3d4a5c; }

/* Dashboard Acasă */
.dash-vizual { margin-top: 18px; display: grid; gap: 14px; }
@media (min-width: 720px) {
  .dash-vizual { grid-template-columns: 1fr 1fr; }
}
.ocupare-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px; gap: 8px;
}
.ocupare-track {
  height: 22px; background: #d9e4ef; border-radius: 999px; overflow: hidden;
  display: flex;
}
.ocupare-fill {
  height: 100%; min-width: 0;
  transition: width 0.4s ease;
}
.ocupare-fill.libere { background: #1a8f6a; }
.ocupare-fill.inchiriate { background: #1f6f9f; }
.ocupare-fill.service { background: #c47a1a; }
.ocupare-legenda {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px;
  font-size: 0.82rem; color: var(--muted);
}
.ocupare-legenda span::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; margin-right: 6px; vertical-align: middle;
}
.leg-libere::before { background: #1a8f6a; }
.leg-inch::before { background: #1f6f9f; }
.leg-serv::before { background: #c47a1a; }
.prog-mini-list { list-style: none; margin: 0; padding: 0; }
.prog-mini-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.prog-mini-list li:last-child { border-bottom: 0; }
.prog-mini-list .ora { font-weight: 700; color: var(--accent-2); white-space: nowrap; }

/* Poze mașină */
.poze-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 10px;
}
.poza-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.poza-card img {
  display: block; width: 100%; height: 120px; object-fit: cover; background: #eef3f8;
}
.poza-card .poza-meta { padding: 8px; font-size: 0.78rem; color: var(--muted); }
.poza-card form { padding: 0 8px 8px; }

/* Notificări — confirmare rapidă */
.notif-row .user-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-confirm { background: #0c7a56; color: #fff; border: 0; }
.btn-wa { background: #128c7e; color: #fff; }

.poza-actiuni { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.poza-file-btn { position:relative; overflow:hidden; cursor:pointer; margin:0; }
.poza-file-input {
  position:absolute; inset:0; opacity:0; cursor:pointer; font-size:0;
}
.fact-anulata { opacity:0.65; }
.fact-anulata strong { text-decoration:line-through; }
.rent-card-row { display:flex; gap:12px; align-items:center; }
.rent-thumb {
  width:64px; height:64px; object-fit:cover; border-radius:10px; background:#eef3f8;
}
.rent-cost { margin:14px 0; padding:12px; background:#eef6f2; border-radius:12px; }
.big-cost { font-size:1.25rem; color:#0c7a56; }

.cal-luna-head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted);
  margin-bottom: 6px;
}
.cal-luna-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-zi {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 10px; text-decoration: none; color: inherit;
  font-size: 0.85rem; border: 1px solid var(--line); background: #fff;
}
.cal-zi em { font-style: normal; font-weight: 700; }
.cal-zi small { font-size: 0.65rem; opacity: 0.85; }
.cal-zi.empty { border: 0; background: transparent; }
.cal-zi.stare-liber { background: #e5f6ec; border-color: #b7e4c7; color: #0c7a56; }
.cal-zi.stare-ocupat { background: #fde8e8; border-color: #f5c2c2; color: #b42318; }
.cal-zi.stare-partial { background: #fff4e5; border-color: #f5d5a6; color: #9a5b00; }
.cal-zi.azi { outline: 2px solid #123047; outline-offset: 1px; }
.chip.stare-liber { background: #e5f6ec; color: #0c7a56; }
.chip.stare-ocupat { background: #fde8e8; color: #b42318; pointer-events: none; opacity: 0.75; }
.status-mare {
  font-size: 1.4rem; font-weight: 800; margin: 0 0 12px; padding: 12px;
  border-radius: 12px; text-align: center;
}
.status-mare.stare-finalizata { background: #e5f6ec; color: #0c7a56; }
.status-mare.stare-in_lucru { background: #fff4e5; color: #9a5b00; }
.status-mare.stare-confirmata { background: #e8f0fe; color: #1a56a8; }
.status-mare.stare-cerere { background: #eef2f6; color: #445; }
.status-mare.stare-anulata { background: #fde8e8; color: #b42318; }

.rent-hero { margin-bottom: 16px; }
.rent-hero-img {
  border-radius: 16px; overflow: hidden; background: #dfe7ef;
  aspect-ratio: 16/10; margin-bottom: 12px;
}
.rent-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rent-hero-text h1 { margin: 0 0 4px; font-size: 1.6rem; }
.rent-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px;
}
.rent-thumbs img {
  width: 100%; height: 56px; object-fit: cover; border-radius: 8px; background: #eef3f8;
}
.rent-disp h3 { font-size: 0.95rem; margin: 14px 0 8px; color: var(--accent, #123047); }
.rent-head { font-size: 0.7rem; }
.rent-grid .cal-zi {
  min-height: 40px; font-size: 0.8rem;
}
.rent-grid .cal-zi.trecut { opacity: 0.35; }
.legend-inline { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.legend-inline .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px;
  vertical-align: middle;
}
.legend-inline .dot.liber { background: #0c7a56; }
.legend-inline .dot.ocupat { background: #b42318; }

.rent-list {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .rent-list { grid-template-columns: 1fr 1fr; }
}
.rent-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(18,48,71,0.06);
}
.rent-card-img { aspect-ratio: 16/10; background: #e8eef4; }
.rent-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rent-card-img-empty {
  display: flex; align-items: center; justify-content: center; color: #889; font-size: 0.9rem;
}
.rent-card-body { padding: 12px 14px; }
.rent-card-body strong { font-size: 1.05rem; }
.rent-card-body p { margin: 4px 0 0; color: var(--muted); }

.camera-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.camera-modal[hidden] { display: none !important; }
.camera-box {
  background: #111; border-radius: 16px; padding: 12px; width: min(480px, 100%);
}
.camera-box video {
  width: 100%; border-radius: 12px; background: #000; max-height: 60vh; object-fit: cover;
}
.camera-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Căutare */
.search-hit {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.search-hit:hover { background: rgba(12, 122, 86, 0.04); }
.search-hit strong { color: var(--accent); }
.search-hit .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: #e8f2ec; color: #0c7a56; padding: 2px 7px; border-radius: 6px;
  margin-right: 6px;
}

/* Facturi */
.fact-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: 0; }
