/* Quiet monthly desk, sharing the Sales shell. */
body:has(.monthly-workspace:not([hidden])){height:auto;overflow-y:auto}
body:has(.monthly-workspace:not([hidden])) .shell{height:auto;overflow:visible}
.monthly-workspace{--month-line:#3c3732;--month-muted:#aaa39b;--month-accent:#f28a43;min-width:0;margin:0;padding:28px;border:1px solid var(--month-line);border-radius:14px;background:#191715;color:#f7f3ed;overflow:auto}
.monthly-workspace>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--month-line)}
.monthly-workspace h2{font-size:26px;font-weight:700;letter-spacing:-.7px;line-height:1.2}
.monthly-workspace small{display:block;color:var(--month-muted);font-size:12px;line-height:1.5;margin-top:5px;opacity:1}
.monthly-workspace button{box-shadow:none;border-radius:7px;font-size:12px;font-weight:600}
.monthly-workspace .ghost-button{background:#24211e;border:1px solid var(--month-line);color:#ece5dc}
.monthly-workspace .ghost-button:hover{background:#302922;border-color:#8e6444}
.monthly-workspace .primary-button{background:var(--month-accent);color:#23160d;border:1px solid var(--month-accent)}
.monthly-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 170px auto auto;align-items:end;gap:12px;padding:20px 0 8px}
.monthly-toolbar label{display:grid;gap:7px;color:var(--month-muted);font-size:11px;font-weight:600;letter-spacing:.3px}
.monthly-toolbar input,.monthly-toolbar select{min-width:0;width:100%;height:42px;border:1px solid #474039;border-radius:7px;background:#24211e;color:#f7f3ed;padding:0 12px;font-size:13px;color-scheme:dark}
.monthly-toolbar button{min-height:42px;padding:0 16px}
.monthly-workspace [data-status]{font-size:11px;color:var(--month-muted);min-height:20px;text-align:right;padding-bottom:12px}
.monthly-workspace [data-body]>p:first-of-type{padding:16px 18px;background:#25211d;border-radius:9px;border-left:3px solid var(--month-accent)}
.monthly-workspace [data-body]>p:first-of-type strong{font-size:13px;font-weight:600}
.monthly-workspace [data-body]>p:first-of-type small{max-width:850px}
.monthly-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:18px 0}
.monthly-totals>div{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:20px;border:1px solid var(--month-line);border-radius:10px;background:#211e1b;font-size:12px;color:var(--month-muted);font-variant-numeric:tabular-nums}
.monthly-totals strong{color:#fff7ed;font-size:30px;letter-spacing:-.9px;line-height:1.1;font-weight:650}
.monthly-totals small{margin:0;font-size:11px}
.monthly-table-wrap{overflow:auto;border:1px solid var(--month-line);border-radius:10px;margin:22px 0}
.monthly-workspace table{width:100%;min-width:850px;border-collapse:collapse;font-size:13px}
.monthly-workspace th{padding:13px 16px;background:#24211e;color:var(--month-muted);text-align:left;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;white-space:nowrap}
.monthly-workspace td{padding:17px 16px;border-top:1px solid #35302b;vertical-align:top;line-height:1.4}
.monthly-workspace tbody tr:hover{background:#211d19}
.monthly-workspace td:nth-child(3){min-width:230px;font-weight:600}
.monthly-workspace td:nth-child(3) small{font-weight:400;font-size:11px}
.monthly-workspace td:nth-child(4),.monthly-workspace td:nth-child(5),.monthly-workspace td:nth-child(6){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.monthly-workspace th:nth-child(4),.monthly-workspace th:nth-child(5),.monthly-workspace th:nth-child(6){text-align:right}
.monthly-workspace td:nth-child(6){color:#f5c39b;font-weight:650}
.monthly-workspace td button{white-space:nowrap;padding:8px 10px}
.monthly-workspace details{margin-top:12px;border:1px solid var(--month-line);border-radius:10px;background:#1e1b18}
.monthly-workspace summary{padding:16px 18px;cursor:pointer;font-size:13px;font-weight:600}
.monthly-workspace details>p{margin:0 18px 14px;padding:12px 0;border-bottom:1px solid #35302b;font-size:12px;color:#d1c9bf;line-height:1.6}
.monthly-workspace details>p:last-child{border-bottom:0}
.monthly-documents{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;padding:0 16px 16px}
.monthly-documents button{display:flex;gap:10px;align-items:center;text-align:left;word-break:break-word;padding:12px;line-height:1.4}
.monthly-documents button::before{content:'PDF';flex:none;padding:5px;border:1px solid #785337;border-radius:4px;font-size:9px;letter-spacing:.5px;color:#f5b37e}
.monthly-warning{margin:12px 0;color:#dfb185;font-size:12px;line-height:1.6}
.monthly-preview{width:min(1250px,96vw);max-height:94vh;border:1px solid #50483f;border-radius:12px;padding:0;background:#1e1b18;color:#f7f3ed;box-shadow:0 24px 90px #0009}
.monthly-preview::backdrop{background:#080705b8}
.monthly-preview header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;gap:12px;font-size:13px}
.monthly-preview header button{padding:8px 14px;border:1px solid #50483f;border-radius:6px;background:#2b2620;color:#fff}
.monthly-preview iframe{display:block;width:100%;height:80vh;border:0;background:white}
.app-view:has(.monthly-workspace:not([hidden])){height:auto;min-height:calc(100vh - 24px)}
.app-view:has(.monthly-workspace:not([hidden]))>section:has(input[type="search"]){display:none!important}
.monthly-section-title{font-size:14px;font-weight:650;margin:24px 0 0;letter-spacing:.1px}
.monthly-workspace>header h2{font-size:clamp(20px,2vw,28px);overflow-wrap:anywhere}
.monthly-workspace>header>div{min-width:0}
.monthly-workspace [data-body]>.monthly-totals:first-child>div{border-color:#7e5436;color:#f5c39b;font-size:16px}
.app-view:has(.monthly-workspace:not([hidden])) .board-summary{display:none}
.app-view:has(.monthly-workspace:not([hidden])) .topbar{grid-template-columns:auto minmax(0,1fr)}
.app-view:has(.monthly-workspace:not([hidden])) .top-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){.monthly-workspace{padding:20px}.monthly-toolbar{grid-template-columns:minmax(0,1fr) 160px}.monthly-toolbar button{width:100%}}
@media(max-width:600px){.monthly-workspace{padding:16px;border-radius:10px}.monthly-workspace h2{font-size:22px}.monthly-toolbar{grid-template-columns:minmax(0,1fr) 120px;gap:10px}.monthly-totals{grid-template-columns:1fr 1fr;gap:8px}.monthly-totals>div{padding:14px}.monthly-totals strong{font-size:25px}.monthly-documents{grid-template-columns:1fr}.monthly-workspace>header{align-items:flex-start}.app-view:has(.monthly-workspace:not([hidden])) .topbar{grid-template-columns:1fr}.app-view:has(.monthly-workspace:not([hidden])) .top-actions{justify-content:flex-start}}
