.ops-page { --ops-green:#13866b; --ops-red:#d34646; --ops-amber:#a96a10; }
.ops-content { padding-top:0; }
.ops-page button, .ops-page select, .ops-page input { font-family:inherit; }
.ops-page button, .ops-page select { border-radius:6px; }
.ops-page button:focus-visible, .ops-page a:focus-visible, .ops-page select:focus-visible, .ops-page input:focus-visible { outline:2px solid #3370ff; outline-offset:3px; }
.ops-page button { cursor:pointer; }
.ops-page button:disabled { opacity:.45; cursor:default; }
.ops-page [hidden] { display:none !important; }
.ops-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:19px 0 20px; }
.ops-heading h1 { margin:0; color:#202938; font-size:24px; font-weight:650; letter-spacing:-.025em; }
.ops-heading p { margin:7px 0 0; color:#7a8799; font-size:12px; }
.ops-heading-tools { display:flex; align-items:center; gap:10px; }
.ops-preview-label { padding:4px 7px; color:#697890; background:#e9edf3; border-radius:4px; font-size:10px; white-space:nowrap; }
.ops-heading-tools select { min-height:34px; padding:0 27px 0 10px; border:1px solid #dce2ea; background:#fff; color:#4b5a70; font-size:11px; }
.ops-text-button { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:6px 3px; border:0; color:#5f718b; background:transparent; font-size:11px; white-space:nowrap; }
.ops-text-button:hover { color:#3370ff; }
.ops-text-button svg { width:14px; height:14px; }
.ops-page .ops-kpis { margin-bottom:20px; gap:12px; }
.ops-kpis .supplier-kpi { display:block; min-width:0; min-height:112px; padding:17px 18px 14px; border-radius:10px; text-decoration:none; box-shadow:0 1px 3px #17233806; transition:border-color .15s,background .15s; }
.ops-kpis .supplier-kpi:hover { background:#fcfdff; border-color:#b5caff; transform:none; }
.ops-kpis .supplier-kpi > span { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:#778499; }
.ops-kpis .supplier-kpi > span svg { width:13px; height:13px; color:#9aa7b9; }
.ops-kpis .supplier-kpi strong { margin:9px 0 7px; color:#202938; font-size:25px; letter-spacing:-.025em; font-variant-numeric:tabular-nums; line-height:1.15; }
.ops-kpis .supplier-kpi strong small { margin-left:5px; color:inherit; font-size:13px; font-weight:500; }
.ops-kpis .supplier-kpi > small { font-size:10.5px; line-height:1.6; color:#929cad; }
.ops-kpis .ops-new-kpi strong { color:#3370ff; }
.ops-kpis .ops-returning-kpi strong { color:var(--ops-green); }
.ops-kpis .is-active { box-shadow:0 0 0 1px #93b4ff; border-color:#93b4ff; }
.ops-results { padding:0; overflow:visible; border-radius:11px; box-shadow:0 2px 10px #1e355506; }
.ops-results-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 20px; border-bottom:1px solid #edf0f4; }
.ops-view-tabs { display:flex; align-items:center; gap:20px; }
.ops-view-tabs button { position:relative; min-height:34px; padding:0 2px; border:0; border-radius:0; color:#8b95a5; background:transparent; font-size:16px; font-weight:600; }
.ops-view-tabs button.active { color:#25344b; }
.ops-view-tabs button.active::after { position:absolute; bottom:-17px; left:0; width:100%; height:3px; background:#3370ff; content:''; border-radius:2px; }
.ops-range-tools, .ops-sort-tools { display:flex; align-items:center; gap:12px; }
.ops-range-tools label { display:flex; align-items:center; gap:6px; color:#8d98a8; font-size:10.5px; }
.ops-range-tools select, .ops-sort-tools select { min-height:30px; max-width:150px; padding:0 22px 0 8px; border:1px solid #e3e8f0; color:#5b687c; background:#fff; font-size:11px; }
.ops-range-tools select { border-color:transparent; }
.ops-filter-row { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:18px 20px 13px; }
.ops-type-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.ops-type-tabs button { min-height:32px; padding:0 10px; border:1px solid transparent; color:#6e7b8f; background:transparent; font-size:12px; white-space:nowrap; }
.ops-type-tabs button small { margin-left:6px; font-size:10.5px; opacity:.75; }
.ops-type-tabs button.active { color:#3370ff; background:#edf3ff; border-color:#d9e5ff; font-weight:600; }
.ops-type-tabs button:hover { background:#f4f7fc; }
.ops-search { width:254px; min-width:180px; height:34px; margin:0; border:1px solid #e1e6ee; border-radius:6px; background:#fff; }
.ops-search input { width:100%; min-width:0; font-size:11.5px; }
.ops-search svg { width:15px; height:15px; color:#8291a6; }
.ops-list-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 20px 12px; }
.ops-presets { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.ops-presets button { padding:5px 9px; min-height:27px; border:1px solid #e3e8ef; background:#fff; color:#7c8798; font-size:10.5px; white-space:nowrap; }
.ops-presets button.active { color:#3370ff; border-color:#b9cefa; background:#f5f8ff; }
.ops-presets [data-preset="loss"].active { color:var(--ops-red); border-color:#f0c8c8; background:#fff8f7; }
.ops-presets [data-preset="review"].active { color:var(--ops-amber); border-color:#ead7b9; background:#fffcf5; }
.ops-sort-tools { gap:6px; }
.ops-list-context { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:34px; margin:0 20px; padding:8px 0 11px; color:#8a96a7; border-top:1px solid #f1f3f6; font-size:10.5px; line-height:1.6; }
.ops-list-context b { color:#5a6b82; font-weight:500; }
.ops-table-wrap { margin:0 20px; overflow:visible; }
.ops-table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; }
.ops-table .ops-name-col { width:32%; }.ops-table .ops-relation-col{width:17%}.ops-table .ops-revenue-col{width:18%}.ops-table .ops-profit-col{width:20%}.ops-table .ops-date-col{width:13%}
.ops-table th { position:static; padding:11px 12px; color:#7d899b; background:#f6f8fb; font-size:10.5px; font-weight:500; text-align:left; white-space:normal; }
.ops-table th:first-child { border-radius:6px 0 0 6px; }.ops-table th:last-child{border-radius:0 6px 6px 0}
.ops-table td { padding:15px 12px; border-bottom:1px solid #edf0f5; vertical-align:middle; color:#4d5d74; font-size:12px; overflow-wrap:anywhere; }
.ops-table tr:last-child td { border-bottom:0; }
.ops-table tbody tr:hover { background:#fcfdff; }
.ops-table tr[data-customer-row] { cursor:pointer; }
.ops-table tr[data-customer-row]:hover,.ops-table tr[data-customer-row]:focus-within { background:#f5f8fe; }
.ops-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.ops-row-name { display:block; padding:0; border:0; border-radius:0; color:#26344b; background:transparent; font-size:12.5px; font-weight:600; text-align:left; line-height:1.6; }
.ops-row-name:hover { color:#3370ff; }
.ops-row-sub { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:5px; color:#97a1b1; font-size:10px; line-height:1.5; }
.ops-type-tag { padding:1px 5px; border:1px solid #e4e8ef; border-radius:4px; color:#8591a3; background:#fbfcfe; font-size:9.5px; line-height:1.6; }
.ops-type-tag:hover { color:#3370ff; border-color:#afc8ff; }
.ops-type-tag.enterprise { color:#6386bb; background:#f4f8ff; border-color:#e5edf9; }
.ops-type-tag.unknown { color:#a17d42; border-color:#eee2cc; background:#fffdf8; }
.ops-secondary-value { display:block; margin-top:5px; color:#95a0b1; font-size:10px; font-weight:400; line-height:1.6; }
.ops-secondary-value button { padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; text-align:left; }
.ops-secondary-value button:hover { color:#3370ff; }
.ops-money { color:#34445d; font-size:13px; font-weight:600; white-space:nowrap; }
.ops-profit-value { font-size:15px; font-weight:650; letter-spacing:-.015em; white-space:nowrap; }
.ops-positive { color:var(--ops-green); }.ops-negative{color:var(--ops-red)}.ops-pending{color:var(--ops-amber);font-size:12px;font-weight:500}
.ops-loss-link { padding:0; border:0; border-radius:0; color:var(--ops-red); background:transparent; font-size:10px; }
.ops-date { color:#7e8b9f; font-size:10.5px; white-space:nowrap; }
.ops-last-cell > span { display:block; }
.ops-detail-link { display:inline-flex; align-items:center; gap:3px; min-height:24px; margin-top:3px; padding:0; border:0; background:transparent; color:#7790b5; font-size:10px; }
.ops-detail-link svg { width:12px; height:12px; }
.ops-phase { display:inline-block; padding:2px 5px; color:#8a97a8; background:#f3f5f8; border-radius:4px; font-size:9.5px; white-space:nowrap; }
.ops-phase.ended { color:#668b7f; background:#f1f8f4; }
.ops-list-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:15px 20px 17px; border-top:1px solid #edf0f5; }
.ops-list-footer p { margin:0; max-width:60%; color:#a1aaba; font-size:9.5px; line-height:1.6; }
.ops-pagination { margin:0; gap:5px; justify-content:flex-end; }
.ops-pagination button { min-width:28px; min-height:28px; padding:3px 8px; border-radius:5px; font-size:10px; }
.ops-pagination .supplier-pagination-summary { font-size:10px; color:#99a4b4; }
.ops-page-note { display:flex; justify-content:space-between; gap:10px; margin:13px 3px 25px; color:#9ca6b5; font-size:10px; line-height:1.6; }
.ops-page-note span:first-child { display:flex; align-items:center; gap:5px; }.ops-page-note svg { width:12px; height:12px; }
.ops-sample-notice { display:flex; align-items:center; gap:8px; margin:-4px 0 15px; padding:9px 12px; border:1px solid #d7e3fb; border-radius:6px; background:#f1f6ff; color:#6b84ab; font-size:10.5px; line-height:1.6; }
.ops-sample-notice svg { width:14px; height:14px; flex-shrink:0; }.ops-sample-notice button{margin-left:auto;padding:2px 0;border:0;background:transparent;color:#3370ff;font-size:10.5px;white-space:nowrap}
.ops-dialog { width:min(540px,calc(100vw - 32px)); max-height:85vh; overflow:auto; padding:22px; border:1px solid #e0e6ef; border-radius:12px; color:#43516a; background:#fff; box-shadow:0 20px 75px #1d2d4940; }
.ops-dialog::backdrop { background:#1d2d4940; backdrop-filter:blur(3px); }
.ops-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.ops-dialog h2 { margin:0; color:#27374d; font-size:17px; }.ops-dialog header p { color:#8a97a9; font-size:12px; line-height:1.7; }
.ops-icon-button { display:inline-flex; justify-content:center; align-items:center; min-width:30px; min-height:30px; padding:0; border:0; color:#8a96a8; background:transparent; }
.ops-icon-button svg { width:18px; height:18px; }
.ops-basis-formula { margin:18px 0; padding:14px; color:#5076ac; border:1px solid #e5edfa; border-radius:6px; background:#f7faff; font-size:12px; line-height:1.8; }.ops-basis-formula span{padding:0 5px;color:#9dafc5}
.ops-dialog dl { margin:0; }.ops-dialog dl>div{margin-top:15px}.ops-dialog dt{font-size:12px;font-weight:600;color:#52647f}.ops-dialog dd{margin:5px 0 0;color:#8a97a8;font-size:11.5px;line-height:1.8}
.ops-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.ops-primary,.ops-secondary{min-height:35px;padding:0 13px;border:1px solid #3370ff;background:#3370ff;color:#fff;font-size:11.5px}.ops-secondary{border-color:#dfe5ee;color:#7e8da2;background:#fff}
.ops-type-dialog { width:min(390px,calc(100vw - 32px)); }.ops-type-options { display:grid; gap:8px; margin:18px 0; }.ops-type-options label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e4e9f1;border-radius:6px;font-size:12px}.ops-type-options input{accent-color:#3370ff}.ops-muted{color:#9ba6b6;font-size:10.5px;line-height:1.6}
.ops-toast { position:fixed; bottom:25px; left:50%; z-index:2000; max-width:calc(100% - 32px); padding:12px 18px; transform:translateX(-50%); border:1px solid #dbe5f6; border-radius:7px; color:#54729d; background:#fff; box-shadow:0 8px 25px #20365a20; font-size:12px; }
.ops-page .customer-profit-drawer>section { width:min(730px,94vw); padding:0; }
.ops-page .customer-profit-drawer header { position:sticky; top:0; z-index:2; align-items:center; padding:19px 24px; background:#fff; border-bottom:1px solid #e9edf3; }
.ops-page .customer-profit-drawer h2 { max-width:600px; margin:5px 0 0; font-size:19px; line-height:1.55; overflow-wrap:anywhere; }
.ops-page .customer-profit-drawer header small { color:#8a9ab0; font-size:10px; }
.ops-drawer-content { padding:21px 24px 28px; }
.ops-drawer-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px;color:#93a0b3;font-size:10.5px;line-height:1.6}
.ops-drawer-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 20px}.ops-drawer-kpis div{padding:13px;border:1px solid #e6ebf3;border-radius:7px;background:#fcfdff}.ops-drawer-kpis dt{color:#8b98aa;font-size:10.5px}.ops-drawer-kpis dd{margin:8px 0 0;font-size:18px;font-weight:650;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.ops-drawer-kpis small{display:block;margin-top:6px;color:#9ca7b7;font-size:10px;line-height:1.6}
.ops-drawer-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:23px 0 12px}.ops-drawer-title h3{margin:0;color:#4a5e7a;font-size:13px}.ops-drawer-title>span{color:#9ba8ba;font-size:10px}
.ops-project-list{display:grid;gap:9px}.ops-project-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 14px;border:1px solid #e6ebf3;border-radius:7px;background:#fff}.ops-project-row:hover{border-color:#c3d6f8;background:#fcfdff}.ops-project-row .ops-row-name{font-size:12px}.ops-project-row .ops-secondary-value{font-size:10px;margin-top:4px}.ops-project-row .ops-project-money{text-align:right}.ops-project-row .ops-profit-value{font-size:14px}
.ops-review-note{display:flex;gap:8px;align-items:flex-start;margin:15px 0;padding:11px 12px;border:1px solid #eedfc5;border-radius:6px;background:#fffdf6;color:#a58043;font-size:11px;line-height:1.7}.ops-review-note svg{width:14px;height:14px;flex-shrink:0;margin-top:2px}
.ops-breakdown{padding:4px 15px;border:1px solid #e8edf4;border-radius:7px}.ops-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding:13px 0;border-bottom:1px solid #eef1f6;font-size:12px}.ops-breakdown>div:last-child{border:0}.ops-breakdown span{color:#8f9daf}.ops-breakdown strong{font-weight:600;font-variant-numeric:tabular-nums}.ops-breakdown .ops-breakdown-result{padding-top:16px;padding-bottom:16px}.ops-breakdown-result strong{font-size:17px}
.ops-receipt-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #eef1f6;font-size:11px;line-height:1.7}.ops-receipt-row:last-child{border:0}.ops-receipt-row small{display:block;color:#96a3b5;font-size:10px}.ops-receipt-row a,.ops-approval-link{color:#6b89b4;text-decoration:none;font-size:10.5px}.ops-receipt-row a:hover,.ops-approval-link:hover{text-decoration:underline}
.ops-back-customer { display:inline-flex;align-items:center;gap:5px;margin-bottom:16px;padding:0;border:0;color:#6387ba;background:transparent;font-size:11px; }.ops-back-customer svg{width:13px;height:13px}
.ops-empty{display:grid;justify-items:center;gap:8px;padding:44px 15px;color:#8f9daf;text-align:center}.ops-empty svg{width:25px;height:25px;color:#c5cedb}.ops-empty strong{font-size:13px;color:#74849b;font-weight:500}.ops-empty p{margin:0;font-size:11px;line-height:1.7}.ops-empty button{margin-top:7px;padding:7px 12px;border:1px solid #c7d7f0;color:#6387ba;background:#fff;font-size:11px}
.ops-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:60px 10px;color:#96a5ba;font-size:12px}.ops-loading>span{width:15px;height:15px;border:2px solid #e4ecf9;border-top-color:#7fa7f1;border-radius:50%;animation:ops-spin .8s linear infinite}@keyframes ops-spin{to{transform:rotate(360deg)}}
.ops-results[aria-busy="true"] .ops-table{opacity:.65}.ops-results .ops-table{transition:opacity .12s}
html.ops-drawer-open.customer-settlement-document { overflow:hidden; }
@media(max-width:1000px){.ops-heading h1{font-size:22px}.ops-kpis .supplier-kpi{padding:15px 13px;min-height:106px}.ops-kpis .supplier-kpi strong{font-size:23px}.ops-list-tools{flex-wrap:wrap}.ops-table td{padding:14px 9px}.ops-results-head,.ops-filter-row{padding-left:16px;padding-right:16px}.ops-table-wrap,.ops-list-context{margin-left:16px;margin-right:16px}.ops-list-tools{padding-left:16px;padding-right:16px}.ops-table .ops-name-col{width:32%}.ops-table .ops-relation-col{width:16%}.ops-table .ops-revenue-col{width:18%}.ops-table .ops-profit-col{width:21%}.ops-table .ops-date-col{width:13%}}
@media(max-width:760px){.ops-heading{align-items:flex-start;flex-wrap:wrap;margin:16px 0}.ops-heading-tools{gap:7px}.ops-preview-label{display:none}.ops-heading h1{font-size:22px}.ops-heading p{font-size:11px}.ops-page .ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ops-kpis .supplier-kpi{min-height:103px}.ops-kpis .supplier-kpi strong{font-size:23px}.ops-results-head{flex-wrap:wrap;gap:12px;padding:14px}.ops-view-tabs{gap:24px}.ops-view-tabs button{font-size:15px;min-height:31px}.ops-view-tabs button.active::after{bottom:-15px}.ops-range-tools{gap:5px}.ops-range-tools label{font-size:10px;gap:0}.ops-range-tools select{max-width:115px;font-size:10px}.ops-filter-row{flex-wrap:wrap;gap:12px;padding:15px 14px 12px}.ops-type-tabs{gap:3px}.ops-type-tabs button{padding:0 7px;min-height:33px;font-size:11px}.ops-type-tabs button small{font-size:9.5px;margin-left:4px}.ops-search{width:100%;height:37px}.ops-list-tools{align-items:flex-start;padding:0 14px 12px;gap:10px}.ops-presets{gap:4px}.ops-presets button{padding:5px 7px;min-height:30px;font-size:10px}.ops-sort-tools{width:100%;justify-content:space-between}.ops-sort-tools select{min-height:33px}.ops-list-context{margin:0 14px;padding-top:10px;min-height:40px}.ops-table-wrap{margin:0 14px}.ops-table,.ops-table tbody{display:block}.ops-table colgroup{display:none}.ops-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ops-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding:16px 0;border-bottom:1px solid #e9edf4}.ops-table tr:last-child{border-bottom:0}.ops-table td{display:block;padding:0;border:0;text-align:left!important;min-width:0}.ops-table td:first-child{grid-column:1/-1}.ops-table td[data-label]::before{display:block;content:attr(data-label);margin-bottom:6px;color:#9aa6b7;font-size:10px}.ops-table td.ops-last-cell{display:flex;align-items:center;justify-content:space-between;grid-column:1/-1;padding-top:3px}.ops-table td.ops-last-cell::before{display:none}.ops-row-name{font-size:13px}.ops-profit-value{font-size:16px}.ops-detail-link{min-height:32px;margin:0}.ops-list-footer{padding:14px;justify-content:center}.ops-list-footer p{max-width:100%;width:100%;font-size:9.5px}.ops-pagination{justify-content:center}.ops-page-note{font-size:9.5px;flex-wrap:wrap}.ops-sample-notice{align-items:flex-start;flex-wrap:wrap;font-size:10px}.ops-sample-notice>span{flex:1;min-width:160px}.ops-sample-notice button{margin-left:22px}.ops-page .customer-profit-drawer>section{width:min(100%,730px)}.ops-page .customer-profit-drawer header{padding:16px}.ops-page .customer-profit-drawer h2{font-size:18px}.ops-drawer-content{padding:17px 16px 25px}.ops-drawer-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-drawer-kpis dd{font-size:17px}.ops-project-row{padding:12px;gap:9px}.ops-project-row .ops-project-money{max-width:110px}.ops-dialog{padding:19px}.ops-page button{touch-action:manipulation}}
@media(prefers-reduced-motion:reduce){.ops-page *{animation:none!important;transition:none!important}}
.ops-kpis .supplier-kpi strong small { display:inline; }
.ops-search input { height:30px; padding:0; border:0; outline:0; background:transparent; color:#52647f; }
.ops-search:focus-within { border-color:#9dbdf9; box-shadow:0 0 0 2px #3370ff0d; }
.ops-row-sub > button:not(.ops-type-tag) { padding:0; border:0; border-radius:0; background:transparent; color:#90a0b4; font:inherit; text-align:left; }
.ops-row-sub > button:not(.ops-type-tag):hover { color:#3370ff; }
/* Small supporting text stays readable on the existing light finance surfaces. */
.ops-page { --ops-muted:#64748b; }
.ops-heading p,.ops-kpis .supplier-kpi>small,.ops-kpis .supplier-kpi>span,.ops-range-tools label,.ops-type-tabs button,.ops-presets button,.ops-list-context,.ops-table th,.ops-row-sub,.ops-secondary-value,.ops-date,.ops-list-footer p,.ops-page-note,.ops-muted,.ops-drawer-meta,.ops-drawer-kpis dt,.ops-drawer-kpis small,.ops-drawer-title>span,.ops-receipt-row small,.ops-dialog dd { color:var(--ops-muted); }
.ops-secondary-value .ops-loss-link { color:var(--ops-red); }
.ops-type-tag.enterprise { color:#486c9b; }
.ops-type-tag.unknown { color:#8e682b; }
.ops-row-sub>button:not(.ops-type-tag),.ops-detail-link { color:#5f7fab; }
.ops-list-footer p,.ops-page-note { font-size:10px; }
/* Compact operating toolbar: two rows on desktop, natural wrapping on mobile. */
.ops-results-head { justify-content:flex-start; gap:18px; padding:13px 20px; border-bottom:0; }
.ops-view-tabs { gap:18px; flex-shrink:0; }
.ops-view-tabs button { min-height:32px; font-size:15px; }
.ops-view-tabs button.active::after { bottom:-6px; height:2px; }
.ops-type-tabs { padding-left:18px; border-left:1px solid #e7ebf1; flex-shrink:0; gap:2px; }
.ops-type-tabs button { min-height:30px; padding:0 8px; font-size:11px; }
.ops-search { margin-left:auto; width:235px; min-width:170px; }
.ops-list-tools { padding:0 20px 13px; gap:12px; flex-wrap:wrap; border-bottom:1px solid #edf0f4; }
.ops-presets { gap:4px; }
.ops-presets button { padding:5px 7px; min-height:28px; font-size:10px; }
.ops-sort-tools { gap:5px; margin-left:auto; flex-wrap:wrap; }
.ops-sort-tools select { min-height:29px; max-width:132px; padding:0 20px 0 7px; font-size:10px; }
.ops-list-context { min-height:0; margin:0; padding:0; border:0; justify-content:flex-start; gap:10px; flex-wrap:wrap; font-size:10px; }
.ops-list-context span { line-height:1.6; }
.ops-list-footer { padding:10px 20px; min-height:45px; }
.ops-table-wrap { margin-top:10px; }
@media(max-width:760px) {
 .ops-results-head { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"view search" "type type"; gap:13px 16px; padding:14px; }
 .ops-view-tabs { grid-area:view; }
 .ops-view-tabs button.active::after { bottom:-5px; }
 .ops-type-tabs { grid-area:type; border:0; padding:0; gap:4px; }
 .ops-type-tabs button { min-height:32px; padding:0 8px; }
 .ops-search { grid-area:search; min-width:0; width:100%; max-width:280px; }
 .ops-list-tools { padding:0 14px 12px; gap:10px; }
 .ops-sort-tools { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; gap:5px; margin:0; }
 .ops-sort-tools select { width:100%; max-width:none; min-height:32px; }
 .ops-list-footer { padding:10px 14px; justify-content:space-between; }
 .ops-list-context { font-size:10px; }
}
@media(max-width:480px) {
 .ops-sort-tools { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ops-list-footer { gap:6px; }
 .ops-list-context { width:100%; }
}

/* The breadcrumb is the sole page title; source tools share its row. */
.ops-pagebar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; margin:0 0 16px; }
.ops-pagebar .supplier-crumb { margin:0; }
.ops-pagebar .back-btn, .ops-pagebar .back-btn:hover, .ops-pagebar .back-btn:focus { text-decoration:none; }
.ops-pagebar .ops-heading-tools { margin-left:auto; }
@media(max-width:480px) {
 .ops-pagebar { gap:10px; }
 .ops-pagebar .ops-heading-tools { gap:6px; }
 .ops-heading-tools select { max-width:135px; padding-left:7px; }
}
.ops-row-name[href],.ops-detail-link[href],.ops-back-customer[href],.ops-row-sub>a { text-decoration:none; }
.ops-row-sub>a { color:#5f7fab; }
.ops-customer-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:22px 0 18px; }
.ops-customer-heading h1 { margin:0 0 10px; color:#26344b; font-size:24px; line-height:1.45; overflow-wrap:anywhere; }
.ops-customer-heading .ops-drawer-meta { margin:0; }
.ops-customer-source { padding:4px 7px; color:#64748b; background:#eef2f7; font-size:10px; border-radius:4px; white-space:nowrap; }
.ops-customer-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.ops-customer-metrics div { background:#fff; padding:16px 13px; }
.ops-customer-metrics dd { font-size:20px; overflow-wrap:anywhere; }
.ops-customer-sections { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:16px; align-items:start; }
.ops-customer-sections>.card { margin:0; padding:20px; min-width:0; border-radius:10px; }
.ops-section-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:16px; }
.ops-section-heading h2 { margin:0; font-size:15px; color:#34445b; }
.ops-section-heading>span { color:#64748b; font-size:11px; }
.ops-customer-page .ops-project-row { padding:15px 13px; }
.ops-customer-page .ops-receipt-row { padding:12px 0; overflow-wrap:anywhere; }
.ops-customer-page .ops-receipt-row strong { white-space:nowrap; }
@media(max-width:900px){.ops-customer-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ops-customer-sections{grid-template-columns:1fr}}
@media(max-width:480px){.ops-customer-heading h1{font-size:20px}.ops-customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-customer-metrics dd{font-size:19px}.ops-customer-sections>.card{padding:16px}.ops-customer-page .ops-project-row{padding:12px}}
/* Service periods, renewal follow-up, and per-project financial summaries. */
.ops-renewal-link { border:0; background:transparent; padding:0; color:#a96a10; font:inherit; cursor:pointer; }
.ops-presets [data-preset="renewal"].active { color:#9c6817; background:#fffaf0; border-color:#e8d4ad; }
.ops-term-row { display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px; margin-top:7px; font-size:10px; line-height:1.6; }
.ops-term-range { color:#64748b; overflow-wrap:anywhere; }
.ops-renewal-tag { display:inline-block; color:#9c6817; background:#fff8e9; padding:1px 5px; border-radius:4px; font-size:9.5px; white-space:nowrap; }
.ops-renewal-tag.expired,.ops-renewal-tag.today { color:#b9433c; background:#fff2f0; }
.ops-term-edit { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; border:0; color:#64748b; background:transparent; }
.ops-term-edit:hover { background:#edf3ff; color:#3370ff; }
.ops-term-edit svg { width:12px; height:12px; }
.ops-term-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.ops-term-fields label { display:grid; gap:7px; color:#52647f; font-size:12px; }
.ops-term-fields input { box-sizing:border-box; width:100%; min-width:0; height:38px; padding:0 9px; border:1px solid #dfe5ee; border-radius:6px; color:#34445b; background:#fff; }
.ops-term-error { color:#b9433c; font-size:11px; line-height:1.6; }
.ops-customer-sections { grid-template-columns:minmax(0,1fr); }
.ops-project-row { display:block; }
.ops-project-summary { display:grid; grid-template-columns:minmax(0,1fr) 250px; align-items:start; gap:16px 28px; }
.ops-project-heading { min-width:0; }
.ops-project-heading .ops-row-name { max-width:100%; text-align:left; line-height:1.7; overflow-wrap:anywhere; }
.ops-inline-money { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; min-width:0; margin:0; text-align:right; }
.ops-inline-money>div { min-width:0; }
.ops-inline-money dt { color:#64748b; font-size:10px; line-height:1.6; margin-bottom:5px; }
.ops-inline-money dd { margin:0; font-size:16px; font-weight:650; color:#34445b; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ops-inline-money dd.ops-positive { color:var(--ops-green); }.ops-inline-money dd.ops-negative { color:var(--ops-red); }.ops-inline-money dd.ops-pending{color:var(--ops-amber);font-size:13px}
.ops-project-receipts { margin-top:11px; border-top:1px solid #edf0f5; padding-top:8px; }
.ops-project-receipts summary { cursor:pointer; width:fit-content; color:#64748b; font-size:10px; line-height:1.8; }
.ops-project-receipts[open] summary { margin-bottom:6px; color:#3370ff; }
.ops-project-receipts .ops-receipt-row { font-size:11px; }
.ops-unlinked-receipts { margin-top:16px; }
@media(max-width:600px){.ops-project-summary{grid-template-columns:1fr;gap:12px}.ops-inline-money{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;text-align:left}.ops-inline-money dd{font-size:16px}.ops-term-row{font-size:10px}.ops-term-fields{gap:8px}}
/* Three action KPI entry points and one quiet toolbar. */
.ops-page .ops-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ops-kpis .supplier-kpi { min-height:99px; padding:15px 14px 12px; }
.ops-kpis .supplier-kpi strong { font-size:24px; }
.ops-kpis .supplier-kpi>small { font-size:10px; }
.ops-renewal-kpi { border-color:#e6d5b4; background:#fffcf6; }
.ops-renewal-kpi strong { color:#9c6817!important; }
.ops-toolbar { display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid #edf0f4; }
.ops-toolbar .ops-view-tabs { gap:17px; }
.ops-toolbar .ops-view-tabs button.active::after { bottom:-8px; }
.ops-toolbar>select { width:104px; min-width:0; height:33px; padding:0 21px 0 8px; border:1px solid #e0e6ee; background:#fff; color:#52647f; font-size:11px; }
.ops-toolbar .ops-search { flex:1; width:auto; min-width:130px; margin:0 0 0 auto; }
.ops-toolbar #opsSort { width:98px; }
.ops-toolbar #opsFilters { height:33px; min-height:33px; padding:0 11px; color:#64748b; white-space:nowrap; }
.ops-toolbar #opsFilters.active { color:#3370ff; border-color:#9dbcf7; background:#f3f7ff; }
.ops-filter-dialog { width:min(360px,calc(100vw - 32px)); }
.ops-filter-fields { display:grid; gap:14px; margin-top:20px; }
.ops-filter-fields label { display:grid; gap:7px; color:#64748b; font-size:12px; }
.ops-filter-fields select { width:100%; min-height:36px; padding:0 10px; border:1px solid #dfe5ee; background:#fff; color:#34445b; }
.ops-row-sub:empty { display:none; }
.ops-list-footer .ops-list-context { font-size:10px; }
.ops-table .ops-detail-link { color:#6983a9; }
.ops-table .ops-detail-link svg { width:14px; height:14px; }
.ops-page-note span:empty { display:none; }
@media(max-width:1000px) and (min-width:800px){.ops-kpis .supplier-kpi{padding:14px 12px;min-height:100px}.ops-kpis .supplier-kpi strong{font-size:22px}}
@media(max-width:799px){.ops-page .ops-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.ops-kpis .supplier-kpi{min-height:93px;padding:13px}.ops-kpis .supplier-kpi strong{font-size:23px}.ops-toolbar{gap:8px;padding:13px 14px}.ops-toolbar>select{width:94px}.ops-toolbar .ops-search{min-width:110px}.ops-toolbar .ops-view-tabs{gap:13px}}
@media(max-width:600px){.ops-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"view focus filters" "search search sort";gap:12px 10px}.ops-toolbar .ops-view-group{grid-area:view}.ops-toolbar #opsFocus{grid-area:focus;width:100%}.ops-toolbar #opsFilters{grid-area:filters}.ops-toolbar .ops-search{grid-area:search;min-width:0;width:100%;max-width:none}.ops-toolbar #opsSort{grid-area:sort;width:94px}}
@media(max-width:600px){.ops-toolbar>select,.ops-toolbar #opsFilters,.ops-toolbar .ops-view-tabs button{height:44px;min-height:44px}.ops-toolbar .ops-search{height:44px}.ops-toolbar .ops-search input{height:40px}}

/* Shared customer/project list: count in toolbar, pagination only when needed. */
.ops-view-group { display:flex; align-items:center; gap:9px; flex-shrink:0; }
.ops-result-count { min-width:16px; color:#8591a4; font-size:11px; font-variant-numeric:tabular-nums; }
.ops-list-footer[hidden] { display:none; }
.ops-list-footer { justify-content:flex-end; }
.ops-status-actions { display:flex; align-items:center; justify-content:space-between; gap:5px; }
.ops-status-actions .ops-phase { display:inline-flex; align-items:center; gap:5px; padding:0; background:transparent; color:#557369; font-size:10px; }
.ops-status-actions .ops-phase::before { content:''; width:5px; height:5px; flex-shrink:0; border-radius:50%; background:#15947a; }
.ops-status-actions .ops-phase.ended { color:#8994a5; }
.ops-status-actions .ops-phase.ended::before { background:#a3adbb; }
.ops-status-actions .ops-detail-link { display:inline-flex; align-items:center; justify-content:center; width:28px; min-width:28px; min-height:32px; margin:0; }
@media(max-width:760px){.ops-status-actions{width:100%}}
@media(max-width:600px){.ops-view-group{gap:6px}.ops-toolbar .ops-view-tabs{gap:10px}.ops-result-count{font-size:10px}}

/* One ranking control and a short search field. */
.ops-toolbar .ops-search { flex:0 1 210px; width:210px; min-width:130px; margin:0 0 0 auto; }
.ops-toolbar #opsFilters { flex-shrink:0; }
@media(max-width:600px){.ops-toolbar{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"view focus filters" "search search search"}.ops-toolbar .ops-search{width:100%;max-width:230px;min-width:0;margin:0}.ops-toolbar #opsFocus{min-width:100px}}

.ops-project-count-link,.ops-person-link { color:inherit; text-decoration:none; border-radius:4px; }
.ops-project-count-link:hover,.ops-person-link:hover { color:#3370ff; }
.ops-project-count-link:focus-visible,.ops-person-link:focus-visible { outline:2px solid #3370ff; outline-offset:4px; }
.ops-person-link { display:inline-block; }
#opsCustomerProjects { scroll-margin-top:90px; }

.ops-review-link { display:inline-flex; align-items:center; gap:3px; padding:2px 0; border:0; border-radius:4px; background:transparent; color:#a96a0b; font:inherit; cursor:pointer; white-space:nowrap; }
.ops-review-link:hover { color:#805000; background:#fff8e9; }
.ops-review-link svg { width:12px; height:12px; }
.ops-row-sub .ops-review-link { color:#a16e27; }
.ops-review-dialog { width:min(460px,calc(100vw - 32px)); max-height:85dvh; margin:auto; overflow:auto; padding:20px; }
.ops-review-dialog header p { margin:7px 0 0; color:#7b889b; font-size:12px; overflow-wrap:anywhere; }
.ops-review-dialog select,.ops-review-dialog input:not([type=checkbox]) { width:100%; box-sizing:border-box; min-height:38px; padding:8px 10px; border:1px solid #dfe5ee; border-radius:6px; background:#fff; color:#34445b; font:inherit; font-size:12px; }
.ops-review-dialog select { margin-top:16px; }
.ops-review-status { margin:17px 0 14px; color:#a17329; font-size:12px; }
.ops-review-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.ops-review-dialog .ops-review-amounts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; margin:0; }
.ops-review-dialog .ops-review-amounts>div { margin:0; }
.ops-review-dialog .ops-review-amounts dt { color:#8190a5; font-size:11px; font-weight:400; }
.ops-review-dialog .ops-review-amounts dd { margin:6px 0 0; font-size:18px; font-weight:600; color:#34445b; line-height:1.3; }
.ops-review-summary button { font-size:11px; white-space:nowrap; }
.ops-review-check { display:flex; align-items:flex-start; gap:8px; margin-bottom:12px; color:#34445b; font-size:12px; line-height:1.7; }
.ops-review-check input { margin-top:4px; accent-color:#3370ff; }
.ops-review-dialog footer { align-items:center; justify-content:space-between; gap:12px; margin-top:20px; }
.ops-review-dialog footer .ops-muted { font-size:10px; }
.ops-review-approval { display:inline-flex; align-items:center; text-decoration:none; }
.ops-review-error { color:#c03939; font-size:12px; }
@media(max-width:600px){.ops-review-link{min-height:32px}.ops-review-dialog{padding:18px}.ops-review-dialog select,.ops-review-dialog input:not([type=checkbox]){min-height:44px}.ops-review-dialog .ops-review-amounts{gap:18px}.ops-review-dialog .ops-review-amounts dd{font-size:16px}}

.ops-review-saved { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px; margin:12px 0; background:#f5f8fc; border-radius:6px; font-size:12px; }.ops-review-saved summary{cursor:pointer}.ops-review-saved p{max-width:100%;overflow-wrap:anywhere}.ops-review-saved button{white-space:nowrap}

.ops-inline-receipts { grid-column:1/-1; display:grid; gap:10px; margin:0; padding-top:13px; border-top:1px solid #edf0f5; }
.ops-inline-receipt { display:grid; grid-template-columns:110px 88px minmax(0,1fr) auto; align-items:baseline; gap:6px 18px; color:#7b899d; font-size:11px; line-height:1.8; }
.ops-receipt-amount,.ops-inline-receipt time { white-space:nowrap; }
.ops-receipt-source { min-width:0; overflow-wrap:anywhere; }
.ops-receipt-shared { margin-left:12px; color:#9a7c47; }
.ops-inline-receipt strong { color:#4d5d74; font-weight:600; font-variant-numeric:tabular-nums; }
.ops-inline-receipt a { color:#6387ba; text-decoration:none; white-space:nowrap; }
.ops-inline-receipt a:hover { text-decoration:underline; }

@media(max-width:600px){
 .ops-inline-receipts{gap:13px;padding-top:12px}
 .ops-inline-receipt{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}
 .ops-receipt-source{grid-column:1;grid-row:2}
 .ops-inline-receipt a{grid-column:2;grid-row:2;align-self:end}
 .ops-receipt-shared{display:block;margin-left:0}
}

/* Review dialogs name the task and show the next action directly. */
.ops-review-instruction { margin:22px 0 16px; color:#34445b; font-size:14px; line-height:1.8; }
.ops-review-followup { margin:12px 0 0; color:#718096; font-size:12px; line-height:1.8; }
.ops-review-field { display:grid; gap:7px; margin-top:12px; color:#52647f; font-size:12px; }
.ops-review-field select { margin-top:0; }
.ops-review-dialog footer { display:flex; }
.ops-review-dialog footer>button,.ops-review-dialog footer>a { min-height:40px; border-radius:6px; white-space:nowrap; justify-content:center; align-items:center; padding:8px 14px; box-sizing:border-box; font-size:12px; }
@media(max-width:600px){.ops-review-dialog footer>button,.ops-review-dialog footer>a{min-height:44px}.ops-review-dialog header p{line-height:1.7}.ops-review-instruction{font-size:14px}}

/* One worksheet table; payment lookup appears only when linking a cost. */
.ops-worksheet-dialog { width:min(660px,calc(100vw - 32px)); max-width:calc(100vw - 32px); box-sizing:border-box; }
.ops-worksheet-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.ops-worksheet-dialog>header { flex:0 0 auto; }
.ops-worksheet-dialog #opsReviewBody { min-height:0; overflow-y:auto; }
.ops-sheet-toolbar { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:22px; margin:8px 0; color:#8490a2; font-size:11px; }
.ops-sheet-toolbar .is-error { color:#b94339; }
.ops-sheet-toolbar>div { display:flex; gap:8px; }
.ops-sheet-table { width:100%; table-layout:fixed; border-collapse:collapse; color:#34445b; font-size:12px; }
.ops-sheet-table th { padding:8px; background:#f5f7fa; color:#75849a; text-align:left; font-size:11px; font-weight:500; }
.ops-sheet-table th:nth-child(1) { width:34%; }.ops-sheet-table th:nth-child(2){width:27%}
.ops-sheet-table td { padding:7px 8px; border-bottom:1px solid #edf0f4; line-height:1.6; vertical-align:middle; overflow-wrap:anywhere; }
.ops-sheet-table td:nth-child(2) { font-variant-numeric:tabular-nums; }
.ops-sheet-table td small { display:block; color:#8490a2; font-size:10px; line-height:1.6; margin-top:2px; }
.ops-sheet-table a { color:#6387ba; text-decoration:none; }.ops-sheet-table a:hover{text-decoration:underline}
.ops-sheet-table input,.ops-sheet-table select { min-width:0; max-width:100%; width:100%; box-sizing:border-box; font-variant-numeric:tabular-nums; }
.ops-sheet-table input { min-height:34px!important; padding:6px 8px!important; }.ops-sheet-table input:focus { outline:2px solid #8db4ff; outline-offset:1px; }
.ops-sheet-table input:disabled { background:#f5f7fa; color:#718096; }
.ops-sheet-table .ops-sheet-cost-heading td { border-bottom:0; padding-top:12px; padding-bottom:3px; }
.ops-sheet-draft-actions { display:flex; flex-wrap:wrap; gap:3px 12px; }
.ops-sheet-draft-actions button { white-space:nowrap; }
.ops-sheet-table .ops-sheet-link-row td { padding:6px 8px 12px; background:#f8faff; }
.ops-sheet-link-picker { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; }
.ops-sheet-link-picker select { margin:0; font-size:11px; }
.ops-sheet-table .ops-sheet-cost-total td { color:#75849a; font-size:11px; }
.ops-sheet-table .ops-sheet-profit-row td { background:#f5faf8; border-bottom:0; padding-top:10px; padding-bottom:10px; }
.ops-sheet-profit-row [data-sheet-profit] { font-size:18px; }
.ops-sheet-hint { margin:9px 0 0; color:#8490a2; font-size:10px; line-height:1.6; }
.ops-sheet-footer .ops-text-button { color:#718096; }
.ops-worksheet-dialog .ops-sheet-footer { position:sticky; bottom:0; z-index:1; margin-top:10px; padding:10px 0 0; background:#fff; }
.ops-sheet-money { font:inherit; color:inherit; padding:0; border:0; background:transparent; border-radius:4px; cursor:pointer; }.ops-sheet-money:hover{color:#3370ff}.ops-sheet-money:focus-visible{outline:2px solid #3370ff;outline-offset:3px}
@media(max-width:600px){
 .ops-worksheet-dialog{padding:14px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:90dvh}
 .ops-sheet-table th,.ops-sheet-table td{padding:7px 5px}.ops-sheet-table input{min-height:44px!important;padding:6px!important;font-size:12px!important}
 .ops-sheet-table th:nth-child(1){width:32%}.ops-sheet-table th:nth-child(2){width:26%}
 .ops-sheet-toolbar{align-items:start}.ops-sheet-toolbar>div{flex-direction:column;align-items:end}
 .ops-sheet-draft-actions{gap:2px 9px}.ops-sheet-draft-actions button{min-height:32px}
}
