/* =========================================================
   CRM HOSTING — PREMIUM TABLE
   Same visual language as CRM Domains
   ========================================================= */

.crm-hosting-wrapper {
    width: 100%;
}

.crm-hosting-wrapper .crm-hosting-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
}

.crm-hosting-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.crm-hosting-table thead th {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 16px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.crm-hosting-table th,
.crm-hosting-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

.crm-hosting-table tbody td {
    padding: 16px 14px;
    font-size: 14px;
    height: 70px;
}

.crm-hosting-table .crm-hosting-name {
    display: inline-block;
    direction: rtl;
    color: #ffffff;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.2px;
    transition: 0.2s ease;
}

.crm-hosting-table .crm-hosting-name:hover {
    color: #c4b5fd;
}

.crm-hosting-table .crm-hosting-provider-small {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 11px;
    white-space: nowrap;
}

.crm-hosting-table .crm-hosting-client-link {
    display: inline-block;
    color: #c4b5fd;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}

.crm-hosting-table .crm-hosting-client-link:hover {
    color: #ffffff;
}

.crm-hosting-table .crm-hosting-plan {
    color: #d1d5db;
    font-weight: 500;
}

.crm-hosting-table .crm-hosting-date {
    direction: ltr;
    white-space: nowrap;
    color: #d1d5db;
}

.crm-hosting-table .crm-hosting-price {
    display: inline-block;
    direction: ltr;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.crm-hosting-table .crm-hosting-price small {
    margin-right: 3px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
}

.crm-hosting-table .crm-hosting-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.crm-hosting-table .crm-hosting-status-active {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.crm-hosting-table .crm-hosting-status-expiring {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.crm-hosting-table .crm-hosting-status-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.crm-hosting-table .crm-hosting-status-unknown {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.crm-hosting-table .crm-hosting-days {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 10px;
}

.crm-hosting-table .crm-hosting-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.crm-hosting-table .crm-hosting-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.crm-hosting-table .crm-hosting-actions a:hover {
    transform: translateY(-1px);
}

.crm-hosting-table .crm-hosting-actions .crm-edit {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

.crm-hosting-table .crm-hosting-actions .crm-edit:hover {
    background: rgba(139, 92, 246, 0.20);
    color: #ffffff;
}

.crm-hosting-table .crm-hosting-actions .crm-view {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.crm-hosting-table .crm-hosting-actions .crm-view:hover {
    background: rgba(59, 130, 246, 0.20);
    color: #ffffff;
}

.crm-hosting-table tbody tr {
    transition: background 0.2s ease;
}

.crm-hosting-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.crm-hosting-table tbody td[colspan] {
    text-align: center !important;
    padding: 45px 20px;
    color: #9ca3af;
}

.crm-hosting-wrapper .crm-hosting-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.crm-hosting-wrapper .crm-hosting-table-wrapper::-webkit-scrollbar-track {
    background: #0f011a;
    border-radius: 10px;
}

.crm-hosting-wrapper .crm-hosting-table-wrapper::-webkit-scrollbar-thumb {
    background: #3b3150;
    border-radius: 10px;
}

.crm-hosting-wrapper .crm-hosting-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5a4b70;
}

.crm-hosting-table td:first-child {
    direction: rtl;
    text-align: center !important;
}

@media (max-width: 768px) {
    .crm-hosting-table {
        min-width: 1100px;
    }

    .crm-hosting-table thead th,
    .crm-hosting-table tbody td {
        padding: 13px 10px;
    }
}
