/* v742 — canonical Sales payment modal. Reference: clean RTL CRM payment dialog. */
body[data-page="sales-operations"] .modal-backdrop:has(.so742-payment-modal){
  background:rgba(17,31,47,.44)!important;
  backdrop-filter:blur(3px);
}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal){
  width:min(1180px,calc(100vw - 34px))!important;
  max-width:1180px!important;
  max-height:min(900px,calc(100vh - 24px))!important;
  border-radius:22px!important;
  border:1px solid rgba(31,72,108,.13)!important;
  box-shadow:0 28px 80px rgba(15,35,54,.25)!important;
  overflow:hidden!important;
  background:#fff!important;
}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-head{
  min-height:62px!important;padding:13px 20px!important;background:#fff!important;border-bottom:1px solid #e7edf2!important;
}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-head h3{font-size:20px!important;font-weight:900!important;color:#173652!important}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-body{padding:0!important;background:#f7f9fb!important;overflow:auto!important}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-actions{
  min-height:70px!important;padding:12px 20px!important;gap:10px!important;background:#fff!important;border-top:1px solid #e2e9ef!important;
}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-actions .btn{
  min-height:46px!important;padding-inline:22px!important;border-radius:11px!important;font-size:15px!important;font-weight:850!important;
}
body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-actions .btn-primary{background:#1667c9!important;border-color:#1667c9!important;box-shadow:0 7px 18px rgba(22,103,201,.18)!important}
body[data-page="sales-operations"] .so742-payment-modal{display:block!important;color:#263f53!important;font-size:15px!important;line-height:1.65!important}
body[data-page="sales-operations"] .so742-payment-head{padding:17px 20px 15px;background:#fff;border-bottom:1px solid #e6edf2;display:grid;gap:9px}
body[data-page="sales-operations"] .so742-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body[data-page="sales-operations"] .so742-mode-badge,body[data-page="sales-operations"] .so742-product-badge{display:inline-flex;align-items:center;min-height:30px;padding:4px 11px;border-radius:999px;font-size:13px;font-weight:900;white-space:nowrap}
body[data-page="sales-operations"] .so742-mode-badge.is-new{background:#e9f8ef;color:#267247;border:1px solid #bfe6cf}
body[data-page="sales-operations"] .so742-mode-badge.is-edit{background:#fff2db;color:#9a6513;border:1px solid #efd19a}
body[data-page="sales-operations"] .so742-product-badge{background:#edf4ff;color:#2f5f9b;border:1px solid #d2e2f7}
body[data-page="sales-operations"] .so742-customer-line{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;color:#5d7181;font-size:14px}
body[data-page="sales-operations"] .so742-customer-line b{font-size:15.5px;color:#1f3c53;font-weight:900}
body[data-page="sales-operations"] .so742-return-alert{margin:14px 20px 0;padding:11px 13px;border:1px solid #f0c4bd;background:#fff1ef;border-radius:12px;display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;color:#91453c;font-size:14px}
body[data-page="sales-operations"] .so742-return-alert b{font-size:14.5px}.so742-return-alert small{margin-inline-start:auto;color:#87645f}
body[data-page="sales-operations"] .so742-payment-layout{direction:ltr;display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.55fr);gap:16px;padding:16px 20px 20px;align-items:start}
body[data-page="sales-operations"] .so742-history-pane,body[data-page="sales-operations"] .so742-form-pane{direction:rtl;display:grid;gap:13px;min-width:0}
body[data-page="sales-operations"] .so742-history-card,body[data-page="sales-operations"] .so742-money-summary,body[data-page="sales-operations"] .so742-form-card,body[data-page="sales-operations"] .so742-identity-card{background:#fff;border:1px solid #dde7ee;border-radius:16px;box-shadow:0 7px 24px rgba(38,63,83,.055)}
body[data-page="sales-operations"] .so742-history-card>header,body[data-page="sales-operations"] .so742-identity-card>header{display:flex;align-items:center;gap:10px;padding:14px 15px;border-bottom:1px solid #edf1f4}
body[data-page="sales-operations"] .so742-history-card>header>span,body[data-page="sales-operations"] .so742-identity-card>header>span{width:38px;height:38px;border-radius:11px;background:#edf5ff;color:#286bb0;display:grid;place-items:center;flex:0 0 38px}
body[data-page="sales-operations"] .so742-history-card>header svg,body[data-page="sales-operations"] .so742-identity-card>header svg{width:20px;height:20px}
body[data-page="sales-operations"] .so742-history-card>header div,body[data-page="sales-operations"] .so742-identity-card>header div{display:grid;gap:2px;min-width:0}
body[data-page="sales-operations"] .so742-history-card>header b,body[data-page="sales-operations"] .so742-identity-card>header b{font-size:15.5px;color:#233f55;font-weight:900}
body[data-page="sales-operations"] .so742-history-card>header small,body[data-page="sales-operations"] .so742-identity-card>header small{font-size:12.8px;color:#718493;line-height:1.55}
body[data-page="sales-operations"] .so742-history-list{padding:8px 14px 12px;display:grid}
body[data-page="sales-operations"] .so742-history-row{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;min-height:78px;padding:10px 0}
body[data-page="sales-operations"] .so742-history-row:not(:last-child):before{content:"";position:absolute;right:8px;top:31px;bottom:-11px;border-right:2px dashed #d8e1e8}
body[data-page="sales-operations"] .so742-history-dot{width:16px;height:16px;border-radius:50%;margin-top:5px;border:4px solid #eef2f5;background:#8c9aa5;z-index:1}
body[data-page="sales-operations"] .so742-history-dot.is-green{background:#32a264;border-color:#e5f5ec}.so742-history-dot.is-amber{background:#e49b2e;border-color:#fff1d9}.so742-history-dot.is-violet{background:#7463c2;border-color:#eeeafe}.so742-history-dot.is-red{background:#cc5b51;border-color:#fde7e4}
body[data-page="sales-operations"] .so742-history-copy{display:grid;gap:3px;min-width:0}.so742-history-copy>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.so742-history-copy b{font-size:14.5px;color:#28465d;font-weight:900}.so742-history-copy small{font-size:12.8px;color:#758895}.so742-history-copy strong{font-size:14.5px;color:#1e3d55;font-weight:900}.so742-history-copy em{font-style:normal;font-size:12.5px;color:#a14d44;background:#fff2ef;border-radius:8px;padding:5px 7px;margin-top:3px}
body[data-page="sales-operations"] .so742-history-row.is-current{background:#fffaf0;border-radius:10px;padding-inline:7px}.so742-history-row.is-cancelled{opacity:.7}.so742-history-row.is-draft .so742-history-copy strong{color:#98a5af}
body[data-page="sales-operations"] .so742-status{display:inline-flex;align-items:center;min-height:25px;padding:2px 8px;border-radius:999px;font-size:11.8px;font-weight:850;white-space:nowrap}.so742-status.is-green{background:#e9f7ef;color:#277649}.so742-status.is-amber{background:#fff3de;color:#9a6618}.so742-status.is-violet{background:#f0edff;color:#5e52a1}.so742-status.is-red{background:#feecea;color:#a34b43}.so742-status.is-muted{background:#eef2f5;color:#697985}
body[data-page="sales-operations"] .so742-history-empty{padding:24px 10px;display:grid;place-items:center;text-align:center;gap:6px;color:#718493}.so742-history-empty span{color:#7ca0c0}.so742-history-empty svg{width:30px;height:30px}.so742-history-empty b{font-size:14.5px;color:#405a6d}.so742-history-empty small{font-size:12.8px}
body[data-page="sales-operations"] .so742-money-summary{padding:13px 15px;display:grid;gap:9px}.so742-money-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid #edf1f4}.so742-money-summary>div.is-total{padding:2px 0 0;border-bottom:0}.so742-money-summary span{font-size:13.5px;color:#687e8f}.so742-money-summary b{font-size:14.5px;color:#2b465a;font-weight:900;text-align:left}.so742-money-summary b.is-green{color:#218355}.so742-money-summary b.is-blue{color:#1768c6;font-size:16px}.so742-money-summary small{font-size:12.5px;line-height:1.65;color:#8b6b2e;background:#fff8e8;border-radius:8px;padding:7px 8px}
body[data-page="sales-operations"] .so742-identity-card{overflow:hidden}.so742-identity-card .so742-form-grid{padding:13px 15px}
body[data-page="sales-operations"] .so742-form-card{padding:15px}
body[data-page="sales-operations"] .so742-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px;align-items:start}.so742-form-grid .field{min-width:0!important;margin:0!important}.so742-form-grid .field.full{grid-column:1/-1!important}
body[data-page="sales-operations"] .so742-payment-modal .field label{display:block;margin:0 0 5px!important;font-size:13.5px!important;line-height:1.45!important;font-weight:850!important;color:#334f64!important}.so742-payment-modal .field label small{font-size:12.5px!important;color:#7c8d99!important;font-weight:650!important}
body[data-page="sales-operations"] .so742-payment-modal :is(input,select,textarea){width:100%;box-sizing:border-box;border:1px solid #cedae3!important;background:#fff!important;color:#243f54!important;border-radius:10px!important;box-shadow:none!important;font-size:14.5px!important;transition:border-color .16s,box-shadow .16s,background .16s}
body[data-page="sales-operations"] .so742-payment-modal :is(input,select){height:44px!important;min-height:44px!important;padding:8px 10px!important}.so742-payment-modal textarea{min-height:76px!important;padding:9px 10px!important;line-height:1.65!important;resize:vertical!important}
body[data-page="sales-operations"] .so742-payment-modal :is(input,select,textarea):focus{outline:0!important;border-color:#4e91d9!important;box-shadow:0 0 0 3px rgba(45,119,195,.10)!important}
body[data-page="sales-operations"] .so742-amount-field input{font-size:17px!important;font-weight:900!important;color:#173e62!important;background:#fbfdff!important}
body[data-page="sales-operations"] .so742-payment-modal .tiam-time-select{height:44px!important;min-height:44px!important}.so742-payment-modal .date-control{min-height:44px!important}.so742-payment-modal .calendar-trigger{width:44px!important;height:44px!important;min-width:44px!important}
body[data-page="sales-operations"] .so742-payment-modal .so-v647-transfer-help{grid-column:1/-1!important}.so742-payment-modal .so-v647-transfer-help small{display:block;padding:7px 9px;border-radius:8px;background:#f6f9fb;color:#657b8c;font-size:12.3px!important;line-height:1.65}
body[data-page="sales-operations"] .so742-final-question{margin-top:14px;padding:13px;border-radius:13px;background:#f3f8ff;border:1px solid #d8e8fb;display:grid;gap:11px}.so742-question-copy{display:flex;align-items:flex-start;gap:9px}.so742-question-copy>span{color:#2870bd;margin-top:1px}.so742-question-copy svg{width:20px;height:20px}.so742-question-copy>div{display:grid;gap:2px}.so742-question-copy b{font-size:14.5px;color:#28475e;font-weight:900}.so742-question-copy small{font-size:12.5px;color:#698092}
body[data-page="sales-operations"] .so742-intent-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.so742-intent-options label{position:relative;display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid #ccdbe8;border-radius:11px;background:#fff;cursor:pointer;min-height:60px}.so742-intent-options label.is-selected{border-color:#3d83cd;background:#eef6ff;box-shadow:0 0 0 2px rgba(61,131,205,.08)}.so742-intent-options input{width:17px!important;height:17px!important;min-height:17px!important;margin:3px 0 0!important;accent-color:#1768c6}.so742-intent-options span{display:grid;gap:2px}.so742-intent-options b{font-size:13.5px;color:#304b60}.so742-intent-options small{font-size:12.2px;color:#718493;line-height:1.5}
body[data-page="sales-operations"] .so-v742-inline-launch{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0}.so-v742-inline-launch>div{display:grid;gap:3px}.so-v742-inline-launch b{font-size:14.5px}.so-v742-inline-launch small{font-size:12.8px;color:#6f8291}
@media(max-width:940px){
  body[data-page="sales-operations"] #modal:has(.so742-payment-modal){width:min(760px,calc(100vw - 18px))!important;max-height:calc(100vh - 14px)!important}
  body[data-page="sales-operations"] .so742-payment-layout{grid-template-columns:1fr;padding:12px 13px 16px}.so742-form-pane{order:1}.so742-history-pane{order:2}
}
@media(max-width:620px){
  body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-head{padding:10px 12px!important;min-height:54px!important}.so742-payment-head{padding:13px 12px!important}.so742-customer-line{display:grid;gap:3px}.so742-payment-layout{padding:10px!important;gap:10px}.so742-form-card{padding:11px!important}.so742-form-grid{grid-template-columns:1fr!important;gap:9px!important}.so742-form-grid .field.full{grid-column:auto!important}.so742-intent-options{grid-template-columns:1fr!important}.so742-payment-modal :is(input,select,textarea){font-size:16px!important}.so742-history-card>header,.so742-identity-card>header{padding:12px!important}.so742-history-list{padding-inline:11px!important}.so742-money-summary{padding:12px!important}body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-actions{padding:9px 10px!important}body[data-page="sales-operations"] #modal:has(.so742-payment-modal)>.modal-actions .btn{flex:1;min-width:0;padding-inline:10px!important;font-size:14px!important}
}
