/* Clear working surfaces shared by every module. */
main{max-width:none;padding:30px clamp(12px,1.5vw,24px) 48px}
.module-nav{padding-left:20px;padding-right:20px}.nav-item{padding-left:8px;padding-right:8px}.home-help{font-size:14px;color:#627c8d;margin-top:24px}.role-card{min-height:135px}.role-card h3{margin-top:8px}
.page-heading{align-items:center;margin-bottom:22px}.page-heading h1{font-size:34px;letter-spacing:-1px}.page-heading p{font-size:16px;max-width:850px}.planner-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.button{box-shadow:none!important}.button:focus-visible,.row-mini:focus-visible,button:focus-visible{outline:3px solid #119e94;outline-offset:3px}
.daily-panel{border-radius:16px}.list-heading{padding:22px 22px 14px;display:flex;justify-content:space-between;align-items:center;gap:16px}.list-heading>div:first-child{display:flex;gap:16px;align-items:center}.list-heading h2{font:800 21px Manrope;margin:0}.list-heading span{font-size:14px;color:#60758b}.view-toggle{display:flex;gap:3px;padding:4px;background:#eef3f6;border-radius:10px}.view-toggle button,.stage-choices button{border:0;border-radius:7px;padding:10px 14px;background:transparent;color:#47637a;font:700 14px 'DM Sans';cursor:pointer}.view-toggle .selected,.stage-choices .selected{background:#173f59;color:white}
.work-toolbar{display:flex;gap:9px;align-items:center;padding:0 22px 20px;flex-wrap:wrap}.work-toolbar .search{flex:1;min-width:230px;font-size:14px}.work-toolbar select,.agenda-controls input{border:1px solid #c7d8e2;border-radius:10px;background:white;padding:11px;font:14px 'DM Sans';color:#163e55}.work-toolbar select{max-width:210px}.full-view-tools{padding:0 26px 18px;display:flex;gap:8px}.register-filters{grid-template-columns:minmax(280px,2fr) repeat(3,minmax(140px,1fr))}
.daily-table-scroll{overflow:auto;max-height:72vh;border-top:1px solid #dce6ed;isolation:isolate}.daily-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1040px;table-layout:fixed;font-size:14px}.daily-table th{position:sticky;top:0;z-index:2;background:#eaf2f6;color:#456278;padding:14px 16px;text-align:left;font-size:14px;border-bottom:1px solid #cddde5}.daily-table th:first-child{width:26%}.daily-table th:nth-child(2){width:25%}.daily-table th:last-child{width:235px}.daily-table td{background:#fff;border-bottom:1px solid #e1e9ee;padding:18px 16px;vertical-align:top;color:#274d64}.daily-table tbody tr:nth-child(even)>td{background:#f8fbfd}.daily-table td strong{display:block;font-size:15px;font-weight:700;line-height:1.45;margin:5px 0}.daily-table td small{display:block;font-size:13px;line-height:1.5;color:#60788a;margin-top:4px;overflow-wrap:anywhere}.daily-table .os-tag{color:#08786e;font-size:14px}.daily-table .stage-pill{font-size:12px}.priority-text{font-size:12px;display:block;margin-top:8px;color:#697c8a}.work-actions>.primary{font-size:14px;width:100%;min-height:40px;padding:10px}.secondary-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.secondary-actions .row-mini{white-space:normal;text-align:left;font-size:13px;min-height:32px}.status-alert{display:inline-block;border-radius:6px;background:#fff0e7;color:#9d4621;font-size:14px;font-weight:700;padding:5px 8px;margin-top:8px}.text-button{border:0;background:transparent;padding:0;font:700 13px 'DM Sans';text-decoration:underline;color:#126b87;cursor:pointer}.value-cell{width:150px}.no-results td{text-align:center;padding:40px}.expanded-work>td{background:#f2f8fa!important;padding:22px!important}.work-detail{max-width:1600px;margin:auto}.detail-caption{display:flex;justify-content:space-between;align-items:center;gap:12px}.detail-caption h3{font:800 22px Manrope;margin:0}.flow-strip{display:flex;gap:5px;flex-wrap:wrap;margin:18px 0}.flow-strip span{background:#e7edf1;border-radius:6px;padding:8px 10px;font-size:13px;color:#576f82}.flow-strip .current{background:#173f59;color:white}.flow-strip .done{background:#d8efe7;color:#197359}.pending-box{border-left:4px solid #e7ae42;background:#fffbf1;padding:14px 18px;line-height:1.7}.pending-box ul{margin:5px 0;padding-left:20px}.pending-box span{color:#6c7180}.work-detail details{margin-top:12px;border:1px solid #d4e2e9;border-radius:10px;background:white;overflow:hidden}.work-detail summary{font-weight:700;cursor:pointer;padding:15px;font-size:15px;color:#1d4e68}.work-detail details>p,.work-detail details>.row-mini{margin:12px 16px}.all-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;padding:0 16px 20px}.all-fields span{display:block;font-size:13px;color:#6a8090;margin-bottom:5px}.all-fields b{font-size:14px;overflow-wrap:anywhere;font-weight:500}.check-status{display:flex;gap:12px;flex-wrap:wrap;padding:14px}.check-status span{background:#edf4f6;padding:8px;font-size:14px}.materials-table{width:100%;border-collapse:collapse}.materials-table th,.materials-table td{position:static!important;background:white!important;padding:9px!important}.action-dialog{max-width:720px;max-height:90vh;overflow:auto}.action-dialog .history-entry small{display:block}.action-dialog :is(input,select,textarea){font-size:16px}.confirm-check{display:flex!important;align-items:center;gap:10px;padding:12px;background:#f0f7f8;border-radius:8px;margin:14px 0!important;line-height:1.4}.confirm-check input{width:19px!important;height:19px;margin:0!important;flex:0 0 auto}.materials-preview,.import-preview{max-height:260px;overflow:auto;background:#f4f8fa;padding:12px;border-radius:10px}.materials-preview p,.import-preview p{margin:5px 0;font-size:14px}.document-link{display:block;width:100%;text-align:left;border:1px solid #d7e3ea;border-radius:9px;padding:14px;background:#f7fafc;cursor:pointer;color:#174b67;margin:9px 0;font-family:inherit}.document-link small{display:block;margin-top:5px;color:#697e8b}.backup-actions{display:flex;gap:10px;flex-wrap:wrap}
.decision-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.decision-metrics button{border:1px solid #d6e4ea;border-radius:14px;background:white;padding:22px;text-align:left;cursor:pointer;color:#163e55;font-family:inherit}.decision-metrics span{display:block;font-size:16px;font-weight:700}.decision-metrics b{display:block;font:800 36px Manrope;margin:8px 0}.decision-metrics small{color:#627c8d;font-size:14px}.decision-metrics button:first-child{background:#163e55;color:white}.decision-metrics button:first-child small{color:#d0e6ec}.stage-choices{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.stage-choices button{border:1px solid #d1e0e7;background:#fff}.stage-choices .selected{background:#173f59}
.agenda-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;margin:0;padding:24px;background:#f4f8fb;color:#12364d;overflow:auto}.agenda-dialog::backdrop{background:#102b46b3}.agenda-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.agenda-header h2{font:800 30px Manrope;margin:5px 0}.agenda-header p{margin:5px 0;color:#627c8d;font-size:14px}.agenda-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:20px 0 12px}.agenda-controls label{font-size:14px;display:flex;align-items:center;gap:8px}.agenda-controls strong{margin-left:auto;font-size:16px}.agenda-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;margin:15px 0;color:#5c768a}.agenda-legend span{display:flex;align-items:center;gap:6px}.agenda-legend span:before{content:'';width:11px;height:11px;border-radius:3px;background:#416984}.agenda-legend .pending:before{background:#b57b14}.agenda-legend .running:before{background:#098575}.agenda-legend .delayed:before{background:#b64b3c}.agenda-alert{background:#fff2dc;border:1px solid #efcb86;border-radius:9px;padding:12px 16px;margin-bottom:14px;font-size:14px;color:#815818}.agenda-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.agenda-layout.with-editor{grid-template-columns:minmax(0,1fr) 310px}.timeline-scroll{border:1px solid #ccdde6;border-radius:13px;overflow:auto;background:white;max-height:calc(100dvh - 295px);min-height:280px;isolation:isolate}.timeline{width:calc(180px + var(--track-width));min-width:100%}.timeline-dates{position:sticky;top:0;z-index:5;display:flex;background:#ecf3f7;height:64px;border-bottom:1px solid #c5d9e3}.team-label{width:180px;flex:0 0 180px;position:sticky;left:0;z-index:3;padding:15px;background:#f4f8fa;border-right:1px solid #c5d9e3;display:flex;flex-direction:column;justify-content:center;font-size:15px}.team-label small{font-size:12px;color:#658092;margin-top:5px}.date-label{width:var(--day-width);flex-shrink:0;text-align:center;padding-top:10px;border-right:1px solid #dbe6ec}.date-label b{display:block;font-size:16px}.date-label span{font-size:12px;color:#657c8c}.date-label.today{background:#dbf1ee;color:#00776a}.team-timeline-row{display:flex;border-bottom:1px solid #dbe6ec;min-height:84px}.team-track{position:relative;width:var(--track-width);flex-shrink:0}.day-lane{position:absolute;top:0;bottom:0;border-right:1px solid #e7eef3}.day-lane.weekend{background:#f5f7f9}.day-lane.today{background:#eaf8f4;border-left:2px solid #10a18a}.allocation{position:absolute;height:54px;border:1px solid #a9c6da;border-left:4px solid #477b9b;background:#edf5fc;color:#235877;border-radius:7px;text-align:left;padding:7px 8px;font-family:inherit;cursor:pointer;overflow:hidden}.allocation b,.allocation span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.allocation b{font-size:13px}.allocation span{font-size:12px;margin-top:4px}.allocation.liberacao{background:#fff4df;border-color:#e9c68b;color:#855c18}.allocation.execucao{background:#def4ed;border-color:#95d1bf;color:#096d59}.allocation.late,.allocation.conflict{background:#fff0eb;border-color:#d69a88;color:#98462e}.allocation-editor{border:1px solid #cddfe7;background:white;border-radius:13px;padding:20px;max-height:calc(100dvh - 295px);overflow:auto}.allocation-editor h3{font:800 19px Manrope;margin:8px 0}.allocation-editor p{font-size:14px;line-height:1.5;color:#5c788c}.allocation-editor label{display:block;font-size:14px;font-weight:700;margin:14px 0 7px}.allocation-editor :is(input,select,textarea){width:100%;border:1px solid #bccfda;border-radius:8px;padding:10px;font:15px 'DM Sans';background:#fff;color:#163e55}.allocation-editor .primary{width:100%}.conflict-note{padding:11px;background:#fff0e6;border-radius:9px;margin:12px 0;color:#904e2c}.conflict-note p{color:inherit;font-size:13px}.available-note{color:#087d65!important}.original-plan{border-top:1px solid #dde7ed;padding-top:12px}.agenda-footer{padding:16px 0;font-size:14px;display:flex;flex-direction:column;gap:10px}.unscheduled{display:flex;gap:8px;flex-wrap:wrap}.toast{z-index:10000}
@media(min-width:1700px){.daily-table th:last-child{width:285px}.daily-table td{padding:20px}.daily-table th:first-child{width:28%}}
@media(max-width:1100px){.planner-tools{justify-content:flex-start}.page-heading{align-items:flex-start;flex-direction:column}.register-filters{grid-template-columns:1fr 1fr}.register-filters .search{grid-column:1/-1}.decision-metrics{grid-template-columns:1fr 1fr}.agenda-layout.with-editor{grid-template-columns:minmax(0,1fr) 280px}.agenda-controls strong{margin-left:0}}
@media(max-width:700px){.page-heading h1{font-size:28px}.list-heading{align-items:flex-start;flex-direction:column}.work-toolbar{padding:0 14px 16px}.work-toolbar .search{flex-basis:100%}.work-toolbar select{flex:1;min-width:125px;max-width:none}.daily-table-scroll{max-height:75vh}.decision-metrics{gap:8px}.decision-metrics button{padding:15px}.decision-metrics span{font-size:14px}.decision-metrics b{font-size:28px}.agenda-dialog{padding:14px}.agenda-header{align-items:flex-start}.agenda-header h2{font-size:24px}.agenda-header .button{padding:9px;font-size:13px}.agenda-layout.with-editor{grid-template-columns:minmax(0,1fr)}.allocation-editor{max-height:none}.timeline-scroll{max-height:55vh}.agenda-controls{gap:6px}.agenda-controls input{padding:7px}.agenda-controls strong{flex-basis:100%;font-size:14px}.agenda-legend{gap:10px}.all-fields{grid-template-columns:1fr 1fr}.full-view-tools{padding:0 18px 14px;flex-wrap:wrap}}

/* SJS palette: each stage has a recognizable accent across lists and summaries. */
:root{--canvas:#f0f5fa;--shadow:0 8px 30px #163f5910}
.tone-planner{--stage:#06766d;--stage-soft:#e4f5f0;--stage-border:#b4dfd1}
.tone-orcamento{--stage:#2566ac;--stage-soft:#eaf3ff;--stage-border:#b8d4f2}
.tone-planejamento{--stage:#7151a2;--stage-soft:#f1ecfa;--stage-border:#d4c4e9}
.tone-liberacao{--stage:#906213;--stage-soft:#fff5df;--stage-border:#efd59b}
.tone-execucao{--stage:#167443;--stage-soft:#e5f4e9;--stage-border:#b7ddc0}
.tone-encerramento{--stage:#126f89;--stage-soft:#e3f4f9;--stage-border:#a9d6e5}
.tone-concluida{--stage:#536374;--stage-soft:#edf2f6;--stage-border:#cad7e1}
.tone-suspensas,.tone-baixadas{--stage:#a04c33;--stage-soft:#fff0e9;--stage-border:#e8c3b3}
.topbar{border-top:4px solid #079a8b;box-shadow:0 3px 15px #15395807}.brand-app{color:#173d56}.module-nav{background:#fff;box-shadow:0 7px 17px #183d5908;border-bottom-color:#d7e5ee}.nav-item.active{background:#096e67;box-shadow:0 4px 11px #07786d25}.nav-item[data-module="orcamento"].active{background:#2566ac}.nav-item[data-module="planejamento"].active{background:#7151a2}.nav-item[data-module="liberacao"].active{background:#906213}.nav-item[data-module="execucao"].active{background:#167443}.nav-item[data-module="direcao"].active{background:#173d56}
.page-heading{padding:5px 0 8px}.page-heading .eyebrow{color:#09786d;letter-spacing:.08em;font-size:12px}.page-heading h1{font-size:36px;color:#10384c}.page-heading p{color:#647c8b}.button.primary{background:#087d70;box-shadow:0 4px 10px #087d7018!important}.button.primary:hover{background:#05695f}.button.secondary{border-color:#c4d7e1;box-shadow:0 3px 8px #234e6310!important}.daily-panel,.register-panel{box-shadow:0 9px 35px #264c6610;border:1px solid #d7e4ec;border-radius:17px}.list-heading{padding-bottom:17px}.view-toggle{background:#eaf0f5}.view-toggle .selected{background:#153d55;box-shadow:0 3px 6px #153d5518}.work-toolbar .search:focus{box-shadow:0 0 0 3px #0d9f8820}.work-toolbar select{background:#f8fbfd}
.daily-table th{background:#173e56;color:#eef8fc;border-bottom:0;padding-top:16px;padding-bottom:16px;font-weight:600}.daily-table td:first-child{border-left:4px solid var(--stage,#d4e1e9)}.daily-table td .stage-pill{background:var(--stage-soft,#edf4f8);color:var(--stage,#285f78);border:1px solid var(--stage-border,#d1e1e9);padding:5px 9px;font-weight:700}.daily-table td .os-tag{display:inline-block;background:var(--stage-soft,#edf4f8);color:var(--stage,#176d67);padding:4px 8px;border-radius:5px;letter-spacing:.02em}.daily-table tbody tr:hover>td{background:#f2f9fc}.daily-table td strong{color:#254b62}.daily-table td small{color:#647c8b}.row-mini{border-color:#c8dbe4;color:#255d78;background:#fff}.work-actions>.primary{border-radius:9px}.expanded-work td{border-left:4px solid #087d70!important}.flow-strip .current{background:#087d70}
.flow-overview{margin:0 0 23px}.flow-overview-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:16px}.flow-overview-title h2{font:800 19px Manrope;margin:4px 0 0;color:#254b62}.flow-overview-title .eyebrow{font-size:11px;color:#718696;letter-spacing:.08em}.flow-overview-title>span{font-size:14px;color:#527487;background:#e3eef4;padding:8px 12px;border-radius:30px}.flow-cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.flow-card{border:1px solid var(--stage-border);border-top:3px solid var(--stage);border-radius:12px;background:var(--stage-soft);color:var(--stage);text-align:left;padding:12px 15px;cursor:pointer;position:relative;font-family:inherit;transition:box-shadow .15s,transform .15s}.flow-card:hover{transform:translateY(-2px);box-shadow:0 7px 15px #163e5515}.flow-card-step{position:absolute;right:13px;top:13px;font-size:12px;font-weight:700;opacity:.7}.flow-card strong{display:block;font:800 30px Manrope;margin-bottom:4px}.flow-card b{display:block;font-size:14px}.flow-card small{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:9px;opacity:.9}
.decision-metrics button{position:relative;border-top:4px solid #147866;box-shadow:0 5px 22px #173e560a}.decision-metrics button:nth-child(2){background:#e9f6ee;border-color:#b8ddc5;border-top-color:#167443;color:#155433}.decision-metrics button:nth-child(3){background:#fff6e4;border-color:#e8d5aa;border-top-color:#a2701f;color:#755015}.decision-metrics button:nth-child(4){background:#edf3ff;border-color:#c0d2f0;border-top-color:#3565ad;color:#214d8e}.decision-metrics button:first-child{background:#143e56;border-color:#143e56;border-top-color:#079a8b}.decision-metrics button:hover{box-shadow:0 8px 25px #173e5618;transform:translateY(-1px)}.stage-choices button{padding:9px 12px}.role-cards{gap:16px}.role-card{border-top:4px solid #087d70;background:#fff;box-shadow:0 5px 20px #173e5608}.role-card:nth-child(2){border-top-color:#2566ac}.role-card:nth-child(3){border-top-color:#7151a2}.role-card:nth-child(4){border-top-color:#b08329}.role-card:nth-child(5){border-top-color:#36899d}.role-card:nth-child(6){border-top-color:#167443}.role-card:nth-child(7){border-top-color:#126f89}.role-card:nth-child(8){border-top-color:#173e56}
.agenda-dialog{background:#f0f5fa}.agenda-header{background:#163f56;color:#fff;padding:20px 24px;border-radius:15px;border-left:6px solid #1aac99}.agenda-header .eyebrow{color:#8be0d0}.agenda-header p{color:#c5dce6}.agenda-header .secondary{background:#fff;color:#153e55}.timeline-dates{background:#e6eef5}.date-label.today{background:#d1eee4;color:#076d5e}.allocation{box-shadow:0 3px 6px #183e5610}.allocation.planejamento{background:#e9dff7;border-color:#b29bcf;color:#51357e}.allocation.liberacao{background:#ffebbf;border-color:#d8b65e;color:#7b5309}.allocation.execucao{background:#c4ebd8;border-color:#6eb794;color:#125b3c}.allocation.late,.allocation.conflict{background:#ffdbd0;border-color:#d38b74;color:#813a24}
@media(min-width:1400px){.page-heading{min-height:100px}.flow-card{padding:13px 16px}}
@media(max-width:1100px){.flow-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.page-heading h1{font-size:32px}}
@media(max-width:700px){.flow-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.flow-card{padding:10px 12px}.flow-card strong{font-size:25px}.flow-card small{display:none}.flow-overview-title{align-items:flex-start}.flow-overview-title h2{font-size:17px}.flow-overview-title>span{font-size:12px;white-space:nowrap}.agenda-header{padding:15px;border-radius:10px}.page-heading h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Commercial handoffs and materials keep the same generous row-based workspace. */
.commercial-summary{padding:20px;background:#f0f7ff;border:1px solid #c7ddf5;border-radius:16px;margin:14px 0}
.commercial-summary h3{margin-top:0}.commercial-queues{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.commercial-queues button{border:1px solid #c9d8e8;background:white;border-radius:12px;padding:12px 16px;color:#254461;font:inherit;cursor:pointer}.commercial-queues .selected{background:#123f72;color:#fff;border-color:#123f72}
.flow-cards{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important}.tone-viabilidade{--stage-color:#836200;--stage-bg:#fff8d9}.tone-aprovacao{--stage-color:#7746ad;--stage-bg:#f2eaff}.tone-contrato{--stage-color:#a5493a;--stage-bg:#fff0eb}
.materials-dialog{width:calc(100vw - 32px);max-width:1700px;max-height:calc(100vh - 32px);padding:24px;border:0;border-radius:20px;background:#f5f8fc;color:#193449}.materials-dialog::backdrop{background:#102b43a8}.material-layout{display:grid;grid-template-columns:minmax(280px,32%) 1fr;gap:22px}.material-layout.readonly{grid-template-columns:1fr}.material-picker,.material-selection{background:#fff;border:1px solid #dce6ef;border-radius:16px;padding:20px;min-width:0}.material-picker>input{width:100%;padding:13px;border:1px solid #a9c1d6;border-radius:10px;font:inherit}.material-option{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e1eaf2;padding:14px 0}.material-option small{display:block;margin-top:6px;color:#526a7d}.material-option b{font-size:14px;line-height:1.5}.material-option button{flex-shrink:0}.material-option button:disabled{opacity:.6;cursor:default}#material-results{max-height:54vh;overflow:auto}.material-table-wrap{overflow:auto;max-height:52vh}.material-selection td span{display:block;margin-top:6px}.material-selection th{position:sticky;top:0;background:#edf4fb;z-index:1}.material-selection td input{width:105px;padding:10px;font:inherit;border:1px solid #b7cadc;border-radius:8px}.material-selection [data-material-note]{width:180px}.material-selection .dialog-actions{flex-wrap:wrap;justify-content:flex-start}.material-selection>p{font-size:14px;line-height:1.5;color:#526a7d}#materials-error{color:#b33037}.commercial-summary .all-fields{margin:0}.commercial-summary .all-fields b{overflow-wrap:anywhere}
@media(max-width:900px){.material-layout{grid-template-columns:1fr}.materials-dialog{padding:12px}.material-picker,.material-selection{padding:14px}#material-results{max-height:240px}.material-table-wrap{max-height:none}.flow-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.proposal-panel{margin:16px 0;padding:22px;border:1px solid #c7e3ec;border-left:5px solid #057daf;background:linear-gradient(115deg,#edf8fb,#fff);border-radius:14px}.proposal-panel h3{color:#07577b;margin:6px 0}.proposal-ready{padding:14px;border-radius:10px;background:#e7f5ec;color:#21633c}.proposal-missing{padding:16px 16px 16px 34px;background:#fff5df;border-radius:10px;line-height:1.8}

/* Inline editing belongs to the selected OS and stays visible while the dates scroll. */
.agenda-layout,.agenda-layout.with-editor{grid-template-columns:minmax(0,1fr)}
.timeline-scroll{container-type:inline-size}
.allocation-inline{position:sticky;left:0;width:var(--agenda-visible-width,100cqw);max-width:100%;max-height:none;overflow:visible;border-radius:0;border:0;border-top:2px solid #1ba18d;border-bottom:2px solid #1ba18d;padding:18px 22px;background:#f0faf7;box-sizing:border-box;z-index:4}
.allocation-inline:focus{outline:none}.allocation-inline:focus-visible{outline:3px solid #146d87;outline-offset:-3px}
.allocation-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.allocation-heading h3{margin:4px 0;font-size:19px}.allocation-heading p{margin:3px 0}.allocation-heading .eyebrow{color:#007969}
.allocation-fields{display:grid;grid-template-columns:minmax(145px,1fr) minmax(150px,1fr) minmax(150px,1fr) minmax(130px,.8fr) auto;gap:14px;align-items:end}
.allocation-inline label{margin:0 0 6px}.allocation-inline input,.allocation-inline select{min-height:44px}.allocation-duration{align-self:center}.allocation-duration span,.allocation-summary span{display:block;font-size:14px;color:#526f7b;margin-bottom:7px}.allocation-duration strong{font-size:16px;color:#0d6354}
.allocation-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.allocation-inline .primary{width:auto}.allocation-actions .button{min-height:44px;white-space:nowrap}
.allocation-justifications{display:flex;flex-wrap:wrap;gap:14px}.allocation-justifications>div:not([hidden]){flex:1 1 300px;margin-top:14px}.allocation-inline [hidden]{display:none!important}
.allocation-inline .original-plan{font-size:13px;padding-top:8px;margin:8px 0 0}.allocation-inline .available-note{margin:10px 0 0}.allocation-inline .form-error:empty{display:none}
.allocation-summary{display:flex;gap:26px;flex-wrap:wrap}.allocation-summary strong{font-size:16px}.allocation-pending{font-size:14px;margin-top:14px}.allocation-pending ul{margin:7px 0 0;padding-left:20px;line-height:1.6}
.selected-team>.team-label{background:#dff2ed;border-left:4px solid #098571}.allocation.selected-allocation{outline:3px solid #147c70;outline-offset:2px;z-index:2}
@media(max-width:1100px){.allocation-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.allocation-duration{grid-column:1}.allocation-actions{grid-column:2/-1;justify-content:flex-end}}
@media(max-width:700px){.allocation-inline{padding:16px}.allocation-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.allocation-fields>div:first-child{grid-column:1/-1}.allocation-duration{grid-column:1/-1}.allocation-actions{grid-column:1/-1;justify-content:flex-start}.allocation-heading{flex-direction:column}.allocation-summary{gap:16px}.allocation-inline .original-plan{line-height:1.5}}

.warehouse-status{background:#eaf7f2;border:1px solid #a7d9c9;border-radius:12px;padding:16px 18px;margin:12px 0;color:#154b40}.warehouse-status p{font-size:14px;line-height:1.5;margin:8px 0}.warehouse-mapping{color:#795419;background:#fff1d8;padding:10px;border-radius:8px}#warehouse-prepare-form{padding:20px;border:1px solid #c9dfe7;border-radius:12px;margin-top:18px;background:white}#warehouse-prepare-form>label:not(.confirm-check){display:block;font-weight:700;margin-top:12px}#warehouse-note{display:block;width:100%;box-sizing:border-box;border:1px solid #b9cfd9;border-radius:8px;padding:10px;margin:8px 0 16px;font:inherit}
.work-actions>.primary+.primary{margin-top:8px;background:#edf7f5;color:#086a60;border:1px solid #99c9bf}
.material-deposit-summary{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.material-deposit{display:inline-block!important;padding:4px 7px;border-radius:5px;background:#e7f5ef;color:#196749;font-size:12px;line-height:1.4}.material-deposit.comgas_dhl{background:#e7efff;color:#284e97}.material-picker select{display:block;width:100%;padding:10px;margin:6px 0 12px;border:1px solid #c4d6df;border-radius:7px;background:white;color:#254b62;font:inherit}.material-picker label{font-size:13px;font-weight:700}.materials-table .material-deposit{margin-top:5px}

/* V21 · linguagem e fluxo operacional SJS */
.planner-view-fixed{position:sticky;top:calc(var(--sjs-fixed-height, 160px) + 8px);z-index:12;display:flex;align-items:center;gap:14px;justify-content:space-between;margin:0 0 12px;padding:10px 14px;border:1px solid #d6e3ea;border-radius:12px;background:#fff;box-shadow:0 5px 18px #173e5612}
.planner-view-fixed small{color:#647c8b}.planner-view-fixed .view-toggle{flex:0 0 auto}
.key-reference-strip{display:grid;grid-template-columns:repeat(6,minmax(62px,1fr));gap:5px;margin:0 0 10px;max-width:720px}
.key-reference-strip span{min-width:0;border:1px solid #d7e4eb;border-radius:7px;background:#f4f8fa;padding:5px 7px}
.key-reference-strip small{margin:0!important;font-size:11px!important;line-height:1.25!important;color:#6d8291!important;text-transform:uppercase;letter-spacing:.03em;white-space:normal}
.key-reference-strip b{display:block;min-width:0;margin:2px 0 0!important;font-size:13px!important;line-height:1.3;white-space:normal;overflow-wrap:anywhere;color:#173e56!important}
.daily-table{min-width:1180px}.daily-table th:first-child{width:38%}.daily-table th:nth-child(2){width:20%}
.planner-approval-waiting>td{background:#fff9e9!important}.planner-approval-waiting>td:first-child{border-left-color:#d69b25!important}
.planner-approval-notice{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.7fr);gap:18px;align-items:center;margin:14px 0;padding:18px;border:1px solid #e8cf98;border-left:5px solid #c98a15;border-radius:14px;background:#fffaf0}
.planner-approval-notice h2{margin:4px 0 6px;font:800 20px Manrope;color:#563b0a}.planner-approval-notice p{margin:0;color:#745f35}
.planner-alert-list{display:flex;gap:8px;overflow:auto;padding-bottom:2px}.planner-alert-list button{min-width:175px;text-align:left;border:1px solid #dfc98f;border-radius:10px;background:#fff;padding:10px 12px;cursor:pointer;color:#3f5361;font-family:inherit}.planner-alert-list b,.planner-alert-list span,.planner-alert-list small{display:block}.planner-alert-list b{color:#815c13}.planner-alert-list span{font-weight:700;margin:3px 0}.planner-alert-list small{color:#6b7f8d}
.director-summary-metrics{grid-template-columns:repeat(3,1fr)}
.home-module-cards{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr));align-items:stretch}.home-module-cards .role-card{text-align:left;width:100%;cursor:pointer}.home-module-heading{margin-bottom:12px}
@media(max-width:1200px){.home-module-cards{grid-template-columns:repeat(3,1fr)}.planner-approval-notice{grid-template-columns:1fr}.key-reference-strip{grid-template-columns:repeat(3,minmax(70px,1fr))}}
@media(max-width:700px){.home-module-cards{grid-template-columns:1fr 1fr}.planner-view-fixed{position:static;align-items:flex-start;flex-direction:column}.director-summary-metrics{grid-template-columns:1fr}.key-reference-strip{grid-template-columns:repeat(2,minmax(82px,1fr))}}

/* Planner actions and selective work removal. */
.planner-tools .button{display:inline-flex;align-items:center;justify-content:center;gap:8px}.tool-icon{width:19px;height:19px;flex:none}.delete-selected{color:#aa3b44!important;border-color:#e5c2c6!important}.delete-selected:disabled{opacity:.45;cursor:not-allowed}.work-selection{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#526c7e;margin-bottom:8px;cursor:pointer}.work-selection input,.selection-toolbar input{width:18px;height:18px;accent-color:#087f82;cursor:pointer}.work-selection span{font-size:12px}.selection-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:10px 16px;border-bottom:1px solid #dce6ed;background:#f3f8fb;font-size:13px;color:#546f80}.selection-toolbar label{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:600}.work-selected>td{background:#eaf8f5!important}.rvp-link{display:inline-block;margin:6px 0;color:#086f87;font-weight:600;text-decoration:underline;overflow-wrap:anywhere}.deletion-list{max-height:230px;overflow:auto;padding:12px 12px 12px 30px;background:#f4f8fa;border-radius:8px;line-height:1.8}.register-cell .work-selection{margin:4px 6px}.register-cell .rvp-link{margin:4px 8px}

/* Compact working layout: give the list priority without shrinking its text. */
:root{--sjs-fixed-height:112px}
.topbar{height:62px;padding-left:20px;padding-right:20px}
.topbar .brand img{height:36px}
.module-nav{top:62px;min-height:50px;padding:5px 16px;gap:2px;scrollbar-width:thin}
.module-nav .nav-item{padding:8px 7px;border-radius:8px}
main{padding-top:14px;padding-bottom:28px}
.page-heading{min-height:0;gap:12px;padding:0;margin-bottom:10px;align-items:center;flex-direction:row}
.page-heading .eyebrow{display:none}
.page-heading h1{font-size:26px;line-height:1.2;letter-spacing:-.6px;margin:0}
.page-heading p{margin:4px 0 0;font-size:14px;line-height:1.35;max-width:740px}
.page-heading .planner-tools{flex-shrink:0}
.page-heading:has(.planner-tools:not(:empty)) p{display:none}
.planner-tools .button{min-height:38px;padding:8px 12px;border-radius:9px;font-size:14px;width:auto}
.planner-view-fixed{top:var(--sjs-fixed-height);gap:12px;margin:0 0 8px;padding:5px 8px;border-radius:10px;box-shadow:0 3px 10px #173e5608;flex-wrap:wrap}
.planner-view-fixed .view-toggle{padding:2px;border-radius:7px}
.planner-view-fixed .view-toggle button{padding:8px 10px;min-height:34px;font-size:13px}
.planner-queue-slot{flex:1;min-width:0}
.planner-queue-slot:empty{display:none}
.planner-view-fixed .commercial-queues{gap:5px;margin:0;justify-content:flex-end}
.commercial-queues button{min-height:34px;padding:7px 10px;border-radius:7px;font-size:13px}
.daily-panel{display:grid;grid-template-columns:auto minmax(0,1fr);border-radius:12px}
.list-heading{grid-column:1;padding:10px 14px;gap:8px;min-width:0}
.list-heading>div:first-child{gap:9px;flex-wrap:wrap}
.list-heading h2{font-size:16px;line-height:1.2;margin:0}
.list-heading #work-count{font-size:12px;white-space:nowrap}
.work-toolbar{grid-column:2;gap:6px;padding:8px 12px 8px 0;flex-wrap:nowrap;min-width:0}
.work-toolbar .search{min-width:180px;width:100%;height:36px;padding:8px 10px;font-size:14px}
.work-toolbar select{min-width:0;height:36px;padding:7px 8px;font-size:13px;max-width:180px}
.work-toolbar .button{flex-shrink:0;min-height:36px;padding:8px 10px;font-size:13px;border-radius:8px}
.selection-toolbar{grid-column:1/-1;padding:6px 14px;gap:14px;min-height:32px}
.daily-table-scroll{grid-column:1/-1;max-height:calc(100dvh - 150px)}
.daily-table th{padding:10px 12px;font-size:13px}
.daily-table td{padding:12px;vertical-align:top}
.daily-table th:last-child{width:260px}
.daily-table .work-identity{position:relative}
.work-identity .work-selection{position:absolute;left:12px;top:14px;margin:0}
.work-identity .work-selection span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.work-identity:has(.work-selection) .key-reference-strip{margin-left:26px}
.key-reference-strip{gap:4px;margin-bottom:6px}
.key-reference-strip span{padding:4px 5px}
.daily-table td strong{margin:3px 0}
.daily-table td small{margin-top:3px;line-height:1.4}
.priority-text{margin-top:5px}
.work-actions .secondary-actions{gap:6px;margin-top:6px}
.work-actions .secondary-actions .row-mini{padding:6px 8px;min-height:32px}
.work-actions>.primary{min-height:38px;padding:8px 10px}
.operational-heading{padding:12px 16px 8px;align-items:center;gap:10px}
.operational-heading h2{font-size:18px;margin:0}
.operational-heading p{font-size:13px;margin-top:3px}
.queue-count{padding:6px 10px}
.register-filters{padding:4px 16px 10px;gap:7px}
.register-filters :is(input,select){min-height:36px;padding:8px 10px}
.register-jumps{padding:0 16px 8px;gap:6px;font-size:13px}
.register-jumps button{padding:6px 9px}
.full-view-tools{padding:0 16px 8px}
.full-view-tools .button{padding:7px 10px;font-size:13px;min-height:34px}
.register-scroll{max-height:calc(100dvh - 160px)}
.planner-approval-notice{gap:12px;margin:0 0 8px;padding:10px 12px;border-radius:10px}
.planner-approval-notice h2{font-size:16px;margin:2px 0}
.planner-approval-notice p{font-size:13px}
.planner-alert-list button{padding:7px 10px;min-width:165px}
.planner-alert-list span{margin:2px 0}
.director-summary-metrics{gap:10px;margin:0 0 8px}
.director-summary-metrics button{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;padding:10px 14px;border-radius:10px}
.director-summary-metrics button>span{font-size:14px}
.director-summary-metrics button>b{grid-column:2;grid-row:1/3;font-size:30px;line-height:1;margin:0}
.director-summary-metrics button>small{font-size:12px;margin:3px 0 0;line-height:1.3}
.stage-choices{gap:5px;margin-bottom:8px}
.stage-choices button{font-size:13px;padding:7px 9px;min-height:34px}
@media(min-width:1101px){.daily-table th:first-child{width:36%}.key-reference-strip{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){
 .page-heading{flex-wrap:wrap}
 .planner-view-fixed{gap:6px}
 .planner-queue-slot{flex-basis:100%}
 .planner-view-fixed .commercial-queues{justify-content:flex-start}
 .daily-panel{grid-template-columns:minmax(0,1fr)}
 .list-heading,.work-toolbar{grid-column:1}
 .list-heading{padding-bottom:3px}
 .work-toolbar{padding:6px 12px 10px;flex-wrap:wrap}
 .work-toolbar .search{flex-basis:240px}
 .work-toolbar select{flex:1}
}
@media(max-width:700px){
 :root{--sjs-fixed-height:112px}
 .topbar{height:62px;padding:0 12px}
 .module-nav{top:62px;padding-left:8px;padding-right:8px}
 main{padding:12px 10px 24px}
 .page-heading{display:flex;gap:8px}
 .page-heading h1{font-size:24px}
 .page-heading p{font-size:13px}
 .planner-tools{gap:6px}
 .planner-tools .button{min-height:40px;padding:8px 10px;font-size:13px}
 .planner-view-fixed{position:static;align-items:stretch}
 .planner-view-fixed .view-toggle button{min-height:38px}
 .commercial-queues button{min-height:38px}
 .selection-toolbar span{display:none}
 .work-toolbar .search{flex-basis:100%}
 .work-toolbar select{max-width:none;min-height:40px}
 .director-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .director-summary-metrics button{display:flex;flex-direction:column;align-items:flex-start;padding:9px 10px;gap:4px}
 .director-summary-metrics button>b{font-size:26px}
 .director-summary-metrics button>small{font-size:11px}
 .stage-choices button{min-height:38px}
}
@media(max-width:700px){.page-heading .planner-tools{max-width:100%;flex-shrink:1;justify-content:flex-start}}
.export-choice{display:flex!important;align-items:flex-start;gap:12px;padding:14px;margin:10px 0!important;border:1px solid #d1e0e7;border-radius:10px;background:#f7fafc;cursor:pointer}.export-choice:has(input:checked){border-color:#078477;background:#eef9f5}.export-choice:has(input:disabled){opacity:.55;cursor:default}.export-choice input{width:18px!important;height:18px;margin:3px 0 0!important;flex:none;accent-color:#087d70}.export-choice b,.export-choice small{display:block}.export-choice small{font-size:13px;color:#597284;line-height:1.4;margin-top:4px}.export-privacy{font-size:13px;color:#597284}
/* Batch intake remains next to the selection, without enlarging the page header. */
.selection-toolbar .batch-forward{display:inline-flex;align-items:center;gap:7px;margin-left:auto;min-height:32px;padding:6px 10px;font-size:13px;border:1px solid #bfd9d4;border-radius:8px;color:#076e63;background:#fff}.batch-forward:disabled{opacity:.45;cursor:not-allowed}.batch-ready,.batch-blocked{margin:12px 0;padding:12px;border:1px solid #bcdacf;border-radius:10px;background:#f0faf5}.batch-blocked{border-color:#e5cfa0;background:#fff9ed}.batch-ready h3,.batch-blocked h3{font-size:15px;margin:0 0 8px}.batch-work-list{list-style:none;padding:0;margin:0;max-height:210px;overflow:auto}.batch-work-list li{padding:8px 0;border-top:1px solid #dce6df;font-size:14px}.batch-work-list li:first-child{border-top:0}.batch-work-list span,.batch-work-list small{display:block;margin-top:3px;line-height:1.4}.batch-work-list small{color:#846018}.batch-ready .batch-work-list small{color:#256352}@media(max-width:700px){.selection-toolbar .batch-forward{margin-left:0;min-height:38px}}
.dialog-return-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 0; margin-bottom:12px; border-bottom:1px solid #dce5ed; }
.dialog-return-bar small { color:#526777; font-size:12px; }
.proposal-next-step{margin-bottom:16px}.proposal-next-step small{display:block;margin-top:9px;color:#526571}.proposal-next-step .row-primary{min-height:40px;padding:10px 14px;font-size:14px}
