.d-none {
    display: none !important;
}

.col2 {
    width: 100%;
    max-width: 1168px;
}

.box1 {
    padding: 24px 0px;
    margin: 0 auto !important;
    max-width: 800px;
}

.loader-div {
    width: fit-content !important;
}

.box1 .lineheight {
    margin: 0px !important;
}

.box1 p {
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    text-align: center !important;
    color: #49607D !important;
}

.box2_upper {
    padding: 0 !important;
}

#box2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 364px !important;
    box-shadow: 0px 4px 12px 0px #2A140E0D,
        0px 24px 64px -20px #891E0033 !important;

    &.h-fit {
        height: fit-content !important;
    }
}

.divUploadFile {
    height: 100% !important;
    border-width: 1px !important;
    min-height: 136px !important;

    &:hover {
        background-color: #f9fafe !important;
    }
}

.tool-action-area {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uploadOverlay {
    background-color: #F9FAFE !important;
    border-radius: 10px !important;
    min-height: 134px !important;
}

.overlay_p {
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    text-align: center !important;
    color: #8E9BAE !important;
    margin: 0 !important;
}

#second-loader {
    justify-content: flex-end !important;
    margin: 0px !important;
}

.inner-title {
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    text-align: center !important;
    color: #8E9BAE !important;
    margin: 0 !important;
}

.inner-title-desktop {
    display: block;
}

.inner-title-mobile {
    display: none;
}

.folderbox-bankstatement {
    display: flex;
    width: 230px !important;
    z-index: 3;
    cursor: pointer;
}

label[for="file"] {
    width: 100%;
    padding: 12px 24px;
    border: 0px !important;
    border-radius: 8px;
    background-color: #023c89;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #fff;
    transition: 0.3s ease-in-out;

    img {
        display: none;
    }

    &:hover {
        background-color: #002049 !important;
    }
}

#url-togal {
    min-width: 44px;
    min-height: 44px;
    transition: 0.3s ease-in-out !important;

    .paste-url-text {
        display: none;
    }

    &:hover {
        background-color: #edeff2 !important;
    }
}

.counter-files {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.counter-texts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.uploaded-images-text,
.converting-images-text,
.result-images-text {
    width: auto;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    text-align: left !important;
    color: #1c385c !important;
    white-space: nowrap;
}

.image-div .single-file-loader {
    width: fit-content !important;
    gap: 6px;
}

.image-div .single-file-loader .loader-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #8e9bae;
    white-space: nowrap;
}

.image-div .file-progress-loader {
    height: 12px !important;
    width: 12px !important;
}

#box2.results-mode {
    width: 100% !important;
    max-width: 1168px !important;
}

#box2.results-mode .mainUploaded {
    max-height: none;
    overflow: visible;
    padding: 0;
}

.imageUploaded.output {
    max-height: none;
    overflow: visible;
}

.imageUploaded.output .images-div {
    gap: 12px;
}

.mainUploaded {
    min-height: fit-content;
}

.imageUploaded {
    max-height: 196px;
    overflow-y: auto;
}

.images-div {
    padding: 0;

    &:has(.generated-item) {
        overflow: visible;
    }
}

.image-div {
    padding: 4px 10px 4px 5px !important;
    border: 1px solid #DDE1E7 !important;
    box-shadow: 0px 1px 2px 0px #0000000D !important;
}

.image-div-section-1,
.image-div-section-2 {
    width: fit-content;
    max-width: fit-content;
}

.crop_button {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background-color: #edeff2 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: center !important;
    color: #1c385c !important;
    transition: 0.3s ease-in-out !important;

    &:hover {
        background-color: #cfdaeb !important;
    }
}

.delete_button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    border: none;
    border-radius: 8px;
    background-color: #e853531a;
    cursor: pointer;
    transition: 0.3s ease-in-out;

    &:hover {
        background-color: #e8535333 !important;
    }
}

.action-buttons {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
}

#captcha {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.action-buttons .clearAll-btn,
#submitBtn {
    min-width: 160px;
    margin-top: 0px !important;
    padding: 12px 48px;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    border: none !important;
    box-shadow: none !important;
}

.clearAll-btn {
    max-width: fit-content !important;
    border: none !important;
    border-radius: 6px !important;
    outline: none !important;
    background-color: #E853531A !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #E85353 !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;

    &:hover {
        background-color: #e8535333 !important;
    }

    &:disabled {
        cursor: not-allowed !important;
        opacity: 0.6;
    }
}

#submitBtn {
    &:hover {
        background-color: #002049 !important;
        color: #fff !important;
    }

    &:disabled {
        cursor: not-allowed !important;
        opacity: 0.6;
    }
}

.tool-footer {
    position: static;
    padding: 0;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#clearAll-btn.clearAll-btn,
.downloadZip {
    padding: 6px 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: center;
    border: none;
    border-radius: 8px;
    color: #fff !important;
    transition: 0.3s ease-in-out;
}

#clearAll-btn {
    background-color: #e55555 !important;
}

.downloadZip {
    background: #023c89;
    cursor: pointer;

    &:hover {
        background: #002049;
    }
}

.downloadZip:disabled,
#clearAll-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.6;
}

.download_file_div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 16px;
    padding: 15px 16px;

    &.border-bottom {
        border-bottom: 1px solid #DDE1E7;
    }
}

.generated-item {
    border: 1px solid #DDE1E7;
    box-shadow: 0px 1px 2px 0px #0000000D;
    border-radius: 10px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.file_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file__name,
.file-size-text {
    font-weight: 500;
    color: #1C385C;
    font-size: 14px;
    line-height: 20px;
}

.file-size-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.size-mobile {
    display: none !important;
}

.error-border {
    border: 1px solid #E85353;
}

.file-error-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 23px;
    color: #E85353;
}

.button_div {
    display: flex;
    gap: 8px;
}

.main-btns-div:not(.d-none),
.edit-btns-div:not(.d-none) {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 178px;
}

.expand {
    background: none;
    border: none;
    cursor: pointer;
}

.camera {
    background-color: #EDEFF2 !important;
    height: 44px;
    border: none !important;
}

.edit-btn-js,
.copy-btn-js,
.single-download-toggle,
.save-btn-js,
.cancel-btn-js {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.single-download-toggle {
    background-color: #023C89;
    color: #fff;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;

    &:hover {
        background-color: #002049;
    }

    img {
        transition: 0.3s ease-in-out;
        height: 20px;
        width: 20px;
        object-fit: contain;
        padding: 0px 5px;

        &.rotate {
            rotate: 180deg;
        }
    }
}

.single-download-toggle-mobile {
    position: relative;
}

.download-option-dropdown {
    z-index: 1;
    position: absolute;
    min-width: 130px;
    max-width: fit-content;
    right: 0;
    top: 38px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 6px 16px -4px #00000024;
    background: #fff;
    padding: 4px;
    border-radius: 12px;

    button {
        padding: 8px;
        border-radius: 8px;
        background: #fff;
        transition: 0.3s ease-in-out;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        border: none;
        outline: none;
        cursor: pointer;
        color: #1C385C;

        p {
            font-weight: 500 !important;
            font-size: 12px !important;
            line-height: 16px !important;
            color: #808791 !important;
            margin: 0 !important;
        }


        &:hover {
            background-color: #F7F8FA;
        }

    }
}

.edit-btn-js,
.copy-btn-js,
.save-btn-js {
    background-color: #EDEFF2;
    color: #1C385C;

    &:hover {
        background-color: #CFDAEB;
    }
}

.cancel-btn-js {
    background-color: #E853531A;
    color: #E85353;

    &:hover {
        background-color: #E8535333;
    }
}

.file-action-btns-mobile {
    display: none !important;
}

.table-container {
    display: none;
    width: 100%;
    padding-right: 3px;
    background: #fff;
    overflow: auto;
    margin: 0 16px 15px 16px;
    max-width: calc(100% - 32px);
}

.table-container * {
    text-align: left !important;
}

.table-container h4,
.table-container h5,
.table-container h6 {
    margin: 8px 0 4px 0;
    font-weight: revert;
    color: #1C385C;
    line-height: normal;
}

.table-container ul,
.table-container ol {
    margin: 4px 0 8px 20px;
    font-size: 14px;
    color: #1C385C;
}

.table-container::-webkit-scrollbar {
    height: 6px;
}

.table-fixed {
    width: 100%;
    min-width: 800px;
    margin-bottom: 10px;
    border-spacing: 0;
    border: 1px solid #DDE1E7;

}

.table-fixed th,
.table-fixed td {
    padding: 6px;
    box-shadow: 0 0 0 0.5px #DDE1E7;
    border-collapse: collapse;
    border-spacing: 0;
    white-space: nowrap;
    text-align: left;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #1C385C;
    min-width: 92px;
}

.table-fixed th {
    box-shadow: none !important;
    border: 1px solid #DDE1E7;
    border-top: none;
}

.table-fixed thead th {
    background-color: #F6F8FB;
    font-weight: 700;
}

.table-fixed tr:hover th:not(.active-cell),
.table-fixed tr:hover td:not(.active-cell) {
    background-color: #FAFAFA;
}

.active-cell {
    background: #DDE1E7 !important;
}

.feedback_div_main:not(.d-none) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 !important;
    padding-top: 48px !important;

    .feedback_div_top {
        padding: 0px !important;

        .feed_head {
            font-weight: 700;
            font-size: 14px;
            line-height: 20px;
            color: #1c385c;
        }
    }

    .text_light {
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: #8e9bae;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

    #box2 {
        height: fit-content !important;
    }

    .counter-texts {
        gap: 8px;
    }

    .uploaded-images-text,
    .converting-images-text,
    .result-images-text {
        font-size: 16px !important;
    }

    .divUploadFile {
        border: none !important;
        min-height: 188px !important;
    }

    .tool-footer {
        display: none !important;
    }

    .inner-title-desktop {
        display: none;
    }

    .inner-title-mobile {
        display: block;
    }

    .size-desktop {
        display: none !important;
    }

    .size-mobile {
        display: block !important;
    }

    .file-name-size {
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    .file-size-text {
        position: static !important;
        transform: none !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        color: #8E9BAE !important;
    }

    .main-btns-div:not(.d-none),
    .edit-btns-div:not(.d-none) {
        gap: 5px;
        min-width: fit-content;
    }

    label[for="file"] img {
        display: flex;
    }

    .download_file_div {
        padding: 8px;
    }

    .table-container {
        margin: 0 8px 8px 7px;
        max-width: calc(100% - 16px);
    }

    .expand {
        display: flex;
    }

    .generated-item {
        gap: 8px;
    }
}


@media (max-width: 496px) {

    .file-action-btns-desktop {
        display: none;
    }

    .file-action-btns-mobile {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0px !important;
        background: transparent !important;
    }

    .button_div {
        gap: 5px !important;
    }

    .main-btns-div:not(.d-none),
    .edit-btns-div:not(.d-none) {
        min-width: auto;
    }
}

@media(max-width: 375px) {

    .clearAll-btn,
    .submitBtn {
        min-width: calc(50% - 2px) !important;
        width: calc(50% - 2px) !important;
        white-space: nowrap !important;
        max-width: 50% !important;
        padding: 12px !important;
    }
}

.table-container {

    section {
        margin-bottom: 50px;
    }

    h1 {
        color: #1a3c6e;
        font-weight: 600;
        font-size: 26px;
        line-height: 32px;
    }

    h2 {
        color: #1a3c6e;
        font-weight: 600;
        font-size: 22px;
        line-height: 28px;
        border-bottom: 2px solid #1A3C6E;
        margin: 10px 0;
        display: inline-block;
        width: 100%;
        padding-bottom: 10px;
    }

    h3 {
        color: #1a3c6e;
        font-weight: 600;
        font-size: 18px;
        line-height: 24px;
        border-bottom: 2px solid #1A3C6E;
        margin: 10px 0;
        display: inline-block;
        width: 100%;
        padding-bottom: 10px;
    }

    div {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 3px 0;
    }

    p {
        margin-top: 8px !important;
        padding: 6px 10px;
        background: #F7F8FA;
        border-left: 2px solid #DDE1E7;
        border-radius: 0 2px 2px 0;
        font-weight: 500 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        color: #49607D !important;
        width: 100% !important;

    }

    hr {
        margin: 16px 0 !important;
    }

    span {
        min-width: 200px;
        margin-top: 8px !important;
        padding: 6px 10px;
        background: #F7F8FA;
        border-left: 2px solid #DDE1E7;
        border-radius: 0 2px 2px 0;
        font-weight: 600 !important;
        font-size: 12px !important;
        line-height: 16px !important;
        color: #49607D !important;
        width: 100% !important;
    }

    p span {
        background: none !important;
        border-left: none !important;
    }


    thead th,
    thead td {
        background-color: #1a3c6e !important;
        color: #fff;
        padding: 8px 10px;
        white-space: nowrap;
        border: 1px solid #12306a;
        font-weight: 600;

        &:hover {
            background-color: #1a3c6e !important;
            color: #fff;
            padding: 8px 10px;
            white-space: nowrap;
            border: 1px solid #12306a;
            font-weight: 600;
        }
    }

    ul {
        list-style: none;
        margin: 0;

        li {
            color: #555;
            margin: 6px 0;
            padding: 6px 10px;
            background: #f8f9fd;
            border-left: 3px solid #ccd6e8;
            border-radius: 0 4px 4px 0;
            display: flex;
            gap: 16px;

            span {
                font-weight: 500;
            }
        }
    }
}