body {
    background: #f4f7fb;
}

/* =========================
   GLOBAL LAYOUT FIX
========================= */

.dp-main {
    margin-left: 180px;
    width: calc(100% - 180px);
    min-height: 100vh;
    overflow-x: hidden;
}

.dp-content {
    width: 100%;
    max-width: 100%;
    padding: 26px;
    overflow-x: hidden;
}

.dp-content > .container,
.dp-content > .container-fluid {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.dp-content .row {
    margin-left: 0;
    margin-right: 0;
}

.dp-content [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.dp-table-scroll,
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* =========================
   PREMIUM DASHBOARD
========================= */

.dp-stat-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    min-height: 145px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.dp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.dp-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.dp-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.dp-stat-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dp-stat-sub {
    margin-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.dp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #fff;
    flex-shrink: 0;
}

/* Colors */

.dp-bg-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.dp-bg-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.dp-bg-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.dp-bg-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.dp-bg-info {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.dp-bg-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* Sections */

.dp-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

/* Page head */

.dp-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Quick Cards */

.dp-dashboard-card {
    border-radius: 18px;
    border: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.dp-dashboard-card .card-body {
    padding: 22px;
}

/* Buttons */

.dp-quick-btn {
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
}

/* Tables */

.dp-crm-table {
    width: 100%;
    min-width: 1200px;
}

.dp-cell-text {
    display: block;
    max-width: 240px;
    white-space: normal;
    line-height: 1.35;
}

.dp-click-row {
    cursor: pointer;
}

/* =========================
   RESPONSIVE FIX
========================= */

@media (max-width: 991px) {
    .dp-main {
        margin-left: 0;
        width: 100%;
    }

    .dp-content {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .dp-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-page-head .btn {
        width: 100%;
    }

    .dp-stat-card {
        min-height: auto;
    }

    .dp-stat-value {
        font-size: 24px;
    }

    .dp-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }
}
.dp-clean-hero {
    background: #ffffff;
    border: 1px solid #e8eef6;
    border-radius: 24px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.dp-clean-label {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.dp-clean-hero h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.dp-clean-hero p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.dp-clean-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dp-clean-actions .btn {
    height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

@media (max-width: 768px) {
    .dp-clean-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .dp-clean-actions,
    .dp-clean-actions .btn {
        width: 100%;
    }
}