/* Visual layer only: keep existing DOM, controls, tables and handlers intact. */
:root{--green:#008f89;--ink:#203047}body{background:#f3f6fb;color:#203047}#sidebar{background:linear-gradient(160deg,#13243e,#0b172a);color:#c9d6e9;border:0}.brand,.brand span{color:#fff}.brand-mark{background:#008f89!important;color:white!important;border-radius:11px!important}.brand small,.aside-caption,.aside-bottom{color:#9cafc8!important}#nav a{color:#c9d6e9}#nav a.active,#nav a:hover{background:#008f89;color:white}.workspace>header{background:white;border-bottom:1px solid #dce4ef;box-shadow:0 3px 16px #182d4205}main{background:#f3f6fb}.panel,.sale-panel,.stat{border:1px solid #dce4ef;border-radius:13px;box-shadow:0 5px 18px #20304705}button.primary,.primary{background:#008f89;border-color:#008f89;color:white}button,input,select{border-radius:8px}input:focus,select:focus{outline-color:#10b9ab}.team-choice.favorite{background:#008f89;border-color:#008f89}.odds-table thead{background:#edf2f8}.panel-head{background:#fbfcfe}.page-head h1{color:#142a44}.nk-extra{display:grid;gap:6px;margin:12px 0}.nk-extra a{color:#ccdbeb;padding:11px 15px;border-radius:8px}.nk-extra a:hover{background:#008f89;color:white}footer{color:#8190a2}dialog{border-radius:16px;border-color:#dce4ef}
#shell #sidebar #nav button{color:#c9d6e9;background:transparent;border-left:3px solid transparent}#shell #sidebar #nav button.active{background:#008f89;color:#fff;border-left-color:#55e4ce}#shell #sidebar #nav button:hover{background:#1d4a61;color:white}#shell #sidebar .nk-extra a{display:block;text-decoration:none;padding:10px 12px;font-size:12px}#shell #sidebar .nk-extra{gap:2px}#shell #sidebar .aside-bottom{border-top-color:#29415f}#shell main .primary{background:#008f89;border-color:#008f89;color:white}#shell .team-choice.favorite{background:#008f89;border-color:#008f89}

#shell #sidebar #nav{gap:6px}#shell #sidebar #nav button{width:100%;min-height:48px;box-sizing:border-box;padding:12px 14px!important;font-size:13px!important;font-weight:500;line-height:1.65;gap:12px;white-space:normal;display:flex;align-items:center;text-align:left;border-left-width:3px}#shell #sidebar #nav button span{width:22px;min-width:22px;flex:0 0 22px;font-size:18px;line-height:1.2;text-align:center}.voucher-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.voucher-tabs button{min-width:150px;padding:11px 18px}.workspace-frame{width:100%;min-height:360px;border:0;display:block;background:transparent}.merged-settings{margin-top:24px}.merged-settings>h2{margin-bottom:16px}@media(max-width:700px){#shell #sidebar #nav button{font-size:12px!important;min-height:46px;padding:11px 12px!important}.voucher-tabs button{min-width:0;flex:1}}

#shell #sidebar #nav button{height:56px;min-height:56px;padding:8px 12px!important}#shell #sidebar #nav button .nav-icon{flex:0 0 22px;width:22px;min-width:22px;font-size:18px;line-height:1.2}#shell #sidebar #nav button .nav-label{flex:1;width:auto;min-width:0;text-align:left;font-size:13px;line-height:1.5;white-space:normal}#shell #sidebar #nav button.active{padding-left:12px!important}@media(max-width:700px){#shell #sidebar #nav button{height:48px;min-height:48px;padding:6px 10px!important}#shell #sidebar #nav button.active{padding-left:10px!important}#shell #sidebar #nav button .nav-label{font-size:12px;line-height:1.4}}
.profit-category-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.profit-category-tabs button{min-width:150px}.profit-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.profit-summary-cards .stat b{font-size:25px}.acca-profit-table details p{white-space:normal;min-width:210px}.acca-profit-table td{vertical-align:top}@media(max-width:700px){.profit-category-tabs button{min-width:0;flex:1;padding:9px 7px;font-size:12px}.profit-summary-cards{grid-template-columns:1fr}.profit-summary-cards .stat{padding:14px 18px}}

.profit-table.combined-profit-table{min-width:660px;width:100%;table-layout:auto}.profit-table.acca-profit-table{min-width:980px;width:100%;table-layout:auto}.profit-table.combined-profit-table th,.profit-table.combined-profit-table td,.profit-table.acca-profit-table th,.profit-table.acca-profit-table td{width:auto;min-width:0;max-width:none}.profit-table.combined-profit-table th,.profit-table.acca-profit-table th{white-space:normal}.profit-table.acca-profit-table td:nth-child(3){white-space:normal;min-width:90px}

.customer-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.customer-tools>details{padding:14px;background:white;border:1px solid #dce4ef;border-radius:12px}.customer-tools>details[open]{grid-column:1/-1}.customer-tools summary{cursor:pointer;font-weight:700}.workspace-frame.dialog-frame{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;z-index:1000!important;background:#f3f6fb;border:0}.frame-modal-open{overflow:hidden}@media(max-width:700px){.customer-tools{grid-template-columns:1fr}}.score-chip{display:inline-block;background:#102c3e;color:white;border-radius:7px;padding:4px 10px;font-weight:700;white-space:nowrap}.result-win,.result-partial_win{background:#def4e7;color:#176342}.result-loss,.result-partial_loss{background:#ffe6e6;color:#a52836}.result-pending{background:#fff1cc;color:#886000}
