html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    transition: background 0.3s;
    font-family: "Microsoft JhengHei", sans-serif;
    font-size: 14px;
    overflow: hidden; /* This prevents double scrollbars */
    background: #f4f1fa; /* 設定底色與主題一致 */
}

#content_area_dom {
    width: 100%;
    height: 100%;
    overflow: auto; /* This ensures scrolling within the content area */
    position: relative; /* Helps with positioning of child elements */
}

.webixapp {
    height: 100% !important;
}

/* 全站 Webix toast message 固定從右下角彈出並自動收合。 */
.webix_message_area {
    top: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
}



@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.menu-icon {
    margin-right: 5px;
    font-size: 16px;
    color: #333;
}

.menu-text {
    font-weight: bold;
}

/* 🎯 IO 配置視窗的槽位卡片樣式 */
.io_slot_card {
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    margin: 5px;
    background: #ecf0f1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.io_slot_card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);  /* 🎯 hover 時稍微上移 */
}

/* 🎯 可點擊的槽位卡片樣式 */
.io_slot_clickable {
    cursor: pointer;
}

.io_slot_clickable:hover {
    background: #d5e8f7 !important;  /* 🎯 hover 時背景色變化 */
}

.io_slot_clickable:active {
    transform: translateY(0px);  /* 🎯 點擊時回到原位 */
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.5);
}


/*底下是櫃子的配置顏色範例*/
.cabinetColor_1 {
    background-color: darkgreen;
    color: white;
}

.cabinetColor_2 {
    background-color: teal;
    color: white;
}

.cabinetColor_3 {
    background-color: purple;
    color: white;
}

.textCenter {
    text-align: center;
    line-height: 100px;
    font-size: 20px;
}




/*StoreProduct*/
.prod-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.prod-header {
    font-weight: bold;
    margin-bottom: 4px;
}

.prod-thumb img {
    max-width: 100%;
    display: block;
    margin: 4px auto;
}

.prod-info div {
    font-size: 12px;
    margin: 2px 0;
}

.prod-actions {
    text-align: center;
    margin-top: 6px;
}

    .prod-actions button {
        margin: 0 4px;
    }

/* 整條 toolbar 背景、邊框、高度 */
.component-toolbar {
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    height: 40px;
    box-sizing: border-box;
}

/* toolbar 裡每個 item 的高度與文字置中 */
.component-toolbar-item {
    height: 32px;
    line-height: 32px;
    padding: 0 8px;
}

    /* icon 顏色與間距 */
    .component-toolbar-item .fa {
        color: #555;
        margin-right: 4px;
    }


/*列印用*/
@page {
    size: A4 landscape; /* 改成橫向 */
    margin: 10mm;
}

@media print {
    .webix_toolbar, .webix_button {
        display: none !important;
    }

    .printable-area {
        max-width: 750px;
        margin: auto;
        font-size: 12px; /* 縮小字體 */
    }

        .printable-area .webix_view.webix_datatable {
            width: auto !important;
            overflow: visible !important;
            max-width: 100% !important;
        }

        .printable-area .webix_ss_center_scroll,
        .printable-area .webix_ss_center {
            overflow: visible !important;
            width: 100% !important;
        }

        .printable-area .webix_column {
            white-space: nowrap !important;
            padding: 2px 4px !important; /* 減少內邊距 */
        }

        .printable-area .webix_cell {
            font-size: 11px !important; /* 進一步縮小儲存格字體 */
        }
}

/* 報表相關樣式 */
.report-card-head-wrap {
    background: transparent !important;
    border: none !important;
}

.mobile-shell {
    background: linear-gradient(180deg, #f7f3fb 0%, #edf4fb 100%);
    border: none !important;
}

.mobile-topbar {
    border: none !important;
    background: linear-gradient(135deg, #4b5f87 0%, #8469ad 100%) !important;
    box-shadow: 0 8px 18px rgba(61, 74, 110, 0.18);
}

.mobile-topbar .webix_icon_button .webix_icon {
    color: #fff !important;
}

.mobile-brand-template,
.mobile-brand-template .webix_template {
    background: transparent !important;
    padding: 0 !important;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 14px;
    color: #fff;
}

.mobile-brand i {
    font-size: 22px;
}

.mobile-brand strong,
.mobile-brand span {
    display: block;
    line-height: 1.18;
}

.mobile-brand strong {
    font-size: 17px;
    font-weight: 850;
}

.mobile-brand span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.mobile-top-user-template,
.mobile-top-user-template .webix_template {
    background: transparent !important;
    padding: 0 !important;
}

.mobile-top-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 850;
}

.mobile-top-user span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-storebar {
    border-bottom: 1px solid #dce4ef !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 18px rgba(56, 74, 110, 0.06);
}

.mobile-storebar-label-template,
.mobile-storebar-label-template .webix_template {
    padding: 0 !important;
    background: transparent !important;
}

.mobile-storebar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    color: #4d5f7c;
    font-size: 12px;
    font-weight: 850;
}

.mobile-storebar-label i {
    color: #5e729e;
}

.mobile-global-store-select .webix_inp_static {
    border-color: #cbd8e8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #263653 !important;
    font-size: 15px !important;
    font-weight: 850;
}

.mobile-content-scroll {
    background: transparent !important;
}

.mobile-content-scroll .webix_scroll_cont {
    box-sizing: border-box;
    min-height: 100%;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.mobile-content-template,
.mobile-content-template .webix_template {
    background: transparent !important;
    overflow: visible !important;
}

.mobile-home {
    box-sizing: border-box;
    min-height: calc(100vh - 186px);
    padding: 18px 14px 32px;
}

.mobile-home-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mobile-hello {
    color: #2d3954;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.25;
}

.mobile-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 11px;
    border: 1px solid #d9e4f1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #5b6680;
    font-size: 13px;
    font-weight: 700;
}

.mobile-home-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d6e0ee;
    border-radius: 8px;
    background: #ffffff;
    color: #52698f;
    font-size: 17px;
}

.mobile-home-dashboard {
    margin-top: 16px;
}

.mobile-pwa-panel {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(56, 74, 110, 0.06);
}

.mobile-pwa-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.mobile-pwa-copy {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: #2d3954;
}

.mobile-pwa-copy i {
    color: #637aa4;
    font-size: 18px;
}

.mobile-pwa-copy strong,
.mobile-pwa-copy span {
    display: block;
}

.mobile-pwa-copy strong {
    font-size: 13px;
    font-weight: 850;
}

.mobile-pwa-copy span {
    margin-top: 3px;
    color: #66738c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.mobile-pwa-actions {
    flex: 0 0 auto;
}

.mobile-pwa-actions button {
    min-width: 56px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #546a9e;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

.mobile-pwa-preferences {
    padding-top: 10px;
    border-top: 1px solid #edf1f7;
}

.mobile-pwa-store-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #66738c;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.mobile-pwa-preferences-disabled .mobile-pwa-store-note {
    margin-top: 0;
}

.mobile-pwa-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    color: #2d3954;
    font-size: 13px;
    font-weight: 850;
}

.mobile-pwa-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mobile-pwa-toggle span {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d7e0ee;
    transition: background 0.16s ease;
}

.mobile-pwa-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(38, 54, 83, 0.22);
    transition: transform 0.16s ease;
}

.mobile-pwa-toggle input:checked + span {
    background: #546a9e;
}

.mobile-pwa-toggle input:checked + span::after {
    transform: translateX(18px);
}

.mobile-monthly-fee-window .webix_win_head,
.mobile-monthly-fee-window .webix_win_body {
    border-radius: 8px !important;
}

.mobile-monthly-fee-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3954;
    font-size: 15px;
    font-weight: 850;
}

.mobile-monthly-fee-title i {
    color: #546a9e;
}

.mobile-monthly-fee-body {
    padding: 16px 14px 10px;
    color: #2d3954;
}

.mobile-monthly-fee-body p {
    margin: 0 0 12px;
    color: #4f5f78;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.mobile-monthly-fee-body small {
    display: block;
    margin-top: 12px;
    color: #7b8799;
    font-size: 12px;
    line-height: 1.45;
}

.mobile-monthly-fee-inline-message.error {
    color: #9d3b32;
}

.mobile-monthly-fee-payment-info {
    margin-top: 12px;
}

.mobile-monthly-fee-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 1px dashed #cbd8e8;
    border-radius: 8px;
    background: #ffffff;
    color: #526078;
    font-size: 13px;
    font-weight: 850;
}

.mobile-monthly-fee-payment-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-monthly-fee-payment-card div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #526078;
    font-size: 12px;
    font-weight: 750;
}

.mobile-monthly-fee-payment-card strong {
    min-width: 0;
    overflow: hidden;
    color: #2d3954;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-monthly-fee-linepay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin-top: 4px;
    border: none;
    border-radius: 8px;
    background: #06c755;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
}

.mobile-monthly-fee-list {
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-monthly-fee-list div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f7;
    font-size: 13px;
    font-weight: 800;
}

.mobile-monthly-fee-list div:first-child {
    border-top: none;
}

.mobile-monthly-fee-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-monthly-fee-list strong {
    flex: 0 0 auto;
    color: #2d3954;
}

.mobile-monthly-fee-empty {
    padding: 12px;
    border: 1px dashed #cbd8e8;
    border-radius: 8px;
    color: #6b778d;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.mobile-monthly-fee-errors {
    margin: 0;
    padding: 0 0 0 18px;
    color: #8a4d36;
    font-size: 13px;
    line-height: 1.55;
}

.mobile-monthly-fee-primary .webix_button {
    background: #546a9e !important;
    color: #ffffff !important;
    font-weight: 850 !important;
}

.mobile-monthly-fee-secondary .webix_button {
    background: #eef2f7 !important;
    color: #526078 !important;
    font-weight: 850 !important;
}

.mobile-home-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-home-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(56, 74, 110, 0.07);
    color: #2d3954;
}

.mobile-home-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #66758f;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.mobile-home-card-title i {
    color: #587198;
}

.mobile-home-card strong {
    display: block;
    margin-top: 9px;
    overflow-wrap: anywhere;
    color: #24344f;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.2;
}

.mobile-home-card small {
    display: block;
    margin-top: 4px;
    color: #66738c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.mobile-home-card.danger {
    border-color: #f3b4b4;
    background: #fff5f5;
}

.mobile-home-card.danger .mobile-home-card-title i,
.mobile-home-card.danger strong {
    color: #a12727;
}

.mobile-home-card.healthy {
    border-color: #b9dfc8;
    background: #f0fff4;
}

.mobile-home-card.healthy .mobile-home-card-title i,
.mobile-home-card.healthy strong {
    color: #22543d;
}

.mobile-home-card.warn {
    border-color: #f0c36c;
    background: #fffaf2;
}

.mobile-home-card.warn .mobile-home-card-title i,
.mobile-home-card.warn strong {
    color: #8a5a16;
}

.mobile-home-products {
    grid-column: 1 / -1;
}

.mobile-home-product-list {
    margin-top: 8px;
}

.mobile-home-product-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #eef2f7;
    color: #44526a;
    font-size: 13px;
    font-weight: 700;
}

.mobile-home-product-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-home-product-list strong {
    margin: 0;
    font-size: 14px;
}

.mobile-home-state,
.mobile-home-empty-line {
    padding: 16px 12px;
    border: 1px dashed #ccd8e8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #63728b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.mobile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(100vh - 186px);
    padding: 28px 20px;
    color: #5d6881;
    text-align: center;
}

.mobile-placeholder i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: #e6edf7;
    color: #6e82ac;
    font-size: 30px;
}

.mobile-placeholder strong {
    color: #2f3d59;
    font-size: 21px;
    font-weight: 850;
}

.mobile-placeholder span {
    max-width: 280px;
    margin-top: 10px;
    color: #6a758c;
    font-size: 14px;
    line-height: 1.65;
}

.mobile-bottom-nav {
    border-top: 1px solid #dce4ef !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -8px 18px rgba(56, 74, 110, 0.08);
}

.mobile-nav-button .webix_button {
    height: 58px !important;
    border: none !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #778299 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.mobile-nav-button .webix_button i,
.mobile-nav-button .webix_button span {
    display: block;
}

.mobile-nav-button .webix_button i {
    margin-bottom: 4px;
    font-size: 18px;
}

.mobile-nav-button.selected .webix_button,
.mobile-nav-button.mobile-nav-selected .webix_button {
    background: #edf2fb !important;
    color: #546a9e !important;
}

.mobile-repl-view .webix_scroll_cont {
    padding-bottom: 18px;
}

.mobile-repl-head-template,
.mobile-repl-head-template .webix_template,
.mobile-repl-store-layout,
.mobile-repl-section-template,
.mobile-repl-section-template .webix_template,
.mobile-repl-list-template,
.mobile-repl-list-template .webix_template,
.mobile-repl-summary-template,
.mobile-repl-summary-template .webix_template {
    background: transparent !important;
}

.mobile-repl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    padding: 16px 14px 10px;
}

.mobile-repl-head-count-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
}

.mobile-repl-head-count-card span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #65738a;
    font-size: 13px;
    font-weight: 850;
}

.mobile-repl-head-count-card span i {
    color: #9c4221;
}

.mobile-repl-head-count-card strong {
    display: block;
    color: #263653;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
}

.mobile-repl-head-count-card small {
    display: block;
    color: #64728a;
    font-size: 12px;
    font-weight: 750;
}

.mobile-repl-head-refresh {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d5dfec;
    border-radius: 8px;
    background: #fff;
    color: #4d6393;
}

.mobile-repl-store-layout {
    padding: 0 14px 8px;
}

.mobile-repl-store-select .webix_inp_static {
    border-color: #d1dceb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #263653 !important;
    font-weight: 800;
}

.mobile-repl-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 8px;
}

.mobile-repl-summary div {
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.mobile-repl-summary .wide {
    grid-column: 1 / -1;
}

.mobile-repl-summary span,
.mobile-repl-summary strong {
    display: block;
}

.mobile-repl-summary span {
    color: #6c778d;
    font-size: 12px;
    font-weight: 700;
}

.mobile-repl-summary strong {
    min-width: 0;
    overflow: hidden;
    margin-top: 4px;
    color: #263653;
    font-size: 18px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 12px 14px 8px;
    color: #2c3a57;
    font-weight: 850;
}

.mobile-repl-section-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-repl-section-title i {
    color: #5e729e;
}

.mobile-repl-section-title strong {
    color: #7a879b;
    font-size: 12px;
}

.mobile-repl-card-row {
    display: flex;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 4px;
    overflow-x: auto;
}

.mobile-repl-cabinet-card {
    flex: 0 0 154px;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 2px 8px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3a57;
    font: inherit;
    text-align: left;
}

.mobile-repl-cabinet-card.selected {
    border-color: #5e729e;
    background: #eef3fb;
}

.mobile-repl-cabinet-card i {
    grid-row: 1 / span 2;
    align-self: center;
    color: #5e729e;
    font-size: 22px;
}

.mobile-repl-cabinet-card span,
.mobile-repl-cabinet-card small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-cabinet-card span {
    font-weight: 850;
}

.mobile-repl-cabinet-card small {
    color: #66758f;
    font-size: 12px;
    font-weight: 700;
}

.mobile-repl-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 4px;
}

.mobile-repl-shortage-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #e1d9ce;
    border-left: 4px solid #b7791f;
    border-radius: 8px;
    background: #fffaf2;
    color: #2f3544;
    font: inherit;
    text-align: left;
}

.mobile-repl-card-main {
    min-width: 0;
}

.mobile-repl-card-main strong,
.mobile-repl-card-main span,
.mobile-repl-card-count span,
.mobile-repl-card-count strong {
    display: block;
}

.mobile-repl-card-main strong {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-card-main span {
    margin-top: 4px;
    color: #6f675f;
    font-size: 12px;
    font-weight: 700;
}

.mobile-repl-card-count {
    flex: 0 0 auto;
    min-width: 46px;
    text-align: center;
}

.mobile-repl-card-count span {
    color: #8a6a2d;
    font-size: 11px;
    font-weight: 800;
}

.mobile-repl-card-count strong {
    color: #9a3412;
    font-size: 22px;
    font-weight: 900;
}

.mobile-repl-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 18px;
}

.mobile-repl-slot-card {
    position: relative;
    min-height: 112px;
    padding: 10px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
    font: inherit;
    text-align: left;
}

.mobile-repl-slot-card.disabled {
    opacity: 0.58;
}

.mobile-repl-slot-card.stock-empty {
    border-color: #feb2b2;
    background: #fff5f5;
}

.mobile-repl-slot-card.stock-empty .mobile-repl-slot-pos,
.mobile-repl-slot-card.stock-empty .mobile-repl-slot-meta {
    color: #9b2c2c;
}

.mobile-repl-slot-card.stock-empty b {
    color: #c53030;
}

.mobile-repl-slot-card.stock-available {
    border-color: #9ae6b4;
    background: #f0fff4;
}

.mobile-repl-slot-card.stock-available .mobile-repl-slot-pos,
.mobile-repl-slot-card.stock-available .mobile-repl-slot-meta {
    color: #276749;
}

.mobile-repl-slot-card.stock-available b {
    color: #2f855a;
}

.mobile-repl-slot-card.located {
    border-color: #2b6cb0;
    background: #ebf8ff;
    box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.16);
}

.mobile-repl-slot-card span,
.mobile-repl-slot-card strong {
    display: block;
}

.mobile-repl-slot-pos {
    color: #60708c;
    font-size: 12px;
    font-weight: 800;
}

.mobile-repl-slot-card strong {
    height: 38px;
    margin-top: 6px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

.mobile-repl-slot-meta {
    color: #718098;
    font-size: 12px;
    font-weight: 700;
}

.mobile-repl-slot-card b {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #49628f;
    font-size: 24px;
    font-weight: 900;
}

.mobile-repl-state {
    box-sizing: border-box;
    margin: 0 14px 8px;
    padding: 14px 12px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: #69768d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.mobile-repl-sheet {
    border-radius: 8px !important;
}

.mobile-repl-sheet-head {
    border-bottom: 1px solid #dce5ef !important;
    background: #ffffff !important;
}

.mobile-repl-sheet-title .webix_el_box {
    color: #263653;
    font-weight: 850;
}

.mobile-repl-sheet-body {
    box-sizing: border-box;
    padding: 14px;
    background: #f6f8fb;
}

.mobile-repl-sheet-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-repl-sheet-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #edf2f7;
    overflow: hidden;
}

.mobile-repl-sheet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-repl-sheet-image.empty {
    color: #70819b;
    font-size: 28px;
}

.mobile-repl-sheet-product-text {
    min-width: 0;
}

.mobile-repl-sheet-product-text strong,
.mobile-repl-sheet-product-text span {
    display: block;
}

.mobile-repl-sheet-product-text strong {
    max-height: 44px;
    overflow: hidden;
    color: #263653;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}

.mobile-repl-sheet-product-text span {
    margin-top: 6px;
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
}

.mobile-repl-sheet-loc,
.mobile-repl-counter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.mobile-repl-sheet-loc span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #536176;
    font-size: 13px;
    font-weight: 700;
}

.mobile-repl-sheet-loc i {
    width: 18px;
    color: #5e729e;
}

.mobile-repl-empty-note {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #f6c177;
    border-radius: 8px;
    background: #fff7e8;
    color: #8a5b13;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.mobile-repl-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-repl-counter > span {
    color: #536176;
    font-size: 14px;
    font-weight: 850;
}

.mobile-repl-counter div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-repl-counter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ced9e8;
    border-radius: 8px;
    background: #f5f8fc;
    color: #4b6394;
}

.mobile-repl-counter strong {
    min-width: 34px;
    color: #263653;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.mobile-repl-price-label {
    display: block;
    margin: 14px 0 6px;
    color: #536176;
    font-size: 13px;
    font-weight: 850;
}

.mobile-repl-price-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ced9e8;
    border-radius: 8px;
    color: #263653;
    font-size: 18px;
    font-weight: 850;
}

.mobile-repl-capacity {
    margin-top: 8px;
    color: #728096;
    font-size: 12px;
    font-weight: 700;
}

.mobile-repl-description-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    margin-top: 12px;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #eef3fb;
    color: #405a88;
    font: inherit;
    font-weight: 850;
}

.mobile-repl-sheet-actions {
    border-top: 1px solid #dce5ef !important;
    background: #ffffff !important;
}

.mobile-repl-sheet-actions .webix_layout_line {
    gap: 8px;
}

.mobile-primary-button .webix_button {
    border-color: #4f63a0 !important;
    border-radius: 8px !important;
    background: #4f63a0 !important;
    color: #ffffff !important;
    font-weight: 850 !important;
}

.mobile-secondary-button .webix_button {
    border-color: #d3dce8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #536176 !important;
    font-weight: 850 !important;
}

.mobile-tool-button .webix_button {
    border-color: #cbd8e8 !important;
    border-radius: 8px !important;
    background: #eef3fb !important;
    color: #405a88 !important;
    font-weight: 850 !important;
}

.mobile-warning-button .webix_button {
    border-color: #c05621 !important;
    border-radius: 8px !important;
    background: #fffaf0 !important;
    color: #9c4221 !important;
    font-weight: 850 !important;
}

.mobile-repl-exchange-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 8px;
    color: #263653;
}

.mobile-repl-exchange-head span,
.mobile-repl-exchange-head small {
    color: #65738a;
    font-size: 12px;
    font-weight: 750;
}

.mobile-repl-exchange-head span i {
    margin-right: 6px;
    color: #5e729e;
}

.mobile-repl-exchange-head strong {
    font-size: 17px;
    font-weight: 900;
}

.mobile-repl-exchange-search {
    padding: 6px 10px !important;
    border-top: 1px solid #edf1f7 !important;
    border-bottom: 1px solid #edf1f7 !important;
    background: #ffffff !important;
}

.mobile-repl-exchange-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 16px;
}

.mobile-repl-exchange-product {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 70px;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
    text-align: left;
}

.mobile-repl-exchange-product.selected {
    border-color: #4f63a0;
    background: #eef3fb;
}

.mobile-repl-exchange-product img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #f7f9fc;
}

.mobile-repl-exchange-product span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-repl-exchange-product strong,
.mobile-repl-exchange-product small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-exchange-product strong {
    font-size: 14px;
    font-weight: 900;
}

.mobile-repl-exchange-product small {
    margin-top: 4px;
    color: #65738a;
    font-size: 12px;
    font-weight: 750;
}

.mobile-repl-exchange-product > i {
    flex: 0 0 auto;
    color: transparent;
}

.mobile-repl-exchange-product.selected > i {
    color: #4f63a0;
}

.mobile-repl-swap-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 10px;
    color: #263653;
}

.mobile-repl-swap-current {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.mobile-repl-swap-current span,
.mobile-repl-swap-current small {
    color: #65738a;
    font-size: 12px;
    font-weight: 750;
}

.mobile-repl-swap-current span i {
    margin-right: 6px;
    color: #5e729e;
}

.mobile-repl-swap-current strong {
    overflow: hidden;
    color: #263653;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-swap-icon {
    flex: 0 0 auto;
    color: #4f63a0;
    font-size: 18px;
}

.mobile-repl-swap-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 12px 16px;
}

.mobile-repl-swap-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-repl-swap-group-title {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 7px;
    color: #52617a;
    font-size: 13px;
    font-weight: 900;
}

.mobile-repl-swap-group-title i {
    color: #5e729e;
}

.mobile-repl-swap-target {
    display: flex;
    min-width: 0;
    min-height: 92px;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
    text-align: left;
}

.mobile-repl-swap-target.selected {
    border-color: #4f63a0;
    background: #eef3fb;
}

.mobile-repl-swap-target.stock-empty {
    border-color: #feb2b2;
    background: #fff5f5;
}

.mobile-repl-swap-target.stock-empty .mobile-repl-swap-pos,
.mobile-repl-swap-target.stock-empty small {
    color: #9b2c2c;
}

.mobile-repl-swap-target.stock-empty strong {
    color: #c53030;
}

.mobile-repl-swap-target.stock-available {
    border-color: #9ae6b4;
    background: #f0fff4;
}

.mobile-repl-swap-target.stock-available .mobile-repl-swap-pos,
.mobile-repl-swap-target.stock-available small {
    color: #276749;
}

.mobile-repl-swap-target.stock-available strong {
    color: #2f855a;
}

.mobile-repl-swap-target.selected.stock-empty,
.mobile-repl-swap-target.selected.stock-available {
    border-color: #4f63a0;
    box-shadow: 0 0 0 2px rgba(79, 99, 160, 0.14);
}

.mobile-repl-swap-target strong,
.mobile-repl-swap-target small,
.mobile-repl-swap-pos {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-swap-pos {
    color: #4f63a0;
    font-size: 12px;
    font-weight: 900;
}

.mobile-repl-swap-target strong {
    color: #263653;
    font-size: 14px;
    font-weight: 900;
}

.mobile-repl-swap-target small {
    color: #65738a;
    font-size: 12px;
    font-weight: 750;
}

.mobile-repl-swap-target > i {
    align-self: flex-end;
    margin-top: auto;
    color: transparent;
}

.mobile-repl-swap-target.selected > i {
    color: #4f63a0;
}

.mobile-repl-swap-confirm {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px;
}

.mobile-repl-swap-confirm-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-repl-swap-confirm-card.stock-empty {
    border-color: #feb2b2;
    background: #fff5f5;
}

.mobile-repl-swap-confirm-card.stock-available {
    border-color: #9ae6b4;
    background: #f0fff4;
}

.mobile-repl-swap-confirm-label {
    color: #52617a;
    font-size: 12px;
    font-weight: 900;
}

.mobile-repl-swap-confirm-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mobile-repl-swap-confirm-product img {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
}

.mobile-repl-swap-confirm-product div {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-repl-swap-confirm-product strong,
.mobile-repl-swap-confirm-product small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-repl-swap-confirm-product strong {
    color: #263653;
    font-size: 16px;
    font-weight: 900;
}

.mobile-repl-swap-confirm-product small {
    margin-top: 4px;
    color: #65738a;
    font-size: 12px;
    font-weight: 750;
}

.mobile-repl-swap-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f63a0;
    font-size: 22px;
}

.mobile-product-desc-window,
.mobile-product-desc-image-window {
    border-radius: 8px !important;
}

.mobile-product-desc-head {
    border-bottom: 1px solid #dce5ef !important;
    background: #ffffff !important;
}

.mobile-product-desc-title .webix_el_box {
    color: #263653;
    font-weight: 850;
}

.mobile-product-desc-title i {
    margin-right: 6px;
    color: #5e729e;
}

.mobile-product-desc-wrap {
    box-sizing: border-box;
    min-height: 100%;
    padding: 14px;
    background: #f6f8fb;
}

.mobile-product-desc-summary {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-product-desc-thumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #edf2f7;
    color: #70819b;
    font-size: 28px;
    overflow: hidden;
}

.mobile-product-desc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-product-desc-text {
    min-width: 0;
}

.mobile-product-desc-text strong,
.mobile-product-desc-text span {
    display: block;
}

.mobile-product-desc-text strong {
    max-height: 44px;
    overflow: hidden;
    color: #263653;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}

.mobile-product-desc-text span {
    margin-top: 6px;
    color: #6f7d92;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-product-desc-content {
    box-sizing: border-box;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.mobile-product-desc-content img,
.mobile-product-desc-content video,
.mobile-product-desc-content iframe {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 10px auto;
    border-radius: 8px;
}

.mobile-product-desc-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.mobile-product-desc-content a {
    color: #405a88;
    font-weight: 800;
}

.mobile-product-desc-empty {
    padding: 14px 12px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: #f8fafc;
    color: #69768d;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.mobile-product-desc-actions {
    border-top: 1px solid #dce5ef !important;
    background: #ffffff !important;
}

.mobile-product-desc-actions .webix_layout_line {
    gap: 8px;
}

.mobile-product-desc-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 10px;
    background: #111827;
}

.mobile-product-desc-image-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.mobile-locator-view .webix_scroll_cont {
    padding-bottom: 18px;
}

.mobile-locator-head-template,
.mobile-locator-head-template .webix_template,
.mobile-locator-form-layout,
.mobile-locator-summary-template,
.mobile-locator-summary-template .webix_template,
.mobile-locator-results-template,
.mobile-locator-results-template .webix_template {
    background: transparent !important;
}

.mobile-locator-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 16px 14px 10px;
}

.mobile-locator-head strong,
.mobile-locator-head span {
    display: block;
}

.mobile-locator-head strong {
    color: #263653;
    font-size: 24px;
    font-weight: 850;
}

.mobile-locator-head span {
    margin-top: 4px;
    color: #64728a;
    font-size: 13px;
    font-weight: 700;
}

.mobile-locator-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d5dfec;
    border-radius: 8px;
    background: #fff;
    color: #4d6393;
}

.mobile-locator-form-layout {
    padding: 0 14px 8px;
}

.mobile-locator-form-layout .webix_view {
    margin-bottom: 8px !important;
}

.mobile-locator-store-select .webix_inp_static,
.mobile-locator-input input {
    border-color: #d1dceb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #263653 !important;
    font-weight: 800;
}

.mobile-locator-query-button .webix_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: #4f63a0 !important;
    border-radius: 8px !important;
    background: #4f63a0 !important;
    color: #ffffff !important;
    font-weight: 850 !important;
}

.mobile-locator-query-button .webix_button span {
    margin-left: 8px;
}

.mobile-locator-state {
    box-sizing: border-box;
    margin: 0 14px 8px;
    padding: 14px 12px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: #69768d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.mobile-locator-state.error {
    border-color: #f3b4b4;
    background: #fff5f5;
    color: #a12727;
}

.mobile-locator-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    margin: 0 14px 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
}

.mobile-locator-summary.ok {
    border: 1px solid #b9dfc8;
    background: #f0fff4;
    color: #22543d;
}

.mobile-locator-summary.empty {
    border: 1px solid #f4cf95;
    background: #fffaf0;
    color: #9c4221;
}

.mobile-locator-summary strong {
    min-width: 0;
    overflow: hidden;
    color: #43506a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-locator-result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 18px;
}

.mobile-locator-result-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 9px;
    width: 100%;
    min-height: 132px;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
    font: inherit;
    text-align: left;
}

.mobile-locator-result-thumb {
    grid-row: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 8px;
    background: #edf2f7;
    color: #70819b;
    font-size: 24px;
    object-fit: cover;
    overflow: hidden;
}

.mobile-locator-result-main {
    min-width: 0;
}

.mobile-locator-result-main strong,
.mobile-locator-result-main span {
    display: block;
}

.mobile-locator-result-main strong {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-locator-result-main span {
    margin-top: 4px;
    color: #6b778e;
    font-size: 12px;
    font-weight: 800;
}

.mobile-locator-result-loc {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-locator-result-loc span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #55637a;
    font-size: 13px;
    font-weight: 700;
}

.mobile-locator-result-loc i {
    width: 18px;
    color: #5e729e;
}

.mobile-locator-result-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #edf1f7;
    color: #6a758a;
    font-size: 13px;
    font-weight: 800;
}

.mobile-locator-locate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #eef3fb;
    color: #405a88;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
}

.mobile-locator-result-foot strong {
    color: #2b6cb0;
    font-size: 18px;
}

.mobile-status-view .webix_scroll_cont {
    padding-bottom: 18px;
}

.mobile-status-head-template,
.mobile-status-head-template .webix_template,
.mobile-status-store-layout,
.mobile-status-summary-template,
.mobile-status-summary-template .webix_template,
.mobile-status-store-info-template,
.mobile-status-store-info-template .webix_template,
.mobile-status-websocket-template,
.mobile-status-websocket-template .webix_template,
.mobile-status-pwa-template,
.mobile-status-pwa-template .webix_template,
.mobile-status-notice-template,
.mobile-status-notice-template .webix_template,
.mobile-status-cabinets-template,
.mobile-status-cabinets-template .webix_template {
    background: transparent !important;
}

.mobile-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 16px 14px 10px;
}

.mobile-status-head strong,
.mobile-status-head span {
    display: block;
}

.mobile-status-head strong {
    color: #263653;
    font-size: 24px;
    font-weight: 850;
}

.mobile-status-head span {
    margin-top: 4px;
    color: #64728a;
    font-size: 13px;
    font-weight: 700;
}

.mobile-status-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d5dfec;
    border-radius: 8px;
    background: #fff;
    color: #4d6393;
}

.mobile-status-store-layout {
    padding: 0 14px 8px;
}

.mobile-status-store-select .webix_inp_static {
    border-color: #d1dceb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #263653 !important;
    font-weight: 800;
}

.mobile-status-state {
    box-sizing: border-box;
    margin: 0 14px 8px;
    padding: 14px 12px;
    border: 1px dashed #cdd8e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: #69768d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.mobile-status-state.error {
    border-color: #f3b4b4;
    background: #fff5f5;
    color: #a12727;
}

.mobile-status-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 8px;
}

.mobile-status-metric,
.mobile-status-online {
    box-sizing: border-box;
    min-height: 82px;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.mobile-status-metric i {
    color: #5e729e;
    font-size: 17px;
}

.mobile-status-metric span,
.mobile-status-metric strong,
.mobile-status-online span,
.mobile-status-online strong {
    display: block;
}

.mobile-status-metric span,
.mobile-status-online span {
    margin-top: 5px;
    color: #69768d;
    font-size: 12px;
    font-weight: 800;
}

.mobile-status-metric strong,
.mobile-status-online strong {
    margin-top: 2px;
    color: #263653;
    font-size: 22px;
    font-weight: 900;
}

.mobile-status-online {
    grid-column: 1 / -1;
    min-height: 62px;
}

.mobile-status-online.online {
    border-color: #b9dfc8;
    background: #f0fff4;
}

.mobile-status-online.online strong {
    color: #22543d;
}

.mobile-status-online.offline {
    border-color: #f3b4b4;
    background: #fff5f5;
}

.mobile-status-online.offline strong {
    color: #a12727;
}

.mobile-status-info-card,
.mobile-status-websocket-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    margin: 0 14px 10px;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
}

.mobile-status-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #65738a;
    font-size: 13px;
    font-weight: 800;
}

.mobile-status-info-group-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #edf1f7;
    color: #2c3a57;
    font-size: 13px;
    font-weight: 900;
}

.mobile-status-info-group-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mobile-status-info-group-title i {
    color: #5e729e;
}

.mobile-status-info-row span {
    min-width: 0;
}

.mobile-status-info-row i {
    width: 17px;
    color: #5e729e;
    text-align: center;
}

.mobile-status-info-row strong {
    flex: 0 0 auto;
    max-width: 52%;
    overflow: hidden;
    color: #263653;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-status-info-row.address {
    align-items: flex-start;
}

.mobile-status-info-row.address strong {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}

.mobile-status-info-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #eef3fb;
    color: #405a88;
    font-size: 13px;
    font-weight: 850;
}

.mobile-status-websocket-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-status-websocket-card.healthy {
    border-color: #b9dfc8;
    background: #f0fff4;
}

.mobile-status-websocket-card.offline {
    border-color: #f3b4b4;
    background: #fff5f5;
}

.mobile-status-websocket-main {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.mobile-status-websocket-main i {
    color: #5e729e;
    font-size: 18px;
}

.mobile-status-websocket-card.healthy .mobile-status-websocket-main i,
.mobile-status-websocket-card.healthy strong {
    color: #22543d;
}

.mobile-status-websocket-card.offline .mobile-status-websocket-main i,
.mobile-status-websocket-card.offline strong {
    color: #a12727;
}

.mobile-status-websocket-main strong,
.mobile-status-websocket-main span {
    display: block;
    min-width: 0;
}

.mobile-status-websocket-main strong {
    font-size: 14px;
    font-weight: 850;
}

.mobile-status-websocket-main span {
    margin-top: 3px;
    overflow: hidden;
    color: #65738a;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-status-websocket-card button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: #546a9e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.mobile-status-pwa-template .mobile-pwa-panel {
    margin: 0 14px 10px;
}

.mobile-status-notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 10px;
}

.mobile-status-notices div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #536176;
    font-size: 13px;
    font-weight: 800;
}

.mobile-status-notices i {
    color: #5e729e;
}

.mobile-status-cabinet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 14px 18px;
}

.mobile-status-cabinet-card {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    color: #263653;
    font: inherit;
    text-align: left;
}

.mobile-status-cabinet-card.warn {
    border-left: 4px solid #b7791f;
    background: #fffaf2;
}

.mobile-status-cabinet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-status-cabinet-head strong,
.mobile-status-cabinet-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-status-cabinet-head strong {
    color: #263653;
    font-size: 16px;
    font-weight: 850;
}

.mobile-status-cabinet-head span {
    color: #69768d;
    font-size: 12px;
    font-weight: 800;
}

.mobile-status-cabinet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.mobile-status-cabinet-grid span {
    display: block;
    min-width: 0;
    padding: 8px 6px;
    border-radius: 8px;
    background: rgba(237, 242, 251, 0.75);
    text-align: center;
}

.mobile-status-cabinet-grid em,
.mobile-status-cabinet-grid b {
    display: block;
    font-style: normal;
}

.mobile-status-cabinet-grid em {
    color: #6d7a90;
    font-size: 11px;
    font-weight: 800;
}

.mobile-status-cabinet-grid b {
    margin-top: 3px;
    color: #2f456d;
    font-size: 18px;
    font-weight: 900;
}

.report-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    height: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
    border: 1px solid #dbe4ec;
    border-left: 5px solid #3498db;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-card-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 220px;
}

.report-card-head-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2d3d;
    min-width: 0;
}

.report-card-head-meta {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #5d7288;
}

.report-card-head-tip {
    color: #7d8ea1;
    font-size: 14px;
    cursor: help;
    flex: 0 0 auto;
}

.report-inline-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    background: #f8f9fa;
    border-top: 1px solid #e1e4e8;
    color: #2c3e50;
}

.report-inline-summary-tip {
    color: #7d8ea1;
    font-size: 13px;
    cursor: help;
}

.report-chart-tilt-x .webix_canvas_text.webix_axis_item_x {
    transform: translateY(6px) rotate(-35deg);
    transform-origin: top center;
    white-space: nowrap;
    line-height: 1.1;
    font-size: 11px;
}

.kpi-card-container {
    margin: 0 10px;
}

.kpi-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   transition: transform 0.2s;
}

.kpi-card:hover {
transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.kpi-card .kpi-title {
    font-size: 14px;
   color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.kpi-card .kpi-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.kpi-card .kpi-comparison {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.kpi-card .kpi-comparison .fa {
 margin-left: 5px;
}

.datatable-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #c9d6ea;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    color: #36507a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(54, 80, 122, 0.12);
}

.datatable-action-chip:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #dfeaff 100%);
    border-color: #9fb6df;
    color: #243b63;
    box-shadow: 0 3px 8px rgba(54, 80, 122, 0.18);
}

.datatable-action-chip .fa {
    font-size: 11px;
}

.replenish-info-box {
    border-radius: 16px;
    border: 1px solid #d9e5f4;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 8px 20px rgba(71, 92, 130, 0.08);
}

.replenish-card {
    border: 1px solid #d9e5f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 6px 16px rgba(71, 92, 130, 0.06);
    overflow: hidden;
}

.replenish-summary-card .webix_template {
    padding-left: 2px;
    padding-right: 2px;
}

.replenish-qty-card {
    min-height: 130px;
    overflow: visible;
}

.replenish-card-label {
    font-size: 13px;
    color: #5f7698;
    font-weight: 700;
    margin-bottom: 6px;
}

.replenish-nested-box {
    box-shadow: none;
    border-color: #e4ecf8;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
}

.replenish-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 14px;
    background:
        radial-gradient(circle at top right, rgba(118, 75, 162, 0.08), transparent 35%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fd 100%);
    border-radius: 14px;
}

.replenish-thumb-image {
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(33, 48, 79, 0.12));
}

.replenish-summary-line {
    background: transparent !important;
}

.replenish-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #20324f;
    line-height: 1.35;
}

.replenish-summary-subtitle {
    font-size: 14px;
    color: #60738f;
    line-height: 1.45;
    margin-top: 6px;
}

.replenish-summary-meta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.replenish-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e5eefb;
    color: #35537f;
    font-size: 12px;
    font-weight: 700;
}

.replenish-capacity {
    background: transparent !important;
}

.replenish-capacity-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 28px;
    font-weight: 700;
    color: #284268;
}

.replenish-detail-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #324d74;
    padding: 2px 0;
    background: transparent !important;
}

.replenish-detail-label {
    color: #70819a;
    font-weight: 600;
}

.replenish-detail-inline {
    background: transparent !important;
}

.cabinet-manager-shell {
    padding: 12px;
    background:
        radial-gradient(circle at top right, rgba(120, 149, 190, 0.14), transparent 32%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.cabinet-main-pane {
    min-width: 0;
}

.cabinet-toolbar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d8e3f0;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(54, 80, 122, 0.06);
}

.cabinet-inspector-pane {
    background: transparent;
}

.cabinet-inspector-scroll {
    background: transparent !important;
}

.cabinet-side-card {
    border-radius: 20px;
    border: 1px solid #d8e3f0;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,255,0.98) 100%);
    box-shadow: 0 16px 32px rgba(53, 74, 108, 0.08);
    overflow: hidden;
}

.cabinet-side-card .webix_template,
.cabinet-layout-preview .webix_template,
.io-dialog-summary-shell .webix_template,
.io-section-title .webix_template,
.io-selection-shell .webix_template,
.io-draft-shell .webix_template,
.io-help-shell .webix_template,
.io-slot-card-shell .webix_template {
    padding: 0 !important;
}

.cabinet-side-card-hero {
    background:
        radial-gradient(circle at top right, rgba(100, 142, 214, 0.22), transparent 34%),
        linear-gradient(135deg, #153a63 0%, #3f6b9c 100%);
    border: none;
}

.cabinet-inspector-hero-inner {
    color: #fff;
    padding: 18px 20px;
}

.cabinet-inspector-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cabinet-inspector-title {
    margin-top: 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.cabinet-inspector-subtitle {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
}

.cabinet-inspector-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cabinet-inspector-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.cabinet-inspector-chip.is-active {
    background: rgba(84, 214, 144, 0.22);
}

.cabinet-inspector-chip.is-inactive {
    background: rgba(255, 179, 71, 0.22);
}

.cabinet-side-card-meta {
    padding: 14px;
}

.cabinet-inspector-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cabinet-meta-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfefe 0%, #f2f7fd 100%);
    border: 1px solid #e1eaf5;
}

.cabinet-meta-label {
    display: block;
    font-size: 12px;
    color: #7a8ca8;
    font-weight: 700;
    margin-bottom: 6px;
}

.cabinet-meta-value {
    display: block;
    font-size: 15px;
    color: #223654;
    line-height: 1.35;
}

.cabinet-side-card-title {
    border-bottom: 1px solid #e7eef7;
    background: rgba(248, 251, 255, 0.84);
}

.cabinet-side-card-title-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px 13px;
    color: #244166;
    font-size: 13px;
    font-weight: 700;
}

.cabinet-side-card-title-inner span:last-child {
    color: #8aa0bd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cabinet-image-template,
.cabinet-desc-template {
    background: transparent !important;
}

.cabinet-visual-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 176px;
    padding: 16px 18px;
    background:
        radial-gradient(circle at top right, rgba(81, 128, 201, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eff5fc 100%);
}

.cabinet-visual-image {
    max-width: 100%;
    max-height: 108px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(36, 63, 98, 0.18));
}

.cabinet-visual-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 62, 102, 0.08);
    color: #37557f;
    font-size: 12px;
    font-weight: 700;
}

.cabinet-visual-frame-empty {
    color: #6f84a0;
}

.cabinet-visual-empty-icon {
    font-size: 28px;
    color: #90a6c2;
}

.cabinet-visual-empty-text {
    font-size: 13px;
}

.cabinet-layout-preview {
    background: transparent !important;
}

.cabinet-layout-preview .webix_view {
    background: transparent !important;
}

.cabinet-structure-empty {
    background: transparent !important;
}

.cabinet-structure-empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    border: 1px dashed #c9d7e8;
    border-radius: 18px;
    color: #7f90a8;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fe 100%);
}

.cabinet-structure-leaf {
    border-radius: 18px;
    border: 1px solid #d4e0ee;
    background: linear-gradient(180deg, #ffffff 0%, #eff5fb 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.cabinet-structure-leaf-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 12px;
}

.cabinet-structure-leaf-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #dfe9f7;
    color: #2d4a72;
    font-size: 12px;
    font-weight: 800;
}

.cabinet-description-body {
    padding: 18px;
}

.cabinet-description-text {
    margin: 0;
    color: #304868;
    line-height: 1.7;
    font-size: 14px;
}

.cabinet-description-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cabinet-description-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf1fb;
    color: #31517c;
    font-size: 12px;
    font-weight: 700;
}

.cabinet-description-note {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7faff;
    border: 1px solid #e3ecf7;
    color: #647a98;
    font-size: 12px;
    line-height: 1.6;
}

.cabinet-description-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 148px;
    padding: 16px;
    color: #7a8da7;
}

.cabinet-description-empty-icon {
    font-size: 26px;
    color: #9bb0ca;
}

.io-dialog-summary-shell {
    border-radius: 18px;
    border: 1px solid #dce7f4;
    background: linear-gradient(135deg, #143b63 0%, #315a86 100%);
    margin-bottom: 12px;
    overflow: hidden;
}

.io-dialog-summary {
    padding: 18px 20px;
    color: #fff;
}

.io-dialog-summary-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 12px;
    font-weight: 700;
}

.io-dialog-summary-title {
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.io-dialog-summary-subtitle {
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    white-space: nowrap;
}

.io-dialog-summary-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.io-dialog-summary-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.22);
}

.io-dialog-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.io-dialog-stat {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.14);
}

.io-dialog-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.io-dialog-stat-value {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    color: #fff;
}

.io-editor-form .webix_el_box {
    padding-left: 0;
    padding-right: 0;
}

.io-editor-form .webix_inp_top_label {
    color: #405c82;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.io-editor-form .webix_el_richselect .webix_inp_static,
.io-editor-form .webix_el_richselect input {
    min-height: 40px;
}

.io-grid-panel,
.io-editor-panel {
    border-radius: 18px;
    border: 1px solid #d8e3f0;
    background: linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
    box-shadow: 0 12px 28px rgba(53, 74, 108, 0.07);
    overflow: hidden;
}

.io-section-title {
    border-bottom: 1px solid #e6edf7;
    background: rgba(248, 251, 255, 0.9);
}

.io-section-title-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #29456c;
    font-size: 13px;
    font-weight: 700;
}

.io-section-title-inner span:last-child {
    color: #8ba0bb;
    font-size: 11px;
    font-weight: 700;
}

.io-grid-scroll,
.io-editor-scroll {
    background: transparent !important;
}

.io-slot-card-shell {
    background: transparent !important;
}

.io-slot-card-action,
.io-slot-placeholder {
    height: 100%;
    border-radius: 16px;
    border: 1px solid #d9e4f1;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
    padding: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.io-slot-card-action {
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(52, 77, 112, 0.06);
}

.io-slot-card-action:hover {
    transform: translateY(-2px);
    border-color: #a9bfdc;
    box-shadow: 0 12px 24px rgba(52, 77, 112, 0.12);
}

.io-slot-card-action.is-selected {
    border-color: #3b6ea8;
    box-shadow: 0 14px 28px rgba(41, 78, 123, 0.2);
    background: linear-gradient(180deg, #fefefe 0%, #e9f2fd 100%);
}

.io-slot-card-action.is-configured {
    background: linear-gradient(180deg, #ffffff 0%, #edf7f1 100%);
}

.io-slot-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.io-slot-chip,
.io-selection-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e7eef8;
    color: #35557e;
    font-size: 12px;
    font-weight: 700;
}

.io-slot-card-title {
    margin-top: 12px;
    color: #243a5a;
    font-size: 17px;
    font-weight: 700;
}

.io-slot-card-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.io-selection-values,
.io-draft-values {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.io-slot-card-value,
.io-selection-values span,
.io-draft-values span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(36, 63, 98, 0.06);
    color: #405c82;
    font-size: 12px;
    font-weight: 700;
}

.io-slot-card-value {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 7px 8px;
    gap: 4px;
}

.io-slot-card-value span,
.io-slot-card-value strong {
    white-space: nowrap;
}

.io-slot-card-value strong,
.io-selection-values strong,
.io-draft-values strong {
    color: #223654;
    font-size: 14px;
}

.io-slot-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-style: dashed;
    color: #7d91ab;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.io-slot-placeholder-chip {
    font-size: 12px;
    font-weight: 700;
}

.io-slot-placeholder-text {
    font-size: 12px;
    line-height: 1.5;
}

.io-grid-empty-inner,
.io-selection-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 130px;
    color: #8092aa;
}

.io-selection-card {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dbe5f1;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.io-selection-shell,
.io-help-shell {
    background: transparent !important;
}

.io-selection-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.io-selection-title {
    font-size: 16px;
    color: #233654;
    font-weight: 700;
    line-height: 1.2;
}

.io-selection-meta {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.io-draft-card {
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #edf3fb;
    color: #314f7a;
}

.io-draft-card-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #778ca8;
}

.io-draft-label {
    font-size: 12px;
    font-weight: 700;
}

.io-help-card {
    margin-top: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fc 100%);
    border: 1px solid #e1e9f4;
}

.io-help-line {
    color: #657b99;
    font-size: 12px;
    line-height: 1.6;
}

.io-help-line + .io-help-line {
    margin-top: 9px;
}

.io-slot-card-status {
    margin-top: 10px;
    color: #657b99;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1280px) {
    .io-dialog-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .io-dialog-summary-title,
    .io-dialog-summary-subtitle {
        white-space: normal;
    }

    .io-dialog-summary-divider {
        display: none;
    }
}

.replenish-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d9e5f4;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    color: #2e4a75;
    font-size: 13px;
}

.replenish-meta-item strong {
    font-size: 15px;
    color: #1f3659;
}

.replenish-meta-label {
    color: #6f82a0;
    font-weight: 700;
}

.replenish-store-simple {
    background: transparent !important;
}

.replenish-store-simple-line {
    color: #2f4c77;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 4px 2px;
}

.replenish-counter .webix_el_box,
.replenish-counter .webix_inp_counter {
    height: 42px !important;
}

.replenish-counter input {
    border-radius: 10px !important;
    border: 1px solid #cfdbef !important;
    background: #fff !important;
    font-size: 16px;
    font-weight: 700;
    color: #26446f;
}

.replenish-counter .webix_inp_counter_next,
.replenish-counter .webix_inp_counter_prev {
    background: #e8effa !important;
    color: #47658f !important;
    border-radius: 10px !important;
}

.replenish-price-counter input {
    font-size: 18px;
}

.replenish-main-counter input {
    color: #1f5d4d;
    font-size: 20px;
}

.replenish-action-card {
    border-color: #b9ddcf;
    background: linear-gradient(180deg, #ffffff 0%, #f0faf5 100%);
}

.replenish-state-value .webix_template {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    color: #29466f;
}

.replenish-state-value strong {
    font-size: 28px;
    font-weight: 800;
}

.replenish-state-value span {
    color: #7588a3;
    font-size: 13px;
    font-weight: 700;
}

.replenish-preview-card {
    margin-top: 10px;
}

.replenish-preview .webix_template {
    padding: 0;
}

.replenish-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.replenish-preview-grid > div {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #dce7f4;
    border-radius: 10px;
    background: #ffffff;
}

.replenish-preview-grid span {
    display: block;
    color: #72839d;
    font-size: 12px;
    font-weight: 800;
}

.replenish-preview-grid strong {
    display: block;
    margin-top: 4px;
    color: #203a61;
    font-size: 20px;
    font-weight: 850;
}

.replenish-status-line .webix_template {
    padding: 6px 2px 0;
    color: #2f5f52;
    font-size: 13px;
    font-weight: 800;
}

.exchange-current-card,
.exchange-selected-card,
.exchange-product-card {
    overflow: visible;
}

.exchange-current-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 142px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fd 100%);
}

.exchange-current-thumb img {
    max-width: 126px;
    max-height: 126px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(33, 48, 79, 0.12));
}

.exchange-current-title {
    color: #1f3659;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.35;
}

.exchange-current-subtitle {
    color: #647a98;
    font-size: 13px;
    line-height: 1.45;
}

.exchange-current-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.exchange-current-grid > div {
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid #dce7f4;
    border-radius: 10px;
    background: #fff;
}

.exchange-current-grid span,
.exchange-selected-meta span {
    color: #72839d;
    font-size: 12px;
    font-weight: 800;
}

.exchange-current-grid strong {
    display: block;
    margin-top: 4px;
    color: #203a61;
    font-size: 16px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exchange-selected-template .webix_template {
    padding: 0;
}

.exchange-selected-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px dashed #c8d7ea;
    border-radius: 10px;
    background: #fbfdff;
    color: #7184a0;
    font-size: 13px;
    font-weight: 750;
}

.exchange-selected-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #dce7f4;
    border-radius: 10px;
    background: #fff;
}

.exchange-selected-product img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.exchange-selected-title {
    color: #1f3659;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exchange-selected-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
}

.sp2-price-adjust-table .webix_hscroll {
    height: 16px !important;
}

.sp2-price-adjust-table .webix_hscroll_handle {
    min-height: 12px !important;
}

.replenish-flat-panel {
    border: 1px solid #d9e5f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 6px 16px rgba(71, 92, 130, 0.06);
}

.replenish-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px 10px;
    color: #4a6286;
    font-size: 14px;
    font-weight: 700;
}

.replenish-price-label {
    color: #6f82a0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cabinet-window-head-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.cabinet-window-head-title-compact {
    font-size: 12px;
    letter-spacing: 0.01em;
}

.io_slot_card {
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 6px 14px rgba(74, 98, 138, 0.08);
    overflow: hidden;
}

.io_slot_clickable {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.io_slot_clickable:hover {
    transform: translateY(-2px);
    border-color: #94afe0;
    box-shadow: 0 10px 20px rgba(74, 98, 138, 0.16);
}

.io-slot-card-inner {
    height: 100%;
    padding: 12px 14px;
    background:
        radial-gradient(circle at top right, rgba(118, 75, 162, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(235, 243, 255, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.io-slot-card-head {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.io-slot-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e4edfb;
    color: #47628c;
    font-size: 11px;
    font-weight: 700;
}

.io-slot-card-title {
    color: #23344d;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.io-config-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 14px;
    background: linear-gradient(135deg, #314563 0%, #3f5a84 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid #d9e2f0;
}

.io-config-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.io-selected-slot-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #eff5ff 100%);
    border: 1px solid #d5e1f1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 8px 10px;
}

.io-selected-slot-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 100%;
}

.io-selected-slot-summary-label {
    color: #667892;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.io-selected-slot-empty {
    color: #7b8798;
    font-size: 14px;
    font-weight: 700;
}

.io-selected-slot-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dfeafb;
    color: #2f4e78;
    font-size: 14px;
    font-weight: 700;
}

.io-selected-slot-meta {
    color: #7d8da3;
    font-size: 11px;
    font-weight: 700;
}

.io-compact-combo .webix_inp_top_label,
.io-compact-combo .webix_el_box > label {
    font-size: 12px;
    font-weight: 700;
    color: #445a7c;
}

.io-compact-combo .webix_el_box {
    height: 36px !important;
}

.io-compact-combo input,
.io-compact-combo .webix_input_icon,
.io-compact-combo .webix_input {
    height: 36px !important;
    line-height: 36px !important;
}

.io-compact-combo input {
    border: 1px solid #cfdbef !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 2px rgba(39, 58, 93, 0.04);
    font-size: 13px;
    color: #30496d;
}

.io-compact-combo .webix_input_icon {
    color: #8aa0c3;
}

.io-confirm-button {
    border-radius: 10px !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(132, 103, 194, 0.2);
    font-size: 13px !important;
}

/* Webix confirm / alert / prompt dialogs should follow the misty lavender theme */
.theme-misty div.webix_modal_cover {
    background: rgba(92, 68, 136, 0.18);
    opacity: 1;
    backdrop-filter: blur(2px);
}

.theme-misty .webix_modal_box {
    border: 1px solid #ddd1f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    box-shadow: 0 18px 42px rgba(92, 68, 136, 0.2);
    overflow: hidden;
    font-family: "Microsoft JhengHei", sans-serif;
}

.theme-misty .webix_popup_title {
    padding: 22px 20px 10px;
    color: #665187;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}

.theme-misty .webix_popup_text {
    padding: 10px 24px 0;
    color: #705d92;
    line-height: 1.7;
    text-align: center;
}

.theme-misty .webix_alert .webix_popup_title,
.theme-misty .webix_confirm .webix_popup_title,
.theme-misty .webix_prompt .webix_popup_title,
.theme-misty .webix_alert .webix_popup_text,
.theme-misty .webix_confirm .webix_popup_text,
.theme-misty .webix_prompt .webix_popup_text,
.theme-misty .webix_alert-warning .webix_popup_title,
.theme-misty .webix_confirm-warning .webix_popup_title,
.theme-misty .webix_prompt-warning .webix_popup_title,
.theme-misty .webix_alert-warning .webix_popup_text,
.theme-misty .webix_confirm-warning .webix_popup_text,
.theme-misty .webix_prompt-warning .webix_popup_text,
.theme-misty .webix_alert-error .webix_popup_title,
.theme-misty .webix_confirm-error .webix_popup_title,
.theme-misty .webix_prompt-error .webix_popup_title,
.theme-misty .webix_alert-error .webix_popup_text,
.theme-misty .webix_confirm-error .webix_popup_text,
.theme-misty .webix_prompt-error .webix_popup_text {
    box-shadow: inset 0 4px #cbb4eb !important;
}

.theme-misty .webix_popup_controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px 22px;
}

.theme-misty .webix_modal_box .webix_popup_button {
    margin: 0;
}

.theme-misty .webix_popup_button {
    min-width: 108px;
    height: 38px;
    line-height: 38px;
    border: 1px solid #dfd2f1;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8f2ff 0%, #f0e7fb 100%);
    color: #775da7;
    font-family: "Microsoft JhengHei", sans-serif;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(132, 103, 194, 0.12);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.theme-misty .webix_popup_button div {
    color: inherit;
    font-weight: inherit;
}

.theme-misty .webix_popup_button:hover,
.theme-misty .webix_popup_button:focus {
    background: linear-gradient(180deg, #f2e8ff 0%, #e9dcfb 100%);
    box-shadow: 0 10px 18px rgba(132, 103, 194, 0.16);
}

.theme-misty .webix_popup_button:active {
    background: #e8dbfb;
    transform: translateY(1px);
}

.theme-misty .webix_popup_button.confirm {
    border-color: #bda0e8;
    background: linear-gradient(180deg, #cbb2f0 0%, #b493e4 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(132, 103, 194, 0.24);
}

.theme-misty .webix_popup_button.confirm:hover,
.theme-misty .webix_popup_button.confirm:focus {
    background: linear-gradient(180deg, #c3a8ec 0%, #ab89de 100%);
}

.theme-misty .webix_popup_button.confirm:active {
    background: #a783db;
}

/* Webix hint / tooltip should match the misty lavender theme */
.theme-misty .webix_tooltip,
.theme-misty .webix_global_tooltip {
    padding: 6px 10px;
    border: 1px solid #cdbce8;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(109, 87, 148, 0.96) 0%, rgba(92, 70, 129, 0.96) 100%);
    color: #fffdfd;
    font-family: "Microsoft JhengHei", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(72, 54, 108, 0.26);
    backdrop-filter: blur(4px);
}

/* Webix tabview / datatable states should not fall back to the default blue */
.theme-misty .webix_all_tabs {
    background: linear-gradient(180deg, #f7f2fc 0%, #efe6f8 100%);
    border-bottom: 1px solid #ddd1f1;
}

.theme-misty .webix_item_tab {
    color: #7a6799;
    background: transparent;
    border: none;
    border-radius: 12px 12px 0 0;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.theme-misty .webix_item_tab:hover,
.theme-misty .webix_item_tab:focus {
    background: rgba(203, 180, 235, 0.18);
    color: #654e88;
}

.theme-misty .webix_all_tabs .webix_item_tab.webix_selected,
.theme-misty .webix_all_tabs .webix_item_tab.webix_selected:hover,
.theme-misty .webix_all_tabs .webix_item_tab.webix_selected:focus,
.theme-misty .webixtype_bottom .webix_item_tab.webix_selected,
.theme-misty .webixtype_bottom .webix_item_tab.webix_selected:hover,
.theme-misty .webixtype_bottom .webix_item_tab.webix_selected:focus {
    background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    color: #5d4585;
    box-shadow: inset 0 -3px #b999e6;
}

.theme-misty .webix_item_tab.webix_selected .webix_icon,
.theme-misty .webix_item_tab.webix_selected .webix_img_btn_text,
.theme-misty .webix_item_tab.webix_selected .webix_icon_btn,
.theme-misty .webix_all_tabs .webix_tab_more_icon .webix_icon {
    color: #7d60ad;
}

.theme-misty .webix_dtable .webix_ss_header .webix_hcell,
.theme-misty .webix_dtable .webix_ss_footer .webix_hcell {
    background: linear-gradient(180deg, #f6f1fb 0%, #eee4f8 100%);
    color: #684f8d;
}

.theme-misty .webix_hcell .webix_icon,
.theme-misty .webix_hcell .fa,
.theme-misty .webix_hcell .fas,
.theme-misty .webix_hcell .webix_excel_filter,
.theme-misty .webix_hcell .webix_sort_icon {
    color: #8a6cbc !important;
}

.theme-misty .webix_dtable .webix_ss_header .webix_hcolumn div.webix_last_row,
.theme-misty .webix_dtable .webix_ss_header .webix_span.webix_last_row,
.theme-misty .webix_dtable div.webix_ss_vscroll_header {
    border-bottom-color: #c8afea;
}

.theme-misty .webix_column > div.webix_row_select,
.theme-misty .webix_column > div.webix_cell_select,
.theme-misty .webix_column > div.webix_column_select,
.theme-misty .webix_cell.webix_dtable_colrow.webix_selected {
    background: linear-gradient(180deg, #f7f1fd 0%, #efe4fa 100%);
    color: #563f7c;
    box-shadow: inset 4px 0 0 #b693e5;
}

.theme-misty .webix_column > div.webix_row_select:focus,
.theme-misty .webix_column > div.webix_cell_select:focus,
.theme-misty .webix_column > div.webix_column_select:focus,
.theme-misty .webix_cell.webix_dtable_colrow.webix_selected:focus,
.theme-misty .webix_dtable_focused .webix_column > div.webix_row_select,
.theme-misty .webix_dtable_focused .webix_cell.webix_dtable_colrow.webix_selected {
    background: linear-gradient(180deg, #f3ebfc 0%, #e8dbf8 100%);
    color: #4d3773;
}

.category-page-shell {
    padding: 12px;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(139, 112, 191, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f3fb 0%, #f1edf8 100%);
}

.category-toolbar {
    margin-bottom: 10px;
    border: 1px solid #ddd1f1;
    border-radius: 16px;
    min-width: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(98, 76, 138, 0.08);
}

.category-toolbar-sub {
    margin-top: -6px;
}

.category-toolbar .webix_el_button button,
.category-toolbar .webix_el_button .webix_button {
    white-space: nowrap;
}

.category-panel {
    border: 1px solid #ddd1f1;
    border-radius: 18px;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    box-shadow: 0 12px 24px rgba(98, 76, 138, 0.08);
    overflow: hidden;
}

.category-panel-header {
    background: linear-gradient(180deg, #f7f2fc 0%, #eee5f8 100%) !important;
    color: #654d89 !important;
    border-bottom: 1px solid #ddd1f1 !important;
    font-weight: 700;
}

.category-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

.category-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(123, 97, 170, 0.12);
    color: #71539d;
    font-size: 12px;
    font-weight: 700;
}

.category-summary-template .webix_template,
.category-image-template .webix_template,
.category-usage-template .webix_template {
    padding: 0 !important;
}

.category-summary-card {
    height: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    background:
        radial-gradient(circle at top right, rgba(143, 112, 197, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7f1fd 100%);
}

.category-summary-card.is-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-summary-title {
    color: #4d3b70;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.category-summary-title .fa {
    margin-right: 8px;
    color: #8a6cbc;
}

.category-summary-subtitle {
    margin-top: 8px;
    color: #6f6288;
    font-size: 13px;
    line-height: 1.6;
}

.category-summary-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.category-summary-metric {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(121, 95, 168, 0.08);
    color: #5a467d;
    font-size: 12px;
    font-weight: 700;
}

.category-summary-metric strong {
    font-size: 15px;
    color: #40305f;
}

.category-summary-metric .fa {
    color: #8768b7;
}

.category-detail-form .webix_el_box {
    padding-left: 0;
    padding-right: 0;
}

.category-detail-form .webix_form {
    padding-bottom: 6px;
}

.category-page-shell .webix_layout_space,
.category-page-shell .webix_resizer,
.category-page-shell .webix_scroll_cont,
.category-page-shell .webix_view {
    box-sizing: border-box;
}

.category-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(143, 112, 197, 0.14), transparent 34%),
        linear-gradient(180deg, #faf7fe 0%, #f3eef9 100%);
}

.category-image-preview {
    max-width: 100%;
    max-height: 126px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(77, 59, 112, 0.16));
}

.category-image-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #8a7ca5;
    font-size: 13px;
    font-weight: 700;
}

.category-image-empty .fa {
    font-size: 28px;
    color: #a792cb;
}

.category-info-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    color: #6e6481;
    line-height: 1.6;
}

.category-info-empty .fa {
    color: #8a6cbc;
}

.category-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 8px;
}

.category-usage-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f2fc 100%);
    border: 1px solid #e2d7f2;
    color: #6d5a8d;
}

.category-usage-item .fa {
    color: #8a6cbc;
}

.category-usage-item strong {
    color: #453460;
    font-size: 15px;
}

.category-usage-item label {
    color: #7d7192;
    font-size: 12px;
    font-weight: 700;
}

.category-usage-reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 16px 14px;
    color: #6d6282;
    font-size: 13px;
    line-height: 1.6;
}

.category-usage-reason .fa {
    margin-top: 2px;
    color: #8a6cbc;
}

@media (max-width: 1280px) {
    .category-usage-grid {
        grid-template-columns: 1fr;
    }
}

.sc-monthly-fee-title {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding-left: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #37244f;
}

.sc-monthly-fee-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: #f7fbff;
    border-bottom: 1px solid #d9e7f5;
}

.sc-monthly-fee-summary-label {
    color: #526070;
    font-size: 13px;
    font-weight: 700;
}

.sc-monthly-fee-summary-amount {
    color: #145a8d;
    font-size: 24px;
    font-weight: 850;
}

.sc-monthly-fee-message {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 10px 18px;
    color: #4e5968;
    font-size: 13px;
    line-height: 1.45;
    background: #ffffff;
}

.sc-monthly-fee-message.error {
    color: #9b1c1c;
    background: #fff5f5;
}

.sc-monthly-fee-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #ffffff;
}

.sc-monthly-fee-row {
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    background: #fbfdff;
}

.sc-monthly-fee-row-main,
.sc-monthly-fee-row-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.sc-monthly-fee-row-main {
    margin-bottom: 6px;
}

.sc-monthly-fee-store {
    min-width: 0;
    overflow: hidden;
    color: #253244;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-monthly-fee-month,
.sc-monthly-fee-row-sub span {
    flex: 0 0 auto;
    color: #64758a;
    font-size: 12px;
    font-weight: 700;
}

.sc-monthly-fee-row-sub strong {
    color: #17202c;
    font-size: 14px;
}

.sc-monthly-fee-empty {
    padding: 18px;
    color: #64758a;
    text-align: center;
}

.sc-monthly-fee-payment-info {
    box-sizing: border-box;
    height: 100%;
    padding: 10px 16px;
    overflow: hidden;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sc-monthly-fee-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin-bottom: 6px;
    color: #4a5565;
    font-size: 12px;
}

.sc-monthly-fee-payment-info strong {
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-monthly-fee-payment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.sc-monthly-fee-loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #d8ccef;
    border-top-color: #7154ba;
    border-radius: 50%;
    animation: scMonthlyFeeSpin 0.85s linear infinite;
}

.sc-monthly-fee-loading-text {
    color: #4e5968;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

@keyframes scMonthlyFeeSpin {
    to {
        transform: rotate(360deg);
    }
}

.sc-monthly-fee-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.sc-monthly-fee-qr {
    width: 166px;
    height: 166px;
    padding: 8px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
}

.sc-monthly-fee-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sc-monthly-fee-qr-text,
.sc-monthly-fee-qr-unavailable {
    color: #4e5968;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.sc-monthly-fee-qr-unavailable {
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
}

.sc-monthly-fee-pay-link {
    justify-content: flex-start !important;
    margin-top: 8px;
}

.sc-monthly-fee-pay-link a {
    color: #0f66a7;
    font-weight: 800;
    text-decoration: none;
}

.sc-monthly-fee-config-error {
    box-sizing: border-box;
    height: 100%;
    padding: 18px;
    color: #4b5563;
    line-height: 1.6;
}

.sc-monthly-fee-config-error p {
    margin: 0 0 10px;
    font-weight: 800;
}

.sc-monthly-fee-config-error ul {
    margin: 0;
    padding-left: 20px;
}

.slot-detail-modern-template .webix_template {
    padding: 0;
    background: #f6f8fb;
}

.slot-detail-modern {
    box-sizing: border-box;
    min-height: 100%;
    padding: 18px 20px 22px;
    color: #1f2937;
}

.slot-detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 14px;
}

.slot-detail-photo-panel,
.slot-detail-summary,
.slot-detail-section,
.slot-detail-metric {
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
}

.slot-detail-photo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4f9 100%);
}

.slot-detail-photo {
    display: block;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(31, 41, 55, 0.12));
}

.slot-detail-summary {
    min-width: 0;
    padding: 20px 22px;
}

.slot-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #25615f;
    font-size: 12px;
    font-weight: 800;
}

.slot-detail-summary h2 {
    margin: 0;
    color: #111827;
    font-size: 26px;
    font-weight: 850;
    line-height: 1.28;
    word-break: break-word;
}

.slot-detail-banner-text {
    margin: 10px 0 0;
    color: #536173;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}

.slot-detail-location {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.slot-detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.slot-detail-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e9f2f0;
    color: #285b58;
    font-size: 12px;
    font-weight: 800;
}

.slot-detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.slot-detail-metric {
    min-height: 84px;
    padding: 13px 14px;
    box-sizing: border-box;
}

.slot-detail-metric-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.slot-detail-metric-value {
    color: #111827;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.15;
    word-break: break-word;
}

.slot-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.slot-detail-section {
    padding: 16px 18px;
}

.slot-detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 850;
}

.slot-detail-info-list {
    display: grid;
    gap: 2px;
}

.slot-detail-info-item {
    display: grid;
    grid-template-columns: 24px minmax(70px, 96px) minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid #edf2f7;
}

.slot-detail-info-item:last-child {
    border-bottom: 0;
}

.slot-detail-info-icon {
    color: #25615f;
    text-align: center;
    line-height: 20px;
}

.slot-detail-info-label {
    color: #718096;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
}

.slot-detail-info-value {
    min-width: 0;
    color: #263241;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    word-break: break-word;
}

.slot-detail-muted {
    margin-left: 6px;
    color: #8a97a8;
    font-size: 12px;
    font-weight: 700;
}

.slot-detail-description {
    color: #2d3748;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.slot-detail-description img,
.slot-detail-description iframe {
    max-width: 100%;
}

.slot-detail-description img {
    display: block;
    height: auto;
    margin: 10px 0;
}

.slot-detail-description p {
    margin: 0 0 10px;
}

.slot-detail-empty {
    padding: 22px;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    background: #f8fafc;
    color: #8a97a8;
    font-weight: 800;
    text-align: center;
}

.slot-detail-remark {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.slot-detail-remark strong {
    display: block;
    margin-bottom: 6px;
    color: #374151;
}

.slot-detail-remark p {
    margin: 0;
    white-space: pre-wrap;
}

@media (max-width: 820px) {
    .slot-detail-hero,
    .slot-detail-grid {
        grid-template-columns: 1fr;
    }

    .slot-detail-photo-panel {
        min-height: 220px;
    }
}
