/* =============================================================================
   product-desktop.css
   -----------------------------------------------------------------------------
   Desktop product-management parity layer for the `default` client-area theme.

   The default theme copies the reference theme's product markup
   (`<div class="sky-flex-container Product-table modern-service-page">` etc.)
   but never shipped the matching `.Product-table` rule system nor the custom
   properties it depends on. This file supplies exactly those pieces, extracted
   from `themes/clientarea/userCenter/static/css/module.css` (`.Product-table`
   block) and `inherit.css` (button gradients / border tokens).

   Scope: every rule is either a `.Product-table` descendant or a design token
   that the default theme does not define anywhere, so loading it site-wide is
   safe. Theme upgrades never overwrite assets_custom/.
   ============================================================================= */

/* --- design tokens missing from the default theme ------------------------- */
:root {
    --teal: #20b486;
    --borderS: #d8eee6;
    /* used by .server-area / .card-body.padding0 max-width calculations */
    --windowWidth: 100vw;
    --nav-l-w: 205px;
    /* button gradients used by status pills */
    --buttSuccess: linear-gradient(180deg, #00B610 0%, #009207 100%);
    --buttWarning: linear-gradient(180deg, #FFA800 0%, #FF8A00 100%);
    --buttDanger: linear-gradient(180deg, #FF4D4D 0%, #FF0000 100%);
}

/* --- product card / table view styles (moved out of includes/servicepc.tpl) --- */
        /* 视图切换按钮组 */
        .view-switch-btn-group {
            display: inline-flex;
            align-items: center;
            background: #eef4f1;
            border-radius: 6px;
            padding: 2px;
            margin-right: 12px;
        }

        .btn-view-toggle {
            border: none;
            background: transparent;
            padding: 5px 12px;
            font-size: 12px;
            font-weight: 500;
            color: #556961;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
        }

        .btn-view-toggle:hover {
            color: #20b486;
        }

        .btn-view-toggle.active {
            background: #ffffff;
            color: #20b486;
            font-weight: 600;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        }

        /* 卡片视图容器 */
        .cloud-card-view-wrapper {
            padding: 16px 20px;
        }

        .cloud-card-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            background: #f8fafc;
            border: 1px solid #edf2f7;
            border-radius: 6px;
            margin-bottom: 16px;
        }

        /* Bento 网格布局 */
        .bento-card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 16px;
        }

        /* 单个 1:1 参考图轻量云卡片 */
        .bento-server-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 16px 18px 14px;
            display: flex;
            flex-direction: column;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
            position: relative;
            box-sizing: border-box;
            overflow: hidden;
            min-width: 0;
        }

        .bento-server-card:hover {
            border-color: #20b486;
            box-shadow: 0 4px 16px rgba(32, 180, 134, 0.1);
        }

        .bento-server-card.is-selected {
            border-color: #20b486;
            background: #fafdfc;
            box-shadow: 0 0 0 1px #20b486, 0 4px 14px rgba(32, 180, 134, 0.12);
        }

        /* 卡片顶栏 */
        .bento-card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding-bottom: 12px;
            border-bottom: 1px solid #f1f5f9;
        }

        .bento-top-left {
            display: flex;
            align-items: flex-start;
            flex: 1;
            min-width: 0;
        }

        .bento-title-meta {
            flex: 1;
            min-width: 0;
        }

        .bento-name-link {
            font-size: 15px;
            font-weight: 700;
            color: #0f172a !important;
            line-height: 1.35;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bento-name-link:hover {
            color: #20b486 !important;
            text-decoration: none;
        }

        .bento-domain-text {
            font-size: 11.5px;
            color: #94a3b8;
            font-family: Consolas, monospace;
            margin-top: 3px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bento-top-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
            flex-shrink: 0;
        }

        .bento-type-badge {
            background: #e0f2fe;
            color: #0284c7;
            font-size: 10.5px;
            font-weight: 600;
            padding: 2px 7px;
            border-radius: 3px;
        }

        /* 备注按钮 - 调为亮眼醒目的琥珀橙金样式 */
        .bento-remark-btn {
            border: 1px dashed #f59e0b;
            color: #d97706;
            background: #fffbeb;
            font-size: 11px;
            font-weight: 500;
            padding: 2px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s ease;
            max-width: 130px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
        }

        .bento-remark-btn:hover {
            border-color: #d97706;
            color: #b45309;
            background: #fef3c7;
            box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
        }

        /* 列表备注胶囊 */
        .table-remark-capsule {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 2px 7px;
            border-radius: 4px;
            background: #fffbeb;
            color: #d97706;
            border: 1px dashed #fcd34d;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.18s ease;
            max-width: 140px;
        }

        .table-remark-capsule:hover {
            background: #fef3c7;
            color: #b45309;
            border-color: #f59e0b;
        }

        /* 卡片复选框热区与层级修复 */
        .bento-card-checkbox {
            position: relative;
            z-index: 5;
            min-width: 18px;
            min-height: 18px;
            margin-top: 2px;
            margin-right: 8px;
        }

        .bento-card-checkbox .custom-control-label {
            width: 18px;
            height: 18px;
            cursor: pointer;
            display: block;
        }

        .bento-card-checkbox .custom-control-label::before,
        .bento-card-checkbox .custom-control-label::after {
            top: 0;
            left: 0;
            cursor: pointer;
        }

        /* 暂停警告条 */
        .bento-suspend-card {
            margin: 8px 0 0 0 !important;
            max-width: 100% !important;
            width: 100% !important;
        }

        /* 属性清单行 */
        .bento-card-specs {
            padding: 12px 0 6px;
            display: flex;
            flex-direction: column;
            gap: 9px;
            flex: 1;
        }

        .bento-spec-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            line-height: 1.4;
        }

        .bento-spec-row .spec-label {
            color: #8b9bb0;
            font-size: 12px;
            flex-shrink: 0;
        }

        .bento-spec-row .spec-value {
            color: #334155;
            font-weight: 500;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 70%;
        }

        .bento-spec-row .spec-ip strong {
            color: #e11d48;
            font-size: 13px;
            font-family: Consolas, monospace;
        }

        .bento-ip-count {
            color: #2563eb;
            font-size: 11px;
            margin-left: 2px;
        }

        .bento-copy-btn {
            color: #94a3b8;
            cursor: pointer;
            font-size: 13px;
        }

        .bento-copy-btn:hover {
            color: #20b486;
        }

        /* 电源状态指示灯 */
        .bento-status-dot {
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-right: 4px;
            vertical-align: 1px;
        }

        .bento-status-dot.dot-active {
            background-color: #10b981;
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
        }

        .bento-status-dot.dot-suspended {
            background-color: #ef4444;
            box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
        }

        .bento-status-dot.dot-pending,
        .bento-status-dot.dot-unpaid {
            background-color: #f59e0b;
        }

        .spec-power .bento-status-text {
            color: #10b981;
            font-weight: 600;
            margin-right: 6px;
        }


        /* 仿开关组件 */
        .bento-fake-switch {
            display: inline-block;
            width: 32px;
            height: 18px;
            border-radius: 9px;
            background: #e2e8f0;
            position: relative;
            vertical-align: middle;
        }

        .bento-fake-switch i {
            display: block;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #ffffff;
            position: absolute;
            top: 2px;
            left: 2px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
            transition: all 0.2s;
        }

        .bento-fake-switch.on {
            background: #20b486;
        }

        .bento-fake-switch.on i {
            left: 16px;
        }

        /* 监控条：上下双行纵向堆叠的高颜值紧凑微进度条 (完美杜绝超框溢出) */
        .bento-card-monitor {
            margin: 8px 0 10px;
            padding: 8px 11px;
            background: #f8fafc;
            border-radius: 6px;
            border: 1px solid #edf2f7;
            display: flex;
            flex-direction: column;
            gap: 7px;
            width: 100%;
            box-sizing: border-box;
            overflow: hidden;
        }

        .bento-card-monitor .service-resource-row {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 4px;
            box-sizing: border-box;
            min-width: 0;
        }

        .bento-card-monitor .monitor-capsule-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11.5px;
            line-height: 1.3;
            width: 100%;
            box-sizing: border-box;
            min-width: 0;
        }

        .bento-card-monitor .service-resource-label {
            color: #64748b;
            font-weight: 600;
            font-size: 11.5px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
        }

        .bento-card-monitor .service-resource-cpu .service-resource-label::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #10b981;
            margin-right: 5px;
        }

        .bento-card-monitor .service-resource-memory .service-resource-label::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #6366f1;
            margin-right: 5px;
        }

        .bento-card-monitor .service-resource-value {
            color: #334155;
            font-size: 11px;
            font-family: Consolas, -apple-system, BlinkMacSystemFont, monospace;
            font-weight: 600;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 75%;
        }

        .bento-card-monitor .service-resource-cpu .service-resource-value {
            color: #059669;
        }

        .bento-card-monitor .service-resource-memory .service-resource-value {
            color: #4f46e5;
        }

        .bento-card-monitor .service-resource-track {
            width: 100%;
            height: 5px;
            background: #e2e8f0;
            border-radius: 3px;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
        }

        .bento-card-monitor .service-resource-track i {
            display: block;
            height: 100%;
            background: linear-gradient(90deg, #34d399, #10b981);
            border-radius: 3px;
            transition: width 0.35s ease;
            width: 0;
        }

        .bento-card-monitor .service-resource-memory .service-resource-track i {
            background: linear-gradient(90deg, #818cf8, #6366f1);
        }

        .bento-card-monitor .service-resource-row.is-danger .service-resource-track i {
            background: linear-gradient(90deg, #fb7185, #e11d48) !important;
        }

        .bento-card-monitor .service-resource-row.is-danger .service-resource-value {
            color: #e11d48 !important;
        }

        /* 卡片底部栏 */
        .bento-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
            margin-top: auto;
        }

        .bento-footer-left {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        /* 卡片状态徽章：与列表状态体系同步 */
        .bento-run-pill {
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 3px;
            width: fit-content;
            line-height: 1.35;
        }

        .bento-status-pill.bento-status-active,
        .bento-status-pill.bento-status-paid,
        .bento-status-pill.bento-status-success {
            background: #ecfdf5;
            color: #059669;
            border: 1px solid #a7f3d0;
        }

        .bento-status-pill.bento-status-suspended {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .bento-status-pill.bento-status-pending,
        .bento-status-pill.bento-status-unpaid {
            background: #fffbeb;
            color: #d97706;
            border: 1px solid #fde68a;
        }

        .bento-status-pill.bento-status-cancelled,
        .bento-status-pill.bento-status-deleted,
        .bento-status-pill.bento-status-refunded {
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid #cbd5e1;
        }

        .bento-expire-info {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11.5px;
        }

        .bento-days-left {
            font-weight: 700;
            color: #059669;
        }

        .bento-days-left.text-warning {
            color: #d97706 !important;
        }

        .bento-days-left.text-danger {
            color: #dc2626 !important;
        }

        .bento-expire-date {
            font-size: 11px;
        }

        .bento-footer-right {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .bento-btn-manage {
            background: #ffffff;
            border: 1px solid #cbd5e1;
            color: #475569;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 3px;
            transition: all 0.15s;
        }

        .bento-btn-manage:hover {
            border-color: #20b486;
            color: #20b486;
            background: #f0fdf9;
        }

        .bento-btn-renew {
            background: #2563eb;
            border: 1px solid #2563eb;
            color: #ffffff !important;
            font-size: 12px;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: 3px;
            transition: all 0.15s;
        }

        .bento-btn-renew:hover {
            background: #1d4ed8;
            border-color: #1d4ed8;
        }

        /* 列表表格视图微卡片样式 */
        .modern-cloud-table {
            border-collapse: separate !important;
            border-spacing: 0 4px !important;
            margin: 6px 0 !important;
            background: transparent !important;
            width: 100% !important;
        }

        .modern-cloud-table thead th {
            background-color: #f7faf9 !important;
            color: #475569 !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            border-top: none !important;
            border-bottom: 1px solid #e6f0ec !important;
            padding: 12px 14px !important;
        }

        .modern-cloud-table thead th.checkbox {
            padding-left: 16px !important;
        }

        .modern-cloud-table tbody tr.cloud-row-item {
            background: #ffffff !important;
            transition: all 0.2s ease !important;
            border-bottom: 1px solid #edf4f1 !important;
        }

        .modern-cloud-table tbody tr.cloud-row-item:hover {
            background: #f4faf7 !important;
            box-shadow: inset 3px 0 0 #20b486, 0 2px 8px rgba(32, 180, 134, 0.08) !important;
        }

        .modern-cloud-table tbody tr td {
            padding: 14px 14px !important;
            border-top: 1px solid #f1f6f4 !important;
            border-bottom: 1px solid #f1f6f4 !important;
            vertical-align: middle !important;
        }

        .modern-cloud-table tbody tr td:first-child {
            padding-left: 16px !important;
            border-top-left-radius: 6px !important;
            border-bottom-left-radius: 6px !important;
        }

        .modern-cloud-table tbody tr td:last-child {
            border-top-right-radius: 6px !important;
            border-bottom-right-radius: 6px !important;
        }

        .cloud-cell-instance {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .instance-title-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .instance-main-name {
            color: #0f172a !important;
            font-size: 14.5px !important;
            transition: color 0.18s ease;
        }

        .instance-main-name:hover {
            color: #20b486 !important;
            text-decoration: none !important;
        }

        .instance-sub-meta {
            font-size: 12px;
            color: #64748b !important;
            display: flex;
            align-items: center;
        }

        .instance-sub-meta .hostname-text {
            color: #475569;
            font-family: Consolas, monospace;
        }

        .table-remark-capsule {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 2px 7px;
            border-radius: 4px;
            background: #f1f5f9;
            color: #64748b;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.18s ease;
            max-width: 140px;
        }

        .table-remark-capsule .remark-content {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .table-remark-capsule:hover {
            background: #e8f8f2;
            color: #15966d;
        }

        .cloud-compact-monitor {
            margin-top: 6px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            max-width: 200px;
        }

        .cloud-compact-monitor .service-resource-row {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
        }

        .cloud-compact-monitor .service-resource-label {
            width: 32px;
            color: #64748b;
            font-weight: 500;
            flex-shrink: 0;
        }

        .cloud-compact-monitor .service-resource-track {
            flex: 1;
            height: 4px;
            background: #e2e8f0;
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .cloud-compact-monitor .service-resource-track i {
            display: block;
            height: 100%;
            background: #20b486;
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .cloud-compact-monitor .service-resource-memory .service-resource-track i {
            background: #6366f1;
        }

        .cloud-compact-monitor .service-resource-value {
            width: 48px;
            text-align: right;
            color: #475569;
            font-family: monospace;
            font-size: 10.5px;
            flex-shrink: 0;
        }

        .cloud-status-cell {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .status-badge-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .status-badge-row .badge-pill {
            font-size: 11.5px !important;
            padding: 3px 8px !important;
            border-radius: 12px !important;
            font-weight: 600 !important;
        }

        .status-badge-row .dots {
            width: 10px !important;
            height: 10px !important;
            position: static !important;
            border-radius: 50% !important;
            display: inline-block !important;
            cursor: pointer;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) !important;
        }

        .table-suspend-box {
            font-size: 11px !important;
            margin-top: 4px !important;
            max-width: 160px !important;
        }

        .cloud-ip-cell {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px;
        }

        .cloud-ip-cell .iptd,
        .cloud-ip-cell .nat-address {
            color: #e11d48 !important;
            font-size: 13.5px !important;
            font-family: Consolas, monospace !important;
        }

        .copy-icon-btn {
            color: #94a3b8;
            cursor: pointer;
            font-size: 14px;
            padding: 2px;
            transition: color 0.15s;
        }

        .copy-icon-btn:hover {
            color: #20b486 !important;
        }

        .cloud-expire-cell {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .expire-date-text {
            font-size: 12.5px;
            color: #334155;
            font-family: Consolas, monospace;
        }

        .expiration-badge {
            font-size: 10.5px !important;
            font-weight: 600 !important;
        }

        .cloud-price-cell {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .price-val {
            font-size: 13px;
            color: #1e293b;
        }

        .badge-soft-success {
            background-color: #ecfdf5;
            color: #059669;
            border: 1px solid #a7f3d0;
            font-size: 10px;
            padding: 2px 5px;
            border-radius: 3px;
            width: fit-content;
        }

        .badge-soft-info {
            background-color: #eff6ff;
            color: #2563eb;
            border: 1px solid #bfdbfe;
            font-size: 10px;
            padding: 1px 4px;
            border-radius: 3px;
        }

        .cloud-os-cell .os-wrap {
            max-width: 140px;
        }

        .cloud-os-cell .os-name-span {
            font-size: 12px;
            color: #475569;
        }

        .cloud-detail-btn {
            background-color: #20b486 !important;
            border-color: #20b486 !important;
            color: #fff !important;
            border-radius: 5px !important;
            padding: 5px 12px !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            box-shadow: 0 2px 5px rgba(32, 180, 134, 0.25) !important;
            display: inline-flex !important;
            align-items: center !important;
            transition: all 0.2s ease !important;
        }

        .cloud-detail-btn:hover {
            background-color: #15966d !important;
            border-color: #15966d !important;
            box-shadow: 0 4px 8px rgba(32, 180, 134, 0.35) !important;
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .bento-card-grid {
                grid-template-columns: 1fr;
            }
        }

/* --- reference `.Product-table` system ----------------------------------- */
.Product-table {
    flex-direction: column;
}

.Product-table .table-responsive {
    box-shadow: 0 2px 4px 0 rgba(54, 58, 80, 0.32);
}

.Product-table .bg-light {
    background-color: #ffffff !important;
    border-color: #E1E6F0;
}

.Product-table .operationButtons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
}

.Product-table .operationButtons.not-allowed .batch {
    background-color: #fff;
    border-color: var(--borderS);
    color: #999;
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

.Product-table .operationButtons .renew.not-allowed {
    background-color: #fff;
    border-color: var(--borderS);
    color: #999;
    opacity: 0.8;
}

.Product-table .operationButtons .btn {
    font-weight: 500;
}

.Product-table .operationButtons .btn.btn-primary {
    padding: 0 10px;
    height: calc(32px - 2px);
    line-height: calc(32px - 2px);
    color: #fff;
    opacity: 1;
}

.Product-table .form-control {
    height: calc(32px + 2px) !important;
    line-height: calc(32px + 2px) !important;
}

.Product-table .search-box .search-icon {
    line-height: calc(32px + 2px);
    font-size: 20px;
}

.Product-table .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    min-width: 150px;
    width: 100%;
    max-width: 220px;
}

.Product-table .dropdown-toggle.btn-default {
    padding: 0 8px;
    border-color: #ced4da !important;
}

.Product-table .bootstrap-select::after {
    top: calc(32px / 2 - 1px);
}

.Product-table .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    overflow: hidden;
    line-height: 32px;
    font-size: 12px;
    color: var(--teal);
    font-weight: 500;
    padding-right: 12px;
}

.Product-table .bootstrap-select .dropdown-menu li a {
    height: 36px;
    line-height: 36px;
    padding: 0px 10px;
}

.Product-table .table-container.tabs_table {
    box-shadow: 0 2px 4px 0 rgba(54, 58, 80, 0.32);
    background: #fff;
}

.Product-table .server-area {
    width: 100%;
    height: 45px;
    background-color: #e7eaef;
    display: flex;
    overflow: hidden;
    overflow-x: auto;
    max-width: calc(var(--windowWidth) - var(--nav-l-w) - 40px);
}

.Product-table .server-area .server-area-item {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.4);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 5px;
    box-sizing: border-box;
}

.Product-table .server-area .server-area-item.active {
    background-color: #fff;
}

.Product-table .server-area .server-area-item:last-child:before {
    display: none;
}

.Product-table .server-area .server-area-item:before {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 100%;
    background: #cfd5de;
    top: 0;
}

.Product-table .server-area .server-area-item i {
    margin-right: 5px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.8);
}

.Product-table .server-area .server-area-item span {
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.9);
}

.Product-table .card-body.padding0 {
    max-width: calc(var(--windowWidth) - var(--nav-l-w) - 40px);
}

.Product-table .table {
    background: #f7f8fa;
    border: none;
}

.Product-table .table .custom-control {
    min-height: 30px;
}

.Product-table .table .pointer span:nth-child(1) {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
}

.Product-table .table .pointer span:nth-child(1) i {
    font-size: 16px;
    margin-right: 2px;
}

.Product-table .table td {
    padding: 0.5rem 0.75rem;
}

.Product-table .table td,
.Product-table .table td .text-dark * {
    font-weight: 400;
}

.Product-table .table td:hover,
.Product-table .table td .text-dark *:hover {
    color: var(--primary);
}

.Product-table .table .custom-control-input:disabled ~ .custom-control-label {
    cursor: not-allowed;
    pointer-events: none;
}

.Product-table .table .custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #ced4da;
    border-color: #adb5bd;
}

.Product-table .table .custom-control-input:disabled ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.Product-table .table .systemOs {
    max-width: 150px;
    white-space: normal;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Product-table .table .productexpire {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.Product-table .table .operation .btn {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.Product-table .table .operation .btn i {
    font-size: 14px;
}

.Product-table .table .productIstatus {
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
}

.Product-table .table .badge-pill {
    border-radius: 1px;
}

.Product-table .table .sk-status-suspended {
    background: var(--buttDanger);
    border-color: #e31519;
}

.Product-table .table .sk-status-unpaid,
.Product-table .table .sk-status-pending {
    background: var(--buttWarning);
    border-color: #fca426;
}

.Product-table .table .sk-status-deleted {
    background: var(--buttDanger);
    border-color: #2d2d2d;
}

.Product-table .table .sk-status-active,
.Product-table .table .sk-status-paid,
.Product-table .table .sk-status-refunded,
.Product-table .table .sk-status-cancelled,
.Product-table .table .sk-status-success {
    background: var(--buttSuccess);
    border-color: #3fbf70;
}

.Product-table .table .sk-status-refunded {
    background-color: #999999;
    border-color: #999999;
}

.Product-table .table .sk-status-cancelled {
    background-color: #959799;
}

.Product-table .table .sk-outline-status-suspended {
    color: #e31519;
    border: 1px solid #e31519;
}

.Product-table .table .sk-outline-status-unpaid,
.Product-table .table .sk-outline-status-pending {
    color: #fca426;
    border: 1px solid #fca426;
}

.Product-table .table .sk-outline-status-deleted {
    color: #2d2d2d;
    border: 1px solid #2d2d2d;
}

.Product-table .table .sk-outline-status-active,
.Product-table .table .sk-outline-status-paid,
.Product-table .table .sk-outline-status-refunded,
.Product-table .table .sk-outline-status-cancelled,
.Product-table .table .sk-outline-status-success {
    color: #3fbf70;
    border: 1px solid #3fbf70;
}

.Product-table .table .sk-outline-status-refunded {
    color: #999999;
    border: 1px solid #999999;
}

.Product-table .table .sk-outline-status-cancelled {
    color: #959799;
    border: 1px solid #959799;
}

.Product-table .table .dots {
    cursor: pointer;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #fff;
    position: absolute;
    top: 10px;
    left: 6px;
}

.Product-table .table .on_color {
    background-color: #3fbf70;
}

.Product-table .table .ing_color {
    background-color: #f5f5f5;
}

.Product-table .table .off_color {
    background-color: #e31519;
}

.Product-table .table .unknown_color {
    background-color: #c0c0c0;
}

.Product-table .table .error_color {
    background-color: #959799;
}

.Product-table .table .not_support_color {
    background-color: #2d2d2d;
}

.Product-table .sky-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.Product-table .sky-table-footer .sky-table-quantity {
    font-size: 12px;
    vertical-align: middle;
    color: rgba(0, 0, 0, 0.4);
}

.Product-table .sky-table-footer .table-pageinfo .paging {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    gap: 10px;
}

.Product-table .sky-table-footer .table-pageinfo .paging .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    min-width: 50px;
    width: 100%;
    max-width: 220px;
}

.Product-table .sky-table-footer .table-pageinfo .paging .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    line-height: 27px;
}

.Product-table .sky-table-footer .table-pageinfo .paging .bootstrap-select::after {
    top: 14px;
}


/* --- default-theme glue --------------------------------------------------- */
/* The default markup keeps the reference class names, but the batch toolbar
   sits inside the page header rather than inside .Product-table. Mirror the
   reference toolbar layout so the buttons line up identically. */
.modern-service-page .operationButtons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
}

.modern-service-page .operationButtons .btn {
    font-weight: 500;
}

/* keep the card/table view switcher aligned with the reference header row */
.modern-service-page .view-switch-btn-group {
    display: inline-flex;
    align-items: center;
    background: #eef4f1;
    border-radius: 6px;
    padding: 2px;
    margin-right: 12px;
}
