/* Gerencia: mismos colores, tipografía y botones de la tienda. Celular primero; los editores se abren como hoja desde abajo. */
body { font-family: 'Poppins', 'Segoe UI', sans-serif; padding: 14px 14px 90px; }
* { font-family: inherit; }
header { background: #0a2a5e; border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(10,42,94,.25); }
header h1 { font-size: 1.1rem; } header a, header button { min-height: 40px; display: inline-flex; align-items: center; color: #d9c9a8; }
#tabs { display: flex; gap: 6px; background: #fffaf0; border: 1.5px solid #e2d2b2; border-radius: 99px; padding: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
#tabs::-webkit-scrollbar { display: none; }
#tabs button { flex: 1 0 auto; min-height: 46px; padding: 0 14px; border-radius: 99px; background: transparent; color: #0a2a5e; font: 600 .82rem 'Poppins', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
#tabs button.on { background: #d81e8f; color: #fff; box-shadow: 0 4px 12px rgba(216,30,143,.3); }
#tabs button svg { width: 18px; height: 18px; flex: none; }
.panel { border: 1.5px solid #e2d2b2; border-radius: 18px; padding: 14px; box-shadow: 0 2px 10px rgba(60,45,20,.06); margin-bottom: 12px; }
h2 { font-size: 1rem; border-bottom: 0; padding-bottom: 0; }
.panel > h2, .hoja-cab h2 { margin-bottom: 10px; }
input, select, textarea { min-height: 46px; border: 2px solid #e2d2b2; border-radius: 12px; padding: 0 12px; font-size: .92rem; background: #fff; color: #0a2a5e; }
input[type=checkbox] { min-height: 0; width: 22px !important; height: 22px; accent-color: #d81e8f; }
input:focus, select:focus { outline: none; border-color: #d81e8f; }
label { margin: 12px 0 4px; }
.chk { min-height: 44px; }
.btn { min-height: 46px; border-radius: 99px; padding: 0 18px; font-size: .88rem; }
.btn.sm { min-height: 40px; padding: 0 14px; } .btn.green { background: linear-gradient(135deg, #0a4aa0, #0a2a5e); }
.btn.red { background: #dc2626; } .btn.gray { background: #6f6a5c; }
.msg { border-radius: 12px; padding: 10px 12px; }
.chips-rol { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chips-rol button { min-height: 38px; border: 1.5px solid #e2d2b2; background: #fff; color: #0a2a5e; border-radius: 99px; padding: 0 12px; font: 600 .78rem 'Poppins', sans-serif; cursor: pointer; }
.chips-rol button.on { background: #0a4aa0; border-color: #0a4aa0; color: #fff; }
.chips-rol button i { font-style: normal; font-size: .66rem; font-weight: 800; background: #fde68a; color: #92400e; border-radius: 99px; padding: 1px 7px; margin-left: 4px; } .chips-rol button.on i { background: rgba(255,255,255,.25); color: #fff; }
#f-rol { display: none; } .filtros input { min-width: 0; border-radius: 99px; padding: 0 16px; }
.u { min-height: 62px; background: #fff; border: 1.5px solid #e2d2b2; border-radius: 14px; margin-bottom: 6px; padding: 8px 12px; } .u:hover { background: #fff; border-color: #d81e8f; } .u.sel { border-color: #d81e8f; background: #fdf2f8; }
.av { width: 42px; height: 42px; }
.rol { font-size: .7rem; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .hoja-cab h2 { margin: 0; flex: 1; } .hoja-x { display: none; }
#cat-lista .cat-fila { border-bottom: 1px solid #f1e7d0 !important; padding: 10px 0 !important; }
#cat-lista .btn.sm { min-height: 40px; }
@media (max-width: 900px) {
  #editor:not(.abierto), #ed-suc:not(.abierto) { display: none; }
  #editor.abierto, #ed-suc.abierto { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: 7vh; z-index: 300; margin: 0; overflow-y: auto; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 12px 14px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 100vmax rgba(10, 42, 94, .55); animation: g-sube .22s ease-out; -webkit-overflow-scrolling: touch; }
  .hoja-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3e8d3; color: #0a2a5e; font-size: 1.05rem; cursor: pointer; }
  .hoja-cab { position: sticky; top: -12px; background: #fffaf0; z-index: 2; margin: -12px -14px 6px; padding: 12px 14px 4px; }
  #mapa-usu, #mapa-suc { min-height: 220px; }
}
@keyframes g-sube { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #editor.abierto, #ed-suc.abierto { animation: none; } }
@media (min-width: 901px) { body { padding-bottom: 20px; } }

.layout > * { min-width: 0; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }
#lista, #lista-suc { min-width: 0; } .u .info { min-width: 0; }

.g-velo { position: fixed; inset: 0; z-index: 500; background: rgba(10, 42, 94, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.g-caja { background: #fffaf0; border-radius: 20px; padding: 18px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: g-sube .2s ease-out; }
.g-caja h3 { margin: 0 0 6px; font-size: 1.05rem; } .g-caja p { margin: 0 0 12px; font-size: .88rem; color: #4a4636; white-space: pre-line; line-height: 1.45; }
.g-bts { display: flex; gap: 8px; margin-top: 12px; } .g-bts .btn { flex: 1; width: auto; margin: 0; }
