:root{color:#17202a;font-synthesis:none;scrollbar-gutter:stable;text-rendering:optimizelegibility;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-height:100vh;margin:0;overflow-y:scroll}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.topbar{z-index:20;background:#fff;border-bottom:1px solid #d7dde3;grid-template-columns:auto 1fr auto auto auto;align-items:center;gap:18px;padding:12px 24px;display:grid;position:sticky;top:0}.language-select{color:#17202a;background:#fff;border:1px solid #cbd4dc;border-radius:6px;min-height:38px;padding:7px 30px 7px 10px}.brand{align-items:center;gap:10px;font-size:18px;font-weight:700;display:flex}.importbox{grid-template-columns:1fr 38px;align-items:center;gap:8px;display:grid}.importbox input{border:1px solid #cbd4dc;border-radius:6px;outline:0;min-width:0;padding:9px 10px}.importbox button,.primary,.secondary{justify-content:center;align-items:center;gap:8px;min-height:38px;display:inline-flex}.importbox button,.primary{color:#fff;background:#1f6feb;border:0;border-radius:6px;padding:0 13px}.secondary{color:#17202a;background:#fff;border:1px solid #cbd4dc;border-radius:6px;padding:0 13px}.button-spinner{border:2px solid;border-right-color:#0000;border-radius:999px;flex:0 0 16px;width:16px;height:16px;animation:.72s linear infinite button-spin;display:inline-block}@keyframes button-spin{to{transform:rotate(360deg)}}.top-tabs{align-items:center;gap:4px;display:inline-flex}.top-tabs button{color:#475467;background:0 0;border:0;border-radius:6px;min-height:38px;padding:0 13px}.top-tabs button.active{color:#17202a;background:#edf3fb;font-weight:700}.user-menu{color:#475467;align-items:center;gap:8px;min-width:0;font-size:13px;display:inline-flex}.user-menu span{text-overflow:ellipsis;white-space:nowrap;max-width:180px;overflow:hidden}.icon-button{color:#17202a;background:#fff;border:1px solid #cbd4dc;border-radius:6px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.auth-screen{color:#17202a;background:#f4f6f8;place-items:center;min-height:100vh;display:grid}.auth-panel{background:#fff;border:1px solid #d7dde3;border-radius:8px;width:min(420px,100vw - 32px);padding:22px}.auth-panel h1{margin:0 0 8px;font-size:20px}.auth-panel p{color:#687382;margin:0 0 16px}.topbar-count{color:#687382;text-align:right;white-space:nowrap;gap:0;font-size:12px;display:grid}.technical-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.technical-import{width:min(320px,100%)}.operation-status{color:#687382;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:13px;display:flex}.topbar-count strong{color:#17202a;font-size:18px}.amount-positive{color:#b42318}.amount-negative{color:#166534}.muted-row,.empty-state,.subline{color:#687382}.content{width:100%;min-width:0;max-width:none;margin:0;padding:18px 20px 24px}.empty-state{place-items:center;min-height:calc(100vh - 48px);display:grid}.empty-state.compact{min-height:220px}.detail,.dashboard,.technical{flex-direction:column;gap:18px;display:flex}.detail-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.header-actions{align-items:center;gap:10px;display:flex}h1{margin:0 0 4px;font-size:28px}.sync-banner{color:#9a3412;background:#fff7ed;border-radius:6px;padding:10px 12px}.sync-banner.completed{color:#166534;background:#ecfdf3}.sync-banner.failed{color:#b42318;background:#fef3f2}.app-toast{z-index:90;color:#17202a;background:#fff;border:1px solid #cbd4dc;border-radius:8px;max-width:min(420px,100vw - 48px);padding:12px 14px;font-size:13px;font-weight:700;animation:.16s ease-out toast-enter;position:fixed;top:78px;right:24px;box-shadow:0 14px 36px #1018282e}.app-toast.success{color:#14532d;background:#ecfdf3;border-color:#a6d8b4}.app-toast.error{color:#912018;background:#fef3f2;border-color:#fecdca}.app-toast.warning{color:#93370d;background:#fffaeb;border-color:#fedf89}@keyframes toast-enter{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.sync-progress{margin-top:4px;display:block}.metrics{grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;display:grid}.dashboard-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.customer-kpis{grid-template-columns:repeat(6,minmax(150px,1fr))}.detail-kpis{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.metrics>div{background:#fff;border:1px solid #d7dde3;border-radius:6px;min-width:0;padding:14px}.metrics label{color:#687382;font-size:13px;display:block}.metrics strong{margin-top:6px;font-size:22px;line-height:1.15;display:block}.customer-kpis strong{text-overflow:ellipsis;white-space:nowrap;font-size:18px;overflow:hidden}.metric-detail{color:#687382;margin-top:4px;font-size:13px;display:block}.customer-kpis .metric-detail{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.executive-kpis{grid-template-columns:repeat(6,minmax(150px,1fr))}.executive-layout{flex-direction:column;gap:14px;display:flex}.executive-primary-grid{grid-template-columns:minmax(0,1.45fr) minmax(360px,.75fr);align-items:start;gap:14px;display:grid}.executive-table-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px;display:grid}.executive-table-grid .insight-panel.wide{grid-column:1/-1}.insight-panel{background:#fff;border:1px solid #d7dde3;border-radius:6px;min-width:0;padding:14px}.insight-panel.wide{grid-row:auto}.insight-panel h2{align-items:center;gap:8px;margin:0 0 12px;font-size:16px;display:flex}.control-panel{align-self:stretch}.control-stack{flex-direction:column;gap:14px;display:flex}.control-section{min-width:0}.control-section+.control-section{border-top:1px solid #e5eaf0;padding-top:12px}.control-section h3{color:#3d4852;align-items:center;gap:6px;margin:0 0 8px;font-size:13px;display:flex}.operations-panel{grid-column:1/-1}.operations-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.operations-grid .control-section+.control-section{border-top:0;border-left:1px solid #e5eaf0;padding-top:0;padding-left:18px}.forecast-bars{flex-direction:column;gap:10px;display:flex}.forecast-row{grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr);align-items:center;gap:14px;display:grid}.forecast-row span{color:#687382;margin-top:3px;font-size:12px;display:block}.forecast-bar-cell{grid-template-columns:minmax(120px,1fr) minmax(126px,max-content);align-items:center;gap:10px;display:grid}.forecast-track{background:#eef2f6;border-radius:999px;height:10px;overflow:hidden}.forecast-track span{background:#1f6feb;border-radius:999px;height:100%;margin:0;display:block}.forecast-track span.negative{background:#166534}.compact-table td,.compact-table th{padding:8px 10px;font-size:13px}.business-plan-table{table-layout:fixed}.business-plan-table th:first-child,.business-plan-table td:first-child{width:24%}.business-plan-table th:nth-child(2),.business-plan-table td:nth-child(2){width:132px}.business-plan-table th:nth-child(3),.business-plan-table td:nth-child(3){width:22%}.business-plan-table th:nth-child(4),.business-plan-table td:nth-child(4),.business-plan-table th:nth-child(5),.business-plan-table td:nth-child(5){width:18%}.business-plan-table td,.business-plan-table th{overflow:hidden}.business-plan-table td strong,.business-plan-table .cell-subline{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.plan-row.plan-collect_now{background:#fff7f5}.plan-action{min-width:92px}.action-collect_now{color:#b42318;background:#fef3f2}.action-monitor_today{color:#9a3412;background:#fff7ed}.action-expected_cash{color:#175cd3;background:#eff8ff}.action-review{color:#5925dc;background:#f4f3ff}.decision-list{grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;margin:0;display:grid}.decision-list dt{color:#687382;min-width:0}.decision-list dd{text-align:right;white-space:nowrap;margin:0;font-weight:700}.panel-note{color:#475467;background:#f8fafc;border-radius:6px;margin-top:10px;padding:10px;font-size:13px}.risk-list{flex-direction:column;gap:8px;display:flex}.risk-row{text-align:left;background:#fff;border:1px solid #e5eaf0;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:54px;padding:9px 10px;display:flex}.risk-row:hover{background:#f8fafc}.risk-row span{flex-direction:column;min-width:0;display:flex}.risk-row strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.risk-row small{color:#687382;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.health-list{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;margin:0;display:grid}.health-list dt{color:#687382;min-width:0}.health-list dd{text-align:right;white-space:nowrap;margin:0;font-weight:700}.metric-detail.wrap{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:32px;display:-webkit-box;overflow:hidden}.tabs{border-bottom:1px solid #d7dde3;justify-content:space-between;align-items:center;gap:6px;display:flex}.tab-buttons{gap:6px;display:flex}.tabs button{color:#475467;background:0 0;border:0;border-bottom:2px solid #0000;padding:10px 12px}.tabs button.active{color:#17202a;border-color:#1f6feb}.page-size{color:#687382;align-items:center;gap:8px;font-size:13px;display:inline-flex}.page-size select{background:#fff;border:1px solid #cbd4dc;border-radius:6px;padding:6px 28px 6px 8px}.paginated{flex-direction:column;gap:10px;display:flex}.table-toolbar{align-items:center;gap:10px;display:flex}.table-toolbar select{background:#fff;border:1px solid #cbd4dc;border-radius:6px;min-height:38px;padding:7px 30px 7px 10px}.table-search{background:#fff;border:1px solid #cbd4dc;border-radius:6px;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;width:min(420px,100%);padding:8px 10px;display:grid}.table-search input{border:0;outline:0;min-width:0}.table-count{color:#687382;white-space:nowrap;margin-left:auto;font-size:13px}.table-summary{color:#3d4852;flex-wrap:wrap;gap:8px 16px;font-size:13px;line-height:1.35;display:flex}.table-summary span{white-space:nowrap}.pagination{color:#687382;justify-content:space-between;align-items:center;font-size:13px;display:flex}.pagination div{gap:8px;display:flex}.pagination button{background:#fff;border:1px solid #cbd4dc;border-radius:6px;padding:7px 10px}.pagination button:disabled{cursor:not-allowed;opacity:.45}table{border-collapse:collapse;background:#fff;border:1px solid #d7dde3;width:100%}.customer-overview-table{table-layout:fixed;min-width:2020px}.customer-overview-table th:first-child,.customer-overview-table td:first-child{width:240px}.customer-overview-table th:nth-child(2),.customer-overview-table td:nth-child(2){width:132px}.customer-overview-table th:nth-child(3),.customer-overview-table td:nth-child(3){width:118px}.customer-overview-table th:nth-child(4),.customer-overview-table td:nth-child(4){width:150px}.customer-overview-table th:nth-child(5),.customer-overview-table td:nth-child(5){width:158px}.customer-overview-table th:nth-child(6),.customer-overview-table td:nth-child(6),.customer-overview-table th:nth-child(7),.customer-overview-table td:nth-child(7),.customer-overview-table th:nth-child(8),.customer-overview-table td:nth-child(8),.customer-overview-table td:nth-child(6){width:132px}.customer-overview-table th:nth-child(9),.customer-overview-table td:nth-child(9),.customer-overview-table th:nth-child(10),.customer-overview-table td:nth-child(10){width:122px}.customer-overview-table th:nth-child(11),.customer-overview-table td:nth-child(11){width:76px}.customer-overview-table th:nth-child(12),.customer-overview-table td:nth-child(12){width:132px}.customer-overview-table th:nth-child(13),.customer-overview-table td:nth-child(13){width:220px}.customer-overview-table th:nth-child(14),.customer-overview-table td:nth-child(14){width:98px}.customer-overview-table td,.customer-overview-table th{overflow:hidden}.customer-overview-table th:nth-child(2),.customer-overview-table td:nth-child(2),.customer-overview-table th:nth-child(3),.customer-overview-table td:nth-child(3),.customer-overview-table th:nth-child(4),.customer-overview-table td:nth-child(4),.customer-overview-table th:nth-child(5),.customer-overview-table td:nth-child(5),.customer-overview-table th:nth-child(6),.customer-overview-table td:nth-child(6){overflow:visible}.customer-overview-table td strong,.customer-overview-table .cell-subline{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.advanced-filters{background:#fff;border:1px solid #d7dde3;border-radius:6px;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));align-items:end;gap:8px;padding:10px;display:grid}.advanced-filters label{color:#687382;gap:4px;min-width:0;font-size:11px;font-weight:700;display:grid}.advanced-filters select,.advanced-filters input{color:#101828;background:#fff;border:1px solid #cbd4dc;border-radius:6px;width:100%;min-height:34px;padding:7px 9px;font-size:13px}.advanced-filters button{min-height:34px}.money-cell{text-align:right;min-width:0}.money-main{font-variant-numeric:tabular-nums;letter-spacing:0;display:block}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e5eaf0;padding:10px 12px}td strong{display:block}th{color:#475467;background:#f8fafc;font-weight:600}.click-row{cursor:pointer}.click-row:hover{background:#f8fafc}.cell-subline{color:#687382;margin-top:3px;font-size:12px;display:block}.sort-header{color:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:700;display:inline-flex}.customer-overview-table .sort-header{width:100%}.customer-overview-table th:nth-child(6),.customer-overview-table th:nth-child(7),.customer-overview-table th:nth-child(8),.customer-overview-table th:nth-child(9),.customer-overview-table th:nth-child(10),.customer-overview-table th:nth-child(12),.customer-overview-table th:nth-child(14),.customer-overview-table td:nth-child(6),.customer-overview-table td:nth-child(7),.customer-overview-table td:nth-child(8),.customer-overview-table td:nth-child(9),.customer-overview-table td:nth-child(10),.customer-overview-table td:nth-child(12),.customer-overview-table td:nth-child(14){text-align:right}.customer-overview-table th:nth-child(6) .sort-header,.customer-overview-table th:nth-child(7) .sort-header,.customer-overview-table th:nth-child(8) .sort-header,.customer-overview-table th:nth-child(9) .sort-header,.customer-overview-table th:nth-child(10) .sort-header,.customer-overview-table th:nth-child(12) .sort-header,.customer-overview-table th:nth-child(14) .sort-header{text-align:right;justify-content:flex-end}.customer-overview-table th:nth-child(11),.customer-overview-table td:nth-child(11){text-align:center}.customer-overview-table th:nth-child(11) .sort-header{text-align:center;justify-content:center}.collection-selection-table th:nth-child(7),.collection-selection-table th:nth-child(8),.collection-selection-table th:nth-child(9),.collection-selection-table th:nth-child(10),.collection-selection-table th:nth-child(11),.collection-selection-table th:nth-child(13),.collection-selection-table th:nth-child(15),.collection-selection-table td:nth-child(7),.collection-selection-table td:nth-child(8),.collection-selection-table td:nth-child(9),.collection-selection-table td:nth-child(10),.collection-selection-table td:nth-child(11),.collection-selection-table td:nth-child(13),.collection-selection-table td:nth-child(15){text-align:right}.collection-selection-table th:nth-child(7) .sort-header,.collection-selection-table th:nth-child(8) .sort-header,.collection-selection-table th:nth-child(9) .sort-header,.collection-selection-table th:nth-child(10) .sort-header,.collection-selection-table th:nth-child(11) .sort-header,.collection-selection-table th:nth-child(13) .sort-header,.collection-selection-table th:nth-child(15) .sort-header{text-align:right;justify-content:flex-end}.collection-selection-table th:nth-child(12),.collection-selection-table td:nth-child(12){text-align:center}.collection-selection-table th:nth-child(12) .sort-header{text-align:center;justify-content:center}.sort-header.active{color:#1f6feb}.overdue-row{background:#fff7f5}.overdue{color:#b42318;font-weight:700}.overdue-days{color:#b42318;margin-top:3px;font-size:12px;display:block}.badge{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;min-height:22px;padding:2px 7px;font-size:11px;font-weight:700;display:inline-flex}.badge.invoice-note{color:#1849a9;background:#eef4ff}.badge.credit-note{color:#b42318;background:#fef3f2}.badge.paid{color:#166534;background:#ecfdf3}.badge.open{color:#9a3412;background:#fff7ed}.badge.partial{color:#854a0e;background:#fff8db}.badge.closed{color:#475467;background:#eef2f6}.collection-badge{overflow-wrap:anywhere;text-align:left;white-space:normal;word-break:normal;width:auto;max-width:100%}.active-collection-marker{gap:4px;min-width:0;max-width:100%;display:grid}.active-collection-marker.compact{margin-top:2px}.active-collection-badge{color:#7a3f00;white-space:normal;background:#fff7e6;border-color:#f4b860;min-height:18px;padding:2px 6px;font-size:10px;line-height:1.15}.active-collection-reference{color:#7a3f00;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.2;overflow:hidden}.active-collection-line{grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;gap:8px;min-width:0;font-size:10px;line-height:1.2;display:grid}.active-collection-line span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.active-collection-line strong{font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap;font-size:11px}.active-collection-line.paid{color:#166534}.active-collection-line.current{color:#b42318}.active-collection-cell{vertical-align:top}.active-collection-cell .active-collection-reference{text-overflow:clip;white-space:normal;overflow:visible}.status-cell{text-align:left;place-items:center start;gap:3px;min-width:0;display:grid}.customer-overview-table .status-cell .badge{max-width:100%}.customer-overview-table .status-cell .collection-badge{justify-content:flex-start;min-width:0;padding-top:4px;padding-bottom:4px;line-height:1.2}.customer-overview-table .suggested-sales-hold-badge,.customer-overview-table .suggested-sales-clear{min-height:18px;padding:1px 6px;font-size:10px}.customer-overview-table .falcon-sales-blocked,.customer-overview-table .falcon-sales-clear,.customer-overview-table .falcon-sales-unknown{min-width:86px;min-height:18px;padding:1px 6px;font-size:10px}.falcon-sales-blocked{color:#fff;background:#b42318;border-color:#7a271a;box-shadow:0 0 0 1px #b423182e}.falcon-sales-clear{color:#137333;background:#f1fbf4;border-color:#bbd7c3}.falcon-sales-unknown{color:#687382;background:#f8fafc;border-color:#d7dde3}.suggested-sales-hold-badge{color:#b42318;background:#fff3f3;border-color:#f04438}.suggested-sales-clear{color:#475467;background:#f8fafc;border-color:#d7dde3}.metric-badge-row{align-items:center;min-height:28px}.metric-badge-row .badge{min-width:118px}.collection-ok,.collection-not_due{color:#166534;background:#ecfdf3}.collection-credit_balance{color:#175cd3;background:#eff8ff}.collection-watch{color:#854a0e;background:#fefbe8}.collection-manual_review{color:#5925dc;background:#f4f3ff}.collection-reminder{color:#9a3412;background:#fff7ed}.collection-final_notice{color:#b54708;background:#fffaeb}.collection-hard_collection{color:#b42318;background:#fef3f2}.collection-inkasso{color:#fff;background:#7a271a}.sales-hold-badge{color:#fff;background:#b42318;display:inline-flex}.freshness-syncing{color:#1849a9;background:#eef4ff}.freshness-failed{color:#fff;background:#7a271a}.empty-table{color:#687382;text-align:center;height:72px}.order-stack{flex-direction:column;gap:12px;display:flex}.order-item{background:#fff;border:1px solid #d7dde3;border-radius:6px}.order-head{grid-template-columns:1fr auto auto;gap:18px;padding:12px;display:grid}.line-list{flex-direction:column;gap:4px;max-width:560px;display:flex}.order-item .subline{padding:0 12px 12px}.profile-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));align-items:start;gap:14px;display:grid}.profile-sheet{grid-template-columns:repeat(3,minmax(260px,1fr));align-items:start;gap:0;padding:0;display:grid}.profile-column{flex-direction:column;min-width:0;display:flex}.profile-column+.profile-column{border-left:1px solid #e5eaf0}.profile-section{min-width:0;padding:16px}.profile-section+.profile-section{border-top:1px solid #e5eaf0}.profile-section h2{border-bottom:0;margin:0 0 10px;padding-bottom:0;font-size:15px}.accounting-view{flex-direction:column;gap:16px;display:flex}.accounting-summary{background:#fff;border:1px solid #d7dde3;border-left-width:4px;border-radius:6px;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:24px;padding:18px;display:grid}.accounting-summary h2{margin:4px 0 8px;font-size:22px}.accounting-summary p{color:#475467;max-width:900px;margin:0}.accounting-overdue,.accounting-hold{border-left-color:#b42318}.accounting-credit{border-left-color:#166534}.accounting-review{border-left-color:#5925dc}.accounting-neutral{border-left-color:#687382}.eyebrow{color:#687382;text-transform:uppercase;font-size:12px;font-weight:700}.proposal-amount{border-left:1px solid #e5eaf0;flex-direction:column;justify-content:center;padding-left:18px;display:flex}.proposal-amount label{color:#687382;font-size:13px}.proposal-amount strong{margin-top:4px;font-size:26px;line-height:1.15}.proposal-amount span{color:#475467;margin-top:6px;font-size:13px}.accounting-grid{grid-template-columns:repeat(5,minmax(180px,1fr));gap:16px;display:grid}.proposal-list{margin:0;padding-left:18px}.proposal-list li+li{margin-top:8px}.settlement-panel{flex-direction:column;gap:14px;display:flex}.settlement-header{grid-template-columns:minmax(0,1fr) minmax(220px,auto);align-items:start;gap:18px;display:grid}.settlement-header h2,.settlement-grid h3{margin:0}.settlement-header p{color:#475467;margin:8px 0 0}.settlement-total{justify-items:end;gap:6px;display:grid}.settlement-total label{color:#687382;font-size:13px}.settlement-total strong{font-size:24px;line-height:1.1}.settlement-warnings{color:#854a0e;background:#fffbeb;border-left:3px solid #b54708;flex-direction:column;gap:6px;padding:10px 12px;font-size:13px;display:flex}.settlement-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:16px;display:grid}.settlement-grid>div{min-width:0}.settlement-grid table{margin-top:10px}.settlement-footer{color:#687382;flex-wrap:wrap;gap:8px 18px;font-size:13px;display:flex}.settlement-ledger{gap:10px;display:grid}.settlement-ledger header{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.settlement-ledger h3{margin:0}.settlement-ledger header div{color:#687382;flex-wrap:wrap;gap:8px 16px;font-size:13px;display:flex}.settlement-ledger table{margin-top:0}.confidence-exact,.confidence-reconstructed{color:#166534;background:#ecfdf3}.confidence-manual_review,.confidence-blocked{color:#9a3412;background:#fff7ed}.history-list{flex-direction:column;gap:12px;display:flex}.history-item{grid-template-columns:18px minmax(0,1fr);gap:12px;display:grid}.history-marker{width:18px;position:relative}.history-marker:before{content:"";background:#687382;border-radius:50%;width:9px;height:9px;position:absolute;top:4px;left:5px}.history-marker:after{content:"";background:#d7dde3;width:1px;position:absolute;top:18px;bottom:-14px;left:9px}.history-item:last-child .history-marker:after{display:none}.history-body{background:#fff;border:1px solid #d7dde3;border-radius:6px;min-width:0;padding:14px}.history-body header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.history-body h2{margin:4px 0 0;font-size:17px}.history-body p{color:#475467;margin:10px 0 0}.history-meta{color:#687382;white-space:nowrap;justify-items:end;gap:3px;font-size:12px;display:grid}.history-meta strong{color:#17202a;font-size:14px}.history-tags{flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}.history-tags span{color:#475467;background:#eef2f6;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700}.event-info .history-marker:before{background:#175cd3}.event-watch .history-marker:before{background:#854a0e}.event-warning .history-marker:before{background:#b54708}.event-critical .history-marker:before{background:#b42318}.event-critical .history-body{border-left:4px solid #b42318}.event-warning .history-body{border-left:4px solid #b54708}.profile-panel{background:#fff;border:1px solid #d7dde3;border-radius:6px;min-width:0;padding:16px}.profile-panel h2{margin:0 0 14px;font-size:18px}.profile-panel dl{border-top:1px solid #e5eaf0;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);gap:0;margin:0;display:grid}.profile-panel dt,.profile-panel dd{border-bottom:1px solid #e5eaf0;min-width:0;margin:0;padding:10px 0}.profile-panel dt{color:#687382;font-weight:600}.profile-panel dd{overflow-wrap:anywhere}.profile-card{align-self:start;padding:14px}.profile-card h2{margin-bottom:12px;font-size:16px}.profile-card .profile-list{grid-template-columns:minmax(135px,.75fr) minmax(0,1.25fr)}.profile-card .profile-list dt,.profile-card .profile-list dd{padding:8px 0;font-size:13px;line-height:1.35}.profile-card .profile-list dt{padding-right:12px}.profile-card .profile-list dd{overflow-wrap:anywhere}.profile-sheet .profile-list{border-top:0;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr)}.profile-sheet .profile-list dt,.profile-sheet .profile-list dd{padding:7px 0;font-size:13px;line-height:1.35}.profile-sheet .profile-list dt{padding-right:10px}.collections-view{flex-direction:column;gap:16px;display:flex}.checkbox-row{align-items:center;gap:8px;min-width:0;display:flex}.collections-view.has-floating-selection{padding-bottom:104px}.collection-name-input{border:1px solid #cbd4dc;border-radius:6px;width:100%;margin-bottom:10px;padding:9px 10px}.collection-floating-selection{z-index:35;background:#fff;border:1px solid #cbd4dc;border-radius:8px;grid-template-columns:minmax(300px,.9fr) minmax(280px,440px) minmax(0,auto);align-items:center;gap:12px;padding:12px 14px;display:grid;position:fixed;bottom:22px;left:28px;right:28px;box-shadow:0 18px 48px #10182838}.collection-floating-summary{grid-template-columns:max-content max-content minmax(150px,auto);align-items:baseline;gap:2px 12px;min-width:0;display:grid}.collection-floating-summary strong{color:#17202a;font-size:26px;line-height:1}.collection-floating-summary .cell-subline{grid-column:1/-1}.collection-floating-amount{color:#687382;align-items:baseline;gap:8px;min-width:0;font-size:12px;font-weight:700;display:inline-flex}.collection-floating-amount strong{color:#b42318;white-space:nowrap;font-size:18px;line-height:1.1}.collection-floating-name-field{color:#687382;text-align:left;gap:4px;min-width:0;font-size:11px;font-weight:700;display:grid}.collection-floating-name{color:#101828;text-align:left;border:1px solid #cbd4dc;border-radius:6px;width:100%;min-height:38px;padding:8px 10px;font-size:13px}.collection-floating-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.danger-button{color:#b42318!important;background:#fff3f3!important;border-color:#f04438!important}.danger-button.primary,.primary.danger-button{color:#fff!important;background:#b42318!important}.channel-toggles{flex-wrap:wrap;gap:10px;margin:12px 0;display:flex}.channel-toggles label{background:#fff;border:1px solid #d7dde3;border-radius:6px;align-items:center;gap:8px;padding:8px 10px;font-size:13px;font-weight:700;display:inline-flex}.collection-campaign-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.collection-campaign-header .header-actions{flex-wrap:wrap;justify-content:flex-end}.table-scroll{width:100%;overflow-x:auto}.collection-selection-table-wrapper{border:1px solid #e5eaf0;border-radius:6px}.collection-selection-table{table-layout:fixed;width:100%;min-width:2290px}.collection-selection-table th,.collection-selection-table td{vertical-align:top}.collection-selection-table th:nth-child(2),.collection-selection-table td:nth-child(2){width:260px}.collection-selection-table th:nth-child(3),.collection-selection-table td:nth-child(3){width:160px}.collection-selection-table th:nth-child(4),.collection-selection-table td:nth-child(4){width:120px}.collection-selection-table th:nth-child(5),.collection-selection-table td:nth-child(5){width:150px}.collection-selection-table th:nth-child(6),.collection-selection-table td:nth-child(6){width:170px}.collection-selection-table th:nth-child(7),.collection-selection-table td:nth-child(7),.collection-selection-table th:nth-child(8),.collection-selection-table td:nth-child(8),.collection-selection-table th:nth-child(9),.collection-selection-table td:nth-child(9),.collection-selection-table th:nth-child(10),.collection-selection-table td:nth-child(10),.collection-selection-table th:nth-child(11),.collection-selection-table td:nth-child(11){width:128px}.collection-selection-table th:nth-child(12),.collection-selection-table td:nth-child(12){width:92px}.collection-selection-table th:nth-child(13),.collection-selection-table td:nth-child(13){width:128px}.collection-selection-table th:nth-child(14),.collection-selection-table td:nth-child(14){width:180px}.collection-selection-table th:nth-child(15),.collection-selection-table td:nth-child(15){width:150px}.collection-selection-table th.actions-column,.collection-selection-table td.actions-column{text-align:center;min-width:126px;max-width:126px;width:126px!important}.collection-selection-table td.actions-column .row-actions{justify-content:center}.quick-test-actions{flex-wrap:wrap;gap:8px;margin:12px 0 4px;display:flex}.collection-cases-table th:last-child,.collection-cases-table td:last-child{width:180px;min-width:180px}.collection-approval-summary{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 12px;display:grid}.collection-approval-summary>div{background:#f8fafc;border:1px solid #e5eaf0;border-radius:6px;padding:9px 10px}.collection-approval-summary span,.delivery-status-cell .cell-subline{display:block}.collection-approval-summary span{color:#687382;margin-bottom:3px;font-size:12px;font-weight:700}.collection-approval-summary strong{color:#17202a;font-size:13px}.delivery-status-cell{gap:3px;min-width:120px;display:grid}.delivery-error{color:#b42318}.delivery-warning{color:#9a5b00;font-weight:700}.collection-monitoring-cell{gap:3px;min-width:140px;display:grid}.selection-column{text-align:center;width:42px;min-width:42px;max-width:42px;padding-left:6px;padding-right:6px}.selection-column input{width:16px;height:16px;margin:0}.badge.neutral{color:#384453;background:#eef2f6}.reference-pill{color:#17202a;white-space:nowrap;background:#f8fafc;border:1px solid #cbd4dc;border-radius:6px;padding:5px 7px;font:700 12px/1.2 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;display:inline-block}.row-actions{flex-wrap:wrap;align-items:center;gap:5px;min-height:34px;display:flex}.action-icon-button{color:#17202a;cursor:pointer;background:#fff;border:1px solid #cbd4dc;border-radius:7px;justify-content:center;align-items:center;width:34px;height:34px;padding:0;display:inline-flex}.action-icon-button:hover{background:#f8fafc;border-color:#9fb1c0}.action-icon-pair{border-radius:6px;flex:0 0 26px;justify-content:center;align-items:center;width:26px;height:26px;display:inline-flex;position:relative}.action-corner-icon{background:#fff;border:2px solid #fff;border-radius:999px;position:absolute;bottom:-3px;right:-3px}.action-sms .action-icon-pair{color:#075985;background:#e8f4ff}.action-email .action-icon-pair{color:#3730a3;background:#eef2ff}.action-test{border-style:dashed}.action-test .action-corner-icon{color:#0f766e}.action-preview .action-corner-icon{color:#1e3876}.action-remove{color:#991b1b;border-color:#f0c4c4}.action-remove:hover{background:#fff5f5;border-color:#e89a9a}.icon-button,.icon-only-button{color:#17202a;cursor:pointer;background:#fff;border:1px solid #cbd4dc;border-radius:6px;justify-content:center;align-items:center;gap:6px;min-height:32px;padding:7px 9px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;display:inline-flex}.icon-button:hover,.icon-only-button:hover{background:#f4f7fa}.icon-only-button{width:34px;padding:0}.collection-case-checks{grid-template-columns:130px minmax(0,1fr);gap:6px 10px;margin:10px 0;display:grid}.collection-case-checks dt{color:#687382;font-weight:700}.collection-case-checks dd{overflow-wrap:anywhere;margin:0}.link-button{color:#1e3876;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;padding:0;font-weight:700}.collection-preview-list{gap:10px;display:grid}.collection-preview-item{border:1px solid #e5eaf0;border-radius:6px;padding:12px}.collection-preview-item header,.collection-preview-channels{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.collection-preview-item p{color:#2c3643;margin:8px 0}.collection-template-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px;margin-top:10px;display:grid}.collection-template-card{background:#f8fafc;border:1px solid #e5eaf0;border-radius:6px;min-width:0;padding:10px}.collection-template-card h3{align-items:center;gap:8px;margin:0 0 8px;font-size:14px;display:flex}.collection-template-card dl{grid-template-columns:70px minmax(0,1fr);gap:8px;margin:0 0 8px;display:grid}.collection-template-card dt{color:#687382;font-weight:700}.collection-template-card dd{overflow-wrap:anywhere;margin:0}.collection-email-preview{background:#fff;border:1px solid #d7dde3;border-radius:6px;margin-top:8px;padding:10px;overflow:auto}.collection-email-preview table{border:0!important}.collection-email-preview .tp-footer table{background:0 0!important}.collection-email-preview th,.collection-email-preview td{border-bottom:0!important}.modal-backdrop{z-index:50;background:#0a14207a;justify-content:center;align-items:flex-start;padding:42px 18px;display:flex;position:fixed;inset:0;overflow:auto}.modal-panel{background:#fff;border-radius:8px;width:min(980px,100%);max-height:calc(100vh - 84px);padding:18px;overflow:auto;box-shadow:0 20px 60px #0a142047}.modal-header,.modal-actions{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.modal-header{margin-bottom:14px}.modal-header h2{margin:0 0 4px}.modal-actions{align-items:center;margin-top:14px}.collection-action-modal{width:min(1040px,100%)}.collection-dispatch-modal{width:min(760px,100%)}.sync-banner.warning{color:#7c2d12;background:#fff7ed;border-color:#fdba74}.test-recipient-field{gap:6px;margin-bottom:12px;font-weight:700;display:grid}.test-recipient-field input{width:100%;font:inherit;border:1px solid #cbd4dc;border-radius:6px;padding:9px 10px}.modal-template-card{max-height:min(66vh,760px);overflow:auto}.modal-template-card pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#2c3643;margin:8px 0;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.collection-attachments-list{gap:6px;margin:8px 0 12px;padding:0;list-style:none;display:grid}.collection-attachments-list li{background:#fff;border:1px solid #dfe5ec;border-radius:6px;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:8px 10px;display:flex}.collection-attachments-list span,.collection-attachments-list a{overflow-wrap:anywhere;color:#17202a;min-width:0;font-weight:700;text-decoration:none}.collection-attachments-list a:hover{text-decoration:underline}.collection-attachments-list small{color:#516070;flex:none}.collection-attachments-empty{color:#687382;margin:8px 0 12px}.prepared-documents-block{gap:8px;margin:8px 0 12px;display:grid}.prepared-attachments-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.prepared-attachments-list li{background:#fff;border:1px solid #dfe5ec;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:8px 10px;display:grid}.prepared-attachments-list li.failed{background:#fff7f7;border-color:#fecaca}.prepared-attachment-info{gap:2px;min-width:0;display:grid}.prepared-attachment-info strong,.prepared-attachment-info span,.prepared-attachment-info small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.prepared-attachment-info strong{color:#17202a}.prepared-attachment-info span{color:#516070}.prepared-attachment-info small{color:#b42318}.prepared-attachment-link{color:#1d4ed8;white-space:nowrap;background:#fff;border:1px solid #c9d3df;border-radius:6px;padding:6px 9px;font-weight:700;text-decoration:none}.prepared-attachment-link:hover{background:#eff6ff}.prepared-attachment-status{color:#b42318;white-space:nowrap;background:#fee4e2;border-radius:999px;padding:4px 8px;font-weight:700}.collection-email-preview td strong{display:inline!important}.collection-email-preview img{max-width:100%}.sales-block-tabs{flex-wrap:wrap;gap:8px;margin:0 0 12px;display:flex}.sales-block-tabs button{color:#17202a;background:#fff;border:1px solid #cbd4dc;border-radius:6px;align-items:center;gap:8px;min-height:38px;padding:0 12px;display:inline-flex}.sales-block-tabs button.active{color:#1d4ed8;background:#eff6ff;border-color:#1f6feb;font-weight:700}.sales-block-tabs span{color:#334155;background:#e8edf3;border-radius:999px;justify-content:center;align-items:center;min-width:24px;min-height:22px;padding:0 7px;font-size:12px;display:inline-flex}.sales-blocks-full-panel{overflow:auto visible}.sales-blocks-table{table-layout:fixed;min-width:1480px}.sales-blocks-table th:first-child,.sales-blocks-table td:first-child{width:21%}.sales-blocks-table th:nth-child(2),.sales-blocks-table td:nth-child(2){width:8%}.sales-blocks-table th:nth-child(3),.sales-blocks-table td:nth-child(3){width:9%}.sales-blocks-table th:nth-child(4),.sales-blocks-table td:nth-child(4),.sales-blocks-table th:nth-child(5),.sales-blocks-table td:nth-child(5){text-align:right;width:10%}.sales-blocks-table th:nth-child(6),.sales-blocks-table td:nth-child(6){width:18%}.sales-blocks-table th:nth-child(7),.sales-blocks-table td:nth-child(7){width:12%}.sales-blocks-table th:nth-child(8),.sales-blocks-table td:nth-child(8){width:170px;min-width:170px}.sales-blocks-table th,.sales-blocks-table td{vertical-align:top}.sales-blocks-table tr.selected-row td{background:#eff6ff}.sales-blocks-table td:nth-child(8){white-space:nowrap;display:table-cell}.sales-blocks-table td:nth-child(8)>button{margin-right:6px}.sales-blocks-table td:nth-child(8)>button:last-child{margin-right:0}.sales-blocks-table td:nth-child(8) .sales-block-action,.sales-blocks-table td:nth-child(8) .compact-action{vertical-align:middle;text-indent:-999px;font-size:0;line-height:0;display:inline-flex;overflow:hidden}.sales-blocks-table td:nth-child(8) .sales-block-action svg,.sales-blocks-table td:nth-child(8) .compact-action svg,.sales-blocks-table td:nth-child(8) .sales-block-action .button-spinner,.sales-blocks-table td:nth-child(8) .compact-action .button-spinner{text-indent:0}.sales-block-actions{flex-wrap:nowrap;align-items:center;gap:6px;display:inline-flex}.sales-block-notifications{gap:4px;min-width:0;margin-top:8px;display:grid}.sales-block-notification{color:#64748b;grid-template-columns:14px 38px minmax(58px,max-content) minmax(0,1fr);align-items:center;gap:5px;min-width:0;font-size:11px;line-height:1.2;display:grid}.sales-block-notification svg{color:#64748b}.sales-block-notification strong{color:#334155;white-space:nowrap;font-size:11px;font-weight:700}.sales-block-notification.has-status strong{color:#166534}.sales-block-notification.missing strong{color:#991b1b}.sales-block-notification span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sales-block-notification span:last-child{color:#94a3b8;grid-column:2/-1}.sales-block-action{color:#334155;background:#fff;border:1px solid #cbd4dc;border-radius:6px;flex:0 0 30px;justify-content:center;align-items:center;width:30px;height:30px;padding:0;display:inline-flex}.sales-block-action:hover{background:#f8fafc}.sales-block-action.primary-action{color:#fff;background:#1f6feb;border-color:#1f6feb}.sales-block-action .button-spinner{flex-basis:14px;width:14px;height:14px}.sales-blocks-table .active-collection-marker.compact{gap:2px;max-width:100%}.sales-blocks-table .active-collection-marker.compact .active-collection-badge{max-width:100%}.sales-blocks-table .active-collection-marker.compact .active-collection-reference{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.sales-blocks-table .active-collection-marker.compact .active-collection-line{justify-content:space-between;gap:8px;display:flex}.sales-blocks .modal-template-card pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#2c3643;margin:8px 0 0;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.sales-blocks-selected{background:#fff;border:1px solid #d7dde3;border-radius:6px;gap:4px;padding:10px;display:grid}.sales-blocks-selected strong{color:#17202a}.sales-blocks-selected span{color:#516070;overflow-wrap:anywhere}.technical-grid{grid-template-columns:repeat(2,minmax(320px,1fr));gap:16px;display:grid}.technical-panel{background:#fff;border:1px solid #d7dde3;border-radius:6px;min-width:0;padding:16px}.technical-panel.wide{grid-column:1/-1}.technical-panel h2{align-items:center;gap:8px;margin:0 0 14px;font-size:18px;display:flex}.technical-table{table-layout:fixed;width:100%}.technical-table td,.technical-table th{overflow-wrap:anywhere;vertical-align:top}.technical-message-cell{width:34%}.technical-message{color:#334155;white-space:pre-wrap;word-break:break-word;background:#f8fafc;border:1px solid #e5e7eb;border-radius:4px;max-width:100%;max-height:72px;padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.35;display:block;overflow:auto}@media (width<=900px){.topbar{grid-template-columns:1fr;align-items:stretch;gap:10px}.top-tabs{width:100%}.top-tabs button{flex:1}.topbar-count{text-align:left}.metrics,.dashboard-metrics,.detail-kpis,.customer-kpis,.executive-kpis{grid-template-columns:1fr 1fr}.executive-primary-grid,.executive-table-grid,.operations-grid{grid-template-columns:1fr}.operations-grid .control-section+.control-section{border-top:1px solid #e5eaf0;border-left:0;padding-top:12px;padding-left:0}.insight-panel.wide{grid-row:auto}.forecast-row{grid-template-columns:1fr;gap:6px}.business-plan-table{table-layout:auto}.detail-header,.header-actions{flex-direction:column;align-items:stretch}.tabs{flex-direction:column;align-items:flex-start}.table-toolbar{flex-direction:column;align-items:stretch}.collection-floating-selection{grid-template-columns:1fr;bottom:12px;left:12px;right:12px}.collection-floating-actions{justify-content:stretch}.collection-floating-actions button{flex:180px}.table-count{margin-left:0}.profile-grid,.profile-sheet{grid-template-columns:1fr}.profile-column+.profile-column{border-top:1px solid #e5eaf0;border-left:0}.accounting-summary{grid-template-columns:1fr}.proposal-amount{border-top:1px solid #e5eaf0;border-left:0;padding-top:14px;padding-left:0}.accounting-grid,.settlement-header,.settlement-grid{grid-template-columns:1fr}.settlement-total{justify-items:start}.history-body header{flex-direction:column}.history-meta{white-space:normal;justify-items:start}.technical-grid{grid-template-columns:1fr}}@media (width>=901px) and (width<=1400px){.customer-kpis,.executive-kpis{grid-template-columns:repeat(3,minmax(170px,1fr))}.executive-primary-grid{grid-template-columns:1fr}.executive-table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-panel.wide{grid-row:auto}.profile-sheet{grid-template-columns:repeat(2,minmax(300px,1fr))}.profile-column:nth-child(3){border-top:1px solid #e5eaf0;border-left:0;grid-column:1/-1}.accounting-grid{grid-template-columns:repeat(2,minmax(260px,1fr))}}@media (width<=560px){.metrics,.dashboard-metrics,.detail-kpis,.customer-kpis,.executive-kpis,.forecast-bar-cell,.health-list,.decision-list{grid-template-columns:1fr}.health-list dd,.decision-list dd{text-align:left}}
