/* =========================================================
   SKILLS CRM — DASHBOARD RENEWALS
   Premium renewal list
   Matches CRM Domains / Hosting visual language
   ========================================================= */

.crm-dashboard-renewals {
    width: 100%;
    direction: rtl;
    color: #ffffff;
}

.crm-dashboard-renewals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.crm-renewal-item {
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(100px, .8fr) auto auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 62px;
    padding: 10px 14px;
    box-sizing: border-box;
    background: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.crm-renewal-item:hover {
    background: #252525;
    border-color: #514866;
    transform: translateY(-1px);
}

/* Main service */
.crm-renewal-main {
    min-width: 0;
    text-align: right;
}

.crm-renewal-main strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-renewal-main span {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
}

/* Client */
.crm-renewal-client {
    min-width: 0;
    text-align: center;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-renewal-client a {
    color: #c4b5fd;
    text-decoration: none;
    transition: color .2s ease;
}

.crm-renewal-client a:hover {
    color: #ffffff;
}

/* Date */
.crm-renewal-date {
    direction: ltr;
    text-align: center;
    white-space: nowrap;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 500;
}

/* Status / days */
.crm-renewal-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    min-height: 30px;
    padding: 6px 11px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

/* Urgent */
.crm-renewal-status-urgent {
    background: rgba(245, 158, 11, .12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, .18);
}

/* Soon */
.crm-renewal-status-soon {
    background: rgba(139, 92, 246, .12);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, .18);
}

/* Expired */
.crm-renewal-status-expired {
    background: rgba(239, 68, 68, .12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .18);
}

/* Action */
.crm-renewal-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-renewal-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 32px;
    padding: 6px 11px;
    box-sizing: border-box;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.crm-renewal-action a::before {
    content: "◉";
    margin-left: 5px;
    font-size: 10px;
}

.crm-renewal-action a:hover {
    background: rgba(139, 92, 246, .20);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Empty */
.crm-dashboard-renewals-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(139, 92, 246, .05);
    border: 1px dashed rgba(196, 181, 253, .22);
    border-radius: 10px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .crm-renewal-item {
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
    }

    .crm-renewal-main {
        text-align: right;
    }

    .crm-renewal-client,
    .crm-renewal-date {
        text-align: center;
    }

    .crm-renewal-days,
    .crm-renewal-action {
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .crm-renewal-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .crm-renewal-main,
    .crm-renewal-client,
    .crm-renewal-date {
        text-align: center;
    }

    .crm-renewal-main strong {
        white-space: normal;
    }

    .crm-renewal-days,
    .crm-renewal-action {
        justify-self: center;
    }
}

/* =========================================================
   SKILLS CRM — DASHBOARD COUNT CARDS
   Unified styling for Clients / Domains / Hosting / Services
   ========================================================= */

.crm-dashboard-count {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    box-sizing: border-box;
}

.crm-dashboard-count strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    padding: 12px 16px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.crm-dashboard-count strong::after {
    content: "";
    display: block;
}

/* Elementor cards containing the count shortcode */
.crm-dashboard-count-wrap {
    width: 100%;
}

/* Keep the count visually clean inside compact dashboard cards */
.elementor-widget-shortcode .crm-dashboard-count {
    margin: 0;
}

/* Light-mode compatibility if the CRM theme toggles it */
.crm-dashboard-light .crm-dashboard-count strong {
    color: #171717;
}

/* =========================================================
   END COUNT CARDS
   ========================================================= */

/* =========================================================
   SKILLS CRM — DASHBOARD RECENT CLIENTS
   ========================================================= */

.crm-dashboard-recent-clients {
    width: 100%;
    direction: rtl;
    color: #ffffff;
}

.crm-dashboard-recent-clients-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.crm-recent-client-item {
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) minmax(100px, .8fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    box-sizing: border-box;
    background: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.crm-recent-client-item:hover {
    background: #252525;
    border-color: #514866;
    transform: translateY(-1px);
}

.crm-recent-client-main {
    min-width: 0;
    text-align: right;
}

.crm-recent-client-main strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-recent-client-date {
    direction: ltr;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.crm-recent-client-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-recent-client-action .crm-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 32px;
    padding: 6px 11px;
    box-sizing: border-box;
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.crm-recent-client-action .crm-view:hover {
    background: rgba(139, 92, 246, .20);
    color: #ffffff;
    transform: translateY(-1px);
}

.crm-dashboard-recent-clients-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(139, 92, 246, .05);
    border: 1px dashed rgba(196, 181, 253, .22);
    border-radius: 10px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 600px) {
    .crm-recent-client-item {
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
    }

    .crm-recent-client-main {
        text-align: right;
    }

    .crm-recent-client-date {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        font-size: 11px;
    }

    .crm-recent-client-action {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}