.wc-simple,.wc-dialog{--wc-ink:#15394d;--wc-muted:#516777;--wc-line:#d9e5e9;color:var(--wc-ink);font-family:inherit;min-width:0}
.wc-simple *,.wc-dialog *{box-sizing:border-box}
.wc-simple .wc-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.wc-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;max-width:100%;padding:9px 13px;border:1px solid #c8d9df;border-radius:9px;background:#fff;color:#204c61;font-family:inherit;font-weight:600;font-size:13px;line-height:1.25;cursor:pointer;white-space:normal}
.wc-button:hover{border-color:#559e87;background:#f0f8f4}
.wc-button.primary{background:#127a50;border-color:#127a50;color:#fff}
.wc-button.primary:hover{background:#0d6240}
.wc-button:disabled{opacity:.65;cursor:wait}
.wc-button:focus-visible,.wc-dialog input:focus-visible,.wc-dialog select:focus-visible,.wc-phase-select:focus-visible{outline:3px solid #2388e1;outline-offset:2px}
.wc-phase-info{display:grid;gap:5px;min-width:0;max-width:100%}
.wc-phase-info .wc-button{width:100%;padding:6px 8px;justify-content:space-between;color:#126345;background:#f0f8f4;border-color:#d0e4d9}
.wc-phase-info>strong{padding:8px;color:#126345}
.wc-phase-labor{display:flex;align-items:baseline;justify-content:space-between;gap:4px;flex-wrap:wrap;font-size:12px;line-height:1.3;padding:0 2px;color:#516777}
.wc-phase-labor b{color:#15394d;overflow-wrap:anywhere}
.internal-work-status .wc-work-labor-total{background:#edf8f3;color:#28664e;overflow-wrap:anywhere}
.internal-work-status .wc-work-labor-total b{color:#174d39;font-weight:850}
.wc-cost-note{font-size:12px;line-height:1.4;color:#516777;margin:10px 0}
.wc-cost-note b{display:block;margin-top:4px}
#modal:has(.wc-dialog){z-index:1000}
.wc-dialog{max-width:820px;max-height:calc(100dvh - 80px);margin:auto;display:flex;flex-direction:column}
.wc-dialog>h2{flex:none;margin:0 0 12px;font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.wc-dialog p{font-size:14px;line-height:1.5;margin:0;color:var(--wc-muted)}
.wc-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-width:0}
.wc-form .wide{grid-column:1/-1}
.wc-form-body>.wc-field:only-of-type{grid-column:1/-1}
.wc-form-body:has(.wc-suggestions)>.wc-field:only-of-type{grid-column:auto}
.wc-dialog .wc-suggest-help{align-self:center}
.wc-field{display:grid;gap:6px;min-width:0;align-content:start}
.wc-field>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:13px;font-weight:650;line-height:1.3}
.wc-field input,.wc-field select,.wc-phase-select,.wc-suggest-percent input{width:100%;min-width:0;min-height:44px;padding:10px 11px;border:1px solid #b9cbd3;border-radius:8px;background:#fff;color:#173d50;font:inherit;font-size:14px}
.wc-dialog .wc-modal-form{display:flex;flex-direction:column;min-height:0;gap:0}
.wc-form-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:4px 4px 12px;scroll-padding:8px}
.wc-dialog .wc-field-flag{font-weight:400;font-size:11px;color:var(--wc-muted)}
.wc-dialog .wc-field-hint{margin:0;font-size:12px;line-height:1.4;color:var(--wc-muted)}
.wc-check{display:flex;align-items:center;gap:9px;font-size:14px;min-width:0}
.wc-check input{width:20px;height:20px;accent-color:#128056;flex:none}
#modal .wc-dialog #wc-form footer{position:static;margin:0;padding:12px 0 4px;flex:none;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;border-top:1px solid var(--wc-line);background:#fff}
.wc-form footer .primary{min-width:140px}
.wc-message:empty{display:none}
.wc-message{grid-column:1/-1;padding:12px;border:1px solid #b7ddc6;border-radius:9px;background:#eff9f3;color:#19513b;font-size:13px;line-height:1.4}
.wc-message.error{border-color:#e0b0b0;background:#fff4f3;color:#963e3e}
.wc-phase-select{max-width:240px;font-size:12px;min-height:44px}
.wc-suggestions{display:grid;gap:0}
.wc-suggestion{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:12px;border-bottom:1px solid var(--wc-line);padding:6px 0;min-width:0}
.wc-suggestion .wc-check{min-height:44px;cursor:pointer;overflow-wrap:anywhere}
.wc-suggestion small{display:block;font-size:11px;color:var(--wc-muted)}
.wc-suggest-percent{display:flex;align-items:center;gap:5px}
.wc-suggest-percent input{padding:7px}
.wc-suggestion input:disabled{opacity:.55}
.wc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.wc-simple .simple-phase-head{flex-wrap:wrap;gap:8px}.wc-phase-labor{font-size:11px}.wc-phase-info .wc-button{font-size:12px}}
@media(max-width:480px) and (orientation:portrait){.wc-form{grid-template-columns:1fr}.wc-field input,.wc-field select,.wc-suggest-percent input{font-size:16px}#app:not(.public-app) .wc-simple .work-phase-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-height:500px) and (orientation:landscape){#modal:has(.wc-dialog) #dialog{padding:12px}.wc-dialog{max-height:calc(100dvh - 48px)}.wc-dialog>h2{margin-bottom:8px}.wc-suggestion{padding:3px 0}}

/* O celular instalado precisa exibir os mesmos dados do computador. Estas
   regras não alcançam desktop ou tablet e apenas reduzem a altura dos cartões. */
body.responsive-v3-phone #app:not(.public-app) .wc-phase-info,
body.responsive-v3-landscape-phone #app:not(.public-app) .wc-phase-info{display:grid!important;visibility:visible!important}
body.responsive-v3-phone #app:not(.public-app) .wc-phase-labor,
body.responsive-v3-landscape-phone #app:not(.public-app) .wc-phase-labor{display:flex!important;visibility:visible!important}

@media(orientation:landscape) and (max-height:600px) and (max-width:1024px){
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .simple-phase-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px!important;margin-bottom:7px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .simple-phase-head h2{font-size:16px!important;line-height:1.2}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .simple-phase-head .wc-actions{justify-content:flex-end;gap:5px}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .simple-phase-head .wc-button,
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .simple-phase-head .btn{min-height:32px!important;padding:5px 9px!important;border-radius:8px!important;font-size:10px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .work-phase-folder-grid{gap:6px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .work-phase-folder{gap:4px!important;padding:6px!important;border-radius:9px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .work-phase-folder-top{gap:4px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .work-phase-folder-icon{width:24px!important;height:24px!important;font-size:13px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .work-phase-folder h3{font-size:10.5px!important;line-height:1.15!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-simple .work-phase-folder small{font-size:8px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-phase-info{gap:2px!important}
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-phase-info .wc-button{min-height:29px!important;height:29px!important;max-height:29px!important;padding:3px 6px!important;font-size:9.5px!important}
  body.responsive-v3-landscape-phone #app:not(.public-app) .wc-phase-labor{gap:3px;font-size:9.5px!important;line-height:1.2}
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-simple .work-phase-folder-preview,
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-simple .work-phase-folder-empty{min-height:44px!important;height:44px!important;max-height:44px!important}
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-simple .simple-phase-add-photo{min-height:28px!important;height:28px!important;max-height:28px!important;padding:4px 5px!important;font-size:8.5px!important}
}

/* Cartões são contêineres; somente as ações explícitas recebem interação. */
#app:not(.public-app) .internal-work-card,
#app:not(.public-app) .simple-phase-folder{cursor:default!important}
#app:not(.public-app) .simple-phase-folder .work-phase-folder-preview,
#app:not(.public-app) .simple-phase-folder .work-phase-folder-empty{pointer-events:auto!important;cursor:pointer!important}

@media(orientation:landscape) and (max-height:600px) and (max-width:1024px){
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-simple .simple-phase-head .wc-button,
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-simple .simple-phase-head .btn,
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-phase-info .wc-button,
  html body.responsive-v3-landscape-phone #app#app:not(.public-app) #view .wc-simple .simple-phase-add-photo{
    min-height:44px!important;
    height:auto!important;
    max-height:none!important;
    padding:8px 9px!important;
    font-size:12px!important
  }
}
