﻿/* Document Verification Modal */

body.dv-modal-open {
    overflow: hidden !important;
}

.modal-overlay {
    background: var(--color-BgOverLayColor);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.modal-dialog {
    border-radius: 20px;
    width: 540px;
    overflow: hidden;
    padding: 0;
    margin: 0 12px;
}

/* Header */
.modal-header {
    background: var(--color-BgPrimaryBlue);
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-icon {
    width: 21.875px;
    height: 25px;
    position: relative;
}

    .document-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.modal-title {
    font-family: var(--font-1);
    font-size: 25px;
    font-weight: bold;
    color: var(--color-TextOrgWhite);
    margin: 0;
    line-height: 24px;
}

.close-btn {
    background: var(--color-BgOrgWhite);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

    .close-btn svg {
        width: 18px;
        height: 18px;
    }

/* Body */
.modal-body {
    background: var(--color-BgOrgWhite);
    padding: 23px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Fields */
.input-wrapper {
    background: var(--color-BgOrgWhite);
    border: 1px solid var(--color-BodGrayMedium);
    border-radius: 8px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

    /* Focused state - border color change */
    .input-wrapper:focus-within {
        border-color: var(--color-BodPrimaryBlue);
    }

    /* Error state - border color change */
    .input-wrapper.error {
        border-color: var(--color-BodRedErrorText);
    }

        /* Error state - don't change border color on focus */
        .input-wrapper.error:focus-within {
            border-color: var(--color-BodRedErrorText);
        }

.input-field {
    font-family: var(--font-1);
    font-size: 21px;
    color: var(--color-TextBlack);
    line-height: 20px;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    padding: 29px 18px 6px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.input-label {
    font-family: var(--font-1);
    font-size: 16px;
    font-weight: normal;
    color: var(--color-TextGrayMedium);
    line-height: 20px;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1;
    background: var(--color-BgOrgWhite);
    padding: 0 2px;
}

    .input-label .required {
        color: var(--color-TextRedErrorText);
    }

/* Focused state */

/* When input has value */
.input-field:focus + .input-label, .input-field:not(:placeholder-shown) + .input-label {
    color: var(--color-TextPrimaryBlue);
    font-weight: bold;
    top: 0;
    transform: translateY(35%);
    font-family: var(--font-2) !important;
    font-size: 16px;
}

.input-field:focus + .input-label {
    color: var(--color-TextPrimaryBlue);
    font-weight: bold;
    top: 0;
    transform: translateY(35%);
    font-size: 16px;
}
/* Error state - label color when empty */
.input-wrapper.error .input-label {
    color: var(--color-TextRedErrorText);
}

/* Error state - label color stays var(--color-TextRedErrorText) when focused but empty */
.input-wrapper.error .input-field:placeholder-shown:focus + .input-label {
    color: var(--color-TextRedErrorText);
    font-weight: bold;
    top: 0;
    transform: translateY(35%);
    font-size: 16px;
}

/* Info Box */
.info-box {
    background: var(--color-BgOrgOffWhite);
    border-radius: 8px;
    padding: 10px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

    .info-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.info-text {
    font-family: var(--font-1);
    font-size: 18px;
    color: var(--color-TextBlack);
    line-height: 25px;
    margin: 0;
    flex: 1;
}

    .info-text strong {
        font-weight: bold;
        font-family: var(--font-3) !important;
    }

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Example CSS for disabled button */
.result-search-btn:disabled {
    background-color: var(--color-BgTertiaryGray); /* Light var(--color-BgTextSecondaryCharcoleGray) background */
    color: var(--color-TextTextSecondaryCharcoleGray); /* Darker var(--color-ShadowTextSecondaryCharcoleGray) text */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    border: 1px solid var(--color-BodTertiaryGray); /* Optional: make border lighter */
}

.btn {
    height: 50px;
    width: 130px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-1);
    font-size: 23px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    border: none;
    padding: 0;
}

.btn-secondary {
    background: var(--color-BgOrgWhite);
    color: var(--color-TextPrimaryBlue);
    border: 1.5px solid var(--color-BodGrayMedium);
}

.btn-primary {
    background: var(--color-BgPrimaryBlue);
    color: var(--color-TextOrgWhite);
}

/* Initial DocumentVerification popup button interactions */
.btn.btn-primary,
.btn.btn-secondary {
    transition: transform 0.18s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

/* Search */
.btn.btn-primary:hover {
    transform: scale(1.01);
}

.btn.btn-primary:active {
    transform: scale(0.98);
    filter: brightness(0.95);
    box-shadow: none;
}

/* Close */
.btn.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.btn.btn-secondary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: none;
}

/*Result Viewer CSS Start*/
/* Document Result Modal Styles */

/* Print Styles - Only show certificate when printing */
@media print {
    /* Reset page margins for full-bleed printing */
    @page {
        margin: 0;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .modal-overlay {
        background: var(--color-BgOrgWhite) !important;
        position: static !important;
        display: block !important;
    }

    .modal-dialog {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .result-container {
        border-radius: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Hide everything except the certificate image */
    .result-header,
    .result-info-row,
    .result-footer,
    .result-info-box-border {
        display: none !important;
    }

    .result-body {
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    .result-document-container {
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }

    .result-document-inner {
        display: block !important;
    }

    .result-document-image-wrapper {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        display: block !important;
    }

    .result-document-image {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        object-fit: contain !important;
    }
}

.result-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

/* Icon Components */
.icon-set-filled {
    grid-area: 1 / 1;
    height: 25px;
    margin: 0 0 0 0;
    position: relative;
    width: 21.875px;
}

    .icon-set-filled svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.page-container {
    grid-area: 1 / 1;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    display: inline-grid;
    margin: 0 0 0 0;
    place-items: start;
    position: relative;
}

.svg-repo-icon-carrier {
    position: absolute;
    inset: 4.99% 5% 5.01% 5%;
}

    .svg-repo-icon-carrier svg,
    .close-icon svg,
    .print-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.frame-overlay {
    grid-area: 1 / 1;
    margin-left: 7.396px;
    margin-top: 7.813px;
    overflow: hidden;
    position: relative;
    width: 10.417px;
    height: 10.417px;
}

.document-icon-wrapper {
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    display: inline-grid;
    line-height: 0;
    place-items: start;
    position: relative;
    flex-shrink: 0;
}

/* Header Section */
.result-header {
    background-color: var(--color-BgPrimaryBlue);
    height: 60px;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
}

.result-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
}

.result-header-content {
    box-sizing: border-box;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: relative;
    width: 100%;
}

.result-header-left {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.result-header-title {
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 24px;
    font-style: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    font-size: 25px;
    white-space: nowrap;
    color: var(--color-TextOrgWhite);
    margin: 0;
}

.close-icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.result-close-btn {
    background-color: var(--color-BgOrgWhite);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border: none;
}

/* Body Section */
.result-body {
    flex-basis: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    align-items: center;
    overflow-y: auto;
    padding: 15px 15px 0;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    background-color: var(--color-BgOrgWhite);
    min-height: 0;
}

    .result-body.without-report {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: auto;
        min-height: 260px;
    }

    .result-body.with-report,
    .result-body.with-report .result-document-container,
    .result-body.with-report .result-document-image-wrapper {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

        .result-body.with-report .result-document-image-wrapper {
            padding-right: 18px !important;
            box-sizing: border-box !important;
        }

        .result-body.with-report .result-document-inner {
            overflow: visible !important;
        }

    .result-body.with-report {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-top: 15px !important;
        gap: 15px !important;
    }

        .result-body.with-report .result-document-container {
            width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            border-radius: 0 !important;
            overflow: hidden !important;
        }

    .result-body.template-mode,
    .result-body.template-mode .result-document-container,
    .result-body.template-mode .result-document-inner,
    .result-body.template-mode .result-document-image-wrapper {
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

        .result-body.template-mode .result-document-container,
        .result-body.template-mode .result-document-image-wrapper {
            padding-right: 0 !important;
        }

.result-document-template-iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: 480px;
    background: var(--color-BgOrgWhite);
}

.result-body.without-report::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.result-container.result-loading,
.result-container.result-loading .result-body.without-report {
    overflow: hidden !important;
}

/* Custom Scrollbar Styles */
.result-body::-webkit-scrollbar {
    width: 6px;
}

.result-body::-webkit-scrollbar-track {
    background: var(--color-BgOrgOffWhite);
}

.result-body::-webkit-scrollbar-thumb {
    background: var(--color-BgGrayMedium);
    border-radius: 3px;
    border: 1px solid var(--color-BodPeachColor);
}

/*.result-body::-webkit-scrollbar-thumb:hover {
  border-color: rgba(23, 125, 183, 0.5);
}*/

.result-info-row {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.result-info-box {
    flex-basis: 0;
    background-color: var(--color-BgOrgWhite);
    flex-grow: 1;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
}

.result-info-box-border {
    position: absolute;
    border: 1px solid var(--color-BodGrayMedium);
    border-style: solid;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
}

.result-info-box-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.result-info-box-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: var(--font-1);
    font-weight: normal;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    line-height: 0;
    font-style: normal;
    padding: 13px 20px;
    position: relative;
    font-size: 24px;
    white-space: nowrap;
    width: 100%;
}

.result-info-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    color: var(--color-TextPrimaryBlue);
}

    .result-info-label p {
        font-family: var(--font-1);
        font-weight: 500;
        line-height: 20px;
        font-style: normal;
        white-space: nowrap;
        margin: 0;
    }

    .result-info-label .required-star {
        color: var(--color-TextRedErrorText);
    }

.result-info-value {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    color: var(--color-TextBlack);
}

    .result-info-value p {
        line-height: 20px;
        white-space: nowrap;
        margin: 0;
    }

/* Search Button (in result view acts as back) */
.result-search-btn {
    background-color: var(--color-BgPrimaryBlue);
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    height: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    width: 130px;
    cursor: pointer;
    border: none;
}

    .result-search-btn p {
        font-family: var(--font-1);
        font-weight: 500;
        line-height: 24px;
        font-style: normal;
        text-overflow: ellipsis;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        font-size: 25px;
        white-space: nowrap;
        color: var(--color-TextOrgWhite);
        margin: 0;
    }

/* Document Image Container */
.result-document-container {
    background-color: var(--color-BgOrgWhite);
    position: relative;
    border-radius: 8px;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.result-document-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow: visible;
    position: relative;
    border-radius: inherit;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.result-document-image-wrapper {
    height: 100%;
    min-height: 0;
    position: relative;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.result-document-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 620px;
    min-height: 620px;
    border: 0;
}

/* Result Document Image */
.result-document-image {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* No Record Found */
.no-record-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    gap: 20px;
    width: 100%;
    height: auto;
    min-height: 220px;
    flex: 1 1 auto;
}

.no-record-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-record-text, .error-message {
    font-family: var(--font-1);
    font-size: 24px;
    color: var(--color-TextRedErrorText);
    margin: 0;
    text-align: center;
}

/* Footer Section */
.result-footer {
    background-color: var(--color-BgOrgWhite);
    position: relative;
    box-shadow: 0px 1px 4px 0px var(--color-PopupShadowx);
    flex-shrink: 0;
    width: 100%;
    padding: 16px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.result-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: inherit;
    width: 100%;
    height: 100%;
}

.result-footer-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
    position: relative;
    width: 100%;
}

.result-footer-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    padding-right: 4px;
    flex-wrap: nowrap;
}

/* Close Button (footer) */
.result-footer-close-btn {
    height: 50px;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    width: 130px;
    background-color: transparent;
    cursor: pointer;
    border: none;
    border: 1.5px solid var(--color-BodGrayMedium);
    flex: 0 0 130px;
}

.result-footer-close-btn-inner {
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    height: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    position: relative;
    border-radius: inherit;
    width: 130px;
}

.result-footer-close-btn p {
    font-family: var(--font-1);
    font-weight: 500;
    line-height: 24px;
    font-style: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    color: var(--color-TextPrimaryBlue);
    font-size: 25px;
    white-space: nowrap;
    margin: 0;
}

.result-footer-close-btn-border {
    position: absolute;
    border: 1.5px solid var(--color-BodGrayMedium);
    border-style: solid;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
}

/* Print Button */
.print-icon {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.result-print-btn {
    background-color: var(--color-BgPrimaryBlue);
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    height: 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    width: 130px;
    cursor: pointer;
    border: none;
    flex: 0 0 130px;
}

    .result-print-btn.disabled,
    .result-print-btn:disabled {
        background-color: var(--color-BgTertiaryGray) !important;
        cursor: not-allowed;
        opacity: 1;
        border: 1px solid var(--color-BodTertiaryGray);
    }

        .result-print-btn.disabled .print-icon svg path,
        .result-print-btn:disabled .print-icon svg path {
            stroke: var(--color-FillGrayMedium);
        }

        .result-print-btn.disabled p,
        .result-print-btn:disabled p {
            color: var(--color-TextGrayMedium) !important;
            opacity: 1 !important;
        }

    .result-print-btn p {
        font-family: var(--font-1);
        font-weight: 500;
        line-height: 24px;
        font-style: normal;
        text-overflow: ellipsis;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        font-size: 25px;
        white-space: nowrap;
        color: var(--color-TextOrgWhite);
        margin: 0;
    }

.result-print-btn:not(:disabled) p {
    color: var(--color-TextOrgWhite) !important;
}

/* Document Verification popup button click effects */
.result-search-btn,
.result-footer-close-btn,
.result-print-btn {
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
    will-change: transform;
}

.result-search-btn:not(:disabled):hover,
.result-print-btn:not(:disabled):hover,
.result-footer-close-btn:hover {
    transform: translateY(-1px);
}

.result-search-btn:not(:disabled):active,
.result-print-btn:not(:disabled):active,
.result-footer-close-btn:active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.96);
    box-shadow: 0 2px 8px rgba(17, 92, 146, 0.18);
}

/* Search button: press effect without translateY */
.result-search-btn:not(:disabled):hover {
    transform: scale(1.01);
}

.result-search-btn:not(:disabled):active {
    transform: scale(0.98);
    filter: brightness(0.95);
    box-shadow: none;
}

.result-search-btn:focus-visible,
.result-footer-close-btn:focus-visible,
.result-print-btn:focus-visible {
    outline: 2px solid rgba(23, 125, 183, 0.35);
    outline-offset: 2px;
}

/* Softer interaction for Print button only */
.result-print-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.result-print-btn:not(:disabled):active {
    transform: translateY(0.5px) scale(0.99);
    filter: brightness(0.98);
    box-shadow: none;
}

.result-footer-close-btn:hover,
.result-footer-close-btn:active {
    box-shadow: none;
}

.result-footer-close-btn:hover {
    transform: translateY(-2px);
}
/*Result Viewer CSS End*/
/*Responsive Mobile*/
@media screen and (max-width: 612px) {
    .result-info-row {
        flex-direction: column;
    }

    .result-info-box, .result-search-btn {
        width: 100%;
    }
}

/* Responsive popup behavior */
.modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.modal-dialog {
    width: min(540px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    margin-inline: auto !important;
    box-sizing: border-box;
}

    .modal-dialog.modal-dialog-result {
        width: 790px;
        max-width: calc(100vw - 24px);
        height: min(900px, calc(100vh - 24px));
        min-height: 0;
        max-height: calc(100vh - 24px);
        overflow: hidden !important;
    }

.modal-body {
    overflow-y: auto;
}

.result-container,
.result-body {
    min-height: 0;
}

.modal-dialog.modal-dialog-result .result-container {
    max-height: calc(100vh - 24px);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
}

.modal-dialog.modal-dialog-result .result-body {
    flex: 1 1 auto;
}

.modal-dialog.modal-dialog-result .result-container.result-loading {
    min-height: 0;
}

.modal-dialog.modal-dialog-result .result-container.result-loaded {
    min-height: 0;
}


/* Result footer alignment fix */
.modal-dialog.modal-dialog-result .result-footer {
    padding: 14px 20px 20px;
}

.modal-dialog.modal-dialog-result .result-footer-inner {
    align-items: stretch;
}

.modal-dialog.modal-dialog-result .result-footer-content {
    padding: 0;
    align-items: stretch;
}

.modal-dialog.modal-dialog-result .result-footer-buttons {
    justify-content: flex-end;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 12px;
}

@media screen and (max-width: 992px) {
    .result-document-image-wrapper {
        height: 100%;
        min-height: 0;
    }
}

@media screen and (max-width: 768px) {
    .modal-overlay {
        padding: 8px;
    }

    .modal-dialog,
    .modal-dialog.modal-dialog-result {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 14px;
        margin-inline: auto !important;
        box-sizing: border-box;
    }

    .modal-title,
    .result-header-title {
        font-size: 20px;
    }

    .input-field {
        font-size: 18px;
    }

    .info-text {
        font-size: 16px;
        line-height: 22px;
    }

    .btn,
    .result-search-btn,
    .result-footer-close-btn,
    .result-print-btn {
        height: 44px;
        width: 115px;
    }

        .result-search-btn p,
        .result-footer-close-btn p,
        .result-print-btn p {
            font-size: 20px;
            line-height: 22px;
        }

    .result-footer {
        padding: 14px;
    }

    .result-body {
        padding: 12px 12px 0;
        min-height: 0;
    }

        .result-body.without-report {
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        .result-body.with-report,
        .result-body.with-report .result-document-container,
        .result-body.with-report .result-document-image-wrapper,
        .result-body.with-report .result-document-inner {
            overflow-x: hidden !important;
            overflow-y: visible !important;
        }

            .result-body.with-report .result-document-inner {
                align-items: flex-start;
                min-width: 0;
            }

        .result-body.with-report {
            overflow-y: auto !important;
            overflow-x: hidden !important;
            padding-top: 12px !important;
            gap: 12px !important;
        }

            .result-body.with-report .result-document-container {
                width: 100% !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
                border-radius: 0 !important;
                overflow: hidden !important;
            }

            .result-body.with-report .result-document-iframe {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
            }
}

@media screen and (max-width: 612px) {
    .modal-header,
    .result-header-content {
        height: 54px;
        min-height: 54px;
    }

    .modal-title,
    .result-header-title {
        font-size: 18px;
        line-height: 20px;
    }

    .button-group {
        flex-direction: column-reverse;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .result-footer-buttons {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .result-search-btn,
    .result-info-box {
        width: 100%;
    }

    .modal-dialog.modal-dialog-result .result-footer-close-btn,
    .modal-dialog.modal-dialog-result .result-print-btn {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }

    .modal-dialog.modal-dialog-result .result-print-btn {
        order: 1;
    }

    .modal-dialog.modal-dialog-result .result-footer-close-btn {
        order: 2;
    }

    .result-document-image-wrapper {
        height: 100%;
        min-height: 0;
    }
}

@media screen and (max-width: 440px) {
    .result-container.mobile-card-mode .result-footer {
        display: none !important;
    }

    .modal-dialog.modal-dialog-result,
    .modal-dialog.modal-dialog-result .result-container {
        border-radius: 14px !important;
        overflow: hidden !important;
    }

        .modal-dialog.modal-dialog-result .result-body {
            border-radius: 0 0 14px 14px;
        }

    .mobile-card-document-container {
        margin-top: 0 !important;
    }

    .mobile-card-separator {
        width: 100%;
        border-top: 1px dashed var(--color-BodGrayMedium);
        margin: 12px 0;
    }

    .mobile-card-download-btn {
        background: var(--color-BgGreenSuccessAlert) !important;
        border-color: var(--color-BgGreenSuccessAlert) !important;
    }

    .result-body.without-report .no-record-found,
    .result-body.without-report .no-record-found.loading-state {
        min-height: 240px;
        padding: 16px 12px;
        justify-content: center;
        margin: auto 0;
    }
}

@media print {
    .result-document-image-wrapper,
    .result-document-iframe {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
}

/* Document Verification loading state */
.no-record-found.loading-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0 auto;
    gap: 18px;
}

    .no-record-found.loading-state .loadergif {
        width: 110px !important;
        height: 110px !important;
        object-fit: contain;
    }

    .no-record-found.loading-state .no-record-text {
        color: var(--color-TextBlack) !important;
        font-size: 28px;
        line-height: 1.2;
        margin: 0;
        font-family: var(--font-1);
        font-weight: 500;
    }
