/* Studio CRM 10.36.85 — Editor de contratos: cor sutil + itens visíveis */
:root{
  --ctr-rose:#f7e9ee;--ctr-rose-b:#e8c5d1;
  --ctr-sage:#eef6f1;--ctr-sage-b:#c9ded1;
  --ctr-blue:#eef4fb;--ctr-blue-b:#cbd9ea;
  --ctr-amber:#fbf5e9;--ctr-amber-b:#e6d6b4;
  --ctr-lilac:#f3eff9;--ctr-lilac-b:#d7cbe8;
  --ctr-ink:#263242;--ctr-muted:#687587;
}
.ctr-editor-shell{background:#fbfcfe!important}
.ctr-editor-form{gap:14px!important}

/* Etapas: coloridas, mas discretas */
.ctr-stepper-shell{background:#fff!important;border:1px solid #e6eaf0!important;border-radius:14px!important;padding:8px!important;box-shadow:0 5px 18px rgba(15,23,42,.04)!important}
.ctr-stepper-item{border-radius:10px!important;transition:.15s ease!important}
.ctr-stepper-item:nth-child(1){background:#f2f8f4!important}
.ctr-stepper-item:nth-child(2){background:#fbf1f4!important}
.ctr-stepper-item:nth-child(3){background:#fff8ed!important}
.ctr-stepper-item:nth-child(4){background:#f2f5fb!important}
.ctr-stepper-item:nth-child(5){background:#f6f2fa!important}
.ctr-stepper-item.is-current{box-shadow:inset 0 0 0 1px #dca0b3!important;background:#f8e7ed!important}
.ctr-stepper-item.is-completed{box-shadow:inset 0 0 0 1px #c7ddd0!important}

/* Cliente */
.ctr-step1-block{border:1px solid #e3e8ef!important;border-radius:13px!important;padding:13px!important;background:#fff!important;box-shadow:0 4px 14px rgba(15,23,42,.025)!important}
.ctr-step1-block:nth-of-type(1){background:linear-gradient(135deg,#fbf2f5,#fff 58%)!important;border-color:#ead1d9!important}
.ctr-step1-block:nth-of-type(2){background:linear-gradient(135deg,#f1f7fb,#fff 60%)!important;border-color:#d7e3ee!important}
.ctr-step1-block:nth-of-type(3){background:linear-gradient(135deg,#f2f8f4,#fff 60%)!important;border-color:#d5e5da!important}
.ctr-origin-card{background:#fff!important;border-color:#dde4ec!important}
.ctr-origin-card.is-active{background:#fff6f8!important;border-color:#d69bad!important;box-shadow:0 0 0 2px rgba(188,68,103,.08)!important}
.ctr-client-summary-inline{background:#f7fbff!important;border-color:#d7e3ef!important}

/* Evento e serviço */
.ctr-premium-panel{border-radius:13px!important;box-shadow:0 5px 16px rgba(15,23,42,.03)!important}
.ctr-premium-service{background:linear-gradient(135deg,#fff7f9,#fff 58%)!important;border-color:#ead1d9!important}
.ctr-premium-cover{background:linear-gradient(135deg,#faf7f0,#fff 62%)!important;border-color:#e8ddc7!important}
.ctr-event-summary{background:linear-gradient(135deg,#f6f9fd,#fff 58%)!important;border-color:#d9e3ee!important}
.ctr-wedding-details{background:linear-gradient(135deg,#fff,#fbfbfd)!important;border-color:#e1e5ec!important}
.ctr-production-panel{background:linear-gradient(135deg,#f6f7fb,#fff 60%)!important;border-color:#dadfec!important}
.ctr-included-panel{background:linear-gradient(135deg,#f4faf6,#fff 62%)!important;border-color:#cfe2d5!important}
.ctr-notes-panel{background:linear-gradient(135deg,#faf7fd,#fff 62%)!important;border-color:#ddd3ea!important}
.ctr-service-card{background:#fff!important;border:1px solid #eadde2!important;box-shadow:0 3px 12px rgba(15,23,42,.025)!important}
.ctr-service-card-secondary{border-color:#d9e2ef!important;background:#fbfdff!important}
.ctr-service-card-custom{border-color:#dfd4e9!important;background:#fdfbff!important}
.ctr-service-badge{background:#f8e9ee!important;color:#8d3d56!important;border:1px solid #e8c5d1!important}

/* Resumo: tons suaves por campo */
.ctr-event-summary-grid .ctr-summary-item{border-radius:10px!important;padding:9px!important;border:1px solid transparent!important}
.ctr-event-summary-grid .ctr-summary-item.tone-red{background:#fcf1f3!important;border-color:#eed3da!important}
.ctr-event-summary-grid .ctr-summary-item.tone-green{background:#f1f8f3!important;border-color:#d2e5d7!important}
.ctr-event-summary-grid .ctr-summary-item.tone-amber{background:#fbf6ea!important;border-color:#e9dab9!important}
.ctr-event-summary-grid .ctr-summary-item:nth-child(1){background:#f2f6fb!important;border-color:#d8e2ee!important}
.ctr-event-summary-grid .ctr-summary-item input{background:rgba(255,255,255,.94)!important}
.ctr-event-summary-grid .ctr-summary-item::after,.ctr-production-grid label::after{content:"Aparece no contrato";display:inline-flex;width:max-content;margin-top:5px;padding:2px 7px;border-radius:999px;background:#edf6f0;color:#557362;font-size:8px;font-weight:800;letter-spacing:.02em}
.ctr-production-grid label:nth-child(2)::after{content:none}

/* Casamento: manter colorido do sistema, mas mais refinado */
.ctr-moment-card{border-radius:12px!important;box-shadow:none!important}
.ctr-moment-card.moment-ceremony{background:#fff6f7!important;border-color:#ead2d7!important}
.ctr-moment-card.moment-reception{background:#f3f9f5!important;border-color:#d2e4d7!important}
.ctr-moment-card.moment-making{background:#fff9ee!important;border-color:#eadcbc!important}

/* Itens inclusos: mais evidentes e editáveis, sem área apertada */
.ctr-included-preview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:8px 0 10px!important}
.ctr-included-preview>div{display:flex!important;align-items:flex-start!important;gap:7px!important;background:#fff!important;border:1px solid #dbe9df!important;border-radius:9px!important;padding:8px 9px!important;min-height:36px!important}
.ctr-included-preview>div:nth-child(2n){background:#fbf7fc!important;border-color:#e3d9ea!important}
.ctr-included-preview>div span{display:grid!important;place-items:center!important;flex:0 0 18px!important;width:18px!important;height:18px!important;border-radius:999px!important;background:#eef7f1!important;color:#43825d!important;font-weight:900!important;font-size:10px!important}
.ctr-included-preview>div p{margin:1px 0 0!important;color:#344054!important;font-size:10px!important;line-height:1.35!important}
.ctr-inline-editor{border:1px solid #d8e5dc!important;border-radius:11px!important;background:#fff!important;padding:0!important;overflow:visible!important}
.ctr-inline-editor>summary{list-style:none!important;cursor:pointer!important;padding:10px 12px!important;border-bottom:1px solid #e4ece7!important;background:#f7fbf8!important;color:#395748!important;font-size:10px!important;font-weight:900!important}
.ctr-inline-editor>summary::-webkit-details-marker{display:none!important}
.ctr-inline-editor textarea{display:block!important;width:calc(100% - 20px)!important;margin:10px!important;overflow:hidden!important;resize:vertical!important;min-height:132px!important;background:#fff!important;border-color:#d8e2dc!important}
.ctr-inline-editor textarea+textarea{min-height:92px!important;background:#fbfcff!important;border-color:#dce3ee!important}

/* Valores */
.ctr-editor-grid.three-columns>label{background:#fff!important;border:1px solid #e4e8ee!important;border-radius:11px!important;padding:9px!important}
.ctr-editor-grid.three-columns>label:nth-child(1),.ctr-editor-grid.three-columns>label:nth-child(3){background:#f3f8f5!important;border-color:#d6e5da!important}
.ctr-editor-grid.three-columns>label:nth-child(2){background:#fff7f8!important;border-color:#ecd7dc!important}
.ctr-editor-grid.three-columns>label:nth-child(4),.ctr-editor-grid.three-columns>label:nth-child(5){background:#f4f7fb!important;border-color:#dbe4ef!important}
.ctr-editor-grid.three-columns>label:nth-child(6),.ctr-editor-grid.three-columns>label:nth-child(7),.ctr-editor-grid.three-columns>label:nth-child(8){background:#fbf7ef!important;border-color:#e9ddc5!important}
.ctr-finance-summary article:nth-child(1){background:#f4f8fb!important;border-color:#dae5ee!important}
.ctr-finance-summary article:nth-child(2){background:#fff5f6!important;border-color:#efd6da!important}
.ctr-finance-summary article:nth-child(3){background:#f1f8f3!important;border-color:#d0e4d5!important}
.ctr-finance-summary article:nth-child(4),.ctr-finance-summary article:nth-child(5){background:#fbf7ef!important;border-color:#e8dcc5!important}
.ctr-payment-card{background:#fbfdff!important;border-color:#dce5ef!important}
.ctr-discount-contract-toggle{background:#fff9ee!important;border-color:#eadcbc!important}

/* Cláusulas */
.ctr-clauses-helper,.ctr-clause-application-summary{background:#f5f8fc!important;border-color:#dbe4ef!important}
.ctr-clause-row{border:1px solid #e2e7ee!important;border-left:4px solid #d9c3d1!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 10px rgba(15,23,42,.025)!important}
.ctr-clause-row:nth-of-type(4n+1){border-left-color:#d8a8b7!important;background:#fffafb!important}
.ctr-clause-row:nth-of-type(4n+2){border-left-color:#a9c7b2!important;background:#fbfefc!important}
.ctr-clause-row:nth-of-type(4n+3){border-left-color:#aebfd8!important;background:#fbfdff!important}
.ctr-clause-row:nth-of-type(4n){border-left-color:#d8c28f!important;background:#fffdf8!important}
.ctr-clause-visibility-bar{background:#f7f9fc!important;border-radius:8px!important;padding:7px!important}

/* Revisão */
.ctr-review-grid{gap:10px!important}
.ctr-review-grid>article,.ctr-preview-card,.ctr-preview-contract-card{border-radius:12px!important;border-color:#e0e5ec!important;box-shadow:0 4px 14px rgba(15,23,42,.025)!important}
.ctr-review-grid>article:nth-child(5n+1),.ctr-preview-card:nth-child(5n+1){background:#fbf3f6!important;border-color:#ead3da!important}
.ctr-review-grid>article:nth-child(5n+2),.ctr-preview-card:nth-child(5n+2){background:#f3f8f5!important;border-color:#d2e4d8!important}
.ctr-review-grid>article:nth-child(5n+3),.ctr-preview-card:nth-child(5n+3){background:#f3f7fc!important;border-color:#d7e2ef!important}
.ctr-review-grid>article:nth-child(5n+4),.ctr-preview-card:nth-child(5n+4){background:#fff9ef!important;border-color:#eadfc8!important}
.ctr-review-grid>article:nth-child(5n),.ctr-preview-card:nth-child(5n){background:#f8f4fb!important;border-color:#e0d6e9!important}

@media(max-width:900px){
  .ctr-included-preview{grid-template-columns:1fr!important}
  .ctr-stepper-shell{padding:6px!important}
}
