:root {
    --cx-primary:#af2400;
    --cx-primary-2:#d74b1f;
    --cx-secondary:#2c3e55;
    --cx-secondary-2:#405672;
    --cx-text:#14202d;
    --cx-muted:#6f7c89;
    --cx-border:rgba(44,62,85,.12);
    --cx-bg:#f3f5f8;
    --cx-white:#fff;
    --cx-shadow:0 16px 40px rgba(24,39,58,.08);
    --cx-shadow-hover:0 20px 50px rgba(175,36,0,.14);
    --cx-radius-xl:24px;
    --cx-radius-lg:18px;
    --cx-radius-md:14px;
    --cx-radius-sm:12px;
}

.btm-vtm-page {
    background: var(--cx-bg);
    min-height: 100%;
    padding: 20px;
	margin-left: 280px;
}

.btm-vtm-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: var(--cx-text);
    font-size: 14px;
}

.btm-vtm-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.btm-vtm-heading h2 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--cx-text);
}

.btm-vtm-heading p {
    margin: 0;
    color: var(--cx-muted);
    font-size: 14px;
    line-height: 1.5;
}

.btm-vtm-btn-primary,
.btm-vtm-btn-reset,
.btm-vtm-btn-light,
.btm-vtm-icon-btn {
    border: none;
    outline: none;
    cursor: pointer;
    transition: .25s ease;
    font-weight: 700;
}

.btm-vtm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px !important;
    height: 50px;
    border-radius: var(--cx-radius-md);
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-primary-2));
    color: var(--cx-white);
    box-shadow: var(--cx-shadow);
    white-space: nowrap;
}

.btm-vtm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--cx-shadow-hover);
}

.btm-vtm-btn-light {
    height: 46px;
    padding: 0 18px;
    border-radius: var(--cx-radius-sm);
    background: #eef2f6;
    color: var(--cx-secondary);
}

.btm-vtm-btn-light:hover {
    background: #e4eaf1;
}

.btm-vtm-filter-card,
.btm-vtm-table-card {
    background: var(--cx-white);
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-xl);
    box-shadow: var(--cx-shadow);
}

.btm-vtm-filter-card {
    padding: 16px;
    margin-bottom: 18px;
}

.btm-vtm-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 14px;
    align-items: end;
}

.btm-vtm-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cx-text);
}

.btm-vtm-input-wrap {
    position: relative;
}

.btm-vtm-input-wrap .dashicons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cx-muted);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.btm-vtm-input-wrap input,
.btm-vtm-form-group input,
.btm-vtm-form-group textarea {
    width: 100% !important;
    border: 1px solid var(--cx-border) !important;
    background: #fbfcfd !important;
    border-radius: 14px !important;
    color: var(--cx-text) !important;
    box-sizing: border-box !important;
	margin-bottom: 0 ;
    transition: .2s ease;
    font-size: 14px !important;
}

.btm-vtm-input-wrap input {
    height: 46px !important;
    padding: 0 14px 0 42px !important;
}

.btm-vtm-form-group input {
    height: 48px !important;
    padding: 0 14px !important;
}

.btm-vtm-form-group textarea {
    padding: 14px;
    resize: vertical;
    min-height: 120px;
}

.btm-vtm-input-wrap input:focus,
.btm-vtm-form-group input:focus,
.btm-vtm-form-group textarea:focus {
    border-color: rgba(175,36,0,.35);
    box-shadow: 0 0 0 4px rgba(175,36,0,.08);
    background: var(--cx-white);
}

.btm-vtm-btn-reset {
    height: 46px;
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-primary-2));
    color: var(--cx-white);
    box-shadow: 0 12px 24px rgba(175,36,0,.18);
}

.btm-vtm-btn-reset:hover {
    transform: translateY(-1px);
}

.btm-vtm-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
    color: var(--cx-secondary);
    font-size: 14px;
}

.btm-vtm-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.btm-vtm-legend .dot.active {
    background: #2ebf64;
}

.btm-vtm-legend .dot.idle {
    background: #4a84e8;
}

.btm-vtm-table-wrap {
    overflow-x: auto;
}

.btm-vtm-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.btm-vtm-table thead th {
    padding: 18px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
    color: #27476b;
    background: #f8fafc;
    border-bottom: 1px solid var(--cx-border);
    white-space: nowrap;
}

.btm-vtm-table thead th:first-child {
    border-top-left-radius: var(--cx-radius-xl);
}

.btm-vtm-table thead th:last-child {
    border-top-right-radius: var(--cx-radius-xl);
}

.btm-vtm-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--cx-border);
    vertical-align: middle;
    background: var(--cx-white);
    color: var(--cx-text);
}

.btm-vtm-table tbody tr:last-child td {
    border-bottom: none;
}

.btm-vtm-table tbody tr:hover td {
    background: #fcfdff;
}

.btm-vtm-status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.btm-vtm-status-dot.is-active {
    background: #2ebf64;
}

.btm-vtm-status-dot.is-idle {
    background: #4a84e8;
}

.btm-vtm-badge-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(44,62,85,.12);
    background: #fff;
    color: #27476b;
    font-size: 13px;
    font-weight: 600;
}

.btm-vtm-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btm-vtm-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f3f6fa;
    color: var(--cx-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btm-vtm-icon-btn:hover {
    background: #e8eef5;
}

.btm-vtm-icon-btn.is-danger {
    background: rgba(175,36,0,.08);
    color: var(--cx-primary);
}

.btm-vtm-icon-btn.is-danger:hover {
    background: rgba(175,36,0,.14);
}

.btm-vtm-desc-cell {
    max-width: 280px;
    color: var(--cx-muted);
    line-height: 1.5;
    white-space: normal;
}

.btm-vtm-empty {
    text-align: center;
    padding: 24px !important;
    color: var(--cx-muted);
}

.w-status {
    width: 36px;
}

.w-actions {
    width: 120px;
}

.btm-vtm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 20px;
    border-top: 1px solid var(--cx-border);
    background: var(--cx-white);
    border-bottom-left-radius: var(--cx-radius-xl);
    border-bottom-right-radius: var(--cx-radius-xl);
}

.btm-vtm-pagination-info {
    color: var(--cx-muted);
    font-size: 14px;
    line-height: 1.5;
}

.btm-vtm-pagination-info strong {
    color: var(--cx-text);
}

.btm-vtm-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btm-vtm-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--cx-border);
    background: var(--cx-white);
    color: var(--cx-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.btm-vtm-page-btn:hover {
    border-color: rgba(175,36,0,.22);
    color: var(--cx-primary);
    background: rgba(175,36,0,.04);
}

.btm-vtm-page-btn.is-active {
    background: linear-gradient(135deg, var(--cx-primary), var(--cx-primary-2));
    color: var(--cx-white);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(175,36,0,.16);
}

.btm-vtm-page-btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.btm-vtm-page-dots {
    color: var(--cx-muted);
    padding: 0 4px;
    font-weight: 700;
}

.btm-vtm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.btm-vtm-modal.is-open {
    display: block;
}

.btm-vtm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,32,45,.42);
    backdrop-filter: blur(2px);
}

.btm-vtm-modal-dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 760px;
    margin: 60px auto;
    background: var(--cx-white);
    border-radius: var(--cx-radius-xl);
    box-shadow: 0 28px 70px rgba(20,32,45,.18);
    overflow: hidden;
}

.btm-vtm-modal-header,
.btm-vtm-modal-footer {
    padding: 18px 22px;
    border-bottom: 1px solid var(--cx-border);
}

.btm-vtm-modal-footer {
    border-bottom: none;
    border-top: 1px solid var(--cx-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btm-vtm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btm-vtm-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--cx-text);
}

.btm-vtm-modal-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #f4f6f9;
    color: var(--cx-secondary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.btm-vtm-modal-body {
    padding: 22px;
}

.btm-vtm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.btm-vtm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cx-text);
}

.btm-vtm-form-group.full {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .btm-vtm-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .btm-vtm-filter-grid {
        grid-template-columns: 1fr;
    }

    .btm-vtm-form-grid {
        grid-template-columns: 1fr;
    }

    .btm-vtm-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .btm-vtm-heading h2 {
        font-size: 18px;
    }

    .btm-vtm-filter-card,
    .btm-vtm-table-card {
        border-radius: 18px;
    }

    .btm-vtm-modal-dialog {
        margin: 20px auto;
    }

    .btm-vtm-modal-body,
    .btm-vtm-modal-header,
    .btm-vtm-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btm-vtm-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .btm-vtm-pagination-links {
        justify-content: center;
    }

    .btm-vtm-pagination-info {
        text-align: center;
    }
}