.cd-bloco{margin:12px 0;display:flex;flex-direction:column;gap:8px;align-items:flex-start;overflow-wrap:anywhere}
.cd-bloco p{margin:0}.cd-aviso{margin:0}
.cd-confirmada{padding:12px 14px;border-radius:8px;border:1px solid var(--line);background:var(--bg)}
.cd-overlay{--cd-scrim:color-mix(in srgb,var(--ink-900) 50%,transparent);position:fixed;inset:0;background:var(--cd-scrim);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.cd-modal{background:var(--card);color:var(--ink-900);border-radius:12px;max-width:560px;width:100%;max-height:calc(100dvh - 32px);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-2)}
.cd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 20px 14px;border-bottom:1px solid var(--line);flex-shrink:0}
.cd-head h2{margin:0;font-size:18px;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
.cd-x{flex-shrink:0;width:44px;height:44px;font-size:24px;line-height:1;border:0;background:var(--card);color:var(--ink-700);cursor:pointer}
.cd-x:hover{background:var(--bg)}.cd-x:disabled{cursor:wait;opacity:.5}
.cd-corpo{overflow:auto;padding:16px 20px;display:flex;flex-direction:column;gap:10px}.cd-corpo p{margin:0}.cd-corpo label{font-weight:600}
.cd-corpo textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:120px;max-height:300px;font:inherit;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink-900);padding:10px}
.cd-servicos{margin:0;padding-left:20px;overflow-wrap:anywhere}.cd-servicos li+li{margin-top:6px}
.cd-acoes{display:flex;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--line);flex-shrink:0}.cd-acoes .btn{min-height:44px}
.cd-erro{color:var(--danger-600)}.cd-corpo [hidden]{display:none}
@media(max-width:400px){.cd-overlay{padding:8px}.cd-modal{max-height:calc(100dvh - 16px)}.cd-head,.cd-corpo,.cd-acoes{padding-left:14px;padding-right:14px}.cd-head h2{font-size:16px}}

.flux-actions>[data-cd-visita-os]{width:100%}.flux-actions .cd-bloco{margin:0;align-items:stretch;width:100%}.flux-actions .cd-bloco>.btn{width:100%;min-height:44px}.flux-actions .cd-aviso:empty{display:none}
