.portal-member.is-member #memberNavSlot nav{grid-template-columns:repeat(5,1fr)}
.member-home-page{display:flex;flex-direction:column;gap:20px}.home-balance-hero{position:relative;overflow:hidden;padding:21px 20px;border-radius:22px;background:linear-gradient(135deg,#174f40,#24745d);color:#fff;box-shadow:0 14px 30px #174f4025}.home-balance-hero:after{content:'';position:absolute;width:160px;height:160px;right:-65px;top:-80px;border:30px solid #ffffff10;border-radius:50%}.home-member-line{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}.home-member-line span{font-size:14px;font-weight:600}.home-member-line b{padding:5px 9px;border-radius:12px;background:#ffffff18;color:#d8ebe4;font-size:10px;font-weight:500}.home-balance-hero>p{margin:22px 0 5px;color:#bdd7ce;font-size:10px}.home-balance-hero>strong{display:block;font:600 31px "Segoe UI",sans-serif;letter-spacing:-.5px}.home-income{display:flex;gap:28px;margin-top:17px}.home-income span{display:flex;flex-direction:column;gap:4px}.home-income small{color:#bdd7ce;font-size:9px}.home-income b{font:600 13px "Segoe UI",sans-serif}.home-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.home-actions button{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:76px;padding:10px 3px;border:0;border-radius:16px;background:#fff;color:#44594f;font-size:10px;box-shadow:0 5px 18px #18392d08}.home-actions button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:#edf5f1;color:#25745d}.home-actions button>span .icon{width:17px;height:17px}.home-actions button.featured{color:#176f59;font-weight:600}.home-actions button.featured>span{background:#176f59;color:#fff}.home-section{display:flex;flex-direction:column;gap:10px}.home-section-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px}.home-section-head h2{margin:0;color:#263d33;font-size:16px}.home-section-head small{color:#89968f;font-size:9px}.home-section-head button{min-height:30px;padding:4px 0;border:0;background:transparent;color:#4d806d;font-size:10px}.home-today{display:grid;grid-template-columns:repeat(3,1fr);padding:15px 5px;border-radius:18px;background:#fff}.home-today div{text-align:center;border-right:1px solid #e9eeeb}.home-today div:last-child{border:0}.home-today b{display:block;color:#2e463b;font:600 18px "Segoe UI",sans-serif}.home-today span{display:block;margin-top:5px;color:#87948d;font-size:9px}.home-feed{overflow:hidden;border-radius:18px;background:#fff}.home-feed-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 15px;border-bottom:1px solid #edf1ee}.home-feed-row:last-child{border:0}.home-feed-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:12px;background:#edf5f1;color:#307a63}.home-feed-icon .icon{width:17px;height:17px}.home-feed-row b{display:block;color:#344a40;font-size:11px;font-weight:600}.home-feed-row small{display:block;overflow:hidden;margin-top:4px;color:#89968f;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.home-feed-row>strong{font:600 11px "Segoe UI",sans-serif;white-space:nowrap}.home-feed-row>strong.income{color:#18815e}.home-feed-row>strong.expense{color:#52645b}.home-orders-link{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;min-height:52px;padding:10px 15px;border:0;border-radius:16px;background:#fff;color:#4d6257;text-align:left;font-size:11px}.home-orders-link .icon{width:16px;height:16px;color:#45806b}.home-orders-link span{font-size:20px;color:#a2afa8}
@media(max-width:700px){.page-home main{padding-left:14px;padding-right:14px}.page-home .member-home-page{padding-bottom:5px}.portal-member.is-member #memberNavSlot nav{grid-template-columns:repeat(5,1fr);padding-left:4px;padding-right:4px}.portal-member.is-member #memberNavSlot nav button{font-size:9px}}

/* Team member figures use the card width instead of crowding beside the avatar. */
.team-member-list{gap:15px!important}
.team-member-card{position:relative;display:flex!important;flex-direction:column;width:100%;overflow:hidden;padding:0!important;border:1px solid #cfdfd7!important;border-radius:18px!important;gap:0!important;background:#fff!important;box-shadow:0 9px 26px #173f3014!important}
.team-member-head{box-sizing:border-box;position:relative;z-index:1;display:grid;grid-template-columns:43px minmax(0,1fr) 26px;align-items:center;align-self:stretch;width:100%;min-height:78px;margin:0;gap:11px;padding:15px 14px;background:linear-gradient(135deg,#d9ebe3 0%,#cfe4da 100%);border-bottom:1px solid #c4dbd0}
.team-member-main>small{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px!important}.team-member-main>small b{color:#687b71;font-size:10px;font-weight:500}.team-member-main>small em{color:#8a9790;font-size:10px;font-style:normal}
.team-member-data{position:relative;z-index:1;display:grid;grid-template-columns:1fr;width:100%;margin:0;padding:7px 14px 9px;border:0;background:#fff!important;gap:0}
.team-member-data span{display:grid;grid-template-columns:1fr auto;align-items:center;min-width:0;min-height:38px;padding:0 2px;border:0;border-bottom:1px solid #e7ece9;background:#fff!important;color:#7f8e87;font-size:10px}
.team-member-data span:last-child{border-bottom:0}
.team-member-data b{display:inline;margin:0;color:#30473d;font:650 13px "Segoe UI",sans-serif;white-space:nowrap}
.team-member-data .team-branch-performance{margin:2px -14px -9px;padding:0 16px;min-height:42px;border-bottom:0;background:#f2f7f4!important;color:#527466;font-weight:600}.team-member-data .team-branch-performance b{color:#176f59;font-size:14px}
.team-hero-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.team-hero-top>div{min-width:0}.team-hero-top>div>span{display:block}.team-hero-top #teamInvite{display:flex;align-items:center;gap:5px;flex:0 0 auto;min-height:36px;padding:7px 12px;border:1px solid #ffffff32;border-radius:18px;background:#ffffff16;color:#fff;font-size:11px;box-shadow:none}.team-hero-top #teamInvite:hover{background:#ffffff22}.team-hero-top #teamInvite b{font-size:15px;font-weight:400;line-height:1}
.team-member-card .team-next{position:absolute!important;z-index:3!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;width:100%!important;height:76px!important;margin:0!important;padding:0 14px!important;border-radius:18px 18px 0 0!important;line-height:1;cursor:pointer}
.team-member-card:before{display:none}
.team-member-avatar,.team-member-main{position:relative;z-index:1;pointer-events:none}

/* All five primary member screens share one app bar. */
.page-finance header{display:flex}
.page-finance main{margin-top:14px!important;padding-top:0!important}
.page-finance .finance-appbar{display:none}
.page-finance .finance-app{min-height:auto;margin:0!important;padding:0 0 92px;background:transparent}
.page-finance .wallet-hero>#financeWithdraw{border:1px solid #ffffff32;background:#ffffff14;color:#fff;font-weight:650;box-shadow:inset 0 1px 0 #ffffff12;backdrop-filter:blur(4px)}.page-finance .wallet-hero>#financeWithdraw:hover{border-color:#ffffff48;background:#ffffff20}.page-finance .wallet-hero>#financeWithdraw:active{background:#ffffff2b}

@media(max-width:700px){
 .page-finance main{margin-top:14px!important;padding-left:14px;padding-right:14px}
 .page-finance .wallet-hero{min-height:0;padding:22px 20px}
}

/* Editable member identity card. */
.page-account .account-profile{position:relative;padding-right:92px}
.account-avatar{overflow:hidden;flex:0 0 auto}
.account-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.account-profile-edit{position:absolute;top:18px;right:16px;min-height:32px!important;padding:6px 10px!important;border:1px solid #ffffff2e!important;background:#ffffff16!important;color:#fff!important;font-size:10px;box-shadow:none!important}
.profile-avatar-picker{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:14px;border:1px solid #e2ebe6;border-radius:16px;background:#f8faf9;cursor:pointer}
.profile-avatar-picker>span:last-of-type{display:flex;flex-direction:column;gap:4px}
.profile-avatar-picker>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}
.profile-avatar-picker b{color:#30473d;font-size:13px}
.profile-avatar-picker small{color:#87948d;font-size:10px}
.profile-avatar-preview{width:64px;height:64px;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;border-radius:20px;background:#e5f2ec;color:#26765f;font-size:22px;font-weight:700}
.profile-avatar-preview img{width:100%;height:100%;display:block;object-fit:cover}
.profile-avatar-file{width:100%;margin-top:7px;padding:7px!important;border:1px solid #dce7e1!important;border-radius:10px!important;background:#fff!important;color:#52665d;font-size:10px}
.profile-avatar-file::file-selector-button{margin-right:8px;padding:6px 9px;border:0;border-radius:8px;background:#e5f2ec;color:#176f59;font-weight:600}
.profile-avatar-remove{width:100%;margin:-3px 0 12px;border:0!important;background:transparent!important;color:#9a624e!important;box-shadow:none!important}

.member-heading-actions{display:flex;align-items:center;gap:10px}
.admin-list-search{display:grid;grid-template-columns:minmax(220px,420px) 96px 80px;gap:9px;align-items:center;margin:0 0 18px}.admin-list-search input{margin:0;min-height:40px}.admin-list-search button{width:100%;min-height:40px;padding-left:8px;padding-right:8px}.list-pagination{display:grid;grid-template-columns:88px minmax(150px,auto) 128px 88px;align-items:center;justify-content:center;column-gap:12px;margin:20px auto 0;min-height:40px}.list-pagination:not(:has(label)){grid-template-columns:88px minmax(150px,auto) 88px}.list-pagination button{width:88px;height:36px;min-height:36px;margin:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center}.list-pagination span{min-width:150px;line-height:36px;text-align:center;color:#75838f;font-size:12px;white-space:nowrap}.list-pagination label{height:36px;margin:0;display:grid;grid-template-columns:34px 82px;align-items:center;gap:6px;color:#75838f;font-size:12px;white-space:nowrap}.list-pagination select{box-sizing:border-box;width:82px;height:36px;min-height:36px;margin:0;padding:4px 24px 4px 9px;line-height:26px}
.member-heading-actions .primary{min-height:38px;padding:8px 15px}
#createMemberForm>.quiet{margin:-6px 0 16px;padding:5px 0;border:0;background:transparent;color:#718078}

.order-bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px;padding:12px 14px;border-radius:9px;background:#f7f9fa}.order-bulk-bar .check{margin:0}.order-bulk-bar>span{margin-right:auto;color:#7d8a96;font-size:11px}.order-bulk-bar button{min-height:34px;padding:6px 11px}.order-summary-grid{grid-template-columns:repeat(5,1fr)}.order-date-filter{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px;margin-bottom:22px}.order-date-filter label{margin:0}.order-date-filter .primary{min-width:100px;margin:0}.order-chart-wrap{overflow-x:auto;border:1px solid #e7ebef;border-radius:10px;background:#fbfcfc;padding:16px}.order-chart-legend{display:flex;gap:18px;margin-bottom:8px;color:#768592;font-size:11px}.order-chart-legend span{display:flex;align-items:center;gap:6px}.order-chart-legend i{width:10px;height:10px;border-radius:3px}.order-chart-legend .sales{background:#70aa95}.order-chart-legend .orders{background:#294c58}.order-chart{display:block;min-width:760px;width:100%;height:310px}.order-chart text{fill:#84919d;font-size:9px}.order-chart .axis{stroke:#dfe5e8;stroke-width:1}.sales-bar{fill:#70aa95;opacity:.82}.orders-line{fill:none;stroke:#294c58;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.orders-dot{fill:#fff;stroke:#294c58;stroke-width:2}.order-analysis-table{margin-top:18px}
@media(max-width:1100px){.order-summary-grid{grid-template-columns:repeat(3,1fr)}}
.member-summary-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:700px){.order-summary-grid,.member-summary-grid{grid-template-columns:1fr 1fr}.order-date-filter{grid-template-columns:1fr}.order-bulk-bar>span{width:100%;order:2}.order-chart-wrap{padding:10px}}
@media(max-width:700px){.admin-list-search{grid-template-columns:96px 80px}.admin-list-search input{grid-column:1/-1;width:100%}.list-pagination{grid-template-columns:88px 88px;justify-content:center;gap:8px 12px}.list-pagination button{width:88px}.list-pagination span{grid-column:1;grid-row:1;min-width:88px;line-height:36px;font-size:10px}.list-pagination label{grid-column:2;grid-row:1;width:88px;grid-template-columns:28px 60px;font-size:10px}.list-pagination select{width:60px;padding-left:6px;padding-right:18px}.list-pagination>button:first-child{grid-column:1;grid-row:2}.list-pagination>button:last-child{grid-column:2;grid-row:2}}

/* Keep long admin navigation usable while the brand and status stay fixed. */
.is-admin #sidebar{box-sizing:border-box;height:100vh;height:100dvh;overflow:hidden}
.is-admin #sidebar .sidebar-caption{display:none}
.is-admin #sidebar #adminNavSlot{display:flex;flex:1 1 0;min-height:0;overflow:hidden}
.is-admin #sidebar nav{box-sizing:border-box;display:flex;flex:1 1 auto;width:100%;min-height:0;max-height:none;overflow-x:hidden!important;overflow-y:auto!important;margin-bottom:14px;padding-right:4px;padding-bottom:18px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#45666c transparent}
.is-admin #sidebar nav::-webkit-scrollbar{width:5px}
.is-admin #sidebar nav::-webkit-scrollbar-track{background:transparent}
.is-admin #sidebar nav::-webkit-scrollbar-thumb{border-radius:5px;background:#45666c}

/* Orders: one calm identity-and-summary card instead of competing tiles. */
.orders-profile-head{margin-bottom:20px;padding:18px 18px 15px;border-radius:22px;background:linear-gradient(135deg,#174f42,#1b745c);color:#fff;box-shadow:0 14px 30px #174f4227}
.orders-profile-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding-bottom:16px}
.orders-profile-person{display:flex;min-width:0;align-items:center;gap:10px}
.orders-profile-avatar{width:42px;height:42px;display:grid;place-items:center;overflow:hidden;flex:0 0 auto;border:1px solid #ffffff28;border-radius:14px;background:#ffffff18;color:#fff;font-size:16px;font-weight:700}
.orders-profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.orders-profile-person>div{min-width:0}.orders-profile-person b{display:block;overflow:hidden;color:#fff;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.orders-profile-person small{display:block;margin-top:4px;color:#bfd9d0;font-size:9px;white-space:nowrap}
.orders-profile-top>button{display:flex;align-items:center;gap:5px;min-height:34px;padding:7px 11px;border:1px solid #ffffff30;border-radius:17px;background:#fff;color:#17634f;font-size:10px;font-weight:650;box-shadow:none}.orders-profile-top>button .icon{width:14px;height:14px}
.orders-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:14px;border-top:1px solid #ffffff1d}
.orders-profile-stats>div{min-width:0;padding:2px 8px;text-align:center;border-right:1px solid #ffffff1d}.orders-profile-stats>div:last-child{border-right:0}.orders-profile-stats span{display:block;color:#bcd7ce;font-size:8px;white-space:nowrap}.orders-profile-stats strong{display:block;overflow:hidden;margin-top:7px;color:#fff;font:600 14px "Segoe UI",sans-serif;text-overflow:ellipsis;white-space:nowrap}.orders-profile-stats strong small{margin-left:2px;color:#c7ddd5;font-size:8px;font-weight:400}
@media(max-width:370px){.orders-profile-head{padding-left:14px;padding-right:12px}.orders-profile-avatar{width:36px;height:36px}.orders-profile-person b{font-size:12px}.orders-profile-stats>div{padding-left:4px;padding-right:4px}.orders-profile-stats strong{font-size:12px}}
