.sidebar .brand-home{margin:0 0 12px;padding:15px 14px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:#fff!important;box-shadow:0 8px 22px rgba(3,16,57,.2)}.sidebar .brand-home:hover{background:#f7f9ff!important}.sidebar .brand-home img{width:100%;height:55px;object-fit:contain;object-position:center;filter:none}.sidebar .brand-home .brand-product{margin-top:6px;color:#1a2c66}.sidebar .brand-home .brand-product span{color:#65749a}.sidebar .logout-btn{height:34px;margin-top:9px;border:1px solid rgba(92,200,161,.55);background:#0d347e!important;color:#fff;font-size:10px;letter-spacing:.2px}.sidebar .logout-btn:hover{border-color:#dda237;background:#005add!important}.sidebar .logout-btn::before{content:'↪';font-size:14px}.record-row>button{display:inline-flex!important;min-width:82px!important;height:31px!important;align-items:center;justify-content:center;padding:0 11px!important;border:1px solid #cbd7eb!important;border-radius:7px!important;background:#fff!important;color:#1a2c66!important;font:700 9px Helvetica,Arial,sans-serif!important;box-shadow:0 2px 5px rgba(18,36,90,.06);white-space:nowrap}.record-row>button:hover{border-color:#005add!important;background:#eaf1ff!important;color:#005add!important;transform:translateY(-1px)}

/* Mantém conta e logout acessíveis em qualquer altura de ecrã. */
.sidebar{height:100vh;height:100dvh;overflow:hidden!important}
.sidebar>.brand-home,.sidebar>.project-switcher,.sidebar>.project-health,.sidebar>.user-card,.sidebar>.logout-btn{flex:0 0 auto}
.sidebar #mainNav{flex:1 1 auto;min-height:80px;overflow-y:auto;overflow-x:hidden;margin-right:-6px;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
.sidebar #mainNav::-webkit-scrollbar{width:5px}.sidebar #mainNav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:8px}
.sidebar .project-health{margin-top:10px}.sidebar .user-card{margin-top:9px;padding-top:10px}.sidebar .logout-btn{min-height:36px;margin-top:7px}
@media(max-height:760px){.sidebar{padding-top:12px;padding-bottom:10px}.sidebar .brand-home{padding:7px 10px;margin-bottom:7px}.sidebar .brand-home img{height:40px}.sidebar .project-switcher{margin-bottom:6px}.sidebar .project-health{display:none}.sidebar .nav-label{margin-top:12px}.sidebar .nav-item{height:36px}}
.site-switcher{display:block;flex:0 0 auto;margin:0 0 7px;padding:8px 10px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.06)}.site-switcher span{display:block;margin-bottom:5px;color:#8fa2d5;font-size:7px;letter-spacing:1.2px}.site-switcher select{width:100%;border:0;outline:0;background:#14245a;color:#fff;font:700 10px Helvetica,Arial,sans-serif}.site-overview{margin-bottom:15px}.site-overview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px}.site-card{padding:13px;border:1px solid #e0e6f0;border-radius:8px;background:#fafcff}.site-card h3{margin:0 0 9px;font-size:11px}.site-card strong{font-size:22px;color:#14245a}.site-card .mini-bar{margin:8px 0}.site-card dl{margin:8px 0 0;font-size:8px;color:#65718e}.site-card dt{float:left;clear:left;font-weight:700}.site-card dd{margin:0 0 5px 72px;text-align:right}.site-card.active{border-color:#005add;box-shadow:0 0 0 2px rgba(0,90,221,.08)}@media(max-width:1100px){.site-overview-grid{grid-template-columns:repeat(2,1fr)}}
.site-card{cursor:pointer}.site-card:hover{border-color:#005add;transform:translateY(-1px)}.schedule-site-filters{display:flex;gap:7px;padding:12px 16px;border-bottom:1px solid #e0e6f0;background:#f8faff}.schedule-site-filters button{height:31px;padding:0 13px;border:1px solid #d6deec;border-radius:16px;background:#fff;color:#52617f;font:700 9px Helvetica,Arial,sans-serif;cursor:pointer}.schedule-site-filters button.active{border-color:#005add;background:#005add;color:#fff}.site-wbs-group{border-bottom:8px solid #eef2f8}.site-wbs-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#edf3ff;color:#14245a}.site-wbs-heading strong{font-size:12px}.site-wbs-heading span{font-size:9px}.site-wbs-group .wbs-tree{border-top:0}
.preview-viewer{position:relative;min-height:68vh;max-height:72vh;overflow:auto;border:1px solid #dce3ee;border-radius:8px;background:#eef1f6}.preview-message{min-height:68vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px;color:#53617f;text-align:center}.preview-error strong{color:#992e39;font-size:14px}.preview-error span{max-width:620px}.pdf-viewer{min-height:68vh}.pdf-toolbar{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:center;gap:14px;height:46px;border-bottom:1px solid #dce3ee;background:rgba(255,255,255,.96)}.pdf-toolbar button{width:34px;height:30px;border:1px solid #cbd7eb;border-radius:6px;background:#fff;color:#152c69;font-weight:700}.pdf-toolbar button:disabled{opacity:.35}.pdf-canvas-wrap{display:flex;justify-content:center;padding:16px}.pdf-canvas-wrap canvas{max-width:100%;background:#fff;box-shadow:0 3px 16px rgba(12,28,72,.18)}.preview-image{display:block;max-width:100%;max-height:68vh;margin:auto}.preview-text{min-height:68vh;margin:0;padding:20px;overflow:auto;background:#fff;white-space:pre-wrap;word-break:break-word}.hidden{display:none!important}
/* PMO multiprojeto e navegação principal do cronograma */
.pmo-view{display:block}.pmo-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.pmo-kpi{background:#fff;border:1px solid #dfe6f1;border-radius:12px;padding:18px}.pmo-kpi span{display:block;color:#66758f;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.pmo-kpi strong{display:block;color:#102a68;font-size:30px;margin-top:7px}.pmo-toolbar{padding:16px;margin-bottom:16px}.pmo-filters{display:flex;gap:8px;overflow-x:auto;padding-bottom:12px}.pmo-filters button{white-space:nowrap;border:1px solid #d9e2ef;background:#fff;color:#18336f;border-radius:9px;padding:9px 13px;font-weight:700}.pmo-filters button.active{background:#102a68;color:#fff;border-color:#102a68}.pmo-query{display:grid;grid-template-columns:1fr 210px;gap:12px}.pmo-query select{border:1px solid #d9e2ef;border-radius:9px;padding:0 12px;background:#fff}.pmo-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pmo-project-card{background:#fff;border:1px solid #dfe6f1;border-radius:14px;padding:20px;box-shadow:0 5px 20px rgba(16,42,104,.05);transition:.18s}.pmo-project-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(16,42,104,.11)}.pmo-project-top{display:flex;justify-content:space-between;gap:15px}.pmo-project-top h2{color:#102a68;margin:3px 0;font-size:21px}.pmo-project-top p{margin:0;color:#66758f}.pmo-type{height:max-content;border-radius:20px;padding:5px 9px;background:#edf3ff;color:#075fda;font-size:11px;font-weight:800;text-transform:uppercase}.pmo-card-progress{display:grid;grid-template-columns:1fr auto;gap:8px;margin:18px 0 14px}.pmo-card-progress .mini-bar{grid-column:1/-1}.pmo-project-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.pmo-project-meta span{font-size:11px;color:#77839a}.pmo-project-meta strong{display:block;color:#142d67;margin-top:3px}.pmo-project-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f5;padding-top:14px}.pmo-project-footer button{background:#102a68;color:#fff;border:0;border-radius:9px;padding:10px 14px;font-weight:800}.pmo-return{border-bottom:1px solid rgba(255,255,255,.12)!important;margin-bottom:8px!important}
.schedule-site-filters{padding:20px!important;background:#f5f8fd!important;gap:12px!important;overflow-x:auto}.schedule-site-filters::before{content:"Execução por Site\A Selecione o site cuja WBS pretende acompanhar.";white-space:pre;min-width:210px;color:#102a68;font-weight:800;line-height:1.7}.schedule-site-filters button{min-width:145px!important;min-height:92px;border-radius:12px!important;padding:14px!important;text-align:left!important;box-shadow:0 3px 12px rgba(16,42,104,.06);font-size:15px!important}.schedule-site-filters button small{display:block;margin-top:7px;font-size:11px;line-height:1.45;opacity:.78}.schedule-site-filters button.active{box-shadow:0 8px 22px rgba(16,42,104,.24);transform:translateY(-2px)}
.doc-breadcrumb{align-items:center;gap:7px;padding:14px 18px}.doc-breadcrumb .doc-back{font-weight:800;margin-right:10px}.doc-breadcrumb button{border:0!important;background:transparent!important;padding:5px!important;color:#35517f!important}.doc-breadcrumb button:last-child{font-weight:800;color:#102a68!important}
@media(max-width:900px){.pmo-kpis{grid-template-columns:repeat(2,1fr)}.pmo-project-grid{grid-template-columns:1fr}.pmo-query{grid-template-columns:1fr}.schedule-site-filters::before{min-width:190px}}
.document-create-modal{width:min(820px,94vw)!important}.creation-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.creation-choice button{border:1px solid #d7e0ed;background:#fff;border-radius:10px;padding:13px;color:#17346f;font-weight:800}.creation-choice button.active{background:#102a68;color:#fff}.template-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template-fields label.wide{grid-column:1/-1}.destination-preview{background:#f3f7fd;border:1px solid #dce7f5;border-radius:9px;padding:12px;margin:10px 0;color:#17346f}.form-hint{color:#687791;font-size:12px}.record-row>button{min-width:96px!important;border:1px solid #cfdced!important;border-radius:8px!important;padding:8px 10px!important;background:#fff!important;color:#123674!important;font-weight:800!important}
.schedule-site-filters.hidden{display:none!important}
.records-hub-controls{padding:18px;border-bottom:1px solid #e3e9f2;background:#f8faff}.record-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:12px}.record-tabs button{white-space:nowrap;border:1px solid #d6e0ee;background:#fff;color:#17346f;border-radius:8px;padding:8px 12px;font-weight:750}.record-tabs button.active{background:#102a68;color:#fff}.record-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto auto;gap:9px;align-items:center}.record-filter-grid select{border:1px solid #d8e1ee;border-radius:8px;background:#fff;padding:9px}.record-filter-grid label{white-space:nowrap;font-size:12px;color:#4d6082}.record-type-picker{max-height:65vh;overflow:auto}.record-type-group h3{font-size:11px;color:#6f7f99;letter-spacing:.1em;margin:15px 0 8px}.record-type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.record-type-card{border:1px solid #d7e1ee;background:#fff;border-radius:10px;padding:13px;text-align:left;color:#183670;font-weight:800}.record-type-card:hover{border-color:#0861d8;background:#f3f7ff}.record-type-card i{display:inline-grid;width:30px;height:30px;place-items:center;border-radius:8px;background:#eaf2ff;margin-right:8px}.record-dynamic-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.record-dynamic-fields .wide{grid-column:1/-1}.records-table{min-width:1100px}.record-unified-head,.record-unified-row{display:grid;grid-template-columns:115px 115px 2fr 110px 150px 100px 100px 105px 90px 130px 48px;gap:10px;align-items:center;padding:11px 14px}.record-unified-head{font-size:10px;color:#687995;letter-spacing:.07em;border-bottom:1px solid #e4e9f2}.record-unified-row{border-bottom:1px solid #edf0f4;font-size:12px}.record-unified-row:hover{background:#f7faff}.record-type-badge{display:inline-flex;align-items:center;gap:6px;color:#17346f;font-weight:800}.priority-critical,.priority-high{color:#b4232c;font-weight:800}.priority-medium{color:#a36800}.record-detail-drawer{position:fixed;right:0;top:0;bottom:0;width:min(520px,94vw);z-index:120;background:#fff;box-shadow:-12px 0 40px rgba(11,31,73,.2);padding:24px;overflow:auto}.record-detail-drawer h2{color:#102a68}.record-detail-section{border-top:1px solid #e5eaf2;padding-top:15px;margin-top:15px}.record-detail-section dl{display:grid;grid-template-columns:130px 1fr;gap:9px}.record-detail-section dt{color:#75829a}.record-detail-close{float:right;border:0;border-radius:50%;width:36px;height:36px;font-size:20px}.records-hub-controls.hidden{display:none!important}@media(max-width:900px){.record-filter-grid{grid-template-columns:1fr 1fr}.record-type-grid{grid-template-columns:1fr 1fr}}
