:root {
  --saas-accent: #D8AA7F;
  --saas-ink: #2F2F2F;
  --saas-muted: #6D6A67;
  --saas-line: #EAE6E1;
  --saas-surface: #FFFFFF;
  --saas-canvas: #F7F7F5;
}

.saas-module { display: grid; gap: 18px; animation: saas-fade .18s ease-out; }
.saas-module *, .saas-modal * { box-sizing: border-box; }
.saas-module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.saas-eyebrow { color: var(--saas-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 5px; }
.saas-module h2 { margin: 0; font-size: 26px; color: var(--saas-ink); }
.saas-module p { margin: 5px 0 0; color: var(--saas-muted); }
.saas-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.saas-button { border: 1px solid var(--saas-line); border-radius: 8px; background: #fff; color: var(--saas-ink); min-height: 38px; padding: 0 13px; font: inherit; font-weight: 750; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.saas-button:hover { background: #F2ECE6; border-color: #D8AA7F; }
.saas-button:focus-visible { outline: 3px solid rgba(216,170,127,.36); outline-offset: 2px; }
.saas-button.primary { background: #2F2F2F; color: #fff; border-color: #2F2F2F; }
.saas-button.primary:hover { background: #4a4541; }
.saas-button.danger { color: #C62828; border-color: #e8b5b1; }
.saas-filter-row { display: grid; grid-template-columns: minmax(180px,1fr) 190px 150px; gap: 10px; padding: 14px; border: 1px solid var(--saas-line); background: #fff; border-radius: 10px; }
.proposal-workspace { gap:16px; }
.proposal-period-summary { display:flex; align-items:baseline; gap:8px; color:var(--saas-muted); font-size:12px; }
.proposal-period-summary span { color:#8B8585; font-size:10px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.proposal-period-summary strong { color:var(--saas-ink); font-size:13px; }.proposal-period-summary small { color:#8B8585; }
.proposal-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.proposal-kpi { position:relative; display:grid; gap:4px; min-height:122px; padding:15px; overflow:hidden; border:1px solid var(--saas-line); border-radius:10px; background:#fff; box-shadow:0 7px 18px rgba(47,47,47,.025); }
.proposal-kpi::after { position:absolute; right:0; bottom:0; left:0; height:3px; background:#8B8585; content:""; }.proposal-kpi.positive::after { background:#2E7D32; }.proposal-kpi.danger::after { background:#C62828; }.proposal-kpi.approval::after { background:#1565C0; }.proposal-kpi.total::after { background:#D8AA7F; }
.proposal-kpi > span { color:var(--saas-muted); font-size:11px; font-weight:800; }.proposal-kpi > strong { color:var(--saas-ink); font-size:26px; line-height:1.05; }.proposal-kpi > small { color:var(--saas-ink); font-size:14px; font-weight:800; }.proposal-kpi > em { margin-top:auto; color:#8B8585; font-size:10px; font-style:normal; }
.proposal-global-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }.proposal-global-metrics .metric small { display:block; margin-top:5px; color:var(--saas-muted); font-size:12px; font-weight:700; }
.proposal-expiry-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; padding:15px 16px; border:1px solid #E7C2BD; border-radius:10px; background:#FFFDFC; }.proposal-expiry-panel.empty { border-color:var(--saas-line); background:#FCFCFB; }.proposal-expiry-panel h3 { margin:0; color:var(--saas-ink); font-size:16px; }.proposal-expiry-panel p { margin:5px 0 0; font-size:12px; }.proposal-expiry-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.proposal-expiry-action { white-space:nowrap; }
.proposal-filter-row { grid-template-columns:repeat(4,minmax(145px,1fr)); align-items:end; }.proposal-filter-row .saas-field > span { color:var(--saas-muted); font-size:11px; font-weight:800; }.proposal-custom-dates { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding-top:11px; border-top:1px solid var(--saas-line); }.proposal-filter-actions { grid-column:1/-1; justify-content:flex-end; }
.saas-input, .saas-select, .saas-textarea { width: 100%; border: 1px solid #ded8d1; border-radius: 8px; background: #fff; color: var(--saas-ink); padding: 10px 11px; font: inherit; }
.saas-textarea { min-height: 92px; resize: vertical; }
.saas-table-wrap { overflow: auto; border: 1px solid var(--saas-line); border-radius: 10px; background: #fff; }
.saas-table { border-collapse: collapse; width: 100%; min-width: 740px; font-size: 14px; }
.saas-table th { color: var(--saas-muted); text-align: left; font-size: 12px; font-weight: 800; padding: 13px 15px; border-bottom: 1px solid var(--saas-line); background: #FCFCFB; }
.saas-table td { padding: 14px 15px; border-bottom: 1px solid #f1eeea; vertical-align: middle; }
.saas-table tr:last-child td { border-bottom: 0; }
.saas-table tbody tr:hover { background: #FDFBF8; }
.saas-product-name { font-weight: 800; color: var(--saas-ink); }
.saas-subline { display: block; color: var(--saas-muted); font-size: 12px; margin-top: 3px; }
.saas-badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; background: #F2ECE6; color: #685847; font-size: 12px; font-weight: 800; white-space: nowrap; }
.saas-badge.success { background: #e8f4e9; color: #2E7D32; }.saas-badge.warning { background: #fff4db; color: #966700; }.saas-badge.muted { background: #f0eeeb; color: #6D6A67; }.saas-badge.error { background: #feeceb; color: #C62828; }
.saas-empty { padding: 46px 22px; text-align: center; color: var(--saas-muted); }
.saas-modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; background: rgba(47,47,47,.40); animation: saas-fade .15s ease-out; }
.saas-modal { width: min(1160px, 100%); max-height: calc(100vh - 44px); overflow: auto; background: #fff; border: 1px solid var(--saas-line); border-radius: 12px; box-shadow: 0 24px 70px rgba(47,47,47,.22); }
.saas-modal-head, .saas-modal-foot { position: sticky; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--saas-line); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }.saas-modal-head { top: 0; }.saas-modal-foot { bottom: 0; border-bottom: 0; border-top: 1px solid var(--saas-line); justify-content: flex-end; flex-wrap: wrap; }
.saas-modal-head h3 { margin: 0; font-size: 18px; }.saas-modal-body { padding: 20px; }
.saas-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }.saas-form-grid .full { grid-column: 1/-1; }.saas-field { display: grid; gap: 6px; min-width: 0; }.saas-field label { color: #56514c; font-size: 12px; font-weight: 800; }.saas-field small { color: var(--saas-muted); font-size: 11px; line-height: 1.35; }
.saas-totals { width: 100%; padding: 14px; background: #FCFCFB; border: 1px solid var(--saas-line); border-radius: 9px; }.saas-total-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--saas-muted); }.saas-total-row.strong { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--saas-accent); font-weight: 850; color: var(--saas-ink); font-size: 17px; }
.saas-proposal-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.saas-proposal-main { min-width: 0; }
.saas-proposal-summary { position: sticky; top: 86px; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--saas-line); border-radius: 10px; background: #FCFCFB; }
.saas-proposal-summary h4 { margin: -4px 0 2px; font-size: 16px; }
.saas-summary-compact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 10px; padding-bottom: 0; border-bottom: 1px solid var(--saas-line); }.saas-summary-compact .saas-summary-row { min-width: 0; padding: 0 0 5px; border: 0; }.saas-summary-compact .saas-summary-row.wide { grid-column: 1/-1; }.saas-summary-compact .saas-summary-row span { font-size: 10px; }.saas-summary-compact .saas-summary-row strong { font-size: 12px; }.saas-proposal-summary > .saas-eyebrow { margin: 0; }.saas-proposal-summary .saas-totals { padding: 9px 11px; }.saas-proposal-summary .saas-final-only { padding: 0; border: 0 !important; font-size: 15px !important; }.saas-proposal-summary .saas-final-only strong { font-size: 16px; }.saas-card-installment-preview { display: grid; align-content: center; gap: 2px; padding: 8px 10px; border-left: 1px solid var(--saas-line); }.saas-card-installment-preview span,.saas-card-installment-preview small { color: var(--saas-muted); font-size: 10px; }.saas-card-installment-preview strong { color: var(--saas-ink); font-size: 15px; }
.saas-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.saas-section-heading > div { display: flex; align-items: center; gap: 9px; }.saas-section-heading > div > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #F2ECE6; color: #765d46; font-size: 11px; font-weight: 850; }.saas-section-heading h4 { margin: 0; font-size: 16px; }.saas-section-heading p { max-width: 430px; margin: 0; color: var(--saas-muted); font-size: 12px; text-align: right; }
.saas-items-heading { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--saas-line); }
.saas-line { position: relative; display: grid; gap: 8px; margin-bottom: 8px; padding: 10px 11px 10px 23px; border: 1px solid var(--saas-line); border-radius: 9px; background: #fff; }
.saas-line.excluded { opacity: .62; background: #FCFCFB; }
.saas-line-name-label { display: flex !important; align-items: center; width: max-content; min-height: 18px; gap: 7px !important; cursor: pointer; }.saas-line-name-label .line-included { appearance: auto !important; display: inline-block !important; width: 16px !important; min-width: 16px !important; max-width: 16px !important; height: 16px !important; min-height: 16px !important; max-height: 16px !important; margin: 0 !important; padding: 0 !important; flex: 0 0 16px; accent-color: var(--saas-accent); cursor: pointer; }.saas-line-drag-handle { position: absolute; top: 9px; bottom: 9px; left: 6px; width: 6px; padding: 0; border: 0; border-radius: 0; background: repeating-linear-gradient(to bottom, #C9C2BA 0 2px, transparent 2px 5px); cursor: grab; touch-action: none; opacity: .52; }.saas-line-drag-handle:hover,.saas-line-drag-handle:focus-visible { opacity: 1; outline: 0; background: repeating-linear-gradient(to bottom, var(--saas-accent) 0 2px, transparent 2px 5px); }.saas-line-drag-handle:active { cursor: grabbing; }.saas-line.saas-line-dragging { opacity: .52; }.saas-line.saas-line-drop-before { box-shadow: inset 0 3px 0 var(--saas-accent); }.saas-line.saas-line-drop-after { box-shadow: inset 0 -3px 0 var(--saas-accent); }
.saas-line-grid { display: grid; grid-template-columns: minmax(190px,1.45fr) minmax(130px,.9fr) 88px 108px; gap: 10px; align-items: end; }
.saas-line-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding-top: 7px; border-top: 1px solid #F1EEEA; }.saas-line-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }.saas-line-actions .saas-button { min-height: 34px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.saas-line-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; color: var(--saas-muted); font-size: 11px; }.saas-line-preview .line-final { color: var(--saas-ink); }
.saas-check { display: flex; align-items: center; min-height: 40px; gap: 7px; font-size: 13px; font-weight: 750; white-space: nowrap; }.saas-check input { width: 17px; height: 17px; accent-color: var(--saas-accent); }
.saas-percent-input { position: relative; }.saas-percent-input .saas-input { padding-right: 30px; }.saas-percent-input > span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--saas-muted); font-size: 12px; pointer-events: none; }
.saas-summary-row { display: grid; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid var(--saas-line); }.saas-summary-row span { color: var(--saas-muted); font-size: 11px; }.saas-summary-row strong { font-size: 13px; overflow-wrap: anywhere; }
.saas-calculation-note { margin: 0 !important; padding: 10px; border-radius: 7px; background: #F2ECE6; color: #6d5946 !important; font-size: 11px; line-height: 1.45; }
.saas-notes-field { margin-top: 18px; }
.saas-lock-note { display: inline-flex; margin-left: 5px; padding: 2px 5px; border-radius: 5px; background: #F2ECE6; color: #765d46; font-size: 9px; text-transform: uppercase; }
.saas-payment-options { display: grid; gap: 9px; }
.saas-payment-option { display: grid; grid-template-columns: minmax(190px,1fr) 130px 130px minmax(200px,1.2fr); align-items: end; gap: 12px; padding: 12px 14px; border: 1px solid var(--saas-line); border-radius: 9px; background: #FCFCFB; opacity: .68; transition: border-color .15s, background .15s, opacity .15s; }
.saas-payment-option.selected { border-color: #D8AA7F; background: #FFFCF9; opacity: 1; }
.saas-payment-check { display: flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; }.saas-payment-check input { width: 18px; height: 18px; accent-color: var(--saas-accent); }.saas-payment-check span { display: grid; gap: 2px; }.saas-payment-check strong { font-size: 13px; }.saas-payment-check small { color: var(--saas-muted); font-size: 10px; }
.payment-entry-fields { min-width: 210px; }.payment-entry-grid { display: grid; grid-template-columns: minmax(94px,1fr) minmax(86px,1fr); gap: 7px; }.payment-entry-grid > div { display: grid; gap: 4px; }.payment-entry-grid small { color: var(--saas-muted); font-size: 9px; font-weight: 700; }.payment-entry-grid .saas-input { min-width: 0; }
.cash-entry-splits { grid-column: 1/-1; display: grid; gap: 9px; padding-top: 2px; }.cash-entry-splits-head { display: grid; gap: 2px; }.cash-entry-splits-head strong { font-size: 12px; }.cash-entry-splits-head small,.cash-entry-balance { color: var(--saas-muted); font-size: 10px; }.cash-entry-splits-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }.cash-entry-split { display: grid; gap: 5px; min-width: 0; padding: 9px; border: 1px solid var(--saas-line); border-radius: 7px; background: #fff; }.cash-entry-split .payment-entry-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.cash-entry-split .saas-input,.cash-entry-split .saas-percent-input { width: 100%; min-width: 0; }.cash-entry-split > small { color: var(--saas-muted); font-size: 10px; font-weight: 700; }.cash-entry-balance.ok { color: var(--saas-success); }.cash-entry-balance.red { color: var(--saas-danger); }
.payment-option-result { align-self: center; color: var(--saas-muted); font-size: 11px; text-align: right; }.payment-option-result strong { color: var(--saas-ink); }.payment-option-result span { display: block; margin-top: 2px; }
.saas-payment-preview { display: grid; gap: 8px; padding-top: 4px; }.saas-payment-preview > .saas-eyebrow { margin: 4px 0 0; }.saas-payment-preview-row { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid var(--saas-line); }.saas-payment-preview-row.payment-special { margin-top: 2px; padding: 10px; border: 1px solid #D8AA7F; border-radius: 8px; background: #FFFCF9; }.saas-payment-preview-row > strong { font-size: 12px; }.saas-payment-preview-row > span { color: var(--saas-muted); font-size: 11px; }.saas-payment-preview-row > span strong { color: var(--saas-ink); }.saas-payment-preview-row > span span,.saas-payment-preview-row > span em { display: block; }.saas-payment-preview-row > span em { margin-top: 3px; color: var(--saas-muted); font-size: 10px; font-style: normal; }.saas-empty-payment { margin: 0 !important; color: var(--saas-muted); font-size: 11px; }
.saas-sales-modal { width: min(1180px,100%); }.saas-sales-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--saas-line); margin: -4px 0 18px; }.saas-sales-tabs strong { padding: 0 2px 10px; color: var(--saas-muted); font-size: 12px; text-transform: uppercase; }.saas-sales-tabs strong.active { color: var(--saas-accent); border-bottom: 2px solid var(--saas-accent); }.saas-sales-toolbar { display: flex; align-items: end; gap: 13px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid var(--saas-line); border-radius: 9px; background: #FCFCFB; }.saas-sales-toolbar .saas-field { width: 210px; }.saas-sales-toolbar small { padding-bottom: 10px; color: var(--saas-muted); font-size: 11px; }.saas-sales-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 22px; }.saas-sales-layout > aside { padding-left: 20px; border-left: 1px solid var(--saas-line); }.saas-sales-items,.saas-sales-payments { display: grid; gap: 8px; }.saas-sales-item,.saas-sales-payment { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--saas-line); border-radius: 9px; background: #fff; }.saas-sales-item.selected,.saas-sales-payment.selected { border-color: var(--saas-accent); background: #FFFCF9; }.saas-sales-item label,.saas-sales-payment { cursor: pointer; }.saas-sales-item label { display: flex; align-items: center; gap: 10px; min-width: 0; }.saas-sales-item label input,.saas-sales-payment input { width: 18px; height: 18px; accent-color: var(--saas-accent); }.saas-sales-item span,.saas-sales-payment span { display: grid; gap: 3px; min-width: 0; }.saas-sales-item small,.saas-sales-payment small { color: var(--saas-muted); font-size: 11px; }.saas-sales-item > strong { white-space: nowrap; font-size: 15px; }.saas-sales-payment { align-items: flex-start; }.saas-sales-total { display: grid; gap: 4px; margin-top: 14px; padding: 17px; border: 1px solid #E4C6AA; border-radius: 10px; background: #FFFCF9; }.saas-sales-total span { color: var(--saas-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.saas-sales-total strong { font-size: 25px; }.saas-sales-total small { color: var(--saas-muted); font-size: 11px; }.saas-sales-modal .saas-modal-head small { display: block; max-width: 630px; margin-top: 4px; color: var(--saas-muted); font-size: 11px; font-weight: 500; }
.saas-final-only { margin: 0; padding: 2px 0 8px; border-top: 0 !important; font-size: 19px !important; }
.saas-commercial-admin { margin-top: 18px; }.saas-admin-description { margin: 0 0 16px; color: var(--saas-muted); }.saas-rate-details { margin-top: 16px; padding: 13px 14px; border: 1px solid var(--saas-line); border-radius: 9px; background: #FCFCFB; }.saas-rate-details summary { cursor: pointer; font-weight: 800; }.saas-rate-grid { display: grid; grid-template-columns: repeat(5,minmax(90px,1fr)); gap: 10px; margin-top: 14px; }.saas-rate-grid label { display: grid; gap: 5px; color: var(--saas-muted); font-size: 11px; font-weight: 700; }
.saas-modal-nested { z-index: 700; }.saas-composition-modal { width: min(1180px,100%); }.saas-composition-items { display: grid; gap: 9px; }.saas-composition-row { display: grid; grid-template-columns: minmax(170px,1.25fr) 105px 145px 125px minmax(170px,1fr) auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid var(--saas-line); border-radius: 9px; background: #FCFCFB; }.saas-composition-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding: 13px 14px; border: 1px solid #e4c6aa; border-radius: 8px; background: #FFFCF9; }.saas-composition-total strong { font-size: 17px; }.saas-pricing-modal { width: min(1020px,100%); }.saas-pricing-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 18px; align-items: start; }.saas-pricing-summary { position: sticky; top: 0; display: grid; gap: 9px; padding: 16px; border: 1px solid var(--saas-line); border-radius: 10px; background: #FCFCFB; }.saas-pricing-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; padding: 9px 0; border-bottom: 1px solid var(--saas-line); color: var(--saas-muted); }.saas-pricing-row strong { color: var(--saas-ink); }.saas-pricing-row small { width: 100%; text-align: right; font-weight: 800; }.saas-pricing-row.strong { padding-top: 13px; border-bottom: 0; font-size: 15px; }.saas-pricing-row.positive strong,.saas-pricing-row.positive small { color: #2E7D32; }.saas-pricing-row.negative strong,.saas-pricing-row.negative small { color: #C62828; }.saas-pricing-commission-list { display: grid; gap: 5px; padding-top: 4px; color: var(--saas-muted); font-size: 11px; }.saas-pricing-commission-list span { display: flex; justify-content: space-between; gap: 8px; }.saas-pricing-contributors { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--saas-line); }.saas-pricing-contributors > div:first-child { display: grid; gap: 2px; }.saas-pricing-contributors small { color: var(--saas-muted); font-size: 11px; }.saas-contributor-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.saas-contributor-choice { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--saas-line); border-radius: 8px; cursor: pointer; background: #fff; }.saas-contributor-choice input { width: 17px; height: 17px; accent-color: var(--saas-accent); }.saas-contributor-choice span { display: grid; gap: 2px; }.saas-contributor-choice small { font-size: 10px; }.saas-admin-contributors { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--saas-line); }.saas-admin-contributors h4 { margin: 0; }.saas-admin-contributors p { margin: 4px 0 0; color: var(--saas-muted); font-size: 12px; }.saas-contributor-settings-list { display: grid; gap: 9px; margin-top: 12px; }.saas-contributor-config { display: grid; grid-template-columns: minmax(160px,1fr) minmax(130px,.85fr) 130px auto auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid var(--saas-line); border-radius: 9px; background: #FCFCFB; }
.saas-commission-choice { display: grid; grid-template-columns: minmax(0,1fr) 118px; align-items: end; cursor: default; }
.saas-commission-choice > label:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
.saas-commission-field { margin: 0; min-width: 0; }
.saas-commission-field .saas-input { width: 100%; min-width: 0; }
.saas-icon-button { width: 36px; min-height: 36px; padding: 0; display: grid; place-items: center; }
.crm-optional-fields { grid-column: 1 / -1; padding: 2px 0; }.crm-optional-fields summary { color: var(--saas-muted); cursor: pointer; font-weight: 750; font-size: 13px; }.crm-optional-grid { margin-top: 12px; }
[hidden] { display: none !important; }
.saas-notice { padding: 11px 13px; border: 1px solid #ead7c5; background: #fff9f3; color: #6c5947; border-radius: 8px; font-size: 13px; }
.saas-report-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.saas-report-kpi { display: grid; gap: 6px; min-height: 116px; padding: 16px; border: 1px solid var(--saas-line); border-radius: 10px; background: #fff; }
.saas-report-kpi span { color: var(--saas-muted); font-size: 12px; font-weight: 750; }.saas-report-kpi strong { color: var(--saas-ink); font-size: 22px; }.saas-report-kpi small { color: var(--saas-muted); font-size: 11px; }
.saas-report-columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); gap: 16px; }.saas-report-columns > section:last-of-type { grid-column: 1/-1; }
.saas-report-source { color: var(--saas-muted); font-size: 11px; margin: 0; }
@media (max-width: 1100px) { .saas-report-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { .saas-report-grid,.saas-report-columns { grid-template-columns: 1fr; }.saas-report-columns > section:last-of-type { grid-column: auto; }.reports-filter-row { grid-template-columns: 1fr; } }
.saas-crm-action { margin-left: 8px; }
@keyframes saas-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) { .saas-proposal-layout { grid-template-columns: 1fr; }.saas-proposal-summary { position: static; }.saas-line-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.saas-line-name-field { grid-column: 1/-1; }.saas-payment-option { grid-template-columns: 1fr 120px 120px; }.cash-entry-splits-grid { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }.payment-option-result { grid-column: 1/-1; text-align: left; }.saas-rate-grid { grid-template-columns: repeat(3,minmax(90px,1fr)); }.saas-composition-row { grid-template-columns: repeat(2,minmax(0,1fr)); }.saas-pricing-grid { grid-template-columns: 1fr; }.saas-pricing-summary { position: static; }.saas-contributor-config { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .saas-modal-backdrop { padding: 0; }.saas-modal { width: 100%; max-height: 100vh; border-radius: 0; }.saas-modal-body { padding: 16px; }.saas-module-head, .saas-proposal-layout { grid-template-columns: 1fr; display: grid; }.saas-actions { width: 100%; }.saas-actions .saas-button { flex: 1; }.saas-filter-row, .saas-form-grid { grid-template-columns: 1fr; }.saas-section-heading { display: grid; align-items: start; }.saas-section-heading p { text-align: left; }.saas-line-grid { grid-template-columns: 1fr 1fr; }.saas-line-name-field { grid-column: 1/-1; }.saas-line-footer { align-items: flex-end; }.saas-line-preview { display: grid; }.saas-line-actions { width: 100%; }.saas-line-actions .saas-button { flex: 1; }.saas-payment-option { grid-template-columns: 1fr 1fr; }.cash-entry-splits-grid { grid-template-columns: 1fr; }.saas-payment-check,.payment-option-result { grid-column: 1/-1; }.saas-rate-grid { grid-template-columns: repeat(2,minmax(90px,1fr)); }.saas-composition-row,.saas-contributor-config,.saas-contributor-list { grid-template-columns: 1fr; }.saas-modal-foot .saas-button { flex: 1 1 140px; } }
@media (max-width: 980px) { .proposal-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.proposal-expiry-panel { grid-template-columns:1fr; }.proposal-filter-row { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .proposal-kpi-grid,.proposal-expiry-list,.proposal-filter-row,.proposal-custom-dates { grid-template-columns:1fr; }.proposal-filter-actions { justify-content:stretch; }.proposal-filter-actions .saas-button { flex:1; } }
@media (max-width: 760px) { .saas-commission-choice { grid-template-columns: 1fr; } }
.saas-report-period { display: grid; gap: 13px; padding: 16px; border: 1px solid var(--saas-line); border-radius: 10px; background: #fff; }.saas-report-period strong { color: var(--saas-ink); font-size: 15px; }.saas-period-presets { display: flex; gap: 7px; flex-wrap: wrap; }.saas-period-presets .saas-button { min-height: 34px; }.saas-report-custom { display: grid; grid-template-columns: minmax(140px,1fr) minmax(140px,1fr) auto; align-items: end; gap: 10px; padding-top: 13px; border-top: 1px solid var(--saas-line); }.saas-report-custom label { display: grid; gap: 5px; color: var(--saas-muted); font-size: 11px; font-weight: 750; }
.saas-report-block { display: grid; gap: 15px; padding: 20px; border: 1px solid var(--saas-line); border-radius: 10px; background: #fff; }.saas-report-block.future { background: #FCFCFB; }.saas-report-block-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }.saas-report-block-head > div:first-child { display: flex; align-items: center; gap: 10px; }.saas-report-block-head > div:first-child > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #F2ECE6; color: #765d46; font-size: 12px; font-weight: 850; }.saas-report-block h3 { margin: 0; color: var(--saas-ink); font-size: 18px; }.saas-report-block .saas-eyebrow { margin-bottom: 2px; }.kpi-local-filter { width: min(230px,100%); }.saas-local-filter-group { display: flex; gap: 10px; flex-wrap: wrap; }.saas-local-filter-group .kpi-local-filter { width: 190px; }
.saas-report-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }.saas-report-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }.saas-report-kpi.positive strong { color: var(--saas-success, #2E7D32); }.saas-report-panel { padding: 16px; border: 1px solid var(--saas-line); border-radius: 9px; background: #FCFCFB; }.kpi-bar-row { display: grid; grid-template-columns: minmax(130px,1fr) minmax(100px,1.5fr) 34px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eeeae5; }.kpi-bar-row:last-child { border-bottom: 0; }.kpi-bar-row strong,.kpi-bar-row small { display: block; }.kpi-bar-row strong { color: var(--saas-ink); font-size: 12px; }.kpi-bar-row small { margin-top: 2px; color: var(--saas-muted); font-size: 10px; }.kpi-bar-row b { color: var(--saas-ink); text-align: right; font-size: 12px; }.kpi-bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: #EAE6E1; }.kpi-bar-track i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--saas-accent); }.saas-report-note { margin: 0; color: var(--saas-muted); font-size: 12px; line-height: 1.55; }
.saas-report-grid.five { grid-template-columns: repeat(5, minmax(0,1fr)); }.saas-report-grid.six { grid-template-columns: repeat(6, minmax(0,1fr)); }.kpi-column-chart { min-height: 220px; display: flex; align-items: end; gap: 14px; padding: 14px 4px 0; overflow-x: auto; }.kpi-column { flex: 1 0 66px; min-width: 66px; height: 190px; display: grid; grid-template-rows: minmax(28px,1fr) auto auto; align-items: end; gap: 5px; text-align: center; }.kpi-column i { display: block; width: 100%; min-height: 5px; border-radius: 7px 7px 2px 2px; background: var(--saas-accent); box-shadow: inset 0 -1px 0 rgba(47,47,47,.08); }.kpi-column strong { color: var(--saas-ink); font-size: 12px; }.kpi-column small { display: block; min-height: 28px; overflow-wrap: anywhere; color: var(--saas-muted); font-size: 10px; line-height: 1.25; }
@media (max-width: 1100px) { .saas-report-grid.four,.saas-report-grid.five,.saas-report-grid.six { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .saas-report-period,.saas-report-block { padding: 15px; }.saas-report-custom,.saas-report-grid.compact,.saas-report-grid.four,.saas-report-grid.five,.saas-report-grid.six { grid-template-columns: 1fr; }.saas-report-block-head { display: grid; align-items: start; }.kpi-local-filter,.saas-local-filter-group .kpi-local-filter { width: 100%; }.kpi-bar-row { grid-template-columns: minmax(100px,1fr) minmax(70px,1fr) 28px; gap: 8px; } }

/* Reports v4: focused executive dashboard presentation. */
.reporting-workspace { display:grid; gap:22px; color:var(--saas-ink); animation:saas-fade .2s ease-out; }
.reporting-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:4px 2px 0; }
.reporting-header p,.reporting-section-head p { margin:0 0 5px; color:#8B8585; font-size:11px; font-weight:800; letter-spacing:.07em; }
.reporting-header h2 { margin:0; color:#2F2F2F; font-size:28px; line-height:1.1; }
.reporting-header > div > span { display:block; margin-top:7px; color:#6D6A67; font-size:14px; }
.reporting-actions { display:flex; gap:8px; flex-wrap:wrap; }
.reporting-filterbar { display:grid; grid-template-columns:minmax(180px,240px) minmax(0,1fr); gap:16px; align-items:center; padding:15px 16px; border:1px solid #EAE6E1; border-radius:10px; background:#fff; box-shadow:0 8px 22px rgba(47,47,47,.035); }
.reporting-date { display:grid; gap:3px; min-width:0; }
.reporting-date span { color:#8B8585; font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.reporting-date strong { color:#2F2F2F; font-size:14px; white-space:nowrap; }
.reporting-presets { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.reporting-presets button { min-height:32px; padding:0 10px; border:1px solid transparent; border-radius:7px; background:#F7F7F5; color:#6D6A67; font:inherit; font-size:12px; font-weight:750; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
.reporting-presets button:hover { border-color:#D8AA7F; background:#F2ECE6; color:#2F2F2F; }
.reporting-presets button.is-active { border-color:#D8AA7F; background:#FFF8F2; color:#6F5138; }
.reporting-custom-dates { grid-column:1/-1; display:grid; grid-template-columns:170px 170px auto; gap:9px; align-items:end; padding-top:13px; border-top:1px solid #EAE6E1; }
.reporting-custom-dates label { display:grid; gap:5px; color:#6D6A67; font-size:11px; font-weight:750; }
.reporting-custom-dates input { min-height:38px; padding:0 10px; border:1px solid #DED8D1; border-radius:7px; color:#2F2F2F; font:inherit; }
.reporting-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.report-metric { position:relative; display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; min-height:120px; padding:15px; overflow:hidden; border:1px solid #EAE6E1; border-radius:10px; background:#fff; box-shadow:0 7px 18px rgba(47,47,47,.025); }
.report-metric::after { position:absolute; right:0; bottom:0; left:0; height:3px; background:#D8AA7F; content:""; opacity:.92; }
.report-metric-mark { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:#F2ECE6; color:#765D46; font-size:11px; font-weight:850; }
.report-metric p { margin:0; color:#6D6A67; font-size:11px; font-weight:750; line-height:1.25; }
.report-metric strong { display:block; margin-top:8px; color:#2F2F2F; font-size:20px; letter-spacing:0; line-height:1.05; overflow-wrap:anywhere; }
.report-metric small { display:block; margin-top:7px; color:#8B8585; font-size:10px; line-height:1.3; }
.report-metric-sold::after,.report-metric-sold .report-metric-mark { background:#6F8A7B; color:#fff; }
.report-metric-conversion::after,.report-metric-conversion .report-metric-mark { background:#5E7484; color:#fff; }
.report-metric-proposal::after { background:#B99058; }.report-metric-ticket::after { background:#A87878; }
.reporting-section { display:grid; gap:13px; padding-top:4px; }
.reporting-section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; }
.reporting-section-head > div:first-child { display:flex; align-items:center; gap:10px; }
.reporting-section-head > div:first-child > span { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:#2F2F2F; color:#fff; font-size:11px; font-weight:850; }
.reporting-section-head h3 { margin:0; color:#2F2F2F; font-size:18px; }
.reporting-section-filters { display:flex; flex-wrap:wrap; gap:8px; }
.report-select { display:grid; gap:4px; min-width:175px; color:#8B8585; font-size:10px; font-weight:800; letter-spacing:.03em; }
.report-select select { width:100%; min-height:36px; padding:0 28px 0 10px; border:1px solid #DED8D1; border-radius:7px; background:#fff; color:#2F2F2F; font:inherit; font-size:12px; font-weight:700; }
.reporting-grid { display:grid; gap:12px; }
.reporting-grid.marketing { grid-template-columns:minmax(240px,.95fr) minmax(340px,1.25fr) minmax(180px,.55fr); }
.reporting-grid.commercial { grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr); }
.reporting-grid.productivity { grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr); }
.report-panel,.report-side-kpi { min-width:0; padding:17px; border:1px solid #EAE6E1; border-radius:10px; background:#fff; box-shadow:0 7px 18px rgba(47,47,47,.025); }
.report-panel-head { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:15px; }
.report-panel-head span { display:block; margin-bottom:4px; color:#8B8585; font-size:10px; font-weight:850; letter-spacing:.06em; }
.report-panel-head h3 { margin:0; color:#2F2F2F; font-size:15px; line-height:1.25; }
.report-panel-head p { margin:4px 0 0; color:#8B8585; font-size:11px; line-height:1.35; }
.report-donut-layout { display:grid; grid-template-columns:132px minmax(0,1fr); align-items:center; gap:17px; min-height:184px; }
.report-donut { position:relative; display:grid; place-items:center; width:130px; height:130px; border-radius:50%; background:conic-gradient(var(--donut-stops)); }
.report-donut::before { position:absolute; width:80px; height:80px; border-radius:50%; background:#fff; content:""; }
.report-donut > div { position:relative; display:grid; gap:2px; text-align:center; }.report-donut strong { color:#2F2F2F; font-size:23px; }.report-donut small { color:#8B8585; font-size:10px; }
.report-legend { display:grid; gap:8px; max-height:180px; overflow:auto; padding-right:3px; }.report-legend > div { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:7px; color:#6D6A67; font-size:11px; }.report-legend i { width:8px; height:8px; border-radius:50%; }.report-legend span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.report-legend strong { color:#2F2F2F; font-size:11px; }
.report-channel-bars { display:flex; align-items:end; gap:12px; min-height:184px; padding:9px 5px 0; overflow-x:auto; }.report-channel-bar { display:grid; grid-template-rows:auto 112px auto; flex:1 0 48px; min-width:48px; align-items:end; gap:6px; text-align:center; }.report-channel-value { color:#2F2F2F; font-size:11px; font-weight:850; }.report-channel-track { display:flex; align-items:end; height:112px; border-bottom:1px solid #EAE6E1; }.report-channel-track i { width:100%; min-height:5px; border-radius:6px 6px 1px 1px; transition:height .25s ease-out; }.report-channel-bar small { display:block; overflow:hidden; color:#8B8585; font-size:9px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.report-side-kpi { display:grid; align-content:start; gap:10px; background:#FCFCFB; }.report-side-kpi > span { color:#8B8585; font-size:11px; font-weight:800; }.report-side-kpi strong { color:#2F2F2F; font-size:32px; }.report-side-kpi p { margin:0; color:#6D6A67; font-size:11px; line-height:1.45; }.report-side-kpi i { display:block; height:8px; overflow:hidden; border-radius:999px; background:#EAE6E1; }.report-side-kpi b { display:block; height:100%; border-radius:inherit; background:#D8AA7F; }
.report-funnel { display:grid; gap:11px; }.report-funnel-row { display:grid; grid-template-columns:minmax(145px,.85fr) minmax(130px,1.55fr) minmax(92px,.55fr); align-items:center; gap:12px; }.report-funnel-row > div:first-child { display:flex; align-items:center; gap:8px; min-width:0; }.report-funnel-index { display:grid; place-items:center; flex:0 0 22px; width:22px; height:22px; border-radius:6px; background:#F2ECE6; color:#765D46; font-size:9px; font-weight:850; }.report-funnel-row strong { overflow:hidden; color:#2F2F2F; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.report-funnel-track { height:10px; overflow:hidden; border-radius:99px; background:#F0ECE8; }.report-funnel-track i { display:block; min-width:3px; height:100%; border-radius:inherit; background:#D8AA7F; transition:width .25s ease-out; }.report-funnel-meta { display:grid; justify-items:end; gap:2px; }.report-funnel-meta strong { font-size:12px; }.report-funnel-meta small { color:#8B8585; font-size:10px; white-space:nowrap; }
.report-closing-panel { display:grid; align-content:start; }.report-closing-list { display:grid; gap:0; }.report-closing-list > div { display:grid; gap:5px; padding:12px 0; border-bottom:1px solid #EAE6E1; }.report-closing-list > div:last-child { border-bottom:0; }.report-closing-list span { color:#6D6A67; font-size:11px; }.report-closing-list strong { color:#2F2F2F; font-size:19px; }
.report-table-panel { margin-top:12px; }.report-table-scroll { overflow:auto; }.report-table { width:100%; min-width:620px; border-collapse:collapse; }.report-table th { padding:0 10px 10px; border-bottom:1px solid #EAE6E1; color:#8B8585; font-size:10px; font-weight:850; letter-spacing:.04em; text-align:left; }.report-table td { padding:12px 10px; border-bottom:1px solid #F1EEEA; color:#6D6A67; font-size:12px; }.report-table tbody tr:last-child td { border-bottom:0; }.report-table tbody tr:hover { background:#FDFBF8; }.report-table td:first-child { color:#2F2F2F; }.report-table-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#D8AA7F; }.report-percent { display:inline-flex; padding:3px 7px; border-radius:99px; background:#F2ECE6; color:#6F5138; font-size:10px; font-weight:850; }.report-table-empty { padding:24px !important; color:#8B8585 !important; text-align:center; }
.report-ranked-bars { display:grid; gap:13px; }.report-ranked-bars > div { display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:9px; }.report-ranked-bars > div > span { display:grid; place-items:center; width:22px; height:22px; border-radius:6px; background:#F2ECE6; color:#765D46; font-size:10px; font-weight:850; }.report-ranked-bars section { min-width:0; }.report-ranked-bars header { display:flex; justify-content:space-between; gap:8px; margin-bottom:5px; }.report-ranked-bars header strong { overflow:hidden; color:#2F2F2F; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.report-ranked-bars header small { color:#8B8585; font-size:10px; white-space:nowrap; }.report-ranked-bars i { display:block; height:7px; overflow:hidden; border-radius:99px; background:#F0ECE8; }.report-ranked-bars b { display:block; height:100%; border-radius:inherit; background:#5E7484; }.report-ranked-bars em { color:#8B8585; font-size:9px; font-style:normal; white-space:nowrap; }
.reporting-partner-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.reporting-partner-kpis .report-metric { min-height:100px; }.reporting-future { padding:17px; border:1px solid #EAE6E1; border-radius:10px; background:#FCFCFB; }.report-future-badge { display:inline-flex; padding:5px 8px; border-radius:99px; background:#F0EEEB; color:#6D6A67; font-size:10px; font-weight:800; }.reporting-future-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.reporting-future-grid > div { display:grid; gap:7px; padding:13px; border:1px solid #EAE6E1; border-radius:8px; background:#fff; }.reporting-future-grid span { color:#6D6A67; font-size:11px; }.reporting-future-grid strong { color:#8B8585; font-size:22px; }.reporting-future-grid small { color:#8B8585; font-size:10px; line-height:1.35; }.reporting-source { padding:0 2px 5px; color:#8B8585; font-size:10px; }
.report-empty-chart { display:grid; place-items:center; align-content:center; min-height:160px; gap:4px; border:1px dashed #DED8D1; border-radius:8px; color:#8B8585; text-align:center; }.report-empty-chart span { color:#6D6A67; font-size:12px; font-weight:800; }.report-empty-chart small { font-size:10px; }
.reporting-goals { display:grid; gap:13px; padding:17px; border:1px solid #E8D7C7; border-radius:10px; background:#FFFCF9; box-shadow:0 7px 18px rgba(47,47,47,.025); }.report-goal-period { color:#8B8585; font-size:11px; font-weight:750; }.report-goals-grid { display:grid; grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr); gap:12px; }.report-goal-highlight { display:grid; gap:7px; align-content:start; padding:16px; border:1px solid #E2C5A8; border-radius:9px; background:#fff; }.report-goal-highlight > span,.report-goal-reference span { color:#8B8585; font-size:11px; font-weight:800; }.report-goal-highlight strong { color:#2F2F2F; font-size:22px; line-height:1.15; }.report-goal-highlight small { color:#6D6A67; font-size:11px; }.report-goal-highlight i { display:block; height:8px; overflow:hidden; border-radius:999px; background:#F0E7DE; }.report-goal-highlight i b { display:block; height:100%; border-radius:inherit; background:#D8AA7F; }.report-goal-reference { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }.report-goal-reference article { display:grid; align-content:start; gap:7px; min-width:0; padding:14px; border:1px solid #EAE6E1; border-radius:9px; background:#fff; }.report-goal-reference strong { overflow-wrap:anywhere; color:#2F2F2F; font-size:15px; line-height:1.2; }.report-goal-reference small { color:#6D6A67; font-size:10px; }
/* The shell sidebar reduces the usable dashboard width before the viewport does. */
@media (max-width:1500px) { .reporting-header { justify-content:flex-end; padding:0 2px; }.reporting-header > div:first-child { display:none; }.reporting-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }.reporting-grid.marketing { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-side-kpi { grid-column:1/-1; }.reporting-grid.productivity { grid-template-columns:1fr; }.report-partner-panel { min-height:260px; } }
@media (max-width:860px) { .reporting-header,.reporting-section-head { display:grid; align-items:start; }.reporting-actions { width:100%; }.reporting-filterbar { grid-template-columns:1fr; }.reporting-presets { justify-content:flex-start; }.reporting-grid.marketing,.reporting-grid.commercial,.report-goals-grid { grid-template-columns:1fr; }.reporting-section-filters { width:100%; }.report-select { flex:1 1 170px; }.reporting-custom-dates { grid-template-columns:1fr 1fr; }.reporting-custom-dates .saas-button { grid-column:1/-1; }.reporting-future-grid { grid-template-columns:1fr; } }
@media (max-width:560px) { .reporting-header h2 { font-size:24px; }.reporting-kpis,.reporting-partner-kpis,.report-goal-reference { grid-template-columns:1fr; }.reporting-actions .saas-button { flex:1; }.reporting-filterbar,.report-panel,.report-side-kpi,.reporting-future,.reporting-goals { padding:14px; }.reporting-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }.reporting-presets button { padding:0 6px; }.reporting-custom-dates { grid-template-columns:1fr; }.report-donut-layout { grid-template-columns:1fr; justify-items:center; }.report-legend { width:100%; }.report-funnel-row { grid-template-columns:minmax(100px,.8fr) minmax(90px,1.1fr); }.report-funnel-meta { grid-column:1/-1; justify-items:start; padding-left:30px; }.reporting-section-head > div:first-child { align-items:start; }.report-future-badge { justify-self:start; } }

/* Reports v5: analytical CRM controls and interactive executive overview. */
.report-global-filters { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; padding-top:14px; border-top:1px solid #EAE6E1; }
.report-global-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(145px,1fr)); gap:9px; }
.report-global-select { display:grid; gap:5px; min-width:0; color:#8B8585; font-size:10px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.report-global-select select { width:100%; min-height:38px; padding:0 30px 0 10px; border:1px solid #DED8D1; border-radius:8px; background:#FCFCFB; color:#2F2F2F; font:inherit; font-size:12px; font-weight:700; text-transform:none; transition:border-color .15s,box-shadow .15s,background .15s; }
.report-global-select select:hover { border-color:#D8AA7F; background:#fff; }
.report-global-select select:focus-visible { outline:0; border-color:#D8AA7F; box-shadow:0 0 0 3px rgba(216,170,127,.22); }
.report-global-filter-actions { display:flex; gap:8px; }
.report-alert-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.report-alert-strip > div { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); gap:3px 10px; min-height:74px; padding:13px 14px 13px 17px; overflow:hidden; border:1px solid #EAE6E1; border-radius:9px; background:#fff; }
.report-alert-strip > div::before { position:absolute; inset:0 auto 0 0; width:4px; content:""; }
.report-alert-strip span { grid-row:1/3; align-self:center; display:grid; place-items:center; width:34px; height:34px; border-radius:8px; background:#F2ECE6; color:#6D6A67; font-size:9px; font-weight:850; text-transform:uppercase; }
.report-alert-strip strong { align-self:end; color:#2F2F2F; font-size:12px; }
.report-alert-strip small { color:#8B8585; font-size:10px; }
.report-alert-strip .danger::before { background:#C62828; }.report-alert-strip .danger span { background:#FDECEC; color:#C62828; }
.report-alert-strip .warning::before { background:#C48A00; }.report-alert-strip .warning span { background:#FFF5DC; color:#966700; }
.report-alert-strip .info::before { background:#1565C0; }.report-alert-strip .info span { background:#EAF2FC; color:#1565C0; }
.report-metric.is-interactive { cursor:pointer; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.report-metric.is-interactive:hover { transform:translateY(-2px); border-color:#D8AA7F; box-shadow:0 12px 28px rgba(47,47,47,.07); }
.report-metric.is-interactive:focus-visible { outline:3px solid rgba(216,170,127,.3); outline-offset:2px; }
.report-detail-drawer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; border:1px solid #D8AA7F; border-radius:9px; background:#FFF9F4; animation:saas-fade .16s ease-out; }
.report-detail-drawer[hidden] { display:none; }
.report-detail-drawer > div { display:grid; gap:3px; }
.report-detail-drawer span { color:#8B8585; font-size:9px; font-weight:850; letter-spacing:.06em; }
.report-detail-drawer strong { color:#2F2F2F; font-size:14px; }
.report-detail-drawer p { margin:0; color:#6D6A67; font-size:11px; }
.report-channel-explorer { margin-top:12px; }
.report-channel-detail-button { min-height:31px; padding:0 9px; font-size:11px; }
.report-channel-detail-panel { display:grid; gap:13px; margin-top:13px; padding:14px; border:1px solid #E8D7C7; border-radius:8px; background:#FFF9F4; animation:saas-fade .16s ease-out; }
.report-channel-detail-panel[hidden] { display:none; }
.report-channel-detail-panel > header { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.report-channel-detail-panel > header div { display:grid; gap:3px; }
.report-channel-detail-panel > header span { color:#8B8585; font-size:9px; font-weight:850; letter-spacing:.06em; }
.report-channel-detail-panel h4 { margin:0; color:#2F2F2F; font-size:15px; }
.report-channel-detail-panel p { margin:0; color:#6D6A67; font-size:11px; }
.report-channel-detail-panel small { color:#8B8585; font-size:10px; }
.report-print-channel-details { display:none; }
.report-print-options-modal .modal-box { max-width:650px; }
.report-print-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.report-print-options label { display:flex; align-items:flex-start; gap:9px; min-height:72px; padding:11px; border:1px solid #EAE6E1; border-radius:8px; background:#FCFCFB; cursor:pointer; }
.report-print-options label:hover { border-color:#D8AA7F; background:#FFF9F4; }
.report-print-options input { width:17px; height:17px; margin:1px 0 0; accent-color:#9A7356; }
.report-print-options span { display:grid; gap:4px; }
.report-print-options strong { color:#2F2F2F; font-size:12px; }
.report-print-options small { color:#6D6A67; font-size:10px; line-height:1.35; }
.report-share-modal .modal-box { max-width:760px; max-height:min(92vh,900px); overflow:auto; }
.report-share-fields { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:10px; }
.report-share-fields label { display:grid; gap:6px; color:#5f5a56; font-size:11px; font-weight:750; }
.report-share-warning { margin:0; padding:10px 12px; border-left:3px solid #D8AA7F; border-radius:0 7px 7px 0; background:#FFF9F4; color:#765D46; font-size:11px; line-height:1.45; }
.report-share-result { display:grid; gap:8px; padding:13px; border:1px solid #BFD8C9; border-radius:9px; background:#F5FBF7; }
.report-share-result > strong { color:#355E47; }
.report-share-result p { margin:0; color:#52685A; font-size:11px; line-height:1.45; }
.report-share-result > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.report-share-list { display:grid; gap:10px; margin-top:16px; padding-top:15px; border-top:1px solid #EAE6E1; }
.report-share-list > header { display:grid; gap:3px; }
.report-share-list > header small { color:#8B8585; font-size:10px; }
.report-share-list #report-share-list { display:grid; gap:7px; }
.report-share-list article { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 11px; border:1px solid #EAE6E1; border-radius:8px; background:#FCFCFB; }
.report-share-list article > div { display:grid; gap:3px; min-width:0; }
.report-share-list article strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#2F2F2F; font-size:11px; }
.report-share-list article small { color:#6D6A67; font-size:10px; }
.report-evolution-section .report-panel { padding-bottom:12px; }
.report-line-legend { display:flex; justify-content:flex-end; gap:16px; margin:-4px 4px 5px; color:#6D6A67; font-size:10px; font-weight:750; }
.report-line-legend span { display:flex; align-items:center; gap:6px; }
.report-line-legend i { width:8px; height:8px; border-radius:50%; background:#D8AA7F; }.report-line-legend span:nth-child(2) i { background:#5E7484; }
.report-line-chart { display:block; width:100%; height:auto; min-height:180px; overflow:visible; }
.report-line-chart .axis { stroke:#EAE6E1; stroke-width:1; }
.report-line-chart polyline { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.report-line-chart .leads { stroke:#D8AA7F; }.report-line-chart .sold { stroke:#5E7484; }
.report-line-chart circle { stroke:#fff; stroke-width:2; cursor:help; transition:r .15s ease; }
.report-line-chart circle:hover { r:6; }.report-line-chart .lead-point { fill:#D8AA7F; }.report-line-chart .sold-point { fill:#5E7484; }
.report-line-chart text { fill:#8B8585; font-size:9px; }
.report-finance-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.report-finance-strip .report-metric { min-height:104px; }
.report-attendant { display:flex; align-items:center; gap:9px; min-width:150px; }
.report-attendant > span { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:#F2ECE6; color:#765D46; font-size:10px; font-weight:850; }
.report-attendant strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.report-goal { display:grid; grid-template-columns:minmax(70px,1fr) 34px; align-items:center; gap:7px; min-width:120px; }
.report-goal i { display:block; height:7px; overflow:hidden; border-radius:99px; background:#EAE6E1; }
.report-goal b { display:block; height:100%; border-radius:inherit; background:#6F8A7B; }
.report-goal small { color:#6D6A67; font-size:10px; font-weight:800; text-align:right; }
@media (max-width:1500px) { .report-global-filters { grid-template-columns:1fr; }.report-global-filter-actions { justify-content:flex-end; }.report-finance-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:860px) { .report-global-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-alert-strip { grid-template-columns:1fr; }.report-detail-drawer { align-items:start; }.report-line-chart { min-width:620px; }.report-evolution-section .report-panel { overflow-x:auto; } }
@media (max-width:560px) { .report-global-filter-grid,.report-finance-strip,.report-print-options,.report-share-fields { grid-template-columns:1fr; }.report-global-filter-actions { display:grid; grid-template-columns:1fr 1fr; }.report-global-filter-actions .saas-button { width:100%; }.report-detail-drawer,.report-channel-detail-panel > header { display:grid; }.report-detail-drawer .saas-button,.report-channel-detail-panel > header .saas-button { width:100%; }.report-alert-strip > div { grid-template-columns:auto minmax(0,1fr); }.report-share-result > div { grid-template-columns:1fr; }.report-share-list article { align-items:flex-start; }.report-share-list article .saas-button { flex:0 0 auto; } }

/* CRM v5: modern commercial workspace, scoped to the CRM tab. */
.crm-saas-workspace { display:grid; gap:18px; padding:0 !important; border:0 !important; background:transparent !important; box-shadow:none !important; }
.crm-saas-workspace * { box-sizing:border-box; }
.crm-saas-header { align-items:flex-end; margin:0; padding:4px 2px 0; }
.crm-saas-header h2 { margin:0; color:#2F2F2F; font-size:28px; line-height:1.1; }
.crm-saas-subtitle { display:block; margin-top:7px; color:#6D6A67; font-size:14px; }
.crm-saas-header-actions { display:flex; align-items:flex-end; gap:8px; }
.crm-saas-header-actions > button { min-height:40px; border-radius:8px; }
.crm-filter-control { position:relative; display:grid; align-self:end; gap:4px; min-width:150px; }
.crm-filter-control > button { min-height:40px; border-radius:8px; }
.crm-active-period { position:absolute; top:44px; left:0; max-width:220px; overflow:hidden; color:#8B8585; font-size:10px; font-weight:500; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.crm-saas-funnel-select { display:grid; gap:5px; min-width:220px !important; color:#8B8585; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.crm-saas-funnel-select select { min-height:40px; padding:0 34px 0 11px; border:1px solid #DED8D1; border-radius:8px; background:#fff; color:#2F2F2F; font-size:12px; font-weight:750; text-transform:none; transition:border-color .15s,box-shadow .15s; }
.crm-saas-funnel-select select:hover { border-color:#D8AA7F; }.crm-saas-funnel-select select:focus-visible { outline:0; border-color:#D8AA7F; box-shadow:0 0 0 3px rgba(216,170,127,.22); }
.crm-saas-kpis { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:10px !important; margin:0 !important; }
.crm-saas-kpi { position:relative; display:grid !important; align-content:start; gap:0; min-height:116px; padding:16px !important; overflow:hidden; border:1px solid #EAE6E1 !important; border-radius:10px !important; background:#fff !important; box-shadow:0 7px 18px rgba(47,47,47,.025); }
.crm-saas-kpi::after { position:absolute; right:0; bottom:0; left:0; height:3px; background:#D8AA7F; content:""; }
.crm-saas-kpi span { color:#6D6A67 !important; font-size:11px !important; font-weight:750; }
.crm-saas-kpi strong { margin-top:8px; color:#2F2F2F !important; font-size:22px !important; letter-spacing:0; }
.crm-saas-kpi small { display:block; margin-top:7px; color:#8B8585; font-size:10px; line-height:1.35; }
.crm-saas-kpi.cycle::after { background:#5E7484; }.crm-saas-kpi.attention::after { background:#C48A00; }.crm-saas-kpi.overdue::after { background:#C62828; }
.crm-saas-insight { display:grid; grid-template-columns:minmax(220px,.36fr) minmax(0,1fr); align-items:center; gap:18px; margin:0 !important; padding:15px 17px !important; border:1px solid #EAE6E1 !important; border-radius:10px !important; background:#2F2F2F !important; color:#fff; box-shadow:0 10px 26px rgba(47,47,47,.08); }
.crm-saas-insight .section-title { margin:0; }.crm-saas-insight .eyebrow { color:#C8C2BD; }.crm-saas-insight h2 { color:#fff !important; font-size:15px; }.crm-saas-insight .section-title > .pill { border:0; background:#D8AA7F; color:#2F2F2F; font-weight:850; }
.crm-saas-stage-insights { justify-content:flex-end; gap:6px; }
.crm-saas-stage-insights .pill { min-height:28px; padding:0 10px; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.07); color:#F7F7F5; font-size:10px; }
.crm-saas-board { gap:10px !important; margin:0; padding:2px 2px 16px !important; scrollbar-width:thin; scrollbar-color:#D8AA7F #F0ECE8; }
.crm-saas-board::-webkit-scrollbar { height:8px; }.crm-saas-board::-webkit-scrollbar-track { border-radius:99px; background:#F0ECE8; }.crm-saas-board::-webkit-scrollbar-thumb { border-radius:99px; background:#D8AA7F; }
.crm-saas-column { flex-basis:272px !important; width:272px !important; overflow:hidden; border:1px solid #EAE6E1 !important; border-radius:10px !important; background:#F7F7F5 !important; box-shadow:0 7px 18px rgba(47,47,47,.025); }
.crm-saas-column-header { position:relative; min-height:68px !important; padding:12px 13px !important; overflow:hidden; }
.crm-saas-column-header::after { position:absolute; inset:0; background:linear-gradient(90deg,rgba(47,47,47,.08),transparent 70%); pointer-events:none; content:""; }
.crm-saas-column-header > * { position:relative; z-index:1; }.crm-saas-column-header .crm-stage-total { justify-items:end; }.crm-saas-column-header .crm-stage-total strong { font-size:12px; }.crm-saas-column-header .crm-stage-total small { font-size:9px; }
.crm-saas-column-body { align-content:start; gap:8px !important; min-height:190px !important; padding:9px !important; }
.crm-saas-card { min-height:126px; padding:12px !important; border:1px solid #EAE6E1 !important; border-radius:9px !important; background:#fff !important; box-shadow:0 4px 12px rgba(47,47,47,.025); }
.crm-saas-card:hover { transform:translateY(-2px) !important; border-color:#D8AA7F !important; box-shadow:0 10px 24px rgba(47,47,47,.07) !important; }
.crm-saas-card.selected { border-color:#D8AA7F !important; background:#FFF9F4 !important; box-shadow:0 0 0 2px rgba(216,170,127,.2),0 8px 20px rgba(47,47,47,.05) !important; }
.crm-saas-card.crm-card-alert { box-shadow:inset 3px 0 0 #C48A00,0 4px 12px rgba(47,47,47,.025); }.crm-saas-card.crm-card-late { box-shadow:inset 3px 0 0 #C62828,0 4px 12px rgba(47,47,47,.025); }
.crm-saas-card .crm-card-top { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; gap:9px; padding-right:28px; }
.crm-card-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#F2ECE6; color:#765D46; font-size:10px; font-weight:850; }
.crm-card-identity { display:grid; min-width:0; gap:2px; }.crm-card-identity strong,.crm-card-identity small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.crm-card-identity strong { color:#2F2F2F; font-size:12px !important; }.crm-card-identity small { color:#8B8585; font-size:10px; }
.crm-saas-card .crm-card-config { top:10px; right:10px; display:grid; place-items:center; width:26px; height:26px; border-color:#EAE6E1; border-radius:7px; background:#FCFCFB; opacity:.72; transition:opacity .15s,border-color .15s,background .15s; }.crm-saas-card:hover .crm-card-config { opacity:1; }.crm-saas-card .crm-card-config:hover { border-color:#D8AA7F; background:#F2ECE6; }
.crm-saas-card .subtask-meta { gap:5px; }.crm-saas-card .pill { min-height:22px; padding:0 7px; border-color:#EAE6E1; background:#FCFCFB; color:#6D6A67; font-size:9px; }
.crm-saas-card .crm-next-task { margin-top:2px; padding-top:7px; border-top:1px solid #F1EEEA; font-size:10px; line-height:1.35; }
.crm-saas-card .crm-card-specifier { display:inline-flex; width:max-content; max-width:100%; margin-top:3px; padding:2px 6px; border:1px solid #E6C8AB; border-radius:5px; background:#FFF7EF; color:#765D46; font-size:10px; font-weight:750; }
.crm-saas-card .crm-label { min-height:18px; padding:0 6px; font-size:8px; }
.crm-saas-empty-stage { display:grid; place-items:center; min-height:116px; padding:14px; border:1px dashed #DED8D1; border-radius:8px; color:#8B8585; font-size:10px; text-align:center; }
.crm-saas-detail-grid { display:grid; gap:12px; margin-top:0 !important; padding-top:2px; }
.crm-saas-selected,.crm-saas-subsection { margin:0; padding:18px !important; border:1px solid #EAE6E1 !important; border-radius:10px !important; background:#fff !important; box-shadow:0 7px 18px rgba(47,47,47,.025); }
.crm-saas-selected { border-left:4px solid #D8AA7F !important; }.crm-saas-selected:hover { transform:none !important; box-shadow:0 7px 18px rgba(47,47,47,.025) !important; }
.crm-saas-selected .section-title,.crm-saas-subsection .section-title { margin-bottom:12px; }.crm-saas-selected .section-title h2,.crm-saas-subsection .section-title h2 { font-size:17px; }
.crm-saas-selected > p { margin:10px 0 0; color:#6D6A67; font-size:12px; }.crm-saas-selected .crm-expand-toggle { width:32px; min-width:32px; height:32px; min-height:32px; overflow:hidden; padding:0; color:transparent; }
.crm-saas-selected .crm-expand-toggle::before { display:block; width:7px; height:7px; margin:-3px auto 0; border-right:2px solid #6D6A67; border-bottom:2px solid #6D6A67; content:""; transform:rotate(45deg); transition:transform .18s; }.crm-saas-selected.expanded .crm-expand-toggle::before { margin-top:3px; transform:rotate(225deg); }
.crm-saas-subsection { position:relative; padding-left:21px !important; }.crm-saas-subsection::before { position:absolute; inset:18px auto 18px 0; width:3px; border-radius:0 3px 3px 0; background:#D8AA7F; content:""; }.crm-saas-chat::before { background:#5E7484; }.crm-saas-history::before { background:#8B8585; }
.crm-saas-subsection .task-card,.crm-saas-subsection .chat-message,.crm-saas-subsection .history-item { border-color:#EAE6E1; background:#FCFCFB; }
.crm-filter-period { display:grid; gap:11px; margin-bottom:14px; padding:14px; border:1px solid #EAE6E1; border-radius:9px; background:#FCFCFB; }
.crm-filter-period > span { color:#8B8585; font-size:10px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.crm-filter-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.crm-filter-presets button { min-height:34px; padding:0 8px; border-radius:7px; background:#fff; color:#6D6A67; font-size:11px; }
.crm-filter-presets button:hover,.crm-filter-presets button.is-active { border-color:#D8AA7F; background:#FFF8F2; color:#6F5138; }
.crm-filter-custom { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding-top:11px; border-top:1px solid #EAE6E1; }
.crm-filter-custom.hidden { display:none; }
.crm-saas-card[draggable="true"] { cursor:grab; }.crm-saas-card[draggable="true"]:active { cursor:grabbing; }
.crm-saas-card.crm-dragging { opacity:.42; transform:scale(.98) !important; }
.crm-saas-card.crm-drop-before { outline:2px solid #D8AA7F; outline-offset:2px; transform:translateY(4px) !important; }
.crm-saas-card.crm-drop-after { outline:2px solid #D8AA7F; outline-offset:2px; transform:translateY(-4px) !important; }
.crm-saas-column-body.crm-drop-stage { outline:2px dashed #D8AA7F; outline-offset:-5px; background:#FFF8F2; }
@media (max-width:1500px) { .crm-saas-header { display:grid; align-items:start; }.crm-saas-header-actions { justify-content:flex-start !important; width:100%; }.crm-saas-insight { grid-template-columns:1fr; }.crm-saas-stage-insights { justify-content:flex-start; } }
@media (max-width:1100px) { .crm-saas-kpis { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:860px) { .crm-saas-header-actions { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); }.crm-saas-funnel-select { grid-column:1/-1; width:100%; min-width:0 !important; }.crm-saas-header-actions > button,.crm-filter-control,.crm-filter-control > button { width:100%; }.crm-active-period { max-width:100%; }.crm-saas-column { flex-basis:min(82vw,272px) !important; width:min(82vw,272px) !important; }.crm-saas-selected,.crm-saas-subsection { padding:15px !important; }.crm-saas-subsection { padding-left:18px !important; } }
@media (max-width:560px) { .crm-saas-header h2 { font-size:24px; }.crm-saas-subtitle { font-size:12px; }.crm-saas-header-actions { grid-template-columns:1fr 1fr !important; }.crm-saas-funnel-select,.crm-saas-header-actions .primary { grid-column:1/-1; }.crm-saas-kpis { grid-template-columns:1fr !important; }.crm-saas-insight { padding:14px !important; }.crm-saas-stage-insights { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; }.crm-saas-stage-insights .pill { flex:0 0 auto; }.crm-saas-selected .section-title { align-items:flex-start; }.crm-saas-selected .actions { justify-content:flex-end; }.crm-filter-presets,.crm-filter-custom { grid-template-columns:1fr; } }
@media (max-width:980px) { .saas-sales-layout { grid-template-columns:1fr; }.saas-sales-layout > aside { padding-left:0; padding-top:16px; border-top:1px solid var(--saas-line); border-left:0; } }
@media (max-width:760px) { .saas-sales-toolbar { align-items:stretch; flex-direction:column; }.saas-sales-toolbar .saas-field { width:100%; } }

.saas-sales-item{align-items:flex-start}.saas-sales-item-edit{display:grid;grid-template-columns:100px 150px auto;gap:8px;align-items:end}.saas-sales-item-edit label{font-size:10px}.saas-sales-item-edit .saas-input{min-height:34px;padding:0 8px}.saas-payment-custom{display:grid;gap:8px;margin-top:12px;padding:12px;border:1px solid var(--saas-line);border-radius:9px;background:#fcfcfb}.saas-payment-custom label{font-size:11px}.saas-payment-custom small{font-weight:750}.saas-payment-custom .positive{color:#2e7d32}.saas-payment-custom .negative{color:#c62828}@media(max-width:760px){.saas-sales-item-edit{width:100%;grid-template-columns:1fr 1fr}.saas-sales-item-edit>strong{grid-column:1/-1}}

/* Negotiation value editing: compact client-facing presentation */
.saas-sales-item-edit{grid-template-columns:96px minmax(180px,1fr)}.saas-sales-item-edit label small{display:block;margin-top:4px;color:var(--saas-muted);font-size:10px;font-weight:500}.saas-payment-custom{grid-template-columns:repeat(2,minmax(0,1fr))}.saas-payment-custom small{grid-column:1/-1}@media(max-width:760px){.saas-payment-custom{grid-template-columns:1fr}}
/* Campos da negociacao: sobrescreve o label flex do cartao para manter os editores visiveis. */
.saas-sales-item{display:grid;grid-template-columns:minmax(160px,1fr) minmax(300px,.9fr);align-items:start}.saas-sales-item-edit{display:grid!important;grid-template-columns:minmax(92px,.55fr) minmax(170px,1fr)!important;width:100%;gap:10px}.saas-sales-item-edit label{display:grid!important;align-items:stretch!important;gap:4px!important;cursor:default!important}.saas-sales-item-edit .saas-input{display:block;width:100%;min-width:0}.saas-sales-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:1/-1}.saas-sales-payment-grid label{display:grid;gap:4px}.saas-sales-toolbar{flex-wrap:wrap}.saas-sales-toolbar .saas-field{min-width:175px;flex:1 1 175px}@media(max-width:760px){.saas-sales-item{grid-template-columns:1fr}.saas-sales-item-edit{grid-template-columns:1fr 1fr!important}.saas-sales-payment-grid{grid-template-columns:1fr}}.saas-sales-price-lock{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:5px;align-items:center}.saas-item-lock{display:grid;place-items:center;width:30px;height:34px;padding:0;border:1px solid var(--saas-line);border-radius:7px;background:#fff;cursor:pointer;font-size:13px}.saas-item-lock.locked{border-color:var(--saas-accent);background:#fff8f2}.saas-item-lock:disabled{cursor:not-allowed;opacity:.55}
