/* TPApp v4.1 - admin-panel.css: panel de administración híbrido
   (sidebar en escritorio, drawer en mobile). Usa las variables de tema, así
   funciona igual en claro y oscuro. */

/* El screen de admin ocupa todo y deja que el shell maneje el layout */
#screen-admin.active { padding: 0; }

.ap-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
/* Rail fijo a la izquierda: con position:sticky quedaba a medias cuando el
   contenido era más alto que la ventana (se veía el menú "cortado" y el pie
   flotando). Fijo garantiza que ocupe siempre el alto completo. */
.ap-side {
  width: 244px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.1rem .9rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}
/* El contenido deja libre el ancho del rail */
.ap-main { margin-left: 244px; }
.ap-brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .3rem 1.1rem; }
.ap-logo {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}
.ap-logo img { width: 100%; height: 100%; object-fit: contain; }
.ap-brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.ap-brand-txt strong { font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text); }
.ap-role {
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  color: var(--primary); margin-top: 2px;
}

.ap-nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.ap-side-foot { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.ap-nav-item {
  display: flex; align-items: center; gap: .65rem;
  background: transparent; border: none;
  color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: .7rem .75rem; border-radius: 10px; cursor: pointer; text-align: left;
  width: 100%; min-height: 44px;
}
.ap-nav-item span { font-size: 14px; width: 20px; text-align: center; opacity: .9; }
.ap-nav-item:hover { background: var(--input-bg); color: var(--text); }
.ap-nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.ap-nav-item.danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ===== Main ===== */
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ap-top {
  display: flex; align-items: center; gap: .75rem;
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: .7rem 1.25rem; position: sticky; top: 0; z-index: 20;
}
.ap-burger { display: none; background: transparent; border: none; color: var(--text); font-size: 17px; cursor: pointer; width: 40px; height: 40px; border-radius: 8px; }
.ap-burger:hover { background: var(--input-bg); }
.ap-title { flex: 1; font-family: 'Sora', sans-serif; font-size: 17px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-user { display: flex; align-items: center; gap: .6rem; }
.ap-user-txt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ap-user-txt span { font-size: 13px; font-weight: 600; color: var(--text); }
.ap-user-txt small { font-size: 11px; color: var(--muted); }
.ap-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; flex-shrink: 0;
}

/* Botón de tema en la barra superior: sin marco, igual que en el dashboard */
.theme-toggle.ap-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: .2rem;
}
.theme-toggle.ap-toggle:hover { background: var(--input-bg); }
.theme-toggle.ap-toggle svg { width: 24px; height: 24px; stroke-width: 1.5; }

.ap-content { padding: 1.5rem 1.25rem; max-width: 1180px; width: 100%; margin-inline: auto; }
.ap-sub { font-size: 13px; color: var(--muted); margin-bottom: 1.1rem; }

/* ===== Tarjetas de métricas ===== */
.ap-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .ap-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ap-metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem; box-shadow: var(--shadow); min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
/* Ícono en tile, mismo lenguaje que las tarjetas del dashboard del vendedor */
.metric-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: var(--input-bg); color: var(--primary);
}
.metric-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.metric-tag.pos { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.metric-tag.warn { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #92400e; }
[data-theme="dark"] .metric-tag.warn { color: var(--accent); }
.metric-tag.soon { background: var(--input-bg); color: var(--muted); font-weight: 500; border: 1px solid var(--border); }
.metric-num { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
.metric-lbl { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* Tarjetas que llevan a otra sección del panel */
.metric.is-click { cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.metric.is-click:hover { transform: translateY(-2px); border-color: var(--primary); }
.metric.is-click:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.metric.soon { opacity: .72; }
.metric.soon .metric-ico { color: var(--muted); }
.metric.soon .metric-num { color: var(--muted); }

/* ===== Bloques (2 columnas) ===== */
/* Columnas parejas: antes la lista de pendientes estiraba la izquierda y la
   derecha quedaba con un hueco enorme debajo. */
.ap-grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; align-items: stretch; }
@media (max-width: 900px) { .ap-grid2 { grid-template-columns: 1fr; } }
.ap-block { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem; box-shadow: var(--shadow); }
.ap-grid2 > .ap-block { display: flex; flex-direction: column; }
/* La lista de pendientes scrollea dentro de su card en vez de estirarla */
#ap-pending { flex: 1; max-height: 340px; overflow-y: auto; margin-right: -.4rem; padding-right: .4rem; }
#ap-alta { margin-top: auto; }
.ap-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.ap-block-head h3 { font-family: 'Sora', sans-serif; font-size: 15px; color: var(--text); }
.ap-link { background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; }
.ap-link:hover { text-decoration: underline; }

.ap-block-sub { font-size: 12px; color: var(--muted); }

/* ===== Ranking de vendedores del mes ===== */
.ap-rank-row {
  display: flex; align-items: center; gap: .8rem; padding: .6rem 0; cursor: pointer;
  border-bottom: 1px solid var(--border); border-radius: 8px;
  transition: background .15s ease;
}
.ap-rank-row:last-child { border-bottom: none; }
.ap-rank-row:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.ap-rank-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ap-rank-pos {
  flex-shrink: 0; width: 22px; text-align: center;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--muted);
}
/* Los tres primeros en color de marca: se leen de un vistazo */
.ap-rank-row:nth-child(-n+3) .ap-rank-pos { color: var(--primary); }
.ap-rank-main { flex: 1; min-width: 0; }
.ap-rank-main h4 {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-rank-bar {
  height: 5px; margin-top: .4rem; border-radius: 999px; background: var(--input-bg); overflow: hidden;
}
.ap-rank-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.ap-rank-side { flex-shrink: 0; text-align: right; }
.ap-rank-side .n { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); }
.ap-rank-side .m { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Buscador dentro de la card de pendientes (oculto si son pocas) */
.ap-pending-search { margin-bottom: .7rem; }
.ap-pending-search input {
  width: 100%; padding: .5rem .75rem; border-radius: 9px; font-family: inherit; font-size: 13px;
  background: var(--input-bg); border: 1px solid var(--border); color: var(--text);
}
.ap-pending-search input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* Pie de la lista: "Mostrando X de Y" + Ver más */
.ap-pend-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding-top: .7rem; margin-top: .2rem; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Fila de solicitud pendiente */
.ap-req { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.ap-req:last-child { border-bottom: none; }
.ap-req-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 12.5px;
}
.ap-req-info { flex: 1; min-width: 0; }
.ap-req-info h4 { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-req-info p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Acciones pegadas al dato, con la card más angosta ya no quedan a media
   pantalla del nombre */
.ap-req-actions { display: flex; gap: .4rem; flex-shrink: 0; margin-left: .5rem; }
.ap-req-actions .ap-btn { min-height: 34px; padding: .35rem .65rem; }
/* Acciones en tono suave: el verde/rojo pleno gritaba demasiado en una lista
   larga. Se resalta solo al pasar el mouse. */
.ap-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid transparent; border-radius: 9px;
  padding: .4rem .75rem; font-size: 12.5px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer; min-height: 36px;
  transition: background-color .15s ease, color .15s ease;
}
.ap-btn i { font-size: 11px; }
.ap-btn.ok {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
  color: var(--success);
}
.ap-btn.ok:hover { background: var(--success); color: #fff; }
.ap-btn.no {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger);
}
.ap-btn.no:hover { background: var(--danger); color: #fff; }
.ap-empty { font-size: 13px; color: var(--muted); padding: 1.5rem 0; text-align: center; }
.ap-empty i { color: var(--success); margin-right: .3rem; }

/* Fila de conteo de roles */
.ap-rolerow { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.ap-rolerow:last-child { border-bottom: none; }
.ap-rolerow .rr-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; background: var(--input-bg); color: var(--primary); }
.ap-rolerow .rr-txt { flex: 1; }
.ap-rolerow .rr-txt strong { font-size: 13.5px; display: block; color: var(--text); }
.ap-rolerow .rr-txt small { font-size: 11.5px; color: var(--muted); }
.ap-rolerow .rr-num { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--primary); }

/* Fila de rol clickeable (lleva a Usuarios filtrado por ese rol) */
.ap-rolerow.clickable { cursor: pointer; border-radius: 10px; margin: 0 -.4rem; padding-left: .4rem; padding-right: .4rem; transition: background .15s ease; }
.ap-rolerow.clickable:hover { background: var(--input-bg); }
.ap-rolerow.clickable .rr-go { font-size: 11px; color: var(--muted); margin-left: .45rem; }

/* ===== Vista Usuarios: fila compacta en una sola línea ===== */

/* La lista se dibuja entera pero la caja muestra ~10 filas y scrollea por
   dentro. Volcarla completa estiraba la pantalla varios metros y dejaba los
   filtros y el buscador fuera de vista justo cuando más se necesitan.
   Se limita la caja y no la cantidad de filas para que el usuario que uno
   busca siga estando ahí (Ctrl+F del navegador, rueda del mouse) en vez de
   esconderse detrás de un "Ver más".
   --uc-fila: alto real de una fila (contenido + margin-bottom). */
#admin-list {
  --uc-fila: 72px;
  max-height: calc(var(--uc-fila) * 10);
  overflow-y: auto;
  overscroll-behavior: contain;   /* al llegar al final no arrastra la página */
  padding-right: .3rem;           /* que la scrollbar no pise el botón de clave */
}
#admin-list .user-card { flex-wrap: nowrap; gap: .9rem; padding: .8rem .9rem; }
#admin-list .user-info h4 { font-weight: 600; }
#admin-list .uc-badges { display: flex; gap: .35rem; margin-top: .3rem; align-items: center; }

/* Fecha de alta: dato secundario, así que va en el renglón de badges pero SIN
   forma de badge (sin fondo ni borde). Si se pintara como los otros, competiría
   visualmente con el rol y el estado, que son los que se leen de un golpe. */
#admin-list .uc-alta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: .15rem;
}

/* Cabecera de la lista: título a la izquierda, selector de orden a la derecha.
   En pantalla angosta el selector baja solo (wrap) en vez de comprimir el título. */
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
}
.admin-list-head .section-title { margin-bottom: 0; }

.admin-orden select {
  appearance: none; -webkit-appearance: none;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .3rem 1.6rem .3rem .55rem;
  min-height: 32px;
  cursor: pointer;
  /* Flecha propia: el select nativo no se puede estilar de forma consistente
     entre navegadores, mismo criterio que .uc-role. */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .5rem center;
  background-size: 9px;
}
.admin-orden select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Texto solo para lectores de pantalla. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Acciones alineadas a la derecha, todo en la misma altura */
.uc-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex-shrink: 0; }
.uc-actions .ap-btn { min-height: 34px; padding: .35rem .65rem; }

/* Selector de rol: ancho al contenido y flecha propia (el select nativo
   estirado a todo lo ancho era el "chorizo"). */
.uc-role {
  appearance: none; -webkit-appearance: none;
  width: auto; min-width: 130px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: .4rem 1.8rem .4rem .7rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  min-height: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .5rem center;
  background-size: 13px;
}
.uc-role:hover { border-color: var(--primary); }
.uc-role:focus { outline: none; border-color: var(--primary); }

/* "Ver clave" pasa a botón de ícono (el texto repetido en 100 filas sobraba) */
#admin-list .key-btn {
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 12px;
}

@media (max-width: 780px) {
  #admin-list .user-card { flex-wrap: wrap; }
  .uc-actions { width: 100%; margin-left: 0; padding-top: .6rem; border-top: 1px solid var(--border); }
  .uc-role { flex: 1; }

  /* En mobile la fila se parte en dos renglones y mide bastante más, así que
     10 filas no entran en ninguna pantalla. Se mide contra el alto real del
     viewport: la caja ocupa lo que sobra y scrollea. */
  #admin-list { max-height: 65vh; }
}

/* ===== Chips de filtro por rol (vista Usuarios) ===== */
.admin-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.role-chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .9rem; font-size: 13px; font-family: 'DM Sans', sans-serif;
  color: var(--muted); cursor: pointer; min-height: 36px; transition: all .15s ease;
}
.role-chip:hover { border-color: var(--primary); color: var(--text); }
.role-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ===== Actividad reciente (pestañas + filas) ===== */
.ap-activity .ap-block-head { flex-wrap: wrap; gap: .6rem; }
.ap-tabs { display: flex; gap: .3rem; background: var(--input-bg); padding: .25rem; border-radius: 10px; }
.ap-tab {
  background: transparent; border: none; border-radius: 8px;
  padding: .45rem .85rem; font-size: 13px; font-family: 'DM Sans', sans-serif;
  color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 34px;
}
.ap-tab:hover { color: var(--text); }
.ap-tab.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

/* Filtro Hoy / Recientes */
.ap-act-filters { display: flex; gap: .4rem; margin-bottom: .3rem; }
.ap-chip-sm {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: .3rem .8rem; font-size: 12.5px; font-family: 'DM Sans', sans-serif;
  color: var(--muted); cursor: pointer; min-height: 32px; transition: all .15s ease;
}
.ap-chip-sm:hover { border-color: var(--primary); color: var(--text); }
.ap-chip-sm.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.ap-act-row { display: flex; align-items: flex-start; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.ap-act-row:last-child { border-bottom: none; }
.ap-act-row .ap-pill { margin-top: 1px; }
.ap-act-main { flex: 1; min-width: 0; }
.ap-act-main h4 { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-act-main p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* Chips de suma / plan / adicionales (formato consistente con la app) */
.ap-act-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.ap-tag {
  font-size: 11.5px; font-weight: 500; padding: 2px 9px; border-radius: 7px;
  background: var(--input-bg); color: var(--text); border: 1px solid var(--border); white-space: nowrap;
}
.ap-tag.alt { background: color-mix(in srgb, var(--primary) 10%, transparent); border-color: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary); }
.ap-act-side { text-align: right; flex-shrink: 0; }
.ap-act-side .val { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); }
.ap-act-side .when { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Botón "PDF" de cada cotización (regenera el PDF para controlarlo).
   Queda discreto hasta que se pasa el mouse: la fila se lee de un vistazo por
   el importe, no por el botón. */
.ap-act-pdf {
  margin-top: .3rem; padding: 3px 9px; border-radius: 7px; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ap-act-pdf:hover:not(:disabled) {
  color: var(--primary); border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.ap-act-pdf:disabled { opacity: .6; cursor: default; }

/* Etiqueta de ramo / resultado dentro de la actividad */
.ap-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ap-pill.vida    { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.ap-pill.sepelio { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #92400e; }
.ap-pill.ok      { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.ap-pill.warn    { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #92400e; }
.ap-pill.none    { background: var(--input-bg); color: var(--muted); }
/* En oscuro el marrón del ámbar no se lee: se usa el acento aclarado */
[data-theme="dark"] .ap-pill.sepelio,
[data-theme="dark"] .ap-pill.warn { color: var(--accent); }

@media (max-width: 480px) {
  .ap-act-side .val { font-size: 13px; }
  .ap-act-row { gap: .55rem; }
}

.ap-backdrop { display: none; }

/* ===== Responsive: sidebar como drawer en mobile ===== */
@media (max-width: 860px) {
  .ap-burger { display: flex; align-items: center; justify-content: center; }
  .ap-main { margin-left: 0; }
  .ap-side {
    position: fixed; top: 0; left: 0; z-index: 200; height: 100vh;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.3);
  }
  .ap-shell.drawer-open .ap-side { transform: translateX(0); }
  .ap-shell.drawer-open .ap-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150;
  }
  .ap-content { padding: 1rem; }
}
