/* Premium control-room dashboard selected from the approved visual direction. */
:root{--emerald:#55d78a;--emerald-soft:#183d2a;--ink:#060a08;--panel:#0a0f0c;--line:#25302a;--muted:#8f9993;--red:#ff5c57;--amber:#e8ae35}
body{background:#050806;color:#eef5f0}
.sidebar{width:244px;background:#070b09;border-right:1px solid var(--line)}
.brand{height:72px;padding:0 24px;border-bottom:1px solid var(--line);font-size:22px}.brand-mark{width:37px;height:37px;border-radius:7px;background:var(--emerald);color:#06120a}.brand-dot{color:var(--emerald)}
.sidebar nav{padding:26px 10px}.nav-item{min-height:47px;border-radius:4px;color:#aab3ad}.nav-item.active{background:#102019;color:#f5faf6;border-left:3px solid var(--emerald);box-shadow:inset -12px 0 28px rgba(85,215,138,.06)}.subnav-item{font-size:12px;color:#b4bcb7}.subnav-item b{background:var(--emerald);color:#06120a}
main{margin-left:244px;background:#060a08;min-height:100vh}main.dashboard-mode header{height:72px;padding:0 28px 0 34px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:290px minmax(360px,465px) minmax(160px,1fr);align-items:center}main.dashboard-mode header>div:first-child{display:block}main.dashboard-mode header .eyebrow{color:var(--emerald);font-size:13px;letter-spacing:0;text-transform:none}main.dashboard-mode header h1,main.dashboard-mode header #pageSubtitle{display:none}.global-search{position:static;transform:none;justify-self:start;width:100%;max-width:465px;height:40px;border-color:#313b35;background:#080d0a}.header-actions{justify-self:end}.live{background:transparent;color:var(--emerald);border:0}.icon-btn{border-radius:4px}
#dashboard{padding:25px 24px 0;max-width:none}.control-heading{margin:0 10px 17px}.control-heading h1{font:800 42px/1 Manrope,sans-serif;letter-spacing:-1.5px;margin:0 0 8px}.control-heading p{margin:0;color:var(--muted);font-size:12px}
.flow-overview{min-height:148px;border:1px solid var(--line);background:rgba(7,12,9,.9);display:grid;grid-template-columns:1.25fr 1.5fr .75fr .75fr .65fr;align-items:center;margin-bottom:18px}.flow-overview>div{min-width:0;padding:22px;border-left:1px solid var(--line)}.flow-overview>div:first-child{border-left:0}.flow-overview small{display:block;color:#a4ada7;font-size:10px;margin-bottom:13px}.net-flow strong{display:block;color:var(--emerald);font:700 32px/1 Manrope}.net-flow>span{display:inline-flex;margin-top:14px;color:var(--emerald);font-size:11px}.net-flow i{color:var(--muted);font-style:normal;margin-left:10px}.flow-chart img{width:100%;height:65px;object-fit:contain;display:block}.flow-chart div{display:flex;justify-content:space-between;color:#77817b;font-size:9px}.flow-metric strong{display:block;color:var(--emerald);font:700 17px/1.2 Manrope;white-space:nowrap}.flow-metric span{display:block;color:var(--emerald);font-size:11px;margin-top:16px}
.command-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;border-bottom:1px solid var(--line)}.command-toolbar button{height:42px;padding:0 17px;border:0;background:transparent;color:#abb4ae;font-weight:600;cursor:pointer}.command-types{display:flex;gap:6px}.command-types button{border-bottom:2px solid transparent}.command-types button.active{color:var(--emerald);border-color:var(--emerald)}.command-filters{display:flex;align-items:center;margin-bottom:9px}.command-filters button{height:36px;border:1px solid var(--line);margin-left:-1px}.command-filters button.active{color:var(--emerald);border-color:var(--emerald);background:#0d1812}.command-filters #commandFilterButton{margin-left:16px}.command-filters #commandRefresh{margin-left:8px}
.command-ledger{border:1px solid var(--line);background:#070b09}.command-ledger .table-wrap{overflow:auto}.command-ledger table{width:100%;border-collapse:collapse;min-width:1070px}.command-ledger th{height:43px;padding:0 12px;text-align:left;color:#929c96;background:#0d120f;font-size:9px;letter-spacing:.04em}.command-ledger td{height:47px;padding:0 12px;border-top:1px solid #1d2721;color:#bcc5bf;font-size:11px;white-space:nowrap}.command-ledger tr:hover td{background:#0b120e}.command-ledger code,.ref-code{font:10px ui-monospace,SFMono-Regular,Menlo,monospace;color:#a9b2ac}.transaction-type,.amount{font-weight:700}.transaction-type.deposit,.amount.deposit{color:var(--emerald)}.transaction-type.withdrawal,.amount.withdrawal{color:var(--red)}.ledger-timer{color:var(--amber);font-weight:700}.ledger-timer.urgent{color:var(--red)}.ledger-actions{display:flex;gap:7px}.command-ledger button{height:29px;border-radius:4px;padding:0 11px;font-size:10px;cursor:pointer}.command-ledger .approve{border:1px solid #37a963;background:transparent;color:var(--emerald)}.command-ledger .reject,.ledger-detail{border:1px solid #48514c;background:transparent;color:#c5ccc8}.command-ledger .status{font-size:10px;background:transparent;border:0;padding:0}.command-ledger footer{height:49px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 12px;color:#9aa39d;font-size:10px}.command-ledger footer label{justify-self:end}.command-ledger select{background:#0a0f0c;color:#dce4df;border:1px solid #303a34;padding:6px 12px}.ledger-pages{display:flex;gap:6px;align-items:center}.ledger-pages button{min-width:31px;padding:0;background:transparent;border:1px solid transparent;color:#abb4ae}.ledger-pages button.active{border-color:#327a50;color:var(--emerald)}.ledger-pages button:disabled{opacity:.25}
.system-footer{display:flex;justify-content:space-between;align-items:center;height:56px;margin-top:13px;padding:0 4px;color:#849088;font-size:10px;border-top:1px solid var(--line)}.system-footer span:first-child:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--emerald);margin-right:9px}
@media(max-width:1200px){.flow-overview{grid-template-columns:1fr 1.3fr 1fr}.flow-metric:nth-last-child(-n+2){display:none}.command-filters button[data-command-status]{display:none}}
@media(max-width:800px){.sidebar{width:76px}.brand>span:last-child,.nav-item:not(.active){font-size:0}.subnav,.side-bottom .operator{display:none}main{margin-left:76px}main.dashboard-mode header{grid-template-columns:1fr auto}.global-search{display:none}#dashboard{padding:20px 14px}.flow-overview{grid-template-columns:1fr}.flow-overview>div{border-left:0;border-top:1px solid var(--line)}.flow-overview>div:first-child{border-top:0}.flow-chart{display:none}.command-toolbar{align-items:flex-start;flex-direction:column}.control-heading h1{font-size:34px}}

/* Fluid fit pass: critical actions remain visible at every viewport. */
.net-flow strong{max-width:100%;overflow:hidden;font-size:clamp(20px,2.35vw,32px);letter-spacing:-.04em}.net-flow>span{display:flex;flex-wrap:wrap;gap:4px}.net-flow i{margin-left:4px}.flow-metric strong{font-size:clamp(13px,1.25vw,17px);overflow:hidden;text-overflow:ellipsis}
.command-ledger .table-wrap{overflow:hidden}.command-ledger table{min-width:0;table-layout:fixed}.command-ledger th,.command-ledger td{padding-left:8px;padding-right:8px}.command-ledger td{font-size:10px;overflow:hidden;text-overflow:ellipsis}.command-ledger code,.ref-code{font-size:9px}.command-ledger th:nth-child(1){width:13%}.command-ledger th:nth-child(2){width:8%}.command-ledger th:nth-child(3){width:10%}.command-ledger th:nth-child(4){width:10%}.command-ledger th:nth-child(5){width:17%}.command-ledger th:nth-child(6){width:10%}.command-ledger th:nth-child(7){width:6%}.command-ledger th:nth-child(8){width:8%}.command-ledger th:nth-child(9){width:18%}.ledger-actions{gap:5px}.command-ledger button{padding:0 8px;font-size:9px}
@media(max-width:1200px){main.dashboard-mode header{grid-template-columns:150px minmax(260px,390px) minmax(150px,1fr)}main.dashboard-mode header .global-search{max-width:360px;justify-self:start}.flow-overview{grid-template-columns:1fr 1.15fr .8fr .8fr}.flow-metric:nth-last-child(-n+2){display:block}.flow-metric:last-child{display:none}.command-toolbar{align-items:flex-start;flex-direction:column;padding-bottom:10px}.command-filters{flex-wrap:wrap;margin:0}.command-filters button[data-command-status]{display:block}.command-ledger th:nth-child(5),.command-ledger td:nth-child(5),.command-ledger th:nth-child(6),.command-ledger td:nth-child(6){display:none}.command-ledger th:nth-child(1){width:17%}.command-ledger th:nth-child(2){width:10%}.command-ledger th:nth-child(3){width:13%}.command-ledger th:nth-child(4){width:14%}.command-ledger th:nth-child(7){width:8%}.command-ledger th:nth-child(8){width:12%}.command-ledger th:nth-child(9){width:26%}}
@media(max-width:800px){.sidebar{width:68px}.brand{padding:0 15px}main{margin-left:68px}main.dashboard-mode header{height:58px;padding:0 14px}.header-actions .live{font-size:10px}#dashboard{padding:16px 10px}.control-heading{margin:0 2px 13px}.control-heading h1{font-size:30px}.flow-overview{grid-template-columns:1fr 1fr}.flow-overview>div{display:block;padding:15px;border-top:1px solid var(--line)}.flow-overview>div:nth-child(odd){border-left:0}.flow-chart{display:block;grid-column:1/-1;order:3}.flow-metric:last-child{display:block}.net-flow strong{font-size:clamp(19px,5.5vw,28px)}.command-types,.command-filters{display:flex;width:100%;overflow-x:auto}.command-toolbar button{flex:0 0 auto;padding:0 12px}.command-ledger{border:0;background:transparent}.command-ledger thead{display:none}.command-ledger table,.command-ledger tbody{display:block}.command-ledger tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin-bottom:10px;padding:13px;border:1px solid var(--line);background:#080d0a}.command-ledger td,.command-ledger td:nth-child(5),.command-ledger td:nth-child(6){display:flex;height:auto;min-height:28px;padding:0;border:0;overflow:visible;white-space:normal;justify-content:space-between;align-items:center;text-align:right}.command-ledger td:before{content:attr(data-label);color:#77817b;font-size:9px;text-transform:uppercase;margin-right:8px}.command-ledger td:nth-child(1),.command-ledger td:nth-child(9){grid-column:1/-1}.command-ledger td:nth-child(5),.command-ledger td:nth-child(6){display:none}.command-ledger td:nth-child(9){margin-top:4px}.command-ledger td:nth-child(9)>*{margin-left:auto}.ledger-actions{width:100%;margin-left:0!important}.ledger-actions button{flex:1;height:36px}.command-ledger footer{grid-template-columns:1fr auto}.ledger-pages{display:none}.system-footer{flex-wrap:wrap;height:auto;gap:8px;padding:15px 2px}.system-footer span:nth-child(2){display:none}}
@media(max-width:480px){.sidebar{display:none}main{margin-left:0}.flow-overview{grid-template-columns:1fr}.flow-overview>div{border-left:0!important}.flow-chart{grid-column:auto}.command-ledger tr{grid-template-columns:1fr}.command-ledger td{grid-column:1!important}.command-ledger footer label{display:none}.command-ledger footer{display:flex;justify-content:space-between}}

/* Action-first layout: switch earlier so controls never get crushed on laptops. */
.ledger-actions{width:100%}.ledger-actions .approve,.ledger-actions .reject{flex:1 1 64px;min-width:58px;font-weight:700}.command-ledger td:last-child>.approve,.command-ledger td:last-child>.ledger-detail{min-width:76px;font-weight:700}
@media(max-width:1400px) and (min-width:1051px){.command-ledger th:nth-child(5),.command-ledger td:nth-child(5),.command-ledger th:nth-child(6),.command-ledger td:nth-child(6){display:none}.command-ledger th:nth-child(1){width:17%}.command-ledger th:nth-child(2){width:10%}.command-ledger th:nth-child(3){width:13%}.command-ledger th:nth-child(4){width:14%}.command-ledger th:nth-child(7){width:8%}.command-ledger th:nth-child(8){width:12%}.command-ledger th:nth-child(9){width:26%}}
@media(max-width:1050px){.sidebar{width:68px}.brand{padding:0 15px}.brand>span:last-child{display:none}.subnav,.side-bottom .operator{display:none}main{margin-left:68px}main.dashboard-mode header{height:58px;padding:0 14px;grid-template-columns:1fr auto}.global-search{display:none}#dashboard{padding:16px 12px}.command-toolbar{gap:8px}.command-types,.command-filters{display:flex;flex-wrap:wrap;width:100%;overflow:visible}.command-toolbar button{flex:1 1 auto;min-width:max-content;padding:0 11px}.command-filters #commandFilterButton,.command-filters #commandRefresh{margin-left:0}.command-ledger{border:0;background:transparent}.command-ledger .table-wrap{overflow:visible}.command-ledger thead{display:none}.command-ledger table,.command-ledger tbody{display:block}.command-ledger tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-bottom:10px;padding:14px;border:1px solid var(--line);background:#080d0a}.command-ledger td,.command-ledger td:nth-child(5),.command-ledger td:nth-child(6){display:flex;width:auto!important;height:auto;min-height:30px;padding:0;border:0;overflow:visible;white-space:normal;justify-content:space-between;align-items:center;text-align:right}.command-ledger td:before{content:attr(data-label);color:#77817b;font-size:9px;text-transform:uppercase;margin-right:10px}.command-ledger td:nth-child(1),.command-ledger td:nth-child(9){grid-column:1/-1}.command-ledger td:nth-child(5),.command-ledger td:nth-child(6){display:none}.command-ledger td:nth-child(9){margin-top:5px;padding-top:10px;border-top:1px solid var(--line)}.command-ledger td:nth-child(9):before{display:none}.command-ledger td:nth-child(9)>*{margin-left:auto}.ledger-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%;margin:0!important}.ledger-actions .approve,.ledger-actions .reject,.command-ledger td:last-child>.approve,.command-ledger td:last-child>.ledger-detail{width:100%;min-width:0;height:39px;font-size:11px}.command-ledger td:last-child>.approve,.command-ledger td:last-child>.ledger-detail{margin-left:0}.command-ledger footer{grid-template-columns:1fr auto}.ledger-pages{display:none}}
@media(max-width:560px){.sidebar{display:none}main{margin-left:0}.flow-overview{grid-template-columns:1fr}.flow-overview>div{border-left:0!important}.flow-chart{grid-column:auto}.command-types button,.command-filters button{min-width:calc(50% - 6px)}.command-ledger tr{grid-template-columns:1fr}.command-ledger td{grid-column:1!important}.command-ledger footer label{display:none}.command-ledger footer{display:flex;justify-content:space-between}}

/* Pool is a true dashboard grid; loaded last to beat the generic .page.active rule. */
#pool.page.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}#pool.page.active>.pool-search,#pool.page.active>.pending-investments{grid-column:1/-1}
#pool.page.active>.pool-search{height:42px;margin:0}#pool.page.active>.pool-section{margin:0}#pool.page.active .pool-head{height:48px;padding:0 16px}#pool.page.active .pool-head h2{font-size:13px}#pool.page.active .pool-head button{width:30px;height:30px}#pool.page.active .pool-content{min-height:0;padding:10px 12px;grid-template-columns:1fr;gap:10px}#pool.page.active .pool-foot{padding:0 12px 9px}#pool.page.active .pool-card-body{padding:10px 12px}#pool.page.active .pool-card h3{font-size:11px;margin-bottom:8px}#pool.page.active .pool-card-grid{gap:10px}#pool.page.active .pool-card strong{margin-top:4px;font-size:9px}#pool.page.active .pool-card small{margin-top:3px;color:#55d78a}#pool.page.active .pool-card-actions{margin-top:7px}#pool.page.active .pool-card-actions button{min-height:29px;padding:6px;font-weight:700}#pool.page.active .pool-card-foot{padding:7px 12px}#pool.page.active .pool-card-foot b{font-size:13px;color:#55d78a}#pool.page.active .pool-cards{padding:10px 12px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#pool.page.active>.pending-investments .pool-card-body{padding:11px 12px}
@media(max-width:1050px){#pool.page.active{grid-template-columns:1fr}#pool.page.active>.pool-search,#pool.page.active>.pending-investments{grid-column:auto}}

/* Persistent adaptive navigation: every menu action remains reachable and visible. */
:root{--sidebar-width:clamp(190px,18vw,244px)}.sidebar{width:var(--sidebar-width);padding:0 10px;overflow:hidden}.sidebar .brand{height:64px;flex:0 0 64px;margin:0;padding:0 14px;font-size:clamp(17px,1.5vw,22px)}.sidebar nav{flex:1 1 auto;min-height:0;padding:clamp(8px,1.5vh,18px) 0;gap:2px;align-content:start;overflow:hidden}.sidebar .nav-item{min-height:clamp(34px,5vh,44px);padding:6px 10px;gap:10px;font-size:clamp(10px,1vw,12px);line-height:1.15}.sidebar .nav-item span{font-size:15px}.sidebar .subnav{display:grid;padding:1px 0 4px 18px;gap:1px}.sidebar .subnav-item{min-height:0;padding:clamp(3px,.6vh,6px) 7px;gap:5px;font-size:clamp(8px,.8vw,10px);line-height:1.18}.sidebar .side-bottom{flex:0 0 auto;margin-top:0}.sidebar .operator{margin-top:6px;padding:9px 7px 5px}.sidebar .avatar{width:28px;height:28px}.sidebar .operator strong{font-size:10px}.sidebar .operator small{font-size:8px}main{margin-left:var(--sidebar-width)}
@media(max-height:760px){.sidebar .brand{height:52px;flex-basis:52px}.sidebar nav{padding:5px 0}.sidebar .nav-item{min-height:32px;padding-top:4px;padding-bottom:4px}.sidebar .subnav-item{padding-top:3px;padding-bottom:3px}.sidebar .operator{display:none}}
@media(max-width:1050px) and (min-width:621px){:root{--sidebar-width:190px}.sidebar{display:flex}.sidebar .brand>span:last-child{display:inline}.sidebar .subnav{display:grid}.sidebar .side-bottom .operator{display:none}}
@media(max-width:620px){:root{--sidebar-width:68px}.sidebar{display:flex;padding:0 6px}.sidebar .brand{justify-content:center;padding:0}.sidebar .brand>span:last-child{display:none}.sidebar .nav-item{justify-content:center;padding:5px;font-size:0;gap:0}.sidebar .nav-item span{width:auto;font-size:16px}.sidebar .nav-chevron{display:none}.sidebar .subnav{display:grid;padding:1px 0}.sidebar .subnav-item{display:block;padding:4px 2px;text-align:center;font-size:11px}.sidebar .subnav-item span,.sidebar .subnav-item b{display:none}.sidebar .side-bottom .operator{display:none}}

/* Company reconciliation report */
#reports{padding-bottom:36px}.reconciliation-title{margin-bottom:14px}.reconciliation-title h2{margin:0 0 4px;font:700 18px Manrope}.reconciliation-title p{margin:0;color:#7f8983;font-size:10px}.reconciliation-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}.reconciliation-stat{min-width:0;min-height:82px;padding:16px 18px;border:1px solid #27312c;border-left:3px solid #4c87ff;background:#0e1310}.reconciliation-stat small{display:block;color:#5b95ff;font-size:10px;font-weight:700;text-transform:uppercase}.reconciliation-stat strong{display:block;margin-top:6px;color:#d8e0db;font:700 14px Manrope;overflow:hidden;text-overflow:ellipsis}.reconciliation-stat span{display:block;margin-top:3px;color:#68736d;font-size:8px}.reconciliation-stat.deposit,.reconciliation-stat.cash{border-left-color:#35d893}.reconciliation-stat.deposit small,.reconciliation-stat.cash small,.reconciliation-stat.balance small{color:#35d893}.reconciliation-stat.commission{border-left-color:#a866ff}.reconciliation-stat.commission small{color:#a866ff}.reconciliation-stat.withdrawal-count{border-left-color:#e4b329}.reconciliation-stat.withdrawal-count small{color:#e4b329}.reconciliation-stat.withdrawal,.reconciliation-stat.out{border-left-color:#ff5757}.reconciliation-stat.withdrawal small,.reconciliation-stat.out small{color:#ff5757}.reconciliation-panel{padding:16px;border:1px solid #27312c;background:#0e1310}.reconciliation-filters{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.reconciliation-filters label{margin:0;color:#9ba49e;font-size:9px}.reconciliation-filters label b{color:#ff6262}.reconciliation-filters input,.reconciliation-filters select{height:38px;margin-top:6px;padding:0 12px;border:1px solid #343e38;border-radius:4px;background:#101512;color:#dbe2de;font:10px Inter}.excel-button{width:31%;min-width:210px;height:38px;margin:14px 0;border:0;border-radius:4px;background:#d5a900;color:#111;font:700 10px Inter;cursor:pointer}.reconciliation-table-wrap{overflow:auto;border:1px solid #25302a}.reconciliation-table{min-width:1050px}.reconciliation-table th{height:37px;padding:0 9px;border:0;background:#0a704a;color:#fff;font-size:8px;white-space:nowrap}.reconciliation-table td{height:52px;padding:8px 9px;border-bottom:1px solid #232c27;color:#bec6c1;font-size:9px;white-space:nowrap}.reconciliation-table td b{display:block;font-size:9px}.reconciliation-table td small{display:block;margin-top:3px;font-size:8px}.positive-cell b,.balance-cell{color:#69d98f!important}.positive-cell small,.negative-cell small{color:#ff3f64}.negative-cell b{color:#e88b8b}
@media(max-width:1100px){.reconciliation-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reconciliation-filters{grid-template-columns:1fr 1fr}.reconciliation-filters label:last-child{grid-column:1/-1}.excel-button{width:100%}}
@media(max-width:620px){.reconciliation-stats,.reconciliation-filters{grid-template-columns:1fr}.reconciliation-filters label:last-child{grid-column:auto}.reconciliation-table{min-width:920px}}

.sidebar .reconciliation-nav{color:#8ee8b5}
.sidebar .reconciliation-nav span{color:#55d78a}
.sidebar .reconciliation-nav.active{color:#fff}

.logout-item{color:#8b9690!important}.logout-item:hover{color:#ff7979!important;background:rgba(255,87,87,.07)!important}.audit-card{margin-top:16px;padding:0}.audit-list{display:grid}.audit-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 16px;border-top:1px solid #222d27}.audit-dot{width:7px;height:7px;border-radius:50%;background:#55d78a;box-shadow:0 0 10px rgba(85,215,138,.4)}.audit-row div{display:grid;gap:3px}.audit-row strong{font-size:11px;color:#dce4df}.audit-row small,.audit-row time{font-size:9px;color:#707b75}.audit-row time{white-space:nowrap}@media(max-width:620px){.audit-row{grid-template-columns:8px 1fr}.audit-row time{grid-column:2}}

.module-page{padding-bottom:32px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.module-stat{padding:18px;min-height:104px}.module-stat small{display:block;color:#77827c;font-size:9px;letter-spacing:.12em}.module-stat strong{display:block;margin:9px 0 5px;color:#f0f5f2;font:700 22px Manrope}.module-stat span{color:#69736e;font-size:9px}.green-text{color:#55d78a!important}.red-text{color:#ff6262!important}.module-table{overflow:hidden}.integration-card{padding:0}.integration-row{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 18px;border-top:1px solid #232d28}.integration-row span{font-size:10px;color:#8c9690}.integration-row code{overflow:hidden;text-overflow:ellipsis;color:#cfd8d3;font-size:10px}@media(max-width:760px){.module-grid{grid-template-columns:1fr}.integration-row{grid-template-columns:1fr}.integration-row .secondary-btn{width:100%}}
.module-table td small{display:block;margin-top:4px;color:#66716b;font-size:8px}.capacity{width:100%;min-width:90px;height:5px;margin-bottom:5px;border-radius:9px;background:#1b2520;overflow:hidden}.capacity i{display:block;height:100%;border-radius:inherit;background:#55d78a}.sidebar nav{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#244332 transparent}.sidebar nav::-webkit-scrollbar{width:4px}.sidebar nav::-webkit-scrollbar-thumb{background:#244332;border-radius:4px}

/* Bank account management */
.bank-summary{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:10px;margin-bottom:14px}.bank-summary article{min-width:0;padding:14px 16px;border:1px solid #24312a;background:#0d120f}.bank-summary small{display:block;margin-bottom:8px;color:#69756e;font-size:8px;letter-spacing:.12em}.bank-summary strong{display:flex;align-items:center;gap:8px;color:#e7eee9;font:700 13px Manrope}.company-mini-logo{display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid #46cf86;border-radius:6px;background:linear-gradient(145deg,#55db91,#20975d);color:#03130b;font:800 8px Inter;font-style:normal;box-shadow:0 0 18px #34c97a26}.bank-account-card{padding:17px!important;overflow:hidden}.bank-identity{display:flex;align-items:center;gap:11px;min-width:0}.bank-identity small{color:#66736c;font-size:8px}.bank-account-card h3{margin:3px 0 0!important;font-size:12px!important}.bank-logo{width:43px!important;height:43px!important;border:1px solid #314039!important;border-radius:9px!important;color:#fff!important;font:800 10px Manrope!important;letter-spacing:-.03em}.bank-logo.garanti{background:linear-gradient(145deg,#159657,#064f2d)!important}.bank-logo.akbank{background:linear-gradient(145deg,#e43b43,#7f111b)!important}.bank-logo.isbank{background:linear-gradient(145deg,#397ec5,#123f74)!important}.bank-logo.yapikredi{background:linear-gradient(145deg,#7846b4,#31245c)!important}.bank-logo.qnb{background:linear-gradient(145deg,#7d3aa2,#ef6d2c)!important}.bank-logo.ziraat{background:linear-gradient(145deg,#d62f3c,#7c1019)!important}.account-owner{display:flex;align-items:center;gap:9px;margin:16px 0 11px;padding:10px;border:1px solid #202c26;background:#090e0b}.account-owner span{display:grid;gap:2px;color:#69756f;font-size:8px}.account-owner strong{color:#cbd4cf;font-size:9px}.account-capacity{margin-top:14px}.account-capacity span{display:flex;justify-content:space-between;color:#75817a;font-size:8px}.account-capacity span b{color:#55d78a}.account-capacity>i{display:block;height:5px;margin-top:7px;border-radius:8px;background:#1b2520;overflow:hidden}.account-capacity em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#249b5c,#55df91)}.modal-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-field-grid label{margin-bottom:0}
@media(max-width:1050px){.bank-summary{grid-template-columns:1fr 1fr}.iban-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.bank-summary,.modal-field-grid{grid-template-columns:1fr}.iban-grid{grid-template-columns:1fr!important}}

/* North Ledger reference: compact bank account console */
#ibans{max-width:none}.bank-management-panel{margin-bottom:14px;border:1px solid #26312c;border-radius:7px;background:#0e1310;overflow:hidden}.bank-panel-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #25302a}.bank-panel-head h2{margin:0 0 3px;padding-left:9px;border-left:3px solid #55d78a;font:700 12px Manrope}.bank-panel-head p{margin:0;color:#657069;font-size:8px}.bank-panel-head>span{padding:5px 8px;border:1px solid #344039;border-radius:4px;color:#aeb8b2;font-size:8px;font-weight:700}.bank-inline-form{display:grid;grid-template-columns:1.65fr .9fr .72fr .72fr .7fr;gap:9px;padding:13px 15px}.bank-inline-form label{min-width:0;margin:0;color:#77827c;font-size:7px;text-transform:uppercase;letter-spacing:.08em}.bank-inline-form input,.bank-inline-form select{height:34px;margin-top:6px;padding:0 10px;border-radius:5px;font-size:9px}.bank-add-submit{grid-column:1/-1;height:30px;border:0;border-radius:5px;background:#55d78a;color:#04130c;font:800 9px Inter;cursor:pointer}.bank-add-submit:hover{background:#6de5a0}.bank-list-panel .table-wrap{overflow:auto}.bank-account-table{min-width:950px}.bank-account-table th{height:35px;padding:0 11px;background:#0b100d;color:#707b75;font-size:7px}.bank-account-table td{height:49px;padding:7px 11px;border-color:#222c27;color:#b9c2bc;font-size:8px}.bank-account-table code{display:block;max-width:210px;color:#929d96;font:8px ui-monospace,SFMono-Regular,Menlo,monospace;white-space:normal}.bank-table-brand{display:flex;align-items:center;gap:8px}.bank-table-brand .bank-logo{flex:0 0 auto;width:48px!important;height:22px!important;border-radius:4px!important;font-size:7px!important}.bank-table-brand strong{max-width:72px;font-size:8px}.acceptance-state{display:inline-flex;align-items:center;gap:5px;min-width:75px;padding:4px 7px;border:1px solid #35423b;border-radius:3px;font-size:7px;font-weight:800}.acceptance-state:before{content:'';width:5px;height:5px;border-radius:50%}.acceptance-state.open{color:#65dc98}.acceptance-state.open:before{background:#55d78a}.acceptance-state.closed{color:#ff7777}.acceptance-state.closed:before{background:#ff6262}.bank-row-actions{display:flex;gap:5px;white-space:nowrap}.bank-row-actions button{height:25px;padding:0 8px;border:1px solid #354039;border-radius:4px;background:#151b17;color:#b6c0ba;font-size:7px;cursor:pointer}.bank-row-actions button:hover{border-color:#55d78a;color:#55d78a}.bank-row-actions button.danger:hover{border-color:#ff6262;color:#ff6262}
@media(max-width:1050px){.bank-inline-form{grid-template-columns:1.4fr 1fr 1fr}.bank-inline-form label:nth-child(4),.bank-inline-form label:nth-child(5){grid-column:auto}}
@media(max-width:650px){.bank-inline-form{grid-template-columns:1fr}.bank-inline-form label{grid-column:auto!important}}

/* Sidebar sub-navigation: remove native browser button chrome and keep the
   investment states visually consistent with the emerald control room. */
.sidebar .nav-group{width:100%;min-width:0}
.sidebar .subnav{
  box-sizing:border-box;
  width:100%;
  margin:2px 0 5px;
  padding:3px 3px 3px 24px;
  gap:3px;
}
.sidebar .subnav-item{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:14px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  width:100%;
  min-width:0;
  min-height:30px;
  margin:0;
  padding:6px 8px;
  border:1px solid transparent!important;
  border-radius:5px;
  outline:0;
  background:#080d0a!important;
  box-shadow:none!important;
  color:#9ca7a0!important;
  font:500 clamp(9px,.78vw,10px)/1.25 Inter,sans-serif!important;
  text-align:left;
  white-space:normal;
}
.sidebar .subnav-item>span{min-width:0;overflow-wrap:break-word}
.sidebar .subnav-item:hover{
  border-color:#20372b!important;
  background:#0d1712!important;
  color:#e6eee9!important;
}
.sidebar .subnav-item.active{
  border-color:#275b40!important;
  background:#102019!important;
  color:#62df98!important;
  box-shadow:inset 2px 0 #55d78a!important;
}
.sidebar .subnav-item:focus-visible{
  border-color:#55d78a!important;
  box-shadow:0 0 0 2px rgba(85,215,138,.18)!important;
}
.sidebar .subnav-item b{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:2px;
  padding:0 5px;
  border:1px solid #68e59f;
  border-radius:10px;
  background:#55d78a!important;
  color:#04130c!important;
  font:800 8px/1 Inter,sans-serif;
}
@media(max-height:760px){.sidebar .subnav{gap:2px;padding-top:1px;padding-bottom:1px}.sidebar .subnav-item{min-height:25px;padding-top:4px;padding-bottom:4px}}
@media(max-width:620px){.sidebar .subnav{margin:0;padding:2px 0;gap:2px}.sidebar .subnav-item{display:block;min-height:27px;padding:5px 2px;text-align:center;font-size:11px!important}.sidebar .subnav-item>span,.sidebar .subnav-item b{display:none}}

/* Premium density pass: stronger hierarchy without turning the console into a
   generic card dashboard. Shared surfaces, controls, and data rows now carry
   the same deliberate emerald control-room language. */
body{background:#050806}
main{background:radial-gradient(900px 520px at 52% -140px,rgba(51,161,98,.075),transparent 63%),#060a08}
main.dashboard-mode header{background:rgba(6,10,8,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
main.dashboard-mode header .eyebrow{font:700 11px/1 Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#65dd98}
main.dashboard-mode header>div:first-child{visibility:visible}
.global-search{height:42px;border-radius:7px;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.global-search:focus-within{border-color:#4dcf83;box-shadow:0 0 0 3px rgba(85,215,138,.11),0 8px 22px rgba(0,0,0,.18)}
.live{padding:8px 11px;border:1px solid rgba(85,215,138,.18);border-radius:999px;background:rgba(17,63,40,.35)}
.icon-btn{width:38px;height:38px;border-color:#2b3931;background:#0b100d}
.icon-btn:hover{border-color:#55d78a;color:#e9f7ee;background:#102019}
.sidebar{box-shadow:18px 0 50px rgba(0,0,0,.12)}
.sidebar .brand{letter-spacing:-.035em}
.sidebar .nav-item{transition:background-color .18s ease,color .18s ease,border-color .18s ease;position:relative}
.sidebar .nav-item:not(.active):hover{background:#0d1712;color:#e7f1ea}
.sidebar .nav-item span{color:#9ca9a0;transition:color .18s ease}
.sidebar .nav-item:hover span,.sidebar .nav-item.active span{color:#70e2a2}
.sidebar .nav-item.active{box-shadow:inset 3px 0 #55d78a,inset -20px 0 32px rgba(85,215,138,.045),0 7px 20px rgba(0,0,0,.13)}
.control-heading{margin-bottom:22px}
.control-heading h1{font-size:clamp(34px,3.25vw,46px);letter-spacing:-.055em}
.control-heading p{font-size:11px;color:#7f8b84}
.flow-overview{border-color:#26342c;background:linear-gradient(110deg,rgba(9,15,11,.98),rgba(7,12,9,.96));box-shadow:0 18px 42px rgba(0,0,0,.16)}
.flow-overview>div{padding:20px 17px;border-left-color:#1c2821}
.flow-overview small{font-size:9px;letter-spacing:.08em;color:#9ba79f}
.net-flow strong{font-size:clamp(26px,2.5vw,34px);letter-spacing:-.055em;text-shadow:0 0 22px rgba(85,215,138,.12)}
.net-flow>span,.flow-metric span{font-weight:600}
.flow-chart img{filter:drop-shadow(0 0 5px rgba(85,215,138,.18))}
.flow-chart div{padding-top:3px}
.flow-metric strong{font-size:clamp(14px,1.28vw,18px);letter-spacing:-.035em}
.command-toolbar{min-height:50px;margin:2px 0 13px;border-bottom-color:#28342d}
.command-toolbar button{font-size:11px;letter-spacing:-.01em}
.command-types button{padding-left:10px;padding-right:10px}
.command-types button.active{font-weight:700}
.command-filters button{height:37px;background:#080d0a;color:#aeb9b2;transition:background-color .16s ease,color .16s ease,border-color .16s ease}
.command-filters button:not(.active):hover{color:#eef8f1;border-color:#3c5948;background:#0d1712}
.command-filters #commandFilterButton,.command-filters #commandRefresh{border-radius:5px;margin-left:10px}
.command-ledger{border-color:#29362e;box-shadow:0 16px 38px rgba(0,0,0,.14)}
.command-ledger th{height:45px;background:#0c120e;color:#93a198;font-size:9px;letter-spacing:.07em}
.command-ledger td{height:50px;color:#c8d1cb;border-top-color:#1d2821;font-size:10px}
.command-ledger tr:hover td{background:#0a120e}
.command-ledger .approve,.command-ledger .reject,.ledger-detail{height:30px;border-radius:5px;font-weight:700;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.command-ledger .approve:hover{background:#173b27;color:#8ff1b9;border-color:#55d78a}
.command-ledger .reject:hover,.ledger-detail:hover{background:#171d19;border-color:#718077;color:#f0f6f2}
.command-ledger footer{height:53px;background:#080d0a;color:#98a39c}
.status{font-weight:700;letter-spacing:.01em}
.ledger-timer{font-variant-numeric:tabular-nums}
.system-footer{margin-top:16px;color:#7f8c84}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #55d78a!important;outline-offset:2px;box-shadow:none!important}
.toolbar,.card-head,.bank-panel-head{padding-left:2px;padding-right:2px}
.module-grid,.bank-summary{gap:14px}
.module-stat,.reconciliation-stat,.bank-summary article{border-color:#29362e;background:linear-gradient(135deg,#0d130f,#0a0f0c);box-shadow:0 12px 30px rgba(0,0,0,.12)}
@media(max-width:1360px) and (min-width:1051px){
  .flow-overview{grid-template-columns:1.08fr 1.18fr repeat(3,minmax(0,.9fr))}
  .flow-overview>div{padding-left:14px;padding-right:14px}
  .flow-metric strong{font-size:clamp(13px,1.15vw,16px)}
  .net-flow strong{font-size:clamp(24px,2.2vw,30px)}
}

/* Operational controls: user access and backoffice-to-frontend manual payouts. */
.toolbar-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}.toolbar-actions .secondary-btn{height:38px;padding:0 13px;border-color:#365244;background:#0c1510;color:#a7dfbd;font-weight:700}.toolbar-actions .secondary-btn:hover{border-color:#55d78a;color:#e8fff0;background:#102019}.manual-dispatch-card{margin-bottom:14px;border-color:#284134;background:linear-gradient(115deg,rgba(11,22,15,.96),rgba(8,14,10,.98))}.manual-dispatch-card .card-head{align-items:center}.manual-queue-count{display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border:1px solid rgba(85,215,138,.35);border-radius:999px;background:rgba(42,120,72,.14);color:#70e7a3;font-size:9px;font-weight:800;white-space:nowrap}.manual-dispatch-card td small{display:block;margin-top:3px;color:#728078;font-size:8px}.manual-dispatch-card code{color:#a7b2ab;font:8px ui-monospace,SFMono-Regular,Menlo,monospace}.role-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid #34443b;border-radius:4px;background:#101711;color:#c6d1ca;font-size:9px;font-weight:800;white-space:nowrap}.role-chip.admin{border-color:#38795a;color:#79e6a7;background:#102319}.role-chip.operator{border-color:#366d63;color:#7edbce;background:#0f201e}.role-chip.auditor{border-color:#5d5079;color:#bea8ff;background:#171427}.user-actions{display:flex;gap:6px;white-space:nowrap}.user-actions .action-btn{height:29px;padding:0 9px;font-size:8px}.module-table td:first-child small{color:#76827a}.modal-field-grid .wide{grid-column:1/-1}@media(max-width:760px){.toolbar{align-items:stretch;flex-wrap:wrap}.toolbar-actions{width:100%}.toolbar-actions button{flex:1}.manual-dispatch-card .table-wrap{overflow:auto}.manual-dispatch-card table{min-width:760px}.user-actions{min-width:160px}.module-table .table-wrap{overflow:auto}.module-table table{min-width:780px}}@media(max-width:520px){.manual-queue-count{font-size:8px}.toolbar-actions{gap:6px}.toolbar-actions .secondary-btn,.toolbar-actions .primary-btn{padding:0 8px;font-size:10px}}
