
/* overwrite */
.gd-upload {
    margin-bottom: 0;
}

.gd-upload__legal {
    margin-bottom: 3rem;
}

.gd-supported-formats {
    max-width: 1170px;
}


.gd-see-also__list {
    flex-wrap: wrap;
}


.gd-upload__tip--progress {
    text-transform: uppercase;
}

.gd-see-also__link {
    font-size: 0.875rem;
}

/* overwrite end */


.gd-upload-ocr-settings {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.gd-section-parser-header {
    margin-bottom: 9rem;
}

.gd-result-panel {
    margin-bottom: 9rem;
}

.gd-result {
    width: 100%;
    max-width: 46rem;
    background-color: #fff;
    border-radius: 2px;
    padding: 4rem 2rem;
    margin: 0 auto;
    margin-bottom: 4rem;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
}


.gd-result__header {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
}


.gd-result__btn-box {
    display: flex;
    justify-content: center;
}

.gd-result__btn {
    color: #fff;
    background: #0DC268;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.2rem;
    height: 2.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    outline: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}


    .gd-result__btn:hover {
        color: #fff;
        background: #0baf5d;
    }


.gd-result__footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-active);
    font-size: 0.875rem;
    gap: 1.5rem;
}

    .gd-result__footer-links > a {
        color: var(--text-color-active);
    }

.gd-result__link {
    padding-left: 1.7rem;
    background-size: 1.2rem;
    background-repeat: no-repeat;
    line-height: 1.2rem;
}

.gd-result__link--repeat {
    background-image: url(../img-redesign/parser-icons.svg#reload);
}

.gd-result__link--cloud {
    background-image: url(../img-redesign/parser-icons.svg#cloud);
}

.gd-email {
}

.gd-email__header {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6rem;
    text-align: center;
    margin-bottom: 1.5rem
}

.gd-email-form {
    display: flex;
    justify-content: center;
}

.gd-email-form__email {
    all: unset;
    border-bottom-left-radius: 0.3rem;
    border-top-left-radius: 0.3rem;
    border: 1px solid var(--border-color);
    border-right: none;
    height: 2.75rem;
    width: 20rem;
    box-sizing: border-box;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    background-color: #fff;
}

.gd-email-form__btn {
    all: unset;
    cursor: pointer;
    background-color: var(--control-color);
    color: #fff;
    background-image: url(../img-redesign/parser-icons.svg#mail);
    background-size: 1.6rem;
    background-repeat: no-repeat;
    background-position: center center;
    width: 2.75rem;
    height: 2.75rem;
    border-bottom-right-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

    .gd-email-form__btn[disabled] {
        opacity: 0.5;
        cursor: wait;
    }

.gd-upload-ocr-text {
    display: block;
    font-weight: 400;
    font-size: 0.875rem;
    color: #6f6f6f;
    /* margin: -10px auto 20px auto; */
    /* text-align: center; */
    margin-bottom: 0.75rem;
}

.gd-upload-select {
    height: 3.25rem;
    width: 15rem;
    font-size: 1rem;
    padding: 0 0.75rem;
    background: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    border-color: var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,.04),0 0 2px rgba(0,0,0,.06),0 0 1px rgba(0,0,0,.04);
    display: block;
    margin: auto auto 30px auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent !important;
    background-repeat: no-repeat !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
    background-position-x: 95% !important;
    background-position-y: 50% !important;
}

/* viewer */
.gd-viewer-result pre {
    max-height: 50vh;
    overflow: auto;
    margin-bottom: 3rem;
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 3px;
}


.gd-viewer-result #imageContainer {
    text-align: center;
    margin-bottom: 3rem;
}

    .gd-viewer-result #imageContainer > img {
        max-width: 16rem;
        max-height: 16rem;
        margin: 0.5rem;
        cursor: pointer;
    }

.gd-result-error {
    background-color: #ffeded;
    color: #e13535;
    margin-bottom: 3rem;
    padding: 1rem;
    border-radius: 3px;
    font-size: 1.125rem;
    text-align: center;
}

.viewer-link {
    cursor: pointer;
    color: blue !important;
}

    .viewer-link:hover {
        color: darkblue !important;
        background-color: silver;
    }

.viewerarea {
    margin-top: 50px;
    padding: 25px;
    background: white;
    border-radius: 8px;
}

    .viewerarea a {
        cursor: pointer;
    }

    .viewerarea .table {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    .viewerarea .row {
        display: table-row;
        width: 100%;
    }

        .viewerarea .row:hover {
            background-color: lightgray;
        }

    .viewerarea .cell {
        display: table-cell;
        padding: 10px;
        color: black;
        width: auto;
    }

    .viewerarea .cellheader {
        display: table-cell;
        padding: 10px;
        width: 100%;
    }

        .viewerarea .cellheader .fileDir {
            color: darkgrey;
        }

        .viewerarea .cellheader .fileName {
            color: black;
        }

    .viewerarea .header {
        font-weight: bold;
        background-color: lightgray;
    }

    .viewerarea > pre {
        text-align: left;
        max-height: 50vh;
    }

        .viewerarea > pre > div > span {
            color: darkgray;
        }

        .viewerarea > pre > div > a {
            cursor: pointer;
        }

    .viewerarea > #imageContainer > img {
        max-width: 256px;
        max-height: 256px;
        margin: 5px;
        cursor: pointer;
    }

    .viewerarea > div:last-of-type {
        margin-top: 25px;
    }

#backToFiles {
    display: block;
    cursor: pointer;
    margin-bottom: 20px;
    margin-top: 20px;
}

@media only screen and (max-width: 480px) and (orientation: portrait) {
    .btn {
        margin: 5px;
    }

    .viewerarea .table {
        display: flow !important;
        width: 100%;
        border-collapse: collapse;
    }

    .viewerarea .row {
        display: flow-root !important;
        width: 100%;
    }

        .viewerarea .row:hover {
            background-color: lightgray;
        }

        .viewerarea .row::after {
            white-space: normal !important;
        }

        .viewerarea .row:before {
            white-space: normal !important;
        }

    .viewerarea .cell {
        display: none;
        margin-left: 15px;
        padding: 5px;
        color: black;
        width: auto;
    }

    .viewerarea .visiblecell {
        display: block;
    }

    .viewerarea .cellheader .fileDir {
        display: block;
        color: darkgrey;
    }

    .viewerarea .cellheader .fileName {
        color: black;
    }
}

@media screen and (max-width: 750px) {

    .gd-upload-ocr-settings {
        flex-direction:column;
    }
    .gd-upload-select {
        width:100%;
    }


    .gd-result__footer-links {
        flex-direction: column;
    }
}
