/* Presuobra · pantallas de cuenta. Todo con prefijo po- para no chocar con la aplicación. */
html.po-tapado body > *:not(#po-capa):not(#po-toast) { visibility: hidden; }

#po-capa {
  position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #ff6a13; color: #161616; font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.4;
}
#po-capa * { box-sizing: border-box; }
#po-capa h1, #po-capa h2, #po-capa h3, #po-capa h4 { font-family: "Barlow Condensed", Barlow, system-ui, sans-serif; margin: 0; line-height: 1.15; }
.po-caja { max-width: 460px; margin: 0 auto; padding: 24px 16px 48px; }
.po-caja.po-ancha { max-width: 760px; }
.po-marca { text-align: center; margin: 8px 0 18px; }
.po-marca img { width: 68px; height: 68px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.po-marca h1 { font-size: 34px; margin-top: 8px; }
.po-marca p { margin: 4px 0 0; font-weight: 500; }
.po-tarjeta { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.po-tarjeta h2 { font-size: 26px; margin-bottom: 10px; }
.po-tarjeta h3 { font-size: 22px; margin: 22px 0 8px; }
.po-tarjeta h4 { font-size: 18px; margin: 14px 0 6px; }
.po-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.po-cab h2 { margin: 0; }
.po-x { border: 0; background: #f1f1f1; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.po-seg { display: flex; border: 2px solid #161616; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.po-seg button { flex: 1; border: 0; background: #fff; color: #161616; padding: 12px 6px; font: 600 16px Barlow, system-ui, sans-serif; cursor: pointer; border-radius: 0; min-height: 0; }
.po-seg button.on { background: #161616; color: #ff6a13; }
.po-prueba { text-align: center; background: #fff1e6; border-radius: 10px; padding: 10px; margin: 6px 0 14px; }
.po-campo { display: block; margin-bottom: 12px; }
.po-campo > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
#po-capa input:not([type=checkbox]), #po-capa select, #po-capa textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid #d9d9d9; border-radius: 10px; font: 500 16px Barlow, system-ui, sans-serif; background: #fff; color: #161616;
}
#po-capa input:focus, #po-capa select:focus, #po-capa textarea:focus { outline: none; border-color: #ff6a13; }
.po-pass { display: flex !important; gap: 8px; align-items: center; }
#po-capa .po-pass input { flex: 1; min-width: 0; width: auto; }
.po-pass .po-link { flex: none; }
#po-capa label { display: block; }
#po-capa .po-check { display: flex; }
.po-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; }
.po-check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: #ff6a13; }
.po-link { border: 0; background: none; padding: 0; color: #c2410c; text-decoration: underline; font: inherit; cursor: pointer; }
.po-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 16px; border-radius: 12px;
  border: 2px solid #161616; background: #161616; color: #ff6a13; font: 700 16px Barlow, system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center;
}
.po-btn:disabled { opacity: .5; }
.po-btn.po-sec { background: #fff; color: #161616; }
.po-btn.po-peligro { border-color: #c53030; color: #c53030; background: #fff; }
.po-btn.po-grande { width: 100%; min-height: 54px; font-size: 18px; }
.po-btn.po-mini { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.po-botones { display: grid; gap: 10px; margin-top: 14px; }
.po-fila { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.po-fila.po-dos { display: grid; grid-template-columns: 1fr 1fr; }
.po-fecha { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; }
.po-error { background: #fef2f2; border: 1px solid #fecaca; color: #c53030; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.po-ayuda { font-size: 14px; color: #555; }
.po-centro { text-align: center; }
.po-linea { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eee; }
.po-linea span { color: #666; }
.po-legal p { font-size: 14px; line-height: 1.5; }
.po-buscar { margin: 12px 0 8px; }
.po-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.po-chips button { white-space: nowrap; border: 2px solid #161616; background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 14px Barlow, system-ui, sans-serif; cursor: pointer; }
.po-chips button.on { background: #161616; color: #ff6a13; }
.po-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.po-stats div { background: #f6f6f6; border-radius: 10px; padding: 10px 4px; text-align: center; }
.po-stats b { display: block; font-size: 24px; }
.po-stats small { font-size: 11px; color: #555; }
.po-stats .alerta { background: #fff1e6; outline: 2px solid #ff6a13; }
.po-usuario { border: 2px solid #eee; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.po-us-cab { width: 100%; display: flex; justify-content: space-between; gap: 10px; border: 0; background: #fff; padding: 12px; text-align: left; font: inherit; cursor: pointer; }
.po-us-cab small { display: block; color: #666; font-size: 13px; }
.po-us-der { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.po-usuario.abierto .po-us-cab { background: #fff6ef; }
.po-us-det { padding: 4px 12px 12px; }
.po-badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.po-badge.azul { background: #dbeafe; color: #1d4ed8; }
.po-badge.verde { background: #dcfce7; color: #166534; }
.po-badge.rojo { background: #fee2e2; color: #b91c1c; }
.po-badge.naranja { background: #ffedd5; color: #c2410c; }
@media (max-width: 440px) { .po-stats { grid-template-columns: repeat(2, 1fr); } .po-fecha { grid-template-columns: 1fr 1fr; } }

/* Botón de la cuenta, arriba a la derecha, encima de la aplicación */
#po-boton {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 2147482000;
  display: flex; align-items: center; gap: 6px; border: 2px solid #161616; background: #fff; color: #161616;
  border-radius: 999px; padding: 4px 10px; font: 700 14px Barlow, system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
#po-boton .po-dias { background: #ff6a13; color: #161616; border-radius: 999px; padding: 1px 8px; }

#po-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 2147483600; opacity: 0; pointer-events: none;
  background: #161616; color: #fff; padding: 12px 18px; border-radius: 12px; font: 500 15px Barlow, system-ui, sans-serif; max-width: calc(100% - 32px); transition: .25s;
}
#po-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#po-toast .po-link { color: #ff6a13; }
@media print { #po-boton, #po-toast, #po-capa { display: none !important; } }

/* La aplicación da estilo propio a todos los botones: aquí se fijan los colores de las pantallas de cuenta. */
#po-capa button, #po-capa a, #po-boton { text-transform: none; letter-spacing: normal; text-shadow: none; }
#po-capa .po-us-cab, #po-capa .po-chips button, #po-capa .po-seg button, #po-capa .po-x, #po-boton { color: #161616; }
#po-capa .po-us-cab { background: #fff; border-radius: 0; min-height: 0; }
#po-capa .po-usuario.abierto .po-us-cab { background: #fff6ef; }
#po-capa .po-chips button.on, #po-capa .po-seg button.on { color: #ff6a13; background: #161616; }
#po-capa .po-chips button:not(.on), #po-capa .po-seg button:not(.on) { background: #fff; }
#po-capa .po-btn { color: #ff6a13; background: #161616; }
#po-capa .po-btn.po-sec { color: #161616; background: #fff; }
#po-capa .po-btn.po-peligro { color: #c53030; background: #fff; border-color: #c53030; }
#po-capa .po-link { color: #c2410c; background: none; min-height: 0; padding: 0; border: 0; }
#po-capa .po-x { background: #f1f1f1; border: 0; min-height: 0; padding: 0; flex: none; }
#po-capa .po-chips button { flex: none; width: auto; min-height: 0; padding: 6px 12px; border-radius: 999px; }
