body {
            overflow-x: hidden;
        }

        .df-wrap {
            max-width: 1100px;
            margin: 50px auto;
            padding: 0 20px;
            font-family: Arial, sans-serif;
            color: #111827;
        }

        .df-kicker {
            text-transform: uppercase;
            letter-spacing: 4px;
            color: #6b7280;
            font-size: 12px;
            margin-bottom: 8px;
        }

        .df-title {
            font-family: Georgia, serif;
            font-size: 36px;
            margin: 0;
        }

        .df-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            margin-bottom: 28px;
        }

        .df-btn {
            background: #1f3f68;
            color: white !important;
            padding: 14px 24px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 700;
            display: inline-block;
            border: none;
            cursor: pointer;
        }

        .df-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            padding: 32px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            margin-bottom: 35px;
        }

        .df-table-wrapper {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            border-radius: 12px;
        }

        .df-table {
            border-collapse: collapse;
            width: 100%;
            min-width: 850px;
            background: white;
            border: 1px solid #e5e7eb;
        }

        .df-table th {
            text-align: left;
            padding: 16px;
            background: #f9fafb;
            color: #6b7280;
            font-size: 12px;
            text-transform: uppercase;
        }

        .df-table td {
            padding: 18px 16px;
            border-top: 1px solid #e5e7eb;
            vertical-align: middle;
        }

        .df-record-title {
            font-weight: 700;
        }

        .df-record-title a {
            color: #111827;
            text-decoration: none;
        }

        .df-record-meta {
            color: #6b7280;
            font-size: 13px;
            margin-top: 5px;
        }

        .df-badge {
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 700;
            display: inline-block;
        }

        .df-approved {
            background: #e6f4ee;
            color: #247a53;
        }

        .df-awaiting {
            background: #fff4d6;
            color: #9a6b00;
        }

        .df-rejected {
            background: #fde8e8;
            color: #a33a3a;
        }

        .df-more-info {
            background: #e8efff;
            color: #1f3f68;
        }

        .df-alert-success {
            background: #e6f4ee;
            color: #247a53;
            border: 1px solid #b7e1cd;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .df-alert-error {
            background: #fde8e8;
            color: #a33a3a;
            border: 1px solid #f5b5b5;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .df-upload-box {
            border: 2px dashed #d1d5db;
            border-radius: 12px;
            padding: 45px 20px;
            text-align: center;
            background: #fafafa;
            margin-bottom: 25px;
        }

        .df-form-group {
            margin-bottom: 20px;
        }

        .df-form-group label {
            display: block;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .df-form-group input,
        .df-form-group select {
            width: 100%;
            padding: 14px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 15px;
        }

        .df-progress-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .df-progress-main {
            font-size: 30px;
            font-family: Georgia, serif;
            font-weight: 700;
        }

        .df-progress-main span {
            color: #6b7280;
            font-size: 22px;
        }

        .df-progress-bg {
            height: 10px;
            background: #f3f4f6;
            border-radius: 999px;
            margin: 25px 0;
            overflow: hidden;
        }

        .df-progress-bar {
            height: 10px;
            background: #247a53;
            border-radius: 999px;
        }

        .df-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .df-stat {
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 16px 20px;
            background: #f9fafb;
        }

        .df-stat-number {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .df-scroll-note {
            display: none;
            font-size: 13px;
            color: #6b7280;
            margin-bottom: 10px;
        }

        .df-portal-nav {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 28px;
        }

        .df-portal-nav a {
            padding: 10px 18px;
            border: 1px solid #dfe3e8;
            border-radius: 999px;
            background: #fff;
            color: #1f3f68;
            text-decoration: none;
            font-weight: 600;
            transition: .25s;
        }

        .df-portal-nav a:hover,
        .df-portal-nav a.active {
            background: #1f3f68;
            color: #fff;
        }

        /* Client portal topbar and notification bell */
        .df-portal-topbar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 28px;
        }

        .df-portal-topbar .df-portal-nav {
            margin-bottom: 0;
        }

        .df-notification-bell {
            position: relative;
        }

        .df-bell-button {
            position: relative;
            border: 1px solid #dfe3e8;
            background: #fff;
            color: #1f3f68;
            border-radius: 999px;
            padding: 10px 14px;
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
        }

        .df-bell-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #b83d3d;
            color: #fff;
            border-radius: 999px;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
        }

        .df-notification-dropdown {
            display: none;
            position: absolute;
            right: 0;
            top: 46px;
            width: 340px;
            max-width: calc(100vw - 40px);
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.10);
            z-index: 9999;
            overflow: hidden;
        }

        .df-notification-bell:hover .df-notification-dropdown,
        .df-notification-bell:focus-within .df-notification-dropdown {
            display: block;
        }

        .df-notification-header {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            padding: 14px 16px;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
        }

        .df-notification-header a {
            color: #1f3f68;
            font-size: 13px;
            text-decoration: none;
            font-weight: 700;
        }

        .df-notification-row {
            padding: 14px 16px;
            border-bottom: 1px solid #e5e7eb;
        }

        .df-notification-row:last-child {
            border-bottom: none;
        }

        .df-notification-row.unread {
            background: #eef4fb;
        }

        .df-notification-row strong {
            display: block;
            margin-bottom: 5px;
        }

        .df-notification-row p {
            margin: 0 0 6px;
            color: #374151;
            font-size: 13px;
            line-height: 1.4;
        }

        .df-notification-row small,
        .df-notification-empty {
            color: #6b7280;
            font-size: 12px;
        }

        .df-notification-empty {
            padding: 16px;
        }

        .df-admin-layout {
            display: grid;
            grid-template-columns: 1.1fr 0.95fr;
            gap: 28px;
        }

        .df-filter-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }

        .df-tab {
            padding: 10px 18px;
            border: 1px solid #e5e7eb;
            border-radius: 999px;
            text-decoration: none;
            color: #111827;
            background: white;
            font-size: 14px;
        }

        .df-tab-active {
            background: #1f3f68;
            color: white !important;
        }

        .df-review-item {
            display: block;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 18px;
            margin-bottom: 12px;
            text-decoration: none;
            color: #111827;
        }

        .df-review-item-active {
            background: #eef4fb;
            border-color: #1f3f68;
        }

        .df-review-card-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin: 16px 0;
        }

        .df-review-label {
            color: #6b7280;
        }

        .df-review-value {
            font-weight: 600;
            text-align: right;
        }

        .df-review-note {
            width: 100%;
            min-height: 90px;
            padding: 14px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            margin: 10px 0 20px;
        }

	.df-review-actions {
   	 	display: grid;
    		grid-template-columns: 1fr 1fr 1fr;
    		gap: 14px;
	}

	.df-client-note {
    	margin-top: 10px;
    	padding: 10px 12px;
    	background: #f9fafb;
    	border-left: 4px solid #1f3f68;
    	color: #374151;
    	font-size: 13px;
   	 line-height: 1.5;
	}


.df-client-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border-left: 4px solid #1f3f68;
    color: #374151;
    font-size: 13px;
    line-height: 1.5;
}

.df-replace-form {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.df-replace-form input[type="file"] {
    font-size: 13px;
}

.df-small-btn {
    background: #1f3f68;
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

        .df-approve-btn {
            background: #247a53;
        }

        .df-reject-btn {
            background: #b83d3d;
        }

        .df-delete-btn {
            background: #6b7280;
            margin-top: 14px;
            width: 100%;
        }

        /* Document detail page timeline */
        .df-timeline {
            margin-top: 10px;
        }

        .df-timeline-item {
            border-left: 3px solid #1f3f68;
            padding-left: 14px;
            margin-bottom: 18px;
        }

        .df-timeline-item:last-child {
            margin-bottom: 0;
        }

        .df-timeline-title {
            font-weight: 700;
            font-size: 14px;
        }

        .df-timeline-message {
            color: #374151;
            font-size: 13px;
            margin-top: 4px;
        }

        .df-timeline-date {
            color: #6b7280;
            font-size: 12px;
            margin-top: 4px;
        }

        .df-detail-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 18px;
        }

        @media (max-width: 900px) {
            .df-admin-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .df-header,
            .df-progress-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .df-stats {
                grid-template-columns: 1fr;
            }

            .df-table {
                min-width: 850px;
            }

            .df-scroll-note {
                display: block;
            }

            .df-portal-topbar {
                flex-direction: column;
                align-items: flex-start;
            }

            .df-notification-dropdown {
                left: 0;
                right: auto;
            }
        }


/* ======================================================
   PRINT / PDF REPORT STYLES
====================================================== */

@media print {
    body {
        background: #ffffff !important;
    }

    header,
    footer,
    .site-header,
    .site-footer,
    .df-portal-topbar,
    .df-header a,
    .df-header button,
    .df-notification-bell,
    .df-btn {
        display: none !important;
    }

    .df-wrap {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .df-card {
        box-shadow: none !important;
        border: 1px solid #dddddd !important;
        page-break-inside: avoid;
    }

    .df-title {
        font-size: 34px !important;
    }

    .df-card h2 {
        font-size: 22px !important;
    }

    .df-kicker {
        color: #555555 !important;
    }
}

/* ======================================================
   COMPLIANCE REPORT DESIGN
   Add this to the bottom of assets/css/docflow.css
====================================================== */

.df-report-document {
    background: #ffffff;
}

.df-report-cover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b1f3a;
    color: #ffffff;
    padding: 34px;
    border-radius: 16px 16px 0 0;
}

.df-report-brand {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 700;
}

.df-report-subbrand {
    color: #d4a23a;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 13px;
    margin-top: 4px;
}

.df-report-meta-id {
    font-size: 18px;
    font-weight: 700;
    color: #d4a23a;
}

.df-report-title-block {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-top: none;
}

.df-report-intro {
    color: #6b7280;
    margin-top: 8px;
}

.df-report-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.df-report-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.df-report-info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
}

.df-report-info-box span,
.df-report-outcome span,
.df-report-signature-grid span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.df-report-info-box strong {
    color: #111827;
    font-size: 15px;
}

.df-report-outcome {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-left: 6px solid #16a34a;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px;
}

.df-report-outcome strong {
    display: block;
    font-size: 28px;
    color: #166534;
    font-family: Georgia, serif;
}

.df-report-section {
    page-break-inside: avoid;
}

.df-report-signoff {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
}

.df-report-signoff h2 {
    font-family: Georgia, serif;
    margin-top: 0;
}

.df-report-signature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.df-report-signature-grid strong {
    font-size: 16px;
}

@media (max-width: 768px) {
    .df-report-cover,
    .df-report-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .df-report-info-grid,
    .df-report-signature-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   PRINT / PDF REPORT STYLES
====================================================== */

@media print {
    @page {
        margin: 18mm;
    }

    body {
        background: #ffffff !important;
    }

    header,
    footer,
    .site-header,
    .site-footer,
    .elementor-location-header,
    .elementor-location-footer,
    .df-portal-topbar,
    .df-report-actions,
    .df-btn,
    nav {
        display: none !important;
    }

    .df-wrap {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .df-report-cover {
        border-radius: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .df-card,
    .df-report-signoff,
    .df-report-info-box,
    .df-report-outcome {
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .df-card {
        border: 1px solid #dddddd !important;
    }

    .df-title {
        font-size: 32px !important;
    }
}

/* ======================================================
   DASHBOARD V1.7 STYLES
====================================================== */

.df-dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #0b1f3a, #1f3f68);
    color: #ffffff;
    border-radius: 18px;
    padding: 34px;
    margin-bottom: 28px;
}

.df-dashboard-hero .df-kicker,
.df-dashboard-hero p {
    color: rgba(255,255,255,0.78);
}

.df-dashboard-hero .df-title {
    color: #ffffff;
}

.df-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.df-dashboard-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: 0.2s ease;
}

.df-dashboard-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.df-dashboard-stat span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.df-dashboard-stat strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 34px;
    color: #0b1f3a;
    margin-bottom: 6px;
}

.df-dashboard-stat small {
    color: #6b7280;
}

.df-dashboard-stat.urgent {
    border-left: 5px solid #d4a23a;
}

.df-dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.df-dashboard-section-head h2 {
    font-family: Georgia, serif;
    margin: 0 0 6px 0;
}

.df-dashboard-section-head p {
    margin: 0;
    color: #6b7280;
}

.df-dashboard-progress-card .df-progress-bg {
    margin: 18px 0 20px;
}

.df-progress-checklist {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.df-progress-checklist div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.df-progress-checklist div.done {
    background: #e6f4ee;
    color: #247a53;
    border-color: #b7e1cd;
    font-weight: 700;
}

.df-progress-checklist div.done::before {
    content: "? ";
}

.df-activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.df-activity-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.df-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.df-activity-dot {
    width: 10px;
    height: 10px;
    background: #1f3f68;
    border-radius: 50%;
    margin-top: 6px;
}

.df-activity-item strong {
    display: block;
    margin-bottom: 4px;
}

.df-activity-item p {
    margin: 0 0 4px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.df-activity-item small {
    color: #6b7280;
    font-size: 12px;
}

.df-dashboard-two-col {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
}

.df-quick-actions {
    display: grid;
    gap: 12px;
}

.df-quick-actions a {
    display: block;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #1f3f68;
    font-weight: 700;
}

.df-quick-actions a:hover {
    background: #eef4fb;
}

@media (max-width: 900px) {
    .df-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .df-dashboard-two-col {
        grid-template-columns: 1fr;
    }

    .df-progress-checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .df-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .df-dashboard-grid,
    .df-progress-checklist {
        grid-template-columns: 1fr;
    }
}

