html, body {
    margin: 0;
    font-family: 'Poppins', sans-serif !important;
}

:root {
    --gray-dark: #343a40;
    --primary-button-colour: #374afb;
    --primary-button-hover-colour: #1328fa;
    --primary-button-colour-disabled: #97c6ff;
    --secondary-button-colour: #157a5c;
    --secondary-button-hover-colour: #094434;
    --secondary-button-colour-disabled: #194C3E;
    --tertiary-button-colour: #28353A;
    --tertiary-button-hover-colour: #1F2A2E;
    --tertiary-button-colour-disabled: #A0A8AC;
    --white-colour: #FFFFFF;
    --warning-alert-background-colour: #FFF7E0;
    --warning-alert-text-colour: #A67C00;
    --warning-alert-border-colour: #E6C200;
    --info-alert-background-colour: #EAF5FE;
    --info-alert-text-colour: #0E3F66;
    --info-alert-border-colour: #D6D8DB;
    --success-alert-background-colour: #D2F4F1;
    --success-alert-text-colour: #0F695F;
    --success-alert-border-colour: #D6D8DB;
    --error-alert-background-colour: #FAD1D3;
    --error-alert-text-colour: #770E13;
    --error-alert-border-colour: #D6D8DB;
    --reject-button-colour: #E51B24;
    --reject-button-hover-colour: #B41B21;
    font-size: 16px;
}

@media (max-width: 600px) {
    :root {
        font-size: 14px;
    }
}

h1, .h1 {
    font-size: 2.027rem;
}

    h1:focus {
        outline: none;
    }

h2, .h2 {
    font-size: 1.802rem;
}

h3, .h3 {
    font-size: 1.602rem;
}

h4, .h4 {
    font-size: 1.424rem;
}

h5, .h5 {
    font-size: 1.266rem;
}

h6, .h6 {
    font-size: 1.125rem;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 500;
    line-height: 1.5;
}

p {
    line-height: 1.5;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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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AyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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");
    }

.mud-layout {
    display: flex;
    flex-direction: column;
}

.mud-dialog-container {
    transform: translateY(calc(var(--host-visible-center-y, 50vh) - 50vh));
}

.mud-snackbar {
    transform: translateY(calc(var(--host-visible-bottom-y, calc(100vh + 12px)) - 100vh - 12px)) !important;
}

.mud-main-content {
    flex-grow: 1;
    padding: 0.5rem;
}

footer {
    color: white;
    background-color: darkslategray;
    padding: 0.5rem;
    text-align: right;
}

    footer a {
        color: lightgray;
        text-decoration: revert;
    }

.custom-error-boundary .mud-alert-position {
    align-items: center;
}

.custom-error-boundary .mud-alert-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.mud-quill-wrapper {
    min-height: 300px;
    height: auto;
    overflow: hidden;
    font-family: var(--mud-typography-body1-family);
}

    .mud-quill-wrapper .ql-toolbar {
        background: var(--mud-palette-surface);
        border-radius: 4px 4px 0 0;
    }

    .mud-quill-wrapper .ql-container {
        border-radius: 0 0 4px 4px;
        min-height: inherit;
    }

    .mud-quill-wrapper .ql-editor {
        min-height: inherit;
    }

.ql-formats {
    margin: 0 !important;
}

    .ql-formats + .ql-formats {
        border-left: 1px solid #ccc;
    }

.form-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
    font-weight: 400;
}

.input {
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    margin-bottom: 0.2rem;
    position: relative;
}

    .input .mud-input-control-helper-container {
        position: absolute;
        left: 0;
        top: 100%;
        max-width: 100%;
        white-space: normal;
        z-index: 10;
    }

.form-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.primary-btn {
    background: var(--primary-button-colour) !important;
    color: #fff !important;
}

    .primary-btn:hover {
        background: var(--primary-button-hover-colour) !important;
    }

    .primary-btn:disabled {
        background: var(--primary-button-colour-disabled) !important;
        color: var(--white-colour) !important;
        opacity: 1 !important;
    }

.secondary-btn {
    background: var(--secondary-button-colour) !important;
    color: #fff !important;
}

    .secondary-btn:hover {
        background: var(--secondary-button-hover-colour) !important;
    }

    .secondary-btn:disabled {
        background: var(--secondary-button-colour-disabled) !important;
        opacity: 1 !important;
    }

.cancel-btn {
    background: #dddee5 !important;
    color: #222 !important;
    font-weight: bold;
}

    .cancel-btn .mud-button-start-icon {
        margin-right: 0.4rem;
    }

    .cancel-btn:hover {
        background: #202230 !important;
        color: #FFFFFF !important;
    }

.form-divider {
    border: none;
    border-top: 1px solid #e6e6ef;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.colour-input-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0.8rem;
}

.colour-preview {
    width: 42px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #C4C4C4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.h-100 {
    height: 100%;
}

.mwh-100 {
    max-width: 100%;
    max-height: 100%;
}

.font-preview .mud-input-slot,
.font-preview textarea {
    font-family: var(--selected-font-family, inherit) !important;
}

.mud-input-control.mud-input-control-margin-dense {
    margin: 0px !important
}

.input-colour {
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    margin-bottom: 0.2rem;
    max-width: 300px;
    position: relative;
}

    .input-colour .mud-input-control-helper-container {
        position: absolute;
        left: 0;
        top: 100%;
        width: max-content;
        white-space: normal;
        z-index: 10;
    }

.accordian {
    background-color: #F8F9FA;
    border: 1px solid #D6D8DB;
}

.success {
    color: #0F695F
}

.error {
    color: #770E13
}

.reject-btn {
    background: var(--reject-button-colour) !important;
    color: #fff !important;
    margin-left: 8px;
}

    .reject-btn:hover {
        background: var(--reject-button-hover-colour) !important;
    }

.img-container {
    width: 100%;
}

.img-box {
    height: 250px;
    width: 100%;
    background-color: dimgray;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matching-record-table {
    width: 95%;
    border-collapse: collapse;
    font-size: 14px;
}

    .matching-record-table th {
        font-weight: 600;
        text-align: left;
    }

    .matching-record-table th,
    .matching-record-table td {
        padding: 2px 4px;
        white-space: nowrap;
    }

    .matching-record-table tr:nth-child(odd) {
        background-color: var(--light);
    }


    .matching-record-table tbody tr {
        border-top: 1px solid #eee;
        transition: background 0.2s ease;
    }

        .matching-record-table tbody tr:hover {
            background-color: #f5f7fb;
        }

.no-content {
    padding: 16px;
    text-align: center;
    color: #737263;
    font-size: 14px;
    font-style: italic;
}

.tertiary-btn {
    background-color: var(--tertiary-button-colour) !important;
    color: var(--white-colour) !important;
}
    .tertiary-btn:hover {
        background: var(--tertiary-button-hover-colour) !important;
    }

.mud-tab {
    text-transform: none;
}

.email-template-btn {
    background-color: #e9ecef;
    justify-content: flex-start;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 0 10px 0;
}