a {
    text-decoration: none;
    color: currentColor;
    cursor: pointer;
}

h3 {
    text-transform: none;
}

h4 {
    font-size: 16px;
    text-transform: uppercase;
}

h5 {
    margin: 0;
    font-size: 16px;
}

body {
    font-family: brandon-grotesque, sans-serif !important;
}

#container {
    padding-top: 0;
}

.mw-840 {
    max-width: 840px;
}

.portal-collapse-wrapper {
    padding: 1rem 0;
    background: #d2c7bd;
}

.portal-collapse-wrapper .input-group {
    max-width: 300px;
}

.grecaptcha-badge {
    display: none !important;
}

#portal__admin_bar {
    display: flex;
    position: relative;
    top: -1rem;
}

#portal__admin_bar>div {
    width: auto;
}

/* Bootstrap overrides */
.form-select:focus {
    box-shadow: none;
}

.form-select:focus {
    border-color: var(--bs-border-color);
}

#container input[type="checkbox"]:not([role="switch"]) {
    box-shadow: none;
    border: 1px solid;
    background-color: #fff;
}

#container .btn-sm,
#container .btn-group-sm>.btn,
#container .input-group-sm>btn {
    font-size: 14px;
    /*   padding: 0.18rem 0.5rem; */
}

#container .was-validated .form-check-input:invalid,
#container .form-check-input.is-invalid {
    border-color: var(--bs-danger) !important;
    border-width: 1px;
    border-style: solid;
}

#container .was-validated .form-check-input:valid~.form-check-label,
#container .form-check-input.is-valid~.form-check-label {
    color: inherit;
}



.form-check-input:checked:not([role="switch"]) {
    background-color: #fff;
    border-color: var(--bs-primary);
    box-shadow: none;
    background: url(img/x.svg) center center no-repeat;
}

.btn:focus-visible {
    box-shadow: none;
}

.form-switch .form-check-input:checked {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e")
}

.form-switch .form-check-input:checked {
    background-color: #fff;
    border-color: #000;
}

.dropdown-menu {
    font-size: .9rem;
}


/* Preloaders */
.portal--template-preloader {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

/* Header */
#kundportal {
    font-size: 1.05rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
}

.fop-logo {
    font-size: 20px;
    text-transform: uppercase;
}

#kundportal__topbar {
    padding: 1rem 2vw;
    background: var(--bs-fks-pastel-pink-dark);
    font-size: .9rem;
    border-bottom: .5px solid var(--bs-primary);
}

#kundportal__breadcrumb a:hover {
    transition: opacity .2s;
}

#kundportal__breadcrumb a:hover {
    opacity: .35;
}

#kprtl_topbar_customer {
    display: flex;
    justify-content: space-between;
}

/* Tables */

table {
    border-collapse: separate;
    border-spacing: 0 1px;
}

th {
    font-weight: 400;
}

.th-extra * {
    padding-top: 0 !important;
}

.th-inner {
    padding-bottom: 0 !important;
}

td {
    padding: 0.4rem;
}


.fop-price {
    display: none;
}

/* Sent Emails Table */

th,
td {
    padding: 0.4rem 1rem;
}

th:first-child {
    padding-left: 0;
}

/* Fop Contacts */

#fop_contacts td:first-child {
    width: 140px;
    font-weight: 500;
}

/* Admin Tables */

#admin_modules {
    opacity: 0;
    transition: opacity 0.2s;
}

th[data-field='5'] {
    min-width: 145px;
}

td[data-status='offert_sent'] {
    background: #9bd8a1;
}

td[data-status='email_saved'] {
    background: #c5e6ff;
}

.modal,
body.modal-open {
    padding-right: 0 !important;
}

.ma-toggle-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ma-toggle-modal:hover {
    cursor: pointer;
}

.ma-checkbox.working {
    background-color: #888888;
    border-color: #8c8c8c;
    box-shadow: 0 0 0 0.25rem rgb(206 206 206 / 50%);
}

.ma-checkbox.success {
    background-color: #157347;
    border-color: #146c43;
    box-shadow: 0 0 0 0.25rem rgb(60 153 110 / 50%);
}

/* GUI */

#pg_intro {
    display: flex;
    align-items: center;
    padding: 6vw 0;
    justify-content: center;
}

#portal_logo img {
    max-width: 250px;
    margin: auto;
    display: block;
}

#pg_intro>div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#portal__header_login {
    margin-top: 2rem;
    text-align: center;
}


.fop-wrapper {
    margin: 2rem 0 1rem;
}

#portal_wrapper {
    display: grid;
    grid-template-columns: 24% auto;
}

#portal_wrapper h4 {
    color: #808080;
    font-size: 14px;
}

#portal_main {
    padding: 30px;
    background: #f3f3f3;
}

.modal-header {
    border: 0;
}

#pscroller {
    height: calc(100vh - 6rem);
}

.iScrollVerticalScrollbar {
    top: 70px !important;
}

.alert {
    position: absolute;
    width: calc(100% - 20px);
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: none;
    align-items: center;
}

#container input,
#container select {
    font-family: brandon-grotesque, sans-serif;
}

.editableform-loading {
    background-image: url('/wp-content/plugins/fks-sketch-v5_15/img/270-ring.svg') !important;
    background-size: 18px 18px !important;
    background-position: center left !important;
}

.editable-inline .editableform-loading {
    background-position: left 5px;
}

.editable-input input[type='text']:focus-visible {
    outline: none;
}

.status-icons {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    background: #fff;
    z-index: 2;
}

.working .status-icons {
    display: flex;
}

.success-checkbox,
.spinner,
.fks--error {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.working .spinner {
    opacity: 1;
}

.success .success-checkbox {
    opacity: 1;
}

.dpr-trash {
    width: 50px;
}

.dpr-trash div {
    display: none;
    position: relative;
    z-index: 33;
}

#fop_docs tbody tr:hover .dpr-trash div {
    display: flex;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ded2c5;
}

.fks--ux-pill {
    position: absolute;
    top: 0;
    left: 0;
}

.fks--ux-pill span {
    padding: 2px 7px;
    background: #b5aa9f;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 6px;
}

/* Progress Indicator */

#progress_indicator h6 {
    font-weight: 400;
}

.progress-cell {
    margin-bottom: 10px;
    padding: 1rem;
    background: #f3f3f3;
    border-radius: 2px;
}

.progress-cell>div {
    display: flex;
    align-items: center;
}

.progress-circle {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* NCS colors */

.ncs-select {
    display: none;
}

.selectize-control.single .selectize-input:after {
    display: none;
}

#portal_main .selectize-input {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 0.25rem;
}

#portal_main .ncs-cell {
    width: 300px;
    padding-right: 80px;
    padding-left: 0;
    position: relative;
    align-items: center;
    vertical-align: middle;
}

.ncs-cell .status-icons {
    justify-content: flex-start;
    right: auto;
    left: 12px;
}

.ncs-cell .success-checkbox,
.ncs-cell .spinner,
.ncs-cell .fks--error {
    width: 20px;
    height: 20px;
}

input[type='select-one'] {
    max-width: 100% !important;
    position: absolute !important;
}

.ncs-controls {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
}

.ncs-link {
    position: relative;
    left: 13px;
    opacity: 1;
    transition: opacity 0.2s;
}

.ncs-link:hover {
    cursor: pointer;
}

td.working .ncs-link {
    opacity: 0;
}

.ncs-buttons {
    position: relative;
    right: 7px;
    display: none;
}

td.select-active .ncs-link {
    opacity: 0;
}

td.select-active .selectize-control {
    display: block;
}

td.select-active .ncs-buttons {
    display: flex;
}

.doc-icon {
    width: 30px;
    height: auto;
}

.portal-upload-wrapper .fw--container {
    display: none;
}

.pdf-exists .portal-upload-form {
    display: none;
}

.pdf-exists .portal-upload-wrapper .fw--container {
    display: flex;
}

/* Portal Grid */

.prtl--wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(416px, 25%) minmax(200px, 75%);
    column-gap: 1px;
    row-gap: 1px;
    font-size: 0.9rem;
}





#fop_contacts .popover-content {
    padding: 7px 9px;
}


.prtl--box {
    padding: 2vw;
    background: var(--bs-fks-pastel-pink-dark);
}

.prtl--table {
    margin-top: 2rem;
    border-top: 1px solid #767676;
}

#invoice_row_advance_invoice {
    border-top: 1px solid #767676;
    margin-top: 3rem;
}

/* Table row */
.prtl--row-wrapper {
    position: relative;
}

.prtl--table-row {
    min-height: 45px;
    display: grid;
    grid-template-columns: 166px 300px auto 43px 78px;
    column-gap: 10px;
    border-bottom: 1px solid #767676;
    position: relative;
}

/* B2b row */
.prtl--table-row.b2b-order {
    min-height: 45px;
    display: grid;
    grid-template-columns: auto 43px 78px 24px;
    column-gap: 10px;
    border-bottom: 1px solid #767676;
    position: relative;
}

/* Accessories row */
#pg_accessories .prtl--table-row {
    display: grid;
    grid-template-columns: 166px auto max-content 43px 78px;
    column-gap: 10px;
}

#pg_accessories .prtl--table-row .prtl--doc-move {
    justify-content: flex-end;
}

/* Admin accessories row */
.is_admin #pg_accessories .prtl--table-row {
    display: grid;
    grid-template-columns: 166px 300px auto max-content 43px 78px 24px;
    column-gap: 10px;
}

.prtl--user-accept {
    line-height: 1.2;
    font-size: 13px;
}

/* Manual order row */
/* Table row */


.prtl--table-row.manual-order {
    min-height: 45px;
    display: grid;
    grid-template-columns: 166px 300px auto 78px;
    column-gap: 10px;
    border-bottom: 1px solid #767676;
    position: relative;
}

.prtl--table-row.manual-order.pdf-exists {
    min-height: 45px;
    display: grid;
    grid-template-columns: 166px auto 43px 78px 24px;
    column-gap: 10px;
    border-bottom: 1px solid #767676;
    position: relative;
}

.prtl--table-row.manual-order.pdf-exists .prtl--table-form form {
    display: none;
}



.badge {
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
}

.prtl--table-row>div {
    padding: 0.2rem 0;
    display: flex;
    align-items: flex-end;
}

.prtl--doc-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
}

.prtl--doc-title[data-bs-toggle="collapse"] {
    opacity: 1;
    transition: opacity .2s;
    cursor: pointer;
    font-weight: 700;
}

.prtl--doc-title[data-bs-toggle="collapse"]:hover {
    opacity: .5;
}

.prtl--doc-move {
    display: flex;
    align-items: center;
}


.btn--delete-b2b-doc,
.prtl--table-row .psu-trash,
.prtl--table-row .psu-trash-invoice,
.psu-trash-b2b,
.psu-trash-manual,
.oiw--top-row .psu-trash-other {

    background: url(../img/trash.svg) no-repeat;
    background-size: 16px 16px;
    background-position: center center;
}

.prtl--table-row .psu-trash,
.prtl--table-row .psu-trash-invoice,
.oiw--top-row .psu-trash-other {
    display: none;
}

.psu-trash-b2b,
.psu-trash-manual,
.btn--delete-b2b-doc {
    width: 32px;
    height: 25px;
    display: flex;
    cursor: pointer;
    align-self: flex-end;
}

.pdf-exists .psu-trash,
.pdf-exists .psu-trash-invoice {
    width: 32px;
    display: flex;
}


.portal--pbtn-wrapper {
    display: none;
}


.prtl--table-row h4 {
    margin: 0;
    font-size: 0.9rem;
}

.prtl--btn-download,
.prtl--table-row h4 {
    display: none;
}

.prtl--table-row.pdf-exists h4 {
    display: block;
    font-weight: 400;
}

.prtl--table-row .prtl--status,
.prtl--table-row .prtl--aid-pill,
.prtl--table-row .prtl--js-viewer a,
.prtl--table-row .btn--send-accessory {
    display: none;
}

.prtl--table-row.pdf-exists .prtl--status,
.prtl--table-row.pdf-exists .prtl--aid-pill,
.prtl--table-row.pdf-exists .prtl--js-viewer a,
.prtl--table-row.pdf-exists .btn--send-accessory {
    display: flex;
}

.prtl--status {
    position: absolute;
    top: 0;
    left: 50px;
}

.prtl--user-accept form {
    width: 100%;
}

.pdf-exists .prtl--btn-download {
    display: block;
    white-space: nowrap;
}

.prtl--doc-move button {
    white-space: nowrap;
}

.pdf-exists form.uploadPDF {
    display: none;
}

.pdf-exists .prtl--submit,
.pdf-exists .btn--create-offert {
    display: none;
}

.psu-trash,
.psu-trash-invoice {
    display: flex;
    justify-content: center;
}

.psu-trash:hover,
.psu-trash-invoice:hover {
    cursor: pointer;
}

.prtl--sent-pdfs div {
    display: inline-block;
    transition: opacity 0.2s;
}

.prtl--sent-pdfs div:hover {
    cursor: pointer;
    opacity: 0.3;
}

.prtl--sent-pdfs div:not(:last-child):after {
    content: ' | ';
    margin: 0 2px;
}



#ptrl__left {
    border-right: 0.5px solid var(--bs-primary);
}

@media screen and (max-width: 1390px) {
    .prtl--box {
        padding: 2vw;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row {
        grid-template-columns: 41px auto 71px;
        grid-template-rows: auto auto auto;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row .prtl--doc-move {
        justify-content: flex-start;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row .prtl--doc-title {
        grid-column-start: 1;
        grid-column-end: 4;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row .prtl--table-form {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row: 2;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row .prtl--js-viewer {
        grid-row: 3;
    }
}

@media screen and (max-width: 1300px) {
    .is_admin #pg_accessories .prtl--table-row {
        grid-template-columns: 70px 40px auto;
        grid-template-rows: auto auto auto auto;
    }

    .is_admin #pg_accessories .prtl--table-row .prtl--table-form {
        grid-row: 2;
        grid-column-start: 1;
        grid-column-end: 4;
    }

    .is_admin #pg_accessories .prtl--table-row .prtl--js-viewer {
        grid-row: 3;
        grid-column-start: 2;
        grid-column-end: 3;
    }

    .is_admin #pg_accessories .prtl--table-row .prtl--doc-move {
        grid-row: 3;
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .is_admin #pg_accessories .prtl--table-row .psu-trash {
        grid-row: 3;
        grid-column-start: 3;
        grid-column-end: 4;
    }

    .is_admin #pg_accessories .prtl--table-row .portal-doc-status {
        grid-row: 4;
        grid-column-start: 1;
        grid-column-end: 4;
    }
}

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


    .portal-doc-status {
        top: -1rem;
    }

    #pg_underlag .prtl--table-row {
        grid-template-columns: 40px auto;
        grid-template-rows: auto auto auto;
    }

    #pg_underlag .prtl--table-row .prtl--doc-title {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    #pg_underlag .prtl--table-row .prtl--table-form {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    #pg_underlag .prtl--table-row .prtl--js-viewer {
        grid-row: 3;
    }

    #pg_underlag .prtl--table-row .prtl--doc-move {
        grid-row: 3;
    }
}



@media screen and (max-width: 1140px) {
    body:not(.is_admin) #pg_accessories .prtl--table-row {
        grid-template-columns: 42px auto;
        grid-template-rows: auto auto auto auto;
    }

    body:not(.is_admin) #pg_accessories .prtl--user-accept {
        grid-row: 4;
    }

    body:not(.is_admin) #pg_accessories .prtl--doc-move {
        grid-row: 3;
        justify-content: flex-start;
    }

    body:not(.is_admin) #pg_accessories .prtl--user-accept {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row .prtl--doc-title {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    body:not(.is_admin) #pg_accessories .prtl--table-row .prtl--table-form {
        grid-column-start: 1;
        grid-column-end: 3;
    }
}


@media screen and (max-width: 991px) {
    .prtl--wrapper {
        min-height: 0;
        grid-template-columns: auto;
    }

    #ptrl__left {
        margin-bottom: 2rem;
        border: 0;
    }

    #kundportal {
        font-size: 1rem;
    }

    #pg_intro {
        display: none;
    }

    #pg_accessories .prtl--row-wrapper:last-child .prtl--table-row {
        border: none;
    }

    .prtl--table-row {
        padding: .5rem 0;
    }
}


/* Portal alert */

#portal_alert {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.pa-alert #portal_alert {
    display: block;
}

#portal_pdf {
    display: none;
    width: 100%;
    height: 100%;
    padding-top: 60px;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 2;
}

#viewer {
    display: inline-block;
    width: 100%;
    height: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    overflow: hidden;
    opacity: 0;
}

.pa-pdf #viewer {
    opacity: 1;
    height: 100vh;
    z-index: 3;
}

body.pa-pdf {
    overflow: hidden;
}

#viewer>div {
    height: 50px;
    padding: 0 20px;
    justify-content: space-between;
    align-content: center;
    display: none;
}

#viewer #pa--close {
    width: 20px;
    height: auto;
    position: initial;
}

#viewer .custom-ribbons-container {
    display: none;
}

.pa--container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

.pa--window {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    background: #fff;
}

.pa--msg {
    margin-bottom: 20px;
}

#pa--close {
    width: 26px;
    height: 26px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 3;
}

.fade.in {
    opacity: 1;
}

#portal_404 {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #ded2c5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#p404_wrapper {
    text-align: center;
}

#p404_wrapper img {
    width: 200px;
    height: auto;
}

#portal_footer {
    padding: 2vw;
    border-top: 1px solid #767676;
    background: #ded2c5;
    display: none;
}

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

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

/* Admin modul page */
.rep_region select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    padding: 0px 2px;
    border-color: #000;
}

/* Offert UX */
#portal_iframe {
    display: none;
    width: 100%;
    height: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    overflow-y: scroll;
    opacity: 0;
}

.pa-offert #portal_iframe {
    opacity: 1;
    height: 100vh;
    display: block;
}

body.pa-offert {
    overflow: hidden;
}

#pow__header {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: #efefef;
    display: flex;
    justify-content: space-between;
    align-content: center;
    position: fixed;
    z-index: 2;
}

#portal_iframe #pa--close {
    width: 20px;
    height: auto;
    position: initial;
}



#pow__create_offert {
    position: absolute;
    right: 100px;
    top: 10px;
}

/* Offert template */
#pow__print_container {
    width: 870px;
}

.pot--header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
}

.pot--header-title {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
}

.pot--header h2 {
    margin: 0 24px 0 0;
    font-weight: 300;
}

.pot--header-date {
    margin-bottom: 24px;
}

.pot--body {
    width: 744px;
}

.pot--body>p {
    margin-bottom: 36px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

#pot__handle_checkbox {
    width: 200px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

#pot__handle_checkbox img {
    width: 15px;
    height: 15px;
}

#pot__handle_checkbox div {
    margin-left: 24px;
}

#pot__product_list div {
    display: flex;
}

#pot__product_list div div:first-child {
    width: 128px;
}

#pot__price {
    margin-top: 36px;
    display: flex;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

#pot__order_id {
    display: flex;
}

#pot__order_id input[type="checkbox"] {
    margin: 0;
    padding: 0;
}

#pot__handle_checkbox input[type="checkbox"] {
    display: none;
}

#pot__handle_checkbox span {
    padding-left: 34px;
    top: 2px;
    position: relative;
}

#pot__handle_checkbox input+label {
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-image: url(/wp-content/themes/funkiskok/img/checkbox.svg);
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: left center;
}

#pot__handle_checkbox input[type="checkbox"]:checked+label {
    background-image: url(/wp-content/themes/funkiskok/img/checkbox_check.svg)
}

#pot__price_subtotal,
#pot__price_vat,
#pot__price_total {
    text-align: right;
    display: flex;
    align-items: center;
}

#pot__price_subtotal input[type="number"],
#pot__price_vat input[type="number"],
#pot__price_total input[type="number"] {
    width: calc(100% - 23px);
    text-align: right;
    border: 0;
    outline: 0;
}


#pot__price_delivery_date input[type="number"] {
    border: 0;
    outline: 0;
}

#pot__price_subtotal div,
#pot__price_vat div:last-child,
#pot__price_total div {
    width: 23px;
}

#pot__price input[type="number"].pot--validate-err {
    border: 1px solid red;
}

.pot--price-col-left {
    width: 240px;
}

.pot--price-box {
    height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border: 1px solid #333;
}

.pot--price-box>div {
    width: 50%;
}

.pot--price-col-right {
    width: calc(100% - 240px);
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #333;
    border-left: none;
    border-right: none;
    height: 34px;
}

.toast {
    position: fixed;
    bottom: 0;
    right: 0;
}

/* UX Invoice */
.portal-ux-table td {
    border-color: #222;
}

.portal-ux-table tr td:nth-child(2),
.portal-ux-table tr td:nth-child(3) {
    width: 100px;
}

/* Hide ACF invoice_repeater ux elements fronted */
#container .acf-field-64424921d98ca {
    padding: 0;
}

#container .acf-field-64424921d98ca>.acf-input .acf-actions {
    display: none;
}

#container .acf-field-64424921d98ca .acf-table td:first-child,
#container .acf-field-64424921d98ca .acf-table>tbody>tr:first-child>td:last-child {
    display: none;
}

.acf-field-64424921d98ca .acf-label,
.acf-field-64424921d98ca .acf-fields.-left>.acf-field:before {
    display: none;
}

.acf-field-64424921d98ca table,
.acf-field-64424921d98ca td {
    border: none !important;
}

/* Editable fields */
.portal--editable,
.portal--editable-select {
    margin: 0 0 .6rem;
    position: relative;
}

.portal--editable i {
    pointer-events: none;
}

.pef--popover {
    display: none;
    width: 252px;
    position: absolute;
    top: -6px;
    left: 120px;
    opacity: 1;
    z-index: 1;
    transition: all .2s;
}

.pef--popover-select {
    display: none;
}

.active .pef--popover {
    display: flex;
    opacity: 1;
}

.pef--link-wrapper {
    display: grid;
    grid-template-columns: 170px max-content;
}

.pef--link-wrapper label {
    width: 170px;
}

.pef--link,
.pef--link-select {
    cursor: pointer;
    position: relative;
}

.pef--link:after,
.pef--link-select:after {
    content: '';
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom: 1px dashed;
}



.pef--link>* {
    pointer-events: none;
}

.portal--editable.form-switch {
    padding-left: 0;
    display: grid;
    grid-template-columns: 170px max-content;
    align-items: center;
}

.portal--editable.form-switch input {
    margin: 0;
}

.portal--editable.form-switch .badge {
    position: absolute;
    right: 0;
}

.portal--editable-select .popover-body {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
}


.ux-footer {
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.ux-footer>* {
    margin-right: .5rem;
    align-self: center;
}

.ux-footer>*:last-child {
    margin-right: 0;
}

.ux-footer input[type="number"],
.ux-footer input[type="text"],
.ux-footer select {
    width: auto;
}

.ux-footer button {
    white-space: nowrap;
}

/*Other invoices */

.new-other-invoice:hover {
    cursor: pointer;

}

.oiw--top-row {
    min-height: 45px;
    display: grid;
    align-items: flex-end;
    grid-template-columns: 166px 300px auto 43px 78px 24px;
    column-gap: 10px;
    border-bottom: 1px solid #767676;
    position: relative;
}

.oiw--top-row>div {
    padding: 0.2rem 0;
}

.oiw--invoice-type {
    font-size: 1rem;
    font-weight: 700;
    opacity: 1;
    transition: opacity .2s;
}

.oiw--invoice-type:hover {
    cursor: pointer;
    opacity: .5;
}

.psu-trash-other {
    width: 16px;
    height: 16px;
    align-self: center;
}

.oiw--viewer,
.oiw--pdf-download,
.psu-trash-other {
    opacity: 0;
}

.pdf-exists .oiw--pdf-download,
.pdf-exists .oiw--viewer,
.pdf-exists .psu-trash-other {
    display: flex;
    opacity: 1;
}


.portal-misc-items-table td {
    border-color: #222;
}

.portal-misc-items-table tr td:nth-child(2),
.portal-misc-items-table tr td:nth-child(3) {
    width: 100px;
}

tr.misc-line-item {
    padding-right: 1rem;
}

tr.misc-line-item td:nth-child(2) {
    width: 100px;
}

tr.misc-line-item td.oiw--edit-row {
    width: 20px;
}

.misc-row-edit {
    position: absolute;
    left: -18px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 2px;
}

.misc-row-edit div {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity .2;
}

.misc-row-edit:hover div {
    opacity: 1;
}

.misc-row-edit .misc-item-add {
    background: url(/wp-content/plugins/fks-sketch-v5_15/portal/img/plus-square.svg) center center no-repeat;
    background-size: 14px 14px;
}

.misc-row-edit .misc-item-remove {
    background: url(/wp-content/plugins/fks-sketch-v5_15/portal/img/dash-square.svg) center center no-repeat;
    background-size: 14px 14px;
}


@media screen and (max-width: 1140px) {
    .oiw--top-row {
        grid-template-columns: 39px max-content max-content;
        grid-template-rows: auto auto auto;
        padding-top: 20px;
    }

    .oiw--top-row>div {
        display: flex;
    }

    .oiw--pdf-title {
        grid-row: 2;
        grid-column-start: 1;
        grid-column-end: 4;
    }

    .oiw--viewer,
    .oiw--pdf-download,
    .psu-trash-other {
        grid-row: 3;
    }

    .oiw--top-row .portal-doc-status {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }
}



/** Portal archive table **/
#po__archive_table a {
    transition: opacity .2s;
}

#po__archive_table a:hover {
    opacity: .65;
}

/** Orders template **/


.ot--wrapper {
    display: grid;
    grid-template-columns: minmax(416px, 25%) minmax(200px, 75%);
    font-size: .9rem;
}

#ot__left {
    border-right: .5px solid var(--bs-primary);
}

#ot__right {
    background: var(--bs-fks-pastel-pink-dark);
}

.prtl--wrapper div.dataTables_processing div {
    display: none;
}

#ot__mobile_footer {
    text-align: center;
    background: var(--bs-fks-pastel-pink-dark);
}

#ot__mobile_footer img {
    width: 200px;
    height: auto;
    margin: auto;
    display: block;

}

@media screen and (max-width: 991px) {
    .ot--wrapper {
        grid-template-columns: auto;
    }

    #ot__left {
        margin-bottom: 3rem;
        border: 0;
    }


}

.fks--editable-list>div {
    min-height: 30px;
    display: grid;
    grid-template-columns: 133px auto;
}

#container .fks--editable-list a {
    align-self: flex-start;
    border-color: var(--bs-primary);
    cursor: pointer;
}

.fks--editable-list input[type='text'] {
    min-height: 1px;
    padding: 0.15rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.fks--editable-list button {
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
}

.fks--editable-list .editable-input,
.fks--editable-list .editable-container.editable-inline {
    width: 100%;
}

#portal_form_new_order select {
    margin-right: .5rem;
    text-transform: capitalize;
    align-self: flex-start;
    width: auto;
}

.fks--editable-list .hasDatepicker {
    min-height: 1px;
    padding: 0.15rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
    border: none;
}

.fks--editable-list .ui-datepicker-trigger {
    margin-left: 5px;
}

#container .editable-empty,
#container .editable-empty:hover,
#container .editable-empty:focus {
    color: inherit;
}

.prtl--user-manual {
    padding: 5px 0;
    display: grid;
    grid-template-columns: auto 43px 78px;
    column-gap: 10px;
    align-items: center;
}

.prtl--user-manual>div {
    text-align: right;
}

@media screen and (max-width: 580px) {
    .prtl--user-manual {
        display: block;
    }

    .prtl--user-manual>div {
        margin-bottom: .5rem;
        text-align: left;
    }

    .prtl--user-manual a:last-child {
        margin-left: 10px;
    }
}

.b2b-doc-upload {
    margin: 0 0 1rem;
    display: flex;
}

.po--new-order-wrapper-company {
    min-width: 700px;
}

.fks--select2-wrapper {
    opacity: 0;
}

#portal_form_new_order_company span.select2 {
    font-size: 13px;
}

#portal_form_new_order_company .select2-selection {
    height: 100%;
    border-left: 0 !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-color: #000;
}

.select2-container {
    font-size: 13px;
}

.pcss--open-select2 {
    white-space: nowrap;
}

#portal_form_new_order_company .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 3px;
    top: 1px;
}

.was-validated .form-check-input:valid:checked,
.form-check-input.is-valid:checked {
    background-color: inherit;
}

.invalid+.select2 .select2-selection,
input[type="text"].invalid {
    outline: 1px solid red;
    outline-offset: -1px;
}

#pa__attached_sketches .select2-container {
    width: auto !important;
    min-width: 300px;
}

.fks--eu-vat select {
    width: auto;
    padding: 4px 7px;
    background: transparent;
    border-color: #111 !important;
    outline: none;
    font-size: 14px;
}