:root {
  --navy: #1e2a5e;
  --navy-dark: #141d47;
  --navy-light: #253993;
  --gold: #eab125;
  --gold-light: #f4cf6e;
  --bg: #f4f5fa;
  --card: #ffffff;
  --border: #e4e6f0;
  --text: #1f2433;
  --text-muted: #6b7280;
  --radius: 14px;
  --glass-bg: rgba(255,255,255,0.62);
  --glass-bg-strong: rgba(255,255,255,0.78);
  --glass-border: rgba(255,255,255,0.6);
  --glass-blur: blur(20px) saturate(180%);
  /* Világos módban fehéres, félig átlátszó felületek (mezők, gombok, modal,
     sorok) - sötét módban ugyanezek a nevek sötétebb értékre váltanak lent. */
  --input-bg: rgba(255,255,255,0.75);
  --input-bg-focus: rgba(255,255,255,0.95);
  --btn-secondary-bg: rgba(238,240,247,0.85);
  --btn-secondary-bg-hover: rgba(228,231,242,0.95);
  --panel-bg: rgba(255,255,255,0.55);
  --panel-bg-strong: rgba(255,255,255,0.85);
  --modal-bg: rgba(255,255,255,0.9);
  --row-hover: rgba(37,57,147,0.05);
  --flash-error-bg: #fdecec;
  --flash-success-bg: #eafaf0;
  --scan-error-bg: rgba(253,236,236,0.8);
  --scan-error-border: rgba(243,194,194,0.85);
  --scan-error-text: #b91c1c;
  --scan-success-bg: rgba(236,253,242,0.8);
  --scan-success-border: rgba(187,230,203,0.85);
  --scan-success-text: #157347;
}

/* Sötét mód: a data-theme="dark" attribútumot a public/app.js kapcsolja a
   <html>-re (a választás localStorage-ban marad meg), a layout.js pedig egy
   induló, blokkoló szkripttel állítja be még a betöltés elején, hogy ne
   villanjon fel világos mód sötét mód helyett (FOUC). Csak a felület
   színeit írja felül - az état-badge-ek (pl. csomag-státuszok) szándékosan
   sajátos, telített színűek maradnak, azok mindkét módban jól látszanak. */
:root[data-theme="dark"] {
  --bg: #12141c;
  --card: #1a1d29;
  --border: rgba(255,255,255,0.1);
  --text: #e7e9f2;
  --text-muted: #9aa1b5;
  --glass-bg: rgba(30,33,48,0.6);
  --glass-bg-strong: rgba(30,33,48,0.8);
  --glass-border: rgba(255,255,255,0.09);
  --input-bg: rgba(255,255,255,0.06);
  --input-bg-focus: rgba(255,255,255,0.1);
  --btn-secondary-bg: rgba(255,255,255,0.08);
  --btn-secondary-bg-hover: rgba(255,255,255,0.14);
  --panel-bg: rgba(255,255,255,0.05);
  --panel-bg-strong: rgba(255,255,255,0.1);
  --modal-bg: rgba(26,29,41,0.95);
  --row-hover: rgba(255,255,255,0.04);
  --flash-error-bg: rgba(185,28,28,0.22);
  --flash-success-bg: rgba(21,115,71,0.22);
  --scan-error-bg: rgba(185,28,28,0.22);
  --scan-error-border: rgba(185,28,28,0.4);
  --scan-error-text: #ff8a8a;
  --scan-success-bg: rgba(21,115,71,0.28);
  --scan-success-border: rgba(21,115,71,0.5);
  --scan-success-text: #6ee7b7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }

/* --- Layout: sidebar + content --- */
body.with-sidebar {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Halvány, elmosódó színfoltok a háttérben - ezeket "szűri át" az üveg-sáv
   (backdrop-filter blur), ez adja az iOS-szerű, valódi üveg-hatást ahelyett,
   hogy a sáv egyszerűen csak áttetsző lenne egy sima háttér felett. */
body.with-sidebar::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px circle at 4% 0%, rgba(234,177,37,0.18), transparent 60%),
    radial-gradient(520px circle at 0% 92%, rgba(37,57,147,0.28), transparent 62%),
    radial-gradient(900px circle at 30% 45%, rgba(234,177,37,0.07), transparent 70%),
    radial-gradient(700px circle at 100% 0%, rgba(37,57,147,0.12), transparent 62%),
    radial-gradient(650px circle at 96% 100%, rgba(234,177,37,0.1), transparent 62%);
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  margin: 14px 0 14px 14px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(37,57,147,0.55) 0%, rgba(20,29,71,0.72) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 16px 40px rgba(15,20,50,0.28);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  overflow: hidden;
  z-index: 1;
}

.brand {
  padding: 22px 18px 14px;
}
.brand-logo { max-width: 100%; height: auto; display: block; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.74);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nav-item:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.nav-item.active {
  background: linear-gradient(165deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 14px rgba(234,177,37,0.35);
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icon svg { width: 18px; height: 18px; }

.nav-group summary.nav-item {
  cursor: pointer;
  list-style: none;
  position: relative;
}
.nav-group summary.nav-item::-webkit-details-marker { display: none; }
.nav-chevron {
  margin-left: auto;
  display: flex;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.nav-chevron svg { width: 11px; height: 11px; }
.nav-group[open] > summary .nav-chevron { transform: rotate(180deg); }
.nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 36px;
}
.nav-subitem {
  padding: 8px 10px;
  border-radius: 9px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-subitem:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-subitem.active { background: var(--gold); color: var(--navy-dark); font-weight: 700; }

.sidebar-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.theme-toggle {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { background: rgba(255,255,255,0.16); color: #fff; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(165deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.user-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.user-role { font-size: 12px; color: rgba(255,255,255,0.6); }
.btn-logout {
  width: 100%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}
.btn-logout:hover { background: rgba(255,255,255,0.18); }

.content-wrap { flex: 1; min-width: 0; position: relative; z-index: 1; }
.main { padding: 28px 32px; max-width: 1200px; margin: 0 auto; }
.app-footer {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px 24px;
  font-size: 11.5px; color: #9aa1b0; line-height: 1.6;
}
@media (max-width: 720px) { .app-footer { padding: 12px 18px 20px; } }

/* --- Auth page --- */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
body.auth-page .content-wrap { flex: 0 1 auto; }
body.auth-page .main { padding: 0; margin: 0; max-width: none; }
.auth-card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 34px;
  width: 100%;
  max-width: 380px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 20px 50px rgba(0,0,0,0.3);
}
.auth-card img.brand-logo { display: block; margin: 0 auto 22px; max-width: 190px; }
.auth-card h1 { font-size: 18px; text-align: center; margin: 0 0 22px; color: var(--text-muted); font-weight: 500; }

/* --- Typography / headers --- */
h1.page-title { font-size: 22px; margin: 0 0 4px; }
.page-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 22px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

/* --- Cards / stat tiles --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.stat-tile {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 18px rgba(30,42,94,0.06);
  transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
}
.stat-tile .stat-value { font-size: 26px; font-weight: 700; }
.stat-tile .stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.stat-tile .stat-accent { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
a.stat-tile { display: block; text-decoration: none; color: inherit; cursor: pointer; }
a.stat-tile:hover { background: var(--glass-bg-strong); border-color: rgba(37,57,147,0.35); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 20px rgba(30,42,94,0.12); }

.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 18px rgba(30,42,94,0.06);
}
.card h2 { font-size: 15px; margin: 0 0 14px; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
tbody tr:hover { background: var(--row-hover); }
td.wrap { white-space: normal; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* --- Forms --- */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin: 14px 0 5px; }
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: var(--input-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(37,57,147,0.12); background: var(--input-bg-focus); }
textarea { resize: vertical; min-height: 70px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, filter .15s, box-shadow .15s;
}
.btn-primary { background: linear-gradient(165deg, var(--navy-light) 0%, var(--navy) 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-primary:hover { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%); }
.btn-gold { background: linear-gradient(165deg, var(--gold-light), var(--gold)); color: var(--navy-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--btn-secondary-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text); }
.btn-secondary:hover { background: var(--btn-secondary-bg-hover); }
.btn-danger { background: rgba(253,236,236,0.85); color: #b91c1c; }
.btn-danger:hover { background: rgba(251,218,218,0.95); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 180px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }

.status-select { padding: 5px 8px; border-radius: 6px; font-size: 12.5px; border: 1px solid var(--border); min-width: 150px; }

/* --- Depó: vékony beolvasó-sáv + élő beolvasás-lista --- */
.scan-bar {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 14px;
  border: 2px solid var(--navy-light);
}
.scan-bar:focus { box-shadow: 0 0 0 4px rgba(37,57,147,0.16); }
.scan-log { display: flex; flex-direction: column; gap: 8px; }
.scan-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13.5px;
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.scan-log-row.scan-error { background: var(--scan-error-bg); border-color: var(--scan-error-border); color: var(--scan-error-text); }
.scan-log-row.scan-success { background: var(--scan-success-bg); border-color: var(--scan-success-border); color: var(--scan-success-text); }
.scan-log-code { font-weight: 700; }
.scan-log-time { color: var(--text-muted); font-size: 12px; white-space: nowrap; flex: 0 0 auto; }

.error-text { color: #b91c1c; font-size: 13px; margin-top: 10px; }

.flash { padding: 12px 32px; font-size: 13.5px; font-weight: 500; }
.flash-error { background: var(--flash-error-bg); color: #b91c1c; }
.flash-success { background: var(--flash-success-bg); color: #157347; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.text-right { text-align: right; }
/* !important szükséges, mert e nélkül a .modal-backdrop { display: flex }
   szabály (lentebb a fájlban, azonos specificitással) felülírná ezt, és a
   modal a "hidden" osztály ellenére is mindig látszana, bezárhatatlanul. */
.hidden { display: none !important; }

.pill-nav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pill-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(228,230,240,0.9);
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.pill-nav a:hover { background: var(--panel-bg-strong); color: var(--text); }
.pill-nav a.active {
  background: linear-gradient(165deg, var(--navy-light) 0%, var(--navy) 100%);
  color: #fff;
  border-color: var(--navy-light);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 12px rgba(30,42,94,0.25);
}

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,25,60,0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal {
  background: var(--modal-bg);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px; width: 100%; max-width: 460px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 24px 60px rgba(15,20,50,0.3);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 0; flex: 0 0 auto;
}
.modal-header h2 { margin: 0; }
.modal-body { padding: 14px 26px 24px; overflow-y: auto; }
.modal-close {
  cursor: pointer; color: var(--text-muted); font-size: 20px; line-height: 1;
  background: none; border: none; padding: 4px;
}

@media (max-width: 760px) {
  body.with-sidebar { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; margin: 0; border-radius: 0;
    position: relative; top: 0; flex-direction: row; align-items: center; padding: 0;
    border-width: 0 0 1px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 20px rgba(15,20,50,0.2);
  }
  .brand { padding: 12px; }
  .brand-logo { max-width: 130px; }
  .nav { flex-direction: row; overflow-x: auto; padding: 6px 8px; }
  .sidebar-footer { display: none; }
  .main { padding: 18px; }
}

/* --- Csomag címke (nyomtatható) --- */
.label-print-area { display: flex; justify-content: center; }
.label-box {
  width: 100mm;
  min-height: 148mm;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 8mm;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.label-company {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-align: center;
  border-bottom: 1px solid var(--border); padding-bottom: 6px; letter-spacing: 0.01em;
}
.label-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 2px solid var(--navy); padding-bottom: 8px;
}
.label-logo { max-height: 52px; }
.label-tracking { font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: var(--navy); }
.label-piece { font-size: 12.5px; font-weight: 700; color: #fff; background: var(--navy); display: inline-block; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.label-qr-row { display: flex; align-items: center; gap: 14px; }
.label-qr { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 4px; }
.label-qr-side { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.label-cod {
  background: #fff7e6; border: 2px solid var(--gold); border-radius: 8px;
  padding: 8px 10px; font-size: 11px; font-weight: 700; color: #92660a;
  text-align: center; line-height: 1.5;
}
.label-cod span { font-size: 18px; display: block; }
.label-weight { font-size: 13px; font-weight: 600; color: var(--text); text-align: center; }
.label-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.label-party { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.label-party-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.label-party-name { font-weight: 700; font-size: 13.5px; }
.label-party-detail { font-size: 12px; color: var(--text-muted); }
.label-note { font-size: 12px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 6px; }

@media print {
  body.with-sidebar .sidebar,
  .app-footer,
  .flash,
  .no-print { display: none !important; }
  body.with-sidebar { display: block; }
  .content-wrap { width: 100%; }
  .main { padding: 0; margin: 0; max-width: none; }
  .label-box { box-shadow: none; border: none; margin: 0; }
  @page { size: 100mm 150mm; margin: 0; }
}

/* Többdarabos rendelés: összesítő sor + lenyíló darabok */
.group-toggle { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.group-toggle:hover strong { color: var(--navy-light); text-decoration: underline; }
.group-caret { display: inline-block; width: 12px; color: var(--navy-light); font-size: 12px; }
tr.group-row { background: rgba(37, 57, 147, 0.04); }
tr.piece-row td:first-child { padding-left: 34px; }
tr.piece-row { background: rgba(255, 255, 255, 0.55); }
tr.piece-list-row td { padding: 6px 12px 12px 34px; background: rgba(37, 57, 147, 0.03); }
.piece-list { display: flex; flex-direction: column; gap: 6px; }
.piece-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* Futároknál lévő csomagok - térkép */
#courier-map { height: 580px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.map-pin { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 12px/1 system-ui, sans-serif; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.45); }
.map-pin.route { background: #253993; }
.map-pin.pickup { background: #ea580c; }
.map-pin.delivered { background: #16a34a; }

/* Szűrő-csoportok elválasztója (pl. Ügyfelek: típus | csak aktívak) */
.pill-nav .pill-sep { width: 1px; align-self: stretch; background: var(--border); margin: 4px 6px; flex: 0 0 auto; }
