/* iTopDevs Clean Admin theme. All rules are isolated behind the selected theme. */
html[data-admin-theme="clean"]{
    --clean-bg: #f4f6fa;
    --clean-surface: #ffffff;
    --clean-surface-soft: #f8f9fc;
    --clean-sidebar: #182033;
    --clean-sidebar-soft: #242e45;
    --clean-text: #20242b;
    --clean-muted: #707782;
    --clean-border: #e1e5ec;
    --clean-accent: #315ec8;
    --clean-accent-rgb: 49, 94, 200;
    --clean-radius: 11px;
    --clean-shadow: 0 1px 3px rgba(32, 33, 36, .07);
    --sidebarWidth: 264px;
    --color: var(--clean-accent);
    --colorh: var(--clean-accent-rgb);
}
html[data-admin-theme="clean"] body{
    color: var(--clean-text);
    background: var(--clean-bg);
}
html[data-admin-theme="clean"] a{color: inherit;}
html[data-admin-theme="clean"] .color{color: var(--clean-accent);}
html[data-admin-theme="clean"] .app-main,
html[data-admin-theme="clean"] .app-main .app-content{background: var(--clean-bg);}
html[data-admin-theme="clean"] .app-main .app-content{scrollbar-color: #c9ced7 transparent;}

/* Sidebar */
html[data-admin-theme="clean"] .app-main ._side{
    flex: 0 0 var(--sidebarWidth);
    max-width: var(--sidebarWidth);
    padding: 18px 14px 24px;
    color: #d8deea;
    background: var(--clean-sidebar);
    border-right: 0;
    box-shadow: 3px 0 14px rgba(19, 28, 47, .08);
}
html[data-admin-theme="clean"] .app-main ._side .logo{
    height: 52px;
    margin: 0 8px 17px;
}
html[data-admin-theme="clean"] .app-main ._side .logo a{color: #fff;letter-spacing: .01em;}
html[data-admin-theme="clean"] .app-main ._side .logo .fav{
    background: #5f84df;
    box-shadow: 0 0 0 6px rgba(95,132,223,.11);
}
html[data-admin-theme="clean"] .app-main ._side .logo .fav:before{background: #5f84df;}
html[data-admin-theme="clean"] .app-main ._side .logo .fav:after{background: rgba(132,165,240,.72);}
html[data-admin-theme="clean"] ._side .nav a{
    min-height: 42px;
    margin-bottom: 3px;
    padding: 8px 11px;
    color: #aeb8ca;
    border-radius: 8px;
}
html[data-admin-theme="clean"] ._side .nav a:before{display: none;}
html[data-admin-theme="clean"] ._side .nav a:hover{
    color: #fff;
    background: rgba(255,255,255,.065);
}
html[data-admin-theme="clean"] ._side .nav a.on{
    color: #fff;
    background: var(--clean-sidebar-soft);
    box-shadow: inset 3px 0 0 #6f91e5;
}
html[data-admin-theme="clean"] ._side .nav a .ico{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    margin-right: 10px;
    color: #9cabc4;
    background: rgba(255,255,255,.055);
    border-radius: 7px;
}
html[data-admin-theme="clean"] ._side .nav a.on .ico,
html[data-admin-theme="clean"] ._side .nav a:hover .ico{color: #fff;background: rgba(111,145,229,.16);}
html[data-admin-theme="clean"] ._side [class^="icon-"] .path1:before,
html[data-admin-theme="clean"] ._side [class^="icon-"] .path2:before,
html[data-admin-theme="clean"] ._side [class*=" icon-"] .path1:before,
html[data-admin-theme="clean"] ._side [class*=" icon-"] .path2:before{color: currentColor !important;}

/* Page headings and controls */
html[data-admin-theme="clean"] .section-title{
    min-height: 78px;
    padding: 24px 30px 18px;
    background: transparent;
}
html[data-admin-theme="clean"] .section-title > h2,
html[data-admin-theme="clean"] .section-title ._l > h2:first-child{font-size: 24px;line-height: 1.2;}
html[data-admin-theme="clean"] .button{
    min-height: 38px;
    padding: 0 16px;
    color: #fff;
    background: var(--clean-accent);
    border: 1px solid var(--clean-accent);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(var(--clean-accent-rgb), .15);
}
html[data-admin-theme="clean"] .button:hover{background: #294fa9;border-color: #294fa9;}
html[data-admin-theme="clean"] .button.link{
    min-height: 0;
    padding: 0;
    color: var(--clean-accent);
    background: transparent;
    border: 0;
    box-shadow: none;
}
html[data-admin-theme="clean"] .input{
    min-height: 40px;
    padding: 9px 11px;
    color: var(--clean-text);
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(32,33,36,.025);
}
html[data-admin-theme="clean"] .input:focus{
    border-color: #83a0e5;
    box-shadow: 0 0 0 3px rgba(var(--clean-accent-rgb), .1);
}
html[data-admin-theme="clean"] div.section-title ._r .search{
    min-height: 40px;
    background: #fff;
    border: 1px solid #dfe3e9;
    border-radius: 8px;
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] div.section-title ._r .search .ico{height: 39px;color: var(--clean-muted);}
html[data-admin-theme="clean"] div.section-title ._r .search .query{min-width: 120px;height: 39px;color: var(--clean-text);}
html[data-admin-theme="clean"] div.section-title ._r .search select{
    height: 39px;
    margin: 0;
    color: #555c65;
    background: var(--clean-surface-soft);
    border-left: 1px solid var(--clean-border);
}

/* Shared data surfaces */
html[data-admin-theme="clean"] .users-data,
html[data-admin-theme="clean"] .payment-data,
html[data-admin-theme="clean"] .session-data,
html[data-admin-theme="clean"] .reseller-data,
html[data-admin-theme="clean"] .server-data,
html[data-admin-theme="clean"] .live-cards,
html[data-admin-theme="clean"] .allowed-sites,
html[data-admin-theme="clean"] .restricted-sites,
html[data-admin-theme="clean"] .dmca{
    margin: 0 30px 22px;
    overflow-x: auto;
    background: var(--clean-surface);
    border: 1px solid var(--clean-border);
    border-radius: var(--clean-radius);
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row{
    min-height: 54px;
    align-items: center;
    border-bottom: 1px solid #edf0f4;
}
html[data-admin-theme="clean"] .data-table .data-row:last-child{border-bottom: 0;}
html[data-admin-theme="clean"] .data-table .data-row.data-row-head{
    min-height: 43px;
    color: #6d747e;
    background: #fafbfc;
    border-bottom: 1px solid #e4e8ee;
}
html[data-admin-theme="clean"] .data-table .data-row.data-row-head .data-col:hover{background: #f3f6fb;}
html[data-admin-theme="clean"] .data-table .data-row .data-col{
    padding: 11px 13px;
    border-right: 0;
}
html[data-admin-theme="clean"] .data-table .data-row:not(.data-row-head):hover{background: #f8faff;}
html[data-admin-theme="clean"] .pagination button{box-shadow: none;}
html[data-admin-theme="clean"] .error-404{
    margin: 0 30px 24px;
    background: #fff;
    border: 1px solid var(--clean-border);
    border-radius: var(--clean-radius);
    box-shadow: var(--clean-shadow);
}

/* Dashboard and cards */
html[data-admin-theme="clean"] .dashboard > .section-title{margin: 0;}
html[data-admin-theme="clean"] .dashboard .stat{gap: 14px;padding: 0 30px 20px;}
html[data-admin-theme="clean"] .dashboard .stat .section{
    min-width: 220px;
    min-height: 112px;
    margin: 0;
    border: 1px solid var(--clean-border);
    border-radius: var(--clean-radius);
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .dashboard .stat .section .ico{
    width: 54px;
    height: 54px;
    margin-left: 18px;
    color: var(--clean-accent);
    background: #edf3ff;
    border-radius: 10px;
}
html[data-admin-theme="clean"] .dashboard .stat .section .val{padding: 18px;}
html[data-admin-theme="clean"] .dashboard .stat .section .val h2:first-child{color: var(--clean-text);}
html[data-admin-theme="clean"] .dashboard .stat .section .val h2:last-child{margin-top: 5px;color: var(--clean-muted);font-size: 13px;}
html[data-admin-theme="clean"] .dashboard-sales-overview,
html[data-admin-theme="clean"] .cashout-payout-summary,
html[data-admin-theme="clean"] .cashout-list-panel{border-color: var(--clean-border);box-shadow: var(--clean-shadow);}

/* Forms, dialogs and supporting panels */
html[data-admin-theme="clean"] .uform{
    padding: 20px;
    background: #fff;
    border: 1px solid var(--clean-border);
    border-radius: var(--clean-radius);
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .settings .uform{width: 720px;max-width: calc(100% - 40px);}
html[data-admin-theme="clean"] .settings .stc{margin-bottom: 17px;}
html[data-admin-theme="clean"] .settings .site-status{border: 1px solid #e2e6ec;border-radius: 8px;}
html[data-admin-theme="clean"] .settings .site-status.live{background: #eaf7f0;border-color: #cde9db;}
html[data-admin-theme="clean"] .app-checkbox{
    background: #d6dbe4;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
html[data-admin-theme="clean"] .app-checkbox.on{background: var(--clean-accent);}
html[data-admin-theme="clean"] .dialogbox .msgbox{
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--clean-border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(24,32,51,.18);
}
html[data-admin-theme="clean"] .cover{background: rgba(244,246,250,.92);}
html[data-admin-theme="clean"] .alert{background: #fcebea;border: 1px solid #f3ceca;border-radius: 8px;}
html[data-admin-theme="clean"] .td-cuser,
html[data-admin-theme="clean"] .transfer-crumb{background: #edf3ff;border-top: 1px solid #dce6fb;border-bottom: 1px solid #dce6fb;}
html[data-admin-theme="clean"] .server_status ._block,
html[data-admin-theme="clean"] .vouchers .voucher-result{
    background: #fff;
    border: 1px solid var(--clean-border);
    border-radius: var(--clean-radius);
    box-shadow: var(--clean-shadow);
}

/* Weekly sales */
html[data-admin-theme="clean"] .weekly-sale-list{background: #fff;border-right: 1px solid var(--clean-border);}
html[data-admin-theme="clean"] .weekly-sale-list button{background: #fff;border-bottom-color: #edf0f4;}
html[data-admin-theme="clean"] .weekly-sale-list button:hover,
html[data-admin-theme="clean"] .weekly-sale-list button.on{background: #edf3ff;}
html[data-admin-theme="clean"] .weekly-detail .sales-overview,
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list .amount{
    background: #fff;
    border-color: var(--clean-border);
    border-radius: 9px;
    box-shadow: var(--clean-shadow);
}

/* Settings appearance panel in the Clean theme */
html[data-admin-theme="clean"] .admin-appearance{margin-left: 30px;margin-right: 30px;}
html[data-admin-theme="clean"] .admin-theme-current{color: var(--clean-accent);background: #edf3ff;}
html[data-admin-theme="clean"] .admin-theme-option[aria-pressed="true"]{border-color: var(--clean-accent);}
html[data-admin-theme="clean"] .admin-theme-check{background: var(--clean-accent);}

/* Mobile shell */
@media only screen and (max-width: 760px){
    html[data-admin-theme="clean"] .header{
        height: 56px;
        color: var(--clean-text);
        background: rgba(255,255,255,.94) !important;
        border-bottom: 1px solid var(--clean-border);
        box-shadow: 0 2px 10px rgba(24,32,51,.06);
    }
    html[data-admin-theme="clean"] .app-main ._side,
    html[data-admin-theme="classic"] .app-main ._side{
        top: 0;
        z-index: 100;
        box-shadow: 8px 0 30px rgba(18,26,43,.2);
    }
    html[data-admin-theme="clean"] .section-title{
        min-height: 0;
        padding: 22px 15px 16px;
    }
    html[data-admin-theme="clean"] .section-title > h2,
    html[data-admin-theme="clean"] .section-title ._l > h2:first-child{font-size: 22px;}
    html[data-admin-theme="clean"] .users-data,
    html[data-admin-theme="clean"] .payment-data,
    html[data-admin-theme="clean"] .session-data,
    html[data-admin-theme="clean"] .reseller-data,
    html[data-admin-theme="clean"] .server-data,
    html[data-admin-theme="clean"] .live-cards,
    html[data-admin-theme="clean"] .allowed-sites,
    html[data-admin-theme="clean"] .restricted-sites,
    html[data-admin-theme="clean"] .dmca{margin-left: 15px;margin-right: 15px;}
    html[data-admin-theme="clean"] .dashboard .stat{padding: 0 15px 18px;}
    html[data-admin-theme="clean"] .dashboard .stat .section{flex-basis: 100% !important;}
    html[data-admin-theme="clean"] .settings{padding: 0 15px;}
    html[data-admin-theme="clean"] .settings .uform{width: 100%;max-width: 100%;margin: 0;padding: 16px;}
    html[data-admin-theme="clean"] .admin-appearance{margin-left: 15px;margin-right: 15px;}
}

@media only screen and (max-width: 480px){
    html[data-admin-theme="clean"] div.section-title ._r{width: 100%;}
    html[data-admin-theme="clean"] div.section-title ._r .search{width: 100%;margin: 8px 0 0;}
    html[data-admin-theme="clean"] .data-table .data-row{border-bottom-color: #e8ebf0;}
    html[data-admin-theme="clean"] .data-table .data-row:not(.data-row-head){background: #fff;}
    html[data-admin-theme="clean"] .dashboard .stat .section{min-width: 0;}
}

/* Clean theme page audit — Cashouts-quality shared components */

/* White navigation requested for the final Clean direction. */
html[data-admin-theme="clean"] .app-main ._side{
    color: #606873;
    background: #fff;
    border-right: 1px solid #e1e5ec;
    box-shadow: 2px 0 12px rgba(32,33,36,.045);
}
html[data-admin-theme="clean"] .app-main ._side .logo a{color: #20242b;}
html[data-admin-theme="clean"] .app-main ._side .logo .fav,
html[data-admin-theme="clean"] .app-main ._side .logo .fav:before{background: #315ec8;}
html[data-admin-theme="clean"] .app-main ._side .logo .fav:after{background: rgba(79,118,217,.68);}
html[data-admin-theme="clean"] ._side .nav a{color: #646d79;}
html[data-admin-theme="clean"] ._side .nav a:hover{
    color: #294fa9;
    background: #f4f7fd;
}
html[data-admin-theme="clean"] ._side .nav a.on{
    color: #294fa9;
    background: #edf3ff;
    box-shadow: inset 3px 0 0 #4f76d9;
}
html[data-admin-theme="clean"] ._side .nav a .ico{
    color: #748096;
    background: #f3f5f8;
    border: 1px solid #e7eaf0;
}
html[data-admin-theme="clean"] ._side .nav a:hover .ico,
html[data-admin-theme="clean"] ._side .nav a.on .ico{
    color: #315ec8;
    background: #fff;
    border-color: #d8e2f8;
}

/* Modern shared loading state without changing existing loader behavior. */
html[data-admin-theme="clean"] .cover{
    background: rgba(248,250,253,.9);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
html[data-admin-theme="clean"] .cover > img,
html[data-admin-theme="clean"] .cover > #_coverextra_{display: none !important;}
html[data-admin-theme="clean"] .cover:before{
    content: '';
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -31px 0 0 -19px;
    border: 3px solid #dce5f7;
    border-top-color: #315ec8;
    border-radius: 50%;
    animation: clean-admin-spin .72s linear infinite;
}
html[data-admin-theme="clean"] .cover:after{
    content: 'Loading';
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    margin-top: 19px;
    transform: translateX(-50%);
    color: #626b77;
    font: 600 12px/1 'Google Sans','Roboto',sans-serif;
    letter-spacing: .02em;
}
@keyframes clean-admin-spin{to{transform: rotate(360deg);}}

/* Consistent page canvas and toolbar. */
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page),
html[data-admin-theme="clean"] .app-content > .users,
html[data-admin-theme="clean"] .app-content > .livecards,
html[data-admin-theme="clean"] .app-content > .dashboard{min-height: 100%;padding-bottom: 34px;}
html[data-admin-theme="clean"] .section-title{
    gap: 18px;
    margin: 0;
}
html[data-admin-theme="clean"] .section-title ._l{min-width: 0;}
html[data-admin-theme="clean"] .section-title ._r{gap: 8px;}
html[data-admin-theme="clean"] .section-title .page-of-page{margin-top: 5px;color: #7a818b;}
html[data-admin-theme="clean"] .section-title .crumb{color: #69717c;}
html[data-admin-theme="clean"] div.section-title ._r .search{
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(32,33,36,.04);
}
html[data-admin-theme="clean"] div.section-title ._r .search .ico{
    flex: 0 0 40px;
    width: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    appearance: none;
}
html[data-admin-theme="clean"] div.section-title ._r .search .icon-clear{display: none;}
html[data-admin-theme="clean"] div.section-title ._r .search .icon-clear[style*="block"]{display: block !important;}
html[data-admin-theme="clean"] .filter-list{margin: 0 30px 14px;}
html[data-admin-theme="clean"] .files .user_filter{
    min-height: 30px;
    background: #315ec8;
    border-radius: 7px;
}
html[data-admin-theme="clean"] .files .filter-range{margin-left: 0;}

/* Cashouts-like table panels for every standard data page. */
html[data-admin-theme="clean"] .users-data,
html[data-admin-theme="clean"] .payment-data,
html[data-admin-theme="clean"] .session-data,
html[data-admin-theme="clean"] .reseller-data,
html[data-admin-theme="clean"] .server-data,
html[data-admin-theme="clean"] .live-cards,
html[data-admin-theme="clean"] .allowed-sites,
html[data-admin-theme="clean"] .restricted-sites,
html[data-admin-theme="clean"] .dmca{
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
html[data-admin-theme="clean"] .users-data .data-table,
html[data-admin-theme="clean"] .payment-data .data-table,
html[data-admin-theme="clean"] .session-data .data-table,
html[data-admin-theme="clean"] .reseller-data .data-table,
html[data-admin-theme="clean"] .server-data .data-table,
html[data-admin-theme="clean"] .live-cards .data-table,
html[data-admin-theme="clean"] .allowed-sites .data-table,
html[data-admin-theme="clean"] .restricted-sites .data-table,
html[data-admin-theme="clean"] .dmca .data-table{min-width: 760px;}
html[data-admin-theme="clean"] .data-table .data-row{
    margin: 0;
    background: #fff;
    transition: background .15s ease;
}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:nth-child(odd),
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:nth-child(even){background: #fff;}
html[data-admin-theme="clean"] .payments .data-row.added.sale{background: #eaf7f0 !important;}
html[data-admin-theme="clean"] .payments .data-row.added.rebill{background: #edf1ff !important;}
html[data-admin-theme="clean"] .payments .data-row.rebill{background: #fff6e8 !important;}
html[data-admin-theme="clean"] .payments .data-row.noref{background: #fcebea !important;}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row h2.em,
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row small{color: #7a818b;}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .col-action{
    font-size: 0;
    white-space: nowrap;
}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .col-action a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    margin: 2px 5px 2px 0;
    padding: 0 9px;
    color: #315ec8;
    background: #fff;
    border: 1px solid #d9e0ec;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .col-action a:hover{background: #f3f6ff;border-color: #beccef;}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .col-action a.button{
    color: #fff;
    background: #315ec8;
    border-color: #315ec8;
}
html[data-admin-theme="clean"] .files .data-table .data-row .col-check ._select,
html[data-admin-theme="clean"] .dmca .data-table .data-row .col-check ._select{
    width: 18px;
    height: 18px;
    background: #eef1f6;
    border: 1px solid #d9dee7;
    border-radius: 5px;
}
html[data-admin-theme="clean"] .files .data-table .data-row .col-check ._select.ticked,
html[data-admin-theme="clean"] .dmca .data-table .data-row .col-check ._select.ticked{
    color: #fff;
    background: #315ec8;
    border-color: #315ec8;
}

/* Forms and page-specific operational surfaces. */
html[data-admin-theme="clean"] .files:not(.cashout-page) > .uform,
html[data-admin-theme="clean"] .users > .uform,
html[data-admin-theme="clean"] .vouchers .uform{
    width: 620px;
    max-width: calc(100% - 60px);
    margin: 0 30px 25px;
}
html[data-admin-theme="clean"] .uform .stc:last-child{margin-bottom: 0;}
html[data-admin-theme="clean"] .uform .lbl{color: #555d68;}
html[data-admin-theme="clean"] .dmca-form{
    margin: 0 30px 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e1e5ec;
    border-radius: 11px;
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .dmca-form textarea{margin-top: 0;background: #fafbfc;}
html[data-admin-theme="clean"] .td-cuser,
html[data-admin-theme="clean"] .transfer-crumb{
    margin: 0 30px 14px;
    border: 1px solid #dce6fb;
    border-radius: 9px;
}
html[data-admin-theme="clean"] .files .__locked-users{
    border: 1px solid #dfe3e9;
    box-shadow: 0 16px 45px rgba(32,33,36,.16);
}
html[data-admin-theme="clean"] .files .__lu-header{border-bottom-color: #e8ebf0;}
html[data-admin-theme="clean"] .files .__lu-item{border-bottom-color: #edf0f4;}
html[data-admin-theme="clean"] .server_status{max-width: 760px;}
html[data-admin-theme="clean"] .server_status ._block{
    margin: 0 30px 20px;
    overflow: hidden;
    border: 1px solid #e1e5ec;
    border-radius: 11px;
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .server_status ._block .head{padding: 10px 13px;background: #315ec8;}
html[data-admin-theme="clean"] .server_status ._block .data .item:nth-child(2n){background: #f7f9fc;}
html[data-admin-theme="clean"] .vouchers .voucher-result{
    width: 620px;
    max-width: calc(100% - 60px);
    margin: 0 30px 25px;
    padding: 20px;
}
html[data-admin-theme="clean"] .settings{padding: 0 30px;}
html[data-admin-theme="clean"] .settings .uform{
    width: 760px;
    max-width: 100%;
    margin: 0 0 30px;
}
html[data-admin-theme="clean"] .admin-appearance{max-width: 760px;margin-bottom: 20px;}

/* Weekly sales rebuilt as two clean panels. */
html[data-admin-theme="clean"] .wsales{gap: 18px;padding: 20px 30px 30px;}
html[data-admin-theme="clean"] .weekly-sale-list{
    width: 310px;
    height: calc(100vh - 40px);
    overflow: hidden auto;
    background: #fff;
    border: 1px solid #e1e5ec;
    border-radius: 11px;
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .weekly-sale-list .section-title{
    min-height: 0;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid #e8ebf0;
}
html[data-admin-theme="clean"] .weekly-sale-list button{
    margin: 0 8px 3px;
    padding: 11px 12px;
    border: 0;
    border-radius: 7px;
}
html[data-admin-theme="clean"] .weekly-sale-list button:nth-child(even){background: #fff;}
html[data-admin-theme="clean"] .weekly-sale-list button:hover{background: #f5f7fb;opacity: 1;}
html[data-admin-theme="clean"] .weekly-sale-list button.on{color: #294fa9;background: #edf3ff;}
html[data-admin-theme="clean"] .weekly-sale-list button.on:after{display: none;}
html[data-admin-theme="clean"] .weekly-detail{
    min-width: 0;
    min-height: calc(100vh - 40px);
    padding: 0;
    background: transparent;
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview{
    width: 100%;
    max-width: 820px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e5ec;
    border-radius: 11px;
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .tlbl{display: inline-block;border-radius: 6px;padding: 6px 10px;}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview{margin-top: 0;border-color: #e4e8ee;border-radius: 0 8px 8px 8px;}
html[data-admin-theme="clean"] .weekly-detail .sale-box{
    max-width: 820px;
    margin-top: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e1e5ec;
    border-radius: 11px;
    box-shadow: var(--clean-shadow);
}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list .amount{
    min-width: 145px;
    min-height: 38px;
    padding: 9px 8px;
    border-color: #dde3ed;
    border-radius: 7px;
    box-shadow: none;
}

/* Refined dialogs, empty states, pagination and notifications. */
html[data-admin-theme="clean"] .dialogbox{background: rgba(24,32,51,.28);backdrop-filter: blur(2px);}
html[data-admin-theme="clean"] .dialogbox .msgbox .title{background: #fafbfc;border-bottom: 1px solid #e8ebf0;}
html[data-admin-theme="clean"] .dialogbox .msgbox .actions{border-top: 1px solid #e8ebf0;}
html[data-admin-theme="clean"] .error-404{padding: 80px 20px;color: #68717c;}
html[data-admin-theme="clean"] .error-404 .line{background: #dfe3e9;}
html[data-admin-theme="clean"] .pagination{padding: 0;}
html[data-admin-theme="clean"] .pagination button{background: #fff;border-color: #dfe3e9;}
html[data-admin-theme="clean"] .pagination button:disabled{color: #fff;background: #315ec8;border-color: #315ec8;}

/* Mobile cards for reused admin tables, with page-accurate labels. */
@media only screen and (max-width: 760px){
    html[data-admin-theme="clean"] .app-main ._side{
        background: #fff;
        border-right: 1px solid #e1e5ec;
        box-shadow: 8px 0 30px rgba(24,32,51,.16);
    }
    html[data-admin-theme="clean"] .section-title{
        align-items: flex-start;
        flex-direction: column;
    }
    html[data-admin-theme="clean"] .section-title ._l,
    html[data-admin-theme="clean"] .section-title ._r{width: 100%;flex: 0 0 auto;}
    html[data-admin-theme="clean"] .section-title ._r{align-items: stretch;justify-content: flex-start;flex-wrap: wrap;}
    html[data-admin-theme="clean"] div.section-title ._r .search{width: 100%;margin: 0;}
    html[data-admin-theme="clean"] .filter-list{margin-left: 15px;margin-right: 15px;}
    html[data-admin-theme="clean"] .users-data,
    html[data-admin-theme="clean"] .payment-data,
    html[data-admin-theme="clean"] .session-data,
    html[data-admin-theme="clean"] .reseller-data,
    html[data-admin-theme="clean"] .server-data,
    html[data-admin-theme="clean"] .live-cards,
    html[data-admin-theme="clean"] .allowed-sites,
    html[data-admin-theme="clean"] .restricted-sites,
    html[data-admin-theme="clean"] .dmca{overflow: visible;background: transparent;border: 0;box-shadow: none;}
    html[data-admin-theme="clean"] .users-data .data-table,
    html[data-admin-theme="clean"] .payment-data .data-table,
    html[data-admin-theme="clean"] .session-data .data-table,
    html[data-admin-theme="clean"] .reseller-data .data-table,
    html[data-admin-theme="clean"] .server-data .data-table,
    html[data-admin-theme="clean"] .live-cards .data-table,
    html[data-admin-theme="clean"] .allowed-sites .data-table,
    html[data-admin-theme="clean"] .restricted-sites .data-table,
    html[data-admin-theme="clean"] .dmca .data-table{min-width: 0;padding: 0;background: transparent;}
    html[data-admin-theme="clean"] .users-data .data-row-head,
    html[data-admin-theme="clean"] .payment-data .data-row-head,
    html[data-admin-theme="clean"] .session-data .data-row-head,
    html[data-admin-theme="clean"] .reseller-data .data-row-head,
    html[data-admin-theme="clean"] .server-data .data-row-head,
    html[data-admin-theme="clean"] .live-cards .data-row-head,
    html[data-admin-theme="clean"] .allowed-sites .data-row-head,
    html[data-admin-theme="clean"] .restricted-sites .data-row-head,
    html[data-admin-theme="clean"] .dmca .data-row-head{display: none !important;}
    html[data-admin-theme="clean"] .users-data .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .payment-data .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .session-data .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .reseller-data .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .server-data .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .live-cards .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .allowed-sites .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .restricted-sites .data-row:not(.data-row-head),
    html[data-admin-theme="clean"] .dmca .data-row:not(.data-row-head){
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr));
        align-items: stretch;
        min-height: 0;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff !important;
        border: 1px solid #e1e5ec;
        border-radius: 10px;
        box-shadow: var(--clean-shadow);
    }
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .data-col{
        width: auto;
        min-width: 0;
        max-width: none !important;
        padding: 11px 13px;
        border-right: 0;
        border-bottom: 1px solid #edf0f4;
    }
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .data-col:before{
        display: block;
        margin-bottom: 6px;
        color: #818894;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: .05em;
        text-transform: uppercase;
    }
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .col-name,
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .col-action{grid-column: 1/-1;}
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .col-action{border-bottom: 0;white-space: normal;}
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .data-col h2,
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .data-col a{max-width: 100%;white-space: normal;overflow-wrap: anywhere;}
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .col-action a{min-height: 36px;}
    html[data-admin-theme="clean"] .users-data .col-blnc,
    html[data-admin-theme="clean"] .users-data .col-stamp,
    html[data-admin-theme="clean"] .users-data .col-bw,
    html[data-admin-theme="clean"] .users-data .col-fc,
    html[data-admin-theme="clean"] .session-data .col-brs,
    html[data-admin-theme="clean"] .dmca .col-size,
    html[data-admin-theme="clean"] .dmca .col-stamp{display: block !important;}

    html[data-admin-theme="clean"] .admin-page-users .users-data .col-id:before,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-id:before,
    html[data-admin-theme="clean"] .admin-page-topusers .users-data .col-id:before{content:'User ID';}
    html[data-admin-theme="clean"] .admin-page-users .users-data .col-name:before,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-name:before,
    html[data-admin-theme="clean"] .admin-page-topusers .users-data .col-name:before{content:'User';}
    html[data-admin-theme="clean"] .admin-page-users .users-data .col-blnc:before,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-blnc:before,
    html[data-admin-theme="clean"] .admin-page-topusers .users-data .col-blnc:before{content:'Balance';}
    html[data-admin-theme="clean"] .admin-page-users .users-data .col-fc:before,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-fc:before,
    html[data-admin-theme="clean"] .admin-page-topusers .users-data .col-fc:before{content:'Files';}
    html[data-admin-theme="clean"] .admin-page-users .users-data .col-bw:before,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-bw:before,
    html[data-admin-theme="clean"] .admin-page-topusers .users-data .col-bw:before{content:'Bandwidth';}
    html[data-admin-theme="clean"] .admin-page-users .users-data .col-stamp:before,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-stamp:before,
    html[data-admin-theme="clean"] .admin-page-topusers .users-data .col-stamp:before{content:'Last active';}

    html[data-admin-theme="clean"] .admin-page-files .users-data .col-check:before,
    html[data-admin-theme="clean"] .admin-page-topdl .users-data .col-check:before,
    html[data-admin-theme="clean"] .admin-page-datatransfer .users-data .col-check:before{content:'Select';}
    html[data-admin-theme="clean"] .admin-page-files .users-data .col-name:before,
    html[data-admin-theme="clean"] .admin-page-topdl .users-data .col-name:before,
    html[data-admin-theme="clean"] .admin-page-datatransfer .users-data .col-name:before{content:'File';}
    html[data-admin-theme="clean"] .admin-page-files .users-data .col-blnc:before,
    html[data-admin-theme="clean"] .admin-page-topdl .users-data .col-blnc:before,
    html[data-admin-theme="clean"] .admin-page-datatransfer .users-data .col-blnc:before{content:'Size';}
    html[data-admin-theme="clean"] .admin-page-dlhistory .users-data .col-id:before{content:'ID';}
    html[data-admin-theme="clean"] .admin-page-dlhistory .users-data .col-name:before{content:'User';}
    html[data-admin-theme="clean"] .admin-page-dlhistory .users-data .col-blnc:before{content:'File';}
    html[data-admin-theme="clean"] .admin-page-files .users-data .col-stamp:before,
    html[data-admin-theme="clean"] .admin-page-topdl .users-data .col-stamp:before,
    html[data-admin-theme="clean"] .admin-page-datatransfer .users-data .col-stamp:before{content:'Modified';}
    html[data-admin-theme="clean"] .admin-page-dlhistory .users-data .col-stamp:before{content:'Stamp';}

    html[data-admin-theme="clean"] .payment-data .col-dot:before{content:'Type';}
    html[data-admin-theme="clean"] .payment-data .col-name:before{content:'Payment';}
    html[data-admin-theme="clean"] .payment-data .col-reff:before{content:'Referer';}
    html[data-admin-theme="clean"] .payment-data .col-trx:before{content:'Transaction';}
    html[data-admin-theme="clean"] .payment-data .col-dreff:before{content:'Download referer';}
    html[data-admin-theme="clean"] .session-data .col-id:before{content:'ID';}
    html[data-admin-theme="clean"] .session-data .col-name:before{content:'User';}
    html[data-admin-theme="clean"] .session-data .col-brs:before{content:'Browser';}
    html[data-admin-theme="clean"] .session-data .col-loc:before{content:'Location';}
    html[data-admin-theme="clean"] .session-data .col-stamp:before{content:'Stamp';}
    html[data-admin-theme="clean"] .reseller-data .col-id:before{content:'ID';}
    html[data-admin-theme="clean"] .reseller-data .col-name:before{content:'Business';}
    html[data-admin-theme="clean"] .reseller-data .col-loc:before{content:'Location';}
    html[data-admin-theme="clean"] .reseller-data .col-blnc:before{content:'Balance';}
    html[data-admin-theme="clean"] .reseller-data .col-vch:before{content:'Vouchers';}
    html[data-admin-theme="clean"] .server-data .col-id:before{content:'ID';}
    html[data-admin-theme="clean"] .server-data .col-name:before{content:'Server';}
    html[data-admin-theme="clean"] .server-data .data-row:not(.data-row-head) .col-disk:nth-child(3):before{content:'Load average';}
    html[data-admin-theme="clean"] .server-data .data-row:not(.data-row-head) .col-disk:nth-child(4):before{content:'Disk';}
    html[data-admin-theme="clean"] .live-cards .data-row:not(.data-row-head) .col-name:nth-child(1):before{content:'User';}
    html[data-admin-theme="clean"] .live-cards .data-row:not(.data-row-head) .col-name:nth-child(2):before{content:'Plan';}
    html[data-admin-theme="clean"] .live-cards .col-card:before{content:'Card';}
    html[data-admin-theme="clean"] .live-cards .col-stamp:before{content:'Added';}
    html[data-admin-theme="clean"] .allowed-sites .col-id:before,
    html[data-admin-theme="clean"] .restricted-sites .col-id:before{content:'ID';}
    html[data-admin-theme="clean"] .allowed-sites .col-name:before,
    html[data-admin-theme="clean"] .restricted-sites .col-name:before{content:'Domain';}
    html[data-admin-theme="clean"] .rate-limit-blocked-ips .col-name:before{content:'IP address';}
    html[data-admin-theme="clean"] .rate-limit-blocked-ips .col-stamp:before{content:'Last active';}
    html[data-admin-theme="clean"] .dmca .col-id:before{content:'ID';}
    html[data-admin-theme="clean"] .dmca .col-check:before{content:'Select';}
    html[data-admin-theme="clean"] .dmca .col-name:before{content:'File';}
    html[data-admin-theme="clean"] .dmca .col-size:before{content:'Size';}
    html[data-admin-theme="clean"] .dmca .col-stamp:before{content:'Modified';}
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .col-action:before{content:'Actions';}

    html[data-admin-theme="clean"] .files:not(.cashout-page) > .uform,
    html[data-admin-theme="clean"] .users > .uform,
    html[data-admin-theme="clean"] .vouchers .uform,
    html[data-admin-theme="clean"] .vouchers .voucher-result{width: auto;max-width: none;margin: 0 15px 22px;}
    html[data-admin-theme="clean"] .dmca-form,
    html[data-admin-theme="clean"] .td-cuser,
    html[data-admin-theme="clean"] .transfer-crumb,
    html[data-admin-theme="clean"] .server_status ._block{margin-left: 15px;margin-right: 15px;}
    html[data-admin-theme="clean"] .wsales{flex-direction: column;gap: 14px;padding: 15px;}
    html[data-admin-theme="clean"] .weekly-sale-list{
        position: relative;
        top: auto;
        width: 100% !important;
        height: auto !important;
        max-height: 360px;
        border-right: 1px solid #e1e5ec !important;
        border-bottom: 1px solid #e1e5ec;
    }
    html[data-admin-theme="clean"] .weekly-detail{width: 100%;min-height: 0;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview,
    html[data-admin-theme="clean"] .weekly-detail .sale-box{max-width: none;}
}

@media only screen and (max-width: 420px){
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head){grid-template-columns: 1fr;}
    html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row:not(.data-row-head) .data-col{grid-column: 1/-1;border-right: 0;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview{flex-direction: column;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point:not(:last-child){border-right: 0;border-bottom: 1px solid #e4e8ee;}
}

/* Clean theme precision pass — page-specific layouts verified against live markup. */

/* Keep page content comfortably readable on very wide screens. */
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .section-title,
html[data-admin-theme="clean"] .app-content > .users > .section-title,
html[data-admin-theme="clean"] .app-content > .dashboard > .section-title,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .filter-list,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .users-data,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .payment-data,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .session-data,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .reseller-data,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .server-data,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .live-cards,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .allowed-sites,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .restricted-sites,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .dmca,
html[data-admin-theme="clean"] .app-content > .files:not(.cashout-page) > .__pagination,
html[data-admin-theme="clean"] .app-content > .users > .users-data,
html[data-admin-theme="clean"] .app-content > .users > .__pagination{
    width: auto;
    max-width: 1680px;
}

/* Users edit: compact, deliberate form instead of one oversized blank card. */
html[data-admin-theme="clean"] .admin-page-users .users > .uform,
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform,
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform{
    width: 920px;
    max-width: calc(100% - 60px);
    padding: 24px;
}
html[data-admin-theme="clean"] .admin-page-users .users > .uform > .group,
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform > .group,
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform > .group{
    gap: 20px;
    width: 100%;
}
html[data-admin-theme="clean"] .admin-page-users .users > .uform > .group .spt,
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform > .group .spt,
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform > .group .spt{display: none;}
html[data-admin-theme="clean"] .admin-page-users .users > .uform > .group:nth-child(-n+4) .stc,
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform > .group:nth-child(-n+3) .stc,
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform > .group:nth-child(-n+3) .stc{
    min-height: 48px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #f8f9fc;
    border: 1px solid #e6e9ef;
    border-radius: 9px;
}
html[data-admin-theme="clean"] .admin-page-users .users > .uform > .group:nth-child(5),
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform > .group:nth-child(4),
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform > .group:nth-child(4){
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid #e7eaf0;
}
html[data-admin-theme="clean"] .admin-page-users .users > .uform .stc,
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform .stc,
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform .stc{min-width: 0;margin-bottom: 16px;}
html[data-admin-theme="clean"] .admin-page-users .users > .uform .input,
html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform .input,
html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform .input{width: 100%;}

/* Payments: calm operational table with semantic state accents and clear actions. */
html[data-admin-theme="clean"] .admin-page-payments .payment-data{
    overflow: hidden auto;
}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row:not(.data-row-head){
    position: relative;
    min-height: 74px;
    background: #fff !important;
}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row:not(.data-row-head):before{
    content: '';
    align-self: stretch;
    flex: 0 0 3px;
    width: 3px;
    background: #dfe4ec;
}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.added.sale:before{background:#2e9b66;}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.added.rebill:before{background:#596fd0;}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.rebill:before{background:#d5942e;}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.noref:before{background:#d6574f;}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row:hover{background:#f9fbfe !important;}
html[data-admin-theme="clean"] .admin-page-payments .payments .col-name{min-width:260px;}
html[data-admin-theme="clean"] .admin-page-payments .payments .col-action{justify-content:flex-end;}
html[data-admin-theme="clean"] .admin-page-payments .payments .col-action .button{
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 13px;
}
html[data-admin-theme="clean"] .admin-page-payments .payments .col-action ._remove_reff{
    color:#b42318;
    background:#fff !important;
    border-color:#efc7c3 !important;
}
html[data-admin-theme="clean"] .admin-page-payments .payments .col-action ._add_reff{
    color:#fff;
    background:#55bd00 !important;
    border-color:#55bd00 !important;
    box-shadow:0 1px 2px rgba(49,126,0,.18);
}
html[data-admin-theme="clean"] .admin-page-payments .payments .col-action ._add_reff:hover{
    background:#48a400 !important;
    border-color:#48a400 !important;
}

/* DMCA: one workspace surface, not cards nested inside cards. */
html[data-admin-theme="clean"] .admin-page-dmca .dmca{
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
html[data-admin-theme="clean"] .admin-page-dmca .dmca-form{
    margin: 0;
    padding: 22px;
}
html[data-admin-theme="clean"] .admin-page-dmca .dmca-form .ttl{margin-bottom:10px;color:#555d68;}
html[data-admin-theme="clean"] .admin-page-dmca .dmca-form textarea{
    height: 150px;
    margin: 0 0 14px;
}
html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404{
    min-height: 210px;
    margin: 18px 0 0;
    padding: 48px 20px;
}
html[data-admin-theme="clean"] .admin-page-dmca .dmca > .data-table{
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5ec;
    border-radius: 11px;
    box-shadow: var(--clean-shadow);
}

/* Weekly Sales: stable master/detail workspace for real Normal and VIP volumes. */
html[data-admin-theme="clean"] .wsales{
    display: grid;
    grid-template-columns: minmax(290px,340px) minmax(0,1fr);
    align-items: start;
    gap: 20px;
    max-width: 1760px;
    margin: 0 auto;
    padding: 24px 30px 34px;
}
html[data-admin-theme="clean"] .weekly-sale-list{
    position: sticky;
    top: 20px;
    display: flex;
    width: auto;
    height: calc(100vh - 40px);
    min-height: 440px;
    max-height: calc(100vh - 40px);
}
html[data-admin-theme="clean"] .weekly-sale-list .section-title{
    position: relative;
    top: auto;
    flex: 0 0 auto;
    gap: 12px;
    padding: 20px;
}
html[data-admin-theme="clean"] .weekly-sale-list .section-title ._l{width:100%;}
html[data-admin-theme="clean"] .weekly-sale-list .section-title h2{font-size:22px;}
html[data-admin-theme="clean"] .weekly-sale-list .sort-weekly{
    width:100%;
    margin:0;
    font-weight:600;
}
html[data-admin-theme="clean"] .weekly-sale-list .ws-user{
    flex: 0 0 auto;
    margin: 2px 9px;
    padding: 11px 12px;
    border: 1px solid transparent;
}
html[data-admin-theme="clean"] .weekly-sale-list .ws-user:first-of-type{margin-top:9px;}
html[data-admin-theme="clean"] .weekly-sale-list .ws-user:last-child{margin-bottom:9px;}
html[data-admin-theme="clean"] .weekly-sale-list .ws-user h2{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
html[data-admin-theme="clean"] .weekly-sale-list .ws-user h2 + h2{margin-top:4px;color:#737b86;font-size:13px;}
html[data-admin-theme="clean"] .weekly-sale-list .ws-user.on{border-color:#d9e4fb;}
html[data-admin-theme="clean"] .weekly-detail{
    min-width:0;
    min-height:0;
    overflow:visible;
}
html[data-admin-theme="clean"] .weekly-detail > .ttl{
    position:relative;
    top:auto;
    min-height:44px;
    margin:0 0 12px;
    padding:4px 2px 10px;
    font-size:24px;
    line-height:1.25;
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview{
    width:auto;
    max-width:1120px;
    padding:18px;
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .tlbl{
    background:#315ec8;
    font-size:13px;
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point{padding:18px 20px;}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point .val{font-size:28px;}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point .lbl{margin-top:8px;color:#68717c;font-size:14px;}
html[data-admin-theme="clean"] .weekly-detail .sale-box{
    max-width:1120px;
    margin-top:14px;
    padding:18px;
}
html[data-admin-theme="clean"] .weekly-detail .sale-box .date-title{margin-bottom:12px;font-size:16px;}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(116px,1fr));
    gap:7px;
}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list .amount{
    display:flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:0;
    min-height:42px;
    margin:0;
    padding:12px 8px 7px;
    color:#315ec8;
    background:#f9fbff;
    border:1px solid #dce4f1;
    font-size:14px;
}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list button.amount{
    color:#fff;
    background:#315ec8;
    border-color:#315ec8;
}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list button.amount:hover{background:#294fa9;}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list button.amount:empty:after{content:'Pending';}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list .amount:before{
    top:4px;
    left:5px;
    padding:1px 4px;
    color:#fff;
    border-radius:4px;
    font-size:8px;
    font-weight:700;
    line-height:1.2;
}
html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list button.amount:before{background:rgba(255,255,255,.22);}
html[data-admin-theme="clean"] .weekly-detail > .error-404{
    min-height:220px;
    margin:0;
    padding:48px 20px;
}

@media only screen and (max-width: 1100px){
    html[data-admin-theme="clean"] .wsales{grid-template-columns:290px minmax(0,1fr);padding-left:20px;padding-right:20px;}
    html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));}
}

@media only screen and (max-width: 760px){
    html[data-admin-theme="clean"] .header{
        display:flex !important;
        position:sticky;
        top:0;
        z-index:99;
    }
    html[data-admin-theme="clean"] .app-main ._side,
    html[data-admin-theme="classic"] .app-main ._side{
        position:fixed;
        top:8px;
        bottom:auto;
        left:0;
        z-index:100;
        width:264px;
        max-width:264px;
        height:auto;
        max-height:calc(100vh - 16px);
        max-height:calc(100dvh - 16px);
        overflow-y:auto;
        overscroll-behavior:contain;
        border-radius:0 14px 14px 0;
        transform:translateX(-100%);
    }
    html[data-admin-theme="clean"] .app-main ._side.shw,
    html[data-admin-theme="classic"] .app-main ._side.shw{transform:translateX(0);}
    html[data-admin-theme="clean"] .header.shw{transform:translateX(264px);}
    html[data-admin-theme="clean"] .app-main ._side .nav a,
    html[data-admin-theme="classic"] .app-main ._side .nav a{
        display:flex;
        align-items:center;
        min-height:44px;
        transition:background-color .12s ease,color .12s ease,transform .12s ease;
        -webkit-tap-highlight-color:transparent;
        touch-action:manipulation;
    }
    html[data-admin-theme="clean"] .app-main ._side .nav a:active,
    html[data-admin-theme="clean"] .app-main ._side .nav a:focus-visible,
    html[data-admin-theme="classic"] .app-main ._side .nav a:active,
    html[data-admin-theme="classic"] .app-main ._side .nav a:focus-visible{
        color:#244caa;
        background:#e8effd;
        outline:0;
        transform:translateX(2px);
    }
    html[data-admin-theme="clean"] .app-main ._side .nav a:active .ico,
    html[data-admin-theme="clean"] .app-main ._side .nav a:focus-visible .ico,
    html[data-admin-theme="classic"] .app-main ._side .nav a:active .ico,
    html[data-admin-theme="classic"] .app-main ._side .nav a:focus-visible .ico{
        color:var(--nav-icon,#315ec8);
        background:var(--nav-icon-bg,#edf3ff);
        border-color:var(--nav-icon-border,#dbe6fb);
    }
    html[data-admin-theme="clean"] .admin-page-users .users > .uform,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform,
    html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform{width:auto;max-width:none;margin:0 15px 22px;padding:18px !important;}
    html[data-admin-theme="clean"] .admin-page-users .users > .uform > .group,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users > .uform > .group,
    html[data-admin-theme="clean"] .admin-page-topprousers .users > .uform > .group{gap:0;}
    html[data-admin-theme="clean"] .admin-page-payments .payments .data-row:not(.data-row-head):before{display:none;}
    html[data-admin-theme="clean"] .admin-page-payments .payments .col-action{justify-content:flex-start;}
    html[data-admin-theme="clean"] .admin-page-dmca .dmca-form{margin:0;padding:18px;}
    html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404{margin-top:14px;}
    html[data-admin-theme="clean"] .wsales{display:flex;max-width:none;margin:0;padding:15px;}
    html[data-admin-theme="clean"] .weekly-sale-list{
        position:relative;
        top:auto;
        width:100%;
        height:auto;
        min-height:0;
        max-height:calc(100vh - 95px);
    }
    html[data-admin-theme="clean"] .weekly-detail > .ttl{font-size:20px;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview{padding:14px !important;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point{padding:14px 12px;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point .val{font-size:24px;}
    html[data-admin-theme="clean"] .weekly-detail .sale-box{padding:14px !important;}
    html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list{grid-template-columns:repeat(3,minmax(0,1fr));}
    html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list .amount{width:100% !important;min-width:0;}
}

@media only screen and (max-width: 480px){
    html[data-admin-theme="clean"] .weekly-detail .sales-overview{padding:12px !important;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview{grid-template-columns:repeat(3,minmax(0,1fr));}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point{padding:13px 8px;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point:not(:last-child){border-right:1px solid #e4e8ee;border-bottom:0;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point .val{font-size:22px;line-height:1.15;}
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview .point .lbl{margin-top:6px;font-size:11px;line-height:1.25;}
    html[data-admin-theme="clean"] .weekly-detail .sale-box{padding:14px !important;}
    html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list{grid-template-columns:repeat(2,minmax(0,1fr));}
    html[data-admin-theme="clean"] .weekly-detail .sale-box .sale-list .amount{width:100% !important;min-width:0;}
}

/* Payments review — compact badges carry the type; rows stay neutral. */
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row:not(.data-row-head):before{display:none;}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.sale,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.added.sale,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.added.rebill,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.rebill,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.noref{background:#fff !important;}
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.sale:hover,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.added.sale:hover,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.added.rebill:hover,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.rebill:hover,
html[data-admin-theme="clean"] .admin-page-payments .payments .data-row.noref:hover{background:#f9fbfe !important;}

/* Shared Clean popup system — targets the actual Dialog() markup used site-wide. */
html[data-admin-theme="clean"] .dialogbox{
    background:rgba(28,35,49,.34);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
}
html[data-admin-theme="clean"] .dialogbox .msgbox{
    width:calc(100% - 32px);
    min-width:0;
    max-width:540px;
    overflow:hidden;
    background:#fff;
    border:1px solid rgba(210,217,228,.9);
    border-radius:16px;
    box-shadow:0 20px 55px rgba(24,32,51,.22),0 2px 8px rgba(24,32,51,.08);
}
html[data-admin-theme="clean"] .dialogbox .msgbox.visible{top:50% !important;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-blur{overflow:hidden;border-radius:inherit;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head{
    min-height:58px;
    padding:18px 54px 15px 22px;
    background:#fff;
    border-bottom:1px solid #edf0f4;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .label{
    color:#20242b;
    font-size:19px;
    font-weight:700;
    line-height:1.25;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .cross{
    top:11px;
    right:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0 0 2px;
    color:#68717c;
    background:transparent;
    border:0;
    border-radius:50%;
    font-size:25px;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .cross:hover{color:#20242b;background:#f0f2f6;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content{
    max-height:calc(100vh - 170px);
    overflow:auto;
    padding:20px 22px 22px;
    color:#303640;
    background:#fff;
    line-height:1.45;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content .input{min-height:42px;border-radius:9px;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer{
    min-height:62px;
    gap:10px;
    padding:11px 22px 14px;
    background:#f9fafc;
    border-top:1px solid #edf0f4;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-extra{flex:1;min-width:0;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns{display:flex;align-items:center;justify-content:flex-end;gap:8px;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .button{
    min-height:38px;
    margin:0;
    padding:0 16px;
    border-radius:8px;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-close{
    color:#43506a;
    background:transparent;
    border-color:transparent;
    box-shadow:none;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-close:hover{color:#244caa;background:#edf3ff;border-color:#edf3ff;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-action{
    color:#fff;
    background:#315ec8;
    border-color:#315ec8;
    box-shadow:0 2px 5px rgba(49,94,200,.2);
}

@media only screen and (max-width:760px){
    /* Payments search: no unused clear-button column. */
    html[data-admin-theme="clean"] .admin-page-payments .section-title ._r .search{
        display:flex;
        width:100%;
    }
    html[data-admin-theme="clean"] .admin-page-payments .section-title ._r .search .query{
        flex:1 1 auto;
        width:0;
        min-width:0;
    }
    html[data-admin-theme="clean"] .admin-page-payments .section-title ._r .search select{
        flex:0 0 92px;
        width:92px;
        margin:0;
    }
    html[data-admin-theme="clean"] .admin-page-payments .section-title ._r .search .icon-clear{display:none !important;}
    html[data-admin-theme="clean"] .admin-page-payments .section-title ._r .search .icon-clear[style*="block"]{
        display:block !important;
        flex:0 0 40px;
        width:40px;
    }

    /* Payment history cards: color is the status; remove the redundant TYPE row. */
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head){
        display:block !important;
        position:relative;
        min-height:0;
        padding:18px 20px;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .data-col{
        display:block;
        width:100%;
        min-width:0;
        max-width:none !important;
        padding:12px 0;
        border-right:0;
        border-bottom:1px solid rgba(118,132,154,.18);
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-dot{display:none !important;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-name{padding-top:0;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-dreff:not(:has(.em)){display:none !important;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-action{
        display:flex;
        align-items:center;
        justify-content:flex-start;
        flex-wrap:wrap;
        gap:8px;
        padding-bottom:0;
        border-bottom:0;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-action .button{margin:0;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-trx h2,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-dreff h2{
        white-space:normal;
        overflow-wrap:anywhere;
    }
}

/* Files: fast, readable inventory surface matching Session History. */
html[data-admin-theme="clean"] .admin-page-files .files-page-header{
    align-items:flex-start;
    padding-top:24px;
    padding-bottom:18px;
}
html[data-admin-theme="clean"] .admin-page-files .files-heading{flex:0 0 auto;padding-top:3px;}
html[data-admin-theme="clean"] .admin-page-files .files-heading > h2:first-child{font-size:26px;letter-spacing:-.025em;}
html[data-admin-theme="clean"] .admin-page-files .files-summary{margin-top:9px;}
html[data-admin-theme="clean"] .admin-page-files .files-summary > span{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:0 9px;
    color:#667080;
    background:#f3f6fb;
    border:1px solid #e2e7ef;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}
html[data-admin-theme="clean"] .admin-page-files .files-summary > span:not(:last-child):after{display:none;}
html[data-admin-theme="clean"] .admin-page-files .files-toolbar{
    flex-wrap:wrap;
    gap:9px;
}
html[data-admin-theme="clean"] .admin-page-files .files-toolbar .search{width:310px;min-height:42px;}
html[data-admin-theme="clean"] .admin-page-files .files-toolbar .files-limit,
html[data-admin-theme="clean"] .admin-page-files .files-toolbar .files-filter{
    width:auto;
    min-width:135px;
    height:42px !important;
    margin:0 !important;
    padding:0 34px 0 12px !important;
    background:#fff;
}
html[data-admin-theme="clean"] .admin-page-files .files-bulk-actions .button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    margin:0 !important;
}
html[data-admin-theme="clean"] .admin-page-files .users-data{
    overflow:hidden;
    border:1px solid #e0e5ed;
    border-radius:13px;
    box-shadow:0 2px 8px rgba(32,43,64,.06);
}
html[data-admin-theme="clean"] .admin-page-files .users-data .data-table{min-width:850px;}
html[data-admin-theme="clean"] .admin-page-files .users-data .data-row{min-height:78px;border-bottom:1px solid #e9edf3;}
html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:last-child{border-bottom:0;}
html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head):hover{background:#f8faff !important;}
html[data-admin-theme="clean"] .admin-page-files .users-data .data-row-head{min-height:52px;background:#f8fafc !important;}
html[data-admin-theme="clean"] .admin-page-files .users-data .col-check{flex:0 0 56px;}
html[data-admin-theme="clean"] .admin-page-files .users-data .col-name{min-width:330px;}
html[data-admin-theme="clean"] .admin-page-files .users-data .col-blnc{flex:0 0 170px;}
html[data-admin-theme="clean"] .admin-page-files .users-data .col-stamp{flex:0 0 190px;}
html[data-admin-theme="clean"] .admin-page-files .users-data .col-action{flex:0 0 170px;justify-content:flex-end;}
html[data-admin-theme="clean"] .admin-page-files .file-name{color:#202733;font-size:15px;line-height:1.35;}
html[data-admin-theme="clean"] .admin-page-files .flink{max-width:520px;margin:5px 0;color:#718096;}
html[data-admin-theme="clean"] .admin-page-files .file-meta{display:inline-flex;align-items:center;flex-wrap:wrap;line-height:1.35;}
html[data-admin-theme="clean"] .admin-page-files .file-server{font-weight:600;color:#596475;}

@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .admin-page-files .files-page-header{padding:20px 15px 15px;}
    html[data-admin-theme="clean"] .admin-page-files .files-heading{padding:0;}
    html[data-admin-theme="clean"] .admin-page-files .files-heading > h2:first-child{font-size:25px;}
    html[data-admin-theme="clean"] .admin-page-files .files-summary{gap:6px;margin-top:10px;}
    html[data-admin-theme="clean"] .admin-page-files .files-summary > span{min-height:25px;padding:0 8px;font-size:11px;}
    html[data-admin-theme="clean"] .admin-page-files .files-toolbar{width:100%;margin-top:4px;}
    html[data-admin-theme="clean"] .admin-page-files .files-toolbar .search,
    html[data-admin-theme="clean"] .admin-page-files .files-toolbar .files-limit,
    html[data-admin-theme="clean"] .admin-page-files .files-toolbar .files-filter{width:100%;min-width:0;}
    html[data-admin-theme="clean"] .admin-page-files .users-data{margin:0 15px 18px;border-radius:14px;}
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-table{min-width:0;}
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head){
        grid-template-columns:42px minmax(0,1fr);
        gap:0;
        min-height:0;
        margin:0;
        padding:17px 15px;
        border-radius:0;
        box-shadow:none;
    }
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .data-col{
        padding:9px 0;
        border-bottom:1px solid #edf0f4;
    }
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-check{
        padding-top:8px;
        border-bottom:0;
    }
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-name{padding-top:7px;}
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-action{padding-top:12px;border-bottom:0;}
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-name:before,
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-blnc:before,
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-stamp:before,
    html[data-admin-theme="clean"] .admin-page-files .users-data .data-row:not(.data-row-head) .col-action:before{
        display:block;
        margin-bottom:7px;
        color:#8a93a1;
        font-size:10px;
        font-weight:700;
        letter-spacing:.06em;
        text-transform:uppercase;
    }
    html[data-admin-theme="clean"] .admin-page-files .flink{display:block;min-height:0;margin:6px 0;line-height:1.4;}
}

@media only screen and (max-width:480px){
    html[data-admin-theme="clean"] .dialogbox .msgbox{width:calc(100% - 24px);max-width:none;border-radius:14px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head{min-height:54px;padding:16px 50px 13px 18px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .label{font-size:18px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .cross{top:10px;right:10px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content{max-height:calc(100vh - 154px);padding:18px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content .data-form.flex{flex-direction:column;align-items:stretch;gap:16px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer{align-items:center;flex-direction:row;padding:10px 18px 13px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns{width:100%;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .button{flex:1;min-width:0;padding:0 12px;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head){padding:16px;}
}

/* Servers: bounded operations workspace with balanced desktop columns. */
html[data-admin-theme="clean"] .admin-page-servers > .app-main .app-content > .files > .section-title,
html[data-admin-theme="clean"] .admin-page-servers .server-data,
html[data-admin-theme="clean"] .admin-page-servers .__pagination{
    width:auto;
    max-width:1450px;
    margin-left:auto;
    margin-right:auto;
}
html[data-admin-theme="clean"] .admin-page-servers .server-data{overflow:hidden;}
@media only screen and (min-width:761px){
    html[data-admin-theme="clean"] .admin-page-servers .server-data .data-row{
        display:grid;
        grid-template-columns:90px minmax(300px,1fr) minmax(210px,250px) minmax(210px,250px) 260px;
        align-items:center;
    }
    html[data-admin-theme="clean"] .admin-page-servers .server-data .data-row .data-col{
        width:auto;
        max-width:none;
    }
    html[data-admin-theme="clean"] .admin-page-servers .server-data .col-action{
        display:flex;
        align-items:center;
        justify-content:flex-end;
        gap:7px;
        white-space:nowrap;
    }
    html[data-admin-theme="clean"] .admin-page-servers .server-data .col-action a{
        display:inline-flex;
        align-items:center;
        min-height:34px;
        padding:0 10px;
        background:#fff;
        border:1px solid #dbe2ee;
        border-radius:8px;
    }
    html[data-admin-theme="clean"] .admin-page-servers .server-data .col-action a:hover{
        color:#244fae;
        background:#f4f7fd;
        border-color:#c7d5f2;
    }
}

/* Settings: page-specific control center without changing field behavior. */
html[data-admin-theme="clean"] .admin-page-settings .admin-appearance,
html[data-admin-theme="clean"] .admin-page-settings .settings{
    width:auto;
    max-width:1450px;
    margin-left:auto;
    margin-right:auto;
}
html[data-admin-theme="clean"] .admin-page-settings .admin-appearance{
    padding:24px;
    border-radius:14px;
}
html[data-admin-theme="clean"] .admin-page-settings .admin-theme-options{gap:16px;}
html[data-admin-theme="clean"] .admin-page-settings .admin-theme-option{
    padding:15px;
    border-radius:12px;
}
html[data-admin-theme="clean"] .admin-page-settings .admin-theme-preview{height:92px;border-radius:9px;}
html[data-admin-theme="clean"] .admin-page-settings .admin-theme-preview-clean .admin-theme-preview-side{
    background:#fff;
    border-right:1px solid #e1e5ec;
}
html[data-admin-theme="clean"] .admin-page-settings .settings{padding:0 30px 40px;}
html[data-admin-theme="clean"] .admin-page-settings .settings .uform{
    display:grid;
    grid-template-columns:repeat(3,minmax(220px,1fr));
    gap:17px 18px;
    width:100%;
    max-width:none;
    margin:0;
    padding:26px;
    border-radius:14px;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .uform > .group{display:contents;}
html[data-admin-theme="clean"] .admin-page-settings .settings .uform > .group > .spt{display:none;}
html[data-admin-theme="clean"] .admin-page-settings .settings .stc{
    min-width:0;
    margin:0;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .stc .input{width:100%;}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-title{
    position:relative;
    grid-column:1/-1;
    margin-top:8px;
    padding:22px 0 4px 54px;
    border-top:1px solid #e7ebf1;
}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-title:first-of-type{
    margin-top:0;
    padding-top:4px;
    border-top:0;
}
.admin-page-settings .settings-section-icon{display:none;}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-icon{
    position:absolute;
    left:0;
    bottom:3px;
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#edf3ff;
    border:1px solid #d9e5ff;
    border-radius:10px;
    color:#315ec8;
    font-size:18px;
}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-icon [class^="path"]:before{
    color:#315ec8 !important;
}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-icon .path2:before{
    opacity:.45;
}

/* Session History: compact desktop rows, readable identifiers and full network context. */
html[data-admin-theme="clean"] .admin-page-sessions .session-data .data-table{min-width:960px;}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .data-row:not(.data-row-head){
    min-height:72px;
    align-items:center;
}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-id{flex:0 0 130px;max-width:130px;}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-name{flex:1.35;min-width:230px;}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-brs{flex:1.1;min-width:190px;}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-loc{flex:1.15;min-width:210px;max-width:none;}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-stamp{flex:0 0 180px;max-width:180px;}
html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-action{flex:0 0 92px;max-width:92px;}
html[data-admin-theme="clean"] .admin-page-sessions .session-summary{margin-top:5px;color:#7a818b;}
@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .admin-page-sessions .session-data .data-table{min-width:0;}
    html[data-admin-theme="clean"] .admin-page-sessions .session-data .data-row:not(.data-row-head){
        align-items:stretch;
        min-height:0;
    }
    html[data-admin-theme="clean"] .admin-page-sessions .session-data .data-row:not(.data-row-head) .data-col{
        width:auto;
        min-width:0;
        max-width:none !important;
    }
    html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-id:before{content:'Session ID';}
    html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-loc:before{content:'Location / IP';}
    html[data-admin-theme="clean"] .admin-page-sessions .session-data .col-stamp:before{content:'Started';}
}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-title h2{margin:3px 0 0;color:#232a35;}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-title p{margin:5px 0 0;color:#737d8c;}
html[data-admin-theme="clean"] .admin-page-settings .settings-section-kicker{
    color:#315ec8;
    font-size:11px;
    letter-spacing:.07em;
    text-transform:uppercase;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .site-status{
    grid-column:1/-1;
    min-height:64px;
    margin:0;
    padding:15px 17px;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .stc:has(> .app-checkbox){
    min-height:60px;
    padding:13px 15px;
    background:#f8fafd;
    border:1px solid #e4e9f1;
    border-radius:10px;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .stc:has(> ._pub_msg){grid-column:span 2;}
html[data-admin-theme="clean"] .admin-page-settings .settings .std,
html[data-admin-theme="clean"] .admin-page-settings .settings .ste{
    grid-column:1/-1;
    margin:0;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .std{
    padding-top:17px;
    border-top:1px solid #e7ebf1;
}
html[data-admin-theme="clean"] .admin-page-settings .settings .ste{
    justify-content:flex-end;
    padding-top:3px;
}

@media only screen and (max-width:1180px){
    html[data-admin-theme="clean"] .admin-page-settings .settings .uform{grid-template-columns:repeat(2,minmax(220px,1fr));}
}

@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .admin-page-settings .admin-appearance{margin:0 15px 18px;padding:18px;}
    html[data-admin-theme="clean"] .admin-page-settings .settings{padding:0 15px 30px;}
    html[data-admin-theme="clean"] .admin-page-settings .settings .uform{
        grid-template-columns:minmax(0,1fr);
        gap:15px;
        padding:18px;
    }
    html[data-admin-theme="clean"] .admin-page-settings .settings-section-title{padding-left:48px;}
    html[data-admin-theme="clean"] .admin-page-settings .settings .stc:has(> ._pub_msg){grid-column:auto;}
    html[data-admin-theme="clean"] .admin-page-settings .settings .ste{justify-content:stretch;}
    html[data-admin-theme="clean"] .admin-page-settings .settings .ste .button{width:100%;}
}

/* Full admin audit: shared layout, empty-state and responsive refinements. */
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row .data-col{
    min-width:0;
}
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row .data-col h2,
html[data-admin-theme="clean"] body:not(.admin-page-cashouts) .data-table .data-row .data-col a{
    max-width:100%;
    overflow-wrap:anywhere;
}

html[data-admin-theme="clean"] .data-table > .error-404,
html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404{
    flex-direction:column;
    gap:12px;
    min-height:190px;
    margin:0;
    padding:42px 24px;
    color:#667085;
    text-align:center;
    background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
    border:0;
    border-radius:0;
    box-shadow:none;
}
html[data-admin-theme="clean"] .data-table > .error-404 .line,
html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404 .line{display:none;}
html[data-admin-theme="clean"] .data-table > .error-404 h2:first-child,
html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404 h2:first-child{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    color:#315ec8;
    background:#edf3ff;
    border:1px solid #d9e5ff;
    border-radius:50%;
    font-size:13px;
    letter-spacing:-1px;
}
html[data-admin-theme="clean"] .data-table > .error-404 h2:last-child,
html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404 h2:last-child{
    color:#586273;
    font-size:15px;
    line-height:1.45;
}

html[data-admin-theme="clean"] .admin-page-datatransfer .section-title{
    display:grid;
    grid-template-columns:auto minmax(540px,1fr) auto;
    gap:18px;
    align-items:center;
}
html[data-admin-theme="clean"] .admin-page-datatransfer .section-title ._l{white-space:nowrap;}
html[data-admin-theme="clean"] .admin-page-datatransfer .section-title ._r{
    display:grid;
    grid-template-columns:auto minmax(210px,1fr) auto minmax(210px,1fr);
    gap:8px 10px;
    align-items:center;
    justify-content:stretch;
    min-width:0;
}
html[data-admin-theme="clean"] .admin-page-datatransfer .section-title ._r > h2{
    margin:0 !important;
    color:#667085;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.04em;
}
html[data-admin-theme="clean"] .admin-page-datatransfer .section-title .search{width:100%;min-width:0;}
html[data-admin-theme="clean"] .admin-page-datatransfer .section-title .files-limit{
    height:40px !important;
    margin:0 !important;
    white-space:nowrap;
}

html[data-admin-theme="clean"] .admin-page-topusers .users > .uform{
    width:920px;
    max-width:calc(100% - 60px);
    padding:24px;
}
html[data-admin-theme="clean"] .admin-page-topusers .users > .uform > .group{gap:20px;width:100%;}
html[data-admin-theme="clean"] .admin-page-topusers .users > .uform > .group .spt{display:none;}
html[data-admin-theme="clean"] .admin-page-topusers .users > .uform > .group:nth-child(-n+3) .stc{
    min-height:48px;
    margin-bottom:10px;
    padding:10px 12px;
    background:#f8f9fc;
    border:1px solid #e6e9ef;
    border-radius:9px;
}
html[data-admin-theme="clean"] .admin-page-topusers .users > .uform > .group:nth-child(4){
    margin-top:12px;
    padding-top:22px;
    border-top:1px solid #e7eaf0;
}
html[data-admin-theme="clean"] .admin-page-topusers .users > .uform .stc{min-width:0;margin-bottom:16px;}
html[data-admin-theme="clean"] .admin-page-topusers .users > .uform .input{width:100%;}

@media only screen and (max-width:1100px){
    html[data-admin-theme="clean"] .admin-page-datatransfer .section-title{
        grid-template-columns:1fr auto;
    }
    html[data-admin-theme="clean"] .admin-page-datatransfer .section-title ._l{grid-column:1/-1;}
}

@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .admin-page-datatransfer .section-title{
        display:flex;
        gap:14px;
    }
    html[data-admin-theme="clean"] .admin-page-datatransfer .section-title ._r{
        display:grid;
        grid-template-columns:auto minmax(0,1fr);
        width:100%;
        gap:8px 10px;
    }
    html[data-admin-theme="clean"] .admin-page-datatransfer .section-title .search{margin:0;}
    html[data-admin-theme="clean"] .admin-page-datatransfer .section-title .files-limit{
        width:100%;
        grid-column:1/-1;
    }
    html[data-admin-theme="clean"] .admin-page-servers .section-title ._r,
    html[data-admin-theme="clean"] .admin-page-restricted-domains .section-title ._r,
    html[data-admin-theme="clean"] .admin-page-allowed-sites .section-title ._r{align-items:flex-start;}
    html[data-admin-theme="clean"] .admin-page-servers .section-title ._r > .button,
    html[data-admin-theme="clean"] .admin-page-restricted-domains .section-title ._r > .button,
    html[data-admin-theme="clean"] .admin-page-allowed-sites .section-title ._r > .button{
        width:auto;
        align-self:flex-start;
    }
    html[data-admin-theme="clean"] .admin-page-topusers .users > .uform{
        width:auto;
        max-width:none;
        margin:0 15px 22px;
        padding:18px !important;
    }
    html[data-admin-theme="clean"] .admin-page-topusers .users > .uform > .group{gap:0;}
    html[data-admin-theme="clean"] .data-table > .error-404,
    html[data-admin-theme="clean"] .admin-page-dmca .dmca > .error-404{
        min-height:170px;
        padding:34px 18px;
    }
}

@media only screen and (min-width:761px){
    /* Payments desktop: an explicit ID field and an Actions field that never overlaps it. */
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .data-col{min-width:0;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .col-id{
        flex:0 0 95px;
        width:95px;
        min-width:95px !important;
        max-width:95px;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .col-name{
        flex:.85 1 210px;
        min-width:150px !important;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .col-reff{
        flex:.9 1 175px;
        width:175px;
        min-width:125px !important;
        max-width:none;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .col-trx{
        flex:1.6 1 290px;
        width:290px;
        min-width:190px !important;
        max-width:none;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .col-dreff{
        flex:1.2 1 240px;
        width:240px;
        min-width:145px !important;
        max-width:none;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row .col-action{
        display:flex;
        flex:0 0 200px;
        width:200px;
        min-width:200px !important;
        max-width:200px;
        align-items:center;
        justify-content:flex-end;
        flex-wrap:wrap;
        gap:4px;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .col-action .button{
        margin:0;
        padding-left:10px;
        padding-right:10px;
        white-space:nowrap;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .payment-user-name{
        display:block;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row-head .col-name h2,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row-head .col-action h2{white-space:nowrap;}
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-reff .pl,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-trx .pl,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-dreff .pl,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-reff h2,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-trx h2,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-dreff h2{
        max-width:100%;
        white-space:normal;
        overflow-wrap:anywhere;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-trx .payment-transaction-name,
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .col-trx .payment-transaction-id{
        overflow:hidden;
        overflow-wrap:normal!important;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
}

/* Payments: Session History-style identity treatment and explicit mobile labels. */
html[data-admin-theme="clean"] .admin-page-payments .payment-summary{margin-top:5px;color:#7a818b;}
html[data-admin-theme="clean"] .admin-page-payments .payment-data .payment-user-id{box-shadow:none;}
@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .data-col[data-label]:before{
        content:attr(data-label);
        display:block;
        margin-bottom:6px;
        color:#818894;
        font-size:10px;
        font-weight:700;
        line-height:1;
        letter-spacing:.05em;
        text-transform:uppercase;
    }
    html[data-admin-theme="clean"] .admin-page-payments .payment-data .data-row:not(.data-row-head) .payment-user-name{white-space:normal;}
}

/* Sidebar refinement — white navigation with distinct, legible page icons. */
html[data-admin-theme="clean"] ._side .nav a{
    --nav-icon:#315ec8;
    --nav-icon-bg:#edf3ff;
    --nav-icon-border:#dbe6fb;
    color:#525b68;
}
html[data-admin-theme="clean"] ._side .nav a[href*="users/"]{--nav-icon:#0f8f61;--nav-icon-bg:#e9f7f1;--nav-icon-border:#d2eee2;}
html[data-admin-theme="clean"] ._side .nav a[href*="users/deleted"]{--nav-icon:#c2413a;--nav-icon-bg:#fff0ef;--nav-icon-border:#f4d6d3;}
html[data-admin-theme="clean"] ._side .nav a[href*="top-pro-users"]{--nav-icon:#7957bd;--nav-icon-bg:#f3effc;--nav-icon-border:#e3d9f6;}
html[data-admin-theme="clean"] ._side .nav a[href*="data-transfer"]{--nav-icon:#087f8c;--nav-icon-bg:#e8f7f8;--nav-icon-border:#d0ecef;}
html[data-admin-theme="clean"] ._side .nav a[href*="restricted-domains"],
html[data-admin-theme="clean"] ._side .nav a[href*="rate-limit"]{--nav-icon:#c36819;--nav-icon-bg:#fff4e8;--nav-icon-border:#f3dfc7;}
html[data-admin-theme="clean"] ._side .nav a[href*="antidebrid"]{--nav-icon:#5369bd;--nav-icon-bg:#eef1fc;--nav-icon-border:#dce2f7;}
html[data-admin-theme="clean"] ._side .nav a[href*="files/"]{--nav-icon:#2d6fc3;--nav-icon-bg:#edf5ff;--nav-icon-border:#d8e8fa;}
html[data-admin-theme="clean"] ._side .nav a[href*="topdls"],
html[data-admin-theme="clean"] ._side .nav a[href*="dl-history"]{--nav-icon:#078090;--nav-icon-bg:#e9f7f8;--nav-icon-border:#d2edef;}
html[data-admin-theme="clean"] ._side .nav a[href*="files/verify-locked"]{--nav-icon:#b77910;--nav-icon-bg:#fff7e6;--nav-icon-border:#f2e3bd;}
html[data-admin-theme="clean"] ._side .nav a[href*="dmca"]{--nav-icon:#bf4a43;--nav-icon-bg:#fff0ef;--nav-icon-border:#f3d7d4;}
html[data-admin-theme="clean"] ._side .nav a[href*="link-checker"]{--nav-icon:#3771c8;--nav-icon-bg:#edf4ff;--nav-icon-border:#d7e5fb;}
html[data-admin-theme="clean"] ._side .nav a[href*="payments"]{--nav-icon:#16835c;--nav-icon-bg:#eaf7f1;--nav-icon-border:#d2eddf;}
html[data-admin-theme="clean"] ._side .nav a[href*="live-cards"]{--nav-icon:#7453b8;--nav-icon-bg:#f2eefb;--nav-icon-border:#e1d8f4;}
html[data-admin-theme="clean"] ._side .nav a[href*="cashouts"]{--nav-icon:#087d87;--nav-icon-bg:#e8f6f7;--nav-icon-border:#d0eaec;}
html[data-admin-theme="clean"] ._side .nav a[href*="weekly-sales"]{--nav-icon:#315ec8;--nav-icon-bg:#edf3ff;--nav-icon-border:#dbe6fb;}
html[data-admin-theme="clean"] ._side .nav a[href*="weekly-sales/vip"]{--nav-icon:#b34b8c;--nav-icon-bg:#fbeef6;--nav-icon-border:#f0d8e7;}
html[data-admin-theme="clean"] ._side .nav a[href*="vouchers"]{--nav-icon:#b46b15;--nav-icon-bg:#fff4e6;--nav-icon-border:#f2dfc5;}
html[data-admin-theme="clean"] ._side .nav a[href*="sessions"]{--nav-icon:#4970a7;--nav-icon-bg:#eef3f9;--nav-icon-border:#dbe4ef;}
html[data-admin-theme="clean"] ._side .nav a[href*="resellers"]{--nav-icon:#6d58b7;--nav-icon-bg:#f1effb;--nav-icon-border:#ded9f2;}
html[data-admin-theme="clean"] ._side .nav a[href*="servers"]{--nav-icon:#456a8d;--nav-icon-bg:#edf3f7;--nav-icon-border:#d9e3eb;}
html[data-admin-theme="clean"] ._side .nav a[href*="settings"]{--nav-icon:#5e6878;--nav-icon-bg:#f0f2f5;--nav-icon-border:#dfe3e8;}
html[data-admin-theme="clean"] ._side .nav a[href*="appearance"]{--nav-icon:#a24783;--nav-icon-bg:#fbeff7;--nav-icon-border:#efd9e8;}
html[data-admin-theme="clean"] ._side .nav a[href*="signout"]{--nav-icon:#c2413a;--nav-icon-bg:#fff0ef;--nav-icon-border:#f4d6d3;}
html[data-admin-theme="clean"] ._side .nav a .ico{
    color:var(--nav-icon);
    background:var(--nav-icon-bg);
    border-color:var(--nav-icon-border);
}
html[data-admin-theme="clean"] ._side .nav a:hover{
    color:#20242b;
    background:#f6f8fc;
}
html[data-admin-theme="clean"] ._side .nav a:hover .ico,
html[data-admin-theme="clean"] ._side .nav a.on .ico{
    color:var(--nav-icon);
    background:var(--nav-icon-bg);
    border-color:var(--nav-icon-border);
    box-shadow:0 1px 2px rgba(32,33,36,.07);
}
html[data-admin-theme="clean"] ._side .nav a.on{
    color:#244caa;
    background:#eef3fc;
    box-shadow:inset 3px 0 0 #4f76d9;
}

/* Modern dialog system — elevated surface, custom controls, integrated actions. */
html[data-admin-theme="clean"] .dialogbox{
    background:rgba(22,29,43,.38);
    backdrop-filter:blur(9px) saturate(.9);
    -webkit-backdrop-filter:blur(9px) saturate(.9);
}
html[data-admin-theme="clean"] .dialogbox .msgbox{
    width:calc(100% - 32px);
    max-width:500px;
    border:0;
    border-radius:22px;
    box-shadow:0 30px 90px rgba(17,24,39,.28),0 8px 24px rgba(17,24,39,.12);
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head{
    min-height:68px;
    padding:22px 64px 18px 24px;
    background:linear-gradient(135deg,#fff 0%,#f7f9ff 100%);
    border-bottom:0;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .label{
    font-size:21px;
    line-height:1.25;
    letter-spacing:-.015em;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .cross{
    top:17px;
    right:17px;
    width:36px;
    height:36px;
    color:#697386;
    background:rgba(255,255,255,.74);
    border:1px solid rgba(216,223,234,.85);
    border-radius:50%;
    font-size:24px;
    box-shadow:0 1px 2px rgba(17,24,39,.04);
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .cross:hover{
    color:#1f2937;
    background:#fff;
    border-color:#cfd7e4;
    transform:rotate(4deg);
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content{
    max-height:calc(100vh - 168px);
    padding:8px 24px 24px;
    background:#fff;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content .data-form > h2:first-child{
    margin:0 0 22px;
    padding:12px 14px;
    color:#4b5565;
    background:#f4f7fc;
    border:1px solid #e8edf5;
    border-radius:12px;
    line-height:1.4;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content .data-form > h2:first-child .b{color:#20242b;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content .data-form > h2.b{
    margin-top:18px !important;
    margin-bottom:7px !important;
    color:#4b5565;
    font-size:12px;
    font-weight:700;
    letter-spacing:.055em;
    text-transform:uppercase;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content select.input{
    appearance:none;
    -webkit-appearance:none;
    min-height:50px;
    margin-bottom:8px !important;
    padding:0 48px 0 14px;
    color:#20242b;
    background-color:#f8faff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234b5565' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 15px center;
    background-size:18px 18px;
    border:1px solid #dce3ef;
    border-radius:12px;
    box-shadow:0 1px 2px rgba(17,24,39,.025);
    font-size:15px;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content select.input:hover{background-color:#f4f7fd;border-color:#cbd6e7;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content select.input:focus{
    background-color:#fff;
    border-color:#6f91e5;
    box-shadow:0 0 0 4px rgba(49,94,200,.12);
    outline:0;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer{
    min-height:0;
    padding:0 24px 24px;
    background:#fff;
    border-top:0;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns{gap:10px;}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .button{
    min-height:44px;
    padding:0 18px;
    border-radius:12px;
    font-size:15px;
    font-weight:700;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-close{
    color:#42506a;
    background:#f1f4f9;
    border-color:#f1f4f9;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-close:hover{
    color:#263551;
    background:#e8edf5;
    border-color:#e8edf5;
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-action{
    background:linear-gradient(135deg,#3869d8 0%,#2f5fc9 100%);
    border-color:#315ec8;
    box-shadow:0 7px 16px rgba(49,94,200,.24);
}
html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .msgbox-action:hover{
    background:linear-gradient(135deg,#315fc8 0%,#294fae 100%);
    box-shadow:0 8px 18px rgba(49,94,200,.28);
    transform:translateY(-1px);
}

@media only screen and (max-width:480px){
    html[data-admin-theme="clean"] .dialogbox .msgbox{width:calc(100% - 20px);border-radius:18px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head{min-height:60px;padding:19px 56px 15px 20px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .label{font-size:19px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-head .cross{top:13px;right:13px;width:34px;height:34px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content{max-height:calc(100vh - 148px);padding:6px 20px 20px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content .data-form > h2:first-child{margin-bottom:18px;padding:11px 12px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-content select.input{min-height:48px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer{padding:0 20px 20px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
    html[data-admin-theme="clean"] .dialogbox .msgbox .msgbox-footer .msgbox-footer-btns .button{width:100%;min-width:0;}
}

/* Weekly Sales state polish: separate the period label and present empty results intentionally. */
html[data-admin-theme="clean"] .weekly-detail .sales-overview:empty{
    display:none;
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .tlbl{
    margin-bottom:10px;
}
html[data-admin-theme="clean"] .weekly-detail .sales-overview .overview{
    border-radius:10px;
}
html[data-admin-theme="clean"] .weekly-detail > .sales-overview:empty + .error-404{
    flex-direction:column;
    gap:12px;
    width:auto;
    max-width:520px;
    min-height:0;
    margin:22px auto 0;
    padding:44px 28px;
    color:#667085;
    text-align:center;
    background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
    border:1px solid #dfe5ef;
    border-radius:14px;
    box-shadow:0 5px 18px rgba(20,35,60,.055);
}
html[data-admin-theme="clean"] .weekly-detail > .sales-overview:empty + .error-404 .line{
    display:none;
}
html[data-admin-theme="clean"] .weekly-detail > .sales-overview:empty + .error-404 h2:first-child{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    color:#315ec8;
    background:#edf3ff;
    border:1px solid #d9e5ff;
    border-radius:50%;
    font-size:14px;
    letter-spacing:-1px;
}
html[data-admin-theme="clean"] .weekly-detail > .sales-overview:empty + .error-404 h2:last-child{
    color:#4f5969;
    font-size:15px;
    line-height:1.45;
}

@media only screen and (max-width:480px){
    html[data-admin-theme="clean"] .weekly-detail .sales-overview .tlbl{margin-bottom:8px;}
    html[data-admin-theme="clean"] .weekly-detail > .sales-overview:empty + .error-404{
        max-width:none;
        margin:16px 0 0;
        padding:36px 18px;
    }
}

/* Final Servers alignment: one shared container for title, action and rows. */
html[data-admin-theme="clean"] body.admin-page-servers .app-content > .files > .section-title,
html[data-admin-theme="clean"] body.admin-page-servers .app-content > .files > .server-data,
html[data-admin-theme="clean"] body.admin-page-servers .app-content > .files > .__pagination{
    width:auto !important;
    max-width:1320px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
html[data-admin-theme="clean"] body.admin-page-servers .app-content > .files > .server-data{margin-bottom:32px !important;}

/* Anchor actions use the same optical centering as native buttons. */
html[data-admin-theme="clean"] body.admin-page-servers .add-new-server{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    line-height:1;
    white-space:nowrap;
}

/* Standalone Appearance page follows the same centered workspace rhythm. */
html[data-admin-theme="clean"] .admin-page-appearance .appearance-page > .section-title,
html[data-admin-theme="clean"] .admin-page-appearance .admin-appearance{
    width:auto;
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
}

/* Modern signed-out workspace. Authentication selectors and behavior are unchanged. */
html[data-admin-theme="clean"] body.admin-page-index,
html[data-admin-theme="clean"] body.admin-page-account{
    min-height:100vh;
    overflow:auto !important;
    background:#eef3fb;
}
html[data-admin-theme="clean"] body.admin-page-index > .header,
html[data-admin-theme="clean"] body.admin-page-account > .header{display:none !important;}
html[data-admin-theme="clean"] .account-section[section="login"]{min-height:100vh;}
html[data-admin-theme="clean"] .signin-page{
    display:grid;
    grid-template-columns:minmax(390px,.92fr) minmax(520px,1.08fr);
    width:100%;
    min-height:100vh;
    background:#f7f9fd;
}
html[data-admin-theme="clean"] .signin-showcase{
    display:flex;
    min-height:100vh;
    overflow:hidden;
    padding:58px clamp(42px,6vw,92px);
    color:#fff;
    background:radial-gradient(circle at 8% 5%,rgba(122,159,246,.42),transparent 31%),linear-gradient(145deg,#173b91 0%,#2858bd 55%,#315ec8 100%);
}
html[data-admin-theme="clean"] .signin-showcase:after{
    content:'';
    position:absolute;
    right:-140px;
    bottom:-190px;
    width:430px;
    height:430px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:50%;
    box-shadow:0 0 0 48px rgba(255,255,255,.035),0 0 0 96px rgba(255,255,255,.025);
}
html[data-admin-theme="clean"] .signin-showcase-content{
    z-index:2;
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:560px;
}
html[data-admin-theme="clean"] .signin-brand{gap:13px;color:#fff;font-size:24px;letter-spacing:-.03em;}
html[data-admin-theme="clean"] .signin-brand-mark{
    width:42px;
    height:25px;
    background:#fff;
    border-radius:22px;
    box-shadow:15px 3px 0 rgba(255,255,255,.38);
}
html[data-admin-theme="clean"] .signin-brand-mark:before{
    content:'';
    position:absolute;
    left:8px;
    top:-12px;
    width:29px;
    height:29px;
    background:#fff;
    border-radius:50%;
}
html[data-admin-theme="clean"] .signin-copy{margin:auto 0;}
html[data-admin-theme="clean"] .signin-kicker,
html[data-admin-theme="clean"] .signin-eyebrow{color:#a9c2ff;font-size:12px;line-height:1;letter-spacing:.14em;}
html[data-admin-theme="clean"] .signin-copy h1{
    max-width:560px;
    margin:20px 0 22px;
    color:#fff;
    font-size:clamp(40px,4vw,62px);
    line-height:1.06;
    letter-spacing:-.045em;
}
html[data-admin-theme="clean"] .signin-copy > p{max-width:470px;color:rgba(255,255,255,.74);font-size:17px;line-height:1.6;}
html[data-admin-theme="clean"] .signin-benefits{display:grid;gap:13px;}
html[data-admin-theme="clean"] .signin-benefit{gap:11px;color:rgba(255,255,255,.86);font-size:14px;}
html[data-admin-theme="clean"] .signin-benefit > span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 25px;
    width:25px;
    height:25px;
    color:#173b91;
    background:#fff;
    border-radius:50%;
    font-size:12px;
    font-weight:800;
}
html[data-admin-theme="clean"] .signin-orb{position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none;}
html[data-admin-theme="clean"] .signin-orb-one{top:18%;right:8%;width:11px;height:11px;background:#9cbbff;box-shadow:0 0 22px #9cbbff;}
html[data-admin-theme="clean"] .signin-orb-two{left:11%;bottom:18%;width:7px;height:7px;background:#fff;box-shadow:0 0 18px #fff;}
html[data-admin-theme="clean"] .signin-account{align-self:center;width:min(470px,calc(100% - 64px));margin:48px auto;}
html[data-admin-theme="clean"] .signin-card{
    padding:44px;
    background:#fff;
    border:1px solid #e1e7f0;
    border-radius:24px;
    box-shadow:0 24px 70px rgba(40,59,96,.12),0 3px 10px rgba(40,59,96,.05);
}
html[data-admin-theme="clean"] .signin-card .logo{height:auto;margin:0 0 38px;}
html[data-admin-theme="clean"] .signin-card .logo a{color:#315ec8;font-size:22px;}
html[data-admin-theme="clean"] .signin-card .logo .fav{box-shadow:0 0 0 6px rgba(49,94,200,.07);}
html[data-admin-theme="clean"] .signin-card .ahead{margin-bottom:30px;}
html[data-admin-theme="clean"] .signin-card .signin-eyebrow{margin-bottom:13px;color:#315ec8;}
html[data-admin-theme="clean"] .signin-card .ahead .slogan{margin:0 0 10px;color:#1e2634;font-size:30px;line-height:1.18;letter-spacing:-.035em;}
html[data-admin-theme="clean"] .signin-card .ahead .slogan2{color:#7a8494;font-size:15px;line-height:1.5;}
html[data-admin-theme="clean"] .signin-card .uform{gap:19px;}
html[data-admin-theme="clean"] .signin-field{gap:8px;color:#3f4856;font-size:14px;}
html[data-admin-theme="clean"] .signin-input-wrap{display:block;}
html[data-admin-theme="clean"] .signin-card .uform .input{
    width:100%;
    min-height:52px;
    margin:0;
    padding:0 16px 0 47px;
    color:#202733;
    background:#fbfcfe;
    border:1px solid #dbe2ec;
    border-radius:12px;
    font-size:15px;
    line-height:normal;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
html[data-admin-theme="clean"] .signin-card .uform .input::placeholder{color:#a2aab6;}
html[data-admin-theme="clean"] .signin-card .uform .input:focus{background:#fff;border-color:#6f91e5;box-shadow:0 0 0 4px rgba(49,94,200,.1);outline:0;}
html[data-admin-theme="clean"] .signin-field-icon{position:absolute;z-index:2;left:17px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:#7485a1;pointer-events:none;}
html[data-admin-theme="clean"] .signin-email-icon{border:1.8px solid currentColor;border-radius:4px;}
html[data-admin-theme="clean"] .signin-email-icon:after{content:'';position:absolute;left:2px;right:2px;top:2px;height:7px;border-bottom:1.8px solid currentColor;transform:skewY(-28deg) rotate(-1deg);}
html[data-admin-theme="clean"] .signin-lock-icon{top:54%;height:13px;border:1.8px solid currentColor;border-radius:4px;}
html[data-admin-theme="clean"] .signin-lock-icon:before{content:'';position:absolute;left:3px;top:-9px;width:7px;height:9px;border:1.8px solid currentColor;border-bottom:0;border-radius:8px 8px 0 0;}
html[data-admin-theme="clean"] .signin-card .uform .sin-mein{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:52px;
    margin:5px 0 0;
    padding:0 20px;
    line-height:1;
    background:linear-gradient(135deg,#3869d8 0%,#2f5fc9 100%);
    border-radius:12px;
    box-shadow:0 10px 22px rgba(49,94,200,.22);
}
html[data-admin-theme="clean"] .signin-card .uform .sin-mein:hover{background:linear-gradient(135deg,#315fc8 0%,#294fae 100%);transform:translateY(-1px);}
html[data-admin-theme="clean"] .signin-security{gap:9px;margin-top:24px;color:#7b8491;font-size:12px;line-height:1.4;}
html[data-admin-theme="clean"] .signin-security-icon{position:relative;flex:0 0 13px;width:13px;height:10px;border:1.5px solid #8ea0bc;border-radius:3px;}
html[data-admin-theme="clean"] .signin-security-icon:before{content:'';position:absolute;left:2px;top:-7px;width:6px;height:7px;border:1.5px solid #8ea0bc;border-bottom:0;border-radius:6px 6px 0 0;}

@media only screen and (max-width:900px){
    html[data-admin-theme="clean"] .signin-page{grid-template-columns:1fr;}
    html[data-admin-theme="clean"] .signin-showcase{display:none;}
    html[data-admin-theme="clean"] .signin-account{width:min(470px,calc(100% - 40px));margin:40px auto;}
}
@media only screen and (max-width:480px){
    html[data-admin-theme="clean"] .signin-page{min-height:100dvh;background:linear-gradient(180deg,#edf3ff 0,#f7f9fd 42%);}
    html[data-admin-theme="clean"] .signin-account{align-self:start;width:calc(100% - 28px);margin:24px auto;}
    html[data-admin-theme="clean"] .signin-card{padding:30px 22px 26px;border-radius:20px;box-shadow:0 16px 42px rgba(40,59,96,.11);}
    html[data-admin-theme="clean"] .signin-card .logo{margin-bottom:31px;}
    html[data-admin-theme="clean"] .signin-card .ahead{margin-bottom:25px;}
    html[data-admin-theme="clean"] .signin-card .ahead .slogan{font-size:27px;}
    html[data-admin-theme="clean"] .signin-card .uform{gap:17px;}
    html[data-admin-theme="clean"] .signin-card .uform .input,
    html[data-admin-theme="clean"] .signin-card .uform .sin-mein{min-height:50px;}
}

/* Mobile interaction audit: comfortable touch areas without changing actions or data. */
/* Users and Deleted Users: compact rows, readable IDs and aligned actions. */
html[data-admin-theme="clean"] .admin-page-users .users-data .data-table{min-width:1120px;}
html[data-admin-theme="clean"] .admin-page-users .users-data .data-row:not(.data-row-head){min-height:76px;align-items:center;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-id{flex:0 0 112px;max-width:112px;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-name{flex:1.45;min-width:240px;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-blnc{flex:0 0 110px;max-width:110px;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-fc{flex:0 0 150px;max-width:150px !important;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-bw{flex:0 0 125px;max-width:125px;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-stamp{flex:1.05;min-width:205px;max-width:none;}
html[data-admin-theme="clean"] .admin-page-users .users-data .col-action{flex:0 0 250px;max-width:250px;}
html[data-admin-theme="clean"] .admin-page-users .users-data .data-row:not(.data-row-head):hover{background:#f8faff !important;}
@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .admin-page-users .users-data .data-table{min-width:0;}
    html[data-admin-theme="clean"] .admin-page-users .users-data .data-row:not(.data-row-head){min-height:0;align-items:stretch;}
    html[data-admin-theme="clean"] .admin-page-users .users-data .data-row:not(.data-row-head) .data-col{width:auto;min-width:0;max-width:none !important;}
    html[data-admin-theme="clean"] .admin-page-users .users-data .col-stamp:before{content:'Last active / IP';}
}

/* Restricted Domains: aligned workspace, readable IDs and deliberate actions. */
.admin-page-restricted-domains .restricted-domains-summary{margin-top:5px;color:#7a818b;}
.admin-page-restricted-domains .restricted-domain-id-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    min-height:28px;
    padding:0 9px;
    color:#315ec8;
    background:#edf3ff;
    border:1px solid #d9e5ff;
    border-radius:8px;
    font-size:13px;
    line-height:1;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}
.admin-page-restricted-domains .restricted-domain-name{overflow-wrap:anywhere;}
.admin-page-restricted-domains .restricted-domain-actions{justify-content:flex-end;gap:7px;width:100%;}
.admin-page-restricted-domains .restricted-domain-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 11px;
    color:#315ec8;
    background:#fff;
    border:1px solid #d7dfec;
    border-radius:8px;
    font-size:12px;
    white-space:nowrap;
}
.admin-page-restricted-domains .restricted-domain-action:hover{background:#f5f8ff;border-color:#bfd0ee;}
.admin-page-restricted-domains .restricted-domain-action.danger{color:#bd2c25 !important;border-color:#f0c5c1;background:#fffafa;}
.admin-page-restricted-domains .restricted-domain-action.danger:hover{background:#fff0ef;border-color:#e9aaa5;}
html[data-admin-theme="clean"] body.admin-page-restricted-domains .app-content > .files > .section-title,
html[data-admin-theme="clean"] body.admin-page-restricted-domains .app-content > .files > .restricted-sites,
html[data-admin-theme="clean"] body.admin-page-restricted-domains .app-content > .files > .__pagination{
    width:auto !important;
    max-width:1320px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
html[data-admin-theme="clean"] body.admin-page-restricted-domains .add-new-r-site.from-new{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    line-height:1;
    white-space:nowrap;
}
@media only screen and (min-width:761px){
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites{overflow:hidden;}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-table{min-width:0;}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-row{
        display:grid;
        grid-template-columns:112px minmax(260px,1fr) 190px;
        align-items:center;
    }
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head){min-height:68px;}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-row .data-col{width:auto;max-width:none;}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .col-action{display:flex;justify-content:flex-end;}
}
@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] body.admin-page-restricted-domains .app-content > .files > .restricted-sites{
        margin:0 15px 18px !important;
    }
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head){grid-template-columns:92px minmax(0,1fr);}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .col-id:before{content:'Domain ID';}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .col-name{grid-column:auto !important;}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .col-action{grid-column:1/-1;}
    .admin-page-restricted-domains .restricted-domain-actions{justify-content:flex-start;flex-wrap:wrap;}
    .admin-page-restricted-domains .restricted-domain-action{flex:1 1 100px;}

    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites{margin:0 15px 18px;overflow:visible;}
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-table{min-width:0;}
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-row-head{display:none !important;}
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head){
        display:grid !important;
        grid-template-columns:92px minmax(0,1fr);
        align-items:stretch;
        min-height:0;
        margin-bottom:12px;
        overflow:hidden;
        background:#fff !important;
        border:1px solid #e1e5ec;
        border-radius:10px;
        box-shadow:0 2px 8px rgba(25,35,55,.08);
    }
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head) .data-col{
        display:block !important;
        width:auto;
        min-width:0;
        max-width:none !important;
        padding:11px 13px;
        border-right:0;
        border-bottom:1px solid #edf0f4;
    }
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head) .data-col:before{
        display:block;
        margin-bottom:6px;
        color:#818894;
        font-size:10px;
        font-weight:700;
        line-height:1;
        letter-spacing:.05em;
        text-transform:uppercase;
    }
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .col-id:before{content:'Domain ID';}
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .col-name:before{content:'Domain';}
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .col-action{grid-column:1/-1;border-bottom:0 !important;}
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .col-action:before{content:'Actions';}
}
@media only screen and (max-width:420px){
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head),
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head){grid-template-columns:1fr;}
    html[data-admin-theme="clean"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head) .data-col,
    html[data-admin-theme="classic"] .admin-page-restricted-domains .restricted-sites .data-row:not(.data-row-head) .data-col{grid-column:1/-1 !important;}
}

@media only screen and (max-width:760px){
    html[data-admin-theme="clean"] .dashboard-sales-toggle,
    html[data-admin-theme="clean"] .cashouts .cashout-acc-detail,
    html[data-admin-theme="clean"] .admin-page-antidebrid .users-data .col-fc a,
    html[data-admin-theme="clean"] .view-filesby-owner,
    html[data-admin-theme="clean"] .flink{
        display:inline-flex;
        align-items:center;
        min-height:36px;
    }
    html[data-admin-theme="clean"] .files .data-table .data-row .col-check ._select,
    html[data-admin-theme="clean"] .dmca .data-table .data-row .col-check ._select{
        width:32px;
        height:32px;
    }
}
