/* /_user/asset_user/css/header.css */
/* Drawer claro, coherente con diseño actual */

:root{
  --hdr-border: #e5e7eb;
  --hdr-bg: #ffffff;
  --hdr-soft: #f8fafc;
  --hdr-text: #0f172a;
  --hdr-muted: #64748b;
  --hdr-shadow: 0 20px 50px rgba(2, 6, 23, .18);
}

.nav-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(2, 6, 23, .42);
  z-index:90;
}

.side{
  position:fixed;
  left:0;
  top:0;
  height:100vh;
  width:320px;
  max-width:86vw;
  background:var(--hdr-bg);
  border-right:1px solid var(--hdr-border);
  box-shadow:var(--hdr-shadow);
  transform:translateX(-110%);
  transition:transform .18s ease;
  z-index:100;
  display:flex;
  flex-direction:column;
}

body.nav-open .side{ transform:translateX(0); }
body.nav-open .nav-overlay{ display:block; }

.side__brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px 14px;
  border-bottom:1px solid var(--hdr-border);
}

.side__brandTitle{
  font-weight:700;
  color:var(--hdr-text);
}

.side__close{
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid var(--hdr-border);
  background:var(--hdr-bg);
  color:var(--hdr-text);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.side__nav{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.side__link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--hdr-text);
  background:var(--hdr-soft);
  border:1px solid var(--hdr-border);
}

.side__link:hover{
  background:#eef2ff; /* suave, no oscuro */
}

.side__link.is-active{
  background:#eef2ff;
  border-color:#c7d2fe;
}

.side__link--danger{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#9f1239;
}

.side__meta{
  margin-top:auto;
  padding:12px 14px 14px 14px;
  border-top:1px solid var(--hdr-border);
  color:var(--hdr-muted);
  font-size:12px;
}

/* Burger: visible SIEMPRE (PC y mobile) */
.burger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--hdr-border);
  background:var(--hdr-bg);
  cursor:pointer;
  margin-right:10px;
  color:var(--hdr-text);
  font-size:18px;
}

/* No hace falta layout con sidebar fija */
.app-shell{ min-height:100vh; }
.app-main{ min-width:0; }

/* Si querés: en pantallas muy grandes el drawer un toque más ancho */
@media (min-width: 1200px){
  .side{ width:360px; }
}

/* =========================
   TOPBAR + BRAND (antes estaba en agendar.css)
   Ahora vive acá para que el header tenga estructura
========================= */

/* fallback de variables que usaba el topbar (si no existe agendar.css/login.css) */
:root{
  --line:  var(--hdr-border, #e5e7eb);
  --muted: var(--hdr-muted, #64748b);
  --text:  var(--hdr-text, #0f172a);
}

.topbar{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px;
  display:flex;
  gap:12px;
  align-items:center;
}

.brand__logo{
  width:44px;height:44px;
  border-radius: 14px;
  display:flex;align-items:center;justify-content:center;
  font-weight: 900;
  background: #eef2ff;
  border: 1px solid var(--line);
  color:#1e3a8a;
}

.brand__logoimg{
  width:44px;height:44px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand__txt{ flex:1; min-width:0; }

.brand__title{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text);
}

.brand__sub{
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

#hdrPac{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top: 18px;
  text-align:center;
  color: #94a3b8;
  font-size: 12px;
}
