/* =========================================================
   PARTE 4 — DISEÑO ÚNICO Y COMPACTO
   Todo el CSS está encapsulado en #supervisorParte5.
   ========================================================= */
#supervisorParte5{
    --orange:#1f6fd1;
    --orange-dark:#0f4a99;
    --green:#07984b;
    --green-dark:#07823f;
    --purple:#8d16df;
    --purple-dark:#7410bd;
    --red:#0f4a99;
    --text:#10294a;
    --muted:#566779;
    /* Alto de cada fila de la Tabla Maestra: reparte la altura visible entre las 25 filas.
       586px = suma de las alturas fijas del resto del panel (menú, totales, encabezado, filtros, pestañas y herramientas). */
    --s5-row-h:clamp(24px,calc((100dvh / var(--s5-scale,1) - 564px) / 25),44px);
    width:740px;
    max-width:740px;
    margin:0 auto;
    padding:0;
    box-sizing:border-box;
    color:var(--text);
    background:#f2f7ff;
    font-family:Arial,Helvetica,sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow:visible;
}
#supervisorParte5 *{box-sizing:border-box}
#supervisorParte5 button,
#supervisorParte5 select{font:inherit;-webkit-tap-highlight-color:transparent}
#supervisorParte5{min-height:calc(100dvh / var(--s5-scale,1));display:flex;flex-direction:column}

/* ---------- Iconos: familia sólida,
moderna y consistente ---------- */
#supervisorParte5 .s5-icon{
    position:relative;display:inline-block;flex:0 0 auto;color:currentColor;background:currentColor;
    -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;
    -webkit-mask-size:contain;mask-size:contain;font-size:0;line-height:0;
}
#supervisorParte5 .s5-icon::before,
#supervisorParte5 .s5-icon::after{content:none}

/* Encabezado: iconos limpios,
proporcionados y de trazo uniforme. */
#supervisorParte5 .power{width:42px;height:42px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3v14' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M12.4 8.8a15 15 0 1 0 15.2 0' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3v14' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M12.4 8.8a15 15 0 1 0 15.2 0' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");}
#supervisorParte5 .bluetooth{width:42px;height:42px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M18 3v34l12-11-12-9 12-9-12-5ZM7 11l23 18M7 29 30 11' fill='none' stroke='%23000' stroke-width='4.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M18 3v34l12-11-12-9 12-9-12-5ZM7 11l23 18M7 29 30 11' fill='none' stroke='%23000' stroke-width='4.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}

/* Iconos funcionales sólidos. */
#supervisorParte5 .calendar{width:42px;height:42px;display:block;flex:0 0 auto;color:var(--orange);overflow:visible}
#supervisorParte5 .s5-calendar-icon .calendar-frame{fill:#fff;stroke:currentColor;stroke-width:2.8}
#supervisorParte5 .s5-calendar-icon .calendar-head{fill:currentColor}
#supervisorParte5 .s5-calendar-icon .calendar-ring{fill:#fff;stroke:currentColor;stroke-width:2.4}
#supervisorParte5 .s5-calendar-icon .calendar-cell{fill:#fff;stroke:currentColor;stroke-width:1.4}
#supervisorParte5 .s5-calendar-icon text{fill:currentColor;font-family:Arial,Helvetica,sans-serif;font-size:5.8px;font-weight:900;text-anchor:middle;dominant-baseline:middle}
#supervisorParte5 .sun{width:32px;height:32px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='18' r='8' fill='%23000'/%3E%3Cpath d='M20 2v5M20 29v5M4 18h5M31 18h5M8.5 6.5l3.6 3.6M27.9 25.9l3.6 3.6M31.5 6.5l-3.6 3.6M12.1 25.9l-3.6 3.6' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M9 35h22' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='18' r='8' fill='%23000'/%3E%3Cpath d='M20 2v5M20 29v5M4 18h5M31 18h5M8.5 6.5l3.6 3.6M27.9 25.9l3.6 3.6M31.5 6.5l-3.6 3.6M12.1 25.9l-3.6 3.6' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M9 35h22' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");}
#supervisorParte5 .list{width:38px;height:32px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 36'%3E%3Ccircle cx='6' cy='7' r='3.6' fill='%23000'/%3E%3Ccircle cx='6' cy='18' r='3.6' fill='%23000'/%3E%3Ccircle cx='6' cy='29' r='3.6' fill='%23000'/%3E%3Crect x='14' y='3' width='28' height='8' rx='4' fill='%23000'/%3E%3Crect x='14' y='14' width='28' height='8' rx='4' fill='%23000'/%3E%3Crect x='14' y='25' width='28' height='8' rx='4' fill='%23000'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 36'%3E%3Ccircle cx='6' cy='7' r='3.6' fill='%23000'/%3E%3Ccircle cx='6' cy='18' r='3.6' fill='%23000'/%3E%3Ccircle cx='6' cy='29' r='3.6' fill='%23000'/%3E%3Crect x='14' y='3' width='28' height='8' rx='4' fill='%23000'/%3E%3Crect x='14' y='14' width='28' height='8' rx='4' fill='%23000'/%3E%3Crect x='14' y='25' width='28' height='8' rx='4' fill='%23000'/%3E%3C/svg%3E");}
#supervisorParte5 .people{width:39px;height:34px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Ccircle cx='24' cy='10' r='8' fill='%23000'/%3E%3Ccircle cx='10' cy='16' r='6' fill='%23000'/%3E%3Ccircle cx='38' cy='16' r='6' fill='%23000'/%3E%3Cpath d='M10 37c0-9 6-13.5 14-13.5S38 28 38 37H10Z' fill='%23000'/%3E%3Cpath d='M1 36c0-6.8 3.7-10.5 9.5-10.5 2.8 0 4.9.8 6.5 2.3-2.4 2.2-3.9 5-4.2 8.2H1ZM47 36H35.2c-.3-3.2-1.8-6-4.2-8.2 1.6-1.5 3.7-2.3 6.5-2.3 5.8 0 9.5 3.7 9.5 10.5Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Ccircle cx='24' cy='10' r='8' fill='%23000'/%3E%3Ccircle cx='10' cy='16' r='6' fill='%23000'/%3E%3Ccircle cx='38' cy='16' r='6' fill='%23000'/%3E%3Cpath d='M10 37c0-9 6-13.5 14-13.5S38 28 38 37H10Z' fill='%23000'/%3E%3Cpath d='M1 36c0-6.8 3.7-10.5 9.5-10.5 2.8 0 4.9.8 6.5 2.3-2.4 2.2-3.9 5-4.2 8.2H1ZM47 36H35.2c-.3-3.2-1.8-6-4.2-8.2 1.6-1.5 3.7-2.3 6.5-2.3 5.8 0 9.5 3.7 9.5 10.5Z' fill='%23000'/%3E%3C/svg%3E");}
#supervisorParte5 .save{width:33px;height:33px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5 3h25l7 7v27H3V3h2Zm4 4v10h17V7H9Zm2 18h18v7H11v-7Zm3-16h9v6h-9v-6Z'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5 3h25l7 7v27H3V3h2Zm4 4v10h17V7H9Zm2 18h18v7H11v-7Zm3-16h9v6h-9V7Z'/%3E%3C/svg%3E");}
#supervisorParte5 .print{width:34px;height:32px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M9 3h22v8h3a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6h-5v2H11v-2H6a6 6 0 0 1-6-6v-8a6 6 0 0 1 6-6h3V3Zm4 5v6h14V8H13Zm0 19h14v-8H13v8Zm-7-8h4v4H6v-4Z'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M9 3h22v8h3a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6h-5v2H11v-2H6a6 6 0 0 1-6-6v-8a6 6 0 0 1 6-6h3V3Zm4 5v6h14V8H13Zm0 19h14v-8H13v8Zm-7-8h4v4H6v-4Z'/%3E%3C/svg%3E");}
#supervisorParte5 .screen{width:34px;height:31px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M4 3h32a3 3 0 0 1 3 3v19a3 3 0 0 1-3 3H22v3h5v3H13v-3h5v-3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm3 5v15h26V8H7Z'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M4 3h32a3 3 0 0 1 3 3v19a3 3 0 0 1-3 3H22v3h5v3H13v-3h5v-3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3Zm3 5v15h26V8H7Z'/%3E%3C/svg%3E");}
#supervisorParte5 .s5-max-table-icon{
    display:block;
    width:24px;
    height:20px;
    flex:0 0 24px;
    color:#1f6fd1;
    overflow:visible;
}
#supervisorParte5 .s5-max-table-icon rect,
#supervisorParte5 .s5-max-table-icon path{
    fill:#fff;
    stroke:currentColor;
    stroke-linecap:round;
    stroke-linejoin:round;
}
#supervisorParte5 .s5-max-table-icon rect{stroke-width:5}
#supervisorParte5 .s5-max-table-icon path{fill:none;stroke-width:4}

#supervisorParte5 .coins{width:43px;height:37px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Cellipse cx='15' cy='10' rx='11' ry='6' fill='%23000'/%3E%3Cpath d='M4 10v9c0 3.6 4.9 6.5 11 6.5S26 22.6 26 19v-9' fill='%23000'/%3E%3Cellipse cx='32' cy='21' rx='11' ry='6' fill='%23000'/%3E%3Cpath d='M21 21v9c0 3.6 4.9 6.5 11 6.5S43 33.6 43 30v-9' fill='%23000'/%3E%3Cellipse cx='15' cy='31' rx='11' ry='6' fill='%23000'/%3E%3Cpath d='M4 31v4c0 3.6 4.9 6.5 11 6.5S26 38.6 26 35v-4' fill='%23000'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Cellipse cx='15' cy='10' rx='11' ry='6' fill='%23000'/%3E%3Cpath d='M4 10v9c0 3.6 4.9 6.5 11 6.5S26 22.6 26 19v-9' fill='%23000'/%3E%3Cellipse cx='32' cy='21' rx='11' ry='6' fill='%23000'/%3E%3Cpath d='M21 21v9c0 3.6 4.9 6.5 11 6.5S43 33.6 43 30v-9' fill='%23000'/%3E%3Cellipse cx='15' cy='31' rx='11' ry='6' fill='%23000'/%3E%3Cpath d='M4 31v4c0 3.6 4.9 6.5 11 6.5S26 38.6 26 35v-4' fill='%23000'/%3E%3C/svg%3E");}
#supervisorParte5 .chart{width:43px;height:37px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Crect x='4' y='24' width='8' height='12' rx='2' fill='%23000'/%3E%3Crect x='16' y='17' width='8' height='19' rx='2' fill='%23000'/%3E%3Crect x='28' y='9' width='8' height='27' rx='2' fill='%23000'/%3E%3Cpath d='M6 12 16 20l11-6 10-8' fill='none' stroke='%23000' stroke-width='4.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m31 6 7-2-2 7' fill='%23000'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 42'%3E%3Crect x='4' y='24' width='8' height='12' rx='2' fill='%23000'/%3E%3Crect x='16' y='17' width='8' height='19' rx='2' fill='%23000'/%3E%3Crect x='28' y='9' width='8' height='27' rx='2' fill='%23000'/%3E%3Cpath d='M6 12 16 20l11-6 10-8' fill='none' stroke='%23000' stroke-width='4.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m31 6 7-2-2 7' fill='%23000'/%3E%3C/svg%3E");}
#supervisorParte5 .gear{width:37px;height:37px;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M18 2h12l2 6c1 .3 2 .8 3 1.3l5.7-2.7 8.5 8.5-2.7 5.7c.5 1 .9 2 1.3 3l6 2v12l-6 2c-.4 1-.8 2-1.3 3l2.7 5.7-8.5 8.5-5.7-2.7c-1 .5-2 .9-3 1.3l-2 6H18l-2-6c-1-.4-2-.8-3-1.3l-5.7 2.7-8.5-8.5 2.7-5.7c-.5-1-.9-2-1.3-3l-6-2V26l6-2c.4-1 .8-2 1.3-3l-2.7-5.7 8.5-8.5 5.7 2.7c1-.5 2-.9 3-1.3L18 2Zm6 14a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z' transform='translate(2 0) scale(.92)'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M18 2h12l2 6c1 .3 2 .8 3 1.3l5.7-2.7 8.5 8.5-2.7 5.7c.5 1 .9 2 1.3 3l6 2v12l-6 2c-.4 1-.8 2-1.3 3l2.7 5.7-8.5 8.5-5.7-2.7c-1 .5-2 .9-3 1.3l-2 6H18l-2-6c-1-.4-2-.8-3-1.3l-5.7 2.7-8.5-8.5 2.7-5.7c-.5-1-.9-2-1.3-3l-6-2V26l6-2c.4-1 .8-2 1.3-3l-2.7-5.7 8.5-8.5 5.7 2.7c1-.5 2-.9 3-1.3L18 2Zm6 14a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z' transform='translate(2 0) scale(.92)'/%3E%3C/svg%3E");}

#supervisorParte5 .s5-top{
    display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;
    height:89px;min-height:89px;padding:5px 9px;
    border-radius:0;background:linear-gradient(180deg,#3b8cf0 0%,#1560c0 100%);
}
#supervisorParte5 .s5-top button{display:grid;place-items:center;width:40px;height:40px;margin:auto;padding:0;border:0;background:transparent;color:#fff;cursor:pointer}
#supervisorParte5 .s5-top #supervisorParte5Logout{width:46px;height:46px}
#supervisorParte5 .s5-title{text-align:center;min-width:0;line-height:1}
#supervisorParte5 .s5-title h1{margin:0;color:#fff;font-size:29px;font-weight:900;letter-spacing:-.7px;white-space:nowrap}
#supervisorParte5 .s5-title p{margin:3px 0 0;color:#dfeaff;font-size:16px;font-weight:700}

/* ---------- Fecha y juego ---------- */
#supervisorParte5 .s5-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);gap:10px;margin:9px 10px 9px}
#supervisorParte5 .s5-field{position:relative;min-width:0;height:70px;padding:7px 10px;border-radius:15px;background:linear-gradient(135deg,#e3edff,#c5dafc);box-shadow:0 4px 13px rgba(171,63,0,.12);overflow:visible}
#supervisorParte5 .s5-field.game{background:linear-gradient(135deg,#cfe0fb,#9fc1f5);cursor:pointer}
#supervisorParte5 .s5-game-pop{display:none;position:absolute;left:0;right:0;top:0;z-index:60;padding:6px;border-radius:14px;background:#fff;box-shadow:0 14px 34px rgba(0,30,80,.35);cursor:default}
#supervisorParte5 .s5-game-pop.open{display:block}
#supervisorParte5 .s5-game-opt{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;height:58px;margin:0;padding:0 14px;border:0;border-radius:10px;background:transparent;color:#0b3a7a;font-size:21px;font-weight:900;line-height:24px;text-align:left;cursor:pointer}
#supervisorParte5 .s5-game-opt.on{background:#e3eeff}
#supervisorParte5 .s5-game-opt svg{flex:0 0 30px;width:30px;height:30px;color:#1f6fd1}
#supervisorParte5 .s5-game-opt span{flex:1;min-width:0}
#supervisorParte5 .s5-game-opt i{flex:0 0 22px;width:22px;height:22px;box-sizing:border-box;border:2px solid #b7c9e8;border-radius:50%}
#supervisorParte5 .s5-game-opt.on i{border:6px solid #1f6fd1}
#supervisorParte5 .s5-label{display:flex;align-items:center;height:27px;gap:5px;color:var(--orange);font-size:14px;font-weight:800;line-height:27px;white-space:nowrap}
#supervisorParte5 .s5-label .s5-icon{width:25px;height:25px}
#supervisorParte5 .game .s5-label{color:#0b3a7a}
#supervisorParte5 .s5-date{display:flex;flex-direction:column;justify-content:flex-start;width:100%;height:31px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;line-height:1;overflow:hidden}
#supervisorParte5 .s5-date-title{font-size:13px;font-weight:900;color:#0f4a99;letter-spacing:.1px}
#supervisorParte5 .s5-date-value{margin-top:2px;font-size:20px;font-weight:900;color:#0f4a99;white-space:nowrap;letter-spacing:.15px}
#supervisorParte5 .s5-game{width:100%;height:31px;padding:0 30px 0 0;border:0;outline:0;background:transparent;appearance:none;-webkit-appearance:none;color:#0b3a7a;font-size:21px;font-weight:900;line-height:31px;cursor:pointer;text-overflow:ellipsis;pointer-events:none}
#supervisorParte5 .s5-field.game:after{content:"";position:absolute;right:17px;bottom:22px;width:11px;height:11px;border-right:4px solid #0b3a7a;border-bottom:4px solid #0b3a7a;transform:rotate(45deg);pointer-events:none}
#supervisorParte5 .s5-native-date{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}

/* ---------- Calendario personalizado grande — estilo selector nativo,
azul marca de agua ---------- */
#supervisorParte5 .s5-calendar-pop{
    position:fixed;z-index:9999;left:44%;top:36%;transform:translate(-50%,-50%);
    width:550px;min-height:min(760px,calc(100vh - 28px));max-height:calc(100vh - 20px);overflow:auto;
    padding:32px 30px 26px;border-radius:30px;
    background:rgba(31,111,209,.24);color:#10294a;
    border:1px solid rgba(31,111,209,.28);
    box-shadow:0 24px 60px rgba(150,60,0,.28);
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:none;
}
#supervisorParte5 .s5-calendar-pop.open{display:block}
#supervisorParte5 .s5-cal-caption{font-size:20px;font-weight:800;color:#1d3d6b;margin-bottom:22px}
#supervisorParte5 .s5-cal-selected{font-size:52px;line-height:1.05;font-weight:500;color:#10294a;margin-bottom:28px;letter-spacing:-.6px}
#supervisorParte5 .s5-cal-head{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:14px;margin-bottom:18px}
#supervisorParte5 .s5-cal-title{text-align:left;font-size:23px;font-weight:800;letter-spacing:.1px;text-transform:capitalize;color:#0f4a99}
#supervisorParte5 .s5-cal-nav{width:52px;height:52px;border:0;border-radius:16px;background:rgba(255,255,255,.55);color:#0f4a99;font-size:32px;font-weight:900;line-height:52px;cursor:pointer;box-shadow:0 4px 12px rgba(31,111,209,.10)}
#supervisorParte5 .s5-cal-nav:hover{background:rgba(255,255,255,.80)}
#supervisorParte5 .s5-cal-week,
#supervisorParte5 .s5-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
#supervisorParte5 .s5-cal-week{margin-bottom:7px}
#supervisorParte5 .s5-cal-week span{text-align:center;font-size:22px;font-weight:950;color:#0b3a7a;padding:4px 0}
#supervisorParte5 .s5-cal-day{height:62px;border:1px solid rgba(31,111,209,.10);border-radius:13px;background:rgba(255,255,255,.62);color:#1d3d6b;font-size:18px;font-weight:900;cursor:pointer;box-shadow:0 2px 7px rgba(171,63,0,.06)}
#supervisorParte5 .s5-cal-day:hover{background:#fff;color:#0f4a99;border-color:rgba(31,111,209,.30)}
#supervisorParte5 .s5-cal-day.other{opacity:.30;background:rgba(255,255,255,.30)}
#supervisorParte5 .s5-cal-day.today{box-shadow:inset 0 0 0 2px rgba(31,111,209,.60)}
#supervisorParte5 .s5-cal-day.selected{background:#1f6fd1;color:#fff;border-color:#1f6fd1;box-shadow:0 4px 12px rgba(171,63,0,.28)}
#supervisorParte5 .s5-cal-foot{display:flex;justify-content:space-between;align-items:center;margin-top:22px}
#supervisorParte5 .s5-cal-actions{display:flex;gap:24px;margin-left:auto}
#supervisorParte5 .s5-cal-action{border:0;background:transparent;color:#0f4a99;font-size:24px;font-weight:950;padding:9px 4px;cursor:pointer}
#supervisorParte5 .s5-cal-today{border:0;border-radius:12px;padding:9px 15px;background:#1f6fd1;color:#fff;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 4px 10px rgba(171,63,0,.22)}
@media(max-width:520px){
    #supervisorParte5 .s5-calendar-pop{width:550px;padding:22px 14px 18px;border-radius:24px}
    #supervisorParte5 .s5-cal-caption{font-size:16px;margin-bottom:18px}
    #supervisorParte5 .s5-cal-selected{font-size:44px;margin-bottom:24px}
    #supervisorParte5 .s5-cal-head{grid-template-columns:48px 1fr 48px;gap:10px;margin-bottom:14px}
    #supervisorParte5 .s5-cal-nav{width:48px;height:48px;line-height:48px}
    #supervisorParte5 .s5-cal-title{font-size:20px}
    #supervisorParte5 .s5-cal-week,
#supervisorParte5 .s5-cal-grid{gap:7px}
    #supervisorParte5 .s5-cal-week span{font-size:22px;font-weight:950}
    #supervisorParte5 .s5-cal-day{height:62px;border-radius:13px;font-size:18px;font-weight:900}
    #supervisorParte5 .s5-cal-foot{margin-top:18px}
}

/* ---------- Pestañas ---------- */
#supervisorParte5.s5-section-vendors .s5-filters,
#supervisorParte5.arqueos-mode .s5-filters,
#supervisorParte5.arqueos-mode .s5-tabs{display:none}
#supervisorParte5 .s5-vendedor-report .s5-tabs{margin:0 0 10px}
#supervisorParte5 .s5-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:0 0 7px;background:transparent}
#supervisorParte5 .s5-tab{white-space:nowrap}
#supervisorParte5 .s5-tab.active{box-shadow:inset 0 0 0 3px rgba(255,255,255,.55)}
#supervisorParte5 .s5-tab i{font-size:18px}

/* ---------- Herramientas ---------- */
#supervisorParte5 .s5-toolbar{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0 8px 7px}
#supervisorParte5 .s5-max,
#supervisorParte5 .s5-save-inline,
#supervisorParte5 .s5-switch,
#supervisorParte5 .s5-tool{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:70px;min-height:70px;margin:0;padding:4px 6px;border-radius:14px}
#supervisorParte5 .s5-max{border:2px solid #1f6fd1;background:#fff}
#supervisorParte5 .s5-max-label{display:flex;align-items:center;gap:6px;min-width:0;color:#0b3a7a;font-size:15px;font-weight:800;line-height:1}
#supervisorParte5 .s5-max-value{display:block;box-sizing:border-box;width:100%;min-width:0;height:28px;padding:0 6px;border:2px solid #1f6fd1;border-radius:8px;background:#fff;color:#253746;font-size:18px;font-weight:900;font-variant-numeric:tabular-nums;text-align:center;outline:none}
#supervisorParte5 .s5-save-inline,
#supervisorParte5 .s5-tool{border:0;cursor:pointer;outline:0;appearance:none;-webkit-appearance:none}
#supervisorParte5 .s5-save-inline{border:2px solid #b9cff0;background:#dfeaff;color:#ef2d4d}
#supervisorParte5 #supervisorParte5Print{background:#1560c0;color:#fff}
#supervisorParte5 #supervisorParte5Screen{background:#2d2d3a;color:#fff}
#supervisorParte5 .s5-tool-icon{display:grid;place-items:center;width:34px;height:34px;background:transparent;background-color:transparent;border:0;outline:0;box-shadow:none}
#supervisorParte5 .s5-tool-icon .s5-icon{background-color:currentColor;background:currentColor;border:0;box-shadow:none}
#supervisorParte5 #supervisorParte5Screen .s5-icon.screen{width:36px;height:36px}
#supervisorParte5 .s5-tool-label{color:#fff;font-size:15px;font-weight:800;line-height:1}
#supervisorParte5 .s5-save-inline .s5-tool-label{color:#0b3a7a}

/* ---------- Selector de vista ---------- */
#supervisorParte5 .s5-switch{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;padding:0 6px;border:2px solid #1f6fd1;background:#fff;color:#10294a;font-size:11px;font-weight:900;line-height:1;cursor:pointer;overflow:hidden}
#supervisorParte5 .s5-switch:before{content:"";position:absolute;left:6px;right:6px;top:calc(50% - 15px);height:30px;border-radius:15px;background:#d9e6fb}
#supervisorParte5 .s5-switch-side{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:100%;height:30px;text-align:center;white-space:nowrap;transition:color .16s ease}
#supervisorParte5 .s5-switch-side.premio{color:#1f6fd1}
#supervisorParte5 .s5-switch-side.inversion{color:#1f6fd1}
#supervisorParte5 .s5-switch:after{content:"";position:absolute;top:calc(50% - 15px);left:6px;width:calc(50% - 6px);height:30px;border-radius:15px;background:#1f6fd1;box-shadow:0 2px 5px rgba(171,63,0,.20);transition:transform .16s ease}
#supervisorParte5 .s5-switch.premio:after{transform:translateX(100%)}
#supervisorParte5 .s5-switch.premio .premio{color:#fff}
#supervisorParte5 .s5-switch.premio .inversion{color:#1f6fd1}
#supervisorParte5 .s5-switch:not(.premio) .inversion{color:#fff}
#supervisorParte5 .s5-switch:not(.premio) .premio{color:#1f6fd1}

/* ---------- Tabla maestra ---------- */
#supervisorParte5 .s5-table-wrap{width:100%;margin:0;border:1px solid #b9cff0;border-radius:8px;overflow:hidden;background:#fff}
#supervisorParte5 .s5-table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
#supervisorParte5 .s5-table th:nth-child(2n+1),
#supervisorParte5 .s5-table td:nth-child(2n+1){width:8%;text-align:center;padding-left:0;padding-right:0}
#supervisorParte5 .s5-table th:nth-child(2n),
#supervisorParte5 .s5-table td:nth-child(2n){width:17%;}
#supervisorParte5 .s5-table th{height:31px;padding:0;background:#1f6fd1;color:#fff;border-right:1px solid #7fb0ee;font-size:15px;font-weight:900;line-height:31px}
#supervisorParte5 .s5-table th:last-child{border-right:0}
#supervisorParte5 .s5-table td{height:var(--s5-row-h);padding:0;border-right:1px solid #d3e1f6;border-bottom:1px solid #d3e1f6;text-align:center;font-size:18px;font-weight:950;line-height:var(--s5-row-h);white-space:nowrap;overflow:hidden}
#supervisorParte5 .s5-table tr:last-child td{border-bottom:0}
#supervisorParte5 .s5-table td:nth-child(2n){color:#1d7a3c}
#supervisorParte5 .s5-table td:nth-child(2n+1){color:var(--red)}
#supervisorParte5 .s5-table td:last-child{border-right:0}
#supervisorParte5 .s5-table tbody tr:nth-child(even) td{background:#e8f0ff}
#supervisorParte5 .s5-status{height:0;min-height:0;overflow:hidden;margin:0;padding:0;font-size:0;line-height:0}
#supervisorParte5 .s5-toast{position:absolute;left:50%;top:112px;transform:translate(-50%,-12px);z-index:10100;opacity:0;pointer-events:none;display:flex;align-items:center;gap:18px;width:max-content;max-width:680px;box-sizing:border-box;padding:20px 36px 20px 22px;border:0;border-left:14px solid #1f6fd1;border-radius:16px;background:#2d2d3a;color:#fff;font-size:38px;font-weight:900;line-height:42px;box-shadow:0 10px 26px rgba(0,0,0,.35);transition:opacity .18s ease,transform .18s ease}
#supervisorParte5 .s5-toast:before{content:"\2713";flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:#1f6fd1;color:#fff;display:grid;place-items:center;font-size:34px;line-height:1}
#supervisorParte5 .s5-toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- Secciones ---------- */
#supervisorParte5 .s5-section{display:none}
#supervisorParte5 .s5-section.active{display:block}
#supervisorParte5 #supervisorParte5VendorsSection.active,
#supervisorParte5 #supervisorParte5ArqueosSection.active{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
#supervisorParte5 .s5-arqueo-menu{display:flex;flex-direction:column;gap:3px;padding:3px 0}
#supervisorParte5 .s5-arqueo-item{display:flex;align-items:center;gap:30px;box-sizing:border-box;width:100%;height:180px;margin:0;padding:0 30px 0 28px;border:0;border-left:16px solid #1f6fd1;border-radius:0;background:#2d2d3a;color:#fff;font-weight:900;text-align:left;cursor:pointer}
#supervisorParte5 .s5-arqueo-icon{flex:0 0 64px;width:64px;height:64px;color:#1f6fd1}
#supervisorParte5 .s5-arqueo-label{flex:1;min-width:0;font-size:34px;line-height:40px}
#supervisorParte5 .s5-arqueo-chev{flex:0 0 44px;width:44px;height:44px;color:#1f6fd1}

/* ---------- Menú inferior ---------- */
#supervisorParte5 .s5-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin:2px 5px env(safe-area-inset-bottom,0px);padding:3px;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(30,70,100,.12)}
#supervisorParte5 .s5-bottom button{display:grid;place-items:center;align-content:center;gap:3px;height:80px;min-height:80px;padding:4px 2px;border:0;border-radius:12px;background:transparent;color:#8090a8;cursor:pointer}
#supervisorParte5 .s5-bottom button.active{background:#1f6fd1;color:#fff}
#supervisorParte5 .s5-bottom-icon{display:grid;place-items:center;height:48px;line-height:0}
#supervisorParte5 .s5-bottom-svg{display:block;width:46px;height:46px;color:currentColor;overflow:visible;shape-rendering:geometricPrecision}
#supervisorParte5 .s5-bottom-label{font-size:12px;font-weight:900;line-height:14px;white-space:nowrap}
#supervisorParte5Viewport{width:100%;max-width:740px;margin:0 auto;overflow:hidden;position:relative;height:auto;min-height:0;}

/* ---------- Móvil: compacto por diseño,
no por parche ---------- */
@media(max-width:760px){
    /* La referencia usa un lienzo de 740px; el contenedor externo lo escala sin desbordamiento. */
    #supervisorParte5Viewport{
        width:100%;
        max-width:100%;
        overflow:hidden;
        position:relative;
        margin:0;
        padding:0;
        height:auto;
        min-height:0;
    }
    #supervisorParte5{
        width:740px;
        max-width:740px;
        padding:0;
        transform-origin:top left;
        transform:scale(var(--s5-scale,1));
        /* 633px = mismas alturas fijas, medidas en el diseño de celular. */
        --s5-row-h:clamp(24px,calc((100dvh / var(--s5-scale,1) - 582px) / 25),44px);
    }

    #supervisorParte5 .s5-top{
        grid-template-columns:54px minmax(0,1fr) 54px;
        height:89px;min-height:89px;padding:5px 9px;
    }
    #supervisorParte5 .s5-top button{width:46px;height:46px}
    #supervisorParte5 .power,#supervisorParte5 .bluetooth{width:42px;height:42px}
    #supervisorParte5 .s5-title h1{font-size:29px;letter-spacing:-.7px}
    #supervisorParte5 .s5-title p{margin-top:3px;font-size:16px}

    #supervisorParte5 .s5-filters{
        grid-template-columns:minmax(0,1fr) minmax(0,1.95fr);
        gap:15px;margin:11px 17px 13px;
    }
    #supervisorParte5 .s5-field{
        height:80px;padding:8px 15px;border-radius:16px;
        display:flex;align-items:center;gap:13px;
    }
    #supervisorParte5 .s5-field.game{padding-left:18px}
    #supervisorParte5 .s5-label{
        height:auto;gap:0;font-size:17px;line-height:20px;flex:0 0 auto;
    }
    #supervisorParte5 .s5-label .s5-icon{width:40px;height:40px;margin-right:10px}
    #supervisorParte5 .calendar{width:40px;height:40px;border-width:3px;border-radius:6px;margin-right:10px}
    #supervisorParte5 .s5-date{
        width:auto;height:auto;min-width:0;justify-content:center;overflow:visible;
    }
    #supervisorParte5 .s5-date-title{font-size:16px;line-height:19px}
    #supervisorParte5 .s5-date-value{margin-top:2px;font-size:23px;line-height:26px}
    #supervisorParte5 .s5-calendar-pop{position:fixed;left:44%;right:auto;top:37%;bottom:auto;transform:translate(-50%,-50%);width:550px;max-width:none;min-height:min(760px,calc(100vh - 28px));max-height:calc(100vh - 20px);padding:28px 14px 24px;border-radius:28px;z-index:9999;overflow:auto}
    #supervisorParte5 .game .s5-label span:last-child{display:none}
    #supervisorParte5 .s5-game{
        width:auto;flex:1;height:42px;padding:0 32px 0 0;
        font-size:27px;line-height:42px;
    }
    #supervisorParte5 .s5-field.game:after{right:23px;bottom:29px;width:12px;height:12px;border-width:4px}
    #supervisorParte5 .s5-game-pop{padding:8px;border-radius:18px}
    #supervisorParte5 .s5-game-opt{height:76px;gap:16px;padding:0 18px;border-radius:14px;font-size:27px;line-height:32px}
    #supervisorParte5 .s5-game-opt svg{flex-basis:40px;width:40px;height:40px}
    #supervisorParte5 .s5-game-opt i{flex-basis:28px;width:28px;height:28px}
    #supervisorParte5 .s5-game-opt.on i{border-width:8px}

    #supervisorParte5 .s5-tabs{
        margin:0 0 10px;
    }
    #supervisorParte5 .s5-tab{
        font-size:17px;padding:14px 10px;
    }
    #supervisorParte5 .s5-tab i{font-size:22px}

    #supervisorParte5 .save,#supervisorParte5 .print,#supervisorParte5 .screen{transform:none}

    /* Selector de vista: Inversión izquierda / Premio derecha. */

    /* Tabla maestra compacta: los 25 renglones se muestran completos, sin scroll interno. */
    #supervisorParte5 .s5-table-wrap{
        width:100%;
        margin:0;
        border-radius:9px;
        max-height:none;
        overflow:hidden;
    }
    #supervisorParte5 .s5-table th{
        height:30px;font-size:18px;line-height:30px;
    }
    #supervisorParte5 .s5-table td{
        height:var(--s5-row-h);font-size:20px;font-weight:950;line-height:var(--s5-row-h);
    }

    #supervisorParte5 .s5-bottom{
        margin:2px 5px env(safe-area-inset-bottom,0px);padding:3px;border-radius:13px;
        min-height:82px;
        margin-top:auto;
    }
    #supervisorParte5 .s5-bottom button{
        height:78px;min-height:78px;border-radius:10px;gap:4px;padding:3px 2px;
    }
    #supervisorParte5 .s5-bottom-icon{height:48px;display:grid;place-items:center}
    #supervisorParte5 .s5-bottom-svg{width:46px;height:46px;display:block;overflow:visible}
    #supervisorParte5 .s5-bottom-label{font-size:12px;line-height:14px;color:currentColor}
}

@media(max-width:380px){
    /* Sin cambios geométricos adicionales: se conserva la proporción de la referencia de 740px. */
}

/* ---------- Reporte compacto de vendedores ---------- */
#supervisorParte5 .s5-vendedor-report{margin:0;padding:0 0 10px;background:#f2f7ff;display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
#supervisorParte5 .calendar-mini{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='5' y='8' width='38' height='35' rx='5' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M5 18h38M14 4v9M34 4v9' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='5' y='8' width='38' height='35' rx='5' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M5 18h38M14 4v9M34 4v9' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
#supervisorParte5 .s5-vendedor-report-detail-view{margin:5px 10px 0}
#supervisorParte5 .s5-vendedor-report-detail-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:center;padding:12px;background:#eef8ff;border:1px solid #c9dce8}
#supervisorParte5 .s5-vendedor-report-detail-avatar{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#197bd6;color:#fff}
#supervisorParte5 .s5-vendedor-report-detail-avatar svg{width:40px;height:40px}
#supervisorParte5 .s5-vendedor-report-detail-card h3{margin:0;color:#0b3d75;font-size:19px;font-weight:900}
#supervisorParte5 .s5-vendedor-report-detail-card p{margin:3px 0 0;color:#566779;font-size:13px;font-weight:700}
#supervisorParte5 .s5-vendedor-report-detail-empty{padding:18px;text-align:center;border:1px dashed #b9cbd6;color:#566779;font-size:14px;font-weight:800;background:#fbfdfe}

/* ---------- Gestión visual de vendedores: estructura base ---------- */
#supervisorParte5 .s5-vendedores-view{
    position:relative;
    width:100%;
    flex:1 1 auto;
    padding:0 0 110px;
    margin:0;
    box-sizing:border-box;
    background:#f2f7ff;
    overflow:visible;
}
#supervisorParte5 .s5-vendedores-header{
    display:grid;
    grid-template-columns:64px minmax(0,1fr) 0;
    align-items:center;
    gap:14px;
    width:100%;
    height:96px;
    margin:0;
    padding:0 18px;
    border-radius:0;
    background:linear-gradient(180deg,#3b8cf0,#1560c0);
    color:#fff;
    box-shadow:none;
}
#supervisorParte5 .s5-vendedores-title-icon{
    display:grid;
    place-items:center;
    width:56px;height:56px;
    color:#fff;
}
#supervisorParte5 .s5-vendedores-title-icon svg{width:56px;height:56px;display:block}
#supervisorParte5 .s5-vendedores-header h2{
    margin:0;
    color:#fff;
    font-size:30px;
    line-height:34px;
    font-weight:900;
}
#supervisorParte5 .s5-vendedores-header p{
    margin:4px 0 0;
    color:rgba(255,255,255,.88);
    font-size:16px;
    line-height:20px;
}
#supervisorParte5 #supervisorParte5VendedorList{
    display:flex;
    flex-direction:column;
    gap:10px;
    box-sizing:border-box;
    width:100%;
    padding:10px;
}
#supervisorParte5 .s5-vendedor-card{
    display:grid;
    grid-template-columns:60px minmax(0,1fr) 44px;
    align-items:center;
    gap:12px;
    box-sizing:border-box;
    width:100%;
    min-height:88px;
    padding:10px 14px;
    border-left:6px solid var(--vendedor-bg,#d6f3e2);
    border-radius:0;
    background:#2d2d3a;
    box-shadow:none;
}
#supervisorParte5 .s5-vendedor-avatar{
    display:grid;
    place-items:center;
    width:52px;height:52px;
    border-radius:0;
    background:#1f6fd1;
    color:#fff;
}
#supervisorParte5 .s5-vendedor-avatar svg{width:36px;height:36px;display:block}
#supervisorParte5 .s5-vendedor-info{
    min-width:0;
    cursor:pointer;
    box-sizing:border-box;
    padding:0 6px;
    border:0;
    border-radius:0;
    background:transparent;
}
#supervisorParte5 .s5-vendedor-name{
    display:block;
    width:100%;
    box-sizing:border-box;
    margin:0 0 4px;
    padding:0;
    color:#fff;
    background:transparent;
    border:0;
    border-radius:0;
    font-size:26px;
    line-height:30px;
    font-weight:900;
    letter-spacing:.1px;
}
#supervisorParte5 .s5-vendedor-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    color:#c5dafc;
    font-size:17px;
    line-height:26px;
    font-weight:700;
}
#supervisorParte5 .s5-vendedor-date,
#supervisorParte5 .s5-vendedor-state{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-width:0;
}
#supervisorParte5 .s5-vendedor-date svg{
    width:22px;
    height:22px;
    min-width:22px;
    max-width:22px;
    display:block;
    flex:0 0 22px;
    color:#c5dafc;
    overflow:visible;
}
#supervisorParte5 .s5-vendedor-divider{
    width:1px;height:18px;
    background:rgba(255,255,255,.3);
}
#supervisorParte5 .s5-vendedor-dot{
    width:14px;height:14px;
    flex:0 0 14px;
    border-radius:50%;
    background:#1f6fd1;
}
#supervisorParte5 .s5-vendedor-card.inactive .s5-vendedor-dot{background:#8090a8}
#supervisorParte5 .s5-vendedor-state-pill{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 12px;
    border-radius:0;
    background:#1f6fd1;
    color:#fff;
    font-size:16px;
    font-weight:900;
}
#supervisorParte5 .s5-vendedor-card.inactive .s5-vendedor-state-pill{
    background:#6b6b78;
    color:#fff;
}

/* Editor de vendedor: modal de pantalla completa,
contenido solo hasta las acciones. */
#supervisorParte5 .s5-vendedor-edit{
    position:fixed;
    inset:0;
    z-index:10050;
    display:none;
    align-items:flex-start;
    justify-content:center;
    overflow-y:auto;
    padding:0;
    background:rgba(45,45,58,.55);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
}
#supervisorParte5 .s5-vendedor-edit.open{display:flex}
#supervisorParte5 .s5-vendedor-edit-card{
    width:100%;
    max-width:740px;
    display:flex;
    flex-direction:column;
    min-height:100%;
    margin:0 auto;
    padding:0;
    background:#f2f7ff;
    border-radius:0;
    box-shadow:0 14px 40px rgba(45,45,58,.2);
}
#supervisorParte5 .s5-vendedor-edit-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    height:84px;
    margin-bottom:14px;
    padding:0 18px;
    background:linear-gradient(180deg,#3b8cf0,#1560c0);
}
#supervisorParte5 .s5-vendedor-edit-head h3{
    margin:0;
    color:#fff;
    font-size:29px;
    line-height:34px;
    font-weight:900;
}
#supervisorParte5 .s5-vendedor-edit-close{
    display:grid;
    place-items:center;
    width:44px;height:44px;
    padding:0;
    border:0;
    border-radius:0;
    background:#2d2d3a;
    color:#fff;
    font-size:32px;
    line-height:1;
    cursor:pointer;
}
#supervisorParte5 .s5-vendedor-form{display:flex;flex-direction:column;flex:1 1 auto}
#supervisorParte5 .s5-vendedor-field{min-width:0;margin-bottom:10px;box-sizing:border-box}
#supervisorParte5 .s5-vendedor-field label{
    display:block;
    margin:0 0 7px;
    padding:0 12px;
    color:#10294a;
    font-size:22px;
    line-height:27px;
    font-weight:900;
}
#supervisorParte5 .s5-vendedor-field input{
    width:100%;
    height:56px;
    padding:0 16px;
    border:2px solid #b9cff0;
    border-radius:0;
    background:#fff;
    color:#10294a;
    font-size:22px;
    line-height:56px;
    outline:none;
}
#supervisorParte5 .s5-vendedor-field input:focus{
    border-color:#1f6fd1;
    box-shadow:0 0 0 2px rgba(31,111,209,.18);
}
#supervisorParte5 .s5-vendedor-edit-status{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:3px;
    margin-bottom:10px;
}
#supervisorParte5 .s5-vendedor-edit-status-label{
    grid-column:1 / -1;
    padding:0 12px;
    color:#10294a;
    font-size:22px;
    line-height:24px;
    font-weight:900;
}
#supervisorParte5 .s5-vendedor-toggle-edit,
#supervisorParte5 .s5-vendedor-edit-delete{
    width:100%;
    height:68px;
    min-height:68px;
    margin:0;
    padding:0 10px;
    border:0;
    border-radius:0;
    color:#fff;
    font-size:25px;
    line-height:68px;
    font-weight:900;
    text-align:center;
    cursor:pointer;
    box-sizing:border-box;
}
#supervisorParte5 .s5-vendedor-toggle-edit.deactivate{background:#1560c0}
#supervisorParte5 .s5-vendedor-toggle-edit.activate{background:#2d2d3a}
#supervisorParte5 .s5-vendedor-edit-delete{background:#c92f45;}
#supervisorParte5 .s5-vendedor-commission{position:relative}
#supervisorParte5 .s5-vendedor-percent{
    position:absolute;
    right:16px;
    bottom:18px;
    color:#1f6fd1;
    font-size:20px;
    line-height:24px;
    font-weight:900;
}
#supervisorParte5 .s5-vendedor-options{
    flex:1 1 auto;
    padding:18px;
    border:0;
    border-radius:0;
    background:#dfeaff;
}
#supervisorParte5 .s5-vendedor-options-title{
    margin:0 0 14px;
    color:#0f4a99;
    font-size:25px;
    line-height:30px;
    font-weight:900;
    text-transform:uppercase;
}
#supervisorParte5 .s5-vendedor-option{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    box-sizing:border-box;
    width:100%;
    min-height:62px;
    margin:0 0 12px;
    padding:10px 16px;
    border:2px solid #1f6fd1;
    border-radius:0;
    background:#fff;
    color:#0b3a7a;
    font-size:20px;
    line-height:24px;
    font-weight:900;
    text-align:left;
    cursor:pointer;
}
#supervisorParte5 .s5-vendedor-option svg{flex:0 0 22px;width:22px;height:22px;color:#1f6fd1}
#supervisorParte5 .s5-vendedor-option:active{transform:translateY(1px)}
#supervisorParte5 .s5-vendedor-setting-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    box-sizing:border-box;
    min-height:58px;
    margin:0 0 10px;
    padding:10px 16px;
    border:2px solid #b9cff0;
    background:#fff;
    color:#10294a;
    font-size:20px;
    line-height:24px;
    font-weight:900;
}
#supervisorParte5 .s5-juegos-view{display:none;flex-direction:column;flex:1 1 auto}
#supervisorParte5 .s5-vendedor-edit.juegos-open .s5-juegos-view{display:flex}
#supervisorParte5 .s5-vendedor-edit.juegos-open .s5-vendedor-form{display:none}
#supervisorParte5 .s5-vendedor-switch{
    position:relative;
    flex:0 0 auto;
    width:70px;
    height:38px;
}
#supervisorParte5 .s5-vendedor-switch input{position:absolute;opacity:0;pointer-events:none}
#supervisorParte5 .s5-vendedor-switch-track{
    position:absolute;inset:0;
    border-radius:999px;
    background:#aebdca;
    cursor:pointer;
}
#supervisorParte5 .s5-vendedor-switch-track:before{
    content:"";position:absolute;top:4px;left:4px;width:30px;height:30px;
    border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.18s;
}
#supervisorParte5 .s5-vendedor-switch input:checked + .s5-vendedor-switch-track{background:#1f6fd1}
#supervisorParte5 .s5-vendedor-switch input:checked + .s5-vendedor-switch-track:before{transform:translateX(32px)}
@media (max-width:760px){
    #supervisorParte5 .s5-vendedor-options{padding:14px}
    #supervisorParte5 .s5-vendedor-options-title{font-size:22px;line-height:27px}
}
#supervisorParte5 .s5-vendedor-edit.is-new .s5-vendedor-edit-status{display:none}
#supervisorParte5 .s5-vendedor-form-error{
    display:none;
    box-sizing:border-box;
    width:100%;
    padding:16px 20px;
    background:#c92f45;
    color:#fff;
    font-size:24px;
    font-weight:900;
    line-height:30px;
    text-align:center;
}
#supervisorParte5 .s5-vendedor-form-error.show{display:block}
#supervisorParte5 .s5-vendedor-form-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    box-sizing:border-box;
    width:100%;
    margin-top:auto;
    padding:16px;
    background:#dfeaff;
}
#supervisorParte5 .s5-vendedor-cancel,
#supervisorParte5 .s5-vendedor-save{
    display:grid;
    place-items:center;
    flex:1 1 0;
    min-width:0;
    height:100px;
    padding:0 10px;
    border:0;
    border-radius:0;
    color:#fff;
    font-size:28px;
    font-weight:900;
    text-align:center;
    cursor:pointer;
    box-sizing:border-box;
}
#supervisorParte5 .s5-vendedor-cancel{border:2px solid #1f6fd1;background:#fff;color:#0b3a7a}
#supervisorParte5 .s5-vendedor-save{background:#2d2d3a}

/* ---------- Gestión visual de vendedores ---------- */
#supervisorParte5 .s5-vendedor-info{cursor:pointer}
#supervisorParte5 .s5-vendedor-name{cursor:pointer}
#supervisorParte5 .s5-vendedor-open{
    display:grid;place-items:center;
    width:40px;height:40px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#1f6fd1;
    cursor:pointer;
}
#supervisorParte5 .s5-vendedor-open svg{width:30px;height:30px}
#supervisorParte5 .s5-vendedores-empty{
    display:none;
    margin:45px 16px 0;
    padding:35px 20px;
    border-radius:22px;
    background:#fff;
    color:#587087;
    text-align:center;
    box-shadow:0 8px 22px rgba(40,85,135,.10);
}
#supervisorParte5 .s5-vendedores-fab{
    position:absolute;
    right:20px;
    bottom:25px;
    display:grid;place-items:center;
    width:56px;height:56px;
    padding:0;
    border:0;
    border-radius:0;
    color:#fff;
    background:#2d2d3a;
    box-shadow:0 6px 14px rgba(20,20,40,.28);
    cursor:pointer;
}
#supervisorParte5 .s5-vendedores-fab svg{width:32px;height:32px}
#supervisorParte5.vendedores-mode .s5-top,
#supervisorParte5.vendedores-mode .s5-filters,
#supervisorParte5.vendedores-mode .s5-tabs,
#supervisorParte5.vendedores-mode #supervisorParte5MasterSection,
#supervisorParte5.vendedores-mode #supervisorParte5VendorsSection,
#supervisorParte5.vendedores-mode #supervisorParte5ArqueosSection{display:none}
#supervisorParte5.vendedores-mode #supervisorParte5VendedoresSection{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
@media(max-width:760px){
    #supervisorParte5 .s5-vendedores-view{padding:0 0 100px}
    #supervisorParte5 .s5-vendedor-field label{font-size:21px;line-height:26px}
    #supervisorParte5 .s5-vendedor-field input{font-size:21px}
    #supervisorParte5 .s5-vendedor-edit-status-label{font-size:19px;line-height:24px}
}

/* ---------- Detalle de vendedores: réplica exacta del mockup de referencia ---------- */
#supervisorParte5 .s5-sv-filters{padding:12px 0 0}
#supervisorParte5 .s5-sv-date-inputs{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-bottom:10px}
#supervisorParte5 .s5-sv-date-field{border:2px solid #1f6fd1;background:#fff;padding:6px 8px 8px}
#supervisorParte5 .s5-sv-date-label{font-size:15px;font-weight:800;color:#0b3a7a;margin-bottom:5px;display:block}
#supervisorParte5 .s5-sv-input-wrapper{display:flex;align-items:stretch;background:#fff;border:0;border-radius:0;overflow:hidden;box-shadow:0 3px 9px rgba(171,63,0,.18)}
#supervisorParte5 .s5-sv-input-wrapper .s5-sv-icon-container{background:#1f6fd1;color:#fff;padding:0 12px;font-size:19px;display:flex;align-items:center}
#supervisorParte5 .s5-sv-input-wrapper input{border:none;outline:none;padding:9px 8px;width:100%;font-weight:900;font-size:16px;color:#10294a;background:#fff}
#supervisorParte5 .s5-sv-controls-row{display:grid;grid-template-columns:2.4fr 1fr;gap:12px;align-items:stretch;margin-bottom:14px;padding:0 20px}
#supervisorParte5 .s5-sv-select-wrapper{display:flex;align-items:center;height:64px;background:#fff;border:2px solid #1f6fd1;border-radius:32px;padding:0 14px}
#supervisorParte5 .s5-sv-select-wrapper .s5-sv-icon-container{color:#1f6fd1;padding:0 8px;font-size:28px;background:none}
#supervisorParte5 .s5-sv-select-wrapper select{border:none;outline:none;padding:0 6px;width:100%;font-weight:900;font-size:24px;color:#0b3a7a;background:transparent}
#supervisorParte5 .s5-sv-switch{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:64px;background:#fff;border:2px solid #1f6fd1;border-radius:32px}
#supervisorParte5 .s5-sv-switch input{opacity:0;width:0;height:0;position:absolute}
#supervisorParte5 .s5-sv-slider{position:relative;display:block;cursor:pointer;width:70px;height:36px;background-color:#c3cfdb;border-radius:34px;border:0;transition:.15s}
#supervisorParte5 .s5-sv-slider:before{position:absolute;content:"";height:28px;width:28px;left:4px;top:4px;background:#fff;border-radius:50%;transition:.15s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
#supervisorParte5 .s5-sv-switch input:checked+.s5-sv-slider{background:#1f6fd1}
#supervisorParte5 .s5-sv-switch input:checked+.s5-sv-slider:before{transform:translateX(34px)}

#supervisorParte5 .s5-sv-tickets{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-bottom:10px}
#supervisorParte5 .s5-sv-tickets .s5-sv-card{border-radius:0;box-shadow:none}
#supervisorParte5 .s5-sv-tickets .s5-sv-card-value{border-radius:0}
#supervisorParte5 .s5-sv-cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 20px 12px}
#supervisorParte5 .s5-sv-card{display:flex;align-items:stretch;border-radius:14px;overflow:hidden;border:0;height:88px;box-shadow:0 3px 8px rgba(20,40,70,.10)}
#supervisorParte5 .s5-sv-card-icon{width:38%;display:flex;justify-content:center;align-items:center;font-size:32px;color:#fff}
#supervisorParte5 .s5-sv-card-content{width:62%;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:6px}
#supervisorParte5 .s5-sv-card-title{font-size:16px;font-weight:800;color:#17324f;line-height:1.15}
#supervisorParte5 .s5-sv-card-value{background:rgba(255,255,255,.85);border:0;border-radius:6px;height:28px;text-align:left;padding:2px 8px;font-weight:900;color:#0c1722;font-size:17px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#supervisorParte5 .s5-sv-bg-pink{background:#fbdcdc}
#supervisorParte5 .s5-sv-bg-pink .s5-sv-card-icon{background:#d0342a}
#supervisorParte5 .s5-sv-bg-peach{background:#e7defa}
#supervisorParte5 .s5-sv-bg-peach .s5-sv-card-icon{background:#6f2fc4}
#supervisorParte5 .s5-sv-bg-lightgreen{background:#c9f0dd}
#supervisorParte5 .s5-sv-bg-lightgreen .s5-sv-card-icon{background:#0c7d43}
#supervisorParte5 .s5-sv-bg-yellow{background:#fbe6b8}
#supervisorParte5 .s5-sv-bg-yellow .s5-sv-card-icon{background:#e0a415}
#supervisorParte5 .s5-sv-bg-purple{background:#e2d5f8}
#supervisorParte5 .s5-sv-bg-purple .s5-sv-card-icon{background:#6f42c1;font-size:30px;font-weight:900}
#supervisorParte5 .s5-sv-bg-cyan{background:#cfeaf9}
#supervisorParte5 .s5-sv-bg-cyan .s5-sv-card-icon{background:#1a73b8}

#supervisorParte5 .s5-sv-action-btns{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:0 0 12px}
#supervisorParte5 .s5-sv-btn-action{padding:0 10px;min-height:76px;border:none;border-radius:0;color:#fff;font-weight:800;font-size:22px;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;opacity:1}
#supervisorParte5 .s5-sv-btn-action i{font-size:28px}
#supervisorParte5 .s5-sv-btn-action.active{box-shadow:inset 0 0 0 3px rgba(255,255,255,.55)}
#supervisorParte5 .s5-sv-btn-grey{background:#1560c0}
#supervisorParte5 .s5-sv-btn-red{background:#2d2d3a}

#supervisorParte5 .s5-sv-table-container{padding:0 0 10px}
#supervisorParte5 .s5-sv-table{width:100%;border-collapse:collapse;background:#fff;table-layout:fixed}
#supervisorParte5 .s5-sv-table th{height:64px;background:#1f6fd1;color:#fff;font-size:24px;font-weight:800;padding:0 8px;text-align:center}
#supervisorParte5 .s5-sv-table th:first-child{width:34%;padding-left:18px;text-align:left}
#supervisorParte5 .s5-sv-table th:last-child{width:18%}
#supervisorParte5 .s5-sv-table td{height:76px;border:1px solid #d3e1f6;padding:0 8px;font-size:24px;text-align:center;font-weight:800;color:#10294a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#supervisorParte5 .s5-sv-table td:first-child{text-align:left;padding-left:18px}
#supervisorParte5 .s5-sv-table tbody tr:nth-child(even) td{background:#e8f0ff}
#supervisorParte5 .s5-sv-btn-detail{width:64px;height:50px;background:#1f6fd1;color:#fff;border:none;border-radius:0;cursor:pointer;font-size:28px}

#supervisorParte5 .s5-vendedor-report{min-height:0}
#supervisorParte5 .s5-sv-footer-totals{display:grid;grid-template-columns:1fr 1fr;padding:0;gap:0;margin-top:auto;flex:0 0 70px;height:70px}
#supervisorParte5 .s5-sv-total-card{display:flex;align-items:center;height:70px;padding:0 18px;border-radius:0;color:#fff}
#supervisorParte5 .s5-sv-total-purple{background:#2d2d3a}
#supervisorParte5 .s5-sv-total-green{background:#1f6fd1}
#supervisorParte5 .s5-sv-total-icon{font-size:36px;line-height:1;margin-right:14px;flex:0 0 auto;color:#f4c430}
#supervisorParte5 .s5-sv-total-green .s5-sv-total-icon{color:#fff}
#supervisorParte5 .s5-sv-total-details{display:flex;flex-direction:column;min-width:0}
#supervisorParte5 .s5-sv-total-label{font-size:13px;text-transform:uppercase;font-weight:800;opacity:.92;line-height:1.15}
#supervisorParte5 .s5-sv-total-value{font-size:22px;font-weight:900;white-space:nowrap;line-height:1.2;color:#f4c430}
#supervisorParte5 .s5-sv-total-green .s5-sv-total-value{color:#fff}

