.rm-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 24px;
    color: #1e293b;
    background: #f8fafc;
    border-radius: 16px;
    box-sizing: border-box;
}

.rm-dashboard * {
    box-sizing: border-box;
}

.rm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(
        135deg, #1e40af, #2563eb
    );
    color: #ffffff;
    border-radius: 14px;
    margin-bottom: 20px;
}

.rm-dashboard-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.85;
}

.rm-dashboard-header h2 {
    color: #ffffff;
    font-size: 27px;
    margin: 8px 0 12px;
}

.rm-dashboard-avatar img {
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
}

.rm-role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.rm-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 25px;
}

.rm-dashboard-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    color: #475569;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 7px;
}

.rm-dashboard-nav a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.rm-dashboard-nav .rm-nav-logout {
    margin-left: auto;
    color: #dc2626;
}

.rm-dashboard h3 {
    color: #0f172a;
    font-size: 21px;
    margin: 0 0 20px;
}

.rm-stats-grid {
    display: grid;
    grid-template-columns: repeat(
        4, minmax(0, 1fr)
    );
    gap: 16px;
    margin-bottom: 24px;
}

.rm-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.rm-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.rm-stat-icon .dashicons {
    width: 26px;
    height: 26px;
    font-size: 26px;
}

.rm-blue {
    background: #dbeafe;
    color: #2563eb;
}

.rm-orange {
    background: #ffedd5;
    color: #ea580c;
}

.rm-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.rm-green {
    background: #dcfce7;
    color: #16a34a;
}

.rm-stat-number {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.rm-stat-label {
    font-size: 14px;
    color: #64748b;
}

.rm-dashboard-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
}

.rm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 20px;
    text-align: center;
    color: #64748b;
}

.rm-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #94a3b8;
}

.rm-empty-state p {
    margin: 15px 0 0;
}

.rm-table-responsive {
    overflow-x: auto;
}

.rm-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rm-dashboard-table th {
    background: #f1f5f9;
    color: #334155;
    text-align: left;
    padding: 14px;
}

.rm-dashboard-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.rm-dashboard-table tr:hover td {
    background: #f8fafc;
}

.rm-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.rm-status-open,
.rm-status-completed,
.rm-status-accepted {
    background: #dcfce7;
    color: #166534;
}

.rm-status-assigned {
    background: #dbeafe;
    color: #1d4ed8;
}

.rm-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.rm-status-rejected,
.rm-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 900px) {

    .rm-stats-grid {
        grid-template-columns: repeat(
            2, minmax(0, 1fr)
        );
    }

}

@media (max-width: 480px) {

    .rm-dashboard {
        margin: 10px 0;
        padding: 12px;
    }

    .rm-dashboard-header {
        padding: 20px;
    }

    .rm-dashboard-header h2 {
        font-size: 21px;
    }

    .rm-stats-grid {
        gap: 10px;
    }

    .rm-stat-card {
        padding: 15px;
    }

    .rm-stat-number {
        font-size: 27px;
    }

    .rm-dashboard-section {
        padding: 15px;
    }

    .rm-dashboard-nav .rm-nav-logout {
        margin-left: 0;
    }

}