/* Usability overrides only: original KOL visual templates remain unchanged. */
body .dashboard-board .board-tile.sortable>.board-tile-tools{touch-action:pan-y;cursor:default}
body .dashboard-board .board-tile.sortable .board-grip{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;padding:0;line-height:1;cursor:grab;touch-action:none;user-select:none}
body .filters{display:flex;flex-wrap:wrap!important;align-items:center;gap:10px;max-width:100%;min-width:0;box-sizing:border-box}
body .filters>.field:not([type=date]){flex:1 0 180px;min-width:min(180px,100%);max-width:100%;width:auto!important;box-sizing:border-box}
body .filters>select,body .filters>.select{flex:0 0 auto;min-width:140px;max-width:100%;box-sizing:border-box}
body .filters>input[type=date]{flex:1 0 150px;min-width:140px;max-width:100%;width:150px!important;box-sizing:border-box}
body .filters>.btn{flex:0 0 auto;white-space:nowrap;min-height:38px}
body .filters>label{min-width:0;max-width:100%;flex:1 0 170px}
body .filters>label .field,body .filters>label .select{width:100%;max-width:100%;box-sizing:border-box}
body .filters>.filter-label{flex:0 0 auto;white-space:nowrap}
body .table-wrap{max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
body .table-wrap>table{width:100%;white-space:nowrap}
body .table-wrap>table:has(tr>:nth-child(5)):not(.sales-kol-table){min-width:760px}
body .table-wrap::-webkit-scrollbar{height:7px}
body .table-wrap::-webkit-scrollbar-thumb{background:#a88b535c;border-radius:8px}
body .table-wrap::-webkit-scrollbar-track{background:#a88b5312}
@media(max-width:760px){
 body .topbar{height:auto;min-height:58px;flex-wrap:wrap;gap:8px;padding:10px 14px;align-content:center}
 body .topbar .crumb{flex:1 1 150px;min-width:min(150px,calc(100% - 50px));max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.5}
 body .topbar .crumb b{white-space:nowrap}
 body .topbar .top-actions{flex:0 1 auto;max-width:100%;flex-wrap:wrap;gap:8px;margin-left:auto}
 body .filters{gap:10px;padding:14px}
 body .filters>.field:not([type=date]){flex-basis:180px;min-height:40px}
 body .filters>input[type=date]{min-height:40px;flex-basis:140px}
 body .filters>.select,body .filters>select{min-height:40px}
 body .filters>.btn{min-height:40px}
 body .panel,body .panel-body,body .board-tile,body .main{min-width:0}
}
body #search{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body #search input.field{flex:1 0 180px;min-width:min(180px,100%);max-width:100%;box-sizing:border-box}
body #search .btn{flex:0 0 auto;white-space:nowrap}
body .filters>span:not(.filter-label){flex:0 1 auto;max-width:100%}
body .sales-platform-record-filter input{flex:1 0 180px;min-width:min(180px,100%);max-width:100%}
body .sales-platform-record-filter .btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:760px){
 body .sales-daily-filter,body .sales-platform-dates{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
 body .sales-daily-filter>label,body .sales-platform-dates>label{flex:1 0 150px;min-width:min(150px,100%);max-width:100%}
 body .sales-daily-filter .field,body .sales-platform-dates .field{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 body .sales-daily-filter>.btn,body .sales-platform-dates>.btn{flex:0 0 auto;width:auto;white-space:nowrap}
}

/* Account settings and logout remain in navigation; omit the redundant top avatar. */
body .topbar .top-actions > .avatar{display:none!important}

/* Mobile header: one title row, with account actions in a vertical disclosure. */
body .kol-actions-toggle,body .kol-action-label{display:none}
@media(max-width:760px){
 body .kol-mobile-topbar{flex-wrap:nowrap;min-height:54px;padding:8px 12px;gap:8px;align-items:center;overflow:visible}
 body .kol-mobile-topbar>div:first-child{flex:1 1 auto;min-width:0;gap:8px!important}
 body .kol-mobile-topbar .crumb{flex:1 1 auto;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body .kol-mobile-topbar .crumb b{white-space:nowrap}
 body .kol-mobile-topbar>.kol-actions-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:7px;border-radius:9px}
 body .kol-mobile-topbar>.kol-actions-toggle svg{width:20px;height:20px}
 body .kol-mobile-topbar>.top-actions{display:none;position:absolute;top:calc(100% + 6px);right:12px;z-index:20;width:min(240px,calc(100vw - 24px));max-width:none;margin:0;padding:10px;box-sizing:border-box;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:7px;max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain;background:#17130f;border:1px solid #856733;border-radius:12px;box-shadow:0 12px 32px #0008}
 body .kol-mobile-topbar.kol-actions-open>.top-actions{display:flex}
 body .kol-mobile-topbar>.top-actions>.tag,body .kol-mobile-topbar>.top-actions>.partner-vip{display:flex!important;align-items:center;justify-content:flex-start;width:100%;min-height:34px;box-sizing:border-box;padding:6px 10px;white-space:nowrap;font-size:12px;border-radius:9px}
 body .kol-mobile-topbar>.top-actions>.top-icon{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:36px;height:auto;padding:8px 10px;box-sizing:border-box;border-radius:8px;font-size:12px}
 body .kol-mobile-topbar>.top-actions>.top-icon svg{width:18px;height:18px;flex:0 0 18px}
 body .kol-mobile-topbar .kol-action-label{display:inline;white-space:nowrap}
 body .kol-mobile-topbar .partner-notice-badge{position:static;margin-left:auto;transform:none}
}

/* Page layout reset belongs with the page title rather than a separate toolbar. */
body .page-title-row{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:8px}
body .page-title-row>.page-title{margin:0;min-width:0}
body .page-title-row>.board-reset{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:6px 10px;min-height:32px}
@media(max-width:760px){
 body .page-head>div:has(>.page-title-row){width:100%;min-width:0}
 body .page-title-row{justify-content:space-between;gap:10px}
 body .page-title-row>.page-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body .page-title-row>.board-reset{font-size:11px;padding:6px 9px}
}
