html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.w-10 {
    width: 10% !important
}

.divider-content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.bg-holder {
    position: absolute;
    width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.form-icon-container {
    position: relative;
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 2;
}

.form-icon-input {
    padding-left: 3rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .col-lg-6:first-child {
        display: none !important;
    }

    .col-lg-6:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.wizard-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.wizard-header {
    background-color: #f8f9fa;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wizard-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-weight: 600;
    position: relative;
    flex: 1;
}

    .wizard-nav-item.active {
        color: #198754;
    }

    .wizard-nav-item.completed {
        color: #198754;
    }

.nav-item-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.wizard-nav-item.active .nav-item-circle {
    background: #198754;
    color: white;
}

.wizard-nav-item.completed .nav-item-circle {
    background: #198754;
    color: white;
}

.wizard-nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: calc(50% + 1.25rem);
    right: calc(-50% + 1.25rem);
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.wizard-nav-item.completed:not(:last-child)::after {
    background: #198754;
}

.wizard-step-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.wizard-content {
    padding: 2rem 1.5rem 0;
}

.wizard-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #dee2e6;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .form-row .form-group {
        flex: 1;
    }

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.completion-content {
    text-align: center;
    padding: 3rem 1.5rem;
}

.completion-icon {
    width: 220px;
    height: auto;
    margin-bottom: 2rem;
}

.rz-card {
    border: none !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.compliance-main-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding: 0 0 0.75rem 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.compliance-card {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

    .compliance-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .compliance-card.selected {
        border-color: var(--rz-primary, #007bff);
        background-color: rgba(0, 123, 255, 0.05);
    }
 .document-storage-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.document-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.storage-provider-info {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-storage-section {
    padding: 2rem 0;
}




.document-grid-table {
    width: 100%;
    border-collapse: collapse;
}

    .document-grid-table th,
    .document-grid-table td {
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
    }

    .document-grid-table th {
        background-color: #f8f9fa;
        font-weight: bold;
    }

    .document-grid-table tr:hover {
        background-color: #e9ecef;
    }

    .document-grid-table a {
        text-decoration: none;
        color: #007bff;
    }

        .document-grid-table a:hover {
            text-decoration: underline;
        }

.kanban-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.search-box .form-control {
    height: 38px;
    font-size: 14px;
    border-radius: 6px 0 0 6px;
}

.search-box .btn {
    border-radius: 0 6px 6px 0;
}

.compliance-sidebar,
.compliance-event-sidebar,
.document-section {
    background: #f8f9fa;
    height: 75vh;
    padding: 8px;
    border-right: 1px solid #dee2e6;
    overflow-y: auto; 
    overflow-x: hidden;
}

.compliance-list,
.compliance-event-list {
    margin-top: 10px;
}

.compliance-item,
.compliance-event-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #dee2e6;
}

    .compliance-item:hover,
    .compliance-event-item:hover {
        background: #e9ecef;
    }

.document-section {
    padding: 20px;
    background: white;
    border-left: 1px solid #dee2e6;
}
.compliance-item.active,
.compliance-event-item.active {
    background-color: #6e7891;
    color: white; 
    font-weight: bold;
}
.task-documents .uploaded-poc-container {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: #fff;
}

.task-documents .poc-list-container {
    height: 100%;
}

.task-documents .poc-item {
    transition: all 0.2s ease;
    background-color: #fff;
}

    .task-documents .poc-item:hover {
        background-color: #f8f9fa;
        border-color: #007acc !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

.task-documents .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.task-documents .upload-container {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
    position: relative;
}

    .task-documents .upload-container.drag-over {
        border-color: #007acc;
        background-color: #e6f3ff;
        transform: scale(1.02);
    }

    .task-documents .upload-container.uploading {
        border-color: #28a745;
        background-color: #f8fff9;
    }

.task-documents .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.task-documents .browse-button {
    padding: 12px 24px;
    background-color: #007acc;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin: 1rem 0;
    border: none;
    cursor: pointer;
}

    .task-documents .browse-button:hover {
        background-color: #005999;
    }

.task-documents .upload-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.task-documents .overall-progress,
.task-documents .current-file-progress {
    width: 100%;
}

.task-documents .single-upload-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.task-documents .single-file-upload.uploading {
    background-color: #e3f2fd;
    border-radius: 0.375rem;
    padding: 1rem;
}

.task-documents .single-file-button {
    padding: 12px 24px;
    background-color: #007acc;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

    .task-documents .single-file-button:hover {
        background-color: #005999;
    }

.task-documents .single-file-progress {
    width: 100%;
}

.task-documents .upload-queue {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.task-documents .queue-item {
    background-color: #fff;
    transition: all 0.2s ease;
}

    .task-documents .queue-item:hover {
        background-color: #e9ecef;
    }

    .task-documents .queue-item.uploading {
        background-color: #e3f2fd;
        border-color: #2196f3 !important;
    }

    .task-documents .queue-item.completed {
        background-color: #e8f5e8;
        border-color: #28a745 !important;
    }

@media (max-width: 1200px) {
    .task-documents .RadzenColumn[Size="5"] {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .task-documents .RadzenColumn[Size="6"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .task-documents .RadzenRow {
        flex-direction: column;
    }

    .task-documents .RadzenColumn {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

        .task-documents .RadzenColumn[Size="1"] {
            display: none;
        }
}

.task-grid-horizontal {
    width: 100%;
    overflow-x: auto;
}

    .task-grid-horizontal .rz-data-grid-table {
        min-width: 1200px;
    }

/* ================= Client On-boarding ================= */
.client-onboarding {
    width: 100%;
}

.client-onboarding .co-form-wrapper,
.client-onboarding .co-card,
.client-onboarding .co-form {
    width: 100%;
}

.client-onboarding .required-mark {
    color: red;
}

.client-onboarding .co-field-error {
    font-size: 13px;
}

.client-onboarding .validation-inline {
    color: red;
    font-size: 12px;
}

.client-onboarding .validation-block {
    display: block;
    margin-top: 2px;
}

/* Make every field control fill its column */
.client-onboarding .co-form .co-full,
.client-onboarding .co-form .rz-dropdown,
.client-onboarding .co-form .rz-autocomplete,
.client-onboarding .co-form .rz-textbox {
    width: 100%;
}

.client-onboarding .co-form .co-autocomplete .rz-textbox,
.client-onboarding .co-form .co-autocomplete input {
    width: 100%;
    height: 38px;
}

.client-onboarding .co-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

/*Chat*/

.chat-wrapper {
    display: flex;
    height: calc(100vh - 64px);
    min-height: 0;
    overflow: hidden;
}

.chat-sidebar {
    width: 280px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    background: #fff;
}

.chat-sidebar-header {
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .chat-contact:hover {
        background: #f7f7f7;
    }

.chat-contact-active {
    background: #eef3fb;
}

.chat-contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6c63ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-contact-name {
    font-weight: 500;
}

.chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
    min-height: 0;
}


.chat-header {
    padding: 1rem;
    font-weight: 600;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.chat-empty-state {
    margin: auto;
    color: #999;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-bubble-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.chat-bubble-row-mine {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 60%;
    padding: 0.5rem 0.9rem;
    border-radius: 14px;
    font-size: 0.95rem;
}

.chat-bubble-theirs {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.chat-bubble-mine {
    background: #6c63ff;
    color: #fff;
}

.chat-file-input {
    display: none;
}

.chat-input-bar {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0.75rem;
    background: #f5f6fa;
}

.chat-selected-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #eef;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    width: 100%;
}

.chat-task-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.chat-selected-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #eef;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    width: 100%;
}

.chat-task-remove {
    cursor: pointer;
    color: red;
}

.chat-task-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.chat-task-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.chat-task-badge {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.chat-task-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.chat-input-pill {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-attach-btn {
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 0.6rem;
    display: flex;
    align-items: center;
}

.chat-file-input {
    display: none;
}

.chat-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.chat-send-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: #6c63ff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.chat-file-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
}

.chat-bubble-theirs .chat-file-card {
    background: rgba(0,0,0,0.05);
}

.chat-file-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.chat-file-name {
    font-size: 0.85rem;
    word-break: break-all;
}

.chat-contact-avatar {
    position: relative;
}

.chat-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
}

.chat-date-separator {
    text-align: center;
    margin: 0.8rem 0;
}

    .chat-date-separator span {
        background: #e4e6eb;
        color: #555;
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
    }

.chat-time {
    font-size: 0.68rem;
    opacity: 0.7;
    text-align: right;
    margin-top: 0.2rem;
}

.chat-sidebar::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px !important;
}

.chat-sidebar::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: #e0e0e0 !important;
    border-radius: 3px !important;
}

.chat-caption {
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

/* ================= Task action popups (Send to CA / Call to Client / Assign to Client) ================= */
.fm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.fm-modal-content {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}


/*Document page*/

.mail-doc-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mail-doc-body {
    display: flex;
    flex: 1;
    min-height: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.mail-folder-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: #f7f8fa;
    border-right: 1px solid #e0e0e0;
    padding: 12px 0;
    overflow-y: auto;
}

.mail-folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

    .mail-folder-item:hover {
        background: #ececec;
    }

    .mail-folder-item.active {
        background: #dfe9f5;
        font-weight: 600;
        color: #1a4d8f;
    }

    .mail-folder-item.sub {
        padding-left: 26px;
        font-size: 13px;
    }

.mail-folder-divider {
    margin: 10px 0;
    border-color: #e0e0e0;
}

.mail-folder-subheading {
    padding: 4px 16px;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
}

.mail-doc-list {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.mail-event-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.mail-event-chip {
    padding: 4px 12px;
    border-radius: 14px;
    background: #f0f0f0;
    font-size: 12px;
    cursor: pointer;
}

    .mail-event-chip.active {
        background: #1a4d8f;
        color: #fff;
    }

/* Drive-style grid */
.drive-grid {
    width: 100%;
    font-family: inherit;
}

.drive-grid-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

.drive-grid-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    font-size: 14px;
    color: #202124;
}

    .drive-grid-row:hover {
        background: #f8f9fa;
    }

.drive-col-name {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.drive-col-event {
    flex: 1;
    color: #5f6368;
    font-size: 13px;
}

.mail-folder-item.sub2 {
    padding-left: 44px;
    font-size: 12.5px;
}

.drive-col-actions {
    flex: 1.4;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.drive-grid-row.selected {
    background: #eef3fb;
}

.mail-summary-panel {
    width: 50%;
    min-width: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #e0e0e0;
}

.mail-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.mail-summary-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    font-size: 14px;
}

.drive-col-date {
    flex: 1;
    color: #5f6368;
    font-size: 13px;
}

.drive-doc-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.drive-doc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-icon-pdf {
    color: #ea4335;
}

.drive-icon-word {
    color: #4285f4;
}

.drive-icon-excel {
    color: #34a853;
}

.drive-icon-image {
    color: #a142f4;
}

.drive-icon-generic {
    color: #5f6368;
}

.client-dashboard {
    padding-bottom: 40px;
}


/* =========================================
   LOADING / EMPTY
========================================= */

.dashboard-loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
}

.dashboard-empty {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
}

    .dashboard-empty i {
        font-size: 22px;
    }


/* =========================================
   COMMON SECTION
========================================= */

.dashboard-section {
    padding: 25px 0;
    border-bottom: 1px solid #e8ecef;
}

    .dashboard-section:last-child {
        border-bottom: none;
    }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

    .section-heading h5 {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        color: #263238;
    }

    .section-heading span {
        display: block;
        margin-top: 5px;
        font-size: 13px;
        color: #8a94a6;
    }

    .section-heading > i {
        font-size: 22px;
        color: #01889f;
    }


/* =========================================
   OVERVIEW
========================================= */

.overview-section {
    padding-top: 10px;
}

.overview-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.overview-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overview-label {
    font-size: 13px;
    color: #7b8494;
    font-weight: 500;
}

.overview-item strong {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.pending-number {
    color: #d97706;
}

.completed-number {
    color: #01889f;
}

.attention-number {
    color: #dc5b5b;
}

.overview-description {
    font-size: 12px;
    color: #9ca3af;
}

.overview-divider {
    width: 1px;
    background: #e5e7eb;
    margin: 0 60px;
}


/* =========================================
   TWO COLUMN
========================================= */

.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}


/* =========================================
   EMPTY SECTION
========================================= */

.section-empty {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

    .section-empty i {
        font-size: 25px;
    }


/* =========================================
   PENDING TASKS
========================================= */

.task-list {
    width: 100%;
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #edf0f2;
}

    .task-row:first-child {
        border-top: none;
    }

.task-left {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.task-status-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
}

.task-dot-started {
    background: #01889f;
}

.task-dot-completed {
    background: #22a06b;
}

.task-dot-onhold {
    background: #d9a441;
}

.task-dot-denied {
    background: #dc5b5b;
}

.task-dot-defaulter {
    background: #b42318;
}

.task-dot-pending {
    background: #9ca3af;
}

.task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

    .task-info strong {
        font-size: 14px;
        font-weight: 600;
        color: #263238;
    }

    .task-info span {
        font-size: 12px;
        color: #8a94a6;
    }

.task-status {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-started {
    color: #01889f;
}

.status-completed {
    color: #22a06b;
}

.status-onhold {
    color: #b7791f;
}

.status-denied {
    color: #dc5b5b;
}

.status-defaulter {
    color: #b42318;
}

.status-pending {
    color: #8a94a6;
}


/* =========================================
   DEADLINE TIMELINE
========================================= */

.deadline-timeline {
    position: relative;
}

.deadline-item {
    display: flex;
    min-height: 85px;
}

.timeline-line {
    width: 25px;
    position: relative;
    display: flex;
    justify-content: center;
}

    .timeline-line::after {
        content: "";
        position: absolute;
        top: 9px;
        bottom: -10px;
        width: 1px;
        background: #dce3e8;
    }

.deadline-item:last-child .timeline-line::after {
    display: none;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    z-index: 1;
    margin-top: 5px;
}

.deadline-dot-normal {
    background: #01889f;
    box-shadow: 0 0 0 1px #01889f;
}

.deadline-dot-warning {
    background: #d9a441;
    box-shadow: 0 0 0 1px #d9a441;
}

.deadline-dot-danger {
    background: #dc5b5b;
    box-shadow: 0 0 0 1px #dc5b5b;
}

.deadline-content {
    flex: 1;
    padding-left: 15px;
}

.deadline-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.deadline-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .deadline-info strong {
        font-size: 14px;
        font-weight: 600;
        color: #263238;
    }

    .deadline-info span {
        font-size: 12px;
        color: #8a94a6;
    }

.deadline-status {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.deadline-normal {
    color: #01889f;
}

.deadline-warning {
    color: #d97706;
}

.deadline-danger {
    color: #dc5b5b;
}

.deadline-overdue {
    color: #b42318;
}

.deadline-progress {
    width: 100%;
    height: 3px;
    background: #edf1f3;
    margin-top: 12px;
    overflow: hidden;
}

.deadline-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.deadline-progress-normal {
    background: #01889f;
}

.deadline-progress-warning {
    background: #d9a441;
}

.deadline-progress-danger {
    background: #dc5b5b;
}


/* =========================================
   TASK PROGRESS
========================================= */

.task-progress-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 50px;
}

.task-progress-main {
    flex: 1;
}

.progress-number {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .progress-number strong {
        font-size: 46px;
        line-height: 1;
        font-weight: 600;
        color: #01889f;
    }

    .progress-number span {
        font-size: 13px;
        color: #8a94a6;
    }

.large-progress {
    width: 100%;
    height: 8px;
    background: #edf1f3;
    margin-top: 22px;
    overflow: hidden;
}

.large-progress-fill {
    height: 100%;
    background: #01889f;
    transition: width 0.4s ease;
}

.progress-details {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

    .progress-details > div {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        color: #7b8494;
    }

    .progress-details strong {
        color: #263238;
        font-weight: 600;
    }

.progress-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.completed-dot {
    background: #01889f;
}

.pending-dot {
    background: #d9a441;
}

.attention-dot {
    background: #dc5b5b;
}

.small-progress-list {
    margin-top: 30px;
    max-width: 700px;
}

    .small-progress-list > div {
        display: grid;
        grid-template-columns: 75px 1fr 45px;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }

    .small-progress-list span {
        font-size: 12px;
        color: #7b8494;
    }

    .small-progress-list strong {
        font-size: 12px;
        text-align: right;
        color: #263238;
    }

.small-progress {
    width: 100%;
    height: 5px;
    background: #edf1f3;
}

    .small-progress > div {
        height: 100%;
    }

.completed-fill {
    background: #01889f;
}

.pending-fill {
    background: #d9a441;
}


/* =========================================
   NEEDS ATTENTION
========================================= */

.attention-icon {
    color: #dc5b5b !important;
}

.attention-list {
    width: 100%;
}

.attention-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 0;
    border-top: 1px solid #edf0f2;
}

    .attention-row:first-child {
        border-top: none;
    }

.attention-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.attention-symbol {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3f2;
    color: #dc5b5b;
}

    .attention-symbol i {
        font-size: 16px;
    }

.attention-left > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attention-left strong {
    font-size: 14px;
    font-weight: 600;
    color: #263238;
}

.attention-left span {
    font-size: 12px;
    color: #8a94a6;
}

.attention-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
}

    .attention-right span {
        font-size: 12px;
        color: #8a94a6;
    }

    .attention-right strong {
        font-size: 12px;
        color: #dc5b5b;
        font-weight: 600;
    }

.no-attention {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
}

    .no-attention > i {
        font-size: 25px;
        color: #01889f;
    }

    .no-attention div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .no-attention strong {
        font-size: 14px;
        color: #263238;
    }

    .no-attention span {
        font-size: 12px;
        color: #8a94a6;
    }


/* =========================================
   PAYMENT
========================================= */

.payment-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

    .payment-values > div {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .payment-values span {
        font-size: 12px;
        color: #8a94a6;
    }

    .payment-values strong {
        font-size: 24px;
        font-weight: 600;
        color: #263238;
    }

    .payment-values .paid-value {
        color: #01889f;
    }

    .payment-values .due-value {
        color: #dc5b5b;
    }

.payment-progress-section {
    margin-top: 30px;
}

.payment-progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .payment-progress-heading span {
        font-size: 12px;
        color: #7b8494;
    }

    .payment-progress-heading strong {
        font-size: 13px;
        color: #263238;
    }

.payment-progress {
    width: 100%;
    height: 7px;
    background: #edf1f3;
    overflow: hidden;
}

.payment-progress-fill {
    height: 100%;
    background: #01889f;
    transition: width 0.4s ease;
}

.payment-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

    .payment-progress-labels span {
        font-size: 11px;
        color: #9ca3af;
    }


/* =========================================
   RECENT PAYMENTS
========================================= */

.recent-payments {
    margin-top: 30px;
}

.recent-payment-title {
    font-size: 13px;
    font-weight: 600;
    color: #263238;
    margin-bottom: 5px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #edf0f2;
}

    .payment-row span {
        font-size: 12px;
        color: #8a94a6;
    }

    .payment-row strong {
        font-size: 13px;
        color: #263238;
    }

.payment-action {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

    .payment-action .rz-button {
        border-radius: 4px;
    }

.payment-complete {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: #01889f;
    font-size: 13px;
}

    .payment-complete i {
        font-size: 18px;
    }


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {

    .two-column-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .overview-divider {
        margin: 0 30px;
    }

    .task-progress-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }
}


@media (max-width: 768px) {

    .client-dashboard {
        padding-bottom: 30px;
    }

    .overview-row {
        flex-direction: column;
        gap: 22px;
    }

    .overview-item {
        flex: none;
    }

    .overview-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .overview-item strong {
        font-size: 28px;
    }

    .payment-values {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .attention-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .attention-right {
        align-items: flex-start;
        padding-left: 46px;
    }
}


@media (max-width: 576px) {

    .dashboard-section {
        padding: 20px 0;
    }

    .section-heading {
        margin-bottom: 20px;
    }

        .section-heading h5 {
            font-size: 16px;
        }

        .section-heading span {
            font-size: 12px;
        }

    .progress-number strong {
        font-size: 38px;
    }

    .progress-details {
        flex-direction: column;
        gap: 10px;
    }

    .deadline-main {
        flex-direction: column;
        gap: 7px;
    }

    .deadline-status {
        align-self: flex-start;
    }

    .small-progress-list > div {
        grid-template-columns: 65px 1fr 40px;
        gap: 8px;
    }

    .payment-action {
        justify-content: flex-start;
    }
}


.task-remarks-box {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.85rem;
}

.view-documents-btn {
    width: 180px;
}