.gj-execution-dialog{width:min(96vw,1600px);max-width:96vw;height:92vh;max-height:94vh;padding:0;border:1px solid #cdded5;border-radius:16px;color:#203b30}.gj-execution-dialog::backdrop{background:#203b3080}.gj-execution-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #dce7df}.gj-execution-dialog>nav{display:flex;gap:6px;padding:12px 20px;overflow:auto;position:sticky;top:0;background:white}.gj-execution-dialog main{padding:16px 24px;overflow:auto;height:calc(100% - 160px)}.gj-execution-dialog form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:20px 0}.gj-execution-dialog label{display:grid;gap:6px}.gj-execution-dialog textarea{min-height:100px}.gj-execution-dialog input,.gj-execution-dialog textarea,.gj-execution-dialog select{width:100%;box-sizing:border-box}.gj-execution-dialog nav [aria-pressed=true]{background:#e0efe7;border-color:#087d50}.gj-execution-item{border:1px solid #d6e2db;border-radius:10px;padding:16px;margin:10px 0;white-space:pre-wrap}.gj-execution-item button{margin:8px 8px 0 0}.gj-execution-board{display:flex;gap:12px;overflow:auto;padding-bottom:20px}.gj-execution-board>section{flex:0 0 280px;background:#f1f6f3;padding:12px;border-radius:12px}.gj-execution-board>section>button{display:block;width:100%;text-align:left;margin:8px 0;padding:16px;white-space:normal}@media(max-width:650px){.gj-execution-dialog form{grid-template-columns:1fr}.gj-execution-dialog>header{padding:10px}.gj-execution-dialog main{padding:12px}.gj-execution-dialog h2{font-size:18px}}
.oe-type-selector{display:flex;align-items:center;gap:6px;border:0;padding:0;margin:0;min-width:0}.oe-type-selector legend{font-size:12px;color:#507262;margin-bottom:4px}.oe-type-selector button{border:1px solid #bdd4c7;background:#fff;color:#155c46;border-radius:9px;min-height:40px;padding:7px 16px}.oe-type-selector button[aria-pressed="true"]{background:#126247;color:#fff;border-color:#126247;font-weight:700}.gj-execution-search{display:flex;gap:18px;flex-wrap:wrap;align-items:end}.gj-execution-search>label{flex:1;min-width:min(220px,100%)}
/* Audit 3.156.113: contain dialog and boards on narrow and short viewports. */
.gj-execution-dialog{box-sizing:border-box;max-height:94dvh;height:92dvh;overflow:hidden}.gj-execution-dialog[open]{display:flex;flex-direction:column}.gj-execution-dialog>header,.gj-execution-dialog>nav{flex-shrink:0;min-width:0;box-sizing:border-box}.gj-execution-dialog>header{gap:12px}.gj-execution-dialog>header h2{flex:1;min-width:0;overflow-wrap:anywhere;margin:0}.gj-execution-dialog>header button{flex-shrink:0}.gj-execution-dialog>nav{position:static;max-width:100%}.gj-execution-dialog>nav button{flex:0 0 auto}.gj-execution-dialog main{box-sizing:border-box;flex:1;min-height:0;min-width:0;height:auto;overscroll-behavior:contain;overflow:auto}.gj-execution-dialog form{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}.gj-execution-dialog label,.gj-execution-dialog input,.gj-execution-dialog textarea,.gj-execution-dialog select,.gj-execution-dialog .gj-execution-item{min-width:0;max-width:100%;overflow-wrap:anywhere}.gj-execution-dialog button,.gj-execution button{min-height:44px}.gj-execution-dialog input,.gj-execution-dialog select{min-height:44px}.gj-execution-dialog button:focus-visible,.gj-execution button:focus-visible{outline:3px solid #166ab0;outline-offset:2px}.gj-execution{min-width:0;max-width:100%}.gj-execution-board{max-width:100%;box-sizing:border-box;overscroll-behavior-x:contain}.gj-execution-board>section{box-sizing:border-box;min-width:0}.gj-execution-item{overflow-wrap:anywhere}.gj-execution-item button{max-width:100%;white-space:normal}
@media(max-width:650px){.gj-execution-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:auto}.gj-execution-dialog>header{padding:12px}.gj-execution-dialog>nav{padding:8px;gap:6px}.gj-execution-dialog main{padding:12px}.gj-execution-dialog form{grid-template-columns:minmax(0,1fr)}.gj-execution-dialog input,.gj-execution-dialog select,.gj-execution-dialog textarea{font-size:16px}.gj-execution-board>section{flex-basis:min(280px,calc(100vw - 48px))}}
/* v3.156.160: mobile boards use a vertical list; no horizontal drag is needed to find an OE or release. */
@media(max-width:650px){
 .gj-execution-board{display:grid;grid-template-columns:minmax(0,1fr);overflow-x:hidden;gap:12px;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
 .gj-execution-board>section{width:100%;min-width:0;max-width:100%;padding:12px}
 .gj-execution-board>section>button{min-height:50px;margin:6px 0;padding:12px;overflow-wrap:anywhere}
 .gj-execution-board .gj-execution-item{margin:8px 0;padding:12px}
 .gj-execution-board .gj-execution-item button{width:100%;margin:6px 0 0}
 .gj-execution-dialog>nav{overscroll-behavior-x:contain;scrollbar-width:thin}
 .gj-execution-dialog>nav button{min-height:44px;white-space:nowrap}
 .gj-execution-dialog form>button[type=submit]{min-height:48px;width:100%}
 .gj-execution-dialog label{max-width:100%;overflow-wrap:anywhere}
}

/* Common desktop presentation for OE and authorized billing. */
.gj-execution-no-results{padding:22px;border:1px dashed #bfcfc5;border-radius:12px;color:#597265;background:#f6faf7}.gj-execution-no-results[hidden]{display:none!important}
.gj-execution-search{display:flex;gap:12px;align-items:end;justify-content:space-between;flex-wrap:wrap;margin:10px 0 16px}.gj-execution-search label{display:grid;gap:6px;flex:1 1 270px;max-width:520px;font-weight:600;color:#254538}.gj-execution-search input{width:100%;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid #cbdcd2;border-radius:10px;background:white;font:inherit}.gj-execution-result-count{font-size:13px;color:#547263;padding:8px 0}.gj-execution-board>section[hidden],.gj-execution-board [data-order-search][hidden]{display:none!important}
@media(min-width:651px){
 .gj-execution-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));align-items:start;overflow-x:visible;gap:14px}
 .gj-execution-board>section{width:auto;min-width:0;max-width:none;flex:none;padding:16px}
 .gj-execution-board>section>h3{margin:0 0 12px;font-size:15px}
 .gj-execution-board .gj-execution-item{padding:16px;margin:0 0 10px;border-radius:12px;background:#fff;box-shadow:0 1px 3px #133b2b0a}
 .gj-execution-board .gj-execution-item p{margin:7px 0;line-height:1.5}
 .gj-execution-board .gj-execution-item button{width:100%;margin:8px 0 0;text-align:center;min-height:44px}
 .gj-execution-dialog>nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin}
 .gj-execution-dialog>nav button{white-space:nowrap;flex:0 0 auto;padding-inline:12px}
}

.execution-register { min-width: 0; }
.execution-register .budget-card { overflow-wrap: anywhere; }
.execution-register .budget-card small,.execution-register .pr-ledger td small { display: block; }
.execution-register .budget-board { max-width: 100%; }
.execution-register .commercial-heading nav { display: flex; flex-wrap: wrap; gap: 6px; }
.execution-register [data-execution-mode][aria-pressed=true] { background: #dcefe5; color: #174c36; }
.team-workspace .toolbar { align-items: end; }
.team-workspace .toolbar label { display: grid; gap: 4px; min-width: min(240px,100%); }
.team-workspace nav[role=tablist] { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.team-workspace [role=tab][aria-selected=true] { background: #dcefe5; color: #174c36; }

.gj-execution-dialog > .oe-section-tabs {
  gap: 3px;
  padding: 3px clamp(8px, 1.5vw, 20px);
  border-bottom: 1px solid var(--gj-border, #dce7df);
}
body.gj-ui-surface .gj-execution-dialog .oe-section-tabs > button,
.gj-execution-dialog .oe-section-tabs > button {
  flex: 0 0 auto;
  margin: 0;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--gj-text, #254538);
  font: 500 13px/1.3 var(--gj-font, system-ui);
  white-space: nowrap;
}
body.gj-ui-surface .gj-execution-dialog .oe-section-tabs > button[aria-selected="true"],
.gj-execution-dialog .oe-section-tabs > button[aria-selected="true"] {
  background: var(--gj-green-soft, #e2f0e8);
  border-color: #c6e0d3;
  color: #15583f;
  font-weight: 650;
}

/* Janela de OE compacta no desktop, sem retirar espaço útil do formulário. */
@media(min-width:651px){
  .gj-execution-dialog{width:min(92vw,1180px);max-width:92vw;height:min(84dvh,850px);max-height:90dvh}
}

/* v3.156.267: OE operacional segue um fluxo único, sem abas de medição e financeiro. */
.oe-workflow{margin:16px 0;padding:16px;border:1px solid #cfddd5;border-radius:12px;background:#f8fbf9}
.oe-workflow h3{margin:0 0 12px;font-size:16px;color:#173d2c}
.oe-workflow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px;padding:0;margin:0;list-style:none;counter-reset:oe-step}
.oe-workflow-steps li{display:flex;flex-direction:column;gap:5px;min-width:0;padding:10px 12px;border:1px solid #d6e2db;border-radius:10px;background:white;counter-increment:oe-step}
.oe-workflow-steps li::before{content:counter(oe-step,decimal-leading-zero);font-size:12px;font-weight:700;color:#55806a}
.oe-workflow-steps button{min-height:34px;padding:2px 0;text-align:left;border:0;background:none;color:#234d39;font:600 13px/1.3 system-ui;white-space:normal}
.oe-workflow-steps button:hover{text-decoration:underline}
.oe-workflow-steps small{font-size:12px;color:#7c6852}
.oe-workflow-steps .is-complete{background:#edf8f0;border-color:#b8dcc4}
.oe-workflow-steps .is-complete small{color:#17643c;font-weight:600}

.oe-prepare-visit{padding:12px;border:1px solid #dce6df;border-radius:10px;margin:12px 0}.oe-prepare-visit>summary{cursor:pointer;font-weight:600}.oe-documents{display:grid;gap:12px}.oe-document-upload{display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,2fr) auto;gap:12px;align-items:end}.oe-document-upload [role=status]{grid-column:1/-1;margin:0}.oe-document-tools{display:flex;gap:10px}.oe-document-tools input{flex:1;min-width:0}.oe-document-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.oe-document-row span{min-width:0;overflow-wrap:anywhere}.oe-document-row button{flex:none}@media(max-width:650px){.oe-document-upload{grid-template-columns:1fr}.oe-document-tools{flex-direction:column}.oe-document-row{align-items:flex-start}.oe-document-upload button{justify-self:start}}

.gj-execution-dialog > .oe-tab-navigation {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid #dce6df;
  background: #fff;
}
.gj-execution-dialog .oe-document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
}
.gj-execution-dialog .oe-document-row > span { overflow-wrap: anywhere; }
.gj-execution-dialog .oe-document-row > button {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
}
.gj-execution-dialog .oe-document-upload input[type=file] {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.gj-execution-dialog .oe-step-progress {
  align-self: center;
  color: #455d53;
  font-size: .875rem;
  text-align: center;
}
.oe-workflow-dialog .oe-more{position:relative;margin-left:auto}
.oe-workflow-dialog .oe-more summary,.oe-upload-external summary{cursor:pointer;padding:10px;list-style:none}
.oe-workflow-dialog .oe-more>div{position:absolute;right:0;top:100%;z-index:10;background:white;padding:8px;border:1px solid #ccd9d1;border-radius:8px;min-width:160px}
.oe-workflow-dialog .oe-more button{width:100%}
.oe-workflow-dialog .oe-upload-external{margin-top:12px;border-top:1px solid #ccd9d1}
@media(max-width:700px){
.oe-workflow-dialog .gj-execution-item button{display:block;margin-top:8px;max-width:100%;word-break:normal}
.oe-workflow-dialog .oe-tab-navigation{display:flex;align-items:center;justify-content:space-between;gap:6px}
.oe-workflow-dialog .oe-tab-navigation button{width:auto;min-width:44px;white-space:normal;word-break:normal}
.oe-workflow-dialog .oe-step-progress{display:none}
.oe-workflow-dialog footer button:last-child{margin-left:auto}
}

.gj-execution-dialog.oe-workflow-dialog > .oe-section-tabs {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  gap: 6px;
  padding: 6px 10px;
  scroll-padding-inline: 10px;
  overscroll-behavior-x: contain;
}
body.gj-ui-surface .oe-workflow-dialog .oe-section-tabs > button {
  min-height: 44px;
  border-color: var(--gj-border, #dce7df);
  border-radius: 8px;
}
body.gj-ui-surface .oe-workflow-dialog .oe-section-tabs > button[aria-selected="true"] {
  box-shadow: inset 0 -2px #17643c;
}
.oe-workflow-dialog .oe-identity {display:grid;gap:5px;padding:4px 0 14px;border-bottom:1px solid #dce6df;margin-bottom:14px}
.oe-identity small {color:#53675d}
.oe-identity strong {font-size:1.12rem}
.oe-identity span {justify-self:start;border-radius:6px;background:#edf4ef;padding:4px 8px}
.oe-workflow-dialog .oe-service-line {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.oe-workflow-dialog .oe-instructions {white-space:pre-line;overflow-wrap:anywhere}
.oe-workflow-dialog .oe-tab-navigation button:last-child {margin-inline-start:auto;background:#17643c;color:white}
.oe-workflow-dialog .oe-tab-navigation button[hidden] {display:none}
.oe-workflow-dialog .oe-measurement {display:grid;gap:8px;min-width:0;overflow-wrap:anywhere}
.oe-measurement > small {color:#486354}
.oe-measurement > span {justify-self:start;padding:3px 8px;background:#edf4ef;border-radius:6px}
.oe-measurement > p {margin:0}
.oe-measurement > [role=status] {padding-top:8px;border-top:1px solid #dce6df}

@media(max-width:600px){
 .billing-register [data-billing-period]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 .billing-register [data-billing-period] label,.billing-register [data-billing-period] input{min-width:0;max-width:100%;box-sizing:border-box}
 .billing-register [data-billing-period] input{width:100%}
 .billing-register [data-billing-apply]{grid-column:1/-1}
}
