/* Studio CRM 10.33.21 — Premium global + Contratos etapa 2 */
:root{--crm-red:#e31620;--crm-red-soft:#fff1f2;--crm-green:#16865a;--crm-green-soft:#effaf4;--crm-amber:#bc6a00;--crm-amber-soft:#fff7e8;--crm-blue:#32659c;--crm-blue-soft:#f0f6fc;--crm-ink:#18202b;--crm-muted:#667085;--crm-line:#d7dee8;--crm-surface:#fff;--crm-subtle:#f7f9fc}
.ctr-editor-shell-premium,.ctr-editor-shell{--ctr-line:#d7dee8;--ctr-soft:#f7f9fc}
.ctr-editor-shell-premium input,.ctr-editor-shell-premium select,.ctr-editor-shell-premium textarea,.ctr-editor-shell input,.ctr-editor-shell select,.ctr-editor-shell textarea{border-color:#cfd8e5!important;background:#fff!important;color:#202a36!important;box-shadow:0 1px 2px rgba(16,24,40,.025);font-weight:400!important}
.ctr-editor-shell-premium input:focus,.ctr-editor-shell-premium select:focus,.ctr-editor-shell-premium textarea:focus,.ctr-editor-shell input:focus,.ctr-editor-shell select:focus,.ctr-editor-shell textarea:focus{border-color:#ef5961!important;box-shadow:0 0 0 3px rgba(227,22,32,.08)!important;outline:none}
.ctr-editor-shell-premium label>span,.ctr-editor-shell label>span{color:#344054!important;font-weight:600!important}
.ctr-stepper-item.is-current{background:#fff1f2!important;color:#c80f18!important}.ctr-stepper-item.is-completed{background:#eefaf4!important;color:#13764f!important}.ctr-stepper-item.is-pending:nth-child(3){background:#fff8e9!important}.ctr-stepper-item.is-pending:nth-child(4){background:#f1f7fd!important}
.ctr-premium-top-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:12px;margin-bottom:12px}.ctr-premium-panel{background:#fff;border:1px solid #d9e0e9;border-radius:12px;padding:14px;box-shadow:0 1px 2px rgba(16,24,40,.025)}.ctr-premium-section-head{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.ctr-premium-section-head strong{font-size:14px;color:#18202b}.ctr-premium-section-head small{font-size:11px;color:#667085}.ctr-premium-section-head.compact{margin-bottom:8px}.ctr-premium-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ctr-premium-service-grid label,.ctr-production-grid label,.ctr-couple-grid label,.ctr-moment-card label,.ctr-summary-item{display:flex;flex-direction:column;gap:5px}.ctr-premium-service-grid label>span,.ctr-production-grid label>span,.ctr-couple-grid label>span,.ctr-moment-card label>span,.ctr-summary-item>span{font-size:11px}.ctr-premium-service-grid input,.ctr-premium-service-grid select,.ctr-production-grid input,.ctr-production-grid select,.ctr-couple-grid input,.ctr-moment-card input,.ctr-summary-item input{height:38px!important;min-height:38px!important;padding:7px 10px!important}
.ctr-premium-cover-body{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center}.ctr-premium-cover-body img{width:58px;height:76px;object-fit:cover;border-radius:8px;border:1px solid #d0d7e2}.ctr-premium-cover-placeholder{width:58px;height:76px;border-radius:8px;border:1px dashed #cfd8e5;display:grid;place-items:center;font-size:10px;color:#667085;background:#f8fafc}.ctr-premium-cover-body>div:last-child{display:grid;grid-template-columns:1fr;gap:5px}.ctr-premium-cover-body strong{font-size:12px}.ctr-premium-cover-body small{font-size:11px;color:#667085}.ctr-premium-cover-body select{height:36px!important;min-height:36px!important}
.ctr-event-summary{margin-bottom:12px;background:linear-gradient(90deg,#fffafa 0%,#fff 38%,#fbfdfc 100%)}.ctr-event-summary-grid{display:grid;grid-template-columns:1fr .8fr 1fr 1.35fr .85fr;gap:0}.ctr-summary-item{position:relative;padding:4px 14px 2px;border-right:1px solid #e1e6ed}.ctr-summary-item:last-child{border-right:none}.ctr-summary-item:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:#d8dee8}.ctr-summary-item.tone-red:before{background:#ef3f48}.ctr-summary-item.tone-green:before{background:#27a56f}.ctr-summary-item.tone-amber:before{background:#e19723}.ctr-summary-item input{border:0!important;box-shadow:none!important;padding:0!important;height:24px!important;min-height:24px!important;font-weight:700!important;background:transparent!important;color:#18202b!important}.ctr-summary-item input:focus{box-shadow:none!important}
.ctr-wedding-details{margin-bottom:12px}.ctr-couple-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px;max-width:920px}.ctr-moment-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.ctr-moment-card{border:1px solid #dce2ea;border-radius:10px;padding:12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px 10px}.ctr-moment-card>strong{grid-column:1/-1;font-size:13px;margin-bottom:1px}.ctr-moment-card.moment-ceremony{background:#fff8f8;border-color:#f2cfd2}.ctr-moment-card.moment-ceremony>strong{color:#ad2027}.ctr-moment-card.moment-reception{background:#f4fbf7;border-color:#cde8d8}.ctr-moment-card.moment-reception>strong{color:#19734f}.ctr-moment-card.moment-making{background:#fff9ef;border-color:#eed9b5}.ctr-moment-card.moment-making>strong{color:#9a5b00}.ctr-moment-card .ctr-short-field{max-width:120px}.ctr-moment-card input{width:100%}
.ctr-production-panel{margin-bottom:12px;background:#fbfcfe}.ctr-production-grid{display:grid;grid-template-columns:160px 1.2fr 1fr 1fr;gap:10px;align-items:end}.ctr-production-small{max-width:160px}
.ctr-premium-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ctr-included-preview{display:grid;gap:5px;margin:2px 0 8px}.ctr-included-preview>div{display:flex;gap:8px;align-items:flex-start}.ctr-included-preview span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff1f2;color:#e31620;font-size:11px;font-weight:800;flex:0 0 auto}.ctr-included-preview p{margin:1px 0 0;font-size:12px;color:#344054}.ctr-inline-editor{margin-top:6px;border-top:1px solid #edf0f4;padding-top:7px}.ctr-inline-editor summary{cursor:pointer;font-size:11px;font-weight:700;color:#475467;list-style:none}.ctr-inline-editor summary:before{content:"＋";margin-right:5px;color:#e31620}.ctr-inline-editor[open] summary:before{content:"−"}.ctr-inline-editor textarea{width:100%;margin-top:8px;min-height:72px!important}.ctr-notes-panel{background:#fcfcfd}
/* stronger semantic color system globally */
.ctr-status-active,.ctr-status-completed,.ctr-status-signed{background:#e9f8f0!important;color:#10734c!important;border-color:#bfe5d0!important}.ctr-status-pending,.ctr-status-viewed{background:#fff5df!important;color:#955800!important;border-color:#edd29a!important}.ctr-status-cancelled,.ctr-status-overdue{background:#fff0f1!important;color:#b4232b!important;border-color:#efc3c6!important}.ctr-inline-notice{background:#eff6ff!important;border-color:#b9d4f2!important;color:#285b8e!important}.ctr-inline-notice-error{background:#fff0f1!important;border-color:#efc3c6!important;color:#a51d25!important}
@media(max-width:1180px){.ctr-premium-top-grid{grid-template-columns:1fr}.ctr-event-summary-grid{grid-template-columns:repeat(3,1fr);gap:8px}.ctr-summary-item{border-right:0;border:1px solid #e1e6ed;border-radius:8px;padding:8px 10px}.ctr-moment-grid{grid-template-columns:1fr}.ctr-production-grid{grid-template-columns:1fr 1fr}.ctr-premium-bottom-grid{grid-template-columns:1fr}}
@media(max-width:720px){.ctr-premium-service-grid,.ctr-couple-grid,.ctr-production-grid,.ctr-event-summary-grid{grid-template-columns:1fr}.ctr-moment-card{grid-template-columns:1fr}.ctr-moment-card .ctr-short-field{max-width:none}.ctr-premium-panel{padding:10px}.ctr-premium-top-grid{display:block}.ctr-premium-cover{margin-top:10px}}

/* Studio CRM 10.33.64 — contratos: campos visíveis + serviços combinados */
.ctr-service-head-row{flex-direction:row!important;align-items:flex-start;justify-content:space-between;gap:12px}
.ctr-service-head-row>div{display:flex;flex-direction:column;gap:3px}
.ctr-add-service-btn,.ctr-remove-service-btn{appearance:none;border:1px solid #d7dee9;background:#fff;border-radius:8px;min-height:34px;padding:7px 11px;font:700 11px/1.1 inherit;cursor:pointer;color:#344054;transition:.15s ease}
.ctr-add-service-btn{border-color:#efb2ba;color:#c51e31;background:#fffafb}
.ctr-add-service-btn:hover{background:#fff1f3;border-color:#e86d7c}
.ctr-remove-service-btn:hover{background:#f7f8fa;border-color:#bcc7d6}
.ctr-service-card{border:1px solid #e0e6ef;border-radius:10px;padding:12px;background:#fff}
.ctr-service-card+.ctr-service-card{margin-top:10px}
.ctr-service-card-secondary{background:#fbfcff;border-color:#d5dfed}
.ctr-service-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.ctr-service-badge{display:inline-flex;width:max-content;align-items:center;min-height:24px;padding:4px 8px;border-radius:6px;background:#f6f7f9;color:#475467;font-size:10px;font-weight:800;letter-spacing:.045em}
.ctr-service-card-secondary .ctr-service-badge{background:#eef5ff;color:#315d96}
.ctr-premium-service-grid-three{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(180px,.72fr)}
.ctr-premium-service-grid .ctr-field-help{font-size:10px;color:#667085;line-height:1.25;margin-top:0}
.ctr-service-total-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #e5eaf1;margin-top:11px;padding-top:10px;color:#475467;font-size:11px}
.ctr-service-total-row strong{font-size:15px;color:#101828}

/* O resumo agora parece e funciona como formulário — sem campos "invisíveis" */
.ctr-event-summary{background:#fff}
.ctr-event-summary-grid{gap:10px}
.ctr-summary-item{border-right:0!important;padding:0!important}
.ctr-summary-item:before{display:none!important}
.ctr-summary-item input{
  border:1px solid #ccd6e4!important;
  border-radius:7px!important;
  box-shadow:0 1px 2px rgba(16,24,40,.035)!important;
  padding:7px 10px!important;
  height:38px!important;
  min-height:38px!important;
  font-weight:500!important;
  background:#fff!important;
  color:#18202b!important;
}
.ctr-summary-item input:hover{border-color:#aebdd0!important}
.ctr-summary-item input:focus{border-color:#7f9fc5!important;box-shadow:0 0 0 3px rgba(65,105,155,.10)!important;outline:0!important}

/* Equipe e produção no mesmo padrão visual dos Detalhes do serviço */
.ctr-production-panel{background:#fff}
.ctr-production-grid{grid-template-columns:minmax(160px,.8fr) minmax(240px,1.8fr);gap:10px;align-items:end}
.ctr-production-grid input,.ctr-production-grid select{
  width:100%;
  border:1px solid #ccd6e4!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(16,24,40,.035)!important;
  height:38px!important;
  min-height:38px!important;
  padding:7px 10px!important;
  color:#18202b!important;
  font-weight:500!important;
}
.ctr-production-grid input:hover,.ctr-production-grid select:hover{border-color:#aebdd0!important}
.ctr-production-grid input:focus,.ctr-production-grid select:focus{border-color:#7f9fc5!important;box-shadow:0 0 0 3px rgba(65,105,155,.10)!important;outline:0!important}
.ctr-production-small{max-width:none}

@media(max-width:1100px){.ctr-premium-service-grid-three{grid-template-columns:1fr 1fr}.ctr-premium-service-grid-three label:last-child{grid-column:1/-1}.ctr-production-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.ctr-service-head-row{flex-direction:column!important}.ctr-add-service-btn{width:100%}.ctr-premium-service-grid-three,.ctr-production-grid{grid-template-columns:1fr}.ctr-premium-service-grid-three label:last-child{grid-column:auto}}
