/* Estilo común de las pantallas del personal (punto de venta, pedidos, gerencia, finanzas, panel) y de las cuentas
   (ingresar, mis datos). Misma identidad que la tienda: beige + azul y fucsia del logo + Poppins.
   Se carga DESPUÉS de los estilos propios de cada página, por eso sus reglas tienen la última palabra. */
* { font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif; }
body { background: #f3e8d3; color: #0a2a5e; }
::selection { background: #f4b3da; color: #0a2a5e; }

/* cabecera con el logo */
header:not(.top) { border-radius: 12px; border-bottom: 4px solid #d81e8f; box-shadow: 0 4px 14px rgba(10,42,94,.18); }
header:not(.top) h1 { display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
header:not(.top) h1::before, body > h1::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff url("/icons/logo-112.webp") center / cover; box-shadow: 0 0 0 2px #fff; }
body > h1 { display: flex; align-items: center; gap: 12px; letter-spacing: -.01em; }
body > h1::before { width: 44px; height: 44px; box-shadow: 0 0 0 2px #fffaf0, 0 3px 10px rgba(10,42,94,.25); }
header:not(.top) a:hover, header:not(.top) button:hover { color: #fff; text-decoration: underline; }

/* tarjetas y paneles */
.panel, .ped, a.card, .box, .kpi, .caja { background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 12px; box-shadow: 0 1px 3px rgba(60,45,20,.08), 0 6px 18px rgba(60,45,20,.07); }
a.card { transition: transform .15s, border-color .15s, box-shadow .15s; }
a.card:hover { border-color: #d81e8f; box-shadow: 0 8px 22px rgba(60,45,20,.16); }
h2 { color: #0a2a5e; }
.ico { filter: drop-shadow(0 2px 2px rgba(60,45,20,.2)); }

/* login y mis datos: el logo arriba de la caja */
.box::before { content: ""; display: block; width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; background: #fff url("/icons/logo-512.webp") center / cover; box-shadow: 0 0 0 3px #fffaf0, 0 4px 14px rgba(10,42,94,.25); }

/* pestañas y filtros activos con el acento fucsia */
nav button.on, .filtros button.on, .tabs button.on, #tabs button.on, .tabs2 button.on { box-shadow: inset 0 -3px 0 #d81e8f; }

/* campos y botones */
input, select, textarea { background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f4b3da; outline-offset: 0; border-color: #d81e8f; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .01em; }
.btn:hover { filter: brightness(.94); }
.btn.green { background: #d81e8f; }
.btn.green:hover { background: #b0156f; filter: none; }
.btn:disabled { filter: none; }
table th { color: #6f6a5c; }

/* =====================================================================
   FORMATO DE LA TIENDA EN LAS PANTALLAS DEL PERSONAL
   Menú lateral izquierdo (celular: barra abajo), cabecera crema, tarjetas y botones iguales.
   ===================================================================== */
.mp-oculto { display: none !important; }
body.con-menu { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-content: start; padding: 0 !important; max-width: none !important; margin: 0 !important; min-height: 100vh; }
body.con-menu > *:not(.menu-personal) { grid-column: 2; margin-left: 16px; margin-right: 16px; min-width: 0; }
body.con-menu > header:not(.top), body.con-menu > h1 { margin-top: 14px; }
.menu-personal { grid-column: 1; grid-row: 1 / span 200; position: sticky; top: 0; height: 100vh; align-self: start; display: flex; flex-direction: column; background: #fffaf0; border-right: 1px solid #e2d2b2; padding: 12px 0; z-index: 20; }
.mp-marca { display: flex; align-items: center; gap: 10px; padding: 4px 14px 14px; text-decoration: none; color: #0a2a5e; border-bottom: 1px solid #e2d2b2; margin-bottom: 8px; }
.mp-marca img { border-radius: 50%; flex: none; }
.mp-marca span { display: flex; flex-direction: column; font-weight: 700; font-size: .92rem; line-height: 1.1; }
.mp-marca small { font-weight: 500; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #d81e8f; margin-top: 3px; }
.menu-personal nav { display: flex; flex-direction: column; flex: 1; }
.menu-personal nav a { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 13px; border-left: 3px solid transparent; color: #0a2a5e; text-decoration: none; font-size: .84rem; font-weight: 500; }
.menu-personal nav a svg { width: 19px; height: 19px; flex: none; color: #6f6a5c; }
.menu-personal nav a:hover { background: #f3e8d3; }
.menu-personal nav a.on { border-left-color: #d81e8f; background: #fde7f3; color: #b0156f; font-weight: 600; }
.menu-personal nav a.on svg { color: #d81e8f; }
.mp-user { padding: 12px 14px 4px; border-top: 1px solid #e2d2b2; display: flex; flex-direction: column; gap: 2px; }
.mp-user b { font-size: .8rem; color: #0a2a5e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-user small { font-size: .68rem; color: #6f6a5c; }
.mp-user button { margin-top: 8px; border: 1.5px solid #d9c9a8; background: #fff; border-radius: 8px; padding: 7px; font-size: .74rem; font-weight: 600; color: #0a2a5e; cursor: pointer; }
.mp-user button:hover { border-color: #d81e8f; color: #d81e8f; }

/* cabecera crema, como la de la tienda */
header:not(.top) { background: #fffaf0; color: #0a2a5e; border: 1px solid #e2d2b2; border-bottom: 3px solid #d81e8f; border-radius: 12px; box-shadow: 0 1px 3px rgba(60,45,20,.08); padding: 10px 16px; }
header:not(.top) h1 { color: #0a2a5e; font-size: 1.1rem; }
header:not(.top) a, header:not(.top) button { color: #0a4aa0; font-weight: 600; }
header:not(.top) a:hover, header:not(.top) button:hover { color: #d81e8f; text-decoration: none; }
body.con-menu header:not(.top) h1::before, body.con-menu > h1::before { display: none; }
body.con-menu header:not(.top) a[href="personal.html"] { display: none; }
header:not(.top) select { background: #fff; border: 1.5px solid #d9c9a8; border-radius: 8px; color: #0a2a5e; font-weight: 600; }

/* pestañas internas: mismo estilo que las de la tienda */
nav#nav, #tabs, .filtros, .tabs2 { gap: 6px; }
nav#nav button, #tabs button, .filtros button { border-radius: 99px; background: #fffaf0; border: 1.5px solid #e2d2b2; color: #0a2a5e; font-weight: 600; padding: 8px 16px; }
nav#nav button:hover, #tabs button:hover, .filtros button:hover { border-color: #0a4aa0; }
nav#nav button.on, #tabs button.on, .filtros button.on { background: #d81e8f; border-color: #d81e8f; color: #fff; box-shadow: none; }

/* punto de venta */
#q { border: 2px solid #d81e8f; border-radius: 99px; padding: 11px 18px; background: #fff; }
#q:focus { outline: none; box-shadow: 0 0 0 3px #fde7f3; }
.card { background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 10px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 22px rgba(60,45,20,.16); transform: translateY(-2px); }
.card .precio, .precio { color: #d81e8f; font-weight: 700; }
.chip { border-radius: 99px; border-color: #e2d2b2; background: #fff; }
.chip.sel { background: #fde7f3; border-color: #d81e8f; color: #b0156f; }
.layout > .panel:last-child { position: sticky; top: 12px; }
.total { border-top-color: #0a2a5e; }
.cart-item { border-bottom-color: #eadcbc; }
.inv-row { border-bottom-color: #eadcbc; }

/* pedidos, gerencia y finanzas */
.ped { border-left: 4px solid #d81e8f; }
.est { letter-spacing: .02em; }
.u:hover, .u.sel { background: #fde7f3; }
.panel h2 { color: #0a2a5e; border-bottom-color: #eadcbc; }
.kpi { border-top: 4px solid #0a4aa0; }
.kpi:nth-child(2) { border-top-color: #d81e8f; } .kpi:nth-child(3) { border-top-color: #12a150; }
.kpi .t { color: #6f6a5c; }
table th { background: #f5ecd8; }
tr.tot td { border-top-color: #0a2a5e; }

/* panel del personal: resumen del día y tarjetas */
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.res { display: block; text-decoration: none; color: #0a2a5e; background: #fffaf0; border: 1px solid #e2d2b2; border-left: 4px solid #d81e8f; border-radius: 12px; padding: 12px 16px; }
.res:nth-child(2) { border-left-color: #0a4aa0; } .res:nth-child(3) { border-left-color: #12a150; }
.res b { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.res span { font-size: .74rem; color: #6f6a5c; font-weight: 500; }
.res:hover { box-shadow: 0 6px 18px rgba(60,45,20,.14); }
.ico { width: 52px; height: 52px; border-radius: 50%; background: #fde7f3; display: flex; align-items: center; justify-content: center; font-size: 1.5rem !important; margin-bottom: 4px; filter: none; }
a.card:hover .ico { background: #d81e8f; }
body.con-menu .pie { display: none; }

/* celular: el menú pasa a una barra de pestañas abajo */
@media (max-width: 760px) {
  body.con-menu { display: block; padding-bottom: 68px !important; }
  body.con-menu > *:not(.menu-personal) { margin-left: 10px; margin-right: 10px; }
  .menu-personal { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; flex-direction: row; border-right: 0; border-top: 1px solid #e2d2b2; padding: 0 0 env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(60,45,20,.12); z-index: 70; }
  .mp-marca, .mp-user { display: none; }
  .menu-personal nav { flex-direction: row; width: 100%; }
  .menu-personal nav a { flex: 1; flex-direction: column; gap: 2px; padding: 7px 2px 6px; border-left: 0; border-top: 3px solid transparent; font-size: .58rem; text-align: center; justify-content: center; }
  .menu-personal nav a svg { width: 21px; height: 21px; }
  .menu-personal nav a.on { border-top-color: #d81e8f; background: none; }
}


/* ---------- ajustes: densidad del punto de venta, enlaces y celular ---------- */
.menu-personal nav a .t-c { display: none; }
a { color: #0a4aa0; }
.ped a, .meta a, .hint a { color: #0a4aa0; font-weight: 600; }
.ped a:hover { color: #d81e8f; }
.menu-personal a, header:not(.top) a, a.card, a.res, .mp-marca { color: inherit; }
.menu-personal nav a { color: #0a2a5e; } .menu-personal nav a.on { color: #b0156f; }
header:not(.top) a { color: #0a4aa0; }

/* punto de venta: tarjetas compactas, como en la tienda */
.grid.vis { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; }
.grid.vis .card img, .grid.vis .noimg { height: 140px; }
.grid.vis .card .body { padding: 8px 9px 10px; }
.card h3 { font-size: .8rem; line-height: 1.25; }
.card .meta { font-size: .66rem; }
.sws { margin: 5px 0 2px; gap: 5px; }
.sw { width: 22px; height: 22px; }
.tallas { margin-top: 5px; gap: 5px; }
.talla { padding: 4px 8px; font-size: .78rem; }

@media (max-width: 760px) {
  header:not(.top) { padding: 8px 12px; gap: 6px 10px; }
  header:not(.top) h1 { font-size: .95rem; white-space: nowrap; }
  header:not(.top) #quien { display: none; }
  .grid.vis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid.vis .card img, .grid.vis .noimg { height: 118px; }
  .layout { gap: 10px; }
  .layout > .panel:last-child { position: static; }
  .menu-personal nav a .t-l { display: none; }
  .menu-personal nav a .t-c { display: inline; }
  .menu-personal nav a { font-size: .62rem; }
}


/* CUENTA Y LOGIN: mismo formato de la tienda */
body.con-cab { padding: 0; display: block; background: var(--beige, #f3e8d3); }
body.con-cab .box::before, body.con-cab .volver, body.con-cab .volver-tienda { display: none; }
body.con-cab .box { background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 14px; box-shadow: 0 1px 3px rgba(60,45,20,.08), 0 8px 24px rgba(60,45,20,.08); }
body.con-cab h1 { text-align: left; font-size: 1.5rem; color: #0a2a5e; letter-spacing: -.02em; }
body.con-cab p.sub, body.con-cab .sub { text-align: left; color: #6f6a5c; }
body.con-cab label { font-size: .74rem; font-weight: 600; color: #6f6a5c; letter-spacing: .02em; }
body.con-cab input { border: 1.5px solid #d9c9a8; border-radius: 8px; background: #fff; }
body.con-cab input:focus { border-color: #d81e8f; outline: 2px solid #f4b3da; }
body.con-cab input[readonly] { background: #f5ecd8; color: #6f6a5c; }
body.con-cab .btn { background: #d81e8f; border-radius: 99px; border: 0; font-weight: 600; }
body.con-cab .btn:hover { background: #b0156f; filter: none; }
body.con-cab .btn:disabled { background: #e6dcc4; color: #a39a82; }
body.con-cab .btn.g { background: #fff; color: #0a2a5e; border: 1.5px solid #d9c9a8; }
body.con-cab .btn.g:hover { background: #f5ecd8; }
body.con-cab .btn.g.f { background: #1877f2; color: #fff; border: 0; }
body.con-cab .btn.gray { background: #fff; color: #0a2a5e; border: 1.5px solid #d9c9a8; }
body.con-cab .btn.gray:hover { background: #f5ecd8; border-color: #d81e8f; color: #d81e8f; }
body.con-cab .tabs { background: #f3e8d3; border-radius: 99px; padding: 4px; }
body.con-cab .tabs button { border-radius: 99px; color: #6f6a5c; }
body.con-cab .tabs button.on { background: #d81e8f; color: #fff; box-shadow: none; }
body.con-cab .link { color: #0a4aa0; }
body.con-cab .or::before, body.con-cab .or::after { background: #e2d2b2; }
body.con-cab .aviso { background: #fde7f3; color: #b0156f; border-radius: 10px; border: 1px solid #f4b3da; }

/* mis datos: dentro del menú lateral */
body.con-cab.con-menu-cli .box { margin: 0; max-width: 760px; padding: 22px 24px; }
body.con-cab.con-menu-cli > main.pagina { padding-top: 18px; }

/* login: panel de bienvenida + formulario */
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 22px; max-width: 1000px; margin: 26px auto 40px; padding: 0 14px; align-items: stretch; }
.login-grid .box { margin: 0; max-width: none; width: 100%; align-self: start; }
.login-promo { background: linear-gradient(115deg, #0a2a5e 0%, #0a4aa0 60%, #3b78d6 100%); color: #fff; border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 8px 24px rgba(10,42,94,.25); position: relative; overflow: hidden; }
.login-promo::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(216,30,143,.6), transparent 70%); }
.login-promo > * { position: relative; z-index: 1; }
.login-promo .etiqueta { align-self: flex-start; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); border-radius: 99px; padding: 3px 12px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.login-promo h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; margin: 10px 0 8px; letter-spacing: -.03em; color: #fff; border: 0; padding: 0; }
.login-promo h2 em { font-style: normal; color: #ffe3f2; }
.login-promo p { font-size: .9rem; color: #dbe6fb; line-height: 1.5; max-width: 420px; }
.login-promo ul { list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.login-promo li { display: flex; align-items: center; gap: 12px; }
.login-promo li svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(255,255,255,.16); color: #ffd1ec; flex: none; }
.login-promo li b { display: block; font-size: .86rem; font-weight: 600; }
.login-promo li span { font-size: .74rem; color: #c9d8f5; }
@media (max-width: 860px) {
  .login-grid { grid-template-columns: 1fr; margin-top: 14px; }
  .login-promo { padding: 18px 20px; }
  .login-promo p, .login-promo ul { display: none; }
  .login-promo h2 { font-size: 1.6rem; margin: 8px 0 0; }
}

/* mis datos: con el menú lateral usa la cuadrícula de la tienda (el login queda sin cuadrícula) */
body.con-cab.con-menu-cli { display: grid; padding: 0; }
@media (max-width: 760px) { body.con-cab.con-menu-cli { display: block; padding-bottom: 62px; } }


/* ---------- punto de venta y gerencia: mismo formato de la tienda ---------- */
nav#nav button svg, #tabs button svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.ramas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.grupo-f { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.grupo-f > span { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #6f6a5c; margin: 0 0 0 8px; }
.ramas .chip { padding: 5px 13px; font-size: .78rem; font-weight: 600; }
/* tallas con el estilo de la tienda */
.grid.vis .talla { border: 1.5px solid #e2d2b2; background: #fff; color: #0a2a5e; border-radius: 8px; }
.grid.vis .talla:hover { background: #d81e8f; border-color: #d81e8f; color: #fff; }
.grid.vis .talla:hover small { color: #ffd9ee; }
.grid.vis .talla.ult { border-color: #d81e8f; color: #b0156f; }
.sw.sel { outline-color: #d81e8f; }
.grid.vis .card h3 { color: #0a2a5e; }
/* inventario: filas como las tarjetas de la tienda */
.inv-row { border-radius: 10px; padding: 10px; transition: background .12s; }
.inv-row:hover { background: #f5ecd8; }
.inv-row img, .inv-row .noimg { border-radius: 8px; }
.agotada { background: #fde7f3; color: #b0156f; }
/* gerencia */
.u { border-radius: 10px; }
.cerrada { border-radius: 99px; }


/* ---------- pedidos y finanzas: mismo formato de la tienda ---------- */
.panel h2::before, .caja h2::before { content: ""; display: inline-block; width: 5px; height: 16px; border-radius: 3px; background: #d81e8f; margin-right: 8px; vertical-align: -2px; }
.ico-i { width: 15px; height: 15px; vertical-align: -3px; color: #d81e8f; margin-right: 2px; }
/* pedidos */
.ped { border-radius: 12px; padding: 16px 18px; }
.ped-top b, .ped-top strong { color: #0a2a5e; }
.ped .meta a { color: #0a4aa0; font-weight: 600; }
.acc .btn { border-radius: 99px; padding: 8px 16px; }
.btn.red { background: #fff; color: #b91c1c; border: 1.5px solid #f4b3b3; }
.btn.red:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; filter: none; }
.nota { background: #fdeecb; border-radius: 8px; }
/* finanzas: filtros y botones como píldoras de la tienda */
.filtros .rapidos .btn, .rapidos .btn { background: #fffaf0; color: #0a2a5e; border: 1.5px solid #e2d2b2; border-radius: 99px; font-weight: 600; }
.rapidos .btn:hover { border-color: #d81e8f; color: #d81e8f; background: #fff; filter: none; }
#b-actualizar { background: #d81e8f; border-radius: 99px; padding: 9px 22px; }
#b-actualizar:hover { background: #b0156f; filter: none; }
#b-tabla { background: #fffaf0; color: #0a2a5e; border: 1.5px solid #e2d2b2; border-radius: 99px; }
#b-tabla:hover { border-color: #d81e8f; color: #d81e8f; filter: none; }
.aviso { background: #fde7f3; color: #b0156f; border: 1px solid #f4b3da; border-radius: 10px; }
.aviso.err { background: #fef2f2; color: #b91c1c; border-color: #f4b3b3; }
.kpi { border-radius: 12px; }
.kpi .v { color: #0a2a5e; }
.kpi.ok .v { color: #12a150; }

#b-actualizar, .filtros #b-actualizar { color: #fff; border-color: #d81e8f; }


/* ---------- finanzas: resumen, reparto de la ganancia e indicadores ---------- */
.fin3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fin-card { background: #fffaf0; border: 1px solid #e2d2b2; border-top: 4px solid #0a4aa0; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fin-card .t { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f6a5c; }
.fin-card b { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: #0a2a5e; line-height: 1.1; }
.fin-card small { font-size: .74rem; color: #6f6a5c; line-height: 1.4; }
.fin-card.capital { border-top-color: #b8893a; }
.fin-card.ganancia { border-top-color: #12a150; } .fin-card.ganancia b { color: #0c7f3f; }
.fin-card.ganancia.neg { border-top-color: #b91c1c; } .fin-card.ganancia.neg b { color: #b91c1c; }
.rep-barra { display: flex; height: 30px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.rep-barra div { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 700; }
.cuentas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cuenta { background: #fffaf0; border: 1px solid #e2d2b2; border-left: 5px solid var(--c); border-radius: 12px; padding: 12px 14px; }
.cuenta .c-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cuenta .c-top b { font-size: .8rem; color: #0a2a5e; }
.cuenta .c-top em { font-style: normal; font-size: .74rem; font-weight: 700; color: #fff; background: var(--c); border-radius: 99px; padding: 1px 9px; }
.cuenta .c-monto { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: #0a2a5e; margin: 6px 0 2px; }
.cuenta small { font-size: .7rem; color: #6f6a5c; line-height: 1.35; display: block; }
.rep-nota { margin-top: 12px; padding: 10px 14px; background: #eaf1fb; border-radius: 10px; font-size: .86rem; color: #0a2a5e; }
.indic { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ind { background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 12px; padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; }
.ind span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6f6a5c; }
.ind b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: #0a2a5e; }
.ind small { font-size: .7rem; color: #6f6a5c; line-height: 1.35; }
.ind.ok small { color: #0c7f3f; font-weight: 600; } .ind.mal small { color: #b91c1c; font-weight: 600; }
@media (max-width: 900px) { .cuentas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fin3 { grid-template-columns: 1fr; } .cuentas { grid-template-columns: 1fr; } .fin-card b { font-size: 1.7rem; } }


/* ---------- reparto editable ---------- */
.rep-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #eadcbc; }
.rep-cab h2 { margin: 0; padding: 0; border: 0; }
.rep-editor { background: #f5ecd8; border: 1px dashed #b8893a; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.rep-campos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rep-campo { display: block; background: #fffaf0; border: 1px solid #e2d2b2; border-left: 5px solid var(--c); border-radius: 10px; padding: 8px 10px; margin: 0; }
.rep-campo span { display: block; font-size: .72rem; font-weight: 700; color: #0a2a5e; margin-bottom: 4px; }
.rep-campo div { display: flex; align-items: center; gap: 6px; }
.rep-campo input { width: 100%; font-size: 1.2rem; font-weight: 700; padding: 6px 8px; text-align: right; }
.rep-campo em { font-style: normal; font-weight: 700; color: #6f6a5c; }
.rep-suma { margin: 10px 0; font-size: .9rem; font-weight: 700; }
.rep-suma.ok { color: #0c7f3f; } .rep-suma.mal { color: #b91c1c; }
.rep-acc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rep-acc .btn { width: auto; margin: 0; }
.rep-acc .btn:disabled { background: #e6dcc4; color: #a39a82; border-color: #e6dcc4; cursor: not-allowed; }
@media (max-width: 760px) { .rep-campos { grid-template-columns: 1fr 1fr; } }


/* ---------- finanzas simple: lo esencial arriba, el detalle plegado ---------- */
.periodo { padding: 12px 16px; }
.periodo .rapidos { display: flex; gap: 6px; flex-wrap: wrap; }
.rapidos .btn.on { background: #d81e8f; border-color: #d81e8f; color: #fff; }
.otras { margin-top: 10px; }
.otras summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: #0a4aa0; list-style: none; }
.otras summary::before { content: "＋ "; color: #d81e8f; }
.otras[open] summary::before { content: "− "; }
.otras .filtros { margin-top: 10px; align-items: flex-end; }
.cuenta small { display: none; }                           /* las descripciones de las cuentas sobran: el nombre basta */
.cuenta .c-monto { margin-bottom: 0; }
details.mas { background: #fffaf0; border: 1px solid #e2d2b2; border-radius: 12px; margin-bottom: 14px; }
details.mas > summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
details.mas > summary::-webkit-details-marker { display: none; }
details.mas > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #d81e8f; border-bottom: 2px solid #d81e8f; transform: rotate(45deg); transition: transform .15s; align-self: center; }
details.mas[open] > summary::after { transform: rotate(-135deg); }
details.mas > summary span { font-weight: 700; font-size: 1rem; color: #0a2a5e; }
details.mas > summary small { font-size: .76rem; color: #6f6a5c; }
details.mas > summary:hover span { color: #d81e8f; }
.mas-cuerpo { padding: 0 14px 14px; }
.mas-cuerpo .panel { box-shadow: none; background: #fff; margin-bottom: 12px; }
.mas-cuerpo .dos { margin-bottom: 0; }

/* finanzas en celular: más compacto */
#b-rep-editar { white-space: nowrap; }
@media (max-width: 640px) {
  .fin3 { gap: 8px; }
  .fin-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid #e2d2b2; border-left: 5px solid #0a4aa0; }
  .fin-card.capital { border-left-color: #b8893a; } .fin-card.ganancia { border-left-color: #12a150; } .fin-card.ganancia.neg { border-left-color: #b91c1c; }
  .fin-card .t { font-size: .68rem; max-width: 45%; }
  .fin-card b { font-size: 1.5rem; }
  .fin-card small { display: none; }
  .cuentas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cuenta { padding: 9px 11px; } .cuenta .c-top b { font-size: .7rem; } .cuenta .c-monto { font-size: 1.25rem; }
  .rep-cab h2 { font-size: .98rem; }
  .indic { grid-template-columns: 1fr 1fr; gap: 8px; } .ind { padding: 9px 11px; } .ind b { font-size: 1.15rem; }
}

/* contador y aviso de pedidos nuevos */
.menu-personal nav a { position: relative; }
.mp-badge { font-style: normal; margin-left: auto; background: #d81e8f; color: #fff; border-radius: 99px; font-size: .68rem; font-weight: 700; min-width: 20px; padding: 1px 6px; text-align: center; animation: mpLat 1.6s ease-in-out infinite; }
.mp-badge.hidden { display: none; }
@keyframes mpLat { 50% { transform: scale(1.18); } }
@media (max-width: 760px) { .mp-badge { position: absolute; top: 2px; left: 55%; margin: 0; font-size: .6rem; min-width: 17px; padding: 0 4px; } }
#mp-toast { position: fixed; top: 14px; right: 14px; z-index: 300; background: #0a2a5e; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 12px 18px; border-radius: 12px; border-left: 5px solid #d81e8f; box-shadow: 0 8px 28px rgba(10,42,94,.35); transform: translateY(-120px); transition: transform .3s; max-width: calc(100vw - 28px); }
#mp-toast.on { transform: none; }

/* gráfico de ventas por hora (comun.js · GrafHoras): Panel y Ventas */
.gh svg { width: 100%; height: 96px; display: block; overflow: visible; }
.gh text { font-size: 9px; fill: #6f6a5c; font-family: inherit; text-anchor: middle; }
.gh-fondo { fill: #efe3c9; } .gh-barra { fill: #0a4aa0; } .gh-pico { fill: #d81e8f; }
.gh-nota { font-size: .72rem; color: #6f6a5c; margin-top: 2px; }
