/* Spreadsheet density inside the existing portal; no changes to teammate-owned layout. */
.nav > [data-ct8-nav] { display:none; }
.role-ct8-staff .nav > .nav-block:not([data-ct8-nav]) { display:none; }
.role-ct8-staff .nav > [data-ct8-nav] { display:block; }
.role-ct8-staff .nav { gap:8px; }
.role-ct8-staff .nav > [data-ct8-nav] { padding:2px 0; }
.role-ct8-staff .nav [data-ct8-nav] .nav-label { padding-top:6px; }
.role-ct8-staff .nav [data-ct8-nav] summary { cursor:pointer; }
.role-ct8-staff .nav [data-ct8-nav] a { height:32px; min-height:32px; padding-top:6px; padding-bottom:6px; }
.nav .nav-icon{width:17px;height:17px;flex:0 0 17px;color:inherit;margin-right:8px}
.wr-business-switch,.wr-boss-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 14px;border-top:1px solid #d7e0e8}
.wr-business-switch{justify-content:flex-start;gap:6px;background:#f3f6fa}
.wr-business-switch a{padding:7px 10px;border:1px solid #ccd6df;border-radius:5px;font-size:12px;text-decoration:none}
.wr-business-switch [aria-current=page],.wr-boss-actions [aria-pressed=true]{background:#e9eff7;border-color:#7394be;color:#183e74}
.wr-boss-context{padding:6px 14px;margin:0;color:#607188;font-size:12px}
.wr-boss-summary td{vertical-align:middle}
.wr-boss-summary .wr-money{font-size:20px}
.wr-boss-groups{min-width:650px}
.wr-boss-actions>div{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
.wr-boss-actions a{font-size:12px}
@media(max-width:700px){.role-ct8-staff .nav [data-ct8-nav] a{min-height:44px;height:auto}.wr-business-switch a{min-height:40px;display:flex;align-items:center}.wr-boss-actions .btn{min-height:44px}}
.wr-next { display:flex; flex-wrap:wrap; gap:8px 20px; padding:8px 2px 16px; font-size:13px; }
#weekly-review-root,#boss-review-root { --wr-border:#c8d3e2; --wr-head:#e9eff7; --wr-ink:#203753; }
#weekly-review-root { padding-bottom:36px; }
#weekly-review-root > .page-head { margin-bottom:8px; padding-bottom:0; }
#weekly-review-root > .page-head h1 { font-size:24px; }
#weekly-review-root > .page-head p { margin-top:4px; font-size:12px; }
.wr-context { padding:6px 10px; margin-bottom:6px; border-left:3px solid #245f9e; background:#f3f6fa; color:#445b78; font-size:12px; }
.wr-context b { display:block; color:#9a4720; }
#weekly-review-root > .wr-countline { margin:6px 0 10px; }
.wr-toolbar .wr-field { flex:0 1 115px; min-width:95px; gap:4px; }
.wr-toolbar .wr-field-week { flex-basis:175px; min-width:170px; }
.wr-toolbar .wr-search { flex:1; min-width:140px; }
.wr-navigation { display:flex; align-items:center; border-top:1px solid var(--wr-border); gap:8px; }
.wr-navigation > .wr-tabs { border-top:0; flex:1; min-width:0; padding:0 12px; gap:16px; }
.wr-more { position:relative; flex:none; padding-right:12px; color:#50647e; font-size:12px; }
.wr-more summary { cursor:pointer; padding:10px 0; }
.wr-more nav { position:absolute; right:8px; top:36px; z-index:8; display:grid; min-width:230px; max-height:45vh; overflow:auto; padding:6px; border:1px solid var(--wr-border); border-radius:6px; background:white; box-shadow:0 6px 18px #2037531c; }
.wr-more nav a { padding:8px; color:#344c6c; text-decoration:none; }
.wr-more nav a:hover,.wr-more nav a[aria-current] { background:#e9eff7; }
.wr-more a:focus-visible,.wr-more summary:focus-visible { outline:2px solid #295aac; }
.wr-card,.wr-controls,.wr-sources,.wr-detail { border:1px solid var(--wr-border); border-radius:8px; background:#fff; margin:0 0 12px; overflow:hidden; }
.wr-controls { overflow:visible; }
.wr-card .card-head { background:#f3f6fa; border-bottom:1px solid var(--wr-border); padding:10px 14px; margin:0; }
.wr-card .card-title { font-weight:650; color:var(--wr-ink); }
.wr-card { padding:0; }
.wr-card > p,.wr-card > .empty { padding:10px 14px; margin:0; }
.wr-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:8px; padding:10px 14px; }
.wr-field { display:grid; gap:6px; min-width:120px; }
.wr-field > span { color:#3d4f66; font-size:12px; font-weight:600; }
.wr-search { flex:1; min-width:180px; }
.wr-tabs { display:flex; overflow:auto; padding:0 16px; border-top:1px solid var(--wr-border); gap:20px; }
.wr-tabs a { padding:10px 2px; white-space:nowrap; text-decoration:none; border-bottom:3px solid transparent; color:#50647e; font-size:13px; }
.wr-tabs a[aria-current] { border-bottom-color:#295aac; color:#1e4686; font-weight:700; }
.wr-alert { padding:14px 18px; margin:0 0 18px; border:1px solid #e3ce9e; border-left:4px solid #b7832f; border-radius:8px; background:#fff7e7; color:#60481f; font-size:13px; line-height:1.7; }
.wr-preview { background:#e9eff7; color:#244e81; border-color:#c6d6ee; border-left-color:#245f9e; }
.wr-metrics { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--wr-border); border-radius:10px; background:white; padding:20px 0; margin:0 0 18px; }
.wr-metrics div { padding:0 20px; border-right:1px solid #d7e0e8; }
.wr-metrics div:last-child { border:0; }
.wr-metrics dt { font-size:12px; color:#52677b; }.wr-metrics dd { margin:8px 0 0; font-size:28px; font-weight:650; color:#203753; font-variant-numeric:tabular-nums; }
.wr-metrics small { display:block; margin-top:7px; font-size:12px; font-weight:400; color:#718097; }
.wr-grid { width:100%; border-collapse:separate; border-spacing:0; font-size:12px; font-variant-numeric:tabular-nums; }
.wr-grid th { position:sticky; top:0; z-index:1; background:var(--wr-head); color:#344c6c; padding:9px 10px; border-bottom:1px solid #becbda; white-space:nowrap; letter-spacing:0; }
.wr-grid td { border-bottom:1px solid #d7e0e8; border-right:1px solid #e9ebee; padding:7px 10px; height:auto; vertical-align:top; line-height:1.4; }
.wr-grid .wr-grid td,.wr-grid .wr-grid th { height:auto; padding:7px 10px; white-space:nowrap; }
.wr-grid tbody tr:nth-child(even) td { background:#ffffff; }.wr-grid tbody tr:hover td { background:#f3f6fa; }
.wr-grid tr:last-child td { border-bottom:0; }.wr-grid td:last-child { border-right:0; }
.wr-review-grid { min-width:1560px; }.wr-account-grid { min-width:1450px; }
.wr-review-grid th:first-child,.wr-review-grid td:first-child,.wr-account-grid th:first-child,.wr-account-grid td:first-child { position:sticky; left:0; z-index:2; background:#fff; min-width:120px; box-shadow:2px 0 0 #c8d3e2; }.wr-review-grid th:first-child,.wr-account-grid th:first-child { z-index:3; background:var(--wr-head); }
.wr-review-grid th:nth-child(6),.wr-review-grid th:nth-child(9),.wr-review-grid th:nth-child(11) { background:#f0eee9; color:#615444; }
.wr-review-grid td:nth-child(6),.wr-review-grid td:nth-child(9),.wr-review-grid td:nth-child(11) { background:#ffffff; }
.wr-card .tw { max-height:620px; overflow:auto; margin:0; padding:0; overscroll-behavior:contain; }
.wr-card .tw:focus-visible { outline:2px solid #295aac; outline-offset:-2px; }
.wr-money { white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:550; }.wr-money small { font-size:12px; font-weight:400; color:#718097; }
.wr-unknown { color:#7c8796; font-size:12px; white-space:nowrap; }
.wr-source { display:block; margin-top:3px; font-size:12px; color:#607188; font-weight:400; }
.wr-sheet { min-width:880px; }
.wr-workbook-grid { min-width:760px; }
.wr-workbook-grid [data-wr="workbook-detail"] { cursor:pointer; }
.wr-workbook-grid .accounting-link { font:inherit; color:#2459a0; background:none; border:0; padding:3px 0; text-align:left; cursor:pointer; }
.wr-workbook-findings,.wr-workbook-evidence { padding:10px 14px; border-bottom:1px solid var(--wr-border); }
.wr-workbook-findings details { margin:8px 0; }
.wr-workbook-findings summary,.wr-workbook-evidence summary { cursor:pointer; }
.wr-workbook-findings p,.wr-workbook-evidence p { max-width:80ch; overflow-wrap:anywhere; }
.wr-workbook-pages { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; }
.wr-workbook-detail > td { padding:12px!important; background:#f3f6fa; white-space:normal; }
.wr-workbook-detail code { overflow-wrap:anywhere; }
.wr-workbook .wr-calendar-warning { display:block; margin-top:3px; font-size:12px; color:#8b4800; font-weight:600; }
.wr-workbook-detail details { margin-top:8px; }
.wr-workbook-detail summary { cursor:pointer; }
.wr-workbook-grid > tbody > tr > td:first-child,.wr-workbook-grid > thead > tr > th:first-child { position:sticky; left:0; z-index:2; background:#fff; min-width:140px; border-right:1px solid #c8d3e2; }
.wr-workbook-grid > thead > tr > th:first-child { background:var(--wr-head); z-index:3; }
.wr-workbook-grid > tbody > .wr-workbook-detail > td:first-child { position:static; }
@media(max-width:700px){
  .wr-workbook-grid .accounting-link { min-height:44px; }
  .wr-workbook-pages .btn { min-height:44px; }
  .wr-workbook-detail > td > p,.wr-workbook-detail > td > details,.wr-workbook-detail > td > .tw { max-width:calc(100vw - 80px); overflow-wrap:anywhere; }
}
.wr-grid.wr-native-controls { min-width:0; table-layout:fixed; }
.wr-native-controls th,.wr-native-controls td { padding:5px 8px; }
.wr-native-controls th:first-child,.wr-native-controls td:first-child { width:55%; overflow-wrap:anywhere; white-space:normal; }
.wr-native-controls .wr-money,.wr-native-controls .wr-unknown { overflow-wrap:anywhere; white-space:normal; }
.wr-sheet th { padding:8px; font-size:12px; }
.wr-sheet td { padding:5px 8px; vertical-align:middle; }
.wr-sheet > thead > tr > th:first-child,.wr-sheet > tbody > tr > td:first-child { position:sticky; left:0; z-index:2; min-width:95px; background:#f3f6fa; border-right:1px solid #c8d3e2; }
.wr-sheet > thead > tr > th:first-child { z-index:3; background:#e9eff7; }
.wr-sheet .wr-source { margin-top:2px; line-height:1.35; }
.wr-grid.wr-sheet .btn { display:inline-flex; min-height:30px; margin:1px 4px 1px 0; }
@media(max-width:639px) { .wr-navigation { flex-wrap:wrap; }.wr-navigation > .wr-tabs { flex-basis:100%; }.wr-more { margin-left:auto; } }
#wr-allocation-detail > .wr-evidence { max-width:none; min-width:0; padding:10px; }
#wr-allocation-detail .tw { max-height:400px; }
.wr-sources > .wr-card { margin:8px 0 0; }
@media print { .wr-sheet { min-width:0; }.wr-sheet > thead > tr > th:first-child,.wr-sheet > tbody > tr > td:first-child { position:static; } }
.wr-grid .pill { font-size:12px; margin-bottom:0; display:inline-flex; }.wr-grid .btn { display:block; white-space:nowrap; min-height:30px; }
.wr-agent-link { appearance:none; background:none; border:0; padding:0; color:#245395; font:inherit; font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.wr-account-link { display:block; min-height:32px; text-align:left; width:100%; }
@media(max-width:700px){.wr-account-link{min-height:44px}}
.wr-detail { scroll-margin-top:108px; border-color:#7599c9; box-shadow:0 0 0 2px #e9eff7; }
.wr-detail-head { display:flex; justify-content:space-between; align-items:center; padding:18px; border-bottom:1px solid #bbcee7; background:#f3f6fa; gap:12px; }
.wr-detail h2 { margin:6px 0 0; font-size:18px; }.wr-detail h2 span { font-size:12px; color:#718097; font-weight:400; }
.wr-our45-source .wr-detail-head { padding:14px 18px; }
@media(max-width:600px) {
  .wr-our45-source .wr-detail-head { flex-wrap:wrap; gap:8px; padding:12px; }
  .wr-our45-source .wr-detail-head > div { flex-basis:100%; }
  .wr-our45-source .wr-detail-head h2 { margin:0; font-size:16px; }
}
.wr-kicker { color:#456892; font-size:12px; text-transform:uppercase; letter-spacing:.12em; }
.wr-formula { padding:18px; background:#ffffff; border-bottom:1px solid var(--wr-border); }
.wr-formula p { line-height:1.7; font-size:13px; margin:8px 0 0; }.wr-note { font-size:12px; color:#607188; line-height:1.8; }
.wr-bridge { display:grid; grid-template-columns:repeat(3,1fr); padding:18px; gap:14px; }.wr-bridge div { border:1px solid #d1ddeb; border-radius:6px; padding:14px; }.wr-bridge span,.wr-bridge small { display:block; color:#607188; font-size:12px; }.wr-bridge b { display:block; margin:8px 0; font-size:18px; }.wr-bridge hr { border:0; border-top:1px solid #d7e0e8; margin:14px 0; }
.wr-detail > p,.wr-detail > h3,.wr-detail > a { margin:16px 18px; }.wr-detail h3 { font-size:13px; }
.wr-verdict { padding:16px 18px; background:#fff7e7; border-top:1px solid #eee1c8; border-bottom:1px solid #eee1c8; font-size:12px; line-height:1.7; }
.wr-help { padding:10px 14px; border:1px dashed #becbda; border-radius:8px; color:#5b7290; font-size:12px; margin-bottom:12px; }
.wr-sources { padding:10px 14px; font-size:12px; line-height:1.6; color:#607188; }.wr-sources summary { cursor:pointer; font-weight:600; }.wr-sources a { color:#245395; }
.wr-readiness .wr-grid { table-layout:fixed; margin-top:12px; }
.wr-readiness .wr-grid th,.wr-readiness .wr-grid td { white-space:normal; overflow-wrap:anywhere; padding:10px; }
.wr-readiness .wr-grid th:first-child { width:22%; }.wr-readiness .wr-grid th:last-child { width:25%; }
.wr-readiness .pill { white-space:normal; }
.wr-formulas { min-width:1350px; }.wr-formulas td { min-width:160px; max-width:320px; white-space:pre-wrap; }.wr-formulas td:first-child { min-width:40px; }.wr-formulas code { display:block; margin-top:6px; padding:5px; background:#e9eff7; color:#244e81; font-size:12px; overflow-wrap:anywhere; }
.wr-paging { padding:14px 18px; text-align:right; font-size:12px; }.wr-paging .btn { margin-left:8px; }
.boss-sample { border:1px dashed #becbda; padding:18px; border-radius:10px; }.boss-sample > summary { cursor:pointer; color:#718097; font-size:12px; margin-bottom:14px; }
@media(max-width:800px) { .wr-metrics { grid-template-columns:repeat(2,1fr); gap:20px 0; }.wr-metrics div:nth-child(2) { border:0; }.wr-bridge { grid-template-columns:1fr; }.wr-detail-head { align-items:start; }.wr-toolbar { gap:10px; padding:14px; }.wr-field { min-width:calc(50% - 5px); flex:1; }.wr-card .tw { max-height:65vh; }.wr-metrics small { font-size:12px; } }
@media print { .wr-controls,.wr-alert,.wr-sources,.wr-detail-head .btn,.wr-grid .btn,.head-actions { display:none; }.wr-card .tw { overflow:visible; max-height:none; }.wr-grid th,.wr-review-grid td:first-child { position:static; }.wr-grid { font-size:8px; min-width:0; }.wr-grid td,.wr-grid th { padding:5px; } }
.wr-sync-status{display:grid;gap:6px;border:1px solid #9bbba9;border-left:4px solid #347653;background:#edf7f0;padding:16px 18px;margin-bottom:16px;color:#214a35;border-radius:6px}.wr-sync-status span{font-size:12px;line-height:1.6}.wr-sync-status b{font-size:16px}
.wr-sync-request { margin-bottom:16px; padding:16px; border:1px solid var(--border,#d7e0e8); border-radius:8px; background:var(--bg,#ffffff); }
.wr-sync-fields { display:flex; align-items:end; gap:12px; flex-wrap:wrap; }
.wr-sync-fields label { display:grid; gap:6px; font-size:12px; }
.wr-sync-fields input { min-height:36px; }
.wr-version { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:10px 14px; margin:0 0 12px; border:1px solid var(--wr-border); border-left:4px solid #245f9e; background:#f3f6fa; border-radius:8px; }
.wr-version label { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; font-weight:650; color:#203753; }
.wr-version .select { width:auto; max-width:100%; }.wr-version > span { color:#50647e; font-size:12px; line-height:1.7; }
.wr-accounting-grid { min-width:1510px; }.wr-accounting-summary { min-width:1050px; }
.wr-accounting-summary td,.wr-accounting-grid td:nth-child(2) { white-space:nowrap; }
.wr-difference-grid { min-width:1040px; }
.wr-difference-grid td:first-child { min-width:120px; }
.wr-difference-grid td:last-child { min-width:240px; max-width:360px; }
.wr-reason summary { cursor:pointer; color:#245395; }
.wr-reason p { margin:6px 0 0; line-height:1.55; white-space:normal; }
.wr-adjustment-help { padding:10px 14px; border-top:1px solid var(--wr-border); font-size:12px; color:#50647e; line-height:1.6; }
.wr-adjustment-help summary { cursor:pointer; color:#245395; font-weight:600; }
.wr-adjustment-help p { margin:6px 0 0; }
.wr-controls > .wr-sources { margin:0; border:0; border-top:1px solid var(--wr-border); border-radius:0; }
.wr-accounting-grid > thead > tr > th:first-child,.wr-accounting-grid > tbody > tr > td:first-child { position:sticky; left:0; z-index:2; min-width:90px; background:#ffffff; box-shadow:2px 0 0 #c8d3e2; }
.wr-accounting-grid > thead > tr > th:first-child { z-index:3; background:var(--wr-head); }
.wr-accounting-grid > thead > tr > th:nth-child(4),.wr-accounting-grid > thead > tr > th:nth-child(6) { background:#eeeade; }
.wr-accounting-grid > tbody > tr > td:nth-child(4),.wr-accounting-grid > tbody > tr > td:nth-child(6) { background:#fcfaf3; }
.wr-evidence { min-width:170px; max-width:800px; }.wr-evidence summary,.wr-grid details > summary { cursor:pointer; color:#245395; white-space:nowrap; }
.wr-evidence[open] { min-width:680px; }.wr-evidence .tw { max-height:320px; }.wr-grid details .wr-accounting-grid { min-width:1450px; }
.wr-card > .wr-evidence { max-width:none; min-width:0; padding:9px 14px; border-top:1px solid var(--wr-border); }
.wr-pending > summary { cursor:pointer; padding:16px 18px; color:#245395; font-size:13px; font-weight:600; }
.wr-pending > p { padding:0 18px; }
.wr-countline { margin:0 0 18px; color:#50647e; font-size:12px; line-height:1.7; }.wr-countline b { color:#203753; }
.wr-accounting-summary th:first-child,.wr-accounting-summary td:first-child { position:sticky; left:0; z-index:2; background:#ffffff; min-width:70px; box-shadow:2px 0 0 #c8d3e2; }.wr-accounting-summary th:first-child { z-index:3; background:var(--wr-head); }
.wr-agent-link:focus-visible,.wr-evidence summary:focus-visible,.wr-tabs a:focus-visible { outline:2px solid #295aac; outline-offset:3px; }
@media(max-width:800px) { .wr-version { align-items:start; }.wr-version label { width:100%; }.wr-version .select { width:100%; }.wr-accounting-grid > tbody > tr > td:first-child { min-width:70px; } }
@media print { .wr-accounting-grid > thead > tr > th:first-child,.wr-accounting-grid > tbody > tr > td:first-child { position:static; }.wr-accounting-grid,.wr-accounting-summary { min-width:0; } }
.wr-rule-fields { display:flex; gap:20px; flex-wrap:wrap; margin:16px 0; }
.wr-rule-fields label,.wr-rule-note { display:flex; flex-direction:column; gap:8px; font-weight:600; }
.wr-rule-fields label { min-width:240px; }
.wr-rule-grid input { min-width:240px; }
.wr-rule-note { margin:16px 0; }
.wr-rule-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; }
.wr-rule-actions span { color:var(--muted,#607188); font-size:12px; }
.ct8-review { padding:14px; }
.ct8-review fieldset { min-width: 0; border: 1px solid var(--wr-border,#c8d3e2); border-radius: 6px; padding: 16px; margin: 12px 0; }
.ct8-review summary { cursor:pointer; padding:12px; font-weight:600; }
.ct8-review label { display: grid; gap: 6px; margin: 8px 0; font-size: 13px; }
.ct8-review input, .ct8-review select { width: 100%; min-width: 0; }
.ct8-review-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ct8-review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.ct8-review td { vertical-align: top; min-width: 210px; white-space: normal; }
.ct8-review td:last-child { min-width: 270px; }
.ct8-review fieldset { padding:12px; }
.ct8-review summary { padding:8px; }
.ct8-review .tw { margin:0; padding:0; }
@media(max-width:639px) { .ct8-review-fields { grid-template-columns: 1fr; } }
.ct8-review .wr-evidence,.ct8-review .wr-evidence[open] { min-width:0; max-width:100%; }
.ct8-review summary { white-space:normal; overflow-wrap:anywhere; line-height:1.6; }
@media(max-width:639px) {
  .ct8-review { padding:10px; }
  .ct8-review fieldset { padding:10px; }
  .ct8-review .tw { display:block; overflow:visible; max-height:none; }
  .ct8-review table,.ct8-review tbody,.ct8-review tr,.ct8-review td { display:block; width:100%; min-width:0; box-sizing:border-box; }
  .ct8-review thead { display:none; }
  .ct8-review tr { border-bottom:2px solid var(--wr-border); padding:8px 0; }
  .ct8-review td { height:auto; padding:8px; overflow-wrap:anywhere; }
  .ct8-review td::before { content:attr(data-label); display:block; font-weight:650; color:#50647e; margin-bottom:6px; }
  .ct8-review input,.ct8-review select,.ct8-review .btn { min-height:44px; }
  .ct8-review-actions .btn { width:100%; white-space:normal; }
}
