/* =========================
   ROOT WRAPPER (VIKTIG!)
========================= */
.ca-hosting {
    font-family: "DM Sans", sans-serif;
}

/* =========================
   BREADCRUMB
========================= */
.ca-hosting .ca-breadcrumb {
    font-size: 15px;
    margin-bottom: 15px;
}

.ca-hosting .ca-breadcrumb a {
    color: #1D1E20;
    text-decoration: none;
    transition-duration: 350ms
}

.ca-hosting .ca-breadcrumb a:hover {
    color: #673DE6;
}

.ca-hosting .separator {
    margin: 0 6px;
}

/* =========================
   TITLES
========================= */
.ca-hosting .ca-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ca-hosting .ca-text {
    font-size: 15px;
    margin-bottom: 15px;
}

/* =========================
   NO DATA
========================= */
.ca-hosting .ca-no-data {
    background: #fff;
    border: 1px solid #d5dfff;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 10px;
}

/* =========================
   TABLE (DESKTOP)
========================= */
.ca-hosting .ca-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d5dfff;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ca-hosting .ca-table thead {
    background: #fafbff;
}

.ca-hosting .ca-table th,
.ca-hosting .ca-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #d5dfff;
    font-size: 15px;
    text-align: left;
    color: #333;
}

/* ✅ FIX: sista raden i desktop */
.ca-hosting .ca-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================
   STATUS
========================= */
.ca-hosting .ca-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ca-hosting .ca-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ca-hosting .ca-status.active .ca-status-dot {
    background: #7ddf7d;
}

/* =========================
   LINKS
========================= */
.ca-hosting .ca-link {
    color: #673DE6;
    text-decoration: none;
}

.ca-hosting .ca-link:hover {
    color: #5025D1;
}

/* =========================
   MANAGE BUTTON
========================= */
.ca-hosting .ca-manage {
    text-align: right;
}

.ca-hosting .ca-btn {
    background: #673DE6;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: 350ms ease-in-out;
}

.ca-hosting .ca-btn:hover {
    background: #5025D1;
}

/* =========================
   MOBILE (CARD MODE)
========================= */
@media (max-width: 768px) {

    .ca-hosting .ca-table {
        border: none;
        background: none;
    }

    .ca-hosting .ca-table thead {
        display: none;
    }

    .ca-hosting .ca-table tbody {
        display: block;
    }
	
	.ca-hosting .ca-table tbody tr:last-child td {
    border-bottom: 1px solid #d5dfff;
	}

	.ca-hosting .ca-table tbody tr td:last-child  {
    border-bottom: none !important;
	}

    .ca-hosting .ca-table tr {
        display: block;
        border: 1px solid #d5dfff;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        background: #fff;
    }

    /* ALLA cells har interna borders */
    .ca-hosting .ca-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid #d5dfff;
    }

    /* ❗ KRITISK FIX: sista TD (knappen) ska inte ha border */
    .ca-hosting .ca-table td tr:last-child {
        border-bottom: none !important;
    }

    .ca-hosting .ca-manage {
        text-align: left;
        padding-top: 10px;
    }

    .ca-hosting .ca-table tr:last-child {
        margin-bottom: 0;
    }

    .ca-hosting .ca-table::before {
        content: attr(data-mobile-title);
        display: block;
        font-size: 16px;
        font-weight: 600;
        background: #fafbff;
        border: 1px solid #d5dfff;
        border-bottom: none;
        padding: 14px 16px;
        border-radius: 8px 8px 0 0;
        margin-bottom: -8px;
    }
}