@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html, body {
    padding-top: 12px;
    margin: 0px;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0px;
}

.wt-page {
    height: 100%;
    width: 100%;
}

    .wt-page .wt-content {
        height: 100%;
        width: 100%;
    }

        .wt-page .wt-content .wt-section {
            padding: 16px;
            border-radius: 12px;
            margin-bottom: 16px;
            overflow: hidden;
            background-color: #FFF;
        }

            .wt-page .wt-content .wt-section .wt-section-header {
                padding-bottom: 8px;
                font-size: 14px;
                font-weight: 700;
            }

            .wt-page .wt-content .wt-section .wt-section-group {
                display: flex;
                flex-direction: column;
                padding-block: 8px;
                font-size: 12px;
                border-top: 1px solid #E9E9E9;
                gap: 12px;
            }

                .wt-page .wt-content .wt-section .wt-section-group:last-child {
                    padding-bottom: 0px;
                }

                .wt-page .wt-content .wt-section .wt-section-group .wt-grid {
                    display: grid;
                    grid-template-columns: auto;
                    gap: 16px;
                }

.wt-session-info {
    display: grid;
    grid-template-columns: auto;
    width: 100%;
    gap: 12px;
}

.wt-session-info-with-image {
    grid-template-columns: auto;
}

.wt-session-info .wt-session-image {
    height: 100px;
    width: 100px;
    margin: auto;
}

    .wt-session-info .wt-session-image img {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }

.wt-session-info .wt-session-body {
    display: grid;
    grid-template-columns: auto;
    gap: 8px;
}

.wt-session-info .wt-session-line span:nth-child(2) {
    font-weight: 700;
}

.wt-combobox {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .wt-combobox .wt-combobox-label {
        font-size: 12px;
    }

    .wt-combobox .wt-combobox-select {
        padding: 4px;
        border-radius: 4px;
    }

    .wt-combobox .wt-combobox-helper {
        font-weight: 600;
        color: #909090;
    }

    .wt-combobox .wt-combobox-error {
        font-weight: 600;
        color: red;
    }

.wt-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .wt-checkbox * {
        cursor: pointer;
    }

    .wt-checkbox .wt-checkbox-label {
        padding-left: 4px;
    }

.wt-textbox {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wt-textbox-input {
    padding-block: 5px;
    padding-inline: 7px;
    border-radius: 4px;
    border-width: 1px;
}

.wt-table-wrapper {
    border-radius: 8px;
    border: 1px solid #D9D9D9;
    overflow: hidden;
}

.wt-table {
    height: 100%;
    width: 100%;
    border-collapse: collapse;
}

    .wt-table tr {
        height: 34px;
        border-bottom: 1px solid #D9D9D9;
    }

        .wt-table tr:last-child {
            border: none;
        }

        .wt-table tr:not(:first-child):hover {
            background-color: #F4F4F4;
        }

    .wt-table th {
        padding-inline: 8px;
        text-align: left;
        font-size: 12px;
        color: #707070;
        background-color: #F4F4F4;
        width: 20%;
    }

    .wt-table td {
        padding-inline: 8px;
        font-size: 12px;
    }

        .wt-table td:first-child {
            font-weight: 700;
        }

        .wt-table td .wt-badge-state {
            padding: 3px 6px;
            border-radius: 4px;
            font-weight: 600;
        }

            .wt-table td .wt-badge-state.wt-created {
                background-color: lightgreen;
            }

            .wt-table td .wt-badge-state.wt-not-created {
                background-color: lightcoral;
            }

        .wt-table td button {
            min-width: 80px;
            padding-inline: 8px;
            padding-block: 6px;
        }

            .wt-table td button:disabled {
                cursor: not-allowed;
                color: #AAA;
            }

    .wt-table .wt-table-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-block: 4px;
        align-items: center;
    }

.wt-primary-button {
    padding-inline: 12px;
    padding-block: 8px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    color: #FFF;
    background-color: #303030;
}

    .wt-primary-button:hover {
        background-color: #101010;
    }

.wt-secondary-button {
    padding-inline: 12px;
    padding-block: 8px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    color: #000;
    background-color: #E9E9E9;
}

    .wt-secondary-button:hover {
        background-color: #C9C9C9;
    }

.wt-authentication {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 500px;
    width: 100%;
}

    .wt-authentication .form-space {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 16px;
        gap: 16px;
    }

        .wt-authentication .form-space .login-title {
            font-size: 24px;
            color: #202020;
        }

        .wt-authentication .form-space form {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 12px;
            width: 100%;
        }

            .wt-authentication .form-space form .input-item {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

                .wt-authentication .form-space form .input-item label {
                    font-size: 13px;
                    color: #202020;
                }

                .wt-authentication .form-space form .input-item input {
                    padding: 8px;
                    border: 1px solid #808080;
                    border-radius: 8px;
                }

            .wt-authentication .form-space form .submit-btn {
                padding-inline: 12px;
                padding-block: 8px;
                border-radius: 8px;
                border: none;
                outline: none;
                font-size: 12px;
                line-height: 12px;
                font-weight: 600;
                height: fit-content;
                width: fit-content;
                cursor: pointer;
                color: #FFF;
                background-color: #303030;
            }

                .wt-authentication .form-space form .submit-btn:hover {
                    background-color: #101010;
                }

            .wt-authentication .form-space form .error-message {
                font-size: 12px;
                font-weight: 700;
                color: red;
            }

    .wt-authentication .banner-space {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        text-align: center;
        background-image: url("../assets/login.png");
        background-size: cover;
        background-position: center;
    }

        .wt-authentication .banner-space .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
            width: 300px;
        }

            .wt-authentication .banner-space .container .logo {
                display: block;
                height: auto;
                width: 100%;
            }

            .wt-authentication .banner-space .container span {
                font-size: 28px;
                font-weight: 700;
                line-height: 34px;
            }

.wt-enterprises-title {
    text-align: center;
    margin-bottom: 20px;
}

    .wt-enterprises-title h1 {
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 8px;
    }

    .wt-enterprises-title h4 {
        font-size: 18px;
        line-height: 18px;
        font-weight: 400;
    }

.wt-enterprises-list {
    display: grid;
    grid-template-columns: auto;
    gap: 0px 16px;
}

    .wt-enterprises-list .wt-enterprise {
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow: hidden;
    }

        .wt-enterprises-list .wt-enterprise .logo {
            width: 150px;
            height: 150px;
            object-fit: contain;
            margin: auto;
        }

            .wt-enterprises-list .wt-enterprise .logo.no-logo {
                opacity: 5%;
            }

        .wt-enterprises-list .wt-enterprise .name {
            font-size: 16px;
            line-height: 20px;
            text-align: center;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .wt-enterprises-list .wt-enterprise button {
            padding-inline: 12px;
            padding-block: 6px;
            width: 100%;
            border: 1px solid #909090;
            border-radius: 8px;
            background-color: #F6F6F6;
            font-weight: 600;
            cursor: pointer;
        }

            .wt-enterprises-list .wt-enterprise button:hover {
                background-color: #E6E6E6;
            }

@media only screen and (min-width: 700px) {
    .wt-page .wt-content {
        width: 650px;
        margin: auto;
    }

    .wt-session-info .wt-session-body {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
    }

    .wt-session-info-with-image {
        grid-template-columns: auto 1fr;
    }

    .wt-page .wt-content .wt-section .wt-section-group .wt-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wt-enterprises-list {
        grid-template-columns: 1fr 1fr;
    }

    .wt-table-actions {
        flex-direction: row !important;
        padding-block: 0px !important;
    }
}

@media only screen and (min-width: 1000px) {
    .wt-page .wt-content {
        width: 950px;
        margin: auto;
    }

    .wt-enterprises-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Extras */
#orderstate_div {
    display: none;
}

#transportorigin_div {
    display: none;
}

#transportcustom_div {
    display: none;
}

#codeprefix_div {
    display: none;
}

#codedigits_div {
    display: none;
}

#coderesult_div {
    display: none;
}

#stockentrytype_div {
    display: none;
}

#stockentryserie_div {
    display: none;
}

.wt-message {
    padding: 8px;
    min-height: 30px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-weight: 600;
}

.wt-message.success {
    background-color: lightgreen;
}

.wt-message.error {
    background-color: lightcoral;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.spinner {
    border: 6px solid #fff;
    border-top: 6px solid #f8981d;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 16px;
    color: #000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}