.ocusmgt-form {
    font-family: var(--wp--preset--font-family--system-font);
    font-size: large;
    /*max-width: 64em!important;*/
}

.ocusmgt-form .form-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
    font-size: large;
}

.ocusmgt-form .form-section.actions {
    justify-content: end;
}

.ocusmgt-form .form-section.actions input {
    margin-left: 1em;
    margin-right: 0!important;
}

@media screen and (max-width: 640px) {
    .ocusmgt-form label:not(.custom-button),
    .ocusmgt-form input[type="text"],
    .ocusmgt-form textarea,
    .ocusmgt-form select {
        width: 100%;
    }

    .ocusmgt-form label.custom-button {
        margin-left: 0!important;
    }

    .ocusmgt-new-order li.product {
        width: 48%!important;
    }
}


.ocusmgt-form label:not(.custom-button) {
    width: 10em;
    margin-right: 1em;
}

.ocusmgt-form label.custom-button {
    cursor: pointer;
    color: #444;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.2em 1em 0.1em 1em;
    font-weight: normal!important;
    margin-right: 1em;
}

.ocusmgt-form label.custom-button-labeled {
    margin-left: 11em;
}


/* Style the text inputs */
.ocusmgt-form input[type="text"],
.ocusmgt-form textarea,
.ocusmgt-form select {
    flex: 1;
}

.ocusmgt-form select {
    display: block;
}

.ocusmgt-form input,
.ocusmgt-form textarea,
.ocusmgt-form select {
    padding: .5em .4em .4em .5em;
    font-family: var(--wp--preset--font-family--system-font);
    font-size: large;
}

.ocusmgt-form input,
.ocusmgt-form textarea,
.ocusmgt-form input[type="submit"] {
    box-sizing: content-box;
    height: 1em;
}

.ocusmgt-form .button-right {
    margin-left: auto;
    margin-right: 0;
}

.ocusmgt-form input[type="submit"],
.ocusmgt-form input[type="button"] {
    min-width: 6em;
    width: auto;
    cursor: pointer;
}

.ocusmgt-form input[type="submit"] {
    font-weight: bold;
}


.ocusmgt-form input.error,
.ocusmgt-form .select2-selection.error {
    border: 1px solid red!important;
}

.ocusmgt-form input.error:focus,
.ocusmgt-form input.error:active {
    border: 2px solid red;
    outline: red;
}

.ocusmgt-form textarea {
    height: 10em;
    padding: .8em 1em 1em 1em;
}

.ocusmgt-form .caption {
    font-size: x-large;
    padding-bottom: 1em;
}

.ocusmgt-form label.wide {
    width: 100%;
    margin-bottom: 0.5em;
}

.ocusmgt-order .product a {
    text-decoration: none;
}


.ocusmgt-form .hidden-upload {
    visibility:hidden;
    position: absolute;
    /*do not use display:none as it breaks validation*/
}

.ocusmgt-form .upload-filenames {
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

.ocusmgt-form .upload-filename {
    padding-left: 8px;
    padding-right: 8px;
    border: 1px solid lightgrey;
    border-radius: 4px;
    margin-right: 2px;
    margin-bottom: 2px;
    cursor: pointer;
    max-width: 120px;
}

.ocusmgt-form #image-error {
    color: red;
}

.ocusmgt-form .inline {
    margin-right: .5em;
}

.ocusmgt-filter-form {
    display: flex;
    flex-wrap: wrap;
}

.ocusmgt-filter-form input[type="text"],
.ocusmgt-filter-form .select2 {
    flex: 1 1 45%;
}

.ocusmgt-filter-form label {
    flex: 1 33%;
    margin: .5em;
}

.ocusmgt-filter-form label select {
    display: inline;
    margin-left: .5em;
}

.ocusmgt-filter-form .select2,
.ocusmgt-filter-form input {
    margin: .5em!important;
}


.select2-selection {
    min-height: 2.2em;
    text-align: left;
}

.select2-selection__rendered {
    margin: 0.2em;
}

.select2-selection__arrow {
    margin: 0.4em;
}

.select2-container .select2-dropdown,
.select2-container .select2-selection {
    border: 1px solid #aaa!important;
    border-radius: 4px!important;
}

.select2-container .select2-dropdown {
}

.select2-search--dropdown .select2-search__field {
    box-sizing: border-box!important;
    border: 1px solid #aaa!important;
    font-size: large;
    padding: .6em .4em .4em .4em!important;
    border-radius: 4px;
}

/* BlockUI customization */
.blockUI.blockOverlay {
    background-color: #fff!important;
    opacity: 0.8!important;
}

.blockUI.blockMsg {
    background-color: unset!important;
}

.ocusmgt-new-order li.product {
    width: 31.33%;
    margin-right: 1%;
    margin-left: 1%;
    box-sizing: border-box;

    list-style: none;
    float: left;

    border: 1px solid #aaa;
    padding: 0.4em;
    border-radius: 4px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 0.5em;
}

.ocusmgt-new-order li.product img {
    max-width: 100%;
    min-height: 10em;
    object-fit: contain;
}

.ocusmgt-new-order li.product a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.ocusmgt-new-order li.product .product-title,
.ocusmgt-new-order li.product .product-number {
    font-size: smaller;
    font-weight: bold;
    text-align: center;
}

.ocusmgt-new-order li.product button.product {
    cursor: pointer;
}

.ocusmgt-new-order li.product img {
    flex: 1;
}

.ocusmgt-new-order li.product.selected {
    background-color: #eee;
}

.ocusmgt-new-order ul.products {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.ocusmgt-new-order li.product button {
    font-size: medium;
    font-weight: bold;
    padding: 0.4em;
    width: 100%;
}

.ocusmgt-form .products-actions button {
    width: 180px;
    font-size: medium;
    font-weight: bold;
    cursor: pointer;
    padding: 0.4rem;
    margin: 0.4rem;
}

.ocusmgt-form .products-actions {
    margin-bottom: 1.2rem;
}

.ocusmgt-new-order .close {
    position: absolute;
    top: 0.2em;
    right: 0.2em;
    cursor: pointer;
    background-color: #fff;
    /* width: 1.6em; */
    border-radius: 2em;
    height: 0.6em;
    line-height: 0.6em;
    text-align: center;
    font-size: larger;
}

.ocusmgt-new-order .close.disabled {
    display: none;
}

ul.products h5 {
    width: 100%;
    padding: 0;
    margin: 1em 0 0.5em 0;
    text-align: center;
}

.ocusmgt-archive,
.ocusmgt-post {
    /*max-width: var(--wp--style--global--content-size);*/
    max-width: 1080px!important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 4em;
}

@media print {
    .ocusmgt-post .edit-button {
        display: none;
    }

    .ocusmgt-post .status-badge {
        display: none;
    }

    .ocusmgt-post .item-description {
        display: none;
    }
}

.tracking-data {
    margin-bottom: 2em;
}

.tracking-record {
    margin-bottom: 1em;
}

.collapsible {
    width: 100%;
}

.collapsible summary {
    padding: 1em;
    cursor: pointer;
    display: list-item!important;
}

.ocusmgt-post .edit-button button {
    float: right;
    font-size: large;
    padding: 0.4em;
    margin: .5em;
    font-weight: bold;
    cursor: pointer;
}

.ocusmgt-loop {
    display: flex;
    flex-wrap: wrap;
}

.ocusmgt-loop li {
    list-style: none;
}

.ocusmgt-loop-item {
    width: 32%;
    margin-right: .5%;
}

.ocusmgt-archive .page-numbers {
    display: flex;
}

.ocusmgt-archive ul {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
    margin-top : 2em;
    margin-bottom : 2em;
}

.ocusmgt-archive .page-numbers li {
    list-style: none;
    margin-right: 1em;
}

.ocusmgt-products select {
}

.ocusmgt-products a,
.ocusmgt-products a:link,
.ocusmgt-products a:visited,
.ocusmgt-products a:hover,
.ocusmgt-products a:active {
    text-decoration: none;
}

.ocusmgt-new-order select {
    width: 100%;
}

.ocusmgt-products-loop-item .status-badge {
    float: right;
}

.status-badge {
    font-size: small;
    margin-left: 0.4em;
    color: white;
    padding: 0.2em;
    border-radius: 4px;
    margin-bottom: 0.4em;
}

.status-badge a {
    color: white;
    text-decoration: none;
}

.status-badge .dashicons {
    font-size: medium;
}

.status-badge-undelivered {
    background: green;
}

.status-badge-pending {
    background: blue;
}

.status-badge-delivered {
    background: gray;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    line-height: 2.4em;
    margin-right: 1.6em!important;
}

.ocusmgt-table {
    width: 100%;
    margin-top: 1em;
}

.ocusmgt-driver-portal img,
.ocusmgt-search-tracking img {
    max-width: 100%;
}

.ocusmgt-order .company-header {
    text-align: center;
}

.ocusmgt-order .products {
    flex-wrap: wrap;
    display: table;
    break-inside: auto;
    break-before: avoid;
    width: 100%;
}

.ocusmgt-order .product {
    display: inline-block;
    padding: 0.4em;
    margin-bottom: 0.5em;
    break-inside: avoid;
    vertical-align: top;
}

.ocusmgt-order .underline {
    border-bottom: 1px solid #000;
}

.ocusmgt-order .bottom p {
    display: flex;
}

.ocusmgt-order .bottom p .underline {
    flex: 1;
    margin-right: 2em;
}

.ocusmgt-order .bottom p .caption {
    margin-right: 2em;
}

.ocusmgt-order .bottom p {
    margin-top: 2em;
}

.ocusmgt-order .bottom {
    width: 100%;
    float: left;
    break-inside: avoid;
}

.ocusmgt-products-loop-item .product-title {
    clear: both;
}

.ocusmgt-archive .page-numbers .current {
    font-weight: bold;
}

.ocusmgt-product .product-info-wrap {
    margin-top: 1em;
}

.absolute-footer, html {
    background-color: initial!important;
    /* theme compat */
}

.ocusmgt-order .product-title {
    word-break: break-word;
}

.ocusmgt-form .input-info {
    font-size: small;
    color: gray;
}

.ocusmgt-products .pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4em;
}

.ocusmgt-products .pagination-wrap .export-item {
    margin-left: auto;
}

.ocusmgt-product .history-entry-header {
    font-style: italic;
}

.ocusmgt-order .product img {
    border: 1px solid lightgrey;
}

.ocusmgt-order .product .product-title {
    font-size: smaller;
}

.ocusmgt-order .product .product-description {
    font-size: smaller;
    color: gray;
}

.upload-filename img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.upload-filename img {
    margin: 0;
}

.upload-filename div {
    text-align: center;
}

.upload-filename div {
    text-align: center;
    text-overflow: ellipsis;
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    font-size: small;
}

.ocusmgt-form.ocusmgt-new-product .selected-main-image {
    border: 2px dashed black!important;
}

.ocusmgt-form.ocusmgt-new-product .tbd-image {
    filter: grayscale(100%);
    opacity: 0.33;
}


.ocusmgt-form {
    padding: 0.8rem;
}
