.admin-dashboard-page {
    min-width: 0;
}

.admin-dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.admin-dashboard-head p {
    margin: 8px 0 0;
    color: #667085;
}

.dashboard-head-actions {
    display: flex;
    gap: 10px;
}

.dashboard-group {
    margin-top: 28px;
}

.dashboard-group-head {
    margin-bottom: 15px;
}

.dashboard-group-head span,
.panel-head span {
    color: #3775f5;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-group-head h2,
.panel-head h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-stat-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    border-color: #bdd0ef;
    box-shadow: 0 14px 34px rgba(34, 72, 130, .08);
}

.admin-stat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #526079;
    font-size: 14px;
    font-weight: 800;
}

.admin-stat-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f0f4fa;
    font-size: 16px;
}

.admin-stat-card > strong {
    display: block;
    margin-top: 15px;
    font-size: 34px;
    line-height: 1;
}

.admin-stat-card > small {
    display: block;
    margin-top: 9px;
    color: #7a879c;
}

.admin-stat-card.paid .admin-stat-icon {
    color: #198754;
    background: #e8f8ee;
}

.admin-stat-card.provisioning .admin-stat-icon {
    color: #1769d2;
    background: #e9f3ff;
}

.admin-stat-card.active .admin-stat-icon {
    color: #087f5b;
    background: #e7f8f2;
}

.admin-stat-card.cancelled .admin-stat-icon {
    color: #d92d20;
    background: #ffe9e9;
}

.admin-stat-card.tickets .admin-stat-icon {
    color: #b77900;
    background: #fff3d5;
}

.admin-stat-card.tickets.needs-action {
    border-color: #f2cf78;
    background: #fffdf7;
}

.admin-stat-card.new-orders .admin-stat-icon {
    color: #7b2cbf;
    background: #f3e8ff;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-metric-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #fbfdff);
}

.admin-metric-card small {
    display: block;
    color: #667085;
    font-weight: 700;
}

.admin-metric-card strong {
    display: block;
    margin-top: 9px;
    font-size: 27px;
}

.admin-metric-card span {
    display: block;
    margin-top: 7px;
    color: #8a96a9;
    font-size: 12px;
}

.admin-metric-card.expiry:hover {
    border-color: #f2cf78;
}

.admin-dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
    gap: 20px;
    margin-top: 28px;
}

.dashboard-panel {
    min-width: 0;
    margin-top: 0;
}

.dashboard-panel .panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.dashboard-panel .panel-head a {
    color: #3775f5;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-ticket-list {
    display: flex;
    flex-direction: column;
}

.dashboard-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e5ebf4;
}

.dashboard-ticket-item:last-child {
    border-bottom: 0;
}

.dashboard-ticket-item div {
    min-width: 0;
}

.dashboard-ticket-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-ticket-item p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 13px;
}

.dashboard-ticket-item > span {
    flex: 0 0 auto;
    color: #8a96a9;
    font-size: 12px;
}

.dashboard-empty-state {
    padding: 42px 15px;
    color: #7a879c;
    text-align: center;
}

@media (max-width: 1050px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-head-actions {
        width: 100%;
    }

    .dashboard-head-actions .btn {
        flex: 1;
    }

    .admin-stat-grid,
    .admin-metric-grid {
        grid-template-columns: 1fr;
    }
}
