/* Dashboard reference layout; existing navigation and account controls remain unchanged. */
.dashboard-page.dashboard-reference{--dref-ink:#14213a;--dref-muted:#7b8da8;--dref-line:#e3ebf4;--dref-teal:#008c8d;display:flex;flex-direction:column;gap:10px;color:var(--dref-ink);min-width:0}
.dashboard-reference *{box-sizing:border-box}.dashboard-reference button,.dashboard-reference input{font-family:inherit}.dashboard-reference button{cursor:pointer}.dashboard-reference .icon{display:inline-flex;width:18px;height:18px;flex:0 0 18px}.dashboard-reference .icon svg{width:100%;height:100%;stroke:currentColor}
.dref-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.dref-header h1{font-size:24px;line-height:1.3;letter-spacing:-.04em;margin:0 0 4px;font-weight:800}.dref-header p{margin:0;color:var(--dref-muted);font-size:11px;line-height:1.6}.dref-toolbar{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0}.dref-toolbar>small{flex-basis:100%;text-align:right;color:var(--dref-muted);font-size:9px;line-height:1}
.dref-search{position:relative;width:210px;min-width:0}.dref-search>.icon{position:absolute;left:10px;top:9px;width:14px;height:14px;pointer-events:none}.dashboard-reference .dref-search>input{width:100%;min-width:0;min-height:33px;padding:7px 9px 7px 31px;border:1px solid var(--dref-line);border-radius:5px;font-size:10px;background:#ffffffb8;color:var(--dref-ink)}.dref-search-results{position:absolute;z-index:35;top:calc(100% + 5px);right:0;width:max(100%,300px);max-width:calc(100vw - 30px);max-height:330px;overflow:auto;padding:5px;border:1px solid var(--dref-line);border-radius:7px;background:#fff;box-shadow:0 14px 32px #203d5e1c}.dref-search-results[hidden]{display:none}.dref-search-results>button{display:grid;grid-template-columns:minmax(0,1fr) auto 10px;align-items:center;gap:8px;width:100%;text-align:left;border:0;border-radius:4px;background:none;padding:9px;color:var(--dref-ink);font-size:11px}.dref-search-results>button:hover,.dref-search-results>button:focus-visible{background:#e9f8f5}.dref-search-results>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dref-search-results small{font-size:9px;color:var(--dref-muted)}.dref-search-results>p{margin:0;padding:12px;font-size:11px;color:var(--dref-muted)}
.dref-range{position:relative;font-size:10px}.dref-range>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:33px;list-style:none;padding:7px 10px;border:1px solid var(--dref-line);border-radius:5px;background:#ffffffb8;cursor:pointer;white-space:nowrap}.dref-range>summary::-webkit-details-marker{display:none}.dref-range>summary .icon{width:14px;height:14px;flex-basis:14px}.dref-range>form{position:absolute;z-index:36;right:0;top:calc(100% + 7px);width:270px;max-width:calc(100vw - 24px);padding:13px;background:#fff;border:1px solid var(--dref-line);border-radius:8px;box-shadow:0 12px 32px #19334b20;display:grid;gap:10px}.dref-range label{display:grid;gap:4px;color:var(--dref-muted);font-size:11px}.dashboard-reference .dref-range input{min-width:0;width:100%;min-height:34px;border:1px solid var(--dref-line);border-radius:5px;font-size:12px}.dref-range form>div{display:flex;gap:8px;justify-content:flex-end}.dref-range form>p{color:#c43b50}.dref-range form>p[hidden]{display:none}
.dref-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.dref-kpi{min-width:0;padding:15px 13px 10px;background:#fff;border:1px solid var(--dref-line);border-radius:7px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;box-shadow:0 1px 3px #263d5803}.dref-kpi-main{display:flex;align-items:flex-start;gap:12px;min-width:0}.dref-kpi-main>div{min-width:0}.dref-icon{display:grid;place-items:center;width:40px;height:43px;flex:0 0 40px;border-radius:9px;background:#e4f3fc;color:#287ee6}.dref-icon .icon{width:24px;height:24px;flex-basis:24px}.dref-icon.orange{background:#fff4e0;color:#ef680e}.dref-icon.green{background:#ddfaed;color:#009d74}.dref-icon.teal{background:#e5f6f5;color:#00868d}.dref-icon.blue{background:#edf4ff;color:#2d7aff}.dref-kpi h2{font-size:11px;line-height:1.5;margin:0 0 3px;font-weight:650}.dref-kpi strong{display:block;font-size:clamp(17px,1.8vw,27px);line-height:1.2;font-weight:800;letter-spacing:-.035em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.dref-kpi p{margin:5px 0 0;font-size:10px;color:var(--dref-muted);line-height:1.5}.dref-kpi footer{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:27px;border-top:1px solid #edf2f7;padding-top:6px;font-size:10px;color:var(--dref-muted)}.dref-kpi footer>div{display:grid;gap:3px}.dref-kpi footer b{color:var(--dref-ink);font-size:11px}.dref-kpi footer>small{font-size:9px}.dref-kpi .dref-kpi-link{justify-content:flex-end;border:0}.dref-kpi-primary{background:linear-gradient(120deg,#00918e,#006f73);border-color:#00817f;color:#fff}.dref-kpi-primary .dref-icon{background:#ffffff26;color:#fff}.dref-kpi-primary p,.dref-kpi-primary footer{color:#d1efed}.dref-kpi-primary footer{border-color:#ffffff38}.dref-kpi-primary footer b{color:#fff}.dref-kpi-primary .dref-delta.up{color:#69edbd}.dref-kpi-primary .dref-delta.down{color:#ffe4cb}.dref-unpaid{display:inline-block;margin-top:5px;padding:2px 6px;border:1px solid #ffd8dd;background:#fff0f2;border-radius:5px;font-size:9px;color:#dc5368}.dref-delta{white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}.dref-delta.up{color:#00a375}.dref-delta.down{color:#df4a61}.dashboard-reference .dref-link{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;padding:0;min-height:22px;border:0;border-radius:3px;background:none;box-shadow:none;color:#2c82e9;font-size:10px;white-space:nowrap;font-weight:600}.dref-link:focus-visible{outline:2px solid #008c8d;outline-offset:3px}
.dref-collection{display:flex;align-items:center;gap:15px;min-width:0;padding:9px 13px;border:1px solid var(--dref-line);border-radius:7px;background:#fff}.dref-collection h2{font-size:12px;white-space:nowrap;margin:0}.dref-gauge{width:23px;height:23px;flex:0 0 23px;position:relative;border-radius:50%;background:conic-gradient(#19a59b var(--dref-rate),#ddf4f0 0)}.dref-gauge:after{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}.dref-rate-value{display:grid;grid-template-columns:auto auto;column-gap:14px;align-items:center;padding:0 26px;border-left:1px solid var(--dref-line);border-right:1px solid var(--dref-line);font-size:10px}.dref-rate-value strong{font-size:17px;line-height:1.1}.dref-rate-value small{grid-column:2;font-size:8px;color:var(--dref-muted)}.dref-advance{display:flex;align-items:center;gap:10px;font-size:11px}.dref-advance>.icon{color:#008c8d}.dref-advance strong{font-size:12px}.dref-collection>.btn{margin-left:auto;min-height:28px;font-size:10px;white-space:nowrap}
.dref-main{display:grid;grid-template-columns:1.05fr .96fr .9fr;gap:10px;min-width:0}.dref-card{background:#fff;border:1px solid var(--dref-line);border-radius:7px;padding:13px;min-width:0;box-shadow:0 1px 3px #263d5803}.dref-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;margin-bottom:9px}.dref-card h2{font-size:13px;line-height:1.4;margin:0;font-weight:750}.dref-card header small{display:block;margin-top:3px;font-size:10px;color:var(--dref-muted)}.dref-card .icon{width:17px;height:17px;flex-basis:17px}.dashboard-reference .btn{font-size:11px;min-height:31px;border-radius:5px;padding:6px 9px}.dashboard-reference .btn.primary{background:linear-gradient(120deg,#009294,#00757b);border-color:#008286;color:#fff;box-shadow:none}
.dashboard-reference table.dref-profit-table{width:100%;min-width:0;border-collapse:collapse;border-spacing:0;table-layout:fixed;margin:0;font-size:11px}.dref-profit-table th,.dref-profit-table td{padding:10px 8px;border-bottom:1px solid #edf2f7;font-size:10px;white-space:nowrap}.dref-profit-table thead th{background:#f5f8fb;color:var(--dref-muted);font-size:9px;font-weight:500;text-align:left;padding:8px}.dref-profit-table thead th:not(:first-child),.dref-profit-table td{text-align:right}.dref-profit-table th:first-child{width:32%;text-align:left;font-weight:600}.dref-profit-table td{font-variant-numeric:tabular-nums;font-weight:650}.dref-profit-table tr.emphasis>*{background:#e8f8f4;color:#008a84}.dref-profit-table tbody tr:last-child>*{border:0}
.dref-receivable-head{padding:6px 9px;background:#f5f8fb;color:var(--dref-muted);font-size:10px;border-radius:4px}.dref-receivable-list>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:7px 9px;background:none;border:0;border-bottom:1px solid #edf2f7;text-align:left;font-size:11px;color:var(--dref-ink)}.dref-receivable-list>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dref-receivable-list>button>b{font-size:16px;color:#8a9fbb;font-weight:400}.dref-list-total{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#e8f8f4;padding:9px;border-radius:4px;margin-top:6px;font-size:9px}.dref-list-total strong{color:#2487ec;font-size:12px;overflow-wrap:anywhere;text-align:right}
.dref-payable{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--dref-line);border-radius:6px;padding:12px;margin-bottom:6px}.dref-payable>div{display:grid;gap:4px;min-width:0}.dref-payable>div>span{font-size:11px}.dref-payable strong{font-size:22px;letter-spacing:-.035em;line-height:1.1;overflow-wrap:anywhere}.dref-payable small{font-size:10px;color:var(--dref-muted)}.dashboard-reference .dref-payable .dref-icon .icon{width:23px;height:23px}.dref-fund-row{display:flex;width:100%;align-items:center;gap:9px;border:0;background:none;color:#283d5d;padding:8px 3px;min-width:0;font-size:10px;text-align:left}.dref-fund-row>span{min-width:0}.dref-fund-row small{margin-left:auto;white-space:nowrap;font-size:9px;color:#287fed}.dashboard-reference .dref-fund-button{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;min-height:27px;border-color:#69babb;color:#008c8d;background:#fff;font-size:10px;margin-top:3px}.dref-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-reference .dref-quick-grid>.btn{display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;min-height:37px;background:#fff;white-space:nowrap}.dashboard-reference .dref-quick-grid>.btn.primary{background:linear-gradient(120deg,#009294,#00757b)}
.dref-schedule-body{display:flex;align-items:center;flex-direction:column;gap:6px;min-height:125px;text-align:center}.dref-calendar-mark{display:block;margin:0 0 1px;color:#70849f}.dashboard-reference .dref-calendar-mark .icon{width:27px;height:27px}.dref-schedule-body #schedule-dashboard-slot{width:100%;min-width:0}.dashboard-reference .dref-schedule-card .dashboard-schedule{display:block;padding:0;background:none;border:0;margin:0}.dashboard-reference .dref-schedule-card .dashboard-schedule-item{background:none;border:0;border-radius:0;box-shadow:none;margin:0;padding:3px 0;min-height:0;font-size:10px}.dashboard-reference .dref-schedule-card .dashboard-schedule:not(.schedule-dashboard-widget) .dashboard-schedule-item{display:block;text-align:center}.dref-schedule-card .dashboard-schedule:not(.schedule-dashboard-widget) .dashboard-schedule-item>time,.dref-schedule-card .dashboard-schedule:not(.schedule-dashboard-widget) .dashboard-schedule-item>span,.dref-schedule-card .dashboard-schedule:not(.schedule-dashboard-widget) .dashboard-schedule-item>em{display:none}.dashboard-reference .dref-schedule-card .dashboard-schedule-item strong{font-size:11px}.dashboard-reference .dref-schedule-card .dashboard-schedule-item small{font-size:9px;color:var(--dref-muted);display:block;margin-top:3px}.dref-schedule-body:has(.schedule-dashboard-widget) .dref-calendar-mark{display:none}.dashboard-reference .dref-schedule-card .schedule-dashboard-widget{max-height:112px;overflow:auto}.dashboard-reference .dref-schedule-card .schedule-dashboard-widget .dashboard-schedule-item{display:grid;grid-template-columns:35px 4px minmax(0,1fr) auto;gap:6px;width:100%;text-align:left}.dashboard-reference .dref-schedule-card .schedule-dashboard-widget time{font-size:9px}.dashboard-reference .dref-schedule-card .schedule-dashboard-widget em{font-size:8px}.dashboard-reference .dref-schedule-add{display:flex;align-items:center;justify-content:center;gap:6px;min-height:27px;min-width:128px;border-color:#75c0bd;color:#008f8b;background:#fff;font-size:10px;margin-top:auto}
.dref-stock-ok{display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:5px;background:#e4f9f0;color:#008f68;font-size:10px}.dref-stock-warning{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:1px solid #ffe0ad;background:#fff9ec;color:#a26c1f;border-radius:5px;padding:7px;font-size:10px;margin-bottom:5px;text-align:left}.dref-alert-card h3{margin:10px 0 6px;font-size:10px;color:#2687e5;font-weight:600}.dref-order{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--dref-line);border-radius:5px;background:#fff;padding:8px 9px;text-align:left;color:var(--dref-ink);margin-top:5px}.dref-order>span{display:grid;gap:3px;min-width:0}.dref-order strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dref-order small{font-size:10px;color:#009092}.dref-order em{font-style:normal;font-size:9px;color:#e58517;background:#fff4de;border:1px solid #ffdf9b;border-radius:12px;padding:2px 8px;white-space:nowrap;margin-left:auto}.dref-order>b{font-weight:400;color:#9aaac0}.dref-empty-small{font-size:11px;line-height:1.6;color:var(--dref-muted);text-align:center;padding:12px 3px;margin:0}
@media(max-width:1100px){.dref-main{grid-template-columns:repeat(2,minmax(0,1fr))}.dref-kpi-main{gap:8px}.dref-icon{width:33px;height:37px;flex-basis:33px}.dref-kpi{padding:12px 10px}.dref-kpi strong{font-size:20px}.dref-collection{gap:10px}.dref-rate-value{padding:0 17px}.dref-advance{gap:7px}.dref-header{gap:10px}.dref-search{width:180px}}
@media(max-width:800px){.dashboard-page.dashboard-reference{gap:11px;padding-bottom:12px}.dref-header{flex-direction:column;gap:11px}.dref-header h1{font-size:23px}.dref-toolbar{width:100%;justify-content:stretch;align-items:stretch;gap:7px}.dref-search{flex:1;min-width:140px;width:auto}.dref-range{flex:1}.dref-range>summary{height:100%;font-size:10px}.dref-search-results{left:0;right:auto}.dref-toolbar>small{display:none}.dashboard-reference .dref-search>input{min-height:36px;font-size:12px}.dref-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dref-kpi{padding:12px 10px;gap:10px}.dref-kpi-main{gap:8px}.dref-kpi strong{font-size:20px}.dref-kpi h2{font-size:11px}.dref-kpi p{font-size:9px}.dref-icon{width:31px;height:35px;flex-basis:31px}.dref-icon .icon{width:20px;height:20px}.dref-kpi-primary footer{align-items:flex-end}.dref-collection{flex-wrap:wrap;gap:10px;padding:11px}.dref-rate-value{padding:0 12px;border-right:0;margin-left:auto}.dref-advance{flex:1;font-size:11px}.dref-collection>.btn{margin-left:0;min-height:30px}.dref-main{grid-template-columns:minmax(0,1fr);gap:10px}.dref-card{padding:14px}.dref-card h2{font-size:14px}.dref-profit-table th,.dref-profit-table td{font-size:12px}.dref-profit-table thead th{font-size:10px}.dref-receivable-list>button{font-size:13px;padding:10px}.dref-list-total{font-size:11px}.dref-list-total strong{font-size:14px}.dashboard-reference .dref-quick-grid>.btn{min-height:43px;font-size:13px}.dref-schedule-body{min-height:140px}.dref-fund-row{font-size:12px;padding:11px 3px}.dref-fund-row small{font-size:11px}.dref-stock-ok,.dref-order strong{font-size:12px}.dref-order{padding:11px}.dref-order small{font-size:11px}}
@media(max-width:380px){.dref-kpi strong{font-size:17px}.dref-kpi-main{gap:6px}.dref-icon{width:26px;flex-basis:26px}.dref-kpi footer{flex-wrap:wrap}.dref-range{flex-basis:100%}.dref-range>form{left:0;right:auto}.dref-search{flex-basis:100%}.dref-rate-value{padding:0 8px}.dref-profit-table th,.dref-profit-table td{padding:9px 5px}}

@media(max-width:480px){.dashboard-reference .dref-kpi-main{display:grid;grid-template-columns:27px minmax(0,1fr);align-items:center;gap:7px}.dashboard-reference .dref-kpi-main>div{display:contents}.dashboard-reference .dref-kpi-main>.dref-icon{grid-column:1;grid-row:1;width:27px;height:30px;min-width:0}.dashboard-reference .dref-kpi-main h2{grid-column:2;grid-row:1;margin:0}.dashboard-reference .dref-kpi-main strong,.dashboard-reference .dref-kpi-main p,.dashboard-reference .dref-kpi-main .dref-unpaid{grid-column:1/-1;min-width:0;margin:0}.dashboard-reference .dref-kpi-main strong{font-size:19px}.dashboard-reference .dref-kpi-main .dref-unpaid{justify-self:start}.dashboard-reference .dref-advance{flex-wrap:wrap;gap:5px}.dashboard-reference .dref-advance>span:not(.icon){white-space:nowrap}.mw-mobile .dashboard-reference .dref-search>input{font-size:12px;padding-left:31px}.mw-mobile .dashboard-reference .dref-search>.icon{z-index:1}}
@media(max-width:380px){.dashboard-reference .dref-kpi-main strong{font-size:17px}}

@media(max-width:800px){body.mw-mobile #main .dashboard-reference #dashboard-reference-search{padding:8px 10px 8px 32px!important;font-size:16px!important;min-height:40px}.mw-mobile .dashboard-reference .dref-search>.icon{top:13px}}
