:root{--navy:#10283f;--blue:#216bd1;--muted:#66788b;--teal:#148f85;--bg:#eef3f8;--line:#e1e8ef}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--navy);font:14px 'Segoe UI',Arial,sans-serif}button,input,select,a{font:inherit}button,a,input,select{outline-offset:3px}button,select{cursor:pointer}button,.actions a{border:1px solid #d1dde9;background:white;border-radius:8px;padding:10px 14px;color:var(--navy);text-decoration:none}button:hover,.actions a:hover{background:#e8f1fe}.sidebar{width:224px;position:fixed;inset:0 auto 0 0;background:var(--navy);padding:32px 22px;color:#fff}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:white;margin-bottom:52px}.brand strong{font-size:30px;background:#fff;color:var(--navy);padding:7px 10px;border-radius:8px}.brand span{font-size:14px}.brand b{color:#4ed2b9}.section-label{font-size:10px;letter-spacing:1.7px;color:#8fa8bf}.nav{display:block;padding:14px 12px;color:#c7d7e7;text-decoration:none;border-radius:8px;margin:8px 0}.nav.active{background:#29455f;color:#fff;border-left:3px solid #4ed2b9}.side-bottom{position:absolute;bottom:30px;font-size:11px;line-height:1.9;color:#a7bbce}.side-bottom span{font-size:10px}.side-bottom hr{border:0;border-top:1px solid #38516a;margin:16px 0}main{margin-left:224px;padding:36px;max-width:1700px}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#4d7599}h1{font-size:30px;letter-spacing:-.8px;margin:10px 0}h2{font-size:17px;margin:8px 0}p{color:var(--muted);line-height:1.6}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions a{background:var(--blue);color:#fff;border:0}.sync{display:flex;align-items:center;gap:12px;background:#fff8e9;border:1px solid #f1dfb2;border-radius:10px;padding:14px 18px;margin-bottom:22px;color:#79571f}.sync span:not(.dot){display:block;font-size:12px;margin-top:4px}.dot{width:9px;height:9px;background:#d99b26;border-radius:50%;flex:none}.filters{display:flex;gap:12px;align-items:end;margin-bottom:22px}label{font-size:11px;font-weight:700;flex:1;color:#526c86}label:first-child{flex:2}input,select{display:block;width:100%;margin-top:7px;padding:11px;border:1px solid #d6e0eb;border-radius:8px;background:white;color:var(--navy)}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.kpi{padding:22px;background:white;border-radius:12px;border:1px solid var(--line);border-top:4px solid var(--accent)}.kpi small{color:var(--muted);font-size:12px}.kpi strong{display:block;font-size:30px;margin:13px 0 6px;letter-spacing:-1px}.kpi span{font-size:11px;color:var(--muted)}.charts{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}.charts article,.panel{padding:22px;background:white;border:1px solid var(--line);border-radius:12px}.title-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.title-row small{color:var(--muted);font-size:11px;font-weight:400}.title-row>div:last-child{display:flex;gap:8px;align-items:center}.title-row select{margin:0;width:auto;font-size:12px}.bar-item{margin-bottom:14px}.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px}.bar-track{height:7px;background:#edf2f7;border-radius:5px}.bar-fill{height:7px;border-radius:5px}.panel{margin-bottom:22px;scroll-margin-top:20px}.hint{font-size:11px;margin:10px 0 16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#7a8a9b;background:#f5f8fb;padding:12px;font-size:10px;text-transform:uppercase;letter-spacing:.6px}td{padding:16px 12px;border-bottom:1px solid #edf1f5;font-size:12px}td strong{display:block;font-size:13px}td small{display:block;color:var(--muted);margin-top:5px}tbody tr{cursor:pointer}tbody tr:hover{background:#f3f8ff}.badge{display:inline-block;border-radius:6px;padding:6px 8px;max-width:220px;white-space:normal;font-size:10px;font-weight:600;line-height:1.5;background:#fff0d7;color:#8c5911}.badge.done{background:#ddf5ed;color:#137c61}.badge.hold{background:#fce4e8;color:#b14154}.money-warning{color:#ba5260}.event{display:flex;gap:16px;border-bottom:1px solid var(--line);padding:14px 0;align-items:center}.event time{background:#eaf2ff;color:#2667b2;padding:10px;border-radius:8px;min-width:86px;text-align:center;font-weight:700}.event b{display:block}.event span{font-size:12px;color:var(--muted)}footer{display:flex;justify-content:space-between;color:#7b8da0;font-size:11px;margin-top:30px}dialog{border:0;padding:28px;width:min(760px,95vw);max-height:90vh;border-radius:16px;color:var(--navy)}dialog::backdrop{background:#0f263dbb}.drawer-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-28px;background:white;padding:10px 0;z-index:1}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{padding:14px;background:#f3f6fa;border-radius:8px;overflow-wrap:anywhere}.field span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.field strong{font-size:14px}.group-title{font-size:14px;border-left:3px solid var(--teal);padding-left:10px;margin:24px 0 14px}.client-mode .commercial{display:none}.client-mode #client{background:var(--navy);color:white}@media(max-width:1100px){.sidebar{width:185px;padding:24px 16px}main{margin-left:185px;padding:24px}header{display:block}.actions{margin-top:16px}.kpi strong{font-size:24px}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:16px 20px}.brand{margin:0}.nav,.section-label,.side-bottom{display:none}main{margin:0;padding:20px 14px}h1{font-size:25px}.filters{display:grid;grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}.kpis{grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:16px}.charts{grid-template-columns:1fr}.title-row{flex-wrap:wrap}.title-row>div:last-child{flex-wrap:wrap}.panel{padding:16px}.detail-grid{grid-template-columns:1fr}footer{display:block;line-height:2}}@media print{.sidebar,.actions,.filters,#csv,dialog{display:none}main{margin:0;padding:0}.sync{font-size:10px}.panel,.kpi,.charts article{break-inside:avoid}.table-wrap{overflow:visible}table{white-space:normal;font-size:9px}td,th{padding:5px}body{background:white}}
/* RC identity and operational colours */
.brand{display:block;margin-bottom:34px}.brand img{display:block;width:100%;height:auto;border-radius:6px;background:white;padding:6px;margin-bottom:16px}.brand span{display:block;text-align:center;font-size:18px;letter-spacing:3px}.kpi{border:0;color:white;box-shadow:0 6px 18px #16355113;background:linear-gradient(115deg,var(--accent),color-mix(in srgb,var(--accent) 70%,#153c59))}.kpi small,.kpi span{color:white}.kpi strong{font-size:clamp(21px,2vw,32px)}.charts article:first-child{border-top:4px solid #216bd1;background:linear-gradient(150deg,#edf5ff,white 65%)}.charts article:last-child{border-top:4px solid #148f85;background:linear-gradient(150deg,#e8f8f3,white 65%)}#portfolio{border-top:4px solid #805dce}#agenda{border-top:4px solid #dfa135}#mobile-cards{display:none}#portfolio .title-row{flex-wrap:wrap}#portfolio .title-row>div:last-child{flex-wrap:wrap}.table-wrap{max-height:72vh;position:relative;border:1px solid #dce6ef;border-radius:8px;overscroll-behavior-x:contain}table{min-width:3600px}th{position:sticky;top:0;z-index:3;white-space:normal;min-width:145px;padding:0;border-right:1px solid #ffffff35;background:#e8eff9;color:#17395b}th button{border:0;border-radius:0;background:transparent;font-size:11px;font-weight:700;text-align:left;width:100%;min-height:76px;padding:12px;color:inherit;line-height:1.5}th small{display:block;font-size:10px;font-weight:400;opacity:.7}td{max-width:245px;min-width:145px;white-space:normal;overflow-wrap:anywhere;line-height:1.6;border-right:1px solid #edf1f5}td.col-B,th.col-B{position:sticky;left:0;z-index:2;min-width:150px;background:#edf4fd;font-weight:700;box-shadow:3px 0 7px #17334f12}th.col-B{z-index:5;background:#194e87;color:white}th.col-C,th.col-D,th.col-G,th.col-H,th.col-L,th.col-N{background:#d7eafa}th.col-O,th.col-P,th.col-Q,th.col-V{background:#dcd6f7}th.col-Z,th.col-AA,th.col-AD,th.col-AF{background:#ffdfb0}th.col-AG,th.col-AH,th.col-AI,th.col-AJ{background:#c5eee4}th.col-AP,th.col-AQ,th.col-AR,th.col-AS,th.col-AT{background:#f6d5e1}td.sorted{background:#eef0ff}th.sorted{box-shadow:inset 0 -4px #6c49bd}.work-card{border:1px solid #d5dfed;border-radius:12px;overflow:hidden;background:white;margin:18px 0;box-shadow:0 4px 14px #17334f0b}.work-head{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:16px;background:#e7f0fc}.work-head h3{margin:0;font-size:19px}.work-head p{font-size:12px;margin:5px 0 0}.work-head .badge{max-width:44%}.card-section h4{margin:0;padding:10px 14px;font-size:12px}.stage-0 h4{background:#d7eafa}.stage-1 h4{background:#e4defb}.stage-2 h4{background:#ffdfb0}.stage-3 h4{background:#c5eee4}.stage-4 h4{background:#f6d5e1}.card-section dl{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0}.card-section dl>div{padding:12px;border-bottom:1px solid #edf1f5;min-width:0}.card-section dt{font-size:11px;color:#64788e;line-height:1.4}.card-section dt small{color:#8b9db0}.card-section dd{margin:5px 0 0;font-weight:600;font-size:13px;overflow-wrap:anywhere;line-height:1.5}.card-section .field-sorted{background:#f0edff}.sort-focus{background:#6950b4;color:white;padding:12px 14px;font-size:11px}.sort-focus b{display:block;margin-top:5px;font-size:14px}.filters select{max-width:100%}@media(max-width:760px){.sidebar{padding:10px 18px}.brand{display:flex;align-items:center;gap:16px;margin:0}.brand img{width:190px;max-width:58%;margin:0;padding:4px}.brand span{font-size:14px;letter-spacing:1.5px}header h1{font-size:23px}.kpi strong{font-size:24px}.kpi:last-child{grid-column:1/-1}.kpi:last-child strong{font-size:30px}#portfolio .table-wrap{display:none}#mobile-cards{display:block}#portfolio .title-row>div:last-child{display:grid;grid-template-columns:1fr 1fr;width:100%}#portfolio #sort{grid-column:1/-1;width:100%;font-size:14px}#portfolio button{font-size:12px;min-height:44px}.filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}label input{font-size:16px}.title-row small{line-height:1.5}.work-card .badge{font-size:10px}.charts{gap:12px}.sync{align-items:start}.sync .dot{margin-top:4px}}@media print{.kpi{background:white;color:#10283f;border:1px solid #ccc}.kpi small,.kpi span{color:#10283f}#direction{display:none}.table-wrap{display:none}#mobile-cards{display:block}.work-card{break-inside:avoid}.card-section dl{grid-template-columns:repeat(4,1fr)}}
/* Revision 2: quick summary and stronger brand */
.brand{display:flex;flex-direction:column;gap:16px}.brand img{margin:0}.brand .brand-title{font-size:30px;font-weight:800;letter-spacing:.5px;white-space:nowrap;line-height:1.2;color:white;text-shadow:0 2px 8px #0003}.brand .brand-title b{font-size:34px;color:#53e5c6}.revision{font-size:11px;white-space:nowrap;color:#516b83;align-self:center}.actions{justify-content:flex-end;align-items:center}.sort-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;border-radius:12px;background:#e7defb;border:1px solid #d3c5ee;margin:0 0 18px}.sort-toolbar>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sort-toolbar select{margin:0;width:auto}.sort-toolbar>b{font-size:13px;white-space:nowrap}#summary{border-top:4px solid #216bd1}.summary-table-wrap{overflow-x:auto;border:1px solid #dde6ef;border-radius:8px}.summary-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}.summary-table th{position:static;min-width:0;padding:12px;background:#e2edfb;font-size:11px;min-height:0}.summary-table td{min-width:0;max-width:none;padding:12px;overflow-wrap:anywhere}.summary-table td:first-child{font-weight:700;color:#194e87}.summary-table tbody tr{cursor:default}.summary-table tbody tr:nth-child(even){background:#f5f8fc}@media(min-width:761px){.sidebar{width:270px}.brand{flex-direction:row;gap:9px}.brand img{width:120px;flex-shrink:0}.brand .brand-title{font-size:22px;white-space:normal;text-align:left}.brand .brand-title b{display:block;font-size:34px}main{margin-left:270px}}@media(max-width:760px){.brand{flex-direction:row;justify-content:space-between;gap:10px}.brand img{width:180px;max-width:55%}.brand .brand-title{font-size:23px}.brand .brand-title b{font-size:27px}.actions{width:100%}.sort-toolbar{display:block;padding:14px}.sort-toolbar>div{display:grid;grid-template-columns:1fr 1fr;margin-top:10px}.sort-toolbar #sort{grid-column:1/-1;width:100%;font-size:15px}.sort-toolbar button{font-size:12px;min-height:44px}#summary{padding:12px}.summary-table th,.summary-table td{font-size:11px;padding:10px 7px;line-height:1.5}.summary-table th:nth-child(1){width:30%}.summary-table th:nth-child(2){width:28%}.summary-table th:nth-child(3){width:42%}.summary-table td:first-child{font-size:12px}}@media print{.sort-toolbar{display:none}.summary-table{min-width:0}.summary-table-wrap{display:block}}
th.col-R{background:#dcd6f7}
header>div:empty{display:none}header{justify-content:flex-end}
/* Pedido total: compact supporting information */
.kpi.commercial{background:#e6ecf3;color:#32485d;box-shadow:none;border:1px solid #d5dee8;padding:16px 20px;align-self:start}.kpi.commercial small{color:#52677b;font-size:11px}.kpi.commercial strong{font-size:15px;font-weight:600;letter-spacing:0;margin:8px 0 5px}.kpi.commercial span{color:#718195;font-size:10px}@media(max-width:760px){.kpi.commercial{padding:12px 16px}.kpi.commercial strong{font-size:14px}.kpi.commercial small{font-size:10px}}
th.col-BB{background:#f6d5e1}
/* Site identification and active view */
#portfolio td.col-B,#portfolio td.col-B.sorted{background:#10283f;color:#fff;font-size:15px;font-weight:800;letter-spacing:.2px}#portfolio tbody tr:hover td.col-B{background:#173d61}.work-head h3{display:inline-block;background:#10283f;color:white;padding:10px 14px;border-radius:8px;font-size:21px;letter-spacing:.3px}.card-section dl>.site-id-field,.card-section dl>.site-id-field.field-sorted{background:#10283f;color:white}.site-id-field dt,.site-id-field dt small{color:#bfd7ec}.site-id-field dd{font-size:16px;font-weight:800}.header-identity{display:flex;flex-direction:column;align-items:flex-end;text-align:right;margin-left:auto}.header-identity>strong{font-size:34px;line-height:1.1;letter-spacing:.3px;color:#10283f}.header-identity>strong>b{color:#148f85}.header-identity .revision{align-self:flex-end;margin-top:7px;font-size:11px}header{flex-wrap:wrap;justify-content:flex-end;gap:18px}.sidebar .brand img{width:100%;max-width:100%}#portfolio-title{overflow-wrap:anywhere}@media(max-width:760px){header{display:flex;align-items:center}.header-identity{width:100%;align-items:flex-end}.header-identity>strong{font-size:30px}.sidebar .brand img{max-width:230px;width:100%}.sidebar .brand{justify-content:flex-start}header .actions{margin-top:0;width:auto}.work-head h3{font-size:19px}}
.mobile-identity{display:none}@media(max-width:760px){.sidebar{padding:12px 14px}.sidebar .brand{display:flex;align-items:center;justify-content:space-between;gap:12px}.sidebar .brand img{width:48%;max-width:180px;flex-shrink:1;min-width:0;padding:4px}.brand .mobile-identity{display:flex;flex-direction:column;align-items:flex-end;text-align:right;margin:0;flex:1;min-width:0;letter-spacing:0}.mobile-identity>strong{font-size:clamp(17px,5.3vw,24px);font-weight:800;white-space:nowrap;color:white}.mobile-identity>strong>b{color:#53e5c6}.mobile-identity small{font-size:10px;margin-top:5px;color:#d5e5f4}.mobile-identity small b{color:inherit}header .header-identity{display:none}header{margin-bottom:18px}header .actions{margin:0}}
/* Revision 3 identity */
.header-identity>strong{font-size:34px;white-space:nowrap}.header-identity .revision{font-size:11px;font-style:italic;font-weight:400}.header-identity .revision b{font-weight:400}@media(max-width:760px){.sidebar{min-height:90px;padding:14px}.sidebar .brand img{width:42vw;max-width:175px}.sidebar .brand{justify-content:flex-start}header .header-identity{display:flex;position:absolute;top:23px;right:14px;width:auto;align-items:flex-end;margin:0;z-index:2}.header-identity>strong{font-size:clamp(17px,4.7vw,26px);color:white}.header-identity .revision{font-size:10px;color:#dae8f5;margin-top:6px}.header-identity>strong>b{color:#53e5c6}header{margin-top:0}}
