:root { --navy:#102c47; --navy-dark:#0b263f; --sky:#1597e5; --sky-pale:#eaf6ff; --line:#dce4ed; --muted:#60758c; --red:#dc2626; --green:#15803d; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:#f8fafc; color:#0b223f; font-size:14px; }
.pantalla { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; text-align:center; }
.app-shell { min-height:100vh; padding-left:205px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:205px; padding:28px 16px; background:var(--navy-dark); z-index:10; }
.logo-ennvios { display:block; width:154px; height:auto; margin:0 6px 38px; }
.menu-principal { display:grid; gap:8px; }
.menu-item { height:46px; display:flex; align-items:center; gap:16px; padding:0 16px; border-radius:9px; color:#fff; text-decoration:none; font-size:15px; font-weight:600; }
.menu-item.futuro { opacity:.78; cursor:default; }
.menu-item.activo { color:var(--navy); background:linear-gradient(100deg,#e7f7ff,#bde6fb); box-shadow:0 4px 14px rgba(21,151,229,.18); }
.menu-icono { font-size:20px; line-height:1; }
.contenido-principal { min-width:0; }
.app-header { height:62px; display:flex; align-items:center; justify-content:flex-end; gap:22px; padding:0 28px; background:#fff; border-bottom:1px solid #eef2f6; box-shadow:0 2px 7px rgba(15,39,68,.035); }
.fecha-selector { width:290px; height:42px; display:flex; align-items:center; gap:11px; padding:0 13px; border:1px solid #d8e0ea; border-radius:7px; color:#31465e; font-weight:600; }
.icono-calendario { color:var(--sky); font-size:19px; }.chevron { margin-left:auto; color:#718398; font-size:18px; }
.perfil-seller { display:flex; align-items:center; gap:10px; min-width:190px; }.perfil-seller strong,.perfil-seller small { display:block; }.perfil-seller strong { font-size:13px; }.perfil-seller small { margin-top:2px; color:#7d8da0; font-size:11px; }
.avatar-seller { width:40px; height:40px; display:grid; place-items:center; flex:none; border-radius:50%; background:var(--navy); color:#fff; font-weight:800; font-size:16px; }
.area-hoy { padding:18px 27px 28px; }.encabezado-hoy { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:16px; }.encabezado-hoy h1 { margin:0; font-size:36px; line-height:1; letter-spacing:.02em; font-weight:800; }.encabezado-hoy p { margin:7px 0 0; color:#344c65; font-size:19px; }
#btn-agregar { min-height:42px; padding:0 17px; border:0; border-radius:7px; background:var(--sky); color:#fff; font:600 14px inherit; cursor:pointer; box-shadow:0 3px 8px rgba(21,151,229,.2); } #btn-agregar:active { transform:translateY(1px); }
.banner-horario { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; padding:10px 14px; border:1px solid #f8c55b; border-radius:7px; background:#fff7df; color:#784b00; }.banner-horario button { border:1px solid #b7790b; border-radius:6px; background:#fff; color:#8a5700; padding:6px 10px; cursor:pointer; }
.bloque-instrucciones { display:flex; align-items:flex-start; justify-content:center; gap:13px; margin:0 0 14px; padding:12px 18px; border-radius:8px; background:linear-gradient(104deg,#e9f5ff 0%,#ccecff 56%,#6dbbf2 150%); box-shadow:0 2px 7px rgba(21,151,229,.12); color:#103250; }.instrucciones-icono { width:27px; height:27px; display:grid; place-items:center; flex:none; border-radius:50%; background:#168eea; color:#fff; font-size:17px; font-weight:800; font-family:Georgia,serif; }.bloque-instrucciones h2 { margin:0 0 5px; font-size:13px; }.bloque-instrucciones ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 24px; margin:0; padding-left:18px; font-size:12px; line-height:1.35; font-weight:650; }.bloque-instrucciones li { padding-left:2px; }.bloque-instrucciones li::marker { color:#168eea; font-weight:800; }
.barra-seleccion { display:flex; align-items:center; gap:8px; margin:0 0 10px; padding:8px 12px; border:1px solid #fecaca; border-radius:7px; background:#fff4f4; }.barra-seleccion span { flex:1; color:var(--red); font-weight:700; }.barra-seleccion button { min-height:36px; border:1px solid var(--red); border-radius:6px; background:var(--red); color:#fff; padding:0 12px; cursor:pointer; }.barra-seleccion button:last-child { background:#fff; color:var(--red); }
.grid-wrap { max-height:calc(100vh - 274px); overflow:auto; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 2px 9px rgba(15,39,68,.06); } table#grid { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; }
#grid th,#grid td { border-right:1px solid var(--line); border-bottom:1px solid var(--line); } #grid th:last-child,#grid td:last-child { border-right:0; }
#grid-letters th { height:20px; padding:0 2px; background:#f2f5f9; color:#31465e; text-align:center; font-size:10px; font-weight:700; } #grid-head th { min-height:25px; padding:3px 4px; background:#102f4c; color:#fff; text-align:left; font-size:11px; font-weight:600; line-height:1.1; white-space:normal; }
#grid tbody tr:nth-child(even) td { background:#eaf6ff; } #grid tbody td { height:21px; padding:0; vertical-align:middle; background:#fff; } #grid tbody tr.fila-bloqueada td { background:#c9cdd2 !important; } #grid tbody tr.fila-sin-guardar td { background:#fff1f2 !important; }
#grid input[data-campo] { width:100%; min-width:60px; height:20px; padding:1px 3px; border:0; background:transparent; color:#162c45; font:11px inherit; } #grid input[data-campo]:focus { position:relative; z-index:3; outline:2px solid var(--sky); outline-offset:-2px; background:#fff; box-shadow:0 0 8px rgba(21,151,229,.25); } #grid input:disabled { color:#4b5563; cursor:not-allowed; }
.numero-fila { width:39px; min-width:39px; text-align:center; color:#66778a; font-size:12px; background:#f4f6f9 !important; }.col-numero { width:39px; min-width:39px; text-align:center !important; }.col-sel,.celda-sel { position:sticky; left:39px; z-index:4; width:118px; min-width:118px; box-shadow:2px 0 0 rgba(220,228,237,.9); }.celda-sel { padding:2px 6px !important; background:#fff !important; }.col-sel { background:#102f4c !important; }.fila-bloqueada .celda-sel { background:#c9cdd2 !important; }.chk-fila,.col-sel input[type=checkbox] { width:17px; height:17px; margin:5px 5px 3px 0; accent-color:var(--sky); cursor:pointer; vertical-align:middle; }.celda-estado { min-height:20px; font-size:11px; line-height:1.2; white-space:normal; }.estado-guardado { color:var(--green); }.estado-guardando { color:#60758c; }.estado-reintentando { color:#a16207; }.estado-error { color:var(--red); }.estado-bloqueado { color:#4b5563; font-weight:700; }.estado-error button { display:block; margin-top:3px; border:1px solid var(--red); border-radius:4px; background:#fff; color:var(--red); font-size:11px; cursor:pointer; }
.grid-vacia { padding:22px; color:var(--muted); text-align:center; }
.pausa-inactividad { position:fixed; right:24px; bottom:24px; z-index:20; max-width:340px; padding:12px 16px; border:0; border-radius:8px; background:var(--navy); color:#fff; font:600 13px inherit; box-shadow:0 5px 18px rgba(15,39,68,.25); cursor:pointer; }
@media (max-width:900px) { .app-shell { padding-left:172px; }.sidebar { width:172px; }.logo-ennvios { width:132px; }.fecha-selector { width:220px; }.area-hoy { padding:16px; }.app-header { padding:0 16px; }.grid-wrap { max-height:calc(100vh - 286px); } }
@media (max-width:650px) { .app-shell { padding-left:0; }.sidebar { position:static; width:auto; height:72px; padding:15px 18px; }.logo-ennvios { width:120px; margin:0; }.menu-principal { display:none; }.app-header { justify-content:space-between; }.fecha-selector { width:auto; }.perfil-seller { min-width:0; }.perfil-seller strong,.perfil-seller small { display:none; }.encabezado-hoy h1 { font-size:30px; }.encabezado-hoy p { font-size:15px; }.bloque-instrucciones p { font-size:12px; }.grid-wrap { max-height:calc(100vh - 330px); } }
#titulo-instrucciones { text-align:center; }
#grid input[data-campo] { height:18px; padding:0 2px; font-size:10px; line-height:18px; }
.col-telefono { text-align:center !important; }.col-telefono input { text-align:center; }
#grid-letters th,#grid-head th { height:24px; min-height:24px; text-align:center; vertical-align:middle; }
#grid tbody td { height:21px; }.celda-sel { height:21px; }
#grid input[data-campo] { display:block; width:100%; height:100%; min-height:21px; margin:0; padding:0 2px; box-sizing:border-box; }
#grid tbody tr { height:22px; }.celda-sel { padding:0 3px !important; white-space:nowrap; }.celda-sel .chk-fila { width:14px; height:14px; margin:1px 3px 1px 0; vertical-align:middle; }.celda-sel .celda-estado { display:inline; min-height:0; font-size:10px; line-height:18px; vertical-align:middle; }
.logo-ennvios { width:92px; margin:0 6px 8px; }.nombre-ennvios { margin:0 8px 28px; color:#fff; font-size:18px; font-weight:800; letter-spacing:.04em; }.nombre-ennvios span { color:#29a9e0; }
#grid tbody tr,#grid tbody td,.celda-sel { height:44px; }.celda-sel .celda-estado { line-height:18px; }.celda-sel .chk-fila { vertical-align:top; margin-top:14px; }#grid input[data-campo] { height:44px; min-height:44px; padding:0 4px; font-size:35px; line-height:44px; }
.logo-ennvios { display:block; margin:0 auto 8px; }.nombre-ennvios { text-align:center; margin:0 0 28px; }.sidebar-footer { position:absolute; right:0; bottom:18px; left:0; color:#9ec6dc; text-align:center; font-size:10px; }.sidebar { position:fixed; }#grid tbody tr,#grid tbody td,.celda-sel { height:24px; }#grid input[data-campo] { height:24px; min-height:24px; padding:0 2px; font-size:11px; line-height:24px; }
.col-sel,.celda-sel { left:0; width:88px; min-width:88px; max-width:88px; background:#f4f6f9 !important; text-align:center; box-shadow:2px 0 0 rgba(220,228,237,.9); }.col-numero,.numero-fila { width:39px; min-width:39px; text-align:center; }.celda-sel { display:table-cell; white-space:normal; }.celda-sel .chk-fila { margin:0 3px 0 0; vertical-align:middle; }.celda-sel .celda-estado { display:inline-block; line-height:24px; vertical-align:middle; text-align:center; }.col-id-pedido,.col-id-pedido input { text-align:center; }
.celda-sel { background:#102f4c !important; color:#fff; }.fila-bloqueada .celda-sel { background:#102f4c !important; }.celda-sel .estado-guardado { color:#4ade80; font-weight:700; }.celda-sel .estado-guardando { color:#fff; }.celda-sel .estado-reintentando { color:#fde68a; }.celda-sel .estado-error { color:#fca5a5; }
#grid-head .col-sel { background:#102f4c !important; color:#fff; }.celda-sel { background:#f4f6f9 !important; color:#172b42; }.fila-bloqueada .celda-sel { background:#c9cdd2 !important; }.celda-sel .estado-guardado { color:#15803d; }.celda-sel .estado-guardando { color:#4b5563; }.celda-sel .estado-reintentando { color:#a16207; }.celda-sel .estado-error { color:#dc2626; }
