.login_page {
    min-width: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;

}

.main_login_logo {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.footer {
    flex: 0 0 auto;
}

.login_input input {
    font-size: 15px;
    border-radius: 50px;
    padding: 10px 10px 10px 40px;
}

.but_login {
    width: 290px;
    border-radius: 50px !important;
    padding: 10px;
    font-size: 15px;
}

.login_page .login-password-field{
    position: relative;
    width: 290px;
    max-width: 100%;
}

.login_page .login-password-field input.password{
    box-sizing: border-box;
    width: 100%;
    padding-right: 48px;
}

.login_page .login-password-toggle{
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.login_page .login-password-toggle:hover,
.login_page .login-password-toggle:focus-visible{
    background: #e8eef5;
    outline: 2px solid #64748b;
    outline-offset: -2px;
}

.swal2-container .swal2-popup.login-error-alert{
    display: flex !important;
    flex-direction: column;
    border: 3px solid #64748b;
}

.swal2-container .swal2-popup.login-error-alert > .swal2-icon{
    align-self: center;
    margin: 24px auto 12px;
    border-width: 5px;
}

:root{
    --jerp-theme-primary: #409eff;
    --jerp-theme-primary-active: #1a73e8;
    --jerp-theme-primary-bg: #ecf5ff;
    --jerp-theme-primary-bg-hover: #e8f0fe;
    --jerp-theme-primary-border: #b3d8ff;
    --jerp-theme-primary-border-strong: #a0cfff;
    --jerp-theme-success: #67c23a;
    --jerp-theme-success-active: #2f9e44;
    --jerp-theme-success-bg: #f0f9eb;
    --jerp-theme-success-bg-hover: #dcfae6;
    --jerp-theme-success-border: #b3e19d;
    --jerp-theme-warning: #e6a23c;
    --jerp-theme-warning-active: #b88217;
    --jerp-theme-warning-bg: #fdf6ec;
    --jerp-theme-warning-bg-hover: #fef0c7;
    --jerp-theme-warning-border: #f5dab1;
    --jerp-theme-danger: #f56c6c;
    --jerp-theme-danger-active: #d6394c;
    --jerp-theme-danger-bg: #fef0f0;
    --jerp-theme-danger-bg-hover: #fde2e2;
    --jerp-theme-danger-border: #fab6b6;
    --jerp-theme-info: #409eff;
    --jerp-theme-info-active: #026aa2;
    --jerp-theme-info-bg: #ecf5ff;
    --jerp-theme-info-bg-hover: #e0f2fe;
    --jerp-theme-info-border: #b3d8ff;
    --jerp-theme-secondary: #667085;
    --jerp-theme-secondary-active: #344054;
    --jerp-theme-secondary-bg: #f2f4f7;
    --jerp-theme-secondary-bg-hover: #eef2f6;
    --jerp-theme-secondary-border: #d0d5dd;
    --jerp-theme-light-text: #344054;
    --jerp-theme-light-bg: #ffffff;
    --jerp-theme-light-bg-hover: #f5f7fa;
    --jerp-theme-light-border: #dcdfe6;
    --jerp-theme-dark-text: #606266;
    --jerp-theme-dark-bg: #f4f4f5;
    --jerp-theme-dark-bg-hover: #e9ecef;
    --jerp-theme-dark-border: #d3d4d6;
    --jerp-theme-text-primary: #303133;
    --jerp-theme-text-body: #182230;
    --jerp-theme-text-secondary: #667085;
    --jerp-theme-text-muted: #98a2b3;
    --jerp-theme-border: #dcdfe6;
    --jerp-theme-border-light: #edf0f5;
    --jerp-theme-border-table: #ebeef5;
    --jerp-theme-bg: #f5f7fa;
    --jerp-theme-bg-soft: #f8fafc;
    --jerp-theme-bg-hover: #f5f8ff;
    --jerp-theme-bg-active: #eef4ff;
    --jerp-theme-card-bg: #ffffff;
    --jerp-theme-disabled-bg: #f5f7fa;
    --jerp-theme-disabled-text: #98a2b3;
    --jerp-theme-disabled-border: #dcdfe6;
    --jerp-theme-focus-shadow: rgba(64, 158, 255, 0.2);
    --jerp-theme-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --jerp-theme-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --jerp-theme-shadow-pop: 0 14px 30px rgba(16, 24, 40, 0.18);
    --bs-primary: var(--jerp-theme-primary);
    --bs-secondary: var(--jerp-theme-secondary);
    --bs-success: var(--jerp-theme-success);
    --bs-info: var(--jerp-theme-info);
    --bs-warning: var(--jerp-theme-warning);
    --bs-danger: var(--jerp-theme-danger);
    --bs-light: var(--jerp-theme-light-bg);
    --bs-dark: var(--jerp-theme-dark-text);
    --bs-body-color: var(--jerp-theme-text-body);
    --bs-body-bg: var(--jerp-theme-bg);
    --bs-border-color: var(--jerp-theme-border);
    --bs-primary-rgb: 64, 158, 255;
    --bs-secondary-rgb: 102, 112, 133;
    --bs-success-rgb: 103, 194, 58;
    --bs-info-rgb: 64, 158, 255;
    --bs-warning-rgb: 230, 162, 60;
    --bs-danger-rgb: 245, 108, 108;
    --bs-light-rgb: 255, 255, 255;
    --bs-dark-rgb: 96, 98, 102;
}

/* 全系統細捲軸 */
*{
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,.55) transparent;
}

*::-webkit-scrollbar{
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track{
    background: transparent;
}

*::-webkit-scrollbar-thumb{
    background: rgba(100,116,139,.55);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover{
    background-color: rgba(71,85,105,.78);
}

*::-webkit-scrollbar-corner{
    background: transparent;
}

body.dark-mode *{
    scrollbar-color: rgba(148,163,184,.65) transparent;
}

body.dark-mode *::-webkit-scrollbar-thumb{
    background-color: rgba(148,163,184,.65);
}

body.dark-mode *::-webkit-scrollbar-thumb:hover{
    background-color: rgba(203,213,225,.82);
}

.login_input input.password{
    background: url(../img/password_icon.jpg) no-repeat left 2% center;
}

.login_input input.user {
    background: url(../img/user_icon.jpg) no-repeat left 2% center;
}

body,
.index_page,
.main_mb_btn,
.notification-panel,
.user-info-menu,
.set_menu_panel,
#indexsellbox,
#indexsellbox .dashboard-card,
#indexsellbox .manual-link-item,
#indexsellbox .dashboard-report-btn{
    transition: background-color 0.22s ease-out, color 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out;
}


.s-left{
    background-color: #f9f9f9;
    border-radius: 5px;
}

body.dark-mode .s-left{
    background-color: var(--jerp-theme-card-bg);
}

.onsale-mgr-list-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.onsale-mgr-list-page .onsale-mgr-list-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.onsale-mgr-list-page #list_table {
    float: none;
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    table-layout: auto;
}

.onsale-mgr-list-page .main_pageselect {
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 20;
    margin-top: 10px;
    padding: 8px 15px;
    background: #fff;
    overflow: visible !important;
}

.onsale-mgr-list-page .main_pageselect .pagination {
    padding: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.main_mb_btn{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.main_mb_btn .user-info-dropdown{
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
    order: 4;
}

.notification-dropdown{
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
    order: 2;
}

.theme-toggle-row{
    display: inline-flex;
    align-items: flex-start;
    margin-top: 10px;
    order: 3;
}

.user-info-trigger{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-info-name{
    color: #222;
    line-height: 32px;
}

.user-info-btn{
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-out;
}

.notification-toggle{
    position: relative;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.theme-toggle{
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.22s ease-out, color 0.22s ease-out, transform 0.22s ease-out;
}

.user-info-dropdown.is-open .user-info-btn{
    background:rgb(5 113 252 / 10%);
    color: #1a73e8;
}

.theme-toggle:hover,
.notification-toggle:hover,
.user-info-btn:hover{
    background: #e2e2e2;
    color: #202124;
}

.theme-toggle.is-dark{
    background: rgba(250, 204, 21, 0.14);
    color: #facc15;
}

.notification-dropdown.is-open .notification-toggle{
    background: rgb(5 113 252 / 10%);
    color: #1a73e8;
}

.theme-toggle:focus,
.notification-toggle:focus,
.user-info-btn:focus{
    outline: none;
}

.theme-toggle i,
.notification-toggle i,
.user-info-btn i{
    font-size: 20px;
    transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

.theme-toggle:active i{
    transform: scale(0.9) rotate(-12deg);
}

.notification-badge{
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    width: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    border: 1px solid #fff;
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info-caret{
    display: inline-flex;
    align-items: center;
}

.notification-panel,
.user-info-menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    padding: 5px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 1300;
}

.notification-panel{
    width: min(360px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    z-index: 1400;
}

.notification-panel:before,
.user-info-menu:before{
    content: "";
    position: absolute;
    top: -8px;
    right: 0;
    width: 100%;
    height: 8px;
}

.notification-dropdown.is-open .notification-panel,
.user-info-dropdown.is-open .user-info-menu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.notification-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.notification-title{
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.notification-count{
    color: #8c8c8c;
    font-size: 12px;
    white-space: nowrap;
}

.notification-item{
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    color: #202124;
    text-decoration: none !important;
    transition: background-color 0.2s ease-out;
}

.notification-item:hover{
    background: #f7faff;
    color: #202124;
}

.notification-item + .notification-item{
    border-top: 1px solid #f5f5f5;
}

.notification-item-icon{
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.notification-item-icon-system{
    background: #e8f0fe;
    color: #1a73e8;
}

.notification-item-icon-warning{
    background: #fff7e6;
    color: #fa8c16;
}

.notification-item-icon-ai{
    background: #eafaf2;
    color: #13a86b;
}

.notification-item-body{
    min-width: 0;
    flex: 1 1 auto;
}

.notification-item-title{
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.notification-item-text{
    color: #5f6368;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 2px;
    white-space: normal;
}

.notification-item-time{
    color: #9aa0a6;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 5px;
}

.user-info-menu .login_box{
    display: block;
    position: static;
    width: 100%;
    padding: 4px 0;
    line-height: 30px;
    background: transparent;
    box-shadow: none;
    border: 0;
    font-size: 11pt;
    text-align: left;
}

.user-info-menu .login_box li,
.user-info-menu .mb_btn_body li{
    display: block;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.user-info-menu .login_box li:last-child,
.user-info-menu .mb_btn_body li:last-child{
    border-bottom: 0;
}

.user-info-menu .login_box li a,
.user-info-menu .mb_btn_body li a{
    display: block;
    padding: 6px 14px;
    color: #222;
    line-height: 24px;
    white-space: nowrap;
}

.user-info-menu .login_box li a:hover,
.user-info-menu .mb_btn_body li a:hover{
    background: #f5f5f5;
    color: #4169E1;
}

.user-info-menu .mb_btn_body{
    display: block;
    margin-top: 0;
    border-top: 1px solid #f0f0f0;
}

.user-info-menu .mb_btn_body li i{
    width: 18px;
    text-align: center;
}

.user-info-menu .mb_btn_body{
    max-height: calc(100vh - 190px);
    overflow-y: auto;
}

.user-info-menu-heading{
    display: flex;
    align-items: center;
}

.user-info-menu .user-info-menu-heading a{
    flex: 1;
}

.user-info-submenu-toggle{
    align-self: stretch;
    width: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.user-info-submenu-toggle:hover{
    background: rgba(65,105,225,0.1);
}

.user-info-menu .user-info-submenu{
    margin: 0;
    padding: 0 0 0 18px;
}

.user-info-menu .user-info-submenu[hidden]{
    display: none;
}

.login_info_set_menu_row{
    margin-top: 11px;
    order: 1;
}

.sheet-list-top-wrap{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.sheet-list-top-wrap > .col-lg-12{
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}


.main_menu{
    margin-top: -8px !important;
    margin-bottom: 8px;
}

.main_menu li.active a{
    color: #1a73e8;
}
.main_menu li a:hover{
    color:#026aa2;
}

.page-name{
    margin-right: auto;
    color: #202124;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.sheet-list-submenu-dropdown{
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.sheet-list-submenu-toggle{
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: #fff;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.22s ease-out, color 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out;
}

.sheet-list-submenu-toggle:hover{
    background: #f5f7fa;
    color: #202124;
    border-color: #c7d2e0;
}

.sheet-list-submenu-toggle:focus{
    outline: none;
}

.sheet-list-submenu-toggle.is-open{
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.28);
    background: #e8f0fe;
}

.sheet-list-top-wrap > div:not(.sheet-list-submenu-dropdown):not(.sheet-list-set-menu-row) > button{
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: #fff;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.22s ease-out, color 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out, transform 0.22s ease-out;
}

.sheet-list-top-wrap > div:not(.sheet-list-submenu-dropdown):not(.sheet-list-set-menu-row) > button:hover{
    background: #f5f7fa;
    color: #202124;
    border-color: #c7d2e0;
}

.sheet-list-top-wrap > div:not(.sheet-list-submenu-dropdown):not(.sheet-list-set-menu-row) > button:focus{
    outline: none;
}

.sheet-list-top-wrap > div:not(.sheet-list-submenu-dropdown):not(.sheet-list-set-menu-row) > button:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.sheet-list-top-wrap > div:not(.sheet-list-submenu-dropdown):not(.sheet-list-set-menu-row) > button:active{
    background: #e8f0fe;
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.28);
    transform: translateY(0);
}

.sheet-list-top-wrap > div:not(.sheet-list-submenu-dropdown):not(.sheet-list-set-menu-row) > button i{
    font-size: 14px;
}

.sheet-list-set-menu-row{
    display: flex;
    justify-content: flex-end;
}

.sheet-list-submenu-area{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 1300;
}

.sheet-list-submenu-area:before{
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

.sheet-list-submenu-area.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sheet-list-submenu-area .main_menu{
    display: block;
    width: 260px;
    padding: 5px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    border: 0;
    margin-top: 0;
    margin-left: 0;
    font-size: 11pt;
    font-weight: 400;
    padding-left: 5px;
}

.sheet-list-submenu-area .main_menu .float-left{
    float: none !important;
    width: 100%;
    padding: 6px 14px 8px;
    display: none;
}

.sheet-list-submenu-area .main_menu .badge{
    padding: 0;
    background: transparent !important;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.sheet-list-submenu-area .main_menu ul{
    clear: both;
    margin: 0;
    padding: 0;
}

.sheet-list-submenu-area .main_menu li{
    display: block;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.sheet-list-submenu-area .main_menu li:last-child{
    border-bottom: 0;
}

.sheet-list-submenu-area .main_menu li::before{
    content: none;
}

.sheet-list-submenu-area .main_menu li a{
    display: block;
    padding: 6px 14px;
    color: #222;
    line-height: 24px;
    white-space: nowrap;
    font-size: 11pt;
}

.sheet-list-submenu-area .main_menu li a:hover{
    background: #f5f5f5;
    color: #4169E1;
}

.sheet-list-submenu-area .main_menu li.active a{
    background: #eef3fd;
    color: #1a73e8;
    font-weight: 700;
}

.sheet-list-submenu-content{
    flex: 0 0 98%;
    margin: -8px auto 10px auto;
    padding: 0;
    width: 98%;
}

.sheet-list-submenu-content .main_menu{
    width: 100%;
    margin: 0 !important;
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sheet-list-submenu-content .main_menu::-webkit-scrollbar{
    height: 6px;
}

.sheet-list-submenu-content .main_menu::-webkit-scrollbar-track{
    margin: 0 8px 3px;
    background: transparent;
}

.sheet-list-submenu-content .main_menu::-webkit-scrollbar-thumb{
    background: rgba(100, 116, 139, 0.55);
    border: 1px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.sheet-list-submenu-content .main_menu::-webkit-scrollbar-corner{
    background: transparent;
}

.sheet-list-submenu-content .main_menu .float-left{
    display: none;
}

.sheet-list-submenu-content .main_menu ul{
    display: flex;
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sheet-list-submenu-content .main_menu li{
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.sheet-list-submenu-content .main_menu li::before{
    content: none;
}

.sheet-list-submenu-content .main_menu li a{
    display: block;
    padding: 10px 10px 14px 10px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
    position: relative;
}

.sheet-list-submenu-content .main_menu li a:hover{
    color: #1677ff;
    text-decoration: none;
}

.sheet-list-submenu-content .main_menu li.active a{
    color: #1677ff;
    font-weight: 700;
}

.sheet-list-submenu-content .main_menu li.active a::before{
    position: absolute;
    content: '';
    width: 90%;
    height: 2px;
    background-color: #1677ff;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}


body.sheet-list-page{
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

/* .onsale-return-edit-dialog  .sheet-list-page{
    overflow: unset !important;
} */

body.sheet-list-page > .index_page{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.sheet-list-page > .footer{
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.sheet-list-page .sheet-list-top-wrap,
.sheet-list-page .main_system_list > .row,
.sheet-list-page .list_btn{
    flex: 0 0 auto;
}

body.sheet-list-page .sheet-list-tools-toggle.is-open{
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.28);
    background: #e8f0fe;
}

.sheet-list-page .main_system_list{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sheet-list-page .main_system_list > div:not(.row),
.sheet-list-page .main_system_list > div:not(.row) > div{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.sheet-list-page .list_btn{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-width: 0;
    box-shadow: none;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.24s ease, margin-bottom 0.24s ease, padding-top 0.24s ease, padding-bottom 0.24s ease, border-width 0.24s ease, box-shadow 0.24s ease;
}

body.sheet-list-page .list_btn.is-open{
    max-height: 960px;
    opacity: 1;
    padding-top: 16px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-width: 1px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    pointer-events: auto;
    transform: translateY(0);
    overflow: visible;
}

body.sheet-list-page #sheet-list-tools-panel:not(.is-open){
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden;
    pointer-events: none !important;
}

body.sheet-list-page:has(#list_table input[type="checkbox"]:checked) #sheet-list-tools-panel{
    height: auto !important;
    min-height: 0 !important;
    max-height: 960px !important;
    padding-top: 16px !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
    border-width: 1px !important;
    opacity: 1 !important;
    overflow: visible !important;
    visibility: visible;
    pointer-events: auto !important;
    transform: translateY(0);
}

body.sheet-list-page .sheet-list-tools-close{
    position: static;
    margin-left: auto;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #f5f7fa;
    color: #606266;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: none;
}

body.sheet-list-page .sheet-list-tools-close:hover{
    background: #e8f0fe;
    color: #1a73e8;
}

body.sheet-list-page .sheet-list-tools-close:focus{
    outline: none;
}

body.sheet-list-page .sheet-list-tools-close:focus-visible{
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

body.sheet-list-page .sheet-list-tools-close:active{
    transform: scale(0.96);
}

body.sheet-list-page .list_btn > .edit_btn{
    order: 1;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search{
    order: 2;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

body.sheet-list-page .sheet-list-tools-close{
    order: 1;
}

body.sheet-list-page .sheet-list-tools-panel > .operation-btn{
    order: 3;
    flex: 0 0 auto;
    width: auto;
}

body.sheet-list-page .list_btn > :not(.edit_btn):not(.edit_menu):not(.sheet-list-tools-close):not(.sheet-list-column-reset):not(.operation-btn):not(#calendar_search){
    flex: 0 0 100%;
    width: 100%;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline{
    float: none;
    width: 100%;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline form{
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 0;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .serach_input{
    flex: 1 1 180px;
    width: auto !important;
    min-width: 120px;
    margin-left: 0 !important;
    max-width: none;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .list_search_option{
    flex: 0 1 160px;
    width: 160px;
    min-width: 100px;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .btn{
    flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 1599.98px){
    body.sheet-list-page .sheet-list-tools-panel > .operation-btn{
        order: 2;
    }


    body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .serach_input{
        flex-basis: 180px;
        min-width: 0;
    }
}

body.sheet-list-page .sheet-list-tools-panel.voucher-item-tools-panel,
body.sheet-list-page .sheet-list-tools-panel.purchase-tools-panel,
body.sheet-list-page .sheet-list-tools-panel.shelves-tools-panel,
body.sheet-list-page .sheet-list-tools-panel.scrap-tools-panel{
    flex-direction: row;
}

body.sheet-list-page .sheet-list-tools-panel.voucher-item-tools-panel > .edit_btn,
body.sheet-list-page .sheet-list-tools-panel.purchase-tools-panel > .edit_btn,
body.sheet-list-page .sheet-list-tools-panel.shelves-tools-panel > .edit_btn,
body.sheet-list-page .sheet-list-tools-panel.scrap-tools-panel > .edit_btn{
    order: 1;
}

body.sheet-list-page .sheet-list-tools-panel.voucher-item-tools-panel > #calendar_search,
body.sheet-list-page .sheet-list-tools-panel.purchase-tools-panel > #calendar_search,
body.sheet-list-page .sheet-list-tools-panel.shelves-tools-panel > #calendar_search,
body.sheet-list-page .sheet-list-tools-panel.scrap-tools-panel > #calendar_search{
    order: 2;
    flex: 1 1 320px;
    width: auto;
    min-width: 0;
}

body.sheet-list-page .sheet-list-tools-panel.purchase-tools-panel:has([data-target="#pre_purchaseMgrsearchModal"]) > #calendar_search > .form-inline .serach_input{
    flex: 1 1 120px;
    min-width: 120px;
    margin-left: 0 !important;
}

body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .serach_input,
body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .search_select,
body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .search_select_style{
    margin-right: 0;
}

.operation-btn,
body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .btn.search_btn,
body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline .btn.reflash_btn{
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(31, 35, 41, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}






.sheet-list-page .main_content{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.24s ease;
}

.sheet-list-page #main_content.new-wrap{
    max-height: none;
    margin-top: 0;
    margin-bottom: 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    color: inherit;
}

.sheet-list-page .main_content.main-content-layout{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    transition: none;
}

.sheet-list-page .main-content-left,
.sheet-list-page .main-content-right{
    min-width: 0;
    min-height: 0;
}

.sheet-list-page .main-content-left{
    flex: 0 0 70%;
    width: 70%;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-right: 0;
    padding-bottom: 12px;
    transition: flex-basis .28s cubic-bezier(.22,1,.36,1), width .28s cubic-bezier(.22,1,.36,1), max-width .28s cubic-bezier(.22,1,.36,1);
}

.sheet-list-page .main-content-right{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    flex: none;
    width: 30%;
    min-width: 0;
    max-width: 30%;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition: opacity .22s ease,transform .28s cubic-bezier(.22,1,.36,1);
    will-change: transform, opacity;
    contain: layout paint;
}

.sheet-list-page .main-content-right .purchase-chat-pane{
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    opacity: 1;
    transform: translateX(0);
    transition: opacity .24s ease,transform .32s cubic-bezier(.22,1,.36,1);
    will-change: transform, opacity;
}

.sheet-list-page .sheet-list-ai-toggle{
    transition: background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease;
}

.sheet-list-page .sheet-list-ai-toggle.is-open{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
}

.sheet-list-page .main-content-layout.is-ai-collapsed .main-content-left{
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
}

.sheet-list-page .main-content-layout.is-ai-collapsed .main-content-right{
    opacity: 0;
    transform: translateX(104%);
    pointer-events: none;
}

.sheet-list-page .main-content-layout.is-ai-collapsed .purchase-chat-pane{
    min-width: 0;
    opacity: 0;
    transform: translate3d(28px,0,0);
}

.sheet-list-page .main-content-layout.is-ai-collapsed .purchase-ai-title,
.sheet-list-page .main-content-layout.is-ai-collapsed .purchase-ai-status,
.sheet-list-page .main-content-layout.is-ai-collapsed .purchase-chat-messages,
.sheet-list-page .main-content-layout.is-ai-collapsed .purchase-chat-input{
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
}

.sheet-list-page .main-content-layout.is-ai-collapsed{
    gap: 0;
}

.sheet-list-page .main_content > div:first-child{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sheet-list-page #main_content_left.main-content-left{
    display: flex;
    flex: 0 1 70%;
    flex-direction: column;
    overflow: hidden;
}

.sheet-list-page #main_content_left.main-content-left > div:first-child{
    min-height: 0;
}

.sheet-list-page .main_content .table-responsive-md,
.sheet-list-page .main_content .scrollbar-table-group,
.sheet-list-page .main_content .new_system_table_wrap{
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.sheet-list-page .main_content .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sheet-list-page #main_content_left .sheet-list-scroll-host{
    display: block;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.sheet-list-page #main_content_left .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    padding-bottom: 8px;
    position: relative;
    z-index: 30;
}

@media (max-width: 1199.98px){
    .sheet-list-page .main_content.main-content-layout{
        flex-direction: column;
        overflow: hidden;
    }

    .sheet-list-page .main-content-left,
    .sheet-list-page .main-content-layout.is-ai-collapsed .main-content-left{
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .sheet-list-page .main-content-left{
        min-height: 420px;
    }

    .sheet-list-page .main-content-right{
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 100%;
        overflow: hidden;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .sheet-list-page .new-wrap .purchase-chat-pane,
    .sheet-list-page .new-wrap .purchase-copilot-layout.is-ai-open .purchase-chat-pane{
        position: relative;
        inset: auto;
        z-index: auto;
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 0;
        background: transparent;
        transform: none;
    }

    .sheet-list-page .new-wrap .purchase-ai-backdrop,
    .sheet-list-page .new-wrap .purchase-mobile-ai-launch{
        display: none !important;
    }

    .sheet-list-page .main-content-layout.is-ai-collapsed .main-content-right{
        height: 100%;
        min-height: 0;
        transform: translateX(104%);
    }

    .sheet-list-page .main-content-layout.is-ai-collapsed .purchase-chat-pane{
        min-width: 0;
    }
}

@media (max-width: 575.98px){
    .sheet-list-page .main-content-left{
        min-height: 360px;
    }

    .sheet-list-page .main-content-right{
        height: min(480px, 72vh);
    }
}

.scrollbar-table-group > table{
    display: table !important;
}

.sheet-list-page :is(#list_table,[data-jerp-list-table]){
    margin-bottom: 0;
    margin-top: 0;
}



.sheet-list-page :is(#list_table,[data-jerp-list-table]) thead th{
    position: sticky;
    top: 0;
    z-index: 2;
}

.main_pageselect{
    min-height: 54px;
    position: relative;
    z-index: 30;
    overflow: visible !important;
}

.sheet-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
}

.main_pageselect .pagination{
    box-sizing: border-box;
}

body.sheet-list-page .main_pageselect .pagination > li.active > a,
body.sheet-list-page .main_pageselect .pagination > li.active > a:hover,
body.sheet-list-page .main_pageselect .pagination > li.active > a:focus{
    display: inline-block;
    color: #ffffff !important;
    background: var(--jerp-theme-primary-active);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

body.sheet-list-page.dark-mode .main_pageselect .pagination > li.active > a{
    color: #0b1220 !important;
}

.set_menu_launcher{
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-top: 1px;
}

.set_menu_dropdown{
    position: relative;
    display: inline-flex;
    align-items: flex-start;
}

.set_menu_dropdown::after{
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px;
}

.set_menu_toggle{
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: #fff;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.22s ease-out, color 0.22s ease-out, border-color 0.22s ease-out, box-shadow 0.22s ease-out;
}

.set_menu_toggle:hover{
    background: #f5f7fa;
    color: #202124;
    border-color: #c7d2e0;
}

.set_menu_toggle:focus{
    outline: none;

}

.set_menu_toggle.is-active{
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.28);
    background: #e8f0fe;
}

.set_menu_toggle i{
    font-size: inherit;
}


.swal2-modal.swal2-return-edit-modal,
.swal2-popup.swal2-return-edit-modal{
    width: 1250px !important;
}
.swal2-html-container,.swal2-title{
    padding: 15px;
}

.swal2-popup .swal2-title{
    background: var(--jerp-theme-bg) !important;
    color: var(--jerp-theme-text-primary);
}

.swal2-popup.type-success .swal2-title,
.swal2-popup.jerp-swal-theme-success .swal2-title{
    background: var(--jerp-theme-success-bg) !important;
}

.swal2-popup.type-warning .swal2-title,
.swal2-popup.jerp-swal-theme-warning .swal2-title{
    background: var(--jerp-theme-warning-bg) !important;
}

.swal2-popup.type-danger .swal2-title,
.swal2-popup.jerp-swal-theme-danger .swal2-title{
    background: var(--jerp-theme-danger-bg) !important;
}

.swal2-popup.type-info .swal2-title,
.swal2-popup.type-primary .swal2-title,
.swal2-popup.type-default .swal2-title,
.swal2-popup.jerp-swal-theme-info .swal2-title,
.swal2-popup.jerp-swal-theme-primary .swal2-title{
    background: var(--jerp-theme-primary-bg) !important;
}

.swal2-popup.type-secondary .swal2-title,
.swal2-popup.jerp-swal-theme-secondary .swal2-title{
    background: var(--jerp-theme-secondary-bg) !important;
}

.swal2-popup.type-light .swal2-title,
.swal2-popup.jerp-swal-theme-light .swal2-title{
    background: var(--jerp-theme-light-bg) !important;
}

.swal2-popup.type-dark .swal2-title,
.swal2-popup.jerp-swal-theme-dark .swal2-title{
    background: var(--jerp-theme-dark-bg) !important;
}

.swal2-popup{
    padding:0;
    border: 1px solid #485069;
    box-shadow: rgb(145 145 145 / 68%) 0px 7px 29px 0px;
}

.swal2-html-container{
    font-size: 16px;
    text-align: left !important;
    width: 100%;
}


body.dark-mode .swal2-container.swal2-backdrop-show{
    background: rgb(2 6 23 / 42%) !important;
    backdrop-filter: blur(10px);
}

body.dark-mode .swal2-popup .swal2-title,
body.dark-mode .swal2-html-container{
    background: var(--jerp-theme-dark-bg) !important;
    color: var(--jerp-theme-text-primary) !important;
}

body.dark-mode .swal2-html-container .mstable{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode .mspageform{
    background-color: var(--jerp-theme-dark-bg) !important;
    color: var(--jerp-theme-text-primary);
    border-color: var(--jerp-theme-border) !important;
}

body.dark-mode .swal2-html-container .is-loading{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode .swal2-modal.swal2-return-edit-modal .is-loading,
body.dark-mode .swal2-popup.swal2-return-edit-modal .is-loading{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode .custom-file-label{
    background-color: var(--jerp-theme-dark-bg) !important;
    color: var(--jerp-theme-text-primary) !important;
    border-color: var(--jerp-theme-dark-border) !important;
}

body.dark-mode .custom-file-label::after{
    background: var(--jerp-theme-success-bg) !important;
    color: var(--jerp-theme-success) !important;
    border-left: 1px solid var(--jerp-theme-success-border) !important;
}

.swal2-close{
    box-shadow: unset !important;
}

body.dark-mode .swal2-close{
    color: var(--jerp-theme-text-primary) !important;
}


.swal2-bootstrap-dialog-actions{
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 1em 0;
    margin: unset;
}

body.dark-mode .swal2-bootstrap-dialog-actions{
    background: var(--jerp-theme-dark-bg) !important;
    color: var(--jerp-theme-text-primary) !important;
}

.fg-1{
    flex-grow: 1;
}

.d-flex{
    flex-wrap: wrap;
}

.aic{
    align-items: center;
}

.m-15{
 margin-left: -15px;
 margin-right: -15px;
}



.swal2-actions button{
    border-radius: 5px;
}


body.dark-mode .swal2-actions button{
    border: 1px solid;
}



.set_menu_panel{
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 140px));
    overflow-y: auto;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1200;
}

.set_menu_dropdown.is-open .set_menu_panel,
.set_menu_dropdown:hover .set_menu_panel{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.set_menu_panel .set_menu{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 12px;
    margin: 0;
}

.set_menu_link{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 108px;
    padding: 16px 10px 14px;
    border-radius: 18px;
    text-decoration: none !important;
    background: transparent;
    transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.set_menu_link:hover{
    background: #f7faff;
    box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.1);
    transform: translateY(-1px);
}

.set_menu_link.active{
    background: #e8f0fe;
    box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.16);
}

.set_menu_link:focus{
    outline: none;
    background: #eef3fd;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.16);
}

.set_menu_visual{
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.set_menu_visual i{
    font-size: 22px;
    color: #5f6368;
}

.set_menu_visual img{
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.set_menu_label{
    color: #202124;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

#indexsellbox{
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    min-height: 600px;
}

#indexsellbox .dashboard-layout{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
}

#indexsellbox .dashboard-column{
    padding-right: 10px;
    padding-left: 10px;
}

#indexsellbox .dashboard-left-col,
#indexsellbox .dashboard-right-col{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#indexsellbox .dashboard-card{
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

#indexsellbox .dashboard-card-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f2f5;
}

#indexsellbox .dashboard-card-title{
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

#indexsellbox .invoice-info-card .dashboard-card-header{
    flex-wrap: wrap;
}

#indexsellbox .invoice-info-card .dashboard-card-header > :first-child{
    flex: 1 0 auto;
    max-width: 100%;
}

#indexsellbox .invoice-info-card .dashboard-card-header > .btn-group{
    flex: 0 0 auto;
    max-width: 100%;
    flex-wrap: wrap;
}

#indexsellbox .invoice-info-card .dashboard-card-header > .btn-group .btn{
    white-space: nowrap;
}

#indexsellbox .dashboard-card-subtitle{
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
}

#indexsellbox .dashboard-card-body{
    padding: 18px;
}

#indexsellbox .dashboard-hidden-download-title{
    padding: 5px;
}

#indexsellbox .invoice-status-row{
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

#indexsellbox .invoice-info-card .invoice-store-field{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    width: 100%;
    min-width: 0;
}

#indexsellbox .invoice-info-card .invoice-store-field label{
    flex: 0 0 auto;
    margin: 0;
}

#indexsellbox .invoice-info-card .invoice-store-field .storeid{
    flex: 1 1 180px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
}

#indexsellbox .indexsellbox_list{
    margin-top:10px;
    margin-bottom:10px;
}

#indexsellbox .indexsellbox_list span{
    font-size:12pt;
    font-weight:bold;
}

#indexsellbox .manual-link-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#indexsellbox .manual-link-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    line-height: 1.35;
    transition: background-color 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out, transform 0.18s ease-out;
}

#indexsellbox .manual-link-item:hover{
    color: #1a73e8;
    background: #f0f6ff;
    border-color: rgba(26, 115, 232, 0.22);
    transform: translateY(-1px);
}

#indexsellbox .report-dashboard-card .nav-tabs{
    border-bottom-color: #edf0f5;
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#indexsellbox .report-dashboard-card .nav-tabs > .nav-item{
    flex: 1 0 auto;
    float: none;
}

#indexsellbox .report-dashboard-card .nav-tabs .nav-link{
    white-space: nowrap;
    text-align: center;
    padding-right: 10px;
    padding-left: 10px;
}

#indexsellbox .report-dashboard-card .tab-content .row{
    margin-right: -8px;
    margin-left: -8px;
}

#indexsellbox .report-dashboard-card .tab-content [class*="col-"]{
    padding-right: 8px;
    padding-left: 8px;
}

#indexsellbox .dashboard-report-btn{
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    padding: 7px 10px;
    font-size: 16px;
    line-height: 21px;
    overflow: hidden;
    overflow-wrap: anywhere;
    border-color: #edf0f5;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    background: #fff;
    transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.18s ease-out;
}

#indexsellbox .dashboard-report-btn:hover{
    border-color: rgba(26, 115, 232, 0.32) !important;
    box-shadow: 0 8px 10px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-1px);
    color: #1a73e8 !important;
    background-color: #f0f6ff !important;
}

#indexsellbox .sales-donut-body{
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#indexsellbox .sales-donut-body .chart2{
    width: 100%;
    min-height: 280px;
    text-align: center;
}

#indexsellbox .sales-donut-card .btn{
    white-space: nowrap;
}


.edit_menu{
    display: none;
}

body.sheet-list-page .edit_btn{
    position: unset;
    width: 100%;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.2;
    opacity: 1;
}

body.sheet-list-page .edit_btn ul{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.sheet-list-tools-panel .list_date{
    display: none;
}

.sheet-list-tools-panel .purchase-ai-mode-btn{
    display: none !important;
}

body.sheet-list-page .edit_btn li{
    list-style: none;
    border: 0;
    background: transparent;
    text-align: left;
}

body.sheet-list-page .edit_btn li a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.sheet-list-page .edit_btn li a br{
    display: none;
}

body.sheet-list-page .edit_btn li a i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    font-size: 15px;
    line-height: 1;
}


@media (max-width: 992px){
    .page-name{
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
        font-size: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-name i,
    .page-name-submenu{
        display: none;
    }

    .pagination{
        flex-wrap: wrap;
        font-size: 14px;
    }

    .pagination li:first-child{
        flex: 0 0 100%;
        text-align: left;
    }

    .pagination a{
        font-size: 14px;
    }

}


@media (max-width: 767.98px){
    body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline,
    body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline form{
        flex-wrap: wrap;
    }

    body.sheet-list-page .list_btn{
        gap: 10px;
    }

    body.sheet-list-page .list_btn > .edit_btn{
        flex-basis: 100%;
        width: 100%;
    }

    body.sheet-list-page .sheet-list-tools-panel > #calendar_search{
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        min-width: 0;
    }

    body.sheet-list-page .list_btn > .edit_btn{
        order: 2;
    }

    body.sheet-list-page .sheet-list-tools-close{
        order: 1;
    }

    body.sheet-list-page .sheet-list-tools-close{
        margin-left: 0;
    }

    body.sheet-list-page .edit_btn ul{
        gap: 10px;
    }

    body.sheet-list-page .edit_btn li{
        flex: 1 1 calc(50% - 10px);
        min-width: 132px;
    }

    body.sheet-list-page .edit_btn li a{
        width: 100%;
        padding: 10px 10px;
    }

    body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline,
    body.sheet-list-page .sheet-list-tools-panel > #calendar_search > .form-inline form{
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 699.98px){
    .sheet-list-top-wrap{
        margin-top: 10px;
        position: relative;
        flex-wrap: wrap;
    }


    :is(#list_table,[data-jerp-list-table]) thead th{
        font-size: 15px !important;
    }

    body.sheet-list-page .set_menu_panel .set_menu{
        grid-template-columns: repeat(3, minmax(80px, 1fr));
        gap: 8px;
    }

    .set_menu_link{
        min-height: 88px;
        gap: 6px;
        padding: 10px 6px;
    }

    .sheet-list-set-menu-row{
        position: static;
        flex: 0 0 auto;
        width: auto;
    }

    .set_menu_launcher{
        position: static;
        width: auto;
    }

    .set_menu_dropdown{
        position: static;
    }

    body.sheet-list-page .set_menu_panel{
        top: 44px;
        right: 0;
        left: auto;
        width: min(360px, 100%);
        box-sizing: border-box;
    }

    .login_info_set_menu_row,
    .main_mb_btn{
        flex: 0 0 auto;
        margin-top: 0;
    }

    .main_mb_btn{
        flex-wrap: nowrap;
        gap: 6px;
    }

    body.sheet-list-page .sheet-list-tools-toggle,
    body.sheet-list-page .set_menu_toggle{
        font-size: 0 !important;
    }

    body.sheet-list-page .sheet-list-tools-toggle i,
    body.sheet-list-page .set_menu_toggle i{
        font-size: 14px !important;
    }

    body.sheet-list-page .set_menu_toggle i{
        margin-right: 0 !important;
    }
}

@media (max-width: 479.98px){
    body.sheet-list-page .edit_btn li{
        flex-basis: 100%;
        min-width: 0;
    }
}

.main_content,.list_btn{
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 16px 16px 12px;
    margin: 0 0 16px;
}

:is(#list_table,[data-jerp-list-table]){
    background-color: #fff;
    float: unset;
}

:is(#list_table,[data-jerp-list-table]) thead th{
    background: #f5f7fa;
    color: #303133;
    font-weight: 700;
    font-size: 16px;
    height: 48px;
    padding: 10px;
    line-height: 1.35;
    vertical-align: middle;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    white-space: nowrap;
}

:is(#list_table,[data-jerp-list-table]) thead th:last-child{
    border-right: 0;
}

:is(#list_table,[data-jerp-list-table]) thead th,
:is(#list_table,[data-jerp-list-table]) thead th a{
    color: #303133;
}

:is(#list_table,[data-jerp-list-table]) thead th a:hover{
    color: #1a73e8;
}

.def-scroll-list-table-wrap{
    position: relative;
    background: #ffffff;
    border: 1px solid #d9dde7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 0;
    overflow: auto;
}

.def-scroll-list-table-wrap .def-scroll-list-table{
    width: 100%;
    min-width: 920px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    color: #182230;
    font-size: 13px;
    line-height: 1.45;
}

.def-scroll-list-table-wrap .def-scroll-list-table thead th{
    position: sticky;
    top: 0;
    z-index: 5;
    height: 42px;
    padding: 8px 12px;
    color: #344054;
    background: #f8f9fb !important;
    border-right: 1px solid #e4e7ec;
    border-bottom: 1px solid #d9dde7;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}



.def-scroll-list-table-wrap .def-scroll-list-table thead th:last-child{

    border-right: 0;
}

.def-scroll-list-table-wrap .def-scroll-list-table tbody td{
    height: 42px;

    color: #182230;
    border-bottom: 1px solid #eaecf0;
    background: #ffffff;
    font-size: 15px;
    vertical-align: middle;
}

.def-scroll-list-table-wrap .def-scroll-list-table tbody td:last-child{
    border-right: 0;
}

.def-scroll-list-table-wrap .def-scroll-list-table tbody tr:hover td{
    background: #f5f8ff;
}

.def-scroll-list-table-wrap .def-scroll-list-table tbody tr.table-active td,
.def-scroll-list-table-wrap .def-scroll-list-table tbody tr.info td,
.def-scroll-list-table-wrap .def-scroll-list-table tbody tr.mainlist_active td{
    background: #eef4ff;
}

.def-scroll-list-table-wrap .def-scroll-list-table .btn{
    min-width: 40px;
    min-height: 36px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 13px;
}

.def-scroll-list-table-wrap .def-scroll-action-col,
.def-scroll-list-table-wrap .def-scroll-action-cell,
.store-shelves-list-table-wrap .def-scroll-action-col,
.store-shelves-list-table-wrap .def-scroll-action-cell{
    width: 92px;
    min-width: 92px;
}



.def-scroll-list-table-wrap .def-scroll-action-stack,
.store-shelves-list-table-wrap .def-scroll-action-stack{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.def-scroll-list-table-wrap .def-scroll-action-stack .btn,
.store-shelves-list-table-wrap .def-scroll-action-stack .btn{
    min-height: 36px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}








body.sheet-list-page #main_content_left .def-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .def-list-page .def-list-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .def-list-page .def-list-table-wrap.sheet-list-scroll-host{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .def-list-page .sheet-list-table-scroll{
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .def-list-page .def-list-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

body.sheet-list-page #main_content_left .def-list-page .sheet-list-table-scroll > #list_table,
body.sheet-list-page #main_content_left .def-list-page .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

body.sheet-list-page #main_content_left .def-list-page .def-list-table-wrap > #list_table,
body.sheet-list-page #main_content_left .def-list-page .def-list-table-wrap > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

body.sheet-list-page #main_content_left .def-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

body.sheet-list-page #main_content_left .def-list-page > div:first-child{
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page .main_content .def-list-page,
body.sheet-list-page .main_content .def-list-page .def-list-table-wrap{
    min-height: 0;
    max-height: 100%;
}

.def-list-table-wrap .def-list-action-col.action-layout-2,
.def-list-table-wrap .def-list-action-cell.action-layout-2{
    width: 92px;
    min-width: 92px;
}

.def-list-table-wrap .def-list-action-col.action-layout-4,
.def-list-table-wrap .def-list-action-cell.action-layout-4{
    width: 118px;
    min-width: 118px;
}

.def-list-table-wrap .def-list-action-col.action-layout-5,
.def-list-table-wrap .def-list-action-cell.action-layout-5{
    width: 178px;
    min-width: 178px;
}



.def-list-table-wrap .def-list-action-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}





.def-list-table-wrap .def-list-action-wrap.action-layout-5{
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.def-list-table-wrap .def-list-action-wrap .btn{
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}

.def-list-table-wrap .def-list-action-wrap.action-layout-2 .btn{
    width: 40px;
    min-width: 40px;
}

.def-list-table-wrap .def-list-action-wrap.action-layout-4 .btn{
    width: 40px;
    min-height: 36px;
    padding: 6px 10px;
}

.def-list-table-wrap .def-list-action-wrap.action-layout-5 .btn{
    width: 30px;
    min-width: 30px;
    padding: 6px 8px;
}

.pre-purchase-list-table-wrap .pre-purchase-action-col,
.pre-purchase-list-table-wrap .pre-purchase-action-cell{
    width: 130px;
    min-width: 130px;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page > div:first-child{
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page .pre-purchase-list-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page .pre-purchase-list-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page .sheet-list-table-scroll{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page .sheet-list-table-scroll > #list_table,
body.sheet-list-page #main_content_left .pre-purchase-list-page .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
}

body.sheet-list-page #main_content_left .pre-purchase-list-page #list_table.scroll-table{
    max-height: none;
    overflow: visible;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page > div:first-child{
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page .purchase-mgr-list-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page .purchase-mgr-list-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page .sheet-list-table-scroll{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page .sheet-list-table-scroll > #list_table,
body.sheet-list-page #main_content_left .purchase-mgr-list-page .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .purchase-mgr-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

body.sheet-list-page #main_content_left .purchase-explode-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .purchase-explode-list-page > div:not(.purchase-explode-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

.purchase-explode-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

.purchase-explode-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

.purchase-explode-mgr-table-wrap .sheet-list-table-scroll{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.purchase-explode-mgr-table-wrap .sheet-list-table-scroll > #list_table,
.purchase-explode-mgr-table-wrap .sheet-list-table-scroll > table{
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    margin-bottom: 0 !important;
    float: none !important;
}

.purchase-explode-mgr-table-wrap .sheet-list-table-scroll > #list_table th,
.purchase-explode-mgr-table-wrap .sheet-list-table-scroll > #list_table td{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.sheet-list-page #main_content_left .purchase-explode-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

.purchase-explode-search-row{
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.purchase-explode-search-row .purchase-explode-work-btn{
    flex: 0 0 auto;
    min-width: 162px;
}

.purchase-explode-search-form{
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.purchase-explode-search-form .search_select,
.purchase-explode-search-form .search_select2{
    flex: 0 0 136px;
    min-width: 0;
}

.purchase-explode-search-form .calendar_btn{
    flex: 0 0 auto;
}

.purchase-explode-search-form .serach_input{
    flex: 1 1 520px;
    width: auto !important;
    min-width: 260px;
    margin-left: 0 !important;
}

.purchase-explode-search-form .search_btn{
    flex: 0 0 auto;
    min-width: 84px;
}

.purchase-explode-search-row .purchase-explode-clear-btn{
    flex: 0 0 48px;
    min-width: 48px;
}

.purchase-explode-search-row > .sheet-list-tools-close{
    flex: 0 0 auto;
    margin-left: 0;
    width: 48px;
    height: 38px;
}

@media (max-width: 900px){
    .purchase-explode-search-row{
        flex-wrap: wrap;
    }

    .purchase-explode-search-form{
        flex: 1 1 100%;
        order: 2;
    }
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-col,
.purchase-explode-mgr-table-wrap .purchase-explode-action-cell{
    width: 104px;
    min-width: 104px;
    max-width: 104px;
    text-align: center;
    vertical-align: middle;
}

.purchase-explode-mgr-table-wrap th.purchase-explode-action-col,
.purchase-explode-mgr-table-wrap td.purchase-explode-action-cell{
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    box-sizing: border-box;
    padding-left: 3px !important;
    padding-right: 3px !important;
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-cell{
    overflow: visible;
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(34px, 1fr));
    grid-template-rows: repeat(2, minmax(32px, auto));
    gap: 4px;
    align-items: stretch;
    min-width: 98px;
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-slot{
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-slot-center{
    grid-column: 1 / span 2;
    justify-self: center;
    width: calc(50% - 2px);
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 5px 0;
    line-height: 1.2;
}

body.sheet-list-page #main_content_left .stock-returned-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-returned-list-page > div:first-child{
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .stock-returned-list-page .stock-returned-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .stock-returned-list-page .stock-returned-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .stock-returned-list-page .sheet-list-table-scroll{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .stock-returned-list-page .sheet-list-table-scroll > #list_table,
body.sheet-list-page #main_content_left .stock-returned-list-page .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .stock-returned-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-col,
.purchase-mgr-list-table-wrap .purchase-mgr-action-cell{
    width: 110px;
    min-width: 110px;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-cell{
    padding: 8px 10px;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 90px;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-slot{
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-slot-wide{
    grid-column: 1 / -1;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    white-space: nowrap;
}

.pre-purchase-list-table-wrap .pre-purchase-action-cell{
    padding: 8px 10px;
}

.pre-purchase-list-table-wrap .pre-purchase-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 110px;
}

.pre-purchase-list-table-wrap .pre-purchase-action-slot{
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pre-purchase-list-table-wrap .pre-purchase-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 6px 10px;
    white-space: nowrap;
}

.store-shelves-list-table-wrap .edite_btn:hover,
.store-shelves-list-table-wrap .edite_btn:focus{
    color: #ffffff;
    background: #67c23a;
    border-color: #67c23a;
}

.produce-mgr-table-wrap .produce-action-col,
.produce-mgr-table-wrap .produce-action-cell{
    width: 118px;
    min-width: 118px;
}

.produce-mgr-table-wrap .produce-action-cell{
    position: relative;
    padding: 8px 10px;
    overflow: visible;
}

.produce-mgr-table-wrap .produce-action-wrap{
    position: relative;
    display: inline-block;
    width: 102px;
}

.produce-mgr-table-wrap .produce-action-wrap.is-open{
    z-index: 95;
}

.produce-mgr-table-wrap .produce-action-grid{
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 6px;
    justify-content: center;
}

.stock-returned-mgr-table-wrap .stock-returned-action-col,
.stock-returned-mgr-table-wrap .stock-returned-action-cell{
    width: 118px;
    min-width: 118px;
}

.stock-returned-mgr-table-wrap .stock-returned-action-cell{
    position: relative;
    padding: 8px 10px;
    overflow: visible;
}

.stock-returned-mgr-table-wrap .stock-returned-action-wrap{
    position: relative;
    display: inline-block;
    width: 102px;
}

.stock-returned-mgr-table-wrap .stock-returned-action-wrap.is-open{
    z-index: 95;
}

.stock-returned-mgr-table-wrap .stock-returned-action-grid{
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 6px;
    justify-content: center;
}

.stock-returned-mgr-table-wrap .stock-returned-action-slot{
    width: 46px;
    min-height: 32px;
}

.stock-returned-mgr-table-wrap .stock-returned-action-btn{
    width: 46px;
    min-width: 46px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 6px;
    font-size: 0;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    transition: transform 0.16s ease;
}

.stock-returned-mgr-table-wrap .stock-returned-action-btn:active{
    transform: translateY(1px);
}

.stock-returned-mgr-table-wrap .stock-returned-action-btn i{
    font-size: 13px;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-col,
.stock-returned2-mgr-table-wrap .stock-returned2-action-cell{
    width: 118px;
    min-width: 118px;
}

body.sheet-list-page #main_content_left .stock-returned2-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-returned2-list-page > div:not(.stock-returned2-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

.stock-returned2-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

.stock-returned2-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

.stock-returned2-mgr-table-wrap .sheet-list-table-scroll{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.stock-returned2-mgr-table-wrap .sheet-list-table-scroll > #list_table,
.stock-returned2-mgr-table-wrap .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .stock-returned2-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-cell{
    padding: 8px 10px;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-slot{
    min-height: 32px;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-btn i{
    font-size: 13px;
}

body.sheet-list-page #main_content_left .stock-chg-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-chg-list-page > div:not(.stock-chg-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

.stock-chg-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

.stock-chg-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

.stock-chg-mgr-table-wrap .sheet-list-table-scroll{
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.stock-chg-mgr-table-wrap .sheet-list-table-scroll > #list_table,
.stock-chg-mgr-table-wrap .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .stock-chg-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

body.sheet-list-page #main_content_left .stock-scrap-list-page,
body.sheet-list-page .main_content > .stock-scrap-list-page,
.stock-scrap-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100% !important;
    max-height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-scrap-list-page > div:not(.stock-scrap-mgr-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content > .stock-scrap-list-page > div:not(.stock-scrap-mgr-table-wrap):not(.main_pageselect),
.stock-scrap-list-page > div:not(.stock-scrap-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

.stock-scrap-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

.stock-scrap-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.stock-scrap-mgr-table-wrap .sheet-list-table-scroll{
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.stock-scrap-mgr-table-wrap .sheet-list-table-scroll > #list_table,
.stock-scrap-mgr-table-wrap .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .stock-scrap-list-page .main_pageselect,
body.sheet-list-page .main_content > .stock-scrap-list-page .main_pageselect,
.stock-scrap-list-page .main_pageselect{
    flex: 0 0 54px !important;
    min-height: 54px !important;
    box-sizing: border-box;
    position: relative;
    bottom: auto;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

.stock-scrap-mgr-table-wrap .stock-scrap-action-col,
.stock-scrap-mgr-table-wrap .stock-scrap-action-cell{
    width: 96px;
    min-width: 96px;
}

.stock-scrap-mgr-table-wrap .stock-scrap-action-cell{
    padding: 6px 8px;
}

.stock-scrap-mgr-table-wrap .stock-scrap-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
}

.stock-scrap-mgr-table-wrap .stock-scrap-action-slot{
    min-height: 30px;
}

.stock-scrap-mgr-table-wrap .stock-scrap-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.stock-scrap-mgr-table-wrap .stock-scrap-action-btn i{
    font-size: 13px;
}

body.sheet-list-page #main_content_left .stock-scrap2-list-page,
body.sheet-list-page .main_content > .stock-scrap2-list-page,
.stock-scrap2-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100% !important;
    max-height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-scrap2-list-page > div:not(.stock-scrap2-mgr-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content > .stock-scrap2-list-page > div:not(.stock-scrap2-mgr-table-wrap):not(.main_pageselect),
.stock-scrap2-list-page > div:not(.stock-scrap2-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

.stock-scrap2-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

.stock-scrap2-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.stock-scrap2-mgr-table-wrap .sheet-list-table-scroll{
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.stock-scrap2-mgr-table-wrap .sheet-list-table-scroll > #list_table,
.stock-scrap2-mgr-table-wrap .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .stock-scrap2-list-page .main_pageselect,
body.sheet-list-page .main_content > .stock-scrap2-list-page .main_pageselect,
.stock-scrap2-list-page .main_pageselect{
    flex: 0 0 54px !important;
    min-height: 54px !important;
    box-sizing: border-box;
    position: relative;
    bottom: auto;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-col,
.stock-scrap2-mgr-table-wrap .stock-scrap2-action-cell{
    width: 88px;
    min-width: 88px;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-cell{
    padding: 6px 8px;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-slot{
    min-height: 30px;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-slot-return{
    grid-column: 1 / 3;
    justify-self: center;
    width: calc((100% - 5px) / 2);
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-btn i{
    font-size: 13px;
}

.stock-scrap-return-edit-dialog{
    position: relative;
    min-height: 220px;
    height: 72vh;
}

.stock-scrap-return-edit-loader{
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28907D;
    font-size: 1.05rem;
    text-align: center;
    background: rgba(255,255,255,.94);
}

body.sheet-list-page #main_content_left .stock-odj-list-page,
body.sheet-list-page .main_content > .stock-odj-list-page,
.stock-odj-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100% !important;
    max-height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-odj-tools-block,
body.sheet-list-page .main_content > .stock-odj-tools-block,
.stock-odj-tools-block{
    flex: 0 0 auto !important;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
}

body.sheet-list-page #main_content_left .stock-odj-list-page > div:not(.stock-odj-mgr-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content > .stock-odj-list-page > div:not(.stock-odj-mgr-table-wrap):not(.main_pageselect),
.stock-odj-list-page > div:not(.stock-odj-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

.stock-odj-mgr-table-wrap{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .stock-odj-mgr-table-wrap.sheet-list-scroll-host{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.stock-odj-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto;
    min-height: 0;
}

.stock-odj-mgr-table-wrap .sheet-list-table-scroll{
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .stock-odj-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.stock-odj-mgr-table-wrap .sheet-list-table-scroll > #list_table,
.stock-odj-mgr-table-wrap .sheet-list-table-scroll > table{
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
    float: none !important;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .main_pageselect,
body.sheet-list-page .main_content > .stock-odj-list-page .main_pageselect,
.stock-odj-list-page .main_pageselect{
    flex: 0 0 62px !important;
    min-height: 62px !important;
    box-sizing: border-box;
    position: relative;
    z-index: 40;
    margin-top: 8px;
    padding: 8px 15px 10px;
    background: #ffffff;
    overflow: visible !important;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .main_pageselect .pagination{
    margin-bottom: 0;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .stock-odj-action-cell{
    min-width: 118px;
    overflow: visible;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .stock-odj-action-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(38px, 1fr));
    grid-template-rows: repeat(2, minmax(32px, auto));
    grid-auto-flow: row;
    gap: 4px;
    align-items: stretch;
    min-width: 112px;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .stock-odj-action-wrap{
    position: relative;
    width: 100%;
}

body.sheet-list-page #main_content_left .stock-odj-list-page .stock-odj-action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 5px 0;
    line-height: 1.2;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page > div:not(.stock-odj-pre-mgr-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .stock-odj-pre-mgr-table-wrap{
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .stock-odj-pre-mgr-table-wrap > .sheet-list-table-scroll{
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .sheet-list-table-scroll{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .sheet-list-table-scroll > #list_table,
body.sheet-list-page #main_content_left .stock-odj-pre-list-page .sheet-list-table-scroll > table{
    float: none !important;
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .main_pageselect{
    flex: 0 0 auto !important;
    min-height: 54px !important;
    position: relative;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

.stock-odj-pre-search-layout{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.stock-odj-pre-search-row{
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.stock-odj-pre-search-primary{
    align-items: stretch;
}

.stock-odj-pre-search-form{
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.stock-odj-pre-search-form .search_select,
.stock-odj-pre-search-form .search_select_style{
    flex: 0 0 136px;
    min-width: 0;
}

.stock-odj-pre-search-form .search_select1{
    flex-basis: 128px;
}

.stock-odj-pre-search-form .calendar_btn{
    flex: 0 0 auto;
}

.stock-odj-pre-search-form .serach_input{
    flex: 1 1 420px;
    width: auto !important;
    min-width: 280px;
    margin-left: 0 !important;
}

.stock-odj-pre-search-form .search_btn,
.stock-odj-pre-search-primary .stock-odj-pre-clear-btn{
    flex: 0 0 auto;
    min-width: 84px;
}

.stock-odj-pre-search-primary .stock-odj-pre-clear-btn{
    min-width: 48px;
}

.stock-odj-pre-search-primary .stock-odj-pre-clear-btn.btn-success{
    color: var(--jerp-theme-success);
    background: var(--jerp-theme-success-bg);
    border-color: var(--jerp-theme-success-border);
}

.stock-odj-pre-search-primary .stock-odj-pre-clear-btn.btn-success:hover,
.stock-odj-pre-search-primary .stock-odj-pre-clear-btn.btn-success:focus{
    color: #ffffff !important;
    background: var(--jerp-theme-success) !important;
    border-color: var(--jerp-theme-success) !important;
}

.stock-odj-pre-search-primary > .sheet-list-tools-close{
    flex: 0 0 auto;
    margin-left: 0;
    width: 48px;
    height: 38px;
}

.stock-odj-pre-search-secondary{
    justify-content: flex-start;
}

.stock-odj-pre-upload-group{
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 370px;
    min-width: 300px;
    margin-bottom: 0;
    white-space: nowrap;
}

.stock-odj-pre-upload-group .file-input,
.stock-odj-pre-upload-group .file-caption-main{
    min-width: 0;
}

.stock-odj-pre-upload-group .file-input{
    flex: 1 1 220px;
}

.stock-odj-pre-upload-group .file-caption-main{
    display: flex;
    align-items: stretch;
}

.stock-odj-pre-add-btn{
    flex: 0 0 auto;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .stock-odj-pre-action-cell{
    min-width: 118px;
    overflow: visible;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .stock-odj-pre-action-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(38px, 1fr));
    grid-template-rows: repeat(2, minmax(32px, auto));
    grid-auto-flow: row;
    gap: 4px;
    align-items: stretch;
    min-width: 112px;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .stock-odj-pre-action-wrap{
    position: relative;
    width: 100%;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .stock-odj-pre-action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 5px 0;
    line-height: 1.2;
}

.produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-danger{
    color: var(--jerp-theme-danger) !important;
    background: var(--jerp-theme-danger-bg) !important;
    border-color: var(--jerp-theme-danger-border) !important;
}

.produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-danger:hover,
.produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-danger:focus{
    color: #ffffff !important;
    background: var(--jerp-theme-danger) !important;
    border-color: var(--jerp-theme-danger) !important;
}

.produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-success{
    color: var(--jerp-theme-success) !important;
    background: var(--jerp-theme-success-bg) !important;
    border-color: var(--jerp-theme-success-border) !important;
}

.produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-success:hover,
.produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-success:focus{
    color: #ffffff !important;
    background: var(--jerp-theme-success) !important;
    border-color: var(--jerp-theme-success) !important;
}

.stock-odj-more-menu .produce-action-btn.btn-danger{
    color: #dc3545;
    background: #fff5f5;
    border-color: rgba(220, 53, 69, 0.28);
}

.stock-odj-more-menu .produce-action-btn.btn-danger:hover,
.stock-odj-more-menu .produce-action-btn.btn-danger:focus{
    color: #ffffff !important;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

.stock-chg-mgr-table-wrap .stock-chg-action-col,
.stock-chg-mgr-table-wrap .stock-chg-action-cell{
    width: 118px;
    min-width: 118px;
}

.stock-chg-mgr-table-wrap .stock-chg-action-cell{
    padding: 8px 10px;
}

.stock-chg-mgr-table-wrap .stock-chg-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
}

.stock-chg-mgr-table-wrap .stock-chg-action-slot{
    min-height: 32px;
}

.stock-chg-mgr-table-wrap .stock-chg-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.stock-chg-mgr-table-wrap .stock-chg-action-btn i{
    font-size: 13px;
}

.stock-returned-return-edit-dialog{
    position: relative;
    min-height: 220px;
    height: 72vh;
}

.stock-returned-return-edit-loader{
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28907D;
    font-size: 1.05rem;
    text-align: center;
    background: rgba(255,255,255,.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility 0s linear .18s;
}

.stock-returned-return-edit-loader.is-loading{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s ease;
}

.produce-mgr-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.produce-mgr-list-page .produce-mgr-table-wrap{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.produce-mgr-list-page .main_pageselect{
    flex: 0 0 auto;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    overflow: visible !important;
}

.produce-bone-list-table-wrap .produce-action-col,
.produce-bone-list-table-wrap .produce-action-cell{
    width: 118px;
    min-width: 118px;
}

.produce-bone-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.produce-bone-list-page .produce-bone-list-table-wrap{
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.sheet-list-page #main_content_left .prod-group-list-page,
body.sheet-list-page .main_content .prod-group-list-page,
.prod-group-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .prod-group-list-page > div:not(.prod-group-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .prod-group-list-page > div:not(.prod-group-list-table-wrap):not(.main_pageselect),
.prod-group-list-page > div:not(.prod-group-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .prod-group-list-table-wrap,
body.sheet-list-page .main_content .prod-group-list-table-wrap,
.prod-group-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .prod-group-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .prod-group-list-table-wrap > .sheet-list-table-scroll,
.prod-group-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .prod-group-list-page .main_pageselect,
body.sheet-list-page .main_content .prod-group-list-page .main_pageselect,
.prod-group-list-page .main_pageselect{
    flex:0 0 auto;
}

.prod-group-action-cell{
    min-width:124px;
}

.prod-group-action-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:8px;
    width:92px;
    margin:0 auto;
}

.prod-group-action-slot{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
}

.prod-group-action-slot-preview{
    grid-column:1 / span 2;
}

.prod-group-action-btn{
    width:38px;
    min-width:38px;
    height:32px;
    padding:6px 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.prod-group-line-btn{
    font-size:32px;
    padding:0 !important;
    color:#67c23a;
}

.prod-group-item-action-grid{
    width:92px;
}

.prod-group-item-action-grid .prod-group-action-slot-preview{
    justify-content:center;
}

body.sheet-list-page #main_content_left .prod-group-item-list-page,
body.sheet-list-page .main_content .prod-group-item-list-page,
.prod-group-item-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .prod-group-item-list-page > div:not(.prod-group-item-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .prod-group-item-list-page > div:not(.prod-group-item-list-table-wrap):not(.main_pageselect),
.prod-group-item-list-page > div:not(.prod-group-item-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .prod-group-item-list-table-wrap,
body.sheet-list-page .main_content .prod-group-item-list-table-wrap,
.prod-group-item-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .prod-group-item-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .prod-group-item-list-table-wrap > .sheet-list-table-scroll,
.prod-group-item-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .prod-group-item-list-page .main_pageselect,
body.sheet-list-page .main_content .prod-group-item-list-page .main_pageselect,
.prod-group-item-list-page .main_pageselect{
    flex:0 0 auto;
}

.produce-bone-list-page .main_pageselect{
    flex: 0 0 auto;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    overflow: visible !important;
}

.produce-bone-list-table-wrap .produce-action-grid{
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
}

.produce-bone-list-table-wrap .produce-action-btn{
    width: 100%;
    min-width: 0;
}

.onsale-mgr-list-table-wrap .table{
    margin-bottom: 0;
}

.onsale-mgr-list-table-wrap .onsale-action-col,
.onsale-mgr-list-table-wrap .onsale-action-cell{
    width: 118px;
    min-width: 118px;
}

.onsale-mgr-list-table-wrap .onsale-action-cell{
    padding: 8px 10px;
}

.onsale-mgr-list-table-wrap .onsale-action-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
}

.onsale-mgr-list-table-wrap .onsale-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}











.produce-mgr-table-wrap .produce-action-btn{
    width: 46px;
    min-width: 46px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 6px;
    font-size: 0;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.produce-mgr-table-wrap .produce-action-btn:hover,
.produce-mgr-table-wrap .produce-action-btn:focus{
    color: #155eef;
    background: #f5f8ff;
    border-color: #b2ccff;
    box-shadow: 0 2px 6px rgba(21, 94, 239, 0.12);
    outline: none;
}

.produce-mgr-table-wrap .produce-action-btn:active{
    transform: translateY(1px);
}

.produce-mgr-table-wrap .produce-action-btn i{
    font-size: 13px;
}


.produce-mgr-table-wrap .produce-status-cell{
    min-width: 220px;
}

.produce-mgr-table-wrap .produce-status-badges{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    justify-content: center;
}

.produce-mgr-table-wrap .produce-status-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

.produce-mgr-table-wrap .produce-status-badge-danger{
    color: #d6394c;
    background: #fef0f0;
    border-color: #fab6b6;
}

.produce-mgr-table-wrap .produce-status-badge-warning{
    color: #b88217;
    background: #fdf6ec;
    border-color: #f5dab1;
}

.produce-mgr-table-wrap .produce-status-badge-info{
    color: #409eff;
    background: #ecf5ff;
    border-color: #b3d8ff;
}

.produce-mgr-table-wrap .produce-status-badge-success{
    color: #67c23a;
    background: #f0f9eb;
    border-color: #b3e19d;
}

.produce-mgr-table-wrap .produce-status-empty{
    color: #98a2b3;
}

.produce-mgr-table-wrap .produce-more-menu,
.produce-more-menu{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    min-width: 102px;
    padding: 8px;
    display: grid;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.produce-mgr-table-wrap .produce-action-wrap.is-open .produce-more-menu,
.web-sell-action-wrap.is-open .web-sell-more-menu,
.stock-returned-action-wrap.is-open .stock-returned-more-menu,
.stock-odj-action-wrap.is-open .stock-odj-more-menu,
.stock-odj-pre-action-wrap.is-open .stock-odj-pre-more-menu,
.produce-more-menu.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.produce-mgr-table-wrap .produce-more-menu .produce-action-btn,
.produce-more-menu .produce-action-btn{
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.produce-more-menu .produce-action-btn:hover,
.produce-more-menu .produce-action-btn:focus{
    background: #f5f8ff;
    border-color: #b2ccff;
    box-shadow: 0 2px 6px rgba(21, 94, 239, 0.12);
    outline: none;
}

.stock-returned-more-menu .produce-action-btn.btn-warning{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
    border-color: var(--jerp-theme-warning-border);
}

.stock-returned-more-menu .produce-action-btn.btn-warning:hover,
.stock-returned-more-menu .produce-action-btn.btn-warning:focus{
    color: #ffffff !important;
    background: var(--jerp-theme-warning) !important;
    border-color: var(--jerp-theme-warning) !important;
}

.tooltip{
    z-index: 9999 !important;
}

.popover{
    z-index: 20000 !important;
}

body.sheet-list-page #sheet-list-tools-panel.is-open,
body.sheet-list-page .sheet-list-tools-panel.is-open{
    overflow: visible !important;
}

body.sheet-list-page #sheet-list-tools-panel .popover,
body.sheet-list-page #sheet-list-tools-panel .tooltip,
body.sheet-list-page .sheet-list-tools-panel .popover,
body.sheet-list-page .sheet-list-tools-panel .tooltip{
    z-index: 20000 !important;
}

.produce-tooltip,
.produce-tooltip-active{
    z-index: 20000 !important;
}

.producetype-page-toolbar,
.ug-producetype-page-toolbar{
    position: relative;
    z-index: 2;
    margin-top: 0 !important;
    padding: 1rem !important;
    padding-bottom: 0 !important;
    flex: 0 0 auto;
}

body.sheet-list-page .mi-delivery-process-list-scope,
body.sheet-list-page .mi-return-list-scope,
body.sheet-list-page .pos-template-class-list-scope,
body.sheet-list-page .pos-template-group-list-scope,
body.sheet-list-page .sell-logistic-list-page,
body.sheet-list-page .ug-produce-limit-list-page,
body.sheet-list-page .ug-sell-sort-list-page,
body.sheet-list-page .ug-sell-close-list-page,
body.sheet-list-page .ug-sell-ship-list-page{
    margin-top: 0 !important;
}

body.sheet-list-page .legacy-list-spacer{
    display: none !important;
}

body.sheet-list-page .mi-return-list-scope thead th{
    font-size: inherit !important;
}

.ui-v2 .label-print-toolbar{
    float: none !important;
    padding: .5rem !important;
}

.ui-v2 .sheet-list-tools-panel > .label-print-toolbar{
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 !important;
}

.ui-v2 .sheet-list-tools-panel > .label-print-toolbar > .btn{
    margin: 0 !important;
}

.ui-v2 .store-shelves-log-toolbar{
    float: none !important;
    padding: 1rem !important;
}

.ui-v2 .store-shelves-log-page,
.ui-v2 .store-shelves-log-back,
.ui-v2 .onsale2-main-content-form{
    margin-top: 0 !important;
}

.ui-v2 .pre-purchasing-order-discount-toolbar{
    margin-bottom: 1rem !important;
}

.ui-v2 .ug_calcu_div{
    margin-top: 0 !important;
    padding: 1rem !important;
}

.ui-v2 .ug_calcu_div > .form-inline:first-child{
    margin-bottom: 1rem !important;
}

.ui-v2 .mi-sub-plan-form{
    overflow: hidden;
}

body.dark-mode.ui-v2 .mi-sub-plan-label,
body.dark-mode.ui-v2 .mi-product-name{
    color: #e2e8f0;
}

body.dark-mode.ui-v2.jerp-dialog-frame-scroll div:has(> .payform),
body.dark-mode.ui-v2 .bootstrap-dialog div:has(> .payform){
    background: #1e293b !important;
    color: var(--jerp-theme-text-primary);
}

body.dark-mode.ui-v2.jerp-dialog-frame-scroll .sellcibox > [id^="sellci"][id$="_form"],
body.dark-mode.ui-v2 .bootstrap-dialog .sellcibox > [id^="sellci"][id$="_form"],
body.dark-mode.ui-v2 .ug-sell-pay-row,
body.dark-mode.ui-v2 .web-sell-pay-row{
    background: #164e3b !important;
}

body.dark-mode.ui-v2.jerp-dialog-frame-scroll .sellcibox > [id^="sellci"][id$="_form"] > span,
body.dark-mode.ui-v2 .bootstrap-dialog .sellcibox > [id^="sellci"][id$="_form"] > span,
body.dark-mode.ui-v2 .ug-sell-pay-name,
body.dark-mode.ui-v2 .web-sell-pay-name{
    color: #c3ffc5 !important;
}

.producetype-page-list,
.ug-producetype-page-list{
    position: relative;
    padding: 0px 15px;
    z-index: 1;
    margin-top: 12px;
    height: calc(100vh - 240px);
    min-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.producetype-page-list > .table-responsive,
.ug-producetype-page-list > .table-responsive{
    margin-top: 0 !important;
    margin-bottom: 0;
    overflow: visible;
}

.producetype-page-list #MainPageListTable,
.ug-producetype-page-list #MainPageListTable{
    margin-bottom: 0;
}

.thead-light{
    position: sticky;
    top: 0;
    z-index: 3;
    
    border-bottom: 1px solid var(--jerp-theme-border-table);
    box-shadow: inset 0 -1px 0 var(--jerp-theme-border-table);
}
.thead-light th{
background: #f8f9fb !important;
}



.onsale2-index-page{
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-bottom: 50px;
    -webkit-overflow-scrolling: touch;
}

.onsale2-index-page #MainItemList{
    width: 100%;
    min-height: 0;
}

@media (max-width: 991.98px){
    .producetype-page-list,
    .ug-producetype-page-list{
        height: calc(100vh - 280px);
        min-height: 320px;
    }
}

.produce-more-menu .produce-action-btn i{
    font-size: 13px;
}


.def-scroll-list-table-wrap .badge-success{
    color: #67c23a;
    background: #f0f9eb;
    border: 1px solid #b3e19d;
}

.def-scroll-list-table-wrap .badge-secondary{
    color: #667085;
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
}

.purchase-grid-viewport,
.purchase-mgr-list-table-wrap .sheet-list-table-scroll,
.stock-returned-mgr-table-wrap .sheet-list-table-scroll,
.stock-returned2-mgr-table-wrap .sheet-list-table-scroll,
.stock-chg-mgr-table-wrap .sheet-list-table-scroll,
.stock-odj-mgr-table-wrap .sheet-list-table-scroll,
.stock-odj-pre-mgr-table-wrap .sheet-list-table-scroll,
.web-group-pre-sell-list-table-wrap .sheet-list-table-scroll{
    position: relative;
}

.def-scroll-list-table-wrap .ag-filterable-header,
.web-group-pre-sell-list-table-wrap .ag-filterable-header,
.purchase-grid-viewport .ag-filterable-header,
.purchase-mgr-list-table-wrap .ag-filterable-header,
.stock-returned-mgr-table-wrap .ag-filterable-header,
.stock-returned2-mgr-table-wrap .ag-filterable-header,
.stock-chg-mgr-table-wrap .ag-filterable-header,
.stock-odj-mgr-table-wrap .ag-filterable-header,
.stock-odj-pre-mgr-table-wrap .ag-filterable-header,
.produce-bone-list-table-wrap .ag-filterable-header{
    overflow: visible;
}

.def-scroll-list-table-wrap .ag-header-cell-label,
.web-group-pre-sell-list-table-wrap .ag-header-cell-label,
.purchase-grid-viewport .ag-header-cell-label,
.purchase-mgr-list-table-wrap .ag-header-cell-label,
.stock-returned-mgr-table-wrap .ag-header-cell-label,
.stock-returned2-mgr-table-wrap .ag-header-cell-label,
.stock-chg-mgr-table-wrap .ag-header-cell-label,
.stock-odj-mgr-table-wrap .ag-header-cell-label,
.stock-odj-pre-mgr-table-wrap .ag-header-cell-label,
.produce-bone-list-table-wrap .ag-header-cell-label{
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.def-scroll-list-table-wrap .ag-header-cell-text,
.web-group-pre-sell-list-table-wrap .ag-header-cell-text,
.purchase-grid-viewport .ag-header-cell-text,
.purchase-mgr-list-table-wrap .ag-header-cell-text,
.stock-returned-mgr-table-wrap .ag-header-cell-text,
.stock-returned2-mgr-table-wrap .ag-header-cell-text,
.stock-chg-mgr-table-wrap .ag-header-cell-text,
.stock-odj-mgr-table-wrap .ag-header-cell-text,
.stock-odj-pre-mgr-table-wrap .ag-header-cell-text,
.produce-bone-list-table-wrap .ag-header-cell-text{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.def-scroll-list-table-wrap .ag-header-icon,
.web-group-pre-sell-list-table-wrap .ag-header-icon,
.purchase-grid-viewport .ag-header-icon,
.purchase-mgr-list-table-wrap .ag-header-icon,
.stock-returned-mgr-table-wrap .ag-header-icon,
.stock-returned2-mgr-table-wrap .ag-header-icon,
.stock-chg-mgr-table-wrap .ag-header-icon,
.stock-odj-mgr-table-wrap .ag-header-icon,
.stock-odj-pre-mgr-table-wrap .ag-header-icon,
.produce-bone-list-table-wrap .ag-header-icon{
    width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #667085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.stock-odj-mgr-table-wrap .ag-header-icon,
.stock-odj-pre-mgr-table-wrap .ag-header-icon{
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.def-scroll-list-table-wrap .ag-header-icon:hover,
.def-scroll-list-table-wrap .ag-header-icon:focus,
.def-scroll-list-table-wrap .ag-header-icon.is-open,
.web-group-pre-sell-list-table-wrap .ag-header-icon:hover,
.web-group-pre-sell-list-table-wrap .ag-header-icon:focus,
.web-group-pre-sell-list-table-wrap .ag-header-icon.is-open,
.purchase-grid-viewport .ag-header-icon:hover,
.purchase-grid-viewport .ag-header-icon:focus,
.purchase-grid-viewport .ag-header-icon.is-open,
.purchase-mgr-list-table-wrap .ag-header-icon:hover,
.purchase-mgr-list-table-wrap .ag-header-icon:focus,
.purchase-mgr-list-table-wrap .ag-header-icon.is-open,
.stock-returned-mgr-table-wrap .ag-header-icon:hover,
.stock-returned-mgr-table-wrap .ag-header-icon:focus,
.stock-returned-mgr-table-wrap .ag-header-icon.is-open,
.stock-returned2-mgr-table-wrap .ag-header-icon:hover,
.stock-returned2-mgr-table-wrap .ag-header-icon:focus,
.stock-returned2-mgr-table-wrap .ag-header-icon.is-open,
.stock-chg-mgr-table-wrap .ag-header-icon:hover,
.stock-chg-mgr-table-wrap .ag-header-icon:focus,
.stock-chg-mgr-table-wrap .ag-header-icon.is-open,
.stock-odj-mgr-table-wrap .ag-header-icon:hover,
.stock-odj-mgr-table-wrap .ag-header-icon:focus,
.stock-odj-mgr-table-wrap .ag-header-icon.is-open,
.stock-odj-pre-mgr-table-wrap .ag-header-icon:hover,
.stock-odj-pre-mgr-table-wrap .ag-header-icon:focus,
.stock-odj-pre-mgr-table-wrap .ag-header-icon.is-open,
.produce-bone-list-table-wrap .ag-header-icon:hover,
.produce-bone-list-table-wrap .ag-header-icon:focus,
.produce-bone-list-table-wrap .ag-header-icon.is-open{
    color: #155eef;
    background: #eaf1ff;
    outline: none;
}

.def-scroll-list-table-wrap .ag-header-icon:focus-visible,
.web-group-pre-sell-list-table-wrap .ag-header-icon:focus-visible,
.purchase-grid-viewport .ag-header-icon:focus-visible,
.purchase-mgr-list-table-wrap .ag-header-icon:focus-visible,
.stock-returned-mgr-table-wrap .ag-header-icon:focus-visible,
.stock-returned2-mgr-table-wrap .ag-header-icon:focus-visible,
.stock-chg-mgr-table-wrap .ag-header-icon:focus-visible,
.produce-bone-list-table-wrap .ag-header-icon:focus-visible{
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.16);
}

.def-scroll-list-table-wrap .ag-header-icon i,
.web-group-pre-sell-list-table-wrap .ag-header-icon i,
.purchase-grid-viewport .ag-header-icon i,
.purchase-mgr-list-table-wrap .ag-header-icon i,
.stock-returned-mgr-table-wrap .ag-header-icon i,
.stock-returned2-mgr-table-wrap .ag-header-icon i,
.stock-chg-mgr-table-wrap .ag-header-icon i,
.produce-bone-list-table-wrap .ag-header-icon i{
    font-size: 12px;
    line-height: 1;
}

.stock-odj-mgr-table-wrap .ag-header-icon i,
.stock-odj-pre-mgr-table-wrap .ag-header-icon i{
    font-size: 11px;
}


.provider-search-layout{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.provider-search-primary{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    width: 100%;
}

.provider-search-primary form{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 0;
}

.provider-search-primary > .reflash_btn{
    flex: 0 0 auto;
}


.provider-search-primary .reflash_btn{
    color: #67c23a;
    background: #f0f9eb;
    border: 1px solid #b3e19d;
}

.provider-search-primary .reflash_btn:hover,
.provider-search-primary .reflash_btn:focus,
.provider-search-primary .reflash_btn:active{
    color: #ffffff;
    background: #67c23a;
    border-color: #67c23a;
}

.provider-search-tools{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.provider-search-tools .btn{
    flex: 0 0 auto;
}

.provider-search-tools .btn-outline-success{
    color: #2f9e44;
    background: #f0f9eb;
    border-color: #b3e19d;
}

.provider-search-tools .btn-outline-success:hover,
.provider-search-tools .btn-outline-success:focus,
.provider-search-tools .btn-outline-success:active{
    color: #ffffff !important;
    background: #67c23a !important;
    border-color: #67c23a !important;
}

.provider-search-tools .btn-danger{
    color: #d6394c;
    background: #fef0f0;
    border-color: #fab6b6;
}

.provider-search-tools .btn-danger:hover,
.provider-search-tools .btn-danger:focus,
.provider-search-tools .btn-danger:active{
    color: #ffffff !important;
    background: #f56c6c !important;
    border-color: #f56c6c !important;
}

.storecus-search-layout{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.storecus-search-row{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.storecus-search-row-primary{
    flex-wrap: nowrap;
}

.storecus-search-row-secondary{
    flex-wrap: wrap;
}

.storecus-search-primary,
.storecus-search-primary form{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 0;
}

.storecus-search-primary{
    flex: 1 1 auto;
    min-width: 0;
}

.storecus-search-primary form{
    flex: 1 1 auto;
    min-width: 0;
}

.storecus-search-primary .serach_input{
    flex: 1 1 360px;
    width: auto;
    min-width: 220px;
}

.storecus-search-primary .search_btn{
    color: #409eff;
    background: #ecf5ff;
    border: 1px solid #a0cfff;
}

.storecus-search-primary .search_btn:hover,
.storecus-search-primary .search_btn:focus,
.storecus-search-primary .search_btn:active{
    color: #ffffff;
    background: #409eff;
    border-color: #409eff;
}

.storecus-search-primary .reflash_btn{
    color: #67c23a;
    background: #f0f9eb;
    border: 1px solid #b3e19d;
}

.storecus-search-primary .reflash_btn:hover,
.storecus-search-primary .reflash_btn:focus,
.storecus-search-primary .reflash_btn:active{
    color: #ffffff;
    background: #67c23a;
    border-color: #67c23a;
}

.storecus-search-tools{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.storecus-search-tools .btn-outline-success{
    color: #2f9e44;
    background: #f0f9eb;
    border-color: #b3e19d;
}

.storecus-search-tools .btn-outline-success:hover,
.storecus-search-tools .btn-outline-success:focus,
.storecus-search-tools .btn-outline-success:active{
    color: #ffffff !important;
    background: #67c23a !important;
    border-color: #67c23a !important;
}

.storecus-search-summary{
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: #2b2b2b;
    background: #f7fbff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-weight: 600;
}

.produce-search-layout{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.produce-search-row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.produce-search-primary,
.produce-search-primary form,
.produce-search-form{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    min-width: 0;
}

.produce-search-primary{
    flex: 1 1 auto;
}

.produce-search-primary form,
.produce-search-form{
    flex: 1 1 auto;
    margin-bottom: 0;
}

.produce-search-type,
.produce-search-type .ptsbox2,
.produce-change-type,
.produce-change-type .ptsbox1{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.produce-search-form .serach_input{
    flex: 1 1 280px;
    width: auto !important;
    min-width: 220px;
    margin-left: 0 !important;
}

.produce-search-form .produce-search-input-group{
    flex: 1 1 240px;
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.produce-search-form .produce-search-input-group > .serach_input{
    flex: 1 1 0;
    width: 1% !important;
    min-width: 0;
    margin: 0 !important;
}

.produce-search-form .produce-search-input-group > .input-group-append{
    flex: 0 0 auto;
}

.produce-search-form .produce-search-input-group .btn{
    margin: 0;
    white-space: nowrap;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox.sheet-list-keyword-form{
    flex-wrap: wrap;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox .sheet-list-keyword-group{
    --sheet-list-search-height: 36px;
    display: flex;
    flex: 1 1 240px;
    flex-wrap: nowrap;
    width: auto !important;
    min-width: min(100%, 240px);
    max-width: 100%;
    height: var(--sheet-list-search-height);
    align-items: stretch;
    gap: 0;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox .sheet-list-keyword-group > .sheet-list-keyword-control{
    flex: 1 1 0;
    width: 1% !important;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    height: var(--sheet-list-search-height) !important;
    min-height: 0 !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox .sheet-list-keyword-group > .sheet-list-keyword-control .form-control{
    width: 100%;
    min-width: 0;
    height: var(--sheet-list-search-height);
    margin: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox .sheet-list-keyword-group > .input-group-append{
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0;
    margin-left: -1px;
    height: 100%;
    align-items: stretch;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox .sheet-list-keyword-group .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    margin: 0 !important;
    white-space: nowrap;
    border-radius: 0 !important;
}

body.sheet-list-page .sheet-list-tools-panel #srechformbox .sheet-list-keyword-group .btn:last-child{
    border-top-right-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important;
}

.produce-search-form .search_select,
.produce-search-form .search_select_style,
.produce-search-type select,
.produce-change-type select{
    flex: 0 0 auto;
    min-width: 150px;
}

.produce-search-primary .search_btn,
.produce-search-primary .reflash_btn,
.produce-search-tools .btn,
.produce-search-category .btn{
    flex: 0 0 auto;
}

.produce-search-tools{
    align-items: center;
}

.produce-upload-group{
    flex: 0 1 360px;
    min-width: 280px;
    gap: 8px;
    white-space: nowrap;
}

.produce-upload-group .file-input,
.produce-upload-group .file-caption-main{
    min-width: 0;
}

.produce-upload-group .file-input{
    flex: 1 1 220px;
}

.produce-upload-group .file-caption-main{
    display: flex;
    align-items: stretch;
}

.produce-upload-group .file-caption-name{
    color: var(--jerp-theme-text-primary) !important;
}

.produce-upload-group .file-caption-name::placeholder{
    color: var(--jerp-theme-text-secondary) !important;
    opacity: 1;
}

.produce-search-layout-empty{
    display: none !important;
}

/* 調撥管理搜尋列：新增、搜尋與清除按鈕維持同一工具列。 */
.stock-chg-search-toolbar{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.stock-chg-search-toolbar .stock-chg-search-add{
    flex: 0 0 auto;
    float: none !important;
}

.stock-chg-search-toolbar .stock-chg-search-main,
.stock-chg-search-toolbar .stock-chg-search-form{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.stock-chg-search-toolbar .stock-chg-search-main{
    flex: 1 1 auto;
    justify-content: flex-end;
    float: none !important;
}

.stock-chg-search-toolbar .stock-chg-search-form{
    flex: 1 1 auto;
    margin-bottom: 0;
}

.stock-chg-search-toolbar .serach_input{
    flex: 1 1 300px;
    width: auto !important;
    min-width: 180px;
}

.stock-chg-search-toolbar .search_select,
.stock-chg-search-toolbar .search_select2,
.stock-chg-search-toolbar .calendar_btn,
.stock-chg-search-toolbar .btn{
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 991.98px){
    .stock-chg-search-toolbar,
    .stock-chg-search-toolbar .stock-chg-search-main,
    .stock-chg-search-toolbar .stock-chg-search-form{
        flex-wrap: wrap;
    }

    .stock-chg-search-toolbar .stock-chg-search-main{
        justify-content: flex-start;
    }
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel{
    align-items: flex-start;
    gap: 12px;
    overflow: visible;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel .popover,
body.sheet-list-page .sheet-list-tools-panel.produce-search-panel .tooltip{
    z-index: 20000 !important;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn{
    order: 1 !important;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn ul{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn li{
    display: block;
    margin: 0;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn a br{
    display: none;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn .addbtn a{
    color: #67c23a;
    background: #f0f9eb;
    border-color: #b3e19d;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn .editbtn a{
    color: #409eff;
    background: #ecf5ff;
    border-color: #b3d8ff;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn .delbtn a{
    color: #f56c6c;
    background: #fef0f0;
    border-color: #fab6b6;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > #calendar_search.produce-search-host-empty{
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-primary,
body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-tools,
body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-category{
    flex: 0 0 100%;
    width: 100%;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-primary{
    order: 2 !important;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .sheet-list-tools-close{
    order: 3 !important;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-tools{
    order: 4 !important;
}

body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-category{
    order: 5 !important;
}

@media (min-width: 1200px){
    body.sheet-list-page .sheet-list-tools-panel.produce-search-panel{
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .edit_btn{
        order: 1 !important;
    }

    body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-primary{
        order: 2 !important;
        flex: 1 1 520px !important;
        width: auto !important;
        min-width: 0;
    }

    body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .sheet-list-tools-close{
        order: 3 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }

    body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-tools{
        order: 4 !important;
    }

    body.sheet-list-page .sheet-list-tools-panel.produce-search-panel > .produce-search-category{
        order: 5 !important;
    }
}

@media (max-width: 1199.98px){
    .produce-search-primary,
    .produce-search-primary form,
    .produce-search-form,
    .produce-search-tools,
    .produce-search-category{
        width: 100%;
    }

    .produce-search-form .serach_input{
        flex-basis: 220px;
        min-width: 0;
    }

    .produce-upload-group{
        flex: 1 1 100%;
        width: 100%;
        white-space: normal;
    }
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel{
    display: grid;
    align-items: start;
    column-gap: 12px;
    row-gap: 12px;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .edit_btn{
    grid-area: edit;
    order: initial;
    width: auto;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-tools{
    grid-area: tools;
    width: auto;
    margin-top: 0;
    flex-wrap: nowrap;
}

body.sheet-list-page #sheet-list-tools-panel.provider-search-panel > .provider-search-tools{
    flex: 0 0 auto;
    width: auto;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search{
    grid-area: search;
    order: initial;
    width: 100%;
    min-width: 0;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search.provider-search-host-empty{
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary{
    grid-area: search;
    width: 100%;
    min-width: 0;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .sheet-list-tools-close{
    grid-area: close;
    order: initial;
    align-self: start;
    justify-self: end;
    margin-left: 0;
}

body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .edit_btn ul{
    flex-wrap: nowrap;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel{
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel > #calendar_search.storecus-search-host-empty{
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel > .storecus-search-layout{
    order: 1;
    width: 100%;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .edit_btn{
    flex: 0 0 auto;
    width: auto;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .sheet-list-tools-close{
    flex: 0 0 auto;
    margin-left: auto;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .edit_btn ul{
    flex-wrap: nowrap;
}

@media (max-width: 1199.98px){
    body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .storecus-search-row-primary{
        flex-wrap: nowrap;
    }

    body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .edit_btn,
    body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .sheet-list-tools-close{
        order: 1;
    }

    body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .storecus-search-primary,
    body.sheet-list-page .sheet-list-tools-panel.storecus-search-panel .storecus-search-primary form{
        order: 2;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel{
    display:flex !important;
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:12px;
    width:100%;
}

body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel > #calendar_search.mi-customer-search-host-empty{
    display:none !important;
    flex:0 0 0 !important;
    width:0 !important;
    min-width:0 !important;
}

body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel > .mi-customer-search-layout{
    order:1;
    width:100%;
}

.mi-customer-search-layout{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
}

.mi-customer-search-row{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}

.mi-customer-search-primary{
    flex-wrap:nowrap;
}

.mi-customer-search-toolbar,
.mi-customer-search-form,
.mi-customer-search-tools{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    margin:0;
}

.mi-customer-search-toolbar{
    flex:1 1 auto;
}

.mi-customer-search-form{
    flex:1 1 auto;
}

.mi-customer-search-form .list_search_option{
    flex:0 0 132px;
    width:132px;
}

.mi-customer-search-form .serach_input{
    flex:1 1 360px;
    width:auto !important;
    min-width:220px;
    max-width:none;
}

.mi-customer-search-toolbar .btn,
.mi-customer-search-tools .btn{
    min-height:38px;
    border-radius:7px;
}

.mi-customer-search-secondary{
    flex-wrap:wrap;
}

.mi-customer-search-summary{
    color:#303133;
    white-space:nowrap;
}

body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel .edit_btn{
    flex:0 0 auto;
    width:auto;
}

body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel .edit_btn ul{
    flex-wrap:nowrap;
}

body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0;
}

@media (max-width: 1199px){
    .mi-customer-search-primary,
    .mi-customer-search-toolbar,
    .mi-customer-search-form{
        flex-wrap:wrap;
    }

    .mi-customer-search-form .serach_input{
        flex-basis:100%;
    }

    body.sheet-list-page .sheet-list-tools-panel.mi-customer-search-panel .sheet-list-tools-close{
        margin-left:auto;
    }
}

body.sheet-list-page .sheet-list-tools-panel.mi-delivery-process-search-panel{
    display:flex !important;
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:12px;
    width:100%;
}

body.sheet-list-page .sheet-list-tools-panel.mi-delivery-process-search-panel > #calendar_search{
    flex:0 0 auto;
    width:100%;
    min-width:0;
    height:auto;
    align-self:stretch;
}

.mi-delivery-process-search-layout{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
}

.mi-delivery-process-search-row{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-width:0;
}

.mi-delivery-process-search-primary{
    flex-wrap:nowrap;
}

.mi-delivery-process-search-primary #srechformbox,
.mi-delivery-process-search-secondary #insProformbox{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    min-width:0;
}

.mi-delivery-process-search-primary #srechformbox{
    flex:1 1 auto;
    flex-wrap:wrap;
}

.mi-delivery-process-search-primary .reflash_btn,
.mi-delivery-process-search-primary .sheet-list-tools-close{
    flex:0 0 auto;
}

.mi-delivery-process-search-primary .serach_input{
    flex:1 1 280px;
    min-width:220px;
}

.mi-delivery-process-search-primary .search_bday,
.mi-delivery-process-search-primary .search_select{
    width: fit-content;
    flex: 0 0 fit-content;
}

.mi-delivery-process-search-secondary{
    justify-content:flex-start;
}

.mi-delivery-process-search-secondary #insProformbox{
    flex:0 0 auto;
}

body.sheet-list-page .sheet-list-tools-panel.mi-delivery-process-search-panel .sheet-list-tools-close{
    margin-left:0;
}

@media (max-width: 1199px){
    .mi-delivery-process-search-primary{
        flex-wrap:wrap;
    }

    .mi-delivery-process-search-primary .sheet-list-tools-close{
        margin-left:auto;
    }
}

body.sheet-list-page .sheet-list-tools-panel.mi-shipping-search-panel{
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    width:100%;
}

body.sheet-list-page .sheet-list-tools-panel.mi-shipping-search-panel > #calendar_search{
    flex:0 0 auto;
    width:100%;
    min-width:0;
    height:auto;
    min-height:0;
    align-self:stretch;
}

.mi-shipping-search-primary,
.mi-shipping-search-form{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.mi-shipping-search-primary{
    flex-wrap:nowrap;
}

.mi-shipping-search-form{
    flex:1 1 auto;
    flex-wrap:wrap;
    margin:0;
}

.mi-shipping-search-secondary{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:6px;
}

body.sheet-list-page .sheet-list-tools-panel.mi-shipping-search-panel .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0;
}

@media (max-width: 1199px){
    .mi-shipping-search-primary{
        flex-wrap:wrap;
    }

    body.sheet-list-page .sheet-list-tools-panel.mi-shipping-search-panel .sheet-list-tools-close{
        margin-left:auto;
    }
}

body.sheet-list-page .sheet-list-tools-panel.storecus-o-search-panel{
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-o-search-panel > #calendar_search.storecus-o-search-host-empty{
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-o-search-panel > .storecus-o-search-layout{
    order: 1;
    width: 100%;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-o-search-panel .edit_btn{
    flex: 0 0 auto;
    width: auto;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-o-search-panel .sheet-list-tools-close{
    flex: 0 0 auto;
    margin-left: auto;
}

body.sheet-list-page .sheet-list-tools-panel.storecus-o-search-panel .edit_btn ul{
    flex-wrap: nowrap;
}

@media (min-width: 1200px){
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout){
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel{
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) > .edit_btn,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .edit_btn{
        order: 1 !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) #calendar_search,
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-layout{
        display: contents !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-tools,
    body.sheet-list-page #sheet-list-tools-panel.provider-search-panel > .provider-search-tools{
        order: 2 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary{
        order: 3 !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) > .sheet-list-tools-close,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .sheet-list-tools-close{
        order: 4 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary form,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary form,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline form{
        flex-wrap: nowrap !important;
        width: auto;
        min-width: 0;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary .serach_input,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary .serach_input,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline .serach_input{
        flex: 1 1 180px;
        width: auto !important;
        min-width: 180px;
        margin-left: 0 !important;
    }
}

@media (max-width: 1199px){
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout){
        display: flex !important;
        flex-wrap: wrap !important;

        align-items: flex-start;
        gap: 12px;
    }

    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel{
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "edit tools close"
            "search search search";
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) #calendar_search,
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-layout{
        display: contents !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) > .edit_btn{
        order: 1 !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-tools{
        order: 2 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        flex-wrap: nowrap;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) > .sheet-list-tools-close{
        order: 3 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary{
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0;
    }

    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary{
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0;
    }

    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search{
        min-width: 0;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline{
        width: 100%;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary form,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary form,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline form{
        flex-wrap: nowrap;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary form,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary form,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline form{
        flex: 1 1 auto;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary .search_select,
    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary .search_select_style,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary .search_select,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary .search_select_style,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline .search_select,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline .search_select_style{
        flex: 0 0 auto;
    }

    body.sheet-list-page .sheet-list-tools-panel:has(.provider-search-layout) .provider-search-primary .serach_input,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > .provider-search-primary .serach_input,
    body.sheet-list-page .sheet-list-tools-panel.provider-search-panel > #calendar_search > .form-inline .serach_input{
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        margin-left: 0 !important;
    }
}

.provider-mgr-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.provider-mgr-list-page .def-scroll-list-table-wrap{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.provider-mgr-list-page .def-scroll-list-table{
    display: table;
}

.provider-mgr-list-page .main_pageselect{
    flex: 0 0 auto;
    min-height: 54px;
    position: relative;
    z-index: 20;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    overflow: visible !important;
}

.provider-mgr-list-page .main_pageselect .pagination{
    padding: 0 15px;
    box-sizing: border-box;
}

.sheet-list-page #main_content_left .provider-mgr-list-page,
.sheet-list-page .main_content .provider-mgr-list-page,
.sheet-list-page .main_content .provider-mgr-list-page .def-scroll-list-table-wrap{
    min-height: 0;
    max-height: 100%;
}

.sheet-list-page .main_content .provider-mgr-list-page .def-scroll-list-table-wrap{
    overflow: auto !important;
}

.provider-mgr-list-page .provider-action-col{
    width: 230px;
}
.provider-mgr-list-page .provider-action-cell{
    width: 132px;
    min-width: 132px;
}



.provider-mgr-list-page .provider-action-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.provider-mgr-list-page .provider-action-grid .btn{
    min-width: 60px;
    min-height: 38px;
    width: 100%;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 6px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
}

.provider-mgr-list-page .provider-action-count{
    display: inline-block;
    line-height: 1;
    font-size: 12px;
}







.prov-quote-list-page .prov-quote-action-col,
.prov-quote-list-page .prov-quote-action-cell{
    width: 88px;
    min-width: 88px;
}



.prov-quote-list-page .prov-quote-action-stack .btn{
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1.1;
}







.prov-quote-list-page .badge{
    border: 1px solid transparent;
    font-weight: 500;
}

.prov-quote-list-page .badge-success{
    color: #67c23a;
    background: #f0f9eb;
    border-color: #b3e19d;
}

.prov-quote-list-page .badge-secondary{
    color: #667085;
    background: #f2f4f7;
    border-color: #d0d5dd;
}

.prov-quote-list-page .badge-warning{
    color: #e6a23c;
    background: #fdf6ec;
    border-color: #f5dab1;
}

.prov-quote-list-page .badge-danger{
    color: #f56c6c;
    background: #fef0f0;
    border-color: #fab6b6;
}

.prov-quote-list-page .badge-info,
.prov-quote-list-page .badge-primary{
    color: #409eff;
    background: #ecf5ff;
    border-color: #b3d8ff;
}

.prov-signup-list-page .prov-signup-action-col,
.prov-signup-list-page .prov-signup-action-cell{
    width: 88px;
    min-width: 88px;
}




.prov-signup-list-page .badge{
    border: 1px solid transparent;
    font-weight: 500;
}

.prov-signup-list-page .badge-success{
    color: #67c23a;
    background: #f0f9eb;
    border-color: #b3e19d;
}

.prov-signup-list-page .badge-secondary{
    color: #667085;
    background: #f2f4f7;
    border-color: #d0d5dd;
}

.prov-signup-list-page .badge-warning{
    color: #e6a23c;
    background: #fdf6ec;
    border-color: #f5dab1;
}

.prov-signup-list-page .badge-danger{
    color: #f56c6c;
    background: #fef0f0;
    border-color: #fab6b6;
}

.prov-signup-list-page .badge-info,
.prov-signup-list-page .badge-primary{
    color: #409eff;
    background: #ecf5ff;
    border-color: #b3d8ff;
}

.prov-signup-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.prov-signup-list-page .prov-signup-table-wrap{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.prov-signup-list-page .main_pageselect{
    flex: 0 0 auto;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    overflow: visible !important;
}

.storecus-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.storecus-list-page .storecus-table-wrap{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.storecus-list-page > div:first-child{
    flex: 0 0 auto;
    min-height: 0;
}

.storecus-list-page .main_pageselect{
    flex: 0 0 auto;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    overflow: visible !important;
}

.sheet-list-page #main_content_left .storecus-list-page,
.sheet-list-page .main_content .storecus-list-page,
.sheet-list-page .main_content .storecus-list-page .storecus-table-wrap{
    min-height: 0;
    max-height: 100%;
}

.sheet-list-page .main_content .storecus-list-page .storecus-table-wrap{
    overflow: auto !important;
}

.storecus-list-page .storecus-action-col,
.storecus-list-page .storecus-action-cell{
    width: 110px;
    min-width: 110px;
}



.storecus-list-page .storecus-action-wrap{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.storecus-list-page .storecus-action-top{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.storecus-list-page .storecus-action-bottom{
    width: 100%;
    display: flex;
    justify-content: center;
}

.storecus-list-page .storecus-action-btn{
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.storecus-list-page .storecus-recipient-btn{
    width: 100%;
    min-width: 0;
}

body.sheet-list-page #main_content_left .mi-customer-list-page,
body.sheet-list-page .main_content .mi-customer-list-page,
.mi-customer-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-customer-list-page > div:not(.mi-customer-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-customer-list-page > div:not(.mi-customer-table-wrap):not(.main_pageselect),
.mi-customer-list-page > div:not(.mi-customer-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-customer-list-page .mi-customer-table-wrap,
body.sheet-list-page .main_content .mi-customer-list-page .mi-customer-table-wrap,
.mi-customer-list-page .mi-customer-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-customer-list-page .mi-customer-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-customer-list-page .mi-customer-table-wrap > .sheet-list-table-scroll,
.mi-customer-list-page .mi-customer-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-customer-list-page .main_pageselect,
body.sheet-list-page .main_content .mi-customer-list-page .main_pageselect,
.mi-customer-list-page .main_pageselect{
    flex:0 0 auto;
}

.mi-customer-list-page .mi-customer-action-col,
.mi-customer-list-page .mi-customer-action-cell{
    width: 110px;
    min-width: 110px;
}



.mi-customer-list-page .mi-customer-action-wrap{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mi-customer-list-page .mi-customer-action-top{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.mi-customer-list-page .mi-customer-action-bottom{
    width: 100%;
    display: flex;
    justify-content: center;
}

.mi-customer-list-page .mi-customer-action-btn{
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.mi-customer-list-page .mi-customer-recipient-btn{
    width: 100%;
    min-width: 0;
}

.mi-customer-list-page .mi-customer-action-slot{
    display:block;
    width:100%;
    min-height:32px;
}




.storecus-o-list-page .storecus-o-action-col,
.storecus-o-list-page .storecus-o-action-cell{
    width: 110px;
    min-width: 110px;
}



.storecus-o-list-page .storecus-o-action-wrap{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.storecus-o-list-page .storecus-o-action-top{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.storecus-o-list-page .storecus-o-action-bottom{
    width: 100%;
    display: flex;
    justify-content: center;
}

.storecus-o-list-page .storecus-o-action-btn{
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.storecus-o-list-page .storecus-o-recipient-btn{
    width: 100%;
    min-width: 0;
}

.storecus-o-list-page .storecus-o-inv-title-cell{
    white-space: nowrap;
}

.storecus-o-list-page{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.storecus-o-list-page .storecus-o-table-wrap{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.storecus-o-list-page > div:first-child{
    flex: 0 0 auto;
    min-height: 0;
}

.storecus-o-list-page .main_pageselect{
    flex: 0 0 auto;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
    overflow: visible !important;
}

.sheet-list-page #main_content_left .storecus-o-list-page,
.sheet-list-page .main_content .storecus-o-list-page,
.sheet-list-page .main_content .storecus-o-list-page .storecus-o-table-wrap{
    min-height: 0;
    max-height: 100%;
}

.sheet-list-page .main_content .storecus-o-list-page .storecus-o-table-wrap{
    overflow: auto !important;
}

.storecus-o-search-layout{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.storecus-o-search-row{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.storecus-o-search-row-primary{
    flex-wrap: nowrap;
}

.storecus-o-search-row-secondary{
    flex-wrap: wrap;
}

.storecus-o-search-primary,
.storecus-o-search-primary form{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 0;
}

.storecus-o-search-primary{
    flex: 1 1 auto;
    min-width: 0;
}

.storecus-o-search-primary form{
    flex: 1 1 auto;
    min-width: 0;
}

.storecus-o-search-primary .serach_input{
    flex: 1 1 360px;
    width: auto;
    min-width: 220px;
}

.storecus-o-search-primary .search_btn{
    color: #409eff;
    background: #ecf5ff;
    border: 1px solid #a0cfff;
}

.storecus-o-search-primary .search_btn:hover,
.storecus-o-search-primary .search_btn:focus,
.storecus-o-search-primary .search_btn:active{
    color: #ffffff;
    background: #409eff;
    border-color: #409eff;
}

.storecus-o-search-primary .reflash_btn{
    color: #67c23a;
    background: #f0f9eb;
    border: 1px solid #b3e19d;
}

.storecus-o-search-primary .reflash_btn:hover,
.storecus-o-search-primary .reflash_btn:focus,
.storecus-o-search-primary .reflash_btn:active{
    color: #ffffff;
    background: #67c23a;
    border-color: #67c23a;
}

.storecus-o-search-tools{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.storecus-o-search-tools .btn-outline-success{
    color: #2f9e44;
    background: #f0f9eb;
    border-color: #b3e19d;
}

.storecus-o-search-tools .btn-outline-success:hover,
.storecus-o-search-tools .btn-outline-success:focus,
.storecus-o-search-tools .btn-outline-success:active{
    color: #ffffff !important;
    background: #67c23a !important;
    border-color: #67c23a !important;
}

@media (max-width: 767.98px){
    .provider-search-layout{
        gap: 10px;
    }

    .provider-search-primary,
    .provider-search-primary form,
    .provider-search-tools{
        gap: 10px;
    }

    .provider-search-primary form{
        width: 100%;
    }

    .provider-search-primary .serach_input{
        width: 100% !important;
        margin-left: 0 !important;
    }

    .provider-mgr-list-page .provider-action-col,
    .provider-mgr-list-page .provider-action-cell{
        width: 124px;
        min-width: 124px;
    }

    .provider-mgr-list-page .provider-action-grid{
        gap: 6px;
    }

    .provider-mgr-list-page .provider-action-grid .btn{
        min-height: 36px;
        padding: 5px 8px;
        font-size: 12px;
    }
}

.def-scroll-filter-panel{
    position: absolute;
    z-index: 40;
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d9dde7;
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.def-scroll-filter-panel.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.def-scroll-filter-title{
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.def-scroll-filter-input{
    width: 100%;
    height: 34px;
    padding: 7px 10px;
    color: #182230;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.def-scroll-filter-input:focus{
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.14);
}

.def-scroll-filter-actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.def-scroll-filter-actions button{
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.def-scroll-filter-actions button:hover,
.def-scroll-filter-actions button:focus{
    color: #155eef;
    background: #f5f8ff;
    border-color: #b2ccff;
    outline: none;
}

.def-scroll-filter-apply{
    color: #ffffff !important;
    background: #155eef !important;
    border-color: #155eef !important;
}

.def-scroll-filter-apply:hover,
.def-scroll-filter-apply:focus{
    background: #004eeb !important;
    border-color: #004eeb !important;
}

@media (max-width: 1199.98px){
    body.sheet-list-page #main_content.main-content-layout:not(.is-ai-collapsed) #main_content_left.main-content-left{
        width: 100% !important;
        max-width: 100% !important;
    }

    body.sheet-list-page #main_content.main-content-layout:not(.is-ai-collapsed) > .main-content-right{
        pointer-events: none !important;
    }

    body.sheet-list-page #main_content.main-content-layout:not(.is-ai-collapsed) > .main-content-right .purchase-chat-pane,
    body.sheet-list-page #main_content.main-content-layout:not(.is-ai-collapsed) > .main-content-right .purchase-mobile-ai-launch{
        pointer-events: auto !important;
    }
}

@media (max-width: 767.98px){
    .def-scroll-list-table-wrap{
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .def-scroll-list-table-wrap .def-scroll-list-table{
        min-width: 860px;
        font-size: 14px;
    }

    .def-scroll-list-table-wrap .def-scroll-list-table thead th,
    .def-scroll-list-table-wrap .def-scroll-list-table tbody td{
        height: 40px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .def-scroll-list-table-wrap .def-scroll-action-col,
    .def-scroll-list-table-wrap .def-scroll-action-cell,
    .store-shelves-list-table-wrap .def-scroll-action-col,
    .store-shelves-list-table-wrap .def-scroll-action-cell{
        width: 88px;
        min-width: 88px;
    }

    .def-scroll-list-table-wrap .def-scroll-action-stack,
    .store-shelves-list-table-wrap .def-scroll-action-stack{
        gap: 6px;
    }

    .def-scroll-list-table-wrap .def-scroll-action-stack .btn,
    .store-shelves-list-table-wrap .def-scroll-action-stack .btn{
        min-height: 30px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .def-list-table-wrap .def-list-action-col.action-layout-2,
    .def-list-table-wrap .def-list-action-cell.action-layout-2{
        width: 88px;
        min-width: 88px;
    }

    .def-list-table-wrap .def-list-action-col.action-layout-4,
    .def-list-table-wrap .def-list-action-cell.action-layout-4{
        width: 112px;
        min-width: 112px;
    }

    .def-list-table-wrap .def-list-action-col.action-layout-5,
    .def-list-table-wrap .def-list-action-cell.action-layout-5{
        width: 168px;
        min-width: 168px;
    }

    .def-list-table-wrap .def-list-action-wrap{
        gap: 6px;
    }

    .def-list-table-wrap .def-list-action-wrap .btn{
        min-height: 30px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .def-list-table-wrap .def-list-action-wrap.action-layout-2 .btn{
        width: 68px;
        min-width: 68px;
    }

    .def-list-table-wrap .def-list-action-wrap.action-layout-5 .btn{
        width: 28px;
        min-width: 28px;
    }

    .onsale-mgr-list-table-wrap .onsale-action-col,
    .onsale-mgr-list-table-wrap .onsale-action-cell{
        width: 112px;
        min-width: 112px;
    }

    .onsale-mgr-list-table-wrap .onsale-action-grid{
        gap: 6px;
    }

    .onsale-mgr-list-table-wrap .onsale-action-btn{
        min-height: 30px;
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* Bootstrap theme override: light system palette */
.btn{
    border-radius: 6px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:focus,
.btn.focus{
    outline: none;
    box-shadow: 0 0 0 3px var(--jerp-theme-focus-shadow);
}

.btn:active,
.btn.active{
    transform: translateY(1px);
}

.btn.disabled,
.btn:disabled{
    color: var(--jerp-theme-disabled-text) !important;
    background: var(--jerp-theme-disabled-bg) !important;
    border-color: var(--jerp-theme-disabled-border) !important;
    box-shadow: none !important;
    opacity: 1;
}

.btn-primary{
    color: var(--jerp-theme-primary) !important;
    background: var(--jerp-theme-primary-bg) !important;
    border-color: var(--jerp-theme-primary-border) !important;
}

.btn-outline-primary{
    color: var(--jerp-theme-primary);
    border-color: var(--jerp-theme-primary-border);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-primary) !important;
    border-color: var(--jerp-theme-primary) !important;
}

.btn-secondary{
    color: var(--jerp-theme-secondary);
    background: var(--jerp-theme-secondary-bg);
    border-color: var(--jerp-theme-secondary-border);
}

.btn-outline-secondary{
    color: var(--jerp-theme-secondary);
    border-color: var(--jerp-theme-secondary-border);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary.focus,
.btn-secondary:active,
.btn-secondary.active,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary.focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-secondary) !important;
    border-color: var(--jerp-theme-secondary) !important;
}

.btn-success{
    color: var(--jerp-theme-success) !important;
    background: var(--jerp-theme-success-bg) !important;
    border-color: var(--jerp-theme-success-border) !important;
}
.btn-outline-success{
    color: var(--jerp-theme-success);
    border-color: var(--jerp-theme-success-border);
}

.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success.focus,
.btn-outline-success:active,
.btn-outline-success.active,
.btn-outline-success:not(:disabled):not(.disabled):active,
.btn-outline-success:not(:disabled):not(.disabled).active,
.show > .btn-outline-success.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-success) !important;
    border-color: var(--jerp-theme-success) !important;
}

.btn-danger{
    color: var(--jerp-theme-danger) !important;
    background: var(--jerp-theme-danger-bg) !important;
    border-color: var(--jerp-theme-danger-border) !important;
}

.btn-outline-danger{
    color: var(--jerp-theme-danger);
    border-color: var(--jerp-theme-danger-border);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger.active,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger.focus,
.btn-outline-danger:active,
.btn-outline-danger.active,
.btn-outline-danger:not(:disabled):not(.disabled):active,
.btn-outline-danger:not(:disabled):not(.disabled).active,
.show > .btn-outline-danger.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-danger) !important;
    border-color: var(--jerp-theme-danger) !important;
}

.btn-warning{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
    border-color: var(--jerp-theme-warning-border);
}

.btn-outline-warning{
    color: var(--jerp-theme-warning);
    border-color: var(--jerp-theme-warning-border);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning:not(:disabled):not(.disabled).active,
.show > .btn-warning.dropdown-toggle,
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning.focus,
.btn-outline-warning:active,
.btn-outline-warning.active,
.btn-outline-warning:not(:disabled):not(.disabled):active,
.btn-outline-warning:not(:disabled):not(.disabled).active,
.show > .btn-outline-warning.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-warning) !important;
    border-color: var(--jerp-theme-warning) !important;
}

.btn-info{
    color: var(--jerp-theme-info);
    background: var(--jerp-theme-info-bg);
    border-color: var(--jerp-theme-info-border) !important;
}

.btn-outline-info{
    color: var(--jerp-theme-info);
    border-color: var(--jerp-theme-info-border);
}

.btn-info:hover,
.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info.active,
.btn-info:not(:disabled):not(.disabled):active,
.btn-info:not(:disabled):not(.disabled).active,
.show > .btn-info.dropdown-toggle,
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info.focus,
.btn-outline-info:active,
.btn-outline-info.active,
.btn-outline-info:not(:disabled):not(.disabled):active,
.btn-outline-info:not(:disabled):not(.disabled).active,
.show > .btn-outline-info.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-info) !important;
    border-color: var(--jerp-theme-info) !important;
}

.btn-light{
    color: var(--jerp-theme-light-text);
    background: var(--jerp-theme-light-bg);
    border-color: var(--jerp-theme-light-border);
}

.btn-outline-light{
    color: var(--jerp-theme-light-text);
    border-color: var(--jerp-theme-light-border);
}

.btn-light:hover,
.btn-light:focus,
.btn-light.focus,
.btn-light:active,
.btn-light.active,
.btn-light:not(:disabled):not(.disabled):active,
.btn-light:not(:disabled):not(.disabled).active,
.show > .btn-light.dropdown-toggle,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light.focus,
.btn-outline-light:active,
.btn-outline-light.active,
.btn-outline-light:not(:disabled):not(.disabled):active,
.btn-outline-light:not(:disabled):not(.disabled).active,
.show > .btn-outline-light.dropdown-toggle{
    color: var(--jerp-theme-text-primary) !important;
    background: var(--jerp-theme-light-bg-hover) !important;
    border-color: var(--jerp-theme-secondary-border) !important;
}

.btn-dark{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}

.btn-outline-dark{
    color: var(--jerp-theme-dark-text);
    border-color: var(--jerp-theme-dark-border);
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark.focus,
.btn-dark:active,
.btn-dark.active,
.btn-dark:not(:disabled):not(.disabled):active,
.btn-dark:not(:disabled):not(.disabled).active,
.show > .btn-dark.dropdown-toggle,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark.focus,
.btn-outline-dark:active,
.btn-outline-dark.active,
.btn-outline-dark:not(:disabled):not(.disabled):active,
.btn-outline-dark:not(:disabled):not(.disabled).active,
.show > .btn-outline-dark.dropdown-toggle{
    color: #ffffff !important;
    background: var(--jerp-theme-dark-text) !important;
    border-color: var(--jerp-theme-dark-text) !important;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle{
    background: var(--jerp-theme-primary-active) !important;
    border-color: var(--jerp-theme-primary-active) !important;
}

.btn-secondary:active,
.btn-secondary.active,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle{
    background: var(--jerp-theme-secondary-active) !important;
    border-color: var(--jerp-theme-secondary-active) !important;
}

.btn-success:active,
.btn-success.active,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle,
.btn-outline-success:active,
.btn-outline-success.active,
.btn-outline-success:not(:disabled):not(.disabled):active,
.btn-outline-success:not(:disabled):not(.disabled).active,
.show > .btn-outline-success.dropdown-toggle{
    background: var(--jerp-theme-success-active) !important;
    border-color: var(--jerp-theme-success-active) !important;
}

.btn-danger:active,
.btn-danger.active,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle,
.btn-outline-danger:active,
.btn-outline-danger.active,
.btn-outline-danger:not(:disabled):not(.disabled):active,
.btn-outline-danger:not(:disabled):not(.disabled).active,
.show > .btn-outline-danger.dropdown-toggle{
    background: var(--jerp-theme-danger-active) !important;
    border-color: var(--jerp-theme-danger-active) !important;
}

.btn-warning:active,
.btn-warning.active,
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning:not(:disabled):not(.disabled).active,
.show > .btn-warning.dropdown-toggle,
.btn-outline-warning:active,
.btn-outline-warning.active,
.btn-outline-warning:not(:disabled):not(.disabled):active,
.btn-outline-warning:not(:disabled):not(.disabled).active,
.show > .btn-outline-warning.dropdown-toggle{
    background: var(--jerp-theme-warning-active) !important;
    border-color: var(--jerp-theme-warning-active) !important;
}

.btn-info:active,
.btn-info.active,
.btn-info:not(:disabled):not(.disabled):active,
.btn-info:not(:disabled):not(.disabled).active,
.show > .btn-info.dropdown-toggle,
.btn-outline-info:active,
.btn-outline-info.active,
.btn-outline-info:not(:disabled):not(.disabled):active,
.btn-outline-info:not(:disabled):not(.disabled).active,
.show > .btn-outline-info.dropdown-toggle{
    background: var(--jerp-theme-info-active) !important;
    border-color: var(--jerp-theme-info-active) !important;
}

.btn-light:active,
.btn-light.active,
.btn-light:not(:disabled):not(.disabled):active,
.btn-light:not(:disabled):not(.disabled).active,
.show > .btn-light.dropdown-toggle,
.btn-outline-light:active,
.btn-outline-light.active,
.btn-outline-light:not(:disabled):not(.disabled):active,
.btn-outline-light:not(:disabled):not(.disabled).active,
.show > .btn-outline-light.dropdown-toggle{
    background: var(--jerp-theme-light-bg-hover) !important;
    border-color: var(--jerp-theme-secondary-border) !important;
}

.btn-dark:active,
.btn-dark.active,
.btn-dark:not(:disabled):not(.disabled):active,
.btn-dark:not(:disabled):not(.disabled).active,
.show > .btn-dark.dropdown-toggle,
.btn-outline-dark:active,
.btn-outline-dark.active,
.btn-outline-dark:not(:disabled):not(.disabled):active,
.btn-outline-dark:not(:disabled):not(.disabled).active,
.show > .btn-outline-dark.dropdown-toggle{
    background: var(--jerp-theme-dark-text) !important;
    border-color: var(--jerp-theme-dark-text) !important;
}

.alert{
    border-radius: 8px;
    border-width: 1px;
}

.alert-primary,
.alert-info{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
}

.alert-secondary{
    color: var(--jerp-theme-secondary);
    background: var(--jerp-theme-secondary-bg);
    border-color: var(--jerp-theme-secondary-border);
}

.alert-success{
    color: var(--jerp-theme-success);
    background: var(--jerp-theme-success-bg);
    border-color: var(--jerp-theme-success-border);
}

.alert-danger{
    color: var(--jerp-theme-danger);
    background: var(--jerp-theme-danger-bg);
    border-color: var(--jerp-theme-danger-border);
}

.alert-warning{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
    border-color: var(--jerp-theme-warning-border);
}

.alert-light{
    color: var(--jerp-theme-light-text);
    background: var(--jerp-theme-light-bg);
    border-color: var(--jerp-theme-border-light);
}

.alert-dark{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}

.alert-link{
    color: inherit;
    text-decoration: underline;
}

.badge{
    border: 1px solid transparent;
    font-weight: 500;
}

.badge-primary,
.badge-info{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
}

.badge-secondary{
    color: var(--jerp-theme-secondary);
    background: var(--jerp-theme-secondary-bg);
    border-color: var(--jerp-theme-secondary-border);
}

.badge-success{
    color: var(--jerp-theme-success);
    background: var(--jerp-theme-success-bg);
    border-color: var(--jerp-theme-success-border);
}

.badge-danger{
    color: var(--jerp-theme-danger);
    background: var(--jerp-theme-danger-bg);
    border-color: var(--jerp-theme-danger-border);
}

.badge-warning{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
    border-color: var(--jerp-theme-warning-border);
}

.badge-light{
    color: var(--jerp-theme-light-text);
    background: var(--jerp-theme-light-bg);
    border-color: var(--jerp-theme-light-border);
}

.badge-dark{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}

.table{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-card-bg);
}

/* .table th,
.table td{
    border-top-color: var(--jerp-theme-border-table);
} */

.table thead th{
    color: var(--jerp-theme-text-primary);
    background: var(--jerp-theme-bg);
    border-bottom-color: var(--jerp-theme-border-table);
}

.table-hover tbody tr:hover,
.table-hover tbody tr:hover > *{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-bg-hover);
}

.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) > *{
    background: var(--jerp-theme-bg-soft);
}

.table-active,
.table-active > th,
.table-active > td,
.table .active,
.table .active > th,
.table .active > td{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-bg-active);
}

.table-primary,
.table-primary > th,
.table-primary > td{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
    --bs-table-bg: var(--jerp-theme-primary-bg);
    --bs-table-color: var(--jerp-theme-primary);
    --bs-table-border-color: var(--jerp-theme-primary-border);
}

.table-secondary,
.table-secondary > th,
.table-secondary > td{
    color: var(--jerp-theme-secondary);
    background: var(--jerp-theme-secondary-bg);
    border-color: var(--jerp-theme-secondary-border);
    --bs-table-bg: var(--jerp-theme-secondary-bg);
    --bs-table-color: var(--jerp-theme-secondary);
    --bs-table-border-color: var(--jerp-theme-secondary-border);
}

.table-success,
.table-success > th,
.table-success > td{
    color: var(--jerp-theme-success);
    background: var(--jerp-theme-success-bg);
    border-color: var(--jerp-theme-success-border);
    --bs-table-bg: var(--jerp-theme-success-bg);
    --bs-table-color: var(--jerp-theme-success);
    --bs-table-border-color: var(--jerp-theme-success-border);
}

.table-danger,
.table-danger > th,
.table-danger > td{
    color: var(--jerp-theme-danger);
    background: var(--jerp-theme-danger-bg);
    border-color: var(--jerp-theme-danger-border);
    --bs-table-bg: var(--jerp-theme-danger-bg);
    --bs-table-color: var(--jerp-theme-danger);
    --bs-table-border-color: var(--jerp-theme-danger-border);
}

.table-warning,
.table-warning > th,
.table-warning > td{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
    border-color: var(--jerp-theme-warning-border);
    --bs-table-bg: var(--jerp-theme-warning-bg);
    --bs-table-color: var(--jerp-theme-warning);
    --bs-table-border-color: var(--jerp-theme-warning-border);
}

.table-info,
.table-info > th,
.table-info > td{
    color: var(--jerp-theme-info);
    background: var(--jerp-theme-info-bg);
    border-color: var(--jerp-theme-info-border);
    --bs-table-bg: var(--jerp-theme-info-bg);
    --bs-table-color: var(--jerp-theme-info);
    --bs-table-border-color: var(--jerp-theme-info-border);
}

.table-light,
.table-light > th,
.table-light > td{
    color: var(--jerp-theme-light-text);
    background: var(--jerp-theme-light-bg);
    border-color: var(--jerp-theme-border-light);
    --bs-table-bg: var(--jerp-theme-light-bg);
    --bs-table-color: var(--jerp-theme-light-text);
    --bs-table-border-color: var(--jerp-theme-border-light);
}

.table-dark,
.table-dark > th,
.table-dark > td{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
    --bs-table-bg: var(--jerp-theme-dark-bg);
    --bs-table-color: var(--jerp-theme-dark-text);
    --bs-table-border-color: var(--jerp-theme-dark-border);
}

.form-control,
.form-select,
.custom-select{
    color: var(--jerp-theme-text-body);
    background-color: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border);
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-control:focus,
.form-select:focus,
.custom-select:focus{
    color: var(--jerp-theme-text-body);
    background-color: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-primary-border-strong);
    box-shadow: 0 0 0 3px var(--jerp-theme-focus-shadow);
    outline: none;
}

.form-control::placeholder{
    color: var(--jerp-theme-text-muted);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled,
.custom-select:disabled{
    color: var(--jerp-theme-disabled-text);
    background-color: var(--jerp-theme-disabled-bg);
    border-color: var(--jerp-theme-disabled-border);
    opacity: 1;
}

.form-control.is-valid,
.was-validated .form-control:valid,
.form-select.is-valid,
.was-validated .form-select:valid,
.custom-select.is-valid,
.was-validated .custom-select:valid{
    border-color: var(--jerp-theme-success-border);
}

.form-control.is-valid:focus,
.was-validated .form-control:valid:focus,
.form-select.is-valid:focus,
.was-validated .form-select:valid:focus,
.custom-select.is-valid:focus,
.was-validated .custom-select:valid:focus{
    border-color: var(--jerp-theme-success);
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.18);
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.was-validated .form-select:invalid,
.custom-select.is-invalid,
.was-validated .custom-select:invalid{
    border-color: var(--jerp-theme-danger-border);
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-select:invalid:focus,
.custom-select.is-invalid:focus,
.was-validated .custom-select:invalid:focus{
    border-color: var(--jerp-theme-danger);
    box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.18);
}

.input-group-text{
    color: var(--jerp-theme-text-secondary);
    background: var(--jerp-theme-bg-soft);
    border-color: var(--jerp-theme-border);
}

.input-group .form-control,
.input-group .form-select,
.input-group .custom-select{
    border-color: var(--jerp-theme-border);
}

.card{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light);
    border-radius: 8px;
    box-shadow: var(--jerp-theme-shadow-sm), var(--jerp-theme-shadow-md);
}

.card-header,
.card-footer{
    color: var(--jerp-theme-text-primary);
    background: var(--jerp-theme-bg-soft);
    border-color: var(--jerp-theme-border-light);
}

.dropdown-menu{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light);
    border-radius: 8px;
    box-shadow: var(--jerp-theme-shadow-pop);
}

.dropdown-item{
    color: var(--jerp-theme-text-body);
    transition: color 0.18s ease, background-color 0.18s ease;
}

.dropdown-item:hover,
.dropdown-item:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
}

.dropdown-item.active,
.dropdown-item:active{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg-hover);
}

.dropdown-item.disabled,
.dropdown-item:disabled{
    color: var(--jerp-theme-disabled-text);
    background: transparent;
}

.dropdown-divider{
    border-top-color: var(--jerp-theme-border-light);
}

.nav-link{
    color: var(--jerp-theme-text-secondary);
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus{
    color: var(--jerp-theme-primary);
}

.nav-link.disabled{
    color: var(--jerp-theme-disabled-text);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
}

.nav-tabs{
    border-bottom-color: var(--jerp-theme-border-light);
}

.nav-tabs > li > a{
    color: var(--jerp-theme-text-secondary);
    background: var(--jerp-theme-bg-soft);
    border-color: transparent;
    border-radius: 8px 8px 0 0;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border) var(--jerp-theme-primary-border) var(--jerp-theme-border-light);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light) var(--jerp-theme-border-light) var(--jerp-theme-card-bg);
}

.nav-tabs .nav-link{
    color: var(--jerp-theme-text-secondary);
    border-color: transparent;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border) var(--jerp-theme-primary-border) var(--jerp-theme-border-light);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light) var(--jerp-theme-border-light) var(--jerp-theme-card-bg);
}

.pagination{
    gap: 4px;
}

.page-link{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border);
    border-radius: 6px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-link:hover,
.page-link:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
    box-shadow: 0 0 0 3px var(--jerp-theme-focus-shadow);
}

.page-item.active .page-link{
    color: #ffffff;
    background: var(--jerp-theme-primary);
    border-color: var(--jerp-theme-primary);
}

.page-item.disabled .page-link{
    color: var(--jerp-theme-disabled-text);
    background: var(--jerp-theme-disabled-bg);
    border-color: var(--jerp-theme-disabled-border);
}

.modal-content{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light);
    border-radius: 8px;
    box-shadow: var(--jerp-theme-shadow-pop);
}

.modal-header,
.modal-footer{
    border-color: var(--jerp-theme-border-light);
}

.modal-title{
    color: var(--jerp-theme-text-primary);
}

.progress{
    background: var(--jerp-theme-secondary-bg);
    border-radius: 999px;
}

.progress-bar{
    color: #ffffff;
    background: var(--jerp-theme-primary);
}

.progress-bar.bg-success{
    background: var(--jerp-theme-success) !important;
}

.progress-bar.bg-info{
    background: var(--jerp-theme-info) !important;
}

.progress-bar.bg-warning{
    background: var(--jerp-theme-warning) !important;
}

.progress-bar.bg-danger{
    background: var(--jerp-theme-danger) !important;
}

.list-group-item{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light);
}

.list-group-item-action{
    color: var(--jerp-theme-text-body);
}

.list-group-item-action:hover,
.list-group-item-action:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
}

.list-group-item.active{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
}

.list-group-item.disabled,
.list-group-item:disabled{
    color: var(--jerp-theme-disabled-text);
    background: var(--jerp-theme-disabled-bg);
}

.list-group-item-primary{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
}

.list-group-item-secondary{
    color: var(--jerp-theme-secondary);
    background: var(--jerp-theme-secondary-bg);
}

.list-group-item-success{
    color: var(--jerp-theme-success);
    background: var(--jerp-theme-success-bg);
}

.list-group-item-danger{
    color: var(--jerp-theme-danger);
    background: var(--jerp-theme-danger-bg);
}

.list-group-item-warning{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
}

.list-group-item-info{
    color: var(--jerp-theme-info);
    background: var(--jerp-theme-info-bg);
}

.list-group-item-light{
    color: var(--jerp-theme-light-text);
    background: var(--jerp-theme-light-bg);
}

.list-group-item-dark{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
}

.text-primary{
    color: var(--jerp-theme-primary) !important;
}

.text-secondary{
    color: var(--jerp-theme-secondary) !important;
}

.text-success{
    color: var(--jerp-theme-success) !important;
}

.text-danger{
    color: var(--jerp-theme-danger) !important;
}

.text-warning{
    color: var(--jerp-theme-warning) !important;
}

.text-info{
    color: var(--jerp-theme-info) !important;
}

.text-light{
    color: var(--jerp-theme-light-text) !important;
}

.text-dark,
.text-body{
    color: var(--jerp-theme-text-body) !important;
}

.text-muted{
    color: var(--jerp-theme-text-muted) !important;
}

.text-white{
    color: #ffffff !important;
}

.bg-primary{
    color: var(--jerp-theme-primary) !important;
    background: var(--jerp-theme-primary-bg) !important;
}

.bg-secondary{
    color: var(--jerp-theme-secondary) !important;
    background: var(--jerp-theme-secondary-bg) !important;
}

.bg-success{
    color: var(--jerp-theme-success) !important;
    background: var(--jerp-theme-success-bg) !important;
}

.bg-danger{
    color: var(--jerp-theme-danger) !important;
    background: var(--jerp-theme-danger-bg) !important;
}

.bg-warning{
    color: var(--jerp-theme-warning) !important;
    background: var(--jerp-theme-warning-bg) !important;
}

.bg-info{
    color: var(--jerp-theme-info) !important;
    background: var(--jerp-theme-info-bg) !important;
}

.bg-light,
.bg-white{
    color: var(--jerp-theme-light-text) !important;
    background: var(--jerp-theme-light-bg) !important;
}

.bg-dark{
    color: var(--jerp-theme-dark-text) !important;
    background: var(--jerp-theme-dark-bg) !important;
}

.border{
    border-color: var(--jerp-theme-border) !important;
}

.border-primary{
    border-color: var(--jerp-theme-primary-border) !important;
}

.border-secondary{
    border-color: var(--jerp-theme-secondary-border) !important;
}

.border-success{
    border-color: var(--jerp-theme-success-border) !important;
}

.border-danger{
    border-color: var(--jerp-theme-danger-border) !important;
}

.border-warning{
    border-color: var(--jerp-theme-warning-border) !important;
}

.border-info{
    border-color: var(--jerp-theme-info-border) !important;
}

.border-light{
    border-color: var(--jerp-theme-border-light) !important;
}

.border-dark{
    border-color: var(--jerp-theme-dark-border) !important;
}

body.dark-mode{
    color: #d9e2ef;
    background: var(--jerp-theme-bg) !important;
    /* Keep Bootstrap theme utilities and components in the dark palette. */
    --jerp-theme-primary: #7dd3fc;
    --jerp-theme-primary-active: #38bdf8;
    --jerp-theme-primary-bg: #12314a;
    --jerp-theme-primary-bg-hover: #164564;
    --jerp-theme-primary-border: #256c94;
    --jerp-theme-primary-border-strong: #38bdf8;
    --jerp-theme-success: #6ee7b7;
    --jerp-theme-success-active: #34d399;
    --jerp-theme-success-bg: #103b32;
    --jerp-theme-success-bg-hover: #155447;
    --jerp-theme-success-border: #28735f;
    --jerp-theme-warning: #fcd34d;
    --jerp-theme-warning-active: #fbbf24;
    --jerp-theme-warning-bg: #473719;
    --jerp-theme-warning-bg-hover: #5e481b;
    --jerp-theme-warning-border: #8a681d;
    --jerp-theme-danger: #fca5a5;
    --jerp-theme-danger-active: #fb7185;
    --jerp-theme-danger-bg: #4a2028;
    --jerp-theme-danger-bg-hover: #622734;
    --jerp-theme-danger-border: #914353;
    --jerp-theme-info: #93c5fd;
    --jerp-theme-info-active: #60a5fa;
    --jerp-theme-info-bg: #18365b;
    --jerp-theme-info-bg-hover: #204977;
    --jerp-theme-info-border: #38679c;
    --jerp-theme-secondary: #cbd5e1;
    --jerp-theme-secondary-active: #94a3b8;
    --jerp-theme-secondary-bg: #3b485a;
    --jerp-theme-secondary-bg-hover: #46566b;
    --jerp-theme-secondary-border: #53657d;
    --jerp-theme-light-text: #e2e8f0;
    --jerp-theme-light-bg: #3b485a;
    --jerp-theme-light-bg-hover: #46566b;
    --jerp-theme-light-border: #53657d;
    --jerp-theme-dark-text: #e2e8f0;
    --jerp-theme-dark-bg: #2b3647;
    --jerp-theme-dark-bg-hover: #3b4b60;
    --jerp-theme-dark-border: #64748b;
    --jerp-theme-text-primary: #e8edf4;
    --jerp-theme-text-body: #d9e2ef;
    --jerp-theme-text-secondary: #cbd5e1;
    --jerp-theme-text-muted: #b2becf;
    --jerp-theme-border: #64748b;
    --jerp-theme-border-light: #4b5b70;
    --jerp-theme-border-table: #4b5b70;
    --jerp-theme-bg: #2b3442;
    --jerp-theme-bg-soft: #303d50;
    --jerp-theme-bg-hover: #3b4b60;
    --jerp-theme-bg-active: #344e6b;
    --jerp-theme-card-bg: #354152;
    --jerp-theme-disabled-bg: #3b485a;
    --jerp-theme-disabled-text: #7f8ea3;
    --jerp-theme-disabled-border: #475569;
    --jerp-theme-focus-shadow: rgba(125, 211, 252, 0.24);
    --jerp-theme-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --jerp-theme-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.24);
    --jerp-theme-shadow-pop: 0 14px 30px rgba(0, 0, 0, 0.42);
    --bs-primary: var(--jerp-theme-primary);
    --bs-secondary: var(--jerp-theme-secondary);
    --bs-success: var(--jerp-theme-success);
    --bs-info: var(--jerp-theme-info);
    --bs-warning: var(--jerp-theme-warning);
    --bs-danger: var(--jerp-theme-danger);
    --bs-light: var(--jerp-theme-light-bg);
    --bs-dark: var(--jerp-theme-dark-text);
    --bs-body-color: var(--jerp-theme-text-body);
    --bs-body-bg: var(--jerp-theme-bg);
    --bs-border-color: var(--jerp-theme-border);
    --bs-primary-rgb: 125, 211, 252;
    --bs-secondary-rgb: 203, 213, 225;
    --bs-success-rgb: 110, 231, 183;
    --bs-info-rgb: 147, 197, 253;
    --bs-warning-rgb: 252, 211, 77;
    --bs-danger-rgb: 252, 165, 165;
    --bs-light-rgb: 59, 72, 90;
    --bs-dark-rgb: 43, 54, 71;
}

body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:focus,
body.dark-mode .btn-primary.focus,
body.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-outline-primary:focus,
body.dark-mode .btn-outline-primary.focus{
    color: var(--jerp-theme-primary) !important;
    background: var(--jerp-theme-primary-bg-hover) !important;
    border-color: var(--jerp-theme-primary-border) !important;
}

body.dark-mode .btn-outline-primary{
    color: var(--jerp-theme-primary) !important;
    background: var(--jerp-theme-primary-bg) !important;
    border-color: var(--jerp-theme-primary-border) !important;
}

body.dark-mode .btn-outline-secondary{
    color: var(--jerp-theme-secondary) !important;
    background: var(--jerp-theme-secondary-bg) !important;
    border-color: var(--jerp-theme-secondary-border) !important;
}

body.dark-mode .btn-outline-success{
    color: var(--jerp-theme-success) !important;
    background: var(--jerp-theme-success-bg) !important;
    border-color: var(--jerp-theme-success-border) !important;
}

body.dark-mode .btn-outline-danger{
    color: var(--jerp-theme-danger) !important;
    background: var(--jerp-theme-danger-bg) !important;
    border-color: var(--jerp-theme-danger-border) !important;
}

body.dark-mode .btn-outline-warning{
    color: var(--jerp-theme-warning) !important;
    background: var(--jerp-theme-warning-bg) !important;
    border-color: var(--jerp-theme-warning-border) !important;
}

body.dark-mode .btn-outline-info{
    color: var(--jerp-theme-info) !important;
    background: var(--jerp-theme-info-bg) !important;
    border-color: var(--jerp-theme-info-border) !important;
}

body.dark-mode .btn-outline-light{
    color: var(--jerp-theme-light-text) !important;
    background: var(--jerp-theme-light-bg) !important;
    border-color: var(--jerp-theme-light-border) !important;
}

body.dark-mode .btn-outline-dark{
    color: var(--jerp-theme-dark-text) !important;
    background: var(--jerp-theme-dark-bg) !important;
    border-color: var(--jerp-theme-dark-border) !important;
}

body.dark-mode .btn-secondary:hover,
body.dark-mode .btn-secondary:focus,
body.dark-mode .btn-secondary.focus,
body.dark-mode .btn-outline-secondary:hover,
body.dark-mode .btn-outline-secondary:focus,
body.dark-mode .btn-outline-secondary.focus{
    color: var(--jerp-theme-secondary) !important;
    background: var(--jerp-theme-secondary-bg-hover) !important;
    border-color: var(--jerp-theme-secondary-border) !important;
}

body.dark-mode .btn-success:hover,
body.dark-mode .btn-success:focus,
body.dark-mode .btn-success.focus,
body.dark-mode .stock-odj-pre-search-primary .stock-odj-pre-clear-btn.btn-success:hover,
body.dark-mode .stock-odj-pre-search-primary .stock-odj-pre-clear-btn.btn-success:focus,
body.dark-mode .produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-success:hover,
body.dark-mode .produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-success:focus,
body.dark-mode .btn-outline-success:hover,
body.dark-mode .btn-outline-success:focus,
body.dark-mode .btn-outline-success.focus{
    color: var(--jerp-theme-success) !important;
    background: var(--jerp-theme-success-bg-hover) !important;
    border-color: var(--jerp-theme-success-border) !important;
}

body.dark-mode .btn-danger:hover,
body.dark-mode .btn-danger:focus,
body.dark-mode .btn-danger.focus,
body.dark-mode .produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-danger:hover,
body.dark-mode .produce-more-menu.stock-odj-pre-more-menu .produce-action-btn.btn-danger:focus,
body.dark-mode .stock-odj-more-menu .produce-action-btn.btn-danger:hover,
body.dark-mode .stock-odj-more-menu .produce-action-btn.btn-danger:focus,
body.dark-mode .web-sell-more-menu .produce-action-btn.btn-danger:hover,
body.dark-mode .web-sell-more-menu .produce-action-btn.btn-danger:focus,
body.dark-mode .btn-outline-danger:hover,
body.dark-mode .btn-outline-danger:focus,
body.dark-mode .btn-outline-danger.focus{
    color: var(--jerp-theme-danger) !important;
    background: var(--jerp-theme-danger-bg-hover) !important;
    border-color: var(--jerp-theme-danger-border) !important;
}

body.dark-mode .btn-warning:hover,
body.dark-mode .btn-warning:focus,
body.dark-mode .btn-warning.focus,
body.dark-mode .stock-returned-more-menu .produce-action-btn.btn-warning:hover,
body.dark-mode .stock-returned-more-menu .produce-action-btn.btn-warning:focus,
body.dark-mode .web-sell-more-menu .produce-action-btn.btn-warning:hover,
body.dark-mode .web-sell-more-menu .produce-action-btn.btn-warning:focus,
body.dark-mode .btn-outline-warning:hover,
body.dark-mode .btn-outline-warning:focus,
body.dark-mode .btn-outline-warning.focus{
    color: var(--jerp-theme-warning) !important;
    background: var(--jerp-theme-warning-bg-hover) !important;
    border-color: var(--jerp-theme-warning-border) !important;
}

body.dark-mode .btn-info:hover,
body.dark-mode .btn-info:focus,
body.dark-mode .btn-info.focus,
body.dark-mode .btn-outline-info:hover,
body.dark-mode .btn-outline-info:focus,
body.dark-mode .btn-outline-info.focus{
    color: var(--jerp-theme-info) !important;
    background: var(--jerp-theme-info-bg-hover) !important;
    border-color: var(--jerp-theme-info-border) !important;
}

body.dark-mode .btn-light:hover,
body.dark-mode .btn-light:focus,
body.dark-mode .btn-light.focus,
body.dark-mode .btn-outline-light:hover,
body.dark-mode .btn-outline-light:focus,
body.dark-mode .btn-outline-light.focus{
    color: var(--jerp-theme-light-text) !important;
    background: var(--jerp-theme-light-bg-hover) !important;
    border-color: var(--jerp-theme-light-border) !important;
}

body.dark-mode .btn-dark:hover,
body.dark-mode .btn-dark:focus,
body.dark-mode .btn-dark.focus,
body.dark-mode .btn-outline-dark:hover,
body.dark-mode .btn-outline-dark:focus,
body.dark-mode .btn-outline-dark.focus{
    color: var(--jerp-theme-dark-text) !important;
    background: var(--jerp-theme-dark-bg-hover) !important;
    border-color: var(--jerp-theme-dark-border) !important;
}

body.dark-mode .index_page{
    background: var(--jerp-theme-bg) !important;
}

body.dark-mode .main_logo,
body.dark-mode .main_mb_btn{
    color: #d9e2ef;
}

body.dark-mode .user-info-name,
body.dark-mode .notification-title,
body.dark-mode .notification-item-title,
body.dark-mode #indexsellbox .dashboard-card-title,
body.dark-mode #indexsellbox .invoice-status-row,
body.dark-mode #indexsellbox .indexsellbox_list span,
body.dark-mode .set_menu_label{
    color: #f8fafc;
}

body.dark-mode .notification-count,
body.dark-mode .notification-item-text,
body.dark-mode .notification-item-time,
body.dark-mode #indexsellbox .dashboard-card-subtitle{
    color: var(--jerp-theme-text-muted);
}

body.dark-mode .theme-toggle,
body.dark-mode .notification-toggle,
body.dark-mode .user-info-btn,
body.dark-mode .sheet-list-tools-toggle,
body.dark-mode .sheet-list-ai-toggle,
body.dark-mode .sheet-list-tools-close,
body.dark-mode .sheet-list-submenu-toggle,
body.dark-mode .set_menu_toggle{
    color: #cbd5e1 !important;
    background: transparent !important;
}

body.dark-mode .sheet-list-tools-close{
    border: 1px solid #cbd5e138;
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .notification-toggle:hover,
body.dark-mode .user-info-btn:hover,
body.dark-mode .sheet-list-tools-toggle:hover,
body.dark-mode .sheet-list-ai-toggle:hover,
body.dark-mode .sheet-list-tools-close:hover,
body.dark-mode .sheet-list-submenu-toggle:hover,
body.dark-mode .set_menu_toggle:hover{
    background: rgb(148 163 184 / 38%) !important;
    color: #f8fafc !important;
}

body.dark-mode .sheet-list-tools-close:focus-visible{
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

body.dark-mode .notification-dropdown.is-open .notification-toggle,
body.dark-mode .user-info-dropdown.is-open .user-info-btn,
body.dark-mode .sheet-list-tools-toggle.is-open,
body.dark-mode .sheet-list-ai-toggle.is-open,
body.dark-mode .sheet-list-submenu-toggle.is-open,
body.dark-mode .set_menu_toggle.is-active{
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

body.dark-mode .notification-panel,
body.dark-mode .user-info-menu,
body.dark-mode .set_menu_panel{
    background: var(--jerp-theme-card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
}

body.dark-mode .modal #advsearch_form td{
    border-top-color: transparent;
}

body.dark-mode .modal-header{
    color: #f8fafc;
    background: var(--jerp-theme-bg-soft) !important;
    border-bottom-color: var(--jerp-theme-border) !important;
}

body.dark-mode .modal-header .modal-title,
body.dark-mode .modal-header .close{
    color: #f8fafc;
    text-shadow: none;
}

body.dark-mode .modal-header .close{
    opacity: 0.85;
}

body.dark-mode .modal-header .close:hover,
body.dark-mode .modal-header .close:focus{
    opacity: 1;
}

body.dark-mode.sheet-list-page .sheet-list-tools-panel,
body.dark-mode.sheet-list-page .list_btn{
    background: var(--jerp-theme-card-bg) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #e2e8f0;
}

body.dark-mode.sheet-list-page .sheet-list-tools-panel label,
body.dark-mode.sheet-list-page .sheet-list-tools-panel span,
body.dark-mode.sheet-list-page .sheet-list-tools-panel div,
body.dark-mode.sheet-list-page .sheet-list-tools-panel form,
body.dark-mode.sheet-list-page .list_btn label,
body.dark-mode.sheet-list-page .list_btn span,
body.dark-mode.sheet-list-page .list_btn div,
body.dark-mode.sheet-list-page .list_btn form{
    color: #e2e8f0;
}

body.dark-mode.sheet-list-page .sheet-list-tools-panel .form-control,
body.dark-mode.sheet-list-page .list_btn .form-control{
    background: var(--jerp-theme-dark-bg);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

body.dark-mode.sheet-list-page .sheet-list-tools-panel .form-control::placeholder,
body.dark-mode.sheet-list-page .list_btn .form-control::placeholder{
    color: var(--jerp-theme-text-muted);
}

body.dark-mode .main_pageselect{
    background: var(--jerp-theme-bg) !important;
    border-color: rgba(148, 163, 184, 0.18);
    color: #d9e2ef;
}

body.dark-mode .main_content{
    background: var(--jerp-theme-bg) !important;
}

body.dark-mode .sheet-list-loading{
    color: #cbd5e1;
}

body.dark-mode .sheet-list-loading-spinner{
    border-color: rgba(56, 189, 248, .2);
    border-top-color: #38bdf8;
    border-right-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, .16);
}

body.dark-mode .main_pageselect,
body.dark-mode .main_pageselect span,
body.dark-mode .main_pageselect label{
    color: #d9e2ef;
}

body.dark-mode .main_pageselect .page-link{
    color: #e2e8f0;
    background: var(--jerp-theme-card-bg);
    border-color: rgba(148, 163, 184, 0.24);
}

body.dark-mode .pagination a{
    color: #e2e8f0;
}

body.dark-mode .main_pageselect .page-link:hover,
body.dark-mode .main_pageselect .page-link:focus{
    color: #f8fafc;
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.42);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18);
}

body.dark-mode .main_pageselect .page-item.active .page-link{
    color: #f8fafc;
    background: #7dd3fc;
    border-color: #7dd3fc;
}

body.dark-mode .main_pageselect .page-item.disabled .page-link{
    color: #64748b;
    background: var(--jerp-theme-disabled-bg);
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark-mode .main_pageselect .form-control,
body.dark-mode .main_pageselect .custom-select,
body.dark-mode .main_pageselect select,
body.dark-mode .main_pageselect input{
    background: var(--jerp-theme-dark-bg);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

body.dark-mode .notification-header,
body.dark-mode .notification-item + .notification-item,
body.dark-mode .user-info-menu .login_box li,
body.dark-mode .user-info-menu .mb_btn_body li,
body.dark-mode .user-info-menu .mb_btn_body{
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .notification-item,
body.dark-mode .user-info-menu .login_box li a,
body.dark-mode .user-info-menu .mb_btn_body li a{
    color: #e2e8f0;
}

body.dark-mode .notification-item:hover,
body.dark-mode .user-info-menu .login_box li a:hover,
body.dark-mode .user-info-menu .mb_btn_body li a:hover,
body.dark-mode .set_menu_link:hover{
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
}

body.dark-mode .set_menu_link.active{
    background: rgba(59, 130, 246, 0.2);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.26);
}

body.dark-mode .page-name{
    color: #f8fafc;
}

body.dark-mode .sheet-list-submenu-area .main_menu{
    background: var(--jerp-theme-card-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
}

body.dark-mode .sheet-list-submenu-area .main_menu .badge{
    color: #f8fafc;
}

body.dark-mode .sheet-list-submenu-area .main_menu li{
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .sheet-list-submenu-area .main_menu li a{
    color: #e2e8f0;
}

body.dark-mode .sheet-list-submenu-area .main_menu li a:hover{
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
}

body.dark-mode .sheet-list-submenu-area .main_menu li.active a{
    background: rgba(59, 130, 246, 0.2);
    color: #7dd3fc;
}

body.dark-mode .sheet-list-submenu-content .main_menu{
    background: var(--jerp-theme-card-bg);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    scrollbar-color: rgba(148, 163, 184, 0.65) transparent;
}

body.dark-mode .sheet-list-submenu-content .main_menu li a{
    color: #e2e8f0;
}

body.dark-mode .sheet-list-submenu-content .main_menu li a:hover{
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
}

body.dark-mode .sheet-list-submenu-content .main_menu li.active a{
    color: #7dd3fc;
}

body.dark-mode .sheet-list-submenu-content .main_menu li.active a::before{
    background-color: #7dd3fc;
}

body.dark-mode .sheet-list-submenu-content .main_menu::-webkit-scrollbar-thumb{
    background: rgba(148, 163, 184, 0.65);
}

body.dark-mode .notification-item-icon-system{
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

body.dark-mode .notification-item-icon-warning{
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

body.dark-mode .notification-item-icon-ai{
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

body.dark-mode .set_menu_visual{
    background: #334155;
}

body.dark-mode .set_menu_visual i{
    color: #cbd5e1;
}

body.dark-mode #indexsellbox .dashboard-card{
    background: var(--jerp-theme-card-bg);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

body.dark-mode #indexsellbox .dashboard-card-header{
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

body.dark-mode #indexsellbox .manual-link-item,
body.dark-mode #indexsellbox .dashboard-report-btn{
    color: #dbeafe;
    background: var(--jerp-theme-secondary-bg);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode #indexsellbox .manual-link-item:hover,
body.dark-mode #indexsellbox .dashboard-report-btn:hover{
    color: #7dd3fc !important;
    background: var(--jerp-theme-bg-hover) !important;
    border-color: rgba(125, 211, 252, 0.32) !important;
}

body.dark-mode #indexsellbox .report-dashboard-card .nav-tabs{
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .nav-tabs > li.active > a,
body.dark-mode .nav-tabs > li.active > a:hover,
body.dark-mode .nav-tabs > li.active > a:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border) var(--jerp-theme-primary-border) var(--jerp-theme-border-light);
}


body.dark-mode.nav-tabs > li > a:hover,
body.dark-mode.nav-tabs > li > a:focus{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}


body.dark-mode .badge{
    color: var(--jerp-theme-dark-text);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}

body.dark-mode .badge-primary,
body.dark-mode .badge-info{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
}

body.dark-mode .badge-secondary{
    color: var(--jerp-theme-secondary);
    background: var(--jerp-theme-secondary-bg);
    border-color: var(--jerp-theme-secondary-border);
}

body.dark-mode .badge-success{
    color: var(--jerp-theme-success);
    background: var(--jerp-theme-success-bg);
    border-color: var(--jerp-theme-success-border);
}

body.dark-mode .badge-danger{
    color: var(--jerp-theme-danger);
    background: var(--jerp-theme-danger-bg);
    border-color: var(--jerp-theme-danger-border);
}

body.dark-mode .badge-warning{
    color: var(--jerp-theme-warning);
    background: var(--jerp-theme-warning-bg);
    border-color: var(--jerp-theme-warning-border);
}

body.dark-mode .badge-light,
body.dark-mode .badge-dark{
    color: var(--jerp-theme-light-text);
    background: var(--jerp-theme-light-bg);
    border-color: var(--jerp-theme-light-border);
}

body.dark-mode .produce-more-menu{
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border);
    box-shadow: var(--jerp-theme-shadow-pop);
}

body.dark-mode .produce-more-menu .produce-action-btn{
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

body.dark-mode .produce-more-menu .produce-action-btn:hover,
body.dark-mode .produce-more-menu .produce-action-btn:focus{
    box-shadow: 0 2px 6px rgba(125, 211, 252, 0.18);
}

body.dark-mode .storecus-search-summary{
    color: var(--jerp-theme-text-primary);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border);
}

body.dark-mode .storecus-search-primary .search_btn,
body.dark-mode .storecus-o-search-primary .search_btn{
    color: var(--jerp-theme-info) !important;
    background: var(--jerp-theme-info-bg) !important;
    border-color: var(--jerp-theme-info-border) !important;
}

body.dark-mode .storecus-search-primary .search_btn:hover,
body.dark-mode .storecus-search-primary .search_btn:focus,
body.dark-mode .storecus-search-primary .search_btn:active,
body.dark-mode .storecus-o-search-primary .search_btn:hover,
body.dark-mode .storecus-o-search-primary .search_btn:focus,
body.dark-mode .storecus-o-search-primary .search_btn:active{
    color: var(--jerp-theme-info) !important;
    background: var(--jerp-theme-info-bg-hover) !important;
    border-color: var(--jerp-theme-info-border) !important;
}

body.dark-mode .def-scroll-filter-panel{
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border);
    box-shadow: var(--jerp-theme-shadow-pop);
}

body.dark-mode .b2b-cus-filter-panel{
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border);
    box-shadow: var(--jerp-theme-shadow-pop);
}

body.dark-mode .def-scroll-filter-title,
body.dark-mode .b2b-cus-filter-title
{
    color: var(--jerp-theme-text-primary);
}

body.dark-mode .def-scroll-filter-input,
body.dark-mode .b2b-cus-filter-input{
    color: var(--jerp-theme-text-body);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}

body.dark-mode .def-scroll-filter-input:focus,
body.dark-mode .b2b-cus-filter-input:focus{
    border-color: var(--jerp-theme-primary-border-strong);
    box-shadow: 0 0 0 3px var(--jerp-theme-focus-shadow);
}

body.dark-mode .def-scroll-filter-actions button,
body.dark-mode .b2b-cus-filter-actions button{
    color: var(--jerp-theme-text-secondary);
    background: var(--jerp-theme-dark-bg);
    border-color: var(--jerp-theme-dark-border);
}

body.dark-mode .def-scroll-filter-actions button:hover,
body.dark-mode .def-scroll-filter-actions button:focus,
body.dark-mode .b2b-cus-filter-actions button:hover,
body.dark-mode .b2b-cus-filter-actions button:focus{
    color: var(--jerp-theme-primary);
    background: var(--jerp-theme-primary-bg);
    border-color: var(--jerp-theme-primary-border);
}

body.dark-mode .def-scroll-filter-apply,
body.dark-mode .b2b-cus-filter-apply{
    color: #0f172a !important;
    background: var(--jerp-theme-primary-active) !important;
    border-color: var(--jerp-theme-primary-active) !important;
}

body.dark-mode .def-scroll-filter-apply:hover,
body.dark-mode .def-scroll-filter-apply:focus,
body.dark-mode .b2b-cus-filter-apply:hover,
body.dark-mode .b2b-cus-filter-apply:focus{
    color: #0f172a !important;
    background: var(--jerp-theme-primary) !important;
    border-color: var(--jerp-theme-primary) !important;
}

body.dark-mode .new_system_table_wrap{
    background: var(--jerp-theme-bg);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.dark-mode .table,
body.dark-mode .mstable,
body.dark-mode .main_menu li a,
body.dark-mode .main_system_btn a{
    color: #d9e2ef;
}

body.dark-mode .mstable{
    background-color: var(--jerp-theme-dark-bg);
}

body.dark-mode #list_table_wrapper table{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode #list_table_wrapper table th,
body.dark-mode #list_table_wrapper table td{
    background: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd){
    background-color: rgba(255, 255, 255, 0.04);
}

body.dark-mode .table-hover tbody tr:hover{
    background-color: rgba(125, 211, 252, 0.1);
}

body.dark-mode :is(#list_table,[data-jerp-list-table]){
    color: #d9e2ef;
    background-color: var(--jerp-theme-dark-bg);
}

body.dark-mode :is(#list_table,[data-jerp-list-table]) tbody td,
body.dark-mode :is(#list_table,[data-jerp-list-table]) tbody th{
    color: #d9e2ef;
    background-color: var(--jerp-theme-dark-bg);
    border-color: rgba(148, 163, 184, 0.14);
}

body.dark-mode :is(#list_table,[data-jerp-list-table]) tbody tr:nth-of-type(even) td,
body.dark-mode :is(#list_table,[data-jerp-list-table]) tbody tr:nth-of-type(even) th{
    background-color: var(--jerp-theme-bg-soft);
}

body.dark-mode :is(#list_table,[data-jerp-list-table]) tbody tr:hover td,
body.dark-mode :is(#list_table,[data-jerp-list-table]) tbody tr:hover th{
    background-color: var(--jerp-theme-bg-hover);
}

body.dark-mode :is(#list_table,[data-jerp-list-table]) thead th{
    background: var(--jerp-theme-card-bg);
    color: #e5e7eb;
    border-bottom-color: rgba(148, 163, 184, 0.18);
    border-right-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .thead-light th,
body.dark-mode .thead-light td{
    color: #e5e7eb;
    background: var(--jerp-theme-card-bg);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .thead-light th a,
body.dark-mode .thead-light td a{
    color: #e5e7eb;
}

body.dark-mode .thead-light th a:hover,
body.dark-mode .thead-light td a:hover{
    color: #7dd3fc;
}

body.dark-mode :is(#list_table,[data-jerp-list-table]) thead th a{
    color: #e5e7eb;
}

body.dark-mode :is(#list_table,[data-jerp-list-table]) thead th a:hover{
    color: #7dd3fc;
}

@media (max-width: 575.98px){
    .main_mb_btn{
        gap: 8px;
    }

    .main_mb_btn .user-info-dropdown,
    .theme-toggle-row,
    .notification-dropdown,
    .login_info_set_menu_row{
        margin-top: 4px;
    }

    .notification-panel{
        width: min(320px, calc(100vw - 16px));
    }

    .set_menu_panel{
        width: min(320px, calc(100vw - 16px));
        border-radius: 20px;
    }

    .set_menu_panel .set_menu{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #indexsellbox{
        padding: 8px;
    }

    #indexsellbox .dashboard-layout{
        gap: 16px 0;
    }
}

@media (max-width: 767.98px){
    #indexsellbox .dashboard-card-header{
        align-items: flex-start;
        flex-direction: column;
    }

    #indexsellbox .manual-link-grid{
        grid-template-columns: 1fr;
    }

    #indexsellbox .indexsellbox_list.form-inline,
    #indexsellbox .indexsellbox_list .form-inline,
    #indexsellbox .invoice-status-row{
        display: block;
    }

    #indexsellbox .indexsellbox_list .form-group{
        margin-bottom: 10px;
    }
}

body.sheet-list-page i.fa-check-circle,
body.sheet-list-page .fa-check-circle,
body.sheet-list-page i.fa-check-circle::before,
body.sheet-list-page .fa-check-circle::before,
body.sheet-list-page .text-success i.fa-check-circle,
body.sheet-list-page .text-success .fa-check-circle{
    color: #67c23a !important;
    -webkit-text-fill-color: #67c23a !important;
}

body.sheet-list-page .new-wrap .purchase-ai-shift-canvas{
    opacity: 0 !important;
}

body.sheet-list-page .new-wrap .purchase-chat-pane,
body.sheet-list-page .new-wrap .purchase-ai-cover,
body.sheet-list-page .new-wrap .purchase-ai-chat{
    backface-visibility: hidden;
    transform: translateZ(0);
}

body.sheet-list-page .new-wrap .purchase-ai-cover,
body.sheet-list-page .new-wrap .purchase-ai-chat{
    display: flex !important;
    transition: opacity .22s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear;
    will-change: opacity, transform;
}

body.sheet-list-page .new-wrap .purchase-ai-cover{
    position: absolute !important;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    border: 1px solid var(--jerp-theme-border) !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
    box-shadow: var(--jerp-theme-shadow-md) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-chat{
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0,0,0) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-pane .purchase-ai-cover{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0);
    transition-delay: 0s, 0s, 0s;
}

body.sheet-list-page .new-wrap .purchase-chat-pane .purchase-ai-chat{
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    transform: translate3d(0,0,0) !important;
    transition-delay: 0s, 0s, .22s;
}

body.sheet-list-page .new-wrap .purchase-chat-pane.is-chat-open.is-cover-hidden .purchase-ai-cover{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0,0px,0);
    transition-delay: 0s, 0s, .22s;
}

body.sheet-list-page .new-wrap .purchase-chat-pane.is-chat-open.is-cover-hidden .purchase-ai-chat{
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translate3d(0,0,0) !important;
    transition-delay: .04s, .04s, 0s;
}

body.sheet-list-page .new-wrap .purchase-ai-cover:before{
    background:
        radial-gradient(circle at 52% 32%, rgba(64, 158, 255, 0.14), transparent 36%),
        radial-gradient(circle at 84% 14%, rgba(103, 194, 58, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(236, 245, 255, 0.7) 100%) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-cover:after{
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 0 0 rgba(0,0,0,0) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-cover-close{
    color: #606266 !important;
}

body.sheet-list-page .new-wrap .purchase-ai-cover-close:hover{
    color: var(--jerp-theme-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-cover-points,
body.sheet-list-page .new-wrap .purchase-ai-cover-title,
body.sheet-list-page .new-wrap .purchase-ai-cover-bubble{
    color: var(--jerp-theme-text-primary) !important;
}


body.sheet-list-page .new-wrap .purchase-ai-cover-qrcode{
    border: 1px solid var(--jerp-theme-border) !important;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.sheet-list-page .new-wrap .purchase-ai-character,
body.sheet-list-page .new-wrap .purchase-ai-cover-character{
    filter: drop-shadow(0 14px 18px rgba(148, 163, 184, 0.22)) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-chat{
    border: 1px solid var(--jerp-theme-border) !important;
    background: #ffffff !important;
    box-shadow: var(--jerp-theme-shadow-md) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-header{
    background: linear-gradient(135deg, #f7fbff 0%, #edf4ff 58%, #f9fbff 100%) !important;
    border-bottom: 1px solid #dbe7f6 !important;
}

body.sheet-list-page .new-wrap .purchase-chat-header:before{
    box-shadow: inset 0 0 24px rgba(64, 158, 255, 0.08) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-hero{
    background: radial-gradient(circle at 55% 72%, rgba(64, 158, 255, 0.14), transparent 44%) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-orbit{
    border-color: rgba(64, 158, 255, 0.22) !important;
    box-shadow: 0 0 18px rgba(64, 158, 255, 0.12) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-title strong,
body.sheet-list-page .new-wrap .purchase-ai-status strong,
body.sheet-list-page .new-wrap .purchase-ai-title .remain-point{
    color: var(--jerp-theme-text-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-title strong span{
    color: #7c5cff !important;
}

body.sheet-list-page .new-wrap .purchase-ai-title em,
body.sheet-list-page .new-wrap .purchase-ai-status,
body.sheet-list-page .new-wrap .purchase-ai-status small{
    color: var(--jerp-theme-text-secondary) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-status-dot{
    background: var(--jerp-theme-success) !important;
    box-shadow: 0 0 12px rgba(103, 194, 58, 0.36) !important;
}

body.sheet-list-page .new-wrap .purchase-ai-toggle{
    color: #667085 !important;
}

body.sheet-list-page .new-wrap .purchase-ai-toggle:hover{
    color: var(--jerp-theme-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-messages{
    background: #f8fbff !important;
}

body.sheet-list-page .new-wrap .purchase-chat-avatar{
    border: 1px solid #cfe0f6 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.1) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-bubble.is-ai{
    border: 1px solid #d8e6f8 !important;
    background: #ffffff !important;
    color: var(--jerp-theme-text-primary) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-bubble.is-user{
    background: var(--jerp-theme-primary-bg) !important;
    color: var(--jerp-theme-primary) !important;
    border: 1px solid var(--jerp-theme-primary-border) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-save-btn{
    border: 1px solid #dbe7f6 !important;
    background: #f8fbff !important;
    color: var(--jerp-theme-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-save-btn:hover{
    border-color: var(--jerp-theme-primary-border) !important;
    background: var(--jerp-theme-primary-bg) !important;
    color: var(--jerp-theme-primary-active) !important;
}

body.sheet-list-page .new-wrap .purchase-suggest-card{
    border: 1px solid #d8e6f8 !important;
    background: #ffffff !important;
    color: var(--jerp-theme-text-primary) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
}

body.sheet-list-page .new-wrap .purchase-suggest-card-title{
    border-bottom: 1px solid #e4edf9 !important;
    color: var(--jerp-theme-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-suggest-card-body{
    color: var(--jerp-theme-text-secondary) !important;
}

body.sheet-list-page .new-wrap .purchase-suggest-actions button{
    border: 1px solid var(--jerp-theme-primary-border) !important;
    background: var(--jerp-theme-primary-bg) !important;
    color: var(--jerp-theme-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-input{
    background: #ffffff !important;
    border-top: 1px solid #dbe7f6 !important;
}

body.sheet-list-page .new-wrap .purchase-chat-input input{
    border: 1px solid var(--jerp-theme-border) !important;
    background: #f8fbff !important;
    color: var(--jerp-theme-text-primary) !important;
}

body.sheet-list-page .new-wrap .purchase-chat-input input::placeholder{
    color: #98a2b3 !important;
}

body.sheet-list-page .new-wrap .purchase-chat-input button{
    background: var(--jerp-theme-primary-bg) !important;
    color: var(--jerp-theme-primary) !important;
    border: 1px solid var(--jerp-theme-primary-border) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-shift-canvas{
    opacity: 0.45 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover{
    border-color: var(--jerp-theme-border) !important;
    background-image: radial-gradient(circle, #6879a8 0.8px, transparent 0.8px), radial-gradient(circle, #6879a8 0.8px, var(--jerp-theme-dark-bg) 0.8px) !important;
    background-size: 5px 20px, 20px 5px !important;
    background-position: -2.5px -10px, -10px -2.5px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.26) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover:before{
    background:
        radial-gradient(circle at 50% 42%,rgba(34,211,238,.08),transparent 38%),
        radial-gradient(circle at 82% 18%,rgba(129,140,248,.16),transparent 30%),
        linear-gradient(180deg,rgba(43,54,71,.18) 0%,rgba(43,54,71,.5) 100%) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover:after{
    box-shadow: inset 0 0 24px rgba(34,211,238,.07),0 0 20px rgba(20,184,166,.08) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover-close,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover-points,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover-title,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-cover-bubble,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-title strong,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-status strong,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-title .remain-point{
    color: #f8fafc !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-chat{
    border-color: var(--jerp-theme-border) !important;
    background: var(--jerp-theme-card-bg) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.26) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-header{
    background: radial-gradient(circle at 72% 30%,rgba(124,58,237,.18),transparent 42%),linear-gradient(105deg,#354152 0%,#3d405e 56%,#303d50 100%) !important;
    border-bottom-color: var(--jerp-theme-border) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-header:before{
    box-shadow: inset 0 0 26px rgba(59,130,246,.18) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-hero{
    background: radial-gradient(circle at 55% 72%,rgba(34,211,238,.28),transparent 42%) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-orbit{
    border-color: rgba(34,211,238,.2) !important;
    box-shadow: 0 0 24px rgba(34,211,238,.12) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-status,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-status small,
body.dark-mode.sheet-list-page .new-wrap .purchase-ai-title em{
    color: #cbd5e1 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-ai-toggle{
    color: #dce7f5 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-messages{
    background: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-avatar{
    border-color: rgba(34,211,238,.5) !important;
    background: var(--jerp-theme-card-bg) !important;
    box-shadow: 0 0 12px rgba(34,211,238,.18) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-bubble.is-ai{
    border-color: var(--jerp-theme-border) !important;
    background: var(--jerp-theme-card-bg) !important;
    color: #dce7f5 !important;
    box-shadow: none !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-bubble.is-user{
    background: #1d4ed8 !important;
    color: #eff6ff !important;
    border-color: #1d4ed8 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-save-btn{
    border-color: #31516a !important;
    background: var(--jerp-theme-bg-soft) !important;
    color: #93c5fd !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-suggest-card{
    border-color: #31516a !important;
    background: var(--jerp-theme-bg-soft) !important;
    color: #dbeafe !important;
    box-shadow: none !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-suggest-card-title{
    border-bottom-color: #31516a !important;
    color: #67e8f9 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-suggest-card-body{
    color: #cbd5e1 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-suggest-actions button{
    border-color: #38bdf8 !important;
    background: #0f3a52 !important;
    color: #e0f2fe !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-input{
    background: var(--jerp-theme-card-bg) !important;
    border-top-color: var(--jerp-theme-border) !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-input input{
    border-color: var(--jerp-theme-border) !important;
    background: var(--jerp-theme-dark-bg) !important;
    color: #dce7f5 !important;
}

body.dark-mode.sheet-list-page .new-wrap .purchase-chat-input button{
    background: #14b8a6 !important;
    color: #042f2e !important;
    border-color: #14b8a6 !important;
}

body.sheet-list-page #main_content.main-content-layout{
    position: relative !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background-color: #fff;
}

body.sheet-list-page #main_content.main-content-layout #main_content_left.main-content-left{
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 70% !important;
    padding-right: 0 !important;
}

body.sheet-list-page #main_content.main-content-layout.is-ai-collapsed #main_content_left.main-content-left{
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
}

body.sheet-list-page #main_content.main-content-layout > .main-content-right{
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 45 !important;
    flex: none !important;
    width: 30% !important;
    min-width: 0 !important;
    max-width: 30% !important;
    opacity: 1 !important;
    transform: translate3d(0,0,0) !important;
    pointer-events: auto !important;
    transition: opacity .22s ease, transform .28s cubic-bezier(.22,1,.36,1) !important;
    will-change: transform, opacity;
    contain: layout paint;
}

body.sheet-list-page #main_content.main-content-layout.is-ai-collapsed > .main-content-right{
    opacity: 0 !important;
    transform: translate3d(104%,0,0) !important;
    pointer-events: none !important;
}

@media (max-width: 1199.98px){
    body.sheet-list-page #main_content.main-content-layout #main_content_left.main-content-left,
    body.sheet-list-page #main_content.main-content-layout.is-ai-collapsed #main_content_left.main-content-left{
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.sheet-list-page #main_content.main-content-layout > .main-content-right{
        width: 100% !important;
        max-width: 100% !important;
    }
}

body.sheet-list-page #main_content_left.main-content-left{
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    box-sizing: border-box;
}

body.sheet-list-page #main_content_left .b2b-cus-list-sell-page{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

body.sheet-list-page #main_content_left .b2b-cus-list-sell-page > div:not(.b2b-cus-list-sell-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .sheet-list-scroll-host{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

/* Direct-table hosts own their scrolling; nested-viewport hosts keep the outer clip. */
body.sheet-list-page #main_content_left .sheet-list-scroll-host:has(> table){
    display: block !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

body.sheet-list-page #main_content_left .sheet-list-table-scroll{
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.sheet-list-page #main_content_left .sheet-list-table-scroll > #list_table,
body.sheet-list-page #main_content_left .sheet-list-table-scroll > table{
    float: none !important;
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    margin-bottom: 0 !important;
}

body.sheet-list-page #main_content_left .main_pageselect{
    flex: 0 0 auto !important;
    min-height: 54px !important;
    position: relative;
    bottom: auto;
    z-index: 30;
    margin-top: 8px;
    padding: 8px 15px;
    background: #ffffff;
    overflow: visible !important;
}

body.sheet-list-page #main_content_left .pos-sell-list-page,
body.sheet-list-page .main_content .pos-sell-list-page{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pos-sell-list-content,
body.sheet-list-page .main_content .pos-sell-list-content{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pos-sell-list-content > div:not(.pos-sell-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .pos-sell-list-content > div:not(.pos-sell-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .pos-sell-table-wrap,
body.sheet-list-page .main_content .pos-sell-table-wrap{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pos-sell-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .pos-sell-table-wrap > .sheet-list-table-scroll{
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.sheet-list-page #main_content_left .pos-clear-col-list-page,
body.sheet-list-page .main_content .pos-clear-col-list-page{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pos-clear-col-list-content,
body.sheet-list-page .main_content .pos-clear-col-list-content{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pos-clear-col-list-content > div:not(.pos-clear-col-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .pos-clear-col-list-content > div:not(.pos-clear-col-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .pos-clear-col-table-wrap,
body.sheet-list-page .main_content .pos-clear-col-table-wrap{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .pos-clear-col-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .pos-clear-col-table-wrap > .sheet-list-table-scroll{
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.sheet-list-page #main_content_left .purchase-col-inv-list-page,
body.sheet-list-page .main_content .purchase-col-inv-list-page{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .purchase-col-inv-list-content,
body.sheet-list-page .main_content .purchase-col-inv-list-content{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .purchase-col-inv-list-content > div:not(.purchase-col-inv-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .purchase-col-inv-list-content > div:not(.purchase-col-inv-list-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .purchase-col-inv-list-table-wrap,
body.sheet-list-page .main_content .purchase-col-inv-list-table-wrap{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .purchase-col-inv-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .purchase-col-inv-list-table-wrap > .sheet-list-table-scroll{
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.sheet-list-page #main_content_left .web-group-pre-sell-list-page,
body.sheet-list-page .main_content .web-group-pre-sell-list-page{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .web-group-pre-sell-list-content,
body.sheet-list-page .main_content .web-group-pre-sell-list-content{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .web-group-pre-sell-list-content > div:not(.web-group-pre-sell-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .web-group-pre-sell-list-content > div:not(.web-group-pre-sell-list-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .web-group-pre-sell-list-table-wrap,
body.sheet-list-page .main_content .web-group-pre-sell-list-table-wrap{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .web-group-pre-sell-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .web-group-pre-sell-list-table-wrap > .sheet-list-table-scroll{
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.purchase-col-inv-search-layout{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.purchase-col-inv-search-primary,
.purchase-col-inv-search-form,
.purchase-col-inv-search-filters,
.purchase-col-inv-action-row{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.purchase-col-inv-search-form{
    flex: 1 1 auto;
    margin-bottom: 0;
}

.purchase-col-inv-search-form .search_select,
.purchase-col-inv-search-form .search_select2,
.purchase-col-inv-search-form .purchase-col-inv-search-mode{
    width: fit-content !important;
    flex: 0 0 auto;
}

.purchase-col-inv-search-form .serach_input,
.purchase-col-inv-search-form .purchase-col-inv-provider-input{
    flex: 1 1 420px;
    width: auto !important;
    min-width: 180px;
}

.purchase-col-inv-provider-input > .awesomplete,
.purchase-col-inv-provider-input .prov_search{
    width: 100%;
}

/* Keep provider suggestions above the results summary and grid stacking contexts. */
body.sheet-list-page .sheet-list-tools-panel:has(.purchase-col-inv-search-layout){
    z-index:60;
}
.purchase-col-inv-search-primary{
    position:relative;
    z-index:2;
}
.purchase-col-inv-provider-input > .awesomplete{
    position:relative;
    z-index:61;
}
.purchase-col-inv-provider-input > .awesomplete > ul{
    z-index:62 !important;
}

.purchase-col-inv-search-primary .search_btn,
.purchase-col-inv-search-primary .reflash_btn,
.purchase-col-inv-search-primary .sheet-list-tools-close{
    flex: 0 0 auto;
}

.purchase-col-inv-search-filters{
    flex-wrap: wrap;
}

.purchase-col-inv-search-filters .form-control{
    width: auto;
}

.purchase-col-inv-search-filters .prov_search{
    width: 160px;
}

.purchase-col-inv-date-group{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.purchase-col-inv-date-group label{
    margin-bottom: 0;
    white-space: nowrap;
}

.purchase-col-inv-date-group input[type="date"]{
    width: 150px;
    min-width: 0;
}

.purchase-col-inv-provider-label{
    margin-bottom: 0;
    white-space: nowrap;
}

.purchase-col-inv-end-date{
    position: relative;
    width: 278px;
    max-width: 100%;
}
.purchase-col-inv-date-group .purchase-col-inv-end-date input[type="date"]{
    width: 100%;
    padding-right: 124px;
}
.purchase-col-inv-date-shortcuts{
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}
.purchase-col-inv-date-shortcuts .btn{
    white-space: nowrap;
    padding: 2px 6px;
    line-height: 1.35;
}

.purchase-col-inv-action-row{
    flex-wrap: wrap;
}

.purchase-col-inv-ag-grid.ag-theme-quartz{
    width: 100%;
    height: 62vh;
    min-height: 300px;
    --ag-font-family: inherit;
    --ag-font-size: 16px;
    --ag-border-radius: 8px;
    --ag-wrapper-border-radius: 8px;
    --ag-background-color: var(--jerp-theme-card-bg);
    --ag-foreground-color: var(--jerp-theme-text-body);
    --ag-header-background-color: var(--jerp-theme-bg);
    --ag-header-foreground-color: var(--jerp-theme-text-primary);
    --ag-odd-row-background-color: var(--jerp-theme-card-bg);
    --ag-row-hover-color: var(--jerp-theme-bg-hover);
    --ag-selected-row-background-color: var(--jerp-theme-bg-active);
    --ag-border-color: var(--jerp-theme-border-table);
    --ag-row-border-color: var(--jerp-theme-border-table);
    --ag-cell-horizontal-padding: 10px;
    --ag-checkbox-size: 16px;
}
body.dark-mode .purchase-col-inv-ag-grid{
    --ag-background-color: var(--jerp-theme-dark-bg);
    --ag-foreground-color: #d9e2ef;
    --ag-header-background-color: var(--jerp-theme-card-bg);
    --ag-header-foreground-color: #f8fafc;
    --ag-odd-row-background-color: var(--jerp-theme-bg-soft);
    --ag-border-color: rgba(148,163,184,.22);
    --ag-row-border-color: rgba(148,163,184,.14);
}
.purchase-col-inv-ag-grid{--jerp-grid-text-line-height:22px;}
.purchase-col-inv-ag-grid .ag-cell{display:flex;align-items:center;line-height:var(--jerp-grid-text-line-height);padding-top:4px;padding-bottom:4px;}
.purchase-col-inv-ag-grid .ag-cell-value{line-height:var(--jerp-grid-text-line-height);}
.purchase-col-inv-ag-grid .jerp-grid-cell-text{width:100%;white-space:pre-line;line-height:1.2;}
.purchase-col-inv-ag-grid .purchase-col-inv-grid-left{justify-content: flex-start;text-align:left;}
.purchase-col-inv-ag-grid .purchase-col-inv-grid-center{justify-content: center;text-align:center;}
.purchase-col-inv-ag-grid .ag-header-cell{font-size:16px;font-weight:700;border-right:1px solid var(--ag-border-color);}
.purchase-col-inv-ag-grid .ag-header-cell-label{justify-content:center;}
.purchase-col-inv-ag-grid .ag-header-icon,
.purchase-col-inv-ag-grid .ag-header-cell-menu-button,
.purchase-col-inv-ag-grid .ag-header-cell-filter-button{display:none !important;}
.pu-col-inv-grid-page .purchase-col-inv-ag-grid .purchase-col-inv-grid-searchable .ag-header-cell-filter-button{
    display:flex !important;
    opacity:1;
    color:var(--jerp-theme-primary);
    cursor:pointer;
}
.purchase-col-inv-ag-grid .jerp-list-action-cell{width:100%;}
.purchase-col-inv-ag-grid .ag-pinned-right-header,
.purchase-col-inv-ag-grid .ag-pinned-right-cols-container{box-shadow:-8px 0 12px -8px rgba(0,0,0,.38);}
.purchase-col-inv-ag-grid .ag-body-horizontal-scroll{height:0 !important;min-height:0 !important;max-height:0 !important;visibility:hidden;overflow:hidden;}
.purchase-col-inv-horizontal-scroll{width:100%;height:8px;min-height:8px !important;max-height:8px;flex:0 0 8px !important;overflow-x:scroll;overflow-y:hidden;background:var(--jerp-theme-card-bg);}
.purchase-col-inv-horizontal-track{height:1px;}
.invoice-format-header{display:flex;align-items:center;gap:4px;width:100%;justify-content:center;}
.invoice-format-header-help.btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--jerp-theme-link-color,#2581b8);text-decoration:none;box-shadow:none;line-height:1;}
.invoice-format-header-help.btn:hover,.invoice-format-header-help.btn:focus{background:var(--jerp-theme-bg-soft,#eef5fb);border-color:var(--jerp-theme-border-light,#cbddeb);color:var(--jerp-theme-link-color,#2581b8);text-decoration:none;box-shadow:none;}
.invoice-format-header-help.btn:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
.invoice-format-header-help i{font-size:12px;pointer-events:none;}
.popover.invoice-format-header-popover{max-width:360px;border:1px solid var(--jerp-theme-border-light,#d5dfe8);border-radius:10px;background:var(--jerp-theme-card-bg,#fff);color:var(--jerp-theme-text-body,#182230);box-shadow:0 6px 20px rgba(0,0,0,.16);}
.invoice-format-header-popover .popover-title,.invoice-format-header-popover .popover-header{padding:9px 12px;margin:0;border-bottom:1px solid var(--jerp-theme-border-light,#d5dfe8);background:var(--jerp-theme-bg-soft,#f3f6f9);color:var(--jerp-theme-text-primary,#303133);font-size:14px;font-weight:600;border-radius:9px 9px 0 0;}
.invoice-format-header-popover .popover-content,.invoice-format-header-popover .popover-body{padding:10px 12px;font-size:13px;line-height:1.6;}
.invoice-format-header-popover p{margin:0 0 8px;}.invoice-format-header-popover p:last-child{margin-bottom:0;}
.pu-col-inv-grid-page .purchase-col-inv-horizontal-scroll{
    height:12px;
    min-height:12px !important;
    max-height:12px;
    flex-basis:12px !important;
}
.purchase-col-inv-ag-grid .ag-cell{border-right:1px solid var(--ag-row-border-color);}
.purchase-col-inv-ag-grid .ag-cell-value{white-space:pre-line;}
.parking-vehicle-ag-grid .parking-plate-searchable .ag-header-cell-filter-button{
    display: flex !important;
    opacity: 1;
}
.parking-vehicle-ag-grid .ag-cell-value{width:100%;text-align:center;}
.parking-vehicle-ag-grid .parking-grid-note,
.parking-vehicle-ag-grid .parking-grid-note .ag-cell-value{
    font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    text-align:left;
}
.parking-vehicle-ag-grid .jerp-list-action-primary .btn{
    display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;font-size:13px;
}
.parking-vehicle-grid-page .purchase-col-inv-horizontal-scroll{height:12px;min-height:12px !important;max-height:12px;flex-basis:12px !important;}
.purchase-receipt-ag-grid .purchase-receipt-searchable .ag-header-cell-filter-button{display:flex !important;opacity:1;}
.purchase-receipt-ag-grid .purchase-receipt-grid-rich{width:100%;text-align:center;line-height:1.2;}
.purchase-receipt-ag-grid .jerp-list-action-primary .btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;font-size:13px;}
.purchase-receipt-grid-page .purchase-col-inv-horizontal-scroll{height:12px;min-height:12px !important;max-height:12px;flex-basis:12px !important;}
.pre-purchase-ag-grid .pre-purchase-searchable .ag-header-cell-filter-button{display:flex !important;opacity:1;}
.pre-purchase-ag-grid .pre-purchase-grid-rich{width:100%;text-align:center;line-height:1.2;}
.pre-purchase-ag-grid .jerp-list-action-primary .btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;font-size:13px;}
.pre-purchase-ag-grid .pre-purchase-grid-cancelled:not(.purchase-col-inv-grid-current) .ag-cell{background-color:rgba(239,68,68,.1);}
.pre-purchase-grid-page .purchase-col-inv-horizontal-scroll{height:12px;min-height:12px !important;max-height:12px;flex-basis:12px !important;}
.group-pre-sell-ag-grid .group-pre-sell-searchable .ag-header-cell-filter-button{display:flex !important;opacity:1;}
.group-pre-sell-ag-grid .group-pre-sell-grid-rich{width:100%;text-align:center;line-height:1.3;}
.group-pre-sell-ag-grid .group-pre-sell-grid-note,
.group-pre-sell-ag-grid .group-pre-sell-grid-note .ag-cell-value{font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.group-pre-sell-ag-grid .jerp-list-action-primary .btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;font-size:13px;}
.group-pre-sell-ag-grid .group-pre-sell-grid-cancelled:not(.purchase-col-inv-grid-current) .ag-cell{background-color:rgba(239,68,68,.1);}
.group-pre-sell-grid-page .purchase-col-inv-horizontal-scroll{height:12px;min-height:12px !important;max-height:12px;flex-basis:12px !important;}
.b2b-sell-ag-grid .b2b-sell-searchable .ag-header-cell-filter-button{display:flex !important;opacity:1;}
.b2b-sell-ag-grid .b2b-sell-grid-rich{width:100%;text-align:center;line-height:1.3;}
.b2b-sell-ag-grid .b2b-sell-grid-note,
.b2b-sell-ag-grid .b2b-sell-grid-note .ag-cell-value{font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.b2b-sell-ag-grid .jerp-list-action-primary .btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:38px;padding:0;font-size:13px;}
.b2b-sell-ag-grid .b2b-sell-grid-cancelled:not(.purchase-col-inv-grid-current) .ag-cell{background-color:rgba(239,68,68,.1);}
.b2b-sell-grid-page .purchase-col-inv-horizontal-scroll{height:12px;min-height:12px !important;max-height:12px;flex-basis:12px !important;}
.parking-payment-fields .parking-payment-field{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    align-items:center;
    gap:8px;
    text-align:left;
}
.parking-payment-fields .parking-payment-field > label{
    display:block;
    margin:0;
    text-align:left;
}
.parking-payment-fields .parking-payment-field > .form-control{
    width:100%;min-width:0;text-align:left;
}
@media(max-width:479.98px){
    .parking-payment-fields .parking-payment-field{grid-template-columns:minmax(0,1fr);}
}
.purchase-col-inv-grid-rich{width:100%;line-height:1.4;white-space:normal;padding:4px 0;}
.purchase-col-inv-grid-rich .badge{margin-right:4px;}
.purchase-col-inv-grid-rich a{color:var(--jerp-theme-primary);}
.purchase-col-inv-grid-rich a:hover{color:var(--jerp-theme-primary-active);}
.purchase-col-inv-ag-grid .purchase-col-inv-grid-note,
.purchase-col-inv-ag-grid .purchase-col-inv-grid-note .ag-cell-value{
    font-size:12px;
    line-height:1.3;
    letter-spacing:normal;
    word-spacing:normal;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.purchase-col-inv-ag-grid .ag-row{cursor:pointer;}
.purchase-col-inv-grid-provider{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;}
.purchase-col-inv-ag-grid .purchase-col-inv-grid-provider{
    color:var(--jerp-theme-primary);
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
}
.purchase-col-inv-ag-grid .purchase-col-inv-grid-provider:hover,
.purchase-col-inv-ag-grid .purchase-col-inv-grid-provider:focus{
    color:var(--jerp-theme-primary-active);
}
.sheet-list-page #main_content_left :is(#list_table,[data-jerp-list-table]) > tbody > tr.jerp-list-row-checked > td,
.sheet-list-page #main_content_left :is(#list_table,[data-jerp-list-table]) > tbody > tr.jerp-list-row-checked:hover > td{
    background:color-mix(in srgb,var(--jerp-theme-bg) 92%,#a78bfa 8%) !important;
}
.sheet-list-page #main_content_left :is(#list_table,[data-jerp-list-table]) > tbody > tr.jerp-list-row-checked > td:first-child{
    box-shadow:inset 3px 0 color-mix(in srgb,var(--jerp-theme-bg) 65%,#a78bfa 35%);
}
.sheet-list-page .ag-row.purchase-col-inv-grid-current .ag-cell,
.purchase-col-inv-ag-grid .ag-row.purchase-col-inv-grid-current,
.purchase-col-inv-ag-grid .ag-row.purchase-col-inv-grid-current .ag-cell{
    background-color:var(--jerp-theme-bg-active) !important;
}

.pu-col-inv-search-layout{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.pu-col-inv-search-primary,
.pu-col-inv-search-filters,
.pu-col-inv-search-form,
.pu-col-inv-action-row{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pu-col-inv-search-primary{
    justify-content: space-between;
    width: 100%;
}

.pu-col-inv-search-filters{
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.pu-col-inv-format-row label,
.pu-col-inv-format-row input[type="checkbox"]{cursor:pointer;}

.pu-col-inv-search-filters .form-control{
    width: auto;
}

.pu-col-inv-search-filters .prov_search{
    width: 270px;
}

.pu-col-inv-search-form{
    flex: 1 1 0;
    flex-wrap: wrap;
    width: auto;
    margin-bottom: 0;
}

.pu-col-inv-search-form .search_select,
.pu-col-inv-search-form .search_select2{
    width: fit-content !important;
    flex: 0 0 auto;
}

.pu-col-inv-search-primary .search_btn,
.pu-col-inv-search-primary .reflash_btn,
.pu-col-inv-search-primary .sheet-list-tools-close{
    flex: 0 0 auto;
}

.pu-col-inv-action-row{
    width: 100%;
    flex-wrap: wrap;
}

.pu-col-group-search-layout{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.pu-col-group-search-primary,
.pu-col-group-search-filters,
.pu-col-group-search-form{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pu-col-group-search-primary{
    justify-content: space-between;
    width: 100%;
}

.pu-col-group-search-filters{
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.pu-col-group-search-filters .form-control{
    width: auto;
}

.pu-col-group-search-form{
    flex: 0 0 auto;
    margin-bottom: 0;
}

.pu-col-group-search-form .search_select,
.pu-col-group-search-form .search_select2{
    width: fit-content !important;
    flex: 0 0 auto;
}

.pu-col-group-search-primary .reflash_btn,
.pu-col-group-search-primary .sheet-list-tools-close{
    flex: 0 0 auto;
}

.pos-clear-col-operate-grid{
    display: inline-grid;
    grid-template-columns: repeat(2, 38px);
    gap: 4px;
}

.pos-clear-col-operate-grid .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    padding: 6px 8px;
}

.pos-clear-col-operate-grid .btn:last-child{
    grid-column: 1 / span 2;
    justify-self: center;
}

.pos-sell-operate-grid{
    display: inline-grid;
    grid-template-columns: repeat(2, 38px);
    gap: 4px;
}

.pos-sell-operate-grid .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 38px;
    min-width: 38px;
    min-height: 34px;
    padding: 6px 8px;
}

.pos-sell-search-layout{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.pos-sell-search-primary,
.pos-sell-status-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.pos-sell-search-form{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.pos-sell-search-form .serach_input{
    flex: 1 1 420px;
    width: auto !important;
    min-width: 180px;
}

.pos-sell-search-form .search_select{
    width: fit-content !important;
    flex: 0 0 auto;
}

.pos-sell-search-primary .reflash_btn,
.pos-sell-search-primary .sheet-list-tools-close{
    flex: 0 0 auto;
}

.pos-sell-status-actions{
    justify-content: flex-start;
}

.pos-sell-status-actions .status{
    width: fit-content !important;
    flex: 0 0 auto;
}

body.dark-mode.sheet-list-page .main_content .sheet-list-table-scroll,
body.dark-mode.sheet-list-page .main_content .table-responsive-md,
body.dark-mode.sheet-list-page .main_content .scrollbar-table-group,
body.dark-mode.sheet-list-page .main_content .new_system_table_wrap{
    background: var(--jerp-theme-bg);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode.sheet-list-page .main_content .sheet-list-table-scroll > :is(#list_table,[data-jerp-list-table]),
body.dark-mode.sheet-list-page .main_content .sheet-list-table-scroll > table,
body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]),
body.dark-mode.sheet-list-page .main_content table{
    background-color: var(--jerp-theme-dark-bg);
    color: #d9e2ef;
}

body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) thead th,
body.dark-mode.sheet-list-page .main_content table thead th{
    background: var(--jerp-theme-card-bg) !important;
    background-color: var(--jerp-theme-card-bg) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) tbody td,
body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) tbody th,
body.dark-mode.sheet-list-page .main_content table tbody td,
body.dark-mode.sheet-list-page .main_content table tbody th{
    background-color: var(--jerp-theme-dark-bg);
    color: #d9e2ef;
    border-color: rgba(148, 163, 184, 0.14);
}

body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) tbody tr:nth-of-type(even) td,
body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) tbody tr:nth-of-type(even) th,
body.dark-mode.sheet-list-page .main_content table tbody tr:nth-of-type(even) td,
body.dark-mode.sheet-list-page .main_content table tbody tr:nth-of-type(even) th{
    background-color: var(--jerp-theme-bg-soft);
}

body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) tbody tr:hover td,
body.dark-mode.sheet-list-page .main_content :is(#list_table,[data-jerp-list-table]) tbody tr:hover th,
body.dark-mode.sheet-list-page .main_content table tbody tr:hover td,
body.dark-mode.sheet-list-page .main_content table tbody tr:hover th{
    background-color: var(--jerp-theme-bg-hover);
}

body.dark-mode .list_table_wrapper table tbody td{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode.sheet-list-page .main_content #main_content_left tr.table-active td,
body.dark-mode.sheet-list-page .main_content #main_content_left tr.table-active th,
body.dark-mode.sheet-list-page .main_content #main_content_left tr.info td,
body.dark-mode.sheet-list-page .main_content #main_content_left tr.info th,
body.dark-mode.sheet-list-page .main_content #main_content_left tr.mainlist_active td,
body.dark-mode.sheet-list-page .main_content #main_content_left tr.mainlist_active th{
    background-color: var(--jerp-theme-bg-active) !important;
    color: #eff6ff !important;
}



/* B2B customer sales list: keep pagination visible below the scrollable table. */
body.sheet-list-page #main_content_left .b2b-cus-sell-page,
body.sheet-list-page .main_content .b2b-cus-sell-page{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .b2b-cus-sell-page-content,
body.sheet-list-page .main_content .b2b-cus-sell-page-content{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .b2b-cus-sell-page-content > div:not(.b2b-cus-sell-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .b2b-cus-sell-page-content > div:not(.b2b-cus-sell-table-wrap):not(.main_pageselect){
    flex: 0 0 auto;
    min-height: 0;
}

body.sheet-list-page #main_content_left .b2b-cus-sell-table-wrap,
body.sheet-list-page .main_content .b2b-cus-sell-table-wrap{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sheet-list-page #main_content_left .b2b-cus-sell-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .b2b-cus-sell-table-wrap > .sheet-list-table-scroll{
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

body.sheet-list-page #main_content_left .b2b-cus-sell-page .main_pageselect,
body.sheet-list-page .main_content .b2b-cus-sell-page .main_pageselect{
    flex: 0 0 62px !important;
    min-height: 62px !important;
    box-sizing: border-box;
    position: relative;
    z-index: 40;
    margin-top: 8px;
    padding: 8px 15px 10px;
    background: #ffffff;
    overflow: visible !important;
}

.b2b-scus-sell-operate-grid{
	display:inline-grid;
	grid-template-columns:repeat(2, 38px);
	gap:4px;
}

.b2b-scus-sell-operate-grid .btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	box-sizing:border-box;
	width:38px;
	min-width:38px;
	min-height:34px;
	padding:6px 8px;
}

.b2b-cus-list-sell-table-wrap .sheet-list-table-scroll,
.b2b-cus-sell-table-wrap .sheet-list-table-scroll,
.pos-sell-table-wrap .sheet-list-table-scroll,
.pos-clear-col-table-wrap .sheet-list-table-scroll{
    position: relative;
}

.b2b-cus-list-sell-table-wrap .ag-filterable-header,
.b2b-cus-sell-table-wrap .ag-filterable-header,
.pos-sell-table-wrap .ag-filterable-header,
.pos-clear-col-table-wrap .ag-filterable-header{
    overflow: visible;
}

.b2b-cus-list-sell-table-wrap .ag-header-cell-label,
.b2b-cus-sell-table-wrap .ag-header-cell-label,
.pos-sell-table-wrap .ag-header-cell-label,
.pos-clear-col-table-wrap .ag-header-cell-label{
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.b2b-cus-list-sell-table-wrap .ag-header-cell-text,
.b2b-cus-sell-table-wrap .ag-header-cell-text,
.pos-sell-table-wrap .ag-header-cell-text,
.pos-clear-col-table-wrap .ag-header-cell-text{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b2b-cus-list-sell-table-wrap .ag-header-icon,
.b2b-cus-sell-table-wrap .ag-header-icon,
.pos-sell-table-wrap .ag-header-icon,
.pos-clear-col-table-wrap .ag-header-icon{
    width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.b2b-cus-list-sell-table-wrap .ag-header-icon i,
.b2b-cus-sell-table-wrap .ag-header-icon i,
.pos-sell-table-wrap .ag-header-icon i,
.pos-clear-col-table-wrap .ag-header-icon i{
    font-size: 11px;
    line-height: 1;
}

.b2b-cus-list-sell-table-wrap .ag-header-icon:hover,
.b2b-cus-list-sell-table-wrap .ag-header-icon:focus,
.b2b-cus-list-sell-table-wrap .ag-header-icon.is-open,
.b2b-cus-sell-table-wrap .ag-header-icon:hover,
.b2b-cus-sell-table-wrap .ag-header-icon:focus,
.b2b-cus-sell-table-wrap .ag-header-icon.is-open,
.pos-sell-table-wrap .ag-header-icon:hover,
.pos-sell-table-wrap .ag-header-icon:focus,
.pos-sell-table-wrap .ag-header-icon.is-open,
.pos-clear-col-table-wrap .ag-header-icon:hover,
.pos-clear-col-table-wrap .ag-header-icon:focus,
.pos-clear-col-table-wrap .ag-header-icon.is-open{
    color: #155eef;
    background: #eaf1ff;
    outline: none;
}

.tooltip.b2b-cus-action-tooltip{
    padding: 0 !important;
}

.tooltip.b2b-cus-action-tooltip .arrow{
    visibility: hidden;
}

.tooltip.b2b-cus-action-tooltip .tooltip-inner{
    max-width: none;
    padding: 4px 8px;
    font-size: 14px;
    white-space: nowrap;
}

.b2b-cus-filter-panel{
    position: absolute;
    z-index: 40;
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d9dde7;
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.b2b-cus-filter-panel.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.b2b-cus-filter-title{
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.b2b-cus-filter-input{
    width: 100%;
    height: 34px;
    padding: 7px 10px;
    color: #182230;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.b2b-cus-filter-input:focus{
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.14);
}

.b2b-cus-filter-actions{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.b2b-cus-filter-actions button{
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.b2b-cus-filter-apply{
    color: #ffffff !important;
    background: #155eef !important;
    border-color: #155eef !important;
}

.status_cancer{
    background-color:#ffe6e6;
}

.web-group-action-cell{
    min-width:124px;
}

.web-group-action-grid{
    display:flex;
    flex-direction:column;
    align-items:center;
    row-gap:8px;
    width:96px;
    margin:0 auto;
}

.web-group-action-grid .action-row{
    width:100%;
    display:flex;
}

.web-group-action-grid .action-row-top{
    justify-content:space-between;
}

.web-group-action-grid .action-row-bottom{
    justify-content:center;
}

.web-group-action-grid .action-top{
    width:43px;
    display:flex;
    justify-content:center;
}

.web-group-action-grid .action-bottom{
    width:100%;
    display:flex;
    justify-content:center;
}

.web-group-action-grid .btn{
    width:36px;
    min-width:36px;
    height:32px;
    padding:6px 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.web-group-return-edit-dialog{
    position:relative;
    min-height:220px;
    height:72vh;
}

.web-group-return-edit-loader{
    position:absolute;
    z-index:5;
    inset:0;
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#28907D;
    font-size:1.05rem;
    text-align:center;
    background:rgba(255,255,255,.94);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease, visibility 0s linear .18s;
}

.web-group-return-edit-loader.is-loading{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:opacity .18s ease;
}

.web-group-return-edit-frame #WebGroupReturnEditVisibleBox,
.web-group-return-edit-frame #MainItemList,
.web-group-return-edit-frame #MainContent{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box;
    overflow-x:hidden !important;
}

.web-group-return-edit-frame .web-group-return-edit-main-item-list .new_system_table_wrap,
.web-group-return-edit-frame .web-group-return-edit-main-item-list .scrollbar-table-group,
.web-group-return-edit-frame .web-group-return-edit-main-item-list .sheet-list-table-scroll{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

.web-group-return-edit-frame .web-group-return-edit-main-item-list .web-group-return-edit-fit-table,
.web-group-return-edit-frame .web-group-return-edit-main-item-list #list_table,
.web-group-return-edit-frame .web-group-return-edit-main-item-list table{
    display:table !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    box-sizing:border-box !important;
    border-collapse:collapse;
}

.web-group-return-edit-frame .web-group-return-edit-main-item-list .web-group-return-edit-fit-table col,
.web-group-return-edit-frame .web-group-return-edit-main-item-list #list_table col,
.web-group-return-edit-frame .web-group-return-edit-main-item-list table col{
    width:auto !important;
}

.web-group-return-edit-frame .web-group-return-edit-main-item-list .web-group-return-edit-fit-table th,
.web-group-return-edit-frame .web-group-return-edit-main-item-list .web-group-return-edit-fit-table td,
.web-group-return-edit-frame .web-group-return-edit-main-item-list #list_table th,
.web-group-return-edit-frame .web-group-return-edit-main-item-list #list_table td,
.web-group-return-edit-frame .web-group-return-edit-main-item-list table th,
.web-group-return-edit-frame .web-group-return-edit-main-item-list table td{
    width:auto !important;
    min-width:0 !important;
    max-width:1px;
    box-sizing:border-box;
    padding-left:6px;
    padding-right:6px;
    white-space:normal !important;
    word-break:break-word;
    overflow-wrap:anywhere;
}

.web-group-pre-sell-search-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
    width:100%;
}

.web-group-sell-search-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
    width:100%;
}

.web-group-pre-sell-search-row,
.web-group-sell-search-row,
.web-group-pre-sell-search-form{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.web-group-sell-search-form{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.web-group-pre-sell-search-primary{
    width:100%;
}

.web-group-sell-search-primary{
    width:100%;
}

.web-group-pre-sell-search-form{
    flex:1 1 auto;
}

.web-group-sell-search-form{
    flex:1 1 auto;
}

.web-group-pre-sell-search-layout .form-control{
    height:36px;
}

.web-group-sell-search-layout .form-control{
    height:36px;
}

.web-group-pre-sell-search-layout .search_select,
.web-group-pre-sell-search-layout .search_select2,
.web-group-pre-sell-search-layout .status{
    flex:0 0 128px;
    width:128px;
}

.web-group-sell-search-layout .search_select,
.web-group-sell-search-layout .search_select2,
.web-group-sell-search-layout .status{
    flex:0 0 128px;
    width:128px;
}

.web-group-pre-sell-search-layout .calendar_btn{
    flex:0 0 28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
}

.web-group-sell-search-layout .calendar_btn{
    flex:0 0 28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
}

.web-group-pre-sell-search-layout .calendar_btn img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.web-group-sell-search-layout .calendar_btn img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.web-group-pre-sell-search-layout .serach_input{
    flex:1 1 360px;
    min-width:220px;
}

.web-group-sell-search-layout .serach_input{
    flex:1 1 360px;
    min-width:220px;
}

.web-group-pre-sell-search-layout .search_btn,
.web-group-pre-sell-search-layout .reflash_btn,
.web-group-pre-sell-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    min-width:58px;
    height:36px;
}

.web-group-sell-search-layout .search_btn,
.web-group-sell-search-layout .reflash_btn,
.web-group-sell-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    min-width:58px;
    height:36px;
}

.web-group-pre-sell-search-layout .sheet-list-tools-close{
    min-width:36px;
    margin:0;
}

.web-group-sell-search-layout .sheet-list-tools-close{
    min-width:36px;
    margin:0;
}

.web-group-pre-sell-search-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
}

.web-group-sell-search-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
}

.web-group-pre-sell-search-actions .btn{
    min-height:36px;
}

.web-group-sell-search-actions .btn{
    min-height:36px;
}

.web-sell-search-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.web-sell-search-row,
.web-sell-search-form{
    display:flex;
    align-items:center;
    gap:10px;
}

.web-sell-search-primary{
    width:100%;
}

.web-sell-search-form{
    flex:1 1 auto;
}

.web-sell-search-layout .form-control{
    height:36px;
}

.web-sell-search-layout .search_select,
.web-sell-search-layout .search_select2,
.web-sell-search-layout .status{
    flex:0 0 auto;
    width:fit-content;
}

.web-sell-search-layout .calendar_btn{
    flex:0 0 28px;
    display:inline-flex;
    align-items:center;
}

.web-sell-search-layout .calendar_btn img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.web-sell-search-layout .serach_input{
    flex:1 1 360px;
    min-width:220px;
}

.web-sell-search-layout .search_btn,
.web-sell-search-layout .reflash_btn,
.web-sell-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    min-width:58px;
    height:36px;
}

.web-sell-search-layout .sheet-list-tools-close{
    min-width:36px;
    margin:0;
}

.web-sell-search-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
}

.web-sell-search-actions .btn{
    min-height:36px;
}

.ug-sell-search-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.ug-sell-search-row,
.ug-sell-search-form{
    display:flex;
    align-items:center;
    gap:10px;
}

.ug-sell-search-primary{
    width:100%;
}

.ug-sell-search-form{
    flex:1 1 auto;
    flex-wrap:wrap;
}

.ug-sell-search-layout .form-control{
    height:36px;
}

.ug-sell-search-layout .search_select,
.ug-sell-search-layout .search_select2,
.ug-sell-search-layout .status{
    flex:0 0 auto;
    width:fit-content;
}

.ug-sell-search-layout .ug_sch_id{
    flex:0 0 auto;
    width:fit-content;
}

.ug-sell-search-layout .calendar_btn{
    flex:0 0 28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.ug-sell-search-layout .calendar_btn img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.ug-sell-search-layout .serach_input{
    flex:1 1 150px;
    min-width: 150px;
}

.ug-sell-search-layout .search_btn,
.ug-sell-search-layout .reflash_btn,
.ug-sell-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    min-width:58px;
    height:36px;
}

.ug-sell-search-layout .sheet-list-tools-close{
    min-width:36px;
    margin:0;
}

.ug-sell-search-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
}

.ug-sell-search-actions .btn{
    min-height:36px;
}

.ug-prod-stock-search-layout{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
}

.ug-prod-stock-search-row{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
}

.ug-prod-stock-search-primary{
    justify-content:space-between;
}

.ug-prod-stock-search-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
}

.ug-prod-stock-search-actions .edit_btn{
    position:static !important;
    display:block !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;
}

.ug-prod-stock-search-actions .edit_btn ul{
    display:flex !important;
    align-items:center;
    gap:10px;
    margin:0 !important;
    padding:0 !important;
    list-style:none;
}

.ug-prod-stock-search-actions .edit_btn li{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
}

.ug-prod-stock-search-actions .edit_btn li.addbtn{
    display:none !important;
}

.ug-prod-stock-search-actions .edit_btn li a{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:84px;
    height:36px;
    padding:0 14px !important;
    border-radius:6px;
    font-size:13px;
    font-weight:600;
    line-height:1;
    cursor:pointer;
}

.ug-prod-stock-search-actions .edit_btn li a br{
    display:none;
}

.ug-prod-stock-search-actions .edit_btn li a i{
    font-size:13px;
    margin:0 !important;
}

.ug-prod-stock-search-actions .edit_btn li.editbtn a{
    color:#409eff !important;
    background:#ecf5ff !important;
    border:1px solid #a0cfff !important;
}

.ug-prod-stock-search-actions .edit_btn li.delbtn a{
    color:#f56c6c !important;
    background:#fef0f0 !important;
    border:1px solid #fab6b6 !important;
}

.ug-prod-stock-search-actions .edit_btn li.editbtn a:hover,
.ug-prod-stock-search-actions .edit_btn li.editbtn a:focus{
    color:#ffffff !important;
    background:#409eff !important;
    border-color:#409eff !important;
}

.ug-prod-stock-search-actions .edit_btn li.delbtn a:hover,
.ug-prod-stock-search-actions .edit_btn li.delbtn a:focus{
    color:#ffffff !important;
    background:#f56c6c !important;
    border-color:#f56c6c !important;
}

.ug-prod-stock-search-filters{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
}

.ug-prod-stock-search-form,
.ug-prod-stock-dm-form{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
}

.ug-prod-stock-search-layout .form-control{
    height:36px;
}

.ug-prod-stock-search-layout .ug_sch_id{
    width:fit-content;
    min-width:144px;
}

.ug-prod-stock-search-layout .reflash_btn,
.ug-prod-stock-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    height:36px;
}

.ug-prod-stock-search-layout .reflash_btn{
    min-width:50px;
}



.ug-prod-stock-dm-row{
    justify-content:flex-start;
    flex-wrap:wrap;
}

.ug-prod-stock-dm-form{
    flex:1 1 auto;
    flex-wrap:wrap;
}

.ug-prod-stock-dm-form .insProbarcode{
    flex:0 1 280px;
    min-width:220px;
}

.ug-prod-stock-dm-form .add_ugs_qty{
    flex:0 0 100px;
}

.ug-prod-stock-field-label{
    flex:0 0 auto;
    font-weight:600;
    color:#1f2d3d;
    white-space:nowrap;
}

.ug-prod-stock-dm-form .form-check-inline{
    margin-right:0;
}

.ug-prod-stock-dm-form .add_send{
    min-width:54px;
}

.ug-sell-sort-search-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
    width:100%;
}

.ug-sell-sort-search-row{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
}

.ug-sell-sort-search-primary{
    justify-content:space-between;
}

.ug-sell-sort-create-form{
    flex:0 0 auto;
    margin:0;
}

.ug-sell-sort-create-btn{
    min-height:36px;
}

.ug-sell-sort-search-filters{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
}

.ug-sell-sort-search-form{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
    flex:0 1 auto;
    margin:0;
    min-width:0;
}

.ug-sell-sort-field-label{
    flex:0 0 auto;
    white-space:nowrap;
}

.ug-sell-sort-search-layout .form-control{
    height:36px;
}

.ug-sell-sort-search-form .search_bday,
.ug-sell-sort-search-form .search_eday{
    width:auto;
    min-width:136px;
}

.ug-sell-sort-search-form .list_search_option,
.ug-sell-sort-search-form .ug_sch_id{
    flex:0 0 auto;
    width:fit-content;
}

.ug-sell-sort-search-form .calendar_btn{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.ug-sell-sort-search-form .calendar_btn img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.ug-sell-sort-search-form .serach_input{
    flex:1 1 240px;
    min-width:0;
}

.ug-sell-sort-search-layout .search_btn,
.ug-sell-sort-search-layout .reflash_btn,
.ug-sell-sort-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    min-height:36px;
}

.ug-sell-sort-search-layout .sheet-list-tools-close{
    min-width:36px;
    margin:0;
}

body.sheet-list-page .ug-sell-sort-search-layout #srechformbox{
    margin-left:auto;
}

body.sheet-list-page .ug-sell-sort-search-layout .reflash_btn,
body.sheet-list-page .ug-sell-sort-search-layout .sheet-list-tools-close{
    margin-left:0 !important;
}

body.sheet-list-page .sheet-list-tools-panel.ug-sell-sort-search-panel{
    align-items:center;
}

.sell-sort-add-search-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sell-sort-add-search-row{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.sell-sort-add-search-primary{
    width:100%;
}

.sell-sort-add-search-form{
    flex:1 1 auto;
    gap:10px;
    width:100%;
}

.sell-sort-add-search-form .search_bday,
.sell-sort-add-search-form .search_eday{
    width:auto;
    min-width:136px;
}

.sell-sort-add-search-form .list_search_option{
    width:fit-content;
}

.sell-sort-add-search-form .calendar_btn{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.sell-sort-add-search-form .calendar_btn img{
    width:24px;
    height:24px;
    object-fit:contain;
}

.sell-sort-add-search-form .serach_input{
    flex:1 1 320px;
    min-width:220px;
}

.sell-sort-add-search-form .search_btn,
.sell-sort-add-search-primary .reflash_btn,
.sell-sort-add-search-primary .sheet-list-tools-close{
    flex:0 0 auto;
    min-height:36px;
}

.sell-sort-add-search-primary .sheet-list-tools-close{
    min-width:36px;
    margin:0;
}

.sell-sort-add-search-actions{
    justify-content:flex-start;
}

.sell-sort-add-search-actions .btn{
    min-height:36px;
}

body.sheet-list-page #main_content_left .sell-sort-add-list-page,
body.sheet-list-page .main_content .sell-sort-add-list-page,
.sell-sort-add-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .sell-sort-add-list-page > div:not(.def-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .sell-sort-add-list-page > div:not(.def-list-table-wrap):not(.main_pageselect),
.sell-sort-add-list-page > div:not(.def-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .sell-sort-add-list-page .def-list-table-wrap,
body.sheet-list-page .main_content .sell-sort-add-list-page .def-list-table-wrap,
.sell-sort-add-list-page .def-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .sell-sort-add-list-page .def-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .sell-sort-add-list-page .def-list-table-wrap > .sheet-list-table-scroll,
.sell-sort-add-list-page .def-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .sell-sort-add-list-page .main_pageselect,
body.sheet-list-page .main_content .sell-sort-add-list-page .main_pageselect,
.sell-sort-add-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .sell-sort-list-page,
body.sheet-list-page .main_content .sell-sort-list-page,
.sell-sort-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .sell-sort-list-page > div:not(.def-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .sell-sort-list-page > div:not(.def-list-table-wrap):not(.main_pageselect),
.sell-sort-list-page > div:not(.def-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .sell-sort-list-page .def-list-table-wrap,
body.sheet-list-page .main_content .sell-sort-list-page .def-list-table-wrap,
.sell-sort-list-page .def-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .sell-sort-list-page .def-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .sell-sort-list-page .def-list-table-wrap > .sheet-list-table-scroll,
.sell-sort-list-page .def-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .sell-sort-list-page .main_pageselect,
body.sheet-list-page .main_content .sell-sort-list-page .main_pageselect,
.sell-sort-list-page .main_pageselect{
    flex:0 0 auto;
}

.sell-sort-list-page .sell-sort-doc-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:5px;
}

.sell-sort-list-page .sell-sort-doc-actions .btn{
    margin-left:0 !important;
}

.sell-sort-list-page .sell-sort-doc-actions .btn + .btn{
    margin-left:0 !important;
}

body.sheet-list-page #main_content_left .ug-sell-sort-list-page,
body.sheet-list-page .main_content .ug-sell-sort-list-page,
.ug-sell-sort-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-sell-sort-list-page > div:not(.ug-sell-sort-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-sell-sort-list-page > div:not(.ug-sell-sort-table-wrap):not(.main_pageselect),
.ug-sell-sort-list-page > div:not(.ug-sell-sort-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sell-sort-table-wrap,
body.sheet-list-page .main_content .ug-sell-sort-table-wrap,
.ug-sell-sort-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-sell-sort-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-sell-sort-table-wrap > .sheet-list-table-scroll,
.ug-sell-sort-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-sell-sort-table-wrap > .sheet-list-table-scroll > #list_table,
body.sheet-list-page .main_content .ug-sell-sort-table-wrap > .sheet-list-table-scroll > #list_table,
.ug-sell-sort-table-wrap > .sheet-list-table-scroll > #list_table{
    margin-bottom:0 !important;
}

body.sheet-list-page #main_content_left .ug-sell-sort-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-sell-sort-list-page .main_pageselect,
.ug-sell-sort-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .ug-sort-list-page,
body.sheet-list-page .main_content .ug-sort-list-page,
.ug-sort-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-sort-list-page > div:not(.ug-sort-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-sort-list-page > div:not(.ug-sort-table-wrap):not(.main_pageselect),
.ug-sort-list-page > div:not(.ug-sort-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sort-table-wrap,
body.sheet-list-page .main_content .ug-sort-table-wrap,
.ug-sort-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-sort-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-sort-table-wrap > .sheet-list-table-scroll,
.ug-sort-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-sort-table-wrap > .sheet-list-table-scroll > #list_table,
body.sheet-list-page .main_content .ug-sort-table-wrap > .sheet-list-table-scroll > #list_table,
.ug-sort-table-wrap > .sheet-list-table-scroll > #list_table{
    margin-bottom:0 !important;
}

body.sheet-list-page #main_content_left .ug-sort-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-sort-list-page .main_pageselect,
.ug-sort-list-page .main_pageselect{
    flex:0 0 auto;
}

.ug-sort-list-page .ug-sort-doc-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:5px;
}

.ug-sort-list-page .ug-sort-doc-actions .btn{
    margin-left:0 !important;
}

.ug-sort-list-page .ug-sort-doc-actions .btn + .btn{
    margin-left:0 !important;
}

.ug-sort-search-layout{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    flex-wrap:wrap;
}

.ug-sort-search-layout #srechformbox{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
    flex-wrap:wrap;
    margin:0;
}

.ug-sort-search-layout .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0 !important;
}

.sheet-list-page .main_content > .web-group-sell-order-page,
.sheet-list-page #main_content_left .web-group-sell-order-page,
.web-group-sell-order-page{
    display:block !important;
    flex:1 1 auto !important;
    width:100%;
    min-height:0 !important;
    height:100% !important;
    max-height:100% !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    box-sizing:border-box;
}

.sheet-list-page .main_content > .web-sell-order-page,
.sheet-list-page #main_content_left .web-sell-order-page,
.web-sell-order-page{
    display:block !important;
    flex:1 1 auto !important;
    width:100%;
    min-height:0 !important;
    height:100% !important;
    max-height:100% !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    box-sizing:border-box;
}

body.sheet-list-page #main_content_left .web-sell-list-page,
body.sheet-list-page .main_content .web-sell-list-page,
.web-sell-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .web-sell-list-content,
body.sheet-list-page .main_content .web-sell-list-content,
.web-sell-list-content{
    display:flex;
    flex:0 0 auto;
    flex-direction:column;
    min-height:0;
}

body.sheet-list-page #main_content_left .web-sell-list-content > div:not(.web-sell-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .web-sell-list-content > div:not(.web-sell-table-wrap):not(.main_pageselect),
.web-sell-list-content > div:not(.web-sell-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .web-sell-table-wrap,
body.sheet-list-page .main_content .web-sell-table-wrap,
.web-sell-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .web-sell-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .web-sell-table-wrap > .sheet-list-table-scroll,
.web-sell-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .web-sell-list-page .main_pageselect,
body.sheet-list-page .main_content .web-sell-list-page .main_pageselect,
.web-sell-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .ug-sell-list-page,
body.sheet-list-page .main_content .ug-sell-list-page,
.ug-sell-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-sell-list-content,
body.sheet-list-page .main_content .ug-sell-list-content,
.ug-sell-list-content{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sell-list-content > div:not(.ug-sell-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-sell-list-content > div:not(.ug-sell-table-wrap):not(.main_pageselect),
.ug-sell-list-content > div:not(.ug-sell-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sell-table-wrap,
body.sheet-list-page .main_content .ug-sell-table-wrap,
.ug-sell-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-sell-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-sell-table-wrap > .sheet-list-table-scroll,
.ug-sell-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-sell-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-sell-list-page .main_pageselect,
.ug-sell-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .ug-sch-list-page,
body.sheet-list-page .main_content .ug-sch-list-page,
.ug-sch-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-sch-list-content,
body.sheet-list-page .main_content .ug-sch-list-content,
.ug-sch-list-content{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sch-list-content > div:not(.ug-sch-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-sch-list-content > div:not(.ug-sch-table-wrap):not(.main_pageselect),
.ug-sch-list-content > div:not(.ug-sch-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sch-table-wrap,
body.sheet-list-page .main_content .ug-sch-table-wrap,
.ug-sch-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-sch-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-sch-table-wrap > .sheet-list-table-scroll,
.ug-sch-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-sch-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-sch-list-page .main_pageselect,
.ug-sch-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .ug-sell-ship-list-page,
body.sheet-list-page .main_content .ug-sell-ship-list-page,
.ug-sell-ship-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-sell-ship-list-page > div:not(.ug-sell-ship-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-sell-ship-list-page > div:not(.ug-sell-ship-table-wrap):not(.main_pageselect),
.ug-sell-ship-list-page > div:not(.ug-sell-ship-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sell-ship-table-wrap,
body.sheet-list-page .main_content .ug-sell-ship-table-wrap,
.ug-sell-ship-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-sell-ship-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-sell-ship-table-wrap > .sheet-list-table-scroll,
.ug-sell-ship-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-sell-ship-table-wrap > .sheet-list-table-scroll > #list_table,
body.sheet-list-page .main_content .ug-sell-ship-table-wrap > .sheet-list-table-scroll > #list_table,
.ug-sell-ship-table-wrap > .sheet-list-table-scroll > #list_table{
    margin-bottom:0 !important;
}

body.sheet-list-page #main_content_left .ug-sell-ship-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-sell-ship-list-page .main_pageselect,
.ug-sell-ship-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .ug-sell-close-list-page,
body.sheet-list-page .main_content .ug-sell-close-list-page,
.ug-sell-close-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-sell-close-list-page > div:not(.ug-sell-close-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-sell-close-list-page > div:not(.ug-sell-close-table-wrap):not(.main_pageselect),
.ug-sell-close-list-page > div:not(.ug-sell-close-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-sell-close-table-wrap,
body.sheet-list-page .main_content .ug-sell-close-table-wrap,
.ug-sell-close-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-sell-close-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-sell-close-table-wrap > .sheet-list-table-scroll,
.ug-sell-close-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-sell-close-table-wrap > .sheet-list-table-scroll > #list_table,
body.sheet-list-page .main_content .ug-sell-close-table-wrap > .sheet-list-table-scroll > #list_table,
.ug-sell-close-table-wrap > .sheet-list-table-scroll > #list_table{
    margin-bottom:0 !important;
}

body.sheet-list-page #main_content_left .ug-sell-close-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-sell-close-list-page .main_pageselect,
.ug-sell-close-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .ug-produce-limit-list-page,
body.sheet-list-page .main_content .ug-produce-limit-list-page,
.ug-produce-limit-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .ug-produce-limit-list-page > div:not(.ug-produce-limit-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .ug-produce-limit-list-page > div:not(.ug-produce-limit-table-wrap):not(.main_pageselect),
.ug-produce-limit-list-page > div:not(.ug-produce-limit-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .ug-produce-limit-table-wrap,
body.sheet-list-page .main_content .ug-produce-limit-table-wrap,
.ug-produce-limit-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .ug-produce-limit-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .ug-produce-limit-table-wrap > .sheet-list-table-scroll,
.ug-produce-limit-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .ug-produce-limit-table-wrap > .sheet-list-table-scroll > #list_table,
body.sheet-list-page .main_content .ug-produce-limit-table-wrap > .sheet-list-table-scroll > #list_table,
.ug-produce-limit-table-wrap > .sheet-list-table-scroll > #list_table{
    margin-bottom:0 !important;
}

body.sheet-list-page #main_content_left .ug-produce-limit-list-page .main_pageselect,
body.sheet-list-page .main_content .ug-produce-limit-list-page .main_pageselect,
.ug-produce-limit-list-page .main_pageselect{
    flex:0 0 auto;
}

.ug-sch-list-page .ug-sch-action-col,
.ug-sch-list-page .ug-sch-action-cell{
    width:96px;
    min-width:96px;
}

.ug-sch-list-page .ug-sch-action-cell{
    position:relative;
    overflow:visible;
    padding:8px 10px;
}

.ug-sch-list-page .ug-sch-action-grid{
    display:grid;
    grid-template-columns:repeat(2, 36px);
    gap:6px 8px;
    justify-content:center;
    align-items:center;
}

.ug-sch-list-page .ug-sch-action-slot{
    width:36px;
    min-width:36px;
    min-height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ug-sch-list-page .ug-sch-action-btn{
    position:relative;
    width:36px;
    min-width:36px;
    height:32px;
    padding:6px 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    line-height:1;
}

.ug-sch-list-page .ug-sch-action-btn i{
    font-size:13px;
    line-height:1;
}

.ug-sch-list-page .ug-sch-action-btn[data-tooltip]:hover::after,
.ug-sch-list-page .ug-sch-action-btn[data-tooltip]:focus::after{
    content:attr(data-tooltip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 8px);
    transform:translateX(-50%);
    z-index:1500;
    max-width:160px;
    padding:5px 8px;
    border-radius:5px;
    background:rgba(24, 34, 48, 0.94);
    color:#ffffff;
    font-size:12px;
    font-weight:600;
    line-height:1.35;
    white-space:nowrap;
    pointer-events:none;
    box-shadow:0 8px 18px rgba(15, 23, 42, 0.18);
}

.ug-sch-list-page .ug-sch-action-btn[data-tooltip]:hover::before,
.ug-sch-list-page .ug-sch-action-btn[data-tooltip]:focus::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:calc(100% + 3px);
    transform:translateX(-50%);
    z-index:1501;
    border-width:5px 5px 0;
    border-style:solid;
    border-color:rgba(24, 34, 48, 0.94) transparent transparent;
    pointer-events:none;
}

.ug-sell-list-page .ug-sell-action-col,
.ug-sell-list-page .ug-sell-action-cell{
    width:96px;
    min-width:96px;
}

.ug-sell-list-page .ug-sell-action-cell{
    position:relative;
    overflow:visible;
    padding:8px 10px;
}

.ug-sell-list-page .ug-sell-action-grid{
    display:grid;
    grid-template-columns:repeat(2, 36px);
    gap:6px 8px;
    justify-content:center;
    align-items:center;
}

.ug-sell-list-page .ug-sell-action-slot{
    width:36px;
    min-width:36px;
    min-height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ug-sell-list-page .ug-sell-action-btn{
    position:relative;
    width:36px;
    min-width:36px;
    height:32px;
    padding:6px 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    line-height:1;
}

.ug-sell-list-page .ug-sell-action-btn i{
    font-size:13px;
    line-height:1;
}

.ug-sell-list-page .ug-sell-action-cancel .fa-ban{
    font-size:14px;
}

.ug-sell-list-page .ug-sell-action-cancel .fa-trash-alt{
    font-size:13px;
}

.ug-sell-list-page .ug-sell-action-btn[data-tooltip]:hover::after,
.ug-sell-list-page .ug-sell-action-btn[data-tooltip]:focus::after{
    content:attr(data-tooltip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 8px);
    transform:translateX(-50%);
    z-index:1500;
    max-width:160px;
    padding:5px 8px;
    border-radius:5px;
    background:rgba(24, 34, 48, 0.94);
    color:#ffffff;
    font-size:12px;
    font-weight:600;
    line-height:1.35;
    white-space:nowrap;
    pointer-events:none;
    box-shadow:0 8px 18px rgba(15, 23, 42, 0.18);
}

.ug-sell-list-page .ug-sell-action-btn[data-tooltip]:hover::before,
.ug-sell-list-page .ug-sell-action-btn[data-tooltip]:focus::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:calc(100% + 3px);
    transform:translateX(-50%);
    z-index:1501;
    border-width:5px 5px 0;
    border-style:solid;
    border-color:rgba(24, 34, 48, 0.94) transparent transparent;
    pointer-events:none;
}

.voucher-verify-actions .btn{
    display:block;
    margin:0 auto 4px;
}

.voucher-verify-actions .btn:last-child{
    margin-bottom:0;
}

.web-sell-action-cell{
    min-width:120px;
    position:relative;
    overflow:visible;
}

.web-sell-action-wrap{
    position:relative;
    display:inline-block;
}

.web-sell-action-wrap.is-open{
    z-index:95;
}

.web-sell-action-grid{
    display:grid;
    grid-template-columns:repeat(2, 36px);
    gap:6px 8px;
    justify-content:center;
    width:88px;
    margin:0 auto;
}

.web-sell-action-slot{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
}

.web-sell-action-btn{
    width:36px;
    min-width:36px;
    height:32px;
    padding:6px 8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
}

.web-sell-more-menu{
    display:grid;
    grid-template-columns:1fr;
    min-width:92px;
    justify-content:center;
}

.web-sell-more-menu .produce-action-btn.btn-danger{
    color:var(--jerp-theme-danger);
    background:var(--jerp-theme-danger-bg);
    border-color:var(--jerp-theme-danger-border);
}

.web-sell-more-menu .produce-action-btn.btn-danger:hover,
.web-sell-more-menu .produce-action-btn.btn-danger:focus{
    color:#ffffff !important;
    background:var(--jerp-theme-danger) !important;
    border-color:var(--jerp-theme-danger) !important;
}

.web-sell-more-menu .produce-action-btn.btn-warning{
    color:var(--jerp-theme-warning);
    background:var(--jerp-theme-warning-bg);
    border-color:var(--jerp-theme-warning-border);
}

.web-sell-more-menu .produce-action-btn.btn-warning:hover,
.web-sell-more-menu .produce-action-btn.btn-warning:focus{
    color:#ffffff !important;
    background:var(--jerp-theme-warning) !important;
    border-color:var(--jerp-theme-warning) !important;
}

body.sheet-list-page #main_content_left .sell-logistic-list-page,
body.sheet-list-page .main_content .sell-logistic-list-page,
.sell-logistic-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .sell-logistic-list-page > div:not(.sell-logistic-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .sell-logistic-list-page > div:not(.sell-logistic-list-table-wrap):not(.main_pageselect),
.sell-logistic-list-page > div:not(.sell-logistic-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .sell-logistic-list-page .sell-logistic-list-table-wrap,
body.sheet-list-page .main_content .sell-logistic-list-page .sell-logistic-list-table-wrap,
.sell-logistic-list-page .sell-logistic-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .sell-logistic-list-page .sell-logistic-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .sell-logistic-list-page .sell-logistic-list-table-wrap > .sheet-list-table-scroll,
.sell-logistic-list-page .sell-logistic-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .sell-logistic-list-page .main_pageselect,
body.sheet-list-page .main_content .sell-logistic-list-page .main_pageselect,
.sell-logistic-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-customer-contract-list-page,
body.sheet-list-page .main_content .mi-customer-contract-list-page,
.mi-customer-contract-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-customer-contract-list-page > div:not(.mi-customer-contract-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-customer-contract-list-page > div:not(.mi-customer-contract-list-table-wrap):not(.main_pageselect),
.mi-customer-contract-list-page > div:not(.mi-customer-contract-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-customer-contract-list-page .mi-customer-contract-list-table-wrap,
body.sheet-list-page .main_content .mi-customer-contract-list-page .mi-customer-contract-list-table-wrap,
.mi-customer-contract-list-page .mi-customer-contract-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-customer-contract-list-page .mi-customer-contract-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-customer-contract-list-page .mi-customer-contract-list-table-wrap > .sheet-list-table-scroll,
.mi-customer-contract-list-page .mi-customer-contract-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-customer-contract-list-page .main_pageselect,
body.sheet-list-page .main_content .mi-customer-contract-list-page .main_pageselect,
.mi-customer-contract-list-page .main_pageselect{
    flex:0 0 auto;
}

.mi-customer-contract-list-page .mi-customer-contract-action-col,
.mi-customer-contract-list-page .mi-customer-contract-action-cell{
    width: 118px;
    min-width: 118px;
}



.mi-customer-contract-list-page .mi-customer-contract-action-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

.mi-customer-contract-list-page .mi-customer-contract-action-grid .btn,
.mi-customer-contract-list-page .mi-customer-contract-action-placeholder{
    width: 100%;
    min-width: 0;
    min-height: 34px;
}

.mi-customer-contract-list-page .mi-customer-contract-action-grid .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 6px;
}

.mi-customer-contract-list-page .mi-customer-contract-action-placeholder{
    display: block;
}





body.sheet-list-page #main_content_left .mi-contract-cancel-list-page,
body.sheet-list-page .main_content .mi-contract-cancel-list-page,
.mi-contract-cancel-list-page{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-contract-cancel-list-page > div:not(.mi-contract-cancel-list-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-contract-cancel-list-page > div:not(.mi-contract-cancel-list-table-wrap):not(.main_pageselect),
.mi-contract-cancel-list-page > div:not(.mi-contract-cancel-list-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-contract-cancel-list-page .mi-contract-cancel-list-table-wrap,
body.sheet-list-page .main_content .mi-contract-cancel-list-page .mi-contract-cancel-list-table-wrap,
.mi-contract-cancel-list-page .mi-contract-cancel-list-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-contract-cancel-list-page .mi-contract-cancel-list-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-contract-cancel-list-page .mi-contract-cancel-list-table-wrap > .sheet-list-table-scroll,
.mi-contract-cancel-list-page .mi-contract-cancel-list-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-contract-cancel-list-page .main_pageselect,
body.sheet-list-page .main_content .mi-contract-cancel-list-page .main_pageselect,
.mi-contract-cancel-list-page .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-delivery-process-list-scope,
body.sheet-list-page .main_content .mi-delivery-process-list-scope,
.mi-delivery-process-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-delivery-process-list-scope > div:not(.mi-delivery-process-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-delivery-process-list-scope > div:not(.mi-delivery-process-table-wrap):not(.main_pageselect),
.mi-delivery-process-list-scope > div:not(.mi-delivery-process-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-delivery-process-list-scope .mi-delivery-process-table-wrap,
body.sheet-list-page .main_content .mi-delivery-process-list-scope .mi-delivery-process-table-wrap,
.mi-delivery-process-list-scope .mi-delivery-process-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-delivery-process-list-scope .mi-delivery-process-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-delivery-process-list-scope .mi-delivery-process-table-wrap > .sheet-list-table-scroll,
.mi-delivery-process-list-scope .mi-delivery-process-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-delivery-process-list-scope .main_pageselect,
body.sheet-list-page .main_content .mi-delivery-process-list-scope .main_pageselect,
.mi-delivery-process-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-delivery-sheet-list-scope,
body.sheet-list-page .main_content .mi-delivery-sheet-list-scope,
.mi-delivery-sheet-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-delivery-sheet-list-scope > div:not(.mi-delivery-sheet-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-delivery-sheet-list-scope > div:not(.mi-delivery-sheet-table-wrap):not(.main_pageselect),
.mi-delivery-sheet-list-scope > div:not(.mi-delivery-sheet-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-delivery-sheet-list-scope .mi-delivery-sheet-table-wrap,
body.sheet-list-page .main_content .mi-delivery-sheet-list-scope .mi-delivery-sheet-table-wrap,
.mi-delivery-sheet-list-scope .mi-delivery-sheet-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-delivery-sheet-list-scope .mi-delivery-sheet-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-delivery-sheet-list-scope .mi-delivery-sheet-table-wrap > .sheet-list-table-scroll,
.mi-delivery-sheet-list-scope .mi-delivery-sheet-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-delivery-sheet-list-scope .main_pageselect,
body.sheet-list-page .main_content .mi-delivery-sheet-list-scope .main_pageselect,
.mi-delivery-sheet-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-shipping-label-list-scope,
body.sheet-list-page .main_content .mi-shipping-label-list-scope,
.mi-shipping-label-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-shipping-label-list-scope > div:not(.mi-shipping-label-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-shipping-label-list-scope > div:not(.mi-shipping-label-table-wrap):not(.main_pageselect),
.mi-shipping-label-list-scope > div:not(.mi-shipping-label-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-shipping-label-list-scope .mi-shipping-label-table-wrap,
body.sheet-list-page .main_content .mi-shipping-label-list-scope .mi-shipping-label-table-wrap,
.mi-shipping-label-list-scope .mi-shipping-label-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-shipping-label-list-scope .mi-shipping-label-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-shipping-label-list-scope .mi-shipping-label-table-wrap > .sheet-list-table-scroll,
.mi-shipping-label-list-scope .mi-shipping-label-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-shipping-label-list-scope .main_pageselect,
body.sheet-list-page .main_content .mi-shipping-label-list-scope .main_pageselect,
.mi-shipping-label-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-shipping-list-scope,
body.sheet-list-page .main_content .mi-shipping-list-scope,
.mi-shipping-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-shipping-list-scope > div:not(.mi-shipping-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-shipping-list-scope > div:not(.mi-shipping-table-wrap):not(.main_pageselect),
.mi-shipping-list-scope > div:not(.mi-shipping-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-shipping-list-scope .mi-shipping-table-wrap,
body.sheet-list-page .main_content .mi-shipping-list-scope .mi-shipping-table-wrap,
.mi-shipping-list-scope .mi-shipping-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-shipping-list-scope .mi-shipping-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-shipping-list-scope .mi-shipping-table-wrap > .sheet-list-table-scroll,
.mi-shipping-list-scope .mi-shipping-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-shipping-list-scope .main_pageselect,
body.sheet-list-page .main_content .mi-shipping-list-scope .main_pageselect,
.mi-shipping-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-return-list-scope,
body.sheet-list-page .main_content .mi-return-list-scope,
.mi-return-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-return-list-scope > div:not(.mi-return-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-return-list-scope > div:not(.mi-return-table-wrap):not(.main_pageselect),
.mi-return-list-scope > div:not(.mi-return-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-return-list-scope .mi-return-table-wrap,
body.sheet-list-page .main_content .mi-return-list-scope .mi-return-table-wrap,
.mi-return-list-scope .mi-return-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-return-list-scope .mi-return-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-return-list-scope .mi-return-table-wrap > .sheet-list-table-scroll,
.mi-return-list-scope .mi-return-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-return-list-scope .main_pageselect,
body.sheet-list-page .main_content .mi-return-list-scope .main_pageselect,
.mi-return-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .mi-contract-plan-list-scope,
body.sheet-list-page .main_content .mi-contract-plan-list-scope,
.mi-contract-plan-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .mi-contract-plan-list-scope > div:not(.mi-contract-plan-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .mi-contract-plan-list-scope > div:not(.mi-contract-plan-table-wrap):not(.main_pageselect),
.mi-contract-plan-list-scope > div:not(.mi-contract-plan-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .mi-contract-plan-list-scope .mi-contract-plan-table-wrap,
body.sheet-list-page .main_content .mi-contract-plan-list-scope .mi-contract-plan-table-wrap,
.mi-contract-plan-list-scope .mi-contract-plan-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .mi-contract-plan-list-scope .mi-contract-plan-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .mi-contract-plan-list-scope .mi-contract-plan-table-wrap > .sheet-list-table-scroll,
.mi-contract-plan-list-scope .mi-contract-plan-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .mi-contract-plan-list-scope .main_pageselect,
body.sheet-list-page .main_content .mi-contract-plan-list-scope .main_pageselect,
.mi-contract-plan-list-scope .main_pageselect{
    flex:0 0 auto;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-col,
.mi-contract-plan-list-scope .mi-contract-plan-action-cell{
    width:110px;
    min-width:110px;
}



.mi-contract-plan-list-scope .mi-contract-plan-action-wrap{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-top{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:6px;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-bottom{
    width:100%;
    display:flex;
    justify-content:center;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-btn{
    min-width:0;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
}

.mi-contract-plan-list-scope .mi-contract-plan-subplan-btn{
    width:calc(50% - 3px);
    min-width:0;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-slot{
    display:block;
    width:100%;
    min-height:32px;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-slot-bottom{
    width:calc(50% - 3px);
}




.pos-template-list-scope .pos-template-action-col,
.pos-template-list-scope .pos-template-action-cell{
    width:110px;
    min-width:110px;
}



.pos-template-list-scope .pos-template-action-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex-wrap:wrap;
}

.pos-template-list-scope .pos-template-action-btn{
    min-width:100%;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
}

body.sheet-list-page #main_content_left .pos-template-class-list-scope,
body.sheet-list-page .main_content .pos-template-class-list-scope,
.pos-template-class-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .pos-template-class-list-scope > div:not(.pos-template-class-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .pos-template-class-list-scope > div:not(.pos-template-class-table-wrap):not(.main_pageselect),
.pos-template-class-list-scope > div:not(.pos-template-class-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .pos-template-class-list-scope .pos-template-class-table-wrap,
body.sheet-list-page .main_content .pos-template-class-list-scope .pos-template-class-table-wrap,
.pos-template-class-list-scope .pos-template-class-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .pos-template-class-list-scope .pos-template-class-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .pos-template-class-list-scope .pos-template-class-table-wrap > .sheet-list-table-scroll,
.pos-template-class-list-scope .pos-template-class-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .pos-template-class-list-scope .main_pageselect,
body.sheet-list-page .main_content .pos-template-class-list-scope .main_pageselect,
.pos-template-class-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .device-list-scope,
body.sheet-list-page .main_content .device-list-scope,
.device-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .device-list-scope > div:not(.device-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .device-list-scope > div:not(.device-table-wrap):not(.main_pageselect),
.device-list-scope > div:not(.device-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .device-list-scope .device-table-wrap,
body.sheet-list-page .main_content .device-list-scope .device-table-wrap,
.device-list-scope .device-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .device-list-scope .device-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .device-list-scope .device-table-wrap > .sheet-list-table-scroll,
.device-list-scope .device-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .device-list-scope .main_pageselect,
body.sheet-list-page .main_content .device-list-scope .main_pageselect,
.device-list-scope .main_pageselect{
    flex:0 0 auto;
}

.device-list-scope .device-action-col,
.device-list-scope .device-action-cell{
    width:72px;
    min-width:72px;
}



.device-list-scope .device-action-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.device-list-scope .device-action-btn{
    width:100%;
    min-width:0;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
}



.device-list-scope .edite_btn:hover,
.device-list-scope .edite_btn:focus{
    color:#ffffff;
    background:#67c23a;
    border-color:#67c23a;
}

.pos-bmarquee-list-scope .pos-bmarquee-action-col,
.pos-bmarquee-list-scope .pos-bmarquee-action-cell{
    width:72px;
    min-width:72px;
}


.pos-bmarquee-list-scope .pos-bmarquee-action-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.pos-bmarquee-list-scope .pos-bmarquee-action-btn{
    width:100%;
    min-width:0;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
}





.pos-bimg-list-scope .pos-bimg-action-col,
.pos-bimg-list-scope .pos-bimg-action-cell{
    width:72px;
    min-width:72px;
}



.pos-bimg-list-scope .pos-bimg-action-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.pos-bimg-list-scope .pos-bimg-action-btn{
    width:100%;
    min-width:0;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
}





body.sheet-list-page #main_content_left .pos-bimg-list-scope,
body.sheet-list-page .main_content .pos-bimg-list-scope,
.pos-bimg-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .pos-bimg-list-scope > div:not(.pos-bimg-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .pos-bimg-list-scope > div:not(.pos-bimg-table-wrap):not(.main_pageselect),
.pos-bimg-list-scope > div:not(.pos-bimg-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .pos-bimg-list-scope .pos-bimg-table-wrap,
body.sheet-list-page .main_content .pos-bimg-list-scope .pos-bimg-table-wrap,
.pos-bimg-list-scope .pos-bimg-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .pos-bimg-list-scope .pos-bimg-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .pos-bimg-list-scope .pos-bimg-table-wrap > .sheet-list-table-scroll,
.pos-bimg-list-scope .pos-bimg-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .pos-bimg-list-scope .main_pageselect,
body.sheet-list-page .main_content .pos-bimg-list-scope .main_pageselect,
.pos-bimg-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .pos-bmarquee-list-scope,
body.sheet-list-page .main_content .pos-bmarquee-list-scope,
.pos-bmarquee-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .pos-bmarquee-list-scope > div:not(.pos-bmarquee-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .pos-bmarquee-list-scope > div:not(.pos-bmarquee-table-wrap):not(.main_pageselect),
.pos-bmarquee-list-scope > div:not(.pos-bmarquee-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .pos-bmarquee-list-scope .pos-bmarquee-table-wrap,
body.sheet-list-page .main_content .pos-bmarquee-list-scope .pos-bmarquee-table-wrap,
.pos-bmarquee-list-scope .pos-bmarquee-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .pos-bmarquee-list-scope .pos-bmarquee-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .pos-bmarquee-list-scope .pos-bmarquee-table-wrap > .sheet-list-table-scroll,
.pos-bmarquee-list-scope .pos-bmarquee-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .pos-bmarquee-list-scope .main_pageselect,
body.sheet-list-page .main_content .pos-bmarquee-list-scope .main_pageselect,
.pos-bmarquee-list-scope .main_pageselect{
    flex:0 0 auto;
}

body.sheet-list-page #main_content_left .pos-template-group-list-scope,
body.sheet-list-page .main_content .pos-template-group-list-scope,
.pos-template-group-list-scope{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    width:100%;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100%;
    overflow:hidden;
}

body.sheet-list-page #main_content_left .pos-template-group-list-scope > div:not(.pos-template-group-table-wrap):not(.main_pageselect),
body.sheet-list-page .main_content .pos-template-group-list-scope > div:not(.pos-template-group-table-wrap):not(.main_pageselect),
.pos-template-group-list-scope > div:not(.pos-template-group-table-wrap):not(.main_pageselect){
    flex:0 0 auto;
    min-height:0;
}

body.sheet-list-page #main_content_left .pos-template-group-list-scope .pos-template-group-table-wrap,
body.sheet-list-page .main_content .pos-template-group-list-scope .pos-template-group-table-wrap,
.pos-template-group-list-scope .pos-template-group-table-wrap{
    display:flex !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
}

body.sheet-list-page #main_content_left .pos-template-group-list-scope .pos-template-group-table-wrap > .sheet-list-table-scroll,
body.sheet-list-page .main_content .pos-template-group-list-scope .pos-template-group-table-wrap > .sheet-list-table-scroll,
.pos-template-group-list-scope .pos-template-group-table-wrap > .sheet-list-table-scroll{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-x:auto !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}

body.sheet-list-page #main_content_left .pos-template-group-list-scope .main_pageselect,
body.sheet-list-page .main_content .pos-template-group-list-scope .main_pageselect,
.pos-template-group-list-scope .main_pageselect{
    flex:0 0 auto;
}

.mi-shipping-label-list-scope .mi-shipping-label-remark-col{
    width:96px !important;
    min-width:96px !important;
    max-width:96px !important;
}

.mi-delivery-sheet-list-scope .mi-delivery-sheet-action-group{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:5px;
    flex-wrap:wrap;
}

.mi-delivery-sheet-list-scope .mi-delivery-sheet-action-group > .btn,
.mi-delivery-sheet-list-scope .mi-delivery-sheet-action-group > a.btn,
.mi-delivery-sheet-list-scope .mi-delivery-sheet-action-group > button.btn{
    flex:0 0 auto;
}

@media (max-width: 767px){
    .mi-delivery-sheet-list-scope .mi-delivery-sheet-action-group{
        flex-direction:column;
        align-items:stretch;
    }
}

.mi-contract-cancel-list-page .mi-contract-cancel-action-col,
.mi-contract-cancel-list-page .mi-contract-cancel-action-cell{
    width: 132px;
    min-width: 132px;
}



.mi-contract-cancel-list-page .mi-contract-cancel-action-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:6px;
    align-items:stretch;
}

.mi-contract-cancel-list-page .mi-contract-cancel-action-grid .btn,
.mi-contract-cancel-list-page .mi-contract-cancel-action-placeholder{
    width:100%;
    min-width:0;
    min-height:34px;
}

.mi-contract-cancel-list-page .mi-contract-cancel-action-grid .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 8px;
    border-radius:6px;
}

.mi-contract-cancel-list-page .mi-contract-cancel-action-placeholder{
    display:block;
}

.mi-contract-cancel-list-page .mi-contract-cancel-form-btn,
.mi-contract-cancel-list-page .mi-contract-cancel-action-placeholder-wide{
    grid-column:1 / span 2;
}

.mi-contract-cancel-list-page .mi-contract-cancel-form-btn{
    width:calc(50% - 3px) !important;
    justify-self:center;
}




#insProformbox .sell_no{
    width:140px;
    max-width:140px;
}

#insProformbox .ug-sell-logistic-sell-no{
    width:120px !important;
    max-width:120px !important;
}

.ug-sell-logistic-topbar{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    flex-wrap:wrap;
}

.ug-sell-logistic-topbar #insProformbox{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
    flex-wrap:wrap;
    margin:0;
}

.ug-sell-logistic-topbar .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0 !important;
}

.ug-sell-ship-topbar{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    flex-wrap:wrap;
}

.ug-sell-ship-topbar #insProformbox{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
    flex-wrap:wrap;
    margin:0;
}

.ug-sell-ship-topbar .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0 !important;
}

#insProformbox .ug-sell-ship-search-no{
    width:130px !important;
    max-width:130px !important;
}

.ug-sell-close-topbar{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    flex-wrap:wrap;
}

.ug-sell-close-topbar #insProformbox{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
    flex-wrap:wrap;
    margin:0;
}

.ug-sell-close-topbar .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0 !important;
}

#insProformbox .ug-sell-close-search-no{
    width:120px !important;
    max-width:120px !important;
}

.ug-produce-limit-topbar{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    flex-wrap:wrap;
}

.ug-produce-limit-topbar #insProformbox{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
    flex-wrap:wrap;
    margin:0;
}

.ug-produce-limit-topbar .sheet-list-tools-close{
    flex:0 0 auto;
    margin-left:0 !important;
}

#insProformbox .ug-produce-limit-search-no{
    width:120px !important;
    max-width:120px !important;
}

#insProformbox .shipping_label_no{
    width:160px !important;
    max-width:160px !important;
}

#insProformbox .shipping_no{
    width:160px !important;
    max-width:160px !important;
}

@media (max-width: 900px){
    .ug-prod-stock-search-primary{
        flex-wrap:wrap;
        align-items:flex-start;
    }

    .ug-sell-sort-search-primary{
        flex-wrap:wrap;
        align-items:flex-start;
    }

    .ug-prod-stock-search-actions,
    .ug-prod-stock-search-filters{
        flex:1 1 100%;
    }

    .ug-sell-sort-create-form,
    .ug-sell-sort-search-filters{
        flex:1 1 100%;
    }

    .ug-prod-stock-search-filters{
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    .ug-sell-sort-search-filters,
    .ug-sell-sort-search-form{
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    .ug-prod-stock-dm-form .insProbarcode{
        flex-basis:100%;
    }

    .web-group-pre-sell-search-primary,
    .web-group-sell-search-primary,
    .ug-sell-search-primary,
    .web-sell-search-primary,
    .ug-sell-search-form,
    .web-group-sell-search-form,
    .web-group-pre-sell-search-form,
    .web-sell-search-form{
        flex-wrap:wrap;
    }

    .ug-sell-search-layout .serach_input,
    .web-group-pre-sell-search-layout .serach_input,
    .web-group-sell-search-layout .serach_input,
    .web-sell-search-layout .serach_input{
        flex-basis:100%;
        min-width:0;
    }

    .sell-sort-add-search-form .serach_input{
        flex-basis:100%;
        min-width:0;
    }

    .ug-sell-sort-search-form .serach_input{
        flex-basis:100%;
        min-width:0;
    }

    .sell-sort-list-page .sell-sort-doc-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .ug-sort-list-page .ug-sort-doc-actions{
        flex-direction:column;
        align-items:stretch;
    }
}



.search_btn{
    border: 1px solid #ddd;
}



.modal-body{
    padding: 0;
}

/* 非 iframe 的 BootstrapDialog 恢復 Bootstrap 預設內容留白。 */
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-body:not(:has(iframe)),
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-body:has(form),
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-body:has(.web-management-view){
    padding: 15px;
}

/* 原生表單彈窗共用捲動區，保留標題與操作按鈕在視窗內。 */
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content{
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
}
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-header,
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-footer{
    flex: 0 0 auto;
}
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
}
@media (max-width: 767px){
    .ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content{
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }
}

/* onsaleMgr 的新增販促 modal 內容捲動區 */
/* Shared dialogs follow the current theme without fading their controls. */
.ui-v2 input[type="file"].form-control{
    height:auto;
    min-height:38px;
    padding:0;
    line-height:24px;
}
.ui-v2 input[type="file"].form-control::file-selector-button{
    margin:0 12px 0 0;
    padding:6px 12px;
    border:0;
    border-right:1px solid var(--jerp-theme-border-light);
    background:var(--jerp-theme-secondary-bg);
    color:var(--jerp-theme-text-body);
    font:inherit;
    cursor:pointer;
}
.ui-v2 input[type="file"].form-control::file-selector-button:hover{background:var(--jerp-theme-secondary-bg-hover);}
.ui-v2.dark-mode input[type="file"].form-control{color-scheme:dark;}
.red-point3-import-dialog{display:flex;flex-direction:column;align-items:stretch;gap:12px;}
.red-point3-import-dialog>.form-control,.red-point3-import-dialog>.btn{margin-bottom:0!important;}
.red-point3-import-dialog>.btn{align-self:flex-start;}
.red-point3-import-save-actions{align-self:center;display:inline-flex;align-items:center;gap:8px;}
.red-point3-import-upload-actions{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;}
.red-point3-import-upload-actions>.btn{cursor:pointer;}
.popover.red-point3-import-help-popover.bottom{margin-top:20px;}
.popover.red-point3-import-help-popover.top{margin-top:-20px;}
.red-point3-import-save-actions>.btn-success{cursor:pointer;}
.red-point3-import-save-actions>.btn-success:disabled{cursor:not-allowed;pointer-events:auto;}
.red-point3-import-save-actions>.invoice-format-header-help{cursor:pointer;}
.red-point3-import-dialog>p{margin:0;}
.red-point3-import-dialog>p:empty,.red-point3-import-dialog>.table-responsive:empty{display:none;}
.ui-v2.dark-mode .bootstrap-dialog .red-point3-report table th{
    background:var(--jerp-theme-secondary-bg) !important;
    color:var(--jerp-theme-text-body) !important;
    border-color:var(--jerp-theme-border-light) !important;
}
.ui-v2.dark-mode .bootstrap-dialog .red-point3-report table td{
    color:var(--jerp-theme-text-body) !important;
    border-color:var(--jerp-theme-border-light) !important;
}
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content{
    background:var(--jerp-theme-card-bg);
    backdrop-filter:none;
}
.ui-v2.dark-mode .bootstrap-dialog.modal > .modal-dialog > .modal-content{
    background:color-mix(in srgb,var(--jerp-theme-card-bg) 65%,transparent);
    backdrop-filter:blur(8px);
}
.ui-v2 .bootstrap-dialog.modal > .modal-dialog > .modal-content > .modal-body{
    background:transparent;
}

.bootstrap-dialog .onsale2-form{
    max-height: calc(100vh - 180px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.ui-v2 .bootstrap-dialog .onsale2-form{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
}
.ui-v2 .bootstrap-dialog .onsale2-form .onsale2-index-page{
    height:auto;
}



body.dark-mode .awesomplete ul{
    background: var(--jerp-theme-card-bg);
}

body.dark-mode #MainItemList table,
body.dark-mode #MainItemList table th,
body.dark-mode #MainItemList table td{
    background: var(--jerp-theme-dark-bg);
}

body.dark-mode #prodStockMgr-top{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode .hTotal{
    color: #00BCD4 !important;
}

.nav-pills > li > a{
    color: #686a6f;
    background: #f3f7fc;
    border: 1px solid #dce6f2;
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus{
    color: #409eff;
    background: #eaf2fb;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus{
    color: #409eff !important;
    background: #dceefd !important;
    border-color: #bdd9f3 !important;
}

body.dark-mode .nav-pills > li > a{
    color: var(--jerp-theme-text-secondary);
    background: var(--jerp-theme-card-bg);
    border-color: var(--jerp-theme-border-light);
}

body.dark-mode .nav-pills > li > a:hover,
body.dark-mode .nav-pills > li > a:focus{
    color: var(--jerp-theme-text-primary);
    background: var(--jerp-theme-bg-hover);
}

body.dark-mode .nav-pills > li.active > a,
body.dark-mode .nav-pills > li.active > a:hover,
body.dark-mode .nav-pills > li.active > a:focus{
    color: #7dd3fc !important;
    background: #0c4a6e !important;
    border-color: #0369a1 !important;
}

body.dark-mode .s-frame::before{
    background-color: var(--jerp-theme-card-bg);
}

body.dark-mode .input-append.date .add-on i,
body.dark-mode .input-prepend.date .add-on i,
body.dark-mode .input-group.date .input-group-addon span,
body.dark-mode .datetimepicker .glyphicon{
    color: #0f172a !important;
}

/* Employee store options must follow the current theme after dependency updates. */
select.emp_store_id{
    color-scheme: light;
}
body.dark-mode select.emp_store_id{
    color-scheme: dark;
}
select.emp_store_id option{
    background-color: var(--jerp-theme-card-bg, #ffffff);
    color: var(--jerp-theme-text-primary, #212529);
}
select.emp_store_id option:disabled{
    color: var(--jerp-theme-text-muted, #6c757d);
}

body.dark-mode input[type="date"],
body.dark-mode input[type="time"],
body.dark-mode input[type="datetime-local"]{
    color-scheme: dark;
}

body.dark-mode .swal2-modal{
    background-color: var(--jerp-theme-dark-bg) !important;
}

body.dark-mode .swal2-confirm{
    color: #ffffff !important;
    background-color: #4c1d95 !important;
}

body.dark-mode .swal2-confirm:hover,
body.dark-mode .swal2-confirm:focus{
    background-color: #5b21b6 !important;
}

@media (max-width: 991.98px){
    .user-info-name{
        display: none;
    }
}



button:focus{
    outline: unset;
    outline: unset;
}

/* List tables: keep action buttons aligned horizontally until space is limited. */
[data-original-title="瀏覽"]{
    display: none !important;
}

/* Produce list: keep the primary action buttons on one row. */
.produce-mgr-table-wrap .produce-action-col,
.produce-mgr-table-wrap .produce-action-cell{
    width: 166px;
    min-width: 166px;
}

.produce-mgr-table-wrap .produce-action-wrap{
    width: 154px;
}

.produce-mgr-table-wrap .produce-action-grid{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Match the more menu width to its standardized action buttons. */
.produce-more-menu{
    width: 55px;
    min-width: 55px;
    padding: 6px;
    gap: 4px;
}

/* On-sale list: keep action buttons in a single horizontal row. */
.onsale-mgr-list-table-wrap .onsale-action-col,
.onsale-mgr-list-table-wrap .onsale-action-cell{
    width: 160px;
    min-width: 160px;
}

.onsale-mgr-list-table-wrap .onsale-action-grid{
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: start !important;
    gap: 6px;
}

/* Store customer lists: keep the three action buttons on one row. */
.storecus-list-page .storecus-action-col,
.storecus-list-page .storecus-action-cell,
.storecus-o-list-page .storecus-o-action-col,
.storecus-o-list-page .storecus-o-action-cell{
    width: 152px;
    min-width: 152px;
}

.storecus-list-page .storecus-action-has-pickup{
    width: 196px;
    min-width: 196px;
}

.storecus-list-page .storecus-action-wrap,
.storecus-o-list-page .storecus-o-action-wrap{
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.storecus-list-page .storecus-action-top,
.storecus-o-list-page .storecus-o-action-top{
    width: auto;
    display: flex;
    gap: 6px;
}

.storecus-list-page .storecus-action-bottom,
.storecus-o-list-page .storecus-o-action-bottom{
    width: auto;
}

/* Pre-purchase list: keep action buttons in a single horizontal row. */
.pre-purchase-list-table-wrap .pre-purchase-action-col,
.pre-purchase-list-table-wrap .pre-purchase-action-cell{
    width: 198px;
    min-width: 198px;
}

.pre-purchase-list-table-wrap td.pre-purchase-action-cell .pre-purchase-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.pre-purchase-list-table-wrap .pre-purchase-action-slot{
    flex: 0 0 auto;
}

/* Purchase list: keep action buttons in a single horizontal row. */
.purchase-mgr-list-table-wrap .purchase-mgr-action-col,
.purchase-mgr-list-table-wrap .purchase-mgr-action-cell{
    width: 160px;
    min-width: 160px;
}

.purchase-mgr-list-table-wrap td.purchase-mgr-action-cell .purchase-mgr-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.purchase-mgr-list-table-wrap .purchase-mgr-action-slot{
    flex: 0 0 auto;
}

/* Stock returned list: align audit, return-edit, and more actions in one row. */
.stock-returned-mgr-table-wrap .stock-returned-action-col,
.stock-returned-mgr-table-wrap .stock-returned-action-cell{
    width: 152px;
    min-width: 152px;
}

.stock-returned-mgr-table-wrap .stock-returned-action-wrap{
    width: 132px;
}

.stock-returned-mgr-table-wrap td.stock-returned-action-cell .stock-returned-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stock-returned-mgr-table-wrap .stock-returned-action-slot{
    flex: 0 0 40px;
    width: 40px;
}

.stock-returned-mgr-table-wrap .stock-returned-action-slot:first-child{
    display: none;
}

/* Stock returned2 list: keep visible action buttons in one horizontal row. */
.stock-returned2-mgr-table-wrap .stock-returned2-action-col,
.stock-returned2-mgr-table-wrap .stock-returned2-action-cell{
    width: 152px;
    min-width: 152px;
}

.stock-returned2-mgr-table-wrap td.stock-returned2-action-cell .stock-returned2-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-slot{
    flex: 0 0 40px;
    width: 40px;
}

.stock-returned2-mgr-table-wrap .stock-returned2-action-slot:first-child,
.stock-returned2-mgr-table-wrap .stock-returned2-action-slot:not(:has(.btn)){
    display: none;
}

/* Stock adjustment preview list: keep visible actions in one horizontal row. */
.stock-odj-pre-list-page .stock-odj-pre-action-col,
.stock-odj-pre-list-page .stock-odj-pre-action-cell{
    width: 152px;
    min-width: 152px;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page .stock-odj-pre-action-wrap{
    width: 132px;
}

body.sheet-list-page #main_content_left .stock-odj-pre-list-page td.stock-odj-pre-action-cell .stock-odj-pre-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.stock-odj-pre-list-page .stock-odj-pre-action-grid > :first-child{
    display: none;
}

/* Purchase explode list: keep action buttons in a single horizontal row. */
.purchase-explode-mgr-table-wrap th.purchase-explode-action-col,
.purchase-explode-mgr-table-wrap td.purchase-explode-action-cell{
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

.purchase-explode-mgr-table-wrap td.purchase-explode-action-cell .purchase-explode-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.purchase-explode-mgr-table-wrap .purchase-explode-action-slot,
.purchase-explode-mgr-table-wrap .purchase-explode-action-slot-center{
    flex: 0 0 40px;
    width: 40px;
}

/* Stock scrap2 list: keep visible action buttons in one horizontal row. */
.stock-scrap2-mgr-table-wrap .stock-scrap2-action-col,
.stock-scrap2-mgr-table-wrap .stock-scrap2-action-cell{
    width: 152px;
    min-width: 152px;
}

.stock-scrap2-mgr-table-wrap td.stock-scrap2-action-cell .stock-scrap2-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-slot,
.stock-scrap2-mgr-table-wrap .stock-scrap2-action-slot-return{
    flex: 0 0 40px;
    width: 40px;
}

.stock-scrap2-mgr-table-wrap .stock-scrap2-action-slot:not(:has(.btn)){
    display: none;
}

/* B2B customer sales list: keep action buttons on one horizontal row. */
.b2b-cus-list-sell-table-wrap td.text-center:has(> div > .b2b-cus-action-tooltip-trigger){
    min-width: 106px;
    vertical-align: middle;
}

.b2b-cus-list-sell-table-wrap td.text-center:has(> div > .b2b-cus-action-tooltip-trigger) > div{
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
}

.b2b-cus-list-sell-table-wrap .b2b-cus-action-tooltip-trigger{
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 36px;
    margin: 0 !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* B2B sub-customer sales list: keep action buttons on one horizontal row. */
.b2b-scus-list-sell-table-wrap td.text-center:has(> div > .b2b-scus-action-tooltip-trigger){
    min-width: 106px;
    vertical-align: middle;
}

.b2b-scus-list-sell-table-wrap td.text-center:has(> div > .b2b-scus-action-tooltip-trigger) > div{
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
}

.b2b-scus-list-sell-table-wrap .b2b-scus-action-tooltip-trigger{
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 36px;
    margin: 0 !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* POS sales list: hide the detail action and keep remaining actions on one row. */
.pos-sell-operate-grid [data-original-title="交易詳細"],
.pos-sell-operate-grid [title="交易詳細"]{
    display: none !important;
}

td.text-center:has(> .pos-sell-operate-grid){
    min-width: 152px;
    vertical-align: middle;
}

.pos-sell-operate-grid{
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* POS clear collection list: keep action buttons on one horizontal row. */
td.text-center:has(> .pos-clear-col-operate-grid){
    min-width: 152px;
    vertical-align: middle;
}

.pos-clear-col-operate-grid{
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Web group pre-sale list: keep action buttons on one horizontal row. */
.web-group-action-cell{
    min-width: 152px;
}

td.web-group-action-cell.web-group-action-cell .web-group-action-grid{
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 132px;
}

.web-group-action-grid .action-row{
    display: contents;
}

.web-group-action-grid .action-top,
.web-group-action-grid .action-bottom{
    flex: 0 0 40px;
    width: 40px;
}

/* Product group list: keep visible action buttons on one horizontal row. */
.prod-group-action-cell{
    min-width: 198px;
}

td.prod-group-action-cell.prod-group-action-cell .prod-group-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 178px;
}

.prod-group-action-slot{
    flex: 0 0 40px;
    width: 40px;
}

.prod-group-action-slot:has(.btn_view),
.prod-group-action-slot:not(:has(.btn)){
    display: none;
}

/* Web sales list: hide the detail action and align visible actions in one row. */
.web-sell-action-cell{
    min-width: 152px;
}

.web-sell-action-grid [data-original-title="詳細"],
.web-sell-action-grid [title="詳細"]{
    display: none !important;
}

.web-sell-action-wrap{
    width: 132px;
}

td.web-sell-action-cell.web-sell-action-cell .web-sell-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 132px;
}

.web-sell-action-slot{
    flex: 0 0 40px;
    width: 40px;
}

.web-sell-action-slot:has(.btn_view),
.web-sell-action-slot:not(:has(.btn)){
    display: none;
}

/* Customer contract list: hide view and align visible actions in one row. */
.mi-customer-contract-list-page .mi-customer-contract-action-col,
.mi-customer-contract-list-page .mi-customer-contract-action-cell{
    width: 152px;
    min-width: 152px;
}

.mi-customer-contract-action-grid [data-original-title="檢視"],
.mi-customer-contract-action-grid [title="檢視"],
.mi-customer-contract-action-placeholder{
    display: none !important;
}

.mi-customer-contract-list-page td.mi-customer-contract-action-cell .mi-customer-contract-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 132px;
}

/* Contract cancel list: align visible action buttons in one horizontal row. */
.mi-contract-cancel-list-page .mi-contract-cancel-action-col,
.mi-contract-cancel-list-page .mi-contract-cancel-action-cell{
    width: 152px;
    min-width: 152px;
}

.mi-contract-cancel-action-placeholder{
    display: none !important;
}

.mi-contract-cancel-list-page td.mi-contract-cancel-action-cell .mi-contract-cancel-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 132px;
}

/* MI customer list: align visible action buttons in one horizontal row. */
.mi-customer-list-page .mi-customer-action-col,
.mi-customer-list-page .mi-customer-action-cell{
    width: 152px;
    min-width: 152px;
}

.mi-customer-action-top [data-original-title="瀏覽"],
.mi-customer-action-top [title="瀏覽"],
.mi-customer-action-slot{
    display: none !important;
}

.mi-customer-list-page .mi-customer-action-wrap{
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.mi-customer-list-page .mi-customer-action-top{
    width: auto;
    display: flex;
    gap: 6px;
}

.mi-customer-list-page .mi-customer-action-bottom{
    width: auto;
}

/* Contract plan list: align visible action buttons in one horizontal row. */
.mi-contract-plan-list-scope .mi-contract-plan-action-col,
.mi-contract-plan-list-scope .mi-contract-plan-action-cell{
    width: 152px;
    min-width: 152px;
}

.mi-contract-plan-action-slot{
    display: none !important;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-wrap{
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-top{
    width: auto;
    display: flex;
    gap: 6px;
}

.mi-contract-plan-list-scope .mi-contract-plan-action-bottom{
    width: auto;
}

/* UG sales list: keep visible action buttons in one horizontal row. */
.ug-sell-list-page .ug-sell-action-col,
.ug-sell-list-page .ug-sell-action-cell{
    width: 198px;
    min-width: 198px;
}

.ug-sell-list-page td.ug-sell-action-cell .ug-sell-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ug-sell-list-page .ug-sell-action-slot{
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
}

.ug-sell-list-page .ug-sell-action-slot:not(:has(.btn)){
    display: none;
}

/* UG schedule list: hide view and align visible actions in one horizontal row. */
.ug-sch-list-page .ug-sch-action-col,
.ug-sch-list-page .ug-sch-action-cell{
    width: 152px;
    min-width: 152px;
}

.ug-sch-list-page td.ug-sch-action-cell .ug-sch-action-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ug-sch-list-page .ug-sch-action-slot{
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
}

.ug-sch-list-page .ug-sch-action-slot:has([aria-label="瀏覽"]),
.ug-sch-list-page .ug-sch-action-slot:not(:has(.btn)){
    display: none;
}


/* SweetAlert2 共用響應式版型：內容可捲動，底部操作區固定留在可視範圍。 */
.swal2-container{
    --jerp-swal-viewport-gap: 16px;
    --jerp-swal-top-gap: max(var(--jerp-swal-viewport-gap), env(safe-area-inset-top));
    --jerp-swal-bottom-gap: max(var(--jerp-swal-viewport-gap), env(safe-area-inset-bottom));
    box-sizing: border-box;
    z-index: 20050 !important;
    padding: var(--jerp-swal-top-gap) var(--jerp-swal-viewport-gap) var(--jerp-swal-bottom-gap) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.swal2-container .swal2-popup:not(.swal2-toast){
    /* display: flex !important; */
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - var(--jerp-swal-top-gap) - var(--jerp-swal-bottom-gap));
}

.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-html-container{
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-title,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-icon,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-image,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-input,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-file,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-range,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-select,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-radio,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-checkbox,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-validation-message,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-actions,
.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-footer{
    flex: 0 0 auto;
}

.swal2-container .swal2-popup:not(.swal2-toast) > .swal2-actions{
    position: relative;
    z-index: 3;
    max-width: 100%;
    padding-bottom: 10px;
}

/* 權限項目數量很多時，讓內容列縮入視窗高度並由外層內容區捲動。 */
.swal2-container .swal2-popup.swal2-bootstrap-dialog:has(#powertable){
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
}

/* Dialog iframe 只保留表單內容，不沿用主列表的固定高度與捲動鎖定。 */
.ui-v2 .bootstrap-dialog.modal.jerp-native-page-frame-modal > .modal-dialog > .modal-content > .modal-body{
    padding: 0 !important;
    overflow: hidden !important;
}
.jerp-native-page-frame-modal .jerp-native-page-frame-content{
    position: relative;
    height: min(72vh, calc(100vh - 180px)) !important;
    height: min(72dvh, calc(100dvh - 180px)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.jerp-native-page-frame-content > iframe{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0;
}
body.jerp-dialog-frame-scroll #main_content_left.jerp-return-edit-root{
    display: block !important;
    position: relative !important;
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow: visible !important;
}
.jerp-return-edit-root > :is(.b2b-sell-return-edit-blocks,.pos-sell-return-edit-blocks,#ugSellReturnEditVisibleBox,#webSellReturnEditVisibleBox,#WebGroupReturnEditVisibleBox,#OrderItemBox){
    box-sizing: border-box;
    width: 100% !important;
    padding: 0 !important;
}
.jerp-return-edit-root :is(#MainItemList,#MainBoxList){
    overflow-x: auto;
}
html.jerp-dialog-frame-scroll{
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.jerp-dialog-frame-scroll{
    display: block !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}

.swal2-container .swal2-popup.swal2-bootstrap-dialog:has(#powertable) > .swal2-html-container{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 團購檔期商品表單內容較長，固定標題與操作按鈕，僅捲動表單內容。 */
.swal2-container .swal2-popup.swal2-bootstrap-dialog:has(.pgi_p_mode){
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
}

.swal2-container .swal2-popup.swal2-bootstrap-dialog:has(.pgi_p_mode) > .swal2-html-container{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* UI v2 的 SweetAlert2 adapter 會在內容區內多包一層 BootstrapDialog message。 */
/* .swal2-container .swal2-popup.swal2-bootstrap-dialog > .swal2-html-container{
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    overflow: hidden !important;
} */

.swal2-container .swal2-popup.swal2-bootstrap-dialog .swal2-bootstrap-dialog-message{
    display: block;
    flex: 0 1 auto !important;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Form 內容統一由 SweetAlert2 外層捲動，避免 form 與對話框同時出現垂直滾軸。 */
.swal2-container .swal2-popup.swal2-bootstrap-dialog .swal2-bootstrap-dialog-message > .edite_form,
.swal2-container .swal2-popup.swal2-bootstrap-dialog .swal2-bootstrap-dialog-message > .view_form{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
}

/* 一般 FORM 由內容區捲動；PAGE／返回編輯保留自己的 iframe 與捲動容器。 */
.swal2-container .swal2-popup.swal2-bootstrap-dialog:not(.swal2-page-form-modal):not(.swal2-return-edit-modal):has(.swal2-bootstrap-dialog-message form){
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
}

/* Swal 的 grid 關閉按鈕帶負邊距；在 flex FORM 中改為右上角定位，避免標題被往上拉。 */
.swal2-container .swal2-popup.swal2-bootstrap-dialog:not(.swal2-page-form-modal):not(.swal2-return-edit-modal):has(.swal2-bootstrap-dialog-message form) > .swal2-close{
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}

.swal2-container .swal2-popup.swal2-bootstrap-dialog:not(.swal2-page-form-modal):not(.swal2-return-edit-modal):has(.swal2-bootstrap-dialog-message form) > .swal2-title{
    padding-left: 48px;
    padding-right: 48px;
}

.swal2-container .swal2-popup.swal2-bootstrap-dialog:not(.swal2-page-form-modal):not(.swal2-return-edit-modal):has(.swal2-bootstrap-dialog-message form) > .swal2-html-container{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.swal2-container .swal2-popup.swal2-bootstrap-dialog:not(.swal2-page-form-modal):not(.swal2-return-edit-modal):has(.swal2-bootstrap-dialog-message form) .swal2-bootstrap-dialog-message{
    max-height: none !important;
    overflow: visible !important;
}

/* page 版表單由載入容器保留唯一滾軸，讓表單內的滑鼠滾輪可直接作用。 */
.swal2-container.swal2-page-form-container{
    overflow-y: hidden !important;
}

.swal2-container .swal2-popup.swal2-page-form-modal{
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 32px);
    height: calc(100dvh - var(--jerp-swal-top-gap) - var(--jerp-swal-bottom-gap));
    overflow: hidden !important;
}

.swal2-container .swal2-popup.swal2-page-form-modal > .swal2-html-container{
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

/* 返回編輯已有自己的內容捲動區，外層不可再產生第二條滾軸。 */
.swal2-container .swal2-popup.swal2-return-edit-modal > .swal2-html-container{
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.swal2-container .swal2-popup.swal2-return-edit-modal .swal2-bootstrap-dialog-message{
    display: flex;
    flex: 1 1 auto !important;
    flex-direction: column;
    min-height: 0 !important;
    overflow: hidden !important;
}

.swal2-container .swal2-popup.swal2-page-form-modal .swal2-bootstrap-dialog-message{
    display: flex;
    flex: 1 1 auto !important;
    flex-direction: column;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
}

.swal2-container .swal2-popup.swal2-page-form-modal .swal2-bootstrap-dialog-message > .jerp-page-form-scroll-content{
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
}

/* iframe 型 page 表單只保留 iframe 內部滾動，避免返回編輯出現雙層滾軸。 */
.swal2-container .swal2-popup.swal2-page-form-modal .swal2-bootstrap-dialog-message > .jerp-page-form-frame-content{
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.swal2-container .swal2-popup.swal2-page-form-modal .jerp-page-form-frame-content > iframe{
    display: block;
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0;
}

.swal2-container .swal2-popup.swal2-bootstrap-dialog .swal2-bootstrap-dialog-actions{
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    padding-bottom: 10px;
}

@media (max-width: 767.98px){
    .swal2-container{
        --jerp-swal-viewport-gap: 8px;
    }

    .swal2-container .swal2-popup:not(.swal2-toast){
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - var(--jerp-swal-top-gap) - var(--jerp-swal-bottom-gap));
    }

    .swal2-container .swal2-popup:not(.swal2-toast) > .swal2-actions,
    .swal2-container .swal2-popup.swal2-bootstrap-dialog .swal2-bootstrap-dialog-actions{
        flex-wrap: wrap;
    }
}


.web-group-sell-order-page,.web-sell-order-page,.ug-sell-order-form{
    min-height: 700px !important;
}

.s-frame::before{
    background-color: #fff;
}

/* Standardize buttons in table action columns across list pages. */
td[class*="-action-cell"] .btn,
td[class*="-operate-cell"] .btn,
table [class*="-action-grid"] .btn,
table [class*="-operate-grid"] .btn,
table [class*="-action-stack"] .btn,
table [class*="-operate-stack"] .btn,
table .def-list-action-wrap .btn,
table .def-scroll-action-stack .btn,
.produce-more-menu .btn{
    box-sizing: border-box;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

td[class*="-action-cell"],
td[class*="-operate-cell"]{
    vertical-align: middle;
}

td[class*="-action-cell"] [class*="-action-grid"],
td[class*="-action-cell"] [class*="-operate-grid"],
td[class*="-operate-cell"] [class*="-action-grid"],
td[class*="-operate-cell"] [class*="-operate-grid"]{
    display: flex !important;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

td[class*="-action-cell"] [class*="-action-grid"] > .btn,
td[class*="-action-cell"] [class*="-operate-grid"] > .btn,
td[class*="-operate-cell"] [class*="-action-grid"] > .btn,
td[class*="-operate-cell"] [class*="-operate-grid"] > .btn{
    flex: 0 0 auto;
    width: 40px !important;
    min-width: 40px !important;
}

td.text-center:has(> .btn + .btn){
    vertical-align: middle;
    white-space: nowrap;
}

td.text-center:has(> .btn + .btn) > .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

td.text-center:has(> .btn + .btn) > .btn + .btn{
    margin-left: 6px;
}

/* Latest news */
.latest-news-card {
    margin-bottom: 1rem;
}

.latest-news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.latest-news-item + .latest-news-item {
    border-top: 1px solid #eee;
}

.latest-news-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .8rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.latest-news-link:hover {
    color: #1a73e8;
    background-color: #f0f6ff;
}



.latest-news-date {
    flex: 0 0 auto;
    margin-right: 1rem;
    color: #6c757d;
    font-size: .875rem;
}

body.dark-mode .latest-news-date {
    color: #e2e8f0;
}
body.dark-mode .latest-news-link:hover {
    background-color: var(--jerp-theme-bg-hover);
    color: #7dd3fc;
}

.latest-news-title {
    flex: 1 1 auto;
    font-weight: 600;
}

.latest-news-arrow {
    margin-left: 1rem;
    color: #b3d8ff;
}

/* Keep every list filter icon next to its column title, including custom list wrappers. */
.ag-filterable-header{
    overflow: visible;
}

.ag-filterable-header .ag-header-cell-label{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

.ag-filterable-header .ag-header-cell-text{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ag-filterable-header .ag-header-icon{
    all: unset;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    margin-left: 0;
    flex: 0 0 24px;
    padding: 0;
    border: 0 !important;
    border-radius: 4px;
    background: none !important;
    background-image: none !important;
    -webkit-appearance: none;
    appearance: none;
    color: #667085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ag-filterable-header .ag-header-icon:hover,
.ag-filterable-header .ag-header-icon:focus,
.ag-filterable-header .ag-header-icon.is-open{
    color: #155eef;
    background-color: #eaf1ff !important;
    outline: none;
}

.ag-filterable-header .ag-header-icon:focus-visible{
    box-shadow: 0 0 0 3px rgba(21,94,239,.16);
}

.ag-filterable-header .ag-header-icon i{
    font-size: 12px;
    line-height: 1;
}

.bootstrap-dialog.latest-news-dialog .bootstrap-dialog-message {
    padding: 0;
}

.latest-news-dialog-content {
    padding: 1.5rem;
}

.latest-news-dialog-date {
    display: block;
    margin-bottom: 1rem;
    color: var(--jerp-theme-text-secondary, #6c757d);
    font-size: .9rem;
}

.latest-news-dialog-title {
    margin: 0 0 1rem;
    color: var(--jerp-theme-text-primary, #1f2937);
    font-size: 1.5rem;
    line-height: 1.45;
}

.latest-news-dialog-body {
    white-space: pre-line;
    line-height: 1.8;
}

@media (max-width: 575.98px){
    .latest-news-link {
        align-items: flex-start;
    }

    .latest-news-date {
        margin-right: .75rem;
    }

    .latest-news-dialog-content {
        padding: 1.25rem;
    }

    td[class*="-action-cell"] [class*="-action-grid"],
    td[class*="-action-cell"] [class*="-operate-grid"],
    td[class*="-operate-cell"] [class*="-action-grid"],
    td[class*="-operate-cell"] [class*="-operate-grid"]{
        gap: 5px;
    }

    td.text-center:has(> .btn + .btn){
        white-space: normal;
    }

    td.text-center:has(> .btn + .btn) > .btn{
        margin: 0 5px 5px 0;
    }

    td.text-center:has(> .btn + .btn) > .btn + .btn{
        margin-left: 0;
    }
}


.operation-btn-modal .modal-body,
.swal2-container .swal2-popup.swal2-bootstrap-dialog.operation-btn-modal .modal-body.swal2-bootstrap-dialog-message,
.swal2-container .swal2-popup.swal2-bootstrap-dialog.operation-btn-modal > .swal2-html-container{
    min-height: 700px !important;
}

/* 2.0.0 清單欄寬拖拉 */
.sheet-list-page #main_content_left table.jerp-column-resize-table thead th.jerp-column-resizable{
    position: sticky !important;
    top: 0;
    z-index: 6;
}

.sheet-list-page #main_content_left table.jerp-column-resize-active{
    width: var(--jerp-resized-table-width) !important;
    min-width: var(--jerp-resized-table-width) !important;
    max-width: none !important;
    table-layout: fixed !important;
}

.sheet-list-page #main_content_left table.jerp-column-resize-active tbody td:not(.jerp-action-col){
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-list-page #main_content_left .jerp-column-resizer{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: block;
    width: 7px;
    min-height: 28px;
    cursor: col-resize;
    touch-action: none;
}

.sheet-list-page #main_content_left .jerp-column-resizer.jerp-column-resizer-left{
    right: auto;
    left: -3px;
}

.sheet-list-page #main_content_left .jerp-column-resizer::after{
    position: absolute;
    top: 18%;
    right: 0;
    bottom: 18%;
    width: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.3);
    content: "";
    opacity: 0;
    transition: opacity .15s ease,background-color .15s ease;
}

.sheet-list-page #main_content_left th:hover > .jerp-column-resizer::after,
.sheet-list-page #main_content_left .jerp-column-resizer.is-dragging::after{
    background: #fff;
    opacity: 1;
}

body.jerp-column-resizing,
body.jerp-column-resizing *{
    cursor: col-resize !important;
    user-select: none !important;
}

.sheet-list-column-reset{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #d3d4d6;
    border-radius: 6px;
    background: #f4f4f5;
    color: #606266;
    cursor: pointer;
}

body.dark-mode .sheet-list-column-reset{
    border-color: #53627a;
    background: var(--jerp-theme-card-bg);
    color: #e9eef8;
}

body.sheet-list-page .list_btn > .sheet-list-column-reset{
    flex: 0 0 auto !important;
    align-self: flex-start;
    width: auto !important;
    max-width: max-content;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
}

.sheet-list-column-reset:hover,
.sheet-list-column-reset:focus{
    border-color: #6ea8fe;
    background: #e9ecef;
    color: #303133;
    outline: none;
}

body.dark-mode .sheet-list-column-reset:hover,
body.dark-mode .sheet-list-column-reset:focus{
    background: var(--jerp-theme-bg-hover);
    color: #fff;
}

.sheet-list-column-reset[hidden]{
    display: none !important;
}

.list-column-reset-result{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 16px 12px 10px;
    text-align: center;
}

.list-column-reset-result-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 5px;
    border: 1px solid #86d6a4;
    border-radius: 50%;
    background: #e9f8ef;
    box-shadow: 0 6px 18px rgba(31,157,85,.18);
    color: #1f9d55;
    font-size: 24px;
}

.list-column-reset-result strong{
    color: #176b3a;
    font-size: 18px;
    font-weight: 700;
}

.list-column-reset-result > span:last-child{
    color: #667085;
    line-height: 1.6;
}

body.dark-mode .list-column-reset-result-icon{
    border-color: #3e8c61;
    background: rgba(31,157,85,.16);
    box-shadow: 0 6px 18px rgba(0,0,0,.24);
    color: #67d391;
}

body.dark-mode .list-column-reset-result strong{
    color: #8ee2ad;
}

body.dark-mode .list-column-reset-result > span:last-child{
    color: #b8c2d4;
}

body.dark-mode.sheet-list-page #main_content_left .jerp-column-resizer::after{
    background: rgba(148,163,184,.45);
}

body.dark-mode.sheet-list-page #main_content_left th:hover > .jerp-column-resizer::after,
body.dark-mode.sheet-list-page #main_content_left .jerp-column-resizer.is-dragging::after{
    background: #60a5fa;
}

/* 2.0.0 清單操作欄整合 */
.sheet-list-page #main_content_left .jerp-list-action-col,
.sheet-list-page #main_content_left .jerp-list-action-cell{
    min-width: 156px;
    max-width: 180px;
}

.sheet-list-page #main_content_left .jerp-list-action-source-hidden{
    display: none !important;
}

.sheet-list-page #main_content_left .jerp-list-action-host{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 38px;
}

.sheet-list-page #main_content_left .jerp-list-action-primary{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
}

.sheet-list-page .jerp-list-action-item{
    flex: 0 0 auto;
    margin: 0 !important;
}

.sheet-list-page #main_content_left .parking-payment-action{
    container-type: inline-size;
    white-space: normal !important;
}

.sheet-list-page #main_content_left .parking-plate-col{
    min-width: 140px;
    white-space: nowrap;
}

.sheet-list-page #main_content_left .parking-payment-action > span{
    display: block;
    width: 2em;
    max-width: 100%;
    margin: auto;
    font-size: 12px;
    font-size: clamp(10px, 40cqi, 13px);
    line-height: 1.1;
    white-space: normal;
    word-break: break-all;
    text-align: center;
}

.sheet-list-page #main_content_left .jerp-list-action-more{
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--jerp-theme-dark-border);
    border-radius: .25rem;
    background: var(--jerp-theme-dark-bg);
    color: var(--jerp-theme-dark-text);
    cursor: pointer;
}

.sheet-list-page #main_content_left .jerp-list-action-more:hover,
.sheet-list-page #main_content_left .jerp-list-action-more:focus,
.sheet-list-page #main_content_left .jerp-list-action-more:active{
    color: #ffffff !important;
    background: var(--jerp-theme-dark-text) !important;
    border-color: var(--jerp-theme-dark-text) !important;
}

body.dark-mode.sheet-list-page #main_content_left .jerp-list-action-more:hover,
body.dark-mode.sheet-list-page #main_content_left .jerp-list-action-more:focus,
body.dark-mode.sheet-list-page #main_content_left .jerp-list-action-more:active{
    color: var(--jerp-theme-dark-text) !important;
    background: var(--jerp-theme-dark-bg-hover) !important;
    border-color: var(--jerp-theme-dark-border) !important;
}

.sheet-list-page #main_content_left .jerp-list-action-more[hidden]{
    display: none !important;
}

.sheet-list-page .jerp-list-action-menu{
    position: fixed;
    z-index: 1200;
    top: calc(100% + 5px);
    left: 0;
    display: none;
    grid-template-columns: repeat(3, max-content);
    align-items: center;
    gap: 6px;
    width: max-content;
    min-width: 0;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15,23,42,.18);
    overflow: auto;
}

body.dark-mode.sheet-list-page .jerp-list-action-menu{
    border-color: #475569;
    background: var(--jerp-theme-card-bg);
    box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.sheet-list-page #main_content_left .jerp-list-action-host.is-open .jerp-list-action-menu,
.sheet-list-page .jerp-list-action-menu.is-open{
    display: grid;
}

.jerp-list-action-tooltip-popover{
    position: fixed;
    z-index: 9999;
    padding: 5px 8px;
    border-radius: 4px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(15,23,42,.28);
}

.sheet-list-page #main_content_left td.jerp-list-action-menu-open{
    position: relative !important;
    z-index: 20 !important;
    overflow: visible !important;
}

.sheet-list-page .jerp-return-edit-dialog .modal-dialog{
    width: calc(100vw - 32px) !important;
    max-width: 1440px !important;
    margin: 12px auto !important;
}

.sheet-list-page .jerp-return-edit-dialog .modal-body{
    padding: 0 !important;
    overflow: hidden !important;
}

.sheet-list-page .jerp-return-edit-frame{
    display: block;
    width: 100%;
    height: calc(100vh - 170px);
    min-height: 520px;
    border: 0;
    background: #fff;
}

body.dark-mode.sheet-list-page .jerp-return-edit-frame{
    background: var(--jerp-theme-dark-bg);
}

.sheet-list-page #main_content_left .jerp-column-resizer.jerp-column-resizer-left::after{
    right: auto;
    left: 3px;
}

/* 清單表格超寬時固定最右側操作欄 */
.sheet-list-page #main_content_left .jerp-list-table-scroll-host{
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.sheet-list-page #main_content_left table.jerp-action-table:not(.jerp-column-resize-active){
    width: max-content;
    min-width: 100%;
}

.sheet-list-page #main_content_left table.jerp-sticky-action-table .jerp-sticky-action-col{
    position: sticky !important;
    right: 0;
    z-index: 4;
    background-color: #fff;
    white-space: nowrap;
}

.sheet-list-page #main_content_left table.jerp-sticky-action-table .jerp-sticky-action-col::before{
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -12px;
    width: 12px;
    background: linear-gradient(to right,rgba(16,24,40,0),rgba(16,24,40,.16));
    content: "";
    pointer-events: none;
}

.sheet-list-page #main_content_left table.jerp-sticky-action-table thead th.jerp-sticky-action-col{
    position: sticky !important;
    top: 0;
    z-index: 9;
    background-color: #f8f9fb;
    text-align: center !important;
}

.sheet-list-page .jerp-list-horizontal-scrollbar{
    position: fixed;
    z-index: 1150;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid #334155;
    background: #111827;
}

.sheet-list-page .jerp-list-horizontal-scrollbar[hidden]{
    display: none !important;
}

.sheet-list-page .jerp-list-horizontal-scrollbar-space{
    height: 1px;
}

.sheet-list-page #main_content_left table.jerp-sticky-action-table.table-striped tbody tr:nth-of-type(odd) > .jerp-sticky-action-col{
    background-color: #f7f7f7;
}

.sheet-list-page #main_content_left table.jerp-sticky-action-table.table-hover tbody tr:hover > .jerp-sticky-action-col{
    background-color: var(--jerp-theme-bg-hover);
}

body.dark-mode.sheet-list-page #main_content_left table.jerp-sticky-action-table .jerp-sticky-action-col{
    background-color: var(--jerp-theme-dark-bg);
}

body.dark-mode.sheet-list-page #main_content_left table.jerp-sticky-action-table .jerp-sticky-action-col::before{
    background: linear-gradient(to right,rgba(0,0,0,0),rgba(0,0,0,.38));
}

body.dark-mode.sheet-list-page #main_content_left table.jerp-sticky-action-table thead th.jerp-sticky-action-col{
    background-color: var(--jerp-theme-card-bg);
}

body.dark-mode.sheet-list-page #main_content_left table.jerp-sticky-action-table tbody tr:nth-of-type(even) > .jerp-sticky-action-col{
    background-color: var(--jerp-theme-bg-soft);
}

body.dark-mode.sheet-list-page #main_content_left table.jerp-sticky-action-table.table-hover tbody tr:hover > .jerp-sticky-action-col{
    background-color: var(--jerp-theme-bg-hover);
}

/* SweetAlert2 對話框與遮罩統一沿用官方預設開啟／關閉動畫。 */
.swal2-container.swal2-backdrop-show{
    animation: swal2-backdrop-show .1s forwards !important;
    transform: none;
    transition: none;
}

.swal2-container.swal2-backdrop-hide{
    animation: swal2-backdrop-hide .1s forwards !important;
    transform: none;
    transition: none;
}

.swal2-popup.swal2-show{
    animation: swal2-show .3s !important;
    transition: none;
}

.swal2-popup.swal2-hide{
    animation: swal2-hide .15s forwards !important;
    transition: none;
}

.swal2-container.purchase-dark-swal-backdrop.swal2-backdrop-show{
    animation: swal2-backdrop-show .1s forwards !important;
}

.swal2-container.purchase-dark-swal-backdrop.swal2-backdrop-hide{
    animation: swal2-backdrop-hide .1s forwards;
}

.swal2-popup.purchase-swal-dialog{
    opacity: 1;
    transform: none;
}

.swal2-popup.purchase-swal-dialog.purchase-swal-popup-in{
    animation: swal2-show .3s;
}

.swal2-popup.purchase-swal-dialog.purchase-swal-popup-out{
    animation: swal2-hide .15s forwards !important;
}

.table th, .table td{
    vertical-align: middle;
}

/* 固定式主選單側欄 */
:root{
    --jerp-sidebar-width: 260px;
    --jerp-sidebar-toggle-size: 30px;
    --jerp-sidebar-motion: 0.28s cubic-bezier(0.2, 0, 0, 1);
}

html.ui-v2,
html.ui-v2 body{
    max-width: 100%;
}

body.ui-v2.has-jerp-sidebar > .index_page,
body.ui-v2.has-jerp-sidebar > .footer{
    transition: padding-left var(--jerp-sidebar-motion), margin-left var(--jerp-sidebar-motion);
}

body.sheet-index-page{
    min-height: 100vh;
}

body.sheet-index-page .report-dashboard-card .nav-tabs{
    column-gap: 8px;
}

body.sheet-index-page.has-jerp-sidebar > .footer{
    width: auto;
    float: none;
}

html.jerp-sidebar-expanded body.ui-v2.has-jerp-sidebar > .index_page{
    padding-left: calc(var(--jerp-sidebar-width) + 15px);
}

html.jerp-sidebar-expanded body.ui-v2.has-jerp-sidebar > .footer{
    margin-left: var(--jerp-sidebar-width) !important;
}

.jerp-sidebar-shell{
    margin: 0 !important;
}

.jerp-sidebar-shell .set_menu_launcher,
.jerp-sidebar-shell .set_menu_dropdown{
    position: static;
}

.jerp-sidebar-toggle{
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1350;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--jerp-sidebar-toggle-size);
    height: var(--jerp-sidebar-toggle-size);
    padding: 0;
    border: 1px solid #d9e1eb;
    border-radius: 8px;
    color: #52606d;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: left var(--jerp-sidebar-motion), color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html.jerp-sidebar-expanded body.sheet-index-page .jerp-sidebar-toggle{
    left: calc(var(--jerp-sidebar-width) + 10px);
}

.jerp-sidebar-toggle:hover{
    color: #1677ff;
    border-color: #91caff;
    background: #f0f7ff;
}

.jerp-sidebar-toggle:focus{
    outline: none;
}

.jerp-sidebar-toggle:focus-visible{
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2);
}

.jerp-sidebar-toggle i{
    font-size: 11px;
}

body.sheet-list-page .jerp-sidebar-toggle-inline{
    position: static;
    z-index: auto;
    flex: 0 0 var(--jerp-sidebar-toggle-size);
}

body.sheet-list-page .sheet-list-top-wrap > .page-name{
    min-width: 0;
}

.jerp-sidebar-shell .jerp-sidebar-panel{
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 1340;
    display: block;
    width: var(--jerp-sidebar-width);
    max-height: none;
    padding: 12px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid #e8edf3;
    border-radius: 0;
    background: #fff;
    box-shadow: 6px 0 20px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform var(--jerp-sidebar-motion), opacity var(--jerp-sidebar-motion), visibility var(--jerp-sidebar-motion);
}

.jerp-sidebar-shell .set_menu_dropdown:hover .jerp-sidebar-panel{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
}

html.jerp-sidebar-expanded .jerp-sidebar-shell .jerp-sidebar-panel,
html.jerp-sidebar-expanded .jerp-sidebar-shell .set_menu_dropdown:hover .jerp-sidebar-panel{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.jerp-sidebar-title{
    margin: 0 8px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f4;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu{
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 4px;
    width: 100%;
    margin: 0;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_link{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    color: #4b5563;
    background: transparent;
    box-shadow: none;
    text-align: left;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_link:hover{
    color: #1677ff;
    background: #f0f7ff;
    transform: none;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_link.active{
    color: #1677ff;
    background: #e6f4ff;
    font-weight: 600;
}

.jerp-sidebar-parent-row{
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 7px;
}

.jerp-sidebar-shell .jerp-sidebar-panel .jerp-sidebar-parent{
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    color: #64748b;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.jerp-sidebar-shell .jerp-sidebar-panel .jerp-sidebar-parent:disabled{
    cursor: default;
    opacity: 0.72;
}

.jerp-sidebar-shell .jerp-sidebar-panel .jerp-sidebar-parent:hover,
.jerp-sidebar-parent-row.is-expanded .jerp-sidebar-parent{
    color: #1677ff;
    background: #f0f7ff;
}

.jerp-sidebar-parent-row.is-active .jerp-sidebar-parent{
    color: #1677ff;
    background: #e6f4ff;
    font-weight: 600;
}

.jerp-sidebar-shell .jerp-sidebar-panel .jerp-sidebar-parent:focus{
    outline: none;
}

.jerp-sidebar-shell .jerp-sidebar-panel .jerp-sidebar-parent:focus-visible{
    box-shadow: inset 0 0 0 2px rgba(22, 119, 255, 0.28);
}

.jerp-sidebar-parent-arrow{
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding-left: 8px;
    font-size: 11px;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_visual{
    flex: 0 0 28px;
    width: 28px;
    height: 24px;
    margin: 0 8px 0 0;
    color: currentColor;
    font-size: 16px;
    border-radius: 0;
    background: transparent;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_visual i{
    color: currentColor;
    font-size: 18px;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_visual img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.jerp-sidebar-shell .jerp-sidebar-panel .set_menu_label{
    overflow: hidden;
    color: inherit;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jerp-sidebar-submenu{
    width: calc(100% - 36px);
    max-height: 0;
    margin: 0 0 0 36px;
    padding-left: 0;
    overflow: hidden;
    border-left: 0 solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.26s ease, margin var(--jerp-sidebar-motion), padding-left var(--jerp-sidebar-motion), border-color var(--jerp-sidebar-motion), opacity 0.2s ease, visibility var(--jerp-sidebar-motion);
}

.jerp-sidebar-submenu.is-open{
    max-height: 2000px;
    margin: -2px 0 7px 15px;
    padding-left: 10px;
    opacity: 1;
    visibility: visible;
}

.jerp-sidebar-submenu .main_menu{
    width: 100%;
    margin: 0 !important;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
}

.jerp-sidebar-submenu .main_menu .float-left{
    display: none;
}

.jerp-sidebar-submenu .main_menu ul{
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jerp-sidebar-submenu .main_menu li{
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.jerp-sidebar-submenu .main_menu li::before{
    content: none;
}

.jerp-sidebar-submenu .main_menu li a{
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.jerp-sidebar-submenu .main_menu li a.web-contact-pending {
    position: relative;
    padding-right: 24px;
}

.web-contact-pending-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff4d4f;
    pointer-events: none;
}

.jerp-sidebar-submenu .main_menu li a:hover{
    color: #1677ff;
    background: #f0f7ff;
}

.jerp-sidebar-submenu .main_menu li.active a{
    color: #1677ff;
    background: #e6f4ff;
    font-weight: 600;
}

.jerp-sidebar-backdrop{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1330;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--jerp-sidebar-motion), visibility var(--jerp-sidebar-motion);
}

/* BootstrapDialog 預設層級為 1040～1050；開啟時將側邊選單置於對話框遮罩下方。 */
body.modal-open .jerp-sidebar-backdrop{
    z-index: 1028;
}

body.modal-open .jerp-sidebar-shell .jerp-sidebar-panel{
    z-index: 1030;
}

body.modal-open .jerp-sidebar-toggle{
    z-index: 1031;
}

body.dark-mode .jerp-sidebar-toggle,
body.dark-mode .jerp-sidebar-shell .jerp-sidebar-panel{
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.24);
    background: var(--jerp-theme-card-bg);
}

body.dark-mode .jerp-sidebar-title{
    color: #f8fafc;
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .jerp-sidebar-shell .jerp-sidebar-panel .set_menu_link{
    color: #f1f5f9;
}

body.dark-mode .jerp-sidebar-shell .jerp-sidebar-panel .jerp-sidebar-parent{
    color: #f1f5f9;
}

body.dark-mode .jerp-sidebar-shell .jerp-sidebar-panel .set_menu_link:hover,
body.dark-mode .jerp-sidebar-shell .jerp-sidebar-panel .set_menu_link.active{
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.14);
}

body.dark-mode .jerp-sidebar-parent-row.is-expanded .jerp-sidebar-parent,
body.dark-mode .jerp-sidebar-parent-row.is-active .jerp-sidebar-parent{
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.14);
}

body.dark-mode .jerp-sidebar-submenu{
    border-left-color: rgba(148, 163, 184, 0.28);
}

body.dark-mode .jerp-sidebar-submenu .main_menu li a{
    color: #f1f5f9;
}

body.dark-mode .jerp-sidebar-submenu .main_menu li a:hover,
body.dark-mode .jerp-sidebar-submenu .main_menu li.active a{
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.14);
}

.jerp-sidebar-submenu .main_menu li.jerp-quick-submenu a{
    padding-left: 18px;
}

.jerp-sidebar-submenu .jerp-quick-submenu .fa-chevron-right{
    margin-right: 6px;
    font-size: 11px;
}

.jerp-sidebar-submenu .main_menu li.jerp-quick-submenu a:hover,
.jerp-sidebar-submenu .main_menu li.jerp-quick-submenu.active a{
    color: #047857;
    background: #d1fae5;
}

body.dark-mode .jerp-sidebar-submenu .main_menu li.jerp-quick-submenu a:hover,
body.dark-mode .jerp-sidebar-submenu .main_menu li.jerp-quick-submenu.active a{
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
}

@media (max-width: 991.98px){
    html.jerp-sidebar-expanded body.ui-v2.has-jerp-sidebar > .index_page{
        padding-left: 15px;
    }

    html.jerp-sidebar-expanded body.ui-v2.has-jerp-sidebar > .footer{
        margin-left: 0 !important;
    }

    html.jerp-sidebar-expanded body.ui-v2.has-jerp-sidebar{
        overflow: hidden;
    }

    .jerp-sidebar-shell .jerp-sidebar-panel{
        width: min(280px, calc(100vw - 56px));
    }

    html.jerp-sidebar-expanded body.sheet-index-page .jerp-sidebar-toggle{
        left: calc(min(280px, calc(100vw - 56px)) + 10px);
    }

    .jerp-sidebar-backdrop{
        display: block;
    }

    html.jerp-sidebar-expanded .jerp-sidebar-backdrop{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}


body.sheet-list-page #sheet-list-tools-panel.provider-search-panel{
    flex-wrap: wrap !important;
}
body.sheet-list-page #sheet-list-tools-panel.provider-search-panel > .provider-search-primary{
    order: 2 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
}
body.sheet-list-page #sheet-list-tools-panel.provider-search-panel > .provider-search-tools{
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* Homepage announcements share the existing MCP subscription component. */
.latest-news-pinned{
    flex: 0 0 auto;
    margin-right: .6rem;
    padding: .15rem .45rem;
    border-radius: 4px;
    color: var(--jerp-theme-text-primary);
    background: rgba(64,158,255,.18);
    font-size: .8rem;
}
.latest-news-subscription-content .subscription-dialog-heading,
.latest-news-subscription-content .subscription-controls{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.latest-news-subscription-content h2,
.latest-news-subscription-content h3{color: var(--jerp-theme-text-primary); line-height: 1.5;}
.latest-news-subscription-content h2{font-size: 1.5rem; margin: 4px 0;}
.latest-news-subscription-content h3{font-size: 1.2rem; margin: 0 0 12px;}
.latest-news-subscription-content .subscription-calculator{
    padding: 20px;
    border: 1px solid rgba(128,148,172,.4);
    background: transparent;
    color: inherit;
    margin-bottom: 24px;
}
.latest-news-subscription-content .subscription-muted,
.latest-news-subscription-content .section-label{color: var(--jerp-theme-text-secondary);}
.latest-news-subscription-content .subscription-control-label{display:block; font-weight:600; margin-bottom:8px;}
.latest-news-subscription-content .subscription-stepper,
.latest-news-subscription-content .subscription-segments{display:flex; align-items:center; gap:12px;}
.latest-news-subscription-content .subscription-stepper output{min-width:64px; text-align:center; font-size:1.25rem;}
.latest-news-subscription-content [data-subscription-plan][aria-pressed="true"]{
    background:#155eef; color:#ffffff; border-color:#155eef;
}
.latest-news-subscription-content .subscription-total{display:block; font-size:2.2rem; font-weight:700; color:inherit;}
.latest-news-subscription-content .subscription-breakdown > div{display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:8px 0;}
.latest-news-subscription-content .subscription-breakdown dt{font-weight:400;}
.latest-news-subscription-content .subscription-breakdown dd{margin:0; font-weight:600;}
.latest-news-subscription-content .subscription-saving{color:var(--jerp-theme-text-primary);}
.latest-news-subscription-content .subscription-explanation{margin-bottom:24px; line-height:1.8;}
.latest-news-subscription-content [hidden]{display:none !important;}
