:root{font-family:Segoe UI,Arial,sans-serif;color:#183a3d;background:#f3f6f5;font-size:15px}*{box-sizing:border-box}body{margin:0;display:flex}aside{width:218px;background:#123e40;color:#fff;padding:38px 25px;min-height:100vh;position:fixed;inset:0 auto 0 0}.brand{font-size:48px;font-weight:700;margin-bottom:24px}.brand span{color:#9edfc4}aside strong{letter-spacing:2px;font-size:15px}aside p{color:#b8d2cd}.nav{margin-top:52px;background:#285153;padding:14px;border-radius:9px}aside small{position:absolute;bottom:30px;font-size:10px;letter-spacing:1px}main{margin-left:218px;padding:42px 5%;width:calc(100% - 218px);max-width:1500px}header{display:flex;align-items:start;justify-content:space-between;gap:20px}h1{font-size:36px;letter-spacing:-1px;margin:8px 0 12px}h2{font-size:20px;margin:0 0 12px}p{line-height:1.6;color:#607576}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#408572}.badge{white-space:nowrap;background:#dbeee6;border-radius:20px;padding:9px 14px;font-size:12px}.notice{background:#fff1d7;border:1px solid #eed9af;border-radius:9px;padding:15px 20px;margin:22px 0;color:#715620}section{background:white;border:1px solid #dde6e2;border-radius:12px;padding:25px;margin-bottom:20px}form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;flex:1;min-width:145px}input,select{font:inherit;font-size:14px;background:#fff;border:1px solid #bfceca;border-radius:7px;min-height:43px;padding:10px;width:100%;color:#183a3d}button{font:inherit;font-weight:600;background:#176456;color:#fff;border:0;border-radius:7px;padding:13px 20px;cursor:pointer}button:disabled{opacity:.5;cursor:wait}.secondary{background:#e7efec;color:#234b43}.userbar{display:flex;align-items:center;justify-content:space-between;margin:22px 0}.hint{font-size:12px;color:#667b79;margin-bottom:0}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.metrics section{display:flex;flex-direction:column;gap:10px}.metrics small{font-size:10px;letter-spacing:1px}.metrics strong{font-size:32px}.metrics span{color:#6d807c;font-size:12px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;margin-top:20px;text-align:left}th{background:#f0f5f2;font-size:12px;padding:14px}td{border-bottom:1px solid #e7eeeb;padding:17px 14px;font-size:13px}footer{font-size:12px;color:#76847f;margin:30px 0}#status{color:#285f50}[hidden]{display:none!important}:focus-visible{outline:3px solid #cf993b;outline-offset:3px}@media(max-width:850px){aside{display:none}main{margin:0;width:100%;padding:22px}h1{font-size:29px}header{flex-direction:column}.metrics{grid-template-columns:1fr}form{align-items:stretch}label{min-width:180px}button{min-height:44px}}
details{border-bottom:1px solid #e4ece8;padding:14px 0}summary{cursor:pointer;font-weight:600;color:#185b4f;line-height:1.6}details p{font-size:13px}#grupos td:nth-child(8),#grupos td:nth-child(9){font-weight:700;background:#f3f9f6}li{line-height:1.6;margin:8px 0}#admin{border-color:#94b9aa}

.sheet-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 22px}.sheet-tabs button{font-size:12px;background:#e9f0ed;color:#28554a;padding:10px 13px}.sheet-tabs button.active{background:#176456;color:white}.tabletools{display:flex;gap:24px;align-items:center;margin:16px 0}.checklabel{flex-direction:row;align-items:center}.checklabel input{width:18px;min-height:18px}.pager{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-top:20px;font-size:12px}.tablewrap{max-height:560px;overflow:auto}thead th{position:sticky;top:0;z-index:1}td{max-width:360px;min-width:85px}#sheetNote{font-size:12px}@media(max-width:850px){.tabletools{flex-direction:column;align-items:stretch}.sheet-tabs button{flex-grow:1}}
.sura-card{border:1px solid #ccded5;border-radius:12px;padding:20px;margin:20px 0;background:#fff}.sura-card h3{margin:0;font-size:17px;line-height:1.5}.sura-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#f2f7f4;padding:16px;border-radius:8px}.sura-stats dt{font-size:12px;color:#526762}.sura-stats dd{margin:6px 0 0;font-size:21px;font-weight:650}.review-flag{color:#754610;background:#fff3dc;padding:12px 18px;border-radius:6px;font-size:13px}.review-flag li{margin-left:15px}.order-summary{background:#eaf4ef;border-radius:8px;padding:16px}.sura-card td{padding:12px;font-size:12px}.sura-card details summary{padding:8px 0}@media(max-width:650px){.sura-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sura-card{padding:12px}}


/* Paleta compartida con el portal de Gestión de Pendientes. */
:root{color:#1f2a44;background:#f4f7fb;--accent:#67338c;--blue:#245fc5;--line:#dfe7f2}
aside{background:radial-gradient(circle at 5% 3%,rgba(163,203,171,.26),transparent 30%),radial-gradient(circle at 95% 42%,rgba(190,135,224,.24),transparent 34%),linear-gradient(180deg,#27163f 0%,#44215f 35%,#67338c 68%,#32194f 100%)}
aside p{color:#e3d9ec}.brand span{color:#c2e6c8}.nav{background:linear-gradient(110deg,#fff,#f1e8f8);color:#472466;border-left:4px solid #86be96;box-shadow:0 8px 22px #200d3429;font-weight:650}
h1,h2,h3{color:#203454}p,.hint,.metrics span,footer{color:#596981}.eyebrow{color:#67338c}.badge{background:#efe7f7;color:#56297a}
section{border-color:var(--line);box-shadow:0 3px 10px #233c6010}input,select{border-color:#c9d5e5;color:#203454}input[type=checkbox]{accent-color:var(--accent)}
button{background:var(--blue)}button:hover:not(:disabled){background:#194b9e}.secondary{background:#edf1f7;color:#29466b}.secondary:hover:not(:disabled){background:#dfe7f2}
.sheet-tabs button{background:#eee8f5;color:#542878}.sheet-tabs button.active{background:var(--accent);color:#fff}.sheet-tabs button:hover:not(:disabled){background:#ded0ec;color:#472466}.sheet-tabs button.active:hover{background:#542574;color:#fff}
.metrics section{border-bottom:3px solid #3182ff}.metrics section:nth-child(2){border-bottom-color:#9754de}.metrics section:nth-child(3){border-bottom-color:#ef862c}
th{background:#edf2fa;color:#254369}td,details{border-color:var(--line)}tbody tr:hover{background:#f5f3fa}summary,#status{color:#573078}#admin{border-color:#cbb8dc}
.sura-card{border-color:var(--line)}.sura-stats{background:#f1f4fb}.sura-stats dt{color:#596981}.sura-stats dd{color:#254369}.order-summary{background:#f0eaf7}#grupos td:nth-child(8),#grupos td:nth-child(9){background:#f1f4fb}
:focus-visible{outline-color:#8150b2}.notice,.review-flag{color:#754610;background:#fff3dc}
/* Shared option colors on rows, summary columns and allocation chips. */
.opcion-1,table th.opcion-1,table td.opcion-1,table tr.opcion-1 td{background:#edf4ff;color:#203454}
.opcion-2,table th.opcion-2,table td.opcion-2,table tr.opcion-2 td{background:#ecf7f0;color:#203454}
.opcion-3,table th.opcion-3,table td.opcion-3,table tr.opcion-3 td{background:#fff4e5;color:#203454}
.opcion-4,table th.opcion-4,table td.opcion-4,table tr.opcion-4 td{background:#f3edfa;color:#203454}
.opcion-elegida td:first-child{border-left:4px solid #67338c;font-weight:700}
.composicion-pedido{border:1px solid #cbb6df;border-left:4px solid #67338c;border-radius:10px;padding:16px;margin:14px 0;background:#fcfaff}
.composicion-pedido p{margin:10px 0 0;font-size:13px}.piezas-pedido{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}.pieza{border:1px solid #d3ddea;border-radius:8px;padding:10px;font-weight:600;font-size:13px}
#exportarPedido{margin:12px 0}.sura-card table th{white-space:normal;min-width:95px}.sura-card table td:nth-child(2){min-width:210px;white-space:normal}.sura-card table td:nth-child(3){min-width:130px;white-space:normal}
.descargas-excel{padding:18px;border:1px solid #cbb6df;border-left:5px solid #67338c;border-radius:10px;background:#f7f3fb;margin-bottom:20px}.descargas-excel h2{margin:0 0 12px}.botones-excel{display:flex;gap:12px;flex-wrap:wrap}.descargas-excel p{font-size:13px;margin:10px 0 0}.descargas-excel #exportarPedido{margin:0}
/* Verde del acento corporativo del portal de referencia. */
#exportarPedido,#exportarResumen{background:#72bd87;color:#173421;border:1px solid #579d6a}
#exportarPedido:hover:not(:disabled),#exportarResumen:hover:not(:disabled){background:#62ad77;color:#102919}
#exportarPedido:focus-visible,#exportarResumen:focus-visible{outline:3px solid #285e38;outline-offset:3px}
/* Menú lateral corporativo: referencia de Proyectos, opciones de Pedidos. */
aside.sidebar{width:235px;inset:5px auto 5px 6px;min-height:0;border-radius:12px 0 0 12px;padding:33px 14px 24px;display:flex;flex-direction:column;background:linear-gradient(180deg,#444651 0%,#322043 22%,#68338b 65%,#352045 100%);border:1px solid #b9b7bd;overflow-y:auto}
.sidebar-logo{background:#ffffff12;border-radius:6px;padding:8px 10px;flex-shrink:0}.sidebar-logo img{display:block;width:100%;height:auto;filter:brightness(0) invert(1)}
aside.sidebar .sidebar-caption{font-size:12px;line-height:1.2;color:#fff;margin:19px 6px 28px}.sidebar-caption strong{font-size:12px;letter-spacing:0}
.sidebar nav{flex:1}.sidebar .nav{display:block;margin:0;padding:16px 14px;border-radius:12px;background:#f5f0fa;color:#36204d;border-left:4px solid #79cc28;box-shadow:none;text-decoration:none;font-size:15px;font-weight:700}.sidebar .nav:hover{background:#ebe2f5}
.sidebar-footer{margin-top:28px;padding-top:18px;border-top:1px solid #ffffff20}.sidebar-footer:has(button[hidden]){display:none}.sidebar-footer #logout{width:100%;padding:13px 10px;background:#ffffff12;color:#fff;border:1px solid #ffffff40;border-radius:9px;font-size:14px}.sidebar-footer #logout:hover{background:#ffffff23}
main{margin-left:241px;width:calc(100% - 241px)}
@media(max-width:850px){body{display:block}aside.sidebar{position:relative;inset:auto;width:auto;margin:5px 6px;min-height:0;padding:14px;border-radius:12px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.sidebar-logo{width:190px}.sidebar-caption{display:none}.sidebar nav{min-width:130px}.sidebar-footer{margin:0;padding:0;border:0}.sidebar-footer #logout{width:auto}main{margin:0;width:100%}}
