/* ==========================================================================
   MyERP Logistic — sistema de diseño (tema oscuro operativo)
   CSS propio, sin dependencias: si falla un CDN de iconos/mapa la app sigue usable.
   ========================================================================== */

:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --card: #121c31;
  --card-2: #172338;
  --card-3: #1c2a45;
  --border: #22304d;
  --border-soft: #1b2942;
  --text: #e6edf7;
  --text-soft: #c7d2e3;
  --muted: #8fa3bf;
  --primary: #3b82f6;
  --primary-soft: #1d4ed8;
  --primary-dim: rgba(59, 130, 246, 0.14);
  --success: #10b981;
  --success-dim: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.14);
  --danger: #f43f5e;
  --danger-dim: rgba(244, 63, 94, 0.14);
  --sky: #38bdf8;
  --sky-dim: rgba(56, 189, 248, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  --sidebar: 252px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration: none; }
a:hover { color: #7dd3fc; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: rgba(59, 130, 246, 0.35); }

/* ------------------------------- Layout --------------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: linear-gradient(180deg, #0e1830 0%, #0b1220 100%);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #1e40af);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  color: #fff;
}
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; }
.brand-name span { color: var(--sky); }
.brand-tag { font-size: 10px; color: var(--muted); font-family: ui-monospace, monospace; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding: 12px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; color: var(--text-soft);
  font-weight: 600; font-size: 13px; border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-link i, .nav-link svg { width: 18px; height: 18px; color: var(--muted); }
.nav-link:hover { background: rgba(148, 163, 184, 0.08); color: #fff; }
.nav-link.active {
  background: var(--primary-dim);
  border-color: rgba(59, 130, 246, 0.35);
  color: #dbeafe;
}
.nav-link.active i, .nav-link.active svg { color: var(--sky); }
.sidebar-footer { margin-top: auto; font-size: 11px; color: var(--muted); padding: 10px; border-top: 1px solid var(--border-soft); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.82); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-sub { font-size: 11px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.content { padding: 22px; width: 100%; max-width: 1560px; margin: 0 auto; }

@media (max-width: 980px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; flex: none; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label, .sidebar-footer { display: none; }
  .nav-link { padding: 8px 10px; font-size: 12px; }
  .content { padding: 14px; }
}

/* ------------------------------- Tarjetas -------------------------------- */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-flat { background: var(--card); box-shadow: none; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
.card-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-title i, .card-title svg { width: 16px; height: 16px; color: var(--sky); }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 10px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-4 { grid-template-columns: 1fr; } }

/* -------------------------------- KPIs ---------------------------------- */
.kpi { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: var(--radius); }
.kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-dim); color: var(--sky); flex: none; }
.kpi-icon.success { background: var(--success-dim); color: var(--success); }
.kpi-icon.warning { background: var(--warning-dim); color: var(--warning); }
.kpi-icon.danger { background: var(--danger-dim); color: var(--danger); }
.kpi-icon.sky { background: var(--sky-dim); color: var(--sky); }
.kpi-value { font-size: 22px; font-weight: 800; line-height: 1.1; }
.kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.kpi-hint { font-size: 11px; color: var(--muted); }

/* ------------------------------- Botones -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--card-3); color: var(--text); font-weight: 700; font-size: 12.5px;
  cursor: pointer; transition: transform 0.05s ease, filter 0.15s ease, background 0.15s ease;
  font-family: inherit; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn i, .btn svg { width: 15px; height: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-soft)); border-color: transparent; color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35); }
.btn-success { background: linear-gradient(135deg, #059669, #047857); border-color: transparent; color: #fff; }
.btn-danger { background: linear-gradient(135deg, #e11d48, #be123c); border-color: transparent; color: #fff; }
.btn-warning { background: linear-gradient(135deg, #d97706, #b45309); border-color: transparent; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 11.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-icon { padding: 8px; }

/* ------------------------------- Badges --------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  border: 1px solid var(--border); background: var(--card-3); color: var(--text-soft);
  white-space: nowrap;
}
.badge-amber { background: var(--warning-dim); border-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }
.badge-sky { background: var(--sky-dim); border-color: rgba(56, 189, 248, 0.35); color: #7dd3fc; }
.badge-blue { background: var(--primary-dim); border-color: rgba(59, 130, 246, 0.4); color: #93c5fd; }
.badge-emerald { background: var(--success-dim); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.badge-rose { background: var(--danger-dim); border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }
.badge-slate { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.25); color: #cbd5e1; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ------------------------------- Formularios ---------------------------- */
.label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 5px; }
.input, .select, .textarea, input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], input[type="search"], input[type="file"], select, textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; background: #0c1526;
  border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 13px;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, select:focus, textarea:focus, input:focus { border-color: rgba(59, 130, 246, 0.65); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: #5b6b87; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-errors { color: #fda4af; font-size: 11.5px; margin-top: 4px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.checkbox { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-soft); background: #0c1526; border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; }
.checkbox input { width: auto; accent-color: var(--primary); }

/* -------------------------------- Tablas -------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); }
.table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 10px 12px; background: #0d1728; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(59, 130, 246, 0.05); }

/* -------------------------------- Listas -------------------------------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }
.tiny { font-size: 11px; }
.xs { font-size: 10.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.strong { font-weight: 700; }
.right { margin-left: auto; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.divider { height: 1px; background: var(--border-soft); margin: 12px 0; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8); color: #dbeafe; font-weight: 800; font-size: 12px;
  flex: none; border: 1px solid rgba(147, 197, 253, 0.35);
}

/* ------------------------------- Buscador ------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.toolbar .search { flex: 1 1 220px; min-width: 180px; position: relative; }
.toolbar .search .input { padding-left: 34px; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.tabs { display: flex; gap: 6px; background: #0c1526; padding: 5px; border-radius: 12px; border: 1px solid var(--border); flex-wrap: wrap; }
.tab { padding: 8px 13px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: #fff; background: rgba(148, 163, 184, 0.08); }
.tab.active { background: var(--card-3); color: var(--sky); border: 1px solid var(--border); }

/* -------------------------------- Mapa ---------------------------------- */
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
#map { height: calc(100vh - 190px); min-height: 420px; width: 100%; background: #0b1220; }
.map-banner {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: rgba(11, 18, 32, 0.9);
  border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.map-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.map-pin {
  display: grid; place-items: center; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); color: #fff;
}
.map-pin.courier { width: 34px; height: 34px; background: linear-gradient(135deg, #2563eb, #1e40af); font-size: 11px; font-weight: 800; }
.map-pin.courier.offline { background: #475569; }
.map-pin.pkg { width: 24px; height: 24px; font-size: 11px; }
.map-pin.pkg.pending { background: #d97706; }
.map-pin.pkg.assigned { background: #0284c7; }
.map-pin.pkg.in_transit { background: #2563eb; }
.map-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(59, 130, 246, 0.55); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 10px 12px; font-size: 12px; }

/* ------------------------------ Timeline -------------------------------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 16px 6px; }
.timeline-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card-3); border: 2px solid var(--border); }
.timeline-item.done::before { background: var(--success); border-color: var(--success); }
.timeline-item.current::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-dim); }
.timeline-time { font-size: 10.5px; color: var(--muted); font-family: ui-monospace, monospace; }
.timeline-title { font-weight: 700; font-size: 12.5px; }

/* ------------------------------- Modales -------------------------------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal-header { position: sticky; top: 0; background: var(--card-2); z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.modal-close { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.modal-close:hover { background: rgba(148, 163, 184, 0.15); color: #fff; }

/* ------------------------------- Alertas -------------------------------- */
.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-3); font-size: 12.5px; }
.alert-success { background: var(--success-dim); border-color: rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.alert-error { background: var(--danger-dim); border-color: rgba(244, 63, 94, 0.4); color: #fecdd3; }
.alert-warning { background: var(--warning-dim); border-color: rgba(245, 158, 11, 0.4); color: #fde68a; }
.alert-info { background: var(--sky-dim); border-color: rgba(56, 189, 248, 0.35); color: #bae6fd; }

/* -------------------------------- Login --------------------------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, #16223c, #0e1729); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.auth-logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #1e40af); margin: 0 auto 12px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 800; }
.auth-sub { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0 20px; }
.auth-footer { border-top: 1px solid var(--border-soft); margin-top: 18px; padding-top: 12px; font-size: 11.5px; color: var(--muted); }
.auth-footer code { color: var(--sky); background: rgba(56, 189, 248, 0.08); padding: 1px 6px; border-radius: 6px; }

/* ------------------------------ Portal cadete --------------------------- */
.portal { max-width: 620px; margin: 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.portal-header { display: flex; align-items: center; gap: 10px; padding: 12px; }
.portal-tabs { display: flex; gap: 6px; }
.pkg-card { border: 1px solid var(--border); background: linear-gradient(180deg, var(--card-2), var(--card)); border-radius: 16px; padding: 14px; }
.pkg-card .pkg-address { background: #0b1424; border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.pkg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pkg-actions .full { grid-column: 1 / -1; }
.action-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.bottom-nav { position: sticky; bottom: 0; display: flex; gap: 6px; padding: 8px; background: rgba(11, 18, 32, 0.94); backdrop-filter: blur(8px); border-top: 1px solid var(--border); }
.bottom-nav a { flex: 1; text-align: center; padding: 9px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.bottom-nav a.active { background: var(--primary-dim); color: var(--sky); }

/* ------------------------------- Varios --------------------------------- */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); font-size: 12.5px; }
.empty svg { width: 34px; height: 34px; color: var(--card-3); margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-line { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border-soft); font-size: 12.5px; }
.stat-line:last-child { border-bottom: none; }
.code-box { display: flex; gap: 8px; align-items: center; background: #0b1424; border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 13px; }
.label-page { max-width: 560px; margin: 20px auto; background: #fff; color: #111; border-radius: 12px; padding: 22px; }
.label-page .lbl-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px dashed #ccc; font-size: 12px; }
.label-page .lbl-tracking { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 800; letter-spacing: 0.06em; }
@media print {
  body { background: #fff; }
  .no-print, .sidebar, .topbar, .messages { display: none !important; }
  .label-page { margin: 0; box-shadow: none; max-width: none; }
}
.scan-view { border-radius: 14px; overflow: hidden; background: #0b1424; border: 1px solid var(--border); min-height: 210px; display: grid; place-items: center; }
.scan-view video { width: 100%; }
#qr-reader { width: 100%; }
#qr-reader__scan_region { background: #0b1424; }
#qr-reader__dashboard_section_csr button { font-family: inherit; }
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-3); font-size: 12.5px; box-shadow: var(--shadow); animation: toast-in 0.2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.progress { height: 7px; border-radius: 999px; background: #0b1424; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--sky)); }
footer.app-footer { padding: 14px 22px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
