/* Caja: dividir la cuenta y propina voluntaria (posdividir.js). Colores explícitos:
   la caja tiene modo oscuro y Estilos.css pone grises con !important. Sin naranja. */

/* ── Propina en la pantalla de pago ── */
.pv-propina, .pv-partes {
    width: 100%; max-width: 620px; margin: 0 auto 10px; padding: 10px 12px;
    background: #f4f7fb; border: 1px solid #d6dee8; border-radius: 6px; box-sizing: border-box;
}
.pv-propina-fila { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.pv-propina-tit { color: #2c3d63 !important; font-weight: 600; }
.pv-propina-tit small { color: #5d6d7e !important; font-weight: normal; margin-left: 4px; }
.pv-propina-monto { color: #1e6b52 !important; font-size: 1.25em; }
.pv-propina-ops { display: flex; flex-wrap: wrap; margin: 8px -3px 0; }
.pv-propina-op, .pv-partes-metodo, .pv-partes-paso {
    margin: 3px; padding: 6px 12px; border: 1px solid #b9c6d6; border-radius: 4px;
    background: #fff; color: #2c3d63 !important; cursor: pointer; font-size: .95em;
}
.pv-propina-op-activa { background: #2c3d63; border-color: #2c3d63; color: #fff !important; }
.pv-propina-otro { display: flex; margin-top: 8px; }
.pv-propina-otro input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid #b9c6d6; border-radius: 4px; margin-right: 6px; }

/* ── Partes iguales ── */
.pv-partes-cab { display: flex; align-items: center; flex-wrap: wrap; color: #2c3d63 !important; }
.pv-partes-cab > * { margin-right: 6px; }
.pv-partes-cab strong { font-size: 1.3em; min-width: 26px; text-align: center; }
.pv-partes-paso { padding: 2px 12px; font-size: 1.2em; }
.pv-partes-cerrar { margin-left: auto !important; color: #a5281b !important; }
.pv-partes-cifras { display: flex; flex-wrap: wrap; margin: 8px -4px 4px; }
.pv-partes-cifras > div { flex: 1 1 30%; margin: 4px; padding: 6px; background: #fff; border-radius: 4px;
                          color: #5d6d7e !important; font-size: .85em; text-align: center; min-width: 90px; }
.pv-partes-cifras strong { display: block; color: #2c3d63 !important; font-size: 1.25em; }
.pv-partes-cobrar { display: flex; flex-wrap: wrap; align-items: center; margin-top: 4px; color: #2c3d63 !important; }
.pv-partes-cobrar > span { width: 100%; margin: 2px 3px; font-weight: 600; }
.pv-partes-listo { color: #1e6b52 !important; font-weight: 600; margin-top: 6px; }

/* ── Dividir por platos: panel a pantalla completa de la caja ── */
.pv-dividir { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #f1f2f6; }
.pv-dividir-cab { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px;
                  background: #fff; border-bottom: 1px solid #e4e6eb; flex-wrap: wrap; color: #2c3d63 !important; }
.pv-dividir-cab strong { margin-right: 10px; }
.pv-dividir-ayuda { margin: 10px 14px 4px; color: #4a5866 !important; font-size: .92em; }
.pv-dividir-lista { flex: 1; overflow: auto; padding: 6px 14px; }
.pv-div-fila { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
               background: #fff; border: 1px solid #e1e5ea; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; }
.pv-div-fila-sel { border-color: #2c3d63; box-shadow: inset 4px 0 0 #2c3d63; }
.pv-div-nom { flex: 1 1 200px; min-width: 0; color: #2f3640 !important; font-weight: 600; margin-right: 8px; }
.pv-div-nom small { display: block; color: #5d6d7e !important; font-weight: normal; }
.pv-div-env { display: inline-block; font-size: .75em; font-weight: normal; padding: 1px 6px; border-radius: 3px;
              background: #e3f1ea; color: #1e6b52 !important; margin-left: 4px; }
.pv-div-ctl { display: flex; align-items: center; }
.pv-div-paso, .pv-div-todo { min-width: 40px; height: 40px; border: 1px solid #b9c6d6; border-radius: 4px; background: #fff;
                             color: #2c3d63 !important; font-size: 1.2em; cursor: pointer; }
.pv-div-paso:disabled { opacity: .4; cursor: default; }
.pv-div-todo { font-size: .9em; margin-left: 6px; padding: 0 8px; }
.pv-div-n { min-width: 46px; text-align: center; font-size: 1.2em; font-weight: 700; color: #2c3d63 !important; }
.pv-dividir-pie { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
                  padding: 10px 14px; background: #fff; border-top: 1px solid #e4e6eb; }
.pv-dividir-tot { display: flex; flex-wrap: wrap; color: #5d6d7e !important; }
.pv-dividir-tot span { margin-right: 18px; }
.pv-dividir-tot strong { color: #2c3d63 !important; font-size: 1.15em; margin-left: 4px; }

/* Tirilla */
.tir-propina td { color: #000 !important; }

@media (max-width: 600px) {
    .pv-dividir-pie .btn { width: 100%; margin-top: 8px; }
    .pv-div-ctl { width: 100%; justify-content: flex-end; margin-top: 6px; }
    .pv-propina, .pv-partes { padding: 8px; }
}

/* Modo oscuro de la caja */
.pv-dark .pv-propina, .pv-dark .pv-partes { background: #2f353c; border-color: #3c4650; }
.pv-dark .pv-propina-tit, .pv-dark .pv-partes-cab, .pv-dark .pv-partes-cobrar { color: #e4e6eb !important; }
.pv-dark .pv-dividir { background: #2a3037; }
.pv-dark .pv-dividir-cab, .pv-dark .pv-dividir-pie, .pv-dark .pv-div-fila { background: #2f353c; border-color: #3c4650; }
.pv-dark .pv-div-nom, .pv-dark .pv-dividir-cab { color: #e4e6eb !important; }
