.st-module,.st-dialog{color:var(--cf-text);font-family:inherit}.st-head,.st-actions,.st-tabs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.st-head{justify-content:space-between;margin-bottom:20px}.st-module h2,.st-dialog h2{margin:0 0 8px}.st-note,.st-module small{color:var(--cf-muted);line-height:1.5}.st-tabs{margin:16px 0}.st-tabs [aria-selected=true]{background:var(--cf-primary);color:var(--cf-on-primary)}.st-filters,.st-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.st-module label,.st-dialog label{display:grid;gap:7px;font-weight:600;font-size:13px}.st-module input,.st-module select,.st-dialog input,.st-dialog select,.st-dialog textarea{width:100%;min-width:0;padding:11px;border:1px solid var(--cf-border);border-radius:9px;background:var(--cf-surface);color:var(--cf-text)}.st-module button,.st-dialog button{min-height:44px;padding:10px 15px;border:1px solid var(--cf-border);border-radius:9px;background:var(--cf-surface);color:var(--cf-primary);font-weight:600}.st-module .st-primary,.st-dialog .st-primary{background:var(--cf-primary);color:var(--cf-on-primary);border-color:var(--cf-primary)}.st-table-wrap{overflow:auto;border:1px solid var(--cf-border);border-radius:14px;background:var(--cf-surface)}.st-module table,.st-dialog table{width:100%;border-collapse:collapse;background:var(--cf-surface);color:var(--cf-text)}.st-module th,.st-module td,.st-dialog th,.st-dialog td{padding:13px;text-align:left;border-bottom:1px solid var(--cf-border);vertical-align:middle}.st-module th,.st-dialog th{background:var(--cf-raised);font-size:12px;color:var(--cf-muted)}.st-module td .st-actions{min-width:190px;gap:5px}.st-badge{display:inline-block;padding:5px 10px;border-radius:20px;background:var(--cf-primary-soft);color:var(--cf-primary);font-size:12px}.st-negative,.st-warning{color:var(--cf-danger)}.st-warning{border:1px solid var(--cf-danger);padding:12px;border-radius:9px}.st-dialog{width:min(1050px,96vw);max-height:92vh;padding:24px;border:1px solid var(--cf-border);border-radius:18px;background:var(--cf-surface);box-shadow:var(--cf-shadow-modal);overflow:auto}.st-dialog::backdrop{background:#071627a8}.st-dialog .st-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.st-summary{border:1px solid var(--cf-border);background:var(--cf-raised);padding:20px;border-radius:14px;align-self:start;position:sticky;top:0}.st-summary dl{margin:0}.st-summary dt{color:var(--cf-muted);font-size:12px;margin-top:18px}.st-summary dd{margin:5px 0;font-weight:750;font-size:25px}.st-summary input{margin-top:6px;font-size:20px}.st-dialog .st-fields{grid-template-columns:1fr 1fr}.st-wide{grid-column:1/-1}.st-dialog .st-line select{min-width:150px}.st-dialog .st-line input{min-width:85px}.st-dialog .st-check{display:flex;align-items:start;gap:8px;font-weight:400}.st-check input{width:auto}.st-history{padding:16px;border-bottom:1px solid var(--cf-border)}.st-module [role=status],.st-dialog [role=status]{min-height:20px}.st-module button:disabled,.st-dialog button:disabled{opacity:.6;cursor:wait}@media(max-width:760px){.st-dialog{padding:16px}.st-dialog .st-grid{grid-template-columns:1fr}.st-summary{position:static}.st-filters{grid-template-columns:1fr}.st-dialog .st-fields{grid-template-columns:1fr}.st-module table{min-width:700px}.st-dialog table{min-width:570px}.st-head{align-items:start}.st-summary dd{font-size:23px}}

.st-summary .st-metric{padding:12px;margin:12px 0;border:1px solid var(--cf-border);border-radius:10px;background:var(--cf-surface)}.st-summary .st-metric dt{margin-top:0}.st-summary .st-metric dd{margin-bottom:0}

/* Organização aprovada: formulário contínuo e três cartões abaixo da venda. */
.st-dialog:has(.st-editor){width:min(960px,96vw)}.st-editor .st-identification>label{margin:18px 0}.st-editor .st-kind{grid-template-columns:1fr 1fr;max-width:520px;margin:12px 0}.st-editor .st-extra{margin:10px 0 22px;color:var(--cf-muted)}.st-editor .st-extra summary{cursor:pointer;font-size:13px;min-height:28px}.st-editor h3{font-size:16px;margin:20px 0 12px}.st-editor h3 small{font-size:12px;font-weight:400}.st-editor .st-summary{position:static;background:transparent;border:0;border-top:1px solid var(--cf-border);border-radius:0;padding:22px 0 0;margin-top:20px}.st-editor .st-summary>label{width:100%}.st-editor .st-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.st-editor .st-metric{padding:16px;margin:0;background:var(--cf-raised)}.st-editor [data-profit]{color:var(--cf-success)}.st-editor .st-input-actions{margin:14px 0}.st-editor [data-add]::before{content:'+ ';font-size:17px}.st-editor .st-line td{padding:9px}.st-editor .st-line td:first-child{width:43%}.st-editor [aria-label='Remover insumo']{font-size:23px;min-width:40px;padding:4px 8px}.st-editor .st-note{font-size:12px}.st-editor .st-summary input{font-size:17px}.st-editor .st-summary dd{font-size:23px}.st-editor [hidden]{display:none!important}@media(max-width:560px){.st-editor .st-metrics{grid-template-columns:1fr}.st-editor .st-kind{grid-template-columns:1fr}.st-editor .st-summary dd{font-size:22px}} 

.st-dialog label{color:var(--cf-text)}.st-editor [data-profit].st-negative{color:var(--cf-danger)}
.st-module label{color:var(--cf-text)}
.st-dialog tbody tr,.st-module tbody tr{background:var(--cf-surface)}.st-dialog tbody tr:hover,.st-module tbody tr:hover{background:var(--cf-raised)}
.st-dialog tr:hover td,.st-module tr:hover td{background:var(--cf-raised);color:var(--cf-text)}

/* Indicadores distintos, com base explícita. */
.st-editor .st-metrics,.st-contract-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.st-contract-metrics{margin:16px 0}.st-contract-metrics>div{background:var(--cf-raised);border:1px solid var(--cf-border);border-radius:10px;padding:12px}.st-contract-metrics dd{margin:8px 0 0;font-size:20px;font-weight:700}.st-contract-metrics dt{color:var(--cf-muted);font-size:12px}@media(max-width:850px){.st-editor .st-metrics,.st-contract-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.st-editor .st-metrics,.st-contract-metrics{grid-template-columns:1fr}}
