/* Logística · Thelsa — barra superior, pestañas, menú, notificaciones, encabezado de página */

  header.topbar { background: var(--brand); color: #fff; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .brand-logo { display: flex; align-items: center; flex-shrink: 0; }
  .brand-logo img { height: 36px; display: block; }
  .brand-logo.sinlogo { background: transparent; padding: 0; }
  .brand-logo.sinlogo img { display: none; }
  .brand-logo.sinlogo::after { content: 'Thelsa'; font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: #fff; letter-spacing: -0.02em; }
  .brand-sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: #bfd4ea; white-space: nowrap; }
  .mod-switch { position: relative; }
  .mod-switch button.cur { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); color: #fff; padding: 5px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; font-family: inherit; font-weight: 600; }
  .mod-panel { display: none; position: absolute; top: 110%; left: 0; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 5px; z-index: 200; }
  .mod-panel.open { display: block; }
  .mod-panel a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 13px; }
  .mod-panel a:hover { background: var(--bg-subtle); color: var(--brand); }
  .mod-panel a.act { background: var(--info-bg); color: var(--brand); font-weight: 500; }
  .topbar-right { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #bfd4ea; }
  .topbar-right .mono { color: #fff; }
  .btn-logout { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #e8f1fb; padding: 5px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; font-family: inherit; }
  .btn-logout:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }

  nav.tabs { background: var(--bg-card); border-bottom: 1px solid var(--line); padding: 0 24px; display: flex; flex-wrap: wrap; overflow: visible; }
  nav.tabs button { background: transparent; border: 0; padding: 13px 18px; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
  nav.tabs button:hover { color: var(--ink); }
  nav.tabs button.active { color: var(--brand); border-bottom-color: var(--accent); font-weight: 600; }

  .menu-wrap { position: relative; display: flex; }
  .menu-wrap .caret { font-size: 10px; opacity: 0.75; margin-left: 3px; }
  .menu-panel { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; z-index: 90; }
  .menu-panel.open { display: block; }
  .menu-grupo + .menu-grupo { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
  .menu-grupo h6 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint);
    font-weight: 600; padding: 7px 10px 3px; }
  .menu-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px;
    font-family: inherit; font-size: 13px; color: var(--ink); cursor: pointer; border-radius: var(--r-sm); }
  .menu-item:hover { background: var(--bg-subtle); color: var(--brand); }
  .menu-item.active { background: var(--info-bg); color: var(--brand); font-weight: 500; }
  .notif-badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; margin-left: 6px; }
  .notif-panel { right: 0; left: auto; min-width: 340px; max-width: 430px; max-height: 440px; overflow-y: auto; }
  .notif-item { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .notif-item:last-child { border-bottom: 0; }
  .notif-item.nueva { background: var(--info-bg); }
  .notif-item .nt { font-weight: 500; font-size: 13px; color: var(--ink); }
  .notif-item .nd { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }
  .notif-item .nf { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }

  main { padding: 24px; max-width: 1600px; margin: 0 auto; }
  .view { display: none; }
  .view.active { display: block; }
  .page-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .page-title { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
  .page-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; max-width: 720px; }

  .card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
  .card + .card { margin-top: 16px; }
  .card-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .card-head h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
  .card-body { padding: 18px; }

