/* MAIN STYLES */ 
@font-face {
    font-family: 'Archivo Black';
    src: local('Archivo Black'), local('ArchivoBlack-Regular'),
        url('/fonts/ArchivoBlack-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

body, input, select {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    background: var(--ucs-bg);
    color: var(--ucs-text);
    margin: 0; padding: 0;
}
select {
    height: 48px !important;
}
h1,
h2, h3, h4, h5 {
    font-family: 'Archivo Black', 'Montserrat', Arial, sans-serif;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight:400;
}
h1 {
    font-size: 40px;
}
h4 {
    font-size:24px;
}
h5 {
    font-size:20px;
}
:root { --btn-red: #cb4154; --btn-red-dark: rgb(150, 29, 11); --ucs-bg: #f1f3f6; --ucs-card-bg: #ffffff; --ucs-accent: #e13117; --ucs-accent-dark: #be210a; --ucs-text: #202529; --ucs-muted: #66707a; --ucs-border: #ced4da; --ucs-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
--large-padding:60px;}

label {
    font-weight: bold;
    font-size: 16px;
    margin-top:10px;
}
form {
    display:flex;
    flex-direction: column;
    gap: 10px;
}
table {
    border-spacing: 0;
}
.input-field label { transition: color 0.18s ease; }
.input-field:focus-within label { color: var(--ucs-accent); }
button, input[type="submit"], input[type="button"], .btn, .dt-button {
    font-family: 'Roboto', 'Montserrat', Arial, sans-serif;
    cursor:pointer;
    background-color: var(--btn-red);
    width: fit-content;
    height: fit-content;
    padding: 20px;
    text-align:center;
    font-size: 18px;
    background-image: linear-gradient(90deg, var(--btn-red-dark), var(--btn-red-dark));
    background-size: 0% 100%;
    background-position: left center;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 18px;
    border: none;
    transition: background-size 0.2s ease, border-color 0.2s ease;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover, .btn:hover { 
    background-size: 100% 100%; 
}
.toolbar-icon-button {
    padding: 10px;
}
input[readonly] {
    background-color: #f1f3f6;
    color:#333;
}
button.btn-link {
    font-family: 'Archivo Black', 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    width: fit-content;
    padding: 20px 20px 20px 0;
    background-color: transparent;
    background-image: none;
    font-size: 18px;
    color: var(--btn-red);
    transition: font-size 0.2s ease;
}
button.btn-link:hover {
    font-size:19px;
    transition: font-size 0.2s ease;
}
button.btn-link:active {
    color: var(--btn-red-dark);
}
button.btn-link:disabled {
    font-size: 18px;
    color: #939393;
}
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.action-icon,
.edit-icon,
.save-icon,
.star-icon,
.delete-icon,
.cancel-icon,
.copy-icon,
.filter-icon,
.table-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: #FFF;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
button.btn-link .action-icon,
button.btn-link .edit-icon,
button.btn-link .save-icon,
button.btn-link .star-icon,
button.btn-link .delete-icon,
button.btn-link .cancel-icon,
button.btn-link .copy-icon,
button.btn-link .filter-icon,
button.btn-link .table-icon {
    background-color: var(--btn-red);
}
button.btn-link:active .action-icon,
button.btn-link:active .edit-icon,
button.btn-link:active .save-icon,
button.btn-link:active .star-icon,
button.btn-link:active .delete-icon,
button.btn-link:active .cancel-icon,
button.btn-link:active .copy-icon,
button.btn-link:active .filter-icon,
button.btn-link:active .table-icon {
    background-color: var(--btn-red-dark);
}
button.btn-link:disabled .action-icon,
button.btn-link:disabled .edit-icon,
button.btn-link:disabled .save-icon,
button.btn-link:disabled .star-icon,
button.btn-link:disabled .delete-icon,
button.btn-link:disabled .cancel-icon,
button.btn-link:disabled .copy-icon,
button.btn-link:disabled .filter-icon,
button.btn-link:disabled .table-icon {
    background-color: #939393;
}
button.btn .action-icon,
button.btn .edit-icon,
button.btn .save-icon,
button.btn .star-icon,
button.btn .delete-icon,
button.btn .cancel-icon,
button.btn .copy-icon,
button.btn .filter-icon,
button.btn .table-icon {
    background-color: currentColor;
}
.star-icon {
    -webkit-mask-image: url('/images/icon-star.svg');
    mask-image: url('/images/icon-star.svg');
}
.edit-icon {
    -webkit-mask-image: url('/images/icon-edit.svg');
    mask-image: url('/images/icon-edit.svg');
}
.save-icon {
    -webkit-mask-image: url('/images/icon-save.svg');
    mask-image: url('/images/icon-save.svg');
}
.delete-icon {
    -webkit-mask-image: url('/images/icon-delete.svg');
    mask-image: url('/images/icon-delete.svg');
}
.cancel-icon {
    -webkit-mask-image: url('/images/icon-cancel.svg');
    mask-image: url('/images/icon-cancel.svg');
}
.copy-icon {
    -webkit-mask-image: url('/images/icon-copy.svg');
    mask-image: url('/images/icon-copy.svg');
}
.filter-icon {
    -webkit-mask-image: url('/images/icon-filter.svg');
    mask-image: url('/images/icon-filter.svg');
}
.table-icon {
    -webkit-mask-image: url('/images/icon-table.svg');
    mask-image: url('/images/icon-table.svg');
}
.input-field {
    width: 100%;
}
input,
.input-field input, textarea, select {
    width: 94%;
    height:24px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top:10px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 9px;
    border: 1px solid var(--ucs-border);
    background: var(--ucs-card-bg);
    transition: border-color 0.18s ease;
}
.input-field label {
    height:25px;
    color:#757575;
}
input[type="search"] {
    width: 85%;
    height: 40px;
}
input[type="checkbox"] {
    width:25px;
    height:25px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}
input:disabled {
    background-color: #e9e9e9;
}
input[type="checkbox"]:checked {
    background-color: var(--ucs-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5 8.5 14 15.5 6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: background-color 0.2s ease;
}
input[type="checkbox"]:not(:checked) {
    background-color: #FFF;
    background-image: none;
    transition: background-color 0.2s ease;
}ww

select {
    width: 100%;
    height: 48px;
    border-radius: 18px;
    margin-top: 10px;
    border: 1px solid var(--ucs-border);
    padding: 10px;
    background: #fff;
    color: #25313c;
    -webkit-appearance: none;
}
.job-modal__form {
    display: flex;
    flex-direction: column;
    gap:20px;
}
   
.input_field {
    width: 100%;
    margin-bottom: 12px;
}
#orders-advanced-search-modal .input_field {
    max-width: none;
}
#orders-table thead {
    position:sticky; 
    top: 170;

}
.row {
    display: flex;
    flex-direction: row;
    align-items: top;
    gap: 20px;
}
.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.job-editor-grid-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 1rem;
    align-items: stretch;
}
.job-editor-grid-row--fields {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.job-editor-grid-row--single {
    grid-template-columns: 1fr;
}
.job-editor-grid-row > .panel {
    width: auto !important;
    min-width: 0 !important;
    margin-top: 0;
}
.ucs-modal__dialog .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap:10px;
}
.table-toolbar {
    display: flex;
    flex-direction: row;
    max-height: fit-content;
    height: 100%;
    justify-content: space-between;
    gap: 1rem;
}
.dt-buttons {
    display: flex;
    flex-direction: row;
    min-width:300px;
    align-items: center;
    gap:1rem;
}
.dataTables_wrapper .table-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #d3dae1;
    padding: 10px 100px;
    z-index: 69;
    height:50px;
}
.no-footer {
    padding-bottom: 0 !important;
}
.dataTables_filter {
    padding:10px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.dataTables_filter label {
    margin: 0;
    flex: 1 1 auto;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    white-space: nowrap;
}
.dataTables_wrapper .dataTables_length select {
    width: auto;
    height: 40px;
    min-width: 50px;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    text-align-last: center;
    font-size: 14px;
}
.dataTables_wrapper .dataTables_filter input {
    margin: 0;
}
.toolbar-icon-button {
    border: 1px solid #d3dae1;
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.toolbar-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ca3a50;
    color: #fff;
    border: 1px solid #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.toolbar-icon-badge[hidden] {
    display: none;
}
.dataTables_wrapper:has(.table-footer-bar) {
    padding-bottom: 8.5rem;
}
.dataTables_wrapper .table-footer-bar .dataTables_info {
    position: fixed;
    left: max(1rem, 5vw);
    bottom: 1rem;
    z-index: 70;
    margin: 0;
    padding: 0.68rem 0.92rem;
    border: 1px solid #d3dae1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #2f3b47;
    font-size: 0.94rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(16, 24, 33, 0.12);
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate {
    position: fixed;
    right: max(1rem, 5vw);
    bottom: 1rem;
    z-index: 71;
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    border: 1px solid #d3dae1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(16, 24, 33, 0.14);
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate .paginate_button,
.dataTables_wrapper .table-footer-bar .dataTables_paginate .ellipsis {
    margin: 0;
    min-width: 52px;
    height: 44px;
    padding: 0 0.85rem;
    border-left: 1px solid #d3dae1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c53d4f !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate .paginate_button:first-child {
    border-left: none;
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate .paginate_button.current {
    background: #ca3a50 !important;
    color: #fff !important;
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: rgba(202, 58, 80, 0.08);
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate .paginate_button.disabled {
    color: #97a3af !important;
    background: #f7f9fb;
    cursor: default;
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate .ellipsis {
    color: #8d98a4 !important;
    cursor: default;
}
.dataTables_wrapper .table-footer-bar .dataTables_paginate span {
    display: inline-flex;
    align-items: stretch;
}
input:focus,
.input-field input:focus { outline: none; box-shadow: none; border-color: var(--ucs-accent); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
{
    -webkit-text-fill-color: var(--ucs-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--ucs-card-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--ucs-card-bg) inset !important;
    transition: background-color 9999s ease-out 0s;
}
a {
    color: #b32612;
}
main {
    border: 1px solid var(--ucs-border);
    border-radius: 18px;
    background: var(--ucs-card-bg);
    box-shadow: 0 10px 26px rgba(17, 22, 28, 0.08);
}
/* MAIN PADDING */
header {
    padding: var(--large-padding) var(--large-padding) 0 var(--large-padding);
}
section {
    padding: 40x;
}
section .panel {
    margin-top:1rem;
    width:100%;
    border:1px solid #c9c9c9;
    border-radius:18px;
    overflow:hidden;
    border: 1px solid #CCC;
}
section .panel-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1rem 1rem;
    border-bottom:1px solid #c9c9c9;
    border-radius: 18px 18px 0 0;
    background-color: #f5f5f5;
    max-height:25px;
}
section .panel-inner {
    padding:1.25rem;
}
table {
    width: 100%;
}
table tr:nth-child(even) {
    background: #fcfdfe;
}
table td, table th {
    text-align: left;
    padding: 0.72rem 0.75rem;
    border: 1px solid #e8edf2;
    font-size: 18px;
}
table .table-danger td {
    border: 1px solid #ed969e;
}
table th {
    background: #f4f7fa;
    font-weight: 700;
    color: #27323d;
}
table thead th.sorting,
table thead th.sorting_asc,
table thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 1.8rem;
    background-image: none !important;
}
table thead th.sorting::after,
table thead th.sorting_asc::after,
table thead th.sorting_desc::after {
    content: '';
    /*position: absolute; */
    top: 50%;
    right: 0.55rem;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}
table thead th.sorting::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%2399A5B1' d='M6 1l3 3H3zM6 11l-3-3h6z'/%3E%3C/svg%3E");
}
table thead th.sorting_asc::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23E13117' d='M6 1l3 3H3z'/%3E%3Cpath fill='%23C5CFD8' d='M6 11l-3-3h6z'/%3E%3C/svg%3E");
}
table thead th.sorting_desc::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23C5CFD8' d='M6 1l3 3H3z'/%3E%3Cpath fill='%23E13117' d='M6 11l-3-3h6z'/%3E%3C/svg%3E");
}
.table__order-row .table__order-cell {
    background: #d7dbe0;
    border-top: 1px solid #c5cbd2;
    border-bottom: 1px solid #c5cbd2;
    padding: 0.9rem 1.1rem;
}
.group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}
.group-row__left,
.group-row__right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.group-row__title {
    color: #1f2630;
    font-size: 1.05rem;
    font-weight: 800;
}
.group-row__order-link {
    color: #c53d4f;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}
.group-row__order-link:hover {
    text-decoration: underline;
}
.group-row__jobs {
    color: #606d79;
    font-size: 0.98rem;
}
.group-row__office {
    color: #1f2630;
    font-weight: 700;
    text-transform: uppercase;
}
.group-row__customer {
    color: #c53d4f;
    font-weight: 700;
    text-transform: uppercase;
}
.group-row__total {
    color: #1f2630;
    font-size: 1.1rem;
    font-weight: 800;
}
.table__job-row td {
    vertical-align: center;
}
.orders-row-toggle,
.orders-detail-row {
    display: none;
}
.orders-job-details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.7rem;
    background: #f7f9fb;
}
.orders-job-details div {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}
.orders-job-details strong {
    color: #000;
    font-size: 18px;
}
.orders-stage-select {
    display: none;
}

.breadcrumb {
    position: sticky;
    top: 84px;
    z-index: 34;
    width: 100%;
    background: #e9ecef;
}
.breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 90%;
    margin: 0 auto;
    padding: 0.45rem 4rem;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.breadcrumb a {
    text-decoration: none;
}
.breadcrumb__separator {
    color: var(--ucs-muted);
}
/* --------  MENU ------------- */

nav {
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: 1px solid rgba(196, 205, 214, 0.75);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}
nav .inner {
    width: 90%;
    margin: 0 auto;
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    box-sizing: border-box;
}
.is-dev-mode {
    background: rgba(0, 0, 0);
}
nav .main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}
nav .main-menu ul a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.46rem 0.72rem;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}
nav .main-menu ul a::after {
    content: '';
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.32rem;
    height: 2px;
    border-radius: 999px;
    background: var(--ucs-accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 140ms ease;
}
nav .main-menu ul a:hover::after,
nav .main-menu ul a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}
nav .menu-dropdown a::after {
    display: none;
}


.main-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}


.nav-wrapper.breadcrumb {
    height: 32px;
}
nav[aria-label="Breadcrumb"] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ucs-muted);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.menu-caret {
    font-size: 0.72rem;
    color: #768391;
}
.template-account-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.template-shadow-icon-link {
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
}
.template-shadow-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: url('/images/icon-ghost.svg');
    mask-image: url('/images/icon-ghost.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
nav .main-menu ul .template-shadow-icon-link::after {
    display: none;
}
.menu-dropdown {
    position: absolute;
    display: none;
    margin: 0;
    padding: 0.45rem;
    min-width: 220px;
    list-style: none;
    border: 1px solid #dbe4eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 32px rgba(14, 21, 29, 0.15);
    z-index: 350;
}
.menu-dropdown.is-open {
    display: block;
}
.menu-dropdown li {
    margin: 0;
    padding: 0;
}
.menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.52rem 0.62rem;
    border-radius: 10px;
    color: #2f3b47;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
}
.menu-dropdown a:hover {
    background: #f3f7fa;
    color: #111b24;
}
.menu-divider {
    height: 1px;
    margin: 0.35rem 0.45rem;
    background: #e3eaf0;
}
/* --------- END MENU ----------- */ 
/* FOOTER */

 .flash-message {
        position: fixed;
        top: 24px;
        right: 24px;
        z-index: 9999;
        padding: 14px 18px;
        border-radius: 8px;
        color: #ffffff;
        font-size: 16px;
        line-height: 1.4;
        max-width: 480px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }
    .flash-message--info { background: #1f6feb; }
    .flash-message--error { background: #c62828; }
    .flash-message--success { background: #2e7d32; }

    .flash-message--show {
        animation: flash-fade-in 300ms ease-out forwards;
    }
    .flash-message--hide {
        animation: flash-fade-out 500ms ease-in forwards;
    }

    @keyframes flash-fade-in {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes flash-fade-out {
        from { opacity: 1; transform: translateY(0); }
        to { opacity: 0; transform: translateY(-8px); }
    }
/* END FOOTER */

.tabs.tabs-transparent .tab a {
    color:#333;
}
.tabs.tabs-transparent .tab a:hover, .tabs.tabs-transparent .tab a.active {
    color:#000;
    text-decoration: underline;
}
.tabs.tabs-transparent .tab a, .tabs.tabs-transparent .tab.disabled a {
    color:#333;
}
.dropdown-content li>a {
    color:#333;
}

.tab-content {
    padding:20px 20px !important;
    border: 1px solid #CCC;
    border-radius:6px;
    border-color:rgb(195, 206, 213);
}
.top-container {
    margin-top:24px;
}
.order-panel {
    display: flex;
    
}
.page-shell {
    width: 90%;
    margin: 0 auto;
    padding: 0.75rem 4rem 2rem;
    box-sizing: border-box;
    max-width: 100%;
}
.page-content {
    padding: 0 var(--large-padding) var(--large-padding) var(--large-padding);
}
.tab-group {
    display: grid;
    gap: 0.95rem;
    position: sticky;
    top: 114px; 
    z-index: 100;
    background-color:#FFF;
    height:75px;
}
.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: fit-content;
    border-bottom: 1px solid #d5dee6;
    justify-content: space-between;
}
.orders-stage-select {
    width: 100%;
    height: 48px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid #cfd8e1;
    background: #fff;
    color: #25313c;
    font-size: 16px;
    font-weight: 700;
}
.tab-link {
    display: block;
    flex-grow: 1;
    align-content: center;
    gap: 0.45rem;
    border: 1px solid #FFF;
    background: #fff;
    color: #3a4652;
    text-decoration: none;
    /*font-family:'Archivo Black'; */
    font-size: 18px;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    position: relative;
}
.tab-link::after {
    content: '';
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.32rem;
    height: 2px;
    border-radius: 999px;
    background: var(--ucs-accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 140ms ease;
}
.tab-link:hover {
    border: 1px solid var(--ucs-accent);
    background:  rgba(225, 49, 23, 0.05);
}
.tab-link:hover::after,
.tab-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.tab-link.is-active {
    border-color: rgba(225, 49, 23, 0.48);
    background: rgba(225, 49, 23, 0.1);
    color: #a72410;
}
.badge-pill {
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    padding: 0 0.33rem;
    background: #3e454c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tab-link.is-active .badge-pill {
    background: #ba2912;
}
.tab-panels {
    min-height: 120px;
}
.tab-panel {
    display: none;
    border: 1px solid #d3dce4;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}
.tab-panel.is-active {
    display: block;
}
.dataTable tr {
    display:flex;
    flex-direction: row;
}
.dataTable th, .dataTable td {
    width: 100%;
    /*min-width: fit-content; */
}

.api-help {
    padding:8px 24px;
    border:1px solid, #CCC;
    margin:12px;
}
.api-help h2 {
    font-size:1.1em;
    display: inline-block;
    background-color: rgb(68, 115, 68);
    color:#FFF;
    padding:4px;
    margin:0px;
    font-weight: 700;
}
.api-help .sub-heading {
    font-size:1.3em;
    font-weight: 700;
}
.api-help li {
    border-bottom: 2px solid #ccc;
    margin-bottom: 12px;
    color:#999;
    font-size:.90em;
}
.api-help li .filter {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    display: block;
    color:#000;
    font-size:1.1em;
}

.api-help .header {
    border:1px solid #CCC;
    padding:4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
}
.api-help .header .domain {
    color:#AAA;
    font-weight: normal;
}

.template-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.template-brand img {
    display: block;
    width: min(240px, 34vw);
    height: auto;
}

.template-menu-toggle {
    display: none;
    margin-left: auto;
    padding: 0.58rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #d4dce4;
    background: #f9fbfd;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b3741;
    text-decoration: none;
    cursor: pointer;
}



.template-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.46rem 0.72rem;
    border-radius: 12px;
    text-decoration: none;
    color: #3c4752;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
}
.template-topbar .template-link::after {
    content: '';
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.32rem;
    height: 2px;
    border-radius: 999px;
    background: var(--ucs-accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 140ms ease;
}
.template-link:hover {
    background: #f3f6f9;
    color: #172029;
}
.template-topbar .template-link:hover::after,
.template-topbar .template-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.template-link--current {
    background: rgba(225, 49, 23, 0.13);
    color: #9e2310;
    font-weight: 600;
}
.template-link--accent {
    color: #a82310;
}
.template-link__badge {
    min-width: 22px;
    height: 22px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--ucs-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.template-menu-toggle[aria-expanded="true"] {
    background: #eef4f9;
    border-color: #c3d0dc;
}

.template-crumbs {
    width: min(1480px, 96%);
    margin: 0.55rem auto 0;
    padding: 0.42rem 0;
    display: flex;
    align-items: center;
    gap: 0.46rem;
    color: #73818f;
    font-size: 0.9rem;
}
.template-crumbs a {
    color: #b32612;
    text-decoration: none;
}

.template-main {
    width: min(1480px, 96%);
    margin: 0 auto;
    padding: 0.8rem 0 2.4rem;
}
.template-hero {
    border-radius: 24px;
    border: 1px solid #e1e8ee;
    background: linear-gradient(130deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 34px rgba(17, 22, 28, 0.08);
    padding: clamp(1.15rem, 2.6vw, 2rem);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.template-hero__eyebrow {
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #758493;
}
.template-hero__title {
    margin: 0.2rem 0 0.3rem;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.06;
}
.template-hero__text {
    margin: 0;
    color: #5f6b77;
    font-size: 1.03rem;
}
.template-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.72rem;
    justify-content: flex-end;
}
.template-btn {
    min-height: 47px;
    padding: 0.7rem 1.18rem;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.template-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}
.template-btn--primary {
    background: var(--ucs-accent);
    color: #fff;
}
.template-btn--primary:hover {
    background: var(--ucs-accent-dark);
}
.template-btn--secondary {
    color: #a02512;
    background: #fff6f4;
    border-color: #f1d0c9;
}

.template-status-card {
    margin-top: 1.05rem;
    border-radius: 24px;
    border: 1px solid #dce5eb;
    background: var(--ucs-card-bg);
    box-shadow: 0 16px 34px rgba(17, 22, 28, 0.07);
    overflow: hidden;
}
.template-status-tabs {
    padding: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e7edf2;
    background: linear-gradient(135deg, #f7fafc 0%, #f2f6f9 100%);
}
.template-status-tab {
    border: 1px solid #d6dee6;
    border-radius: 999px;
    background: #fff;
    color: #3b4855;
    min-height: 42px;
    padding: 0.45rem 0.92rem;
    font-size: 0.94rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.template-status-tab__count {
    min-width: 23px;
    height: 23px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #3e454c;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.template-status-tab:hover {
    border-color: #c0ccd6;
    background: #fafcfd;
}
.template-status-tab.is-active {
    background: rgba(225, 49, 23, 0.1);
    border-color: rgba(225, 49, 23, 0.48);
    color: #a72410;
}
.template-status-tab.is-active .template-status-tab__count {
    background: #ba2912;
}

.template-tab-panel {
    display: none;
    padding: 1rem;
}
.template-tab-panel.is-active {
    display: block;
}
.template-tab-panel__head h2 {
    margin: 0 0 0.18rem;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
}
.template-tab-panel__head p {
    margin: 0 0 0.8rem;
    color: #5d6a76;
    font-size: 1rem;
}


.template-topbar,
.template-hero,
.template-status-card {
    animation: template-rise 420ms ease both;
}

@keyframes template-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ucs-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}
.ucs-modal.is-active {
    display: flex;
}
.ucs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.ucs-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column; 
    gap: 10px;
    z-index: 1;
    width: min(90vw, 1200px);
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    overflow: auto;
    height: fit-content;
}
#orders-advanced-search-modal .ucs-modal__dialog {
    width: min(94vw, 1180px);
}
#orders-advanced-search-modal .ucs-modal__dialog > .row:not(:first-child) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
}
#orders-advanced-search-modal .input_field input,
#orders-advanced-search-modal .input_field select {
    width: 100%;
    box-sizing: border-box;
}
#orders-advanced-search-modal .select2-container {
    width: 100% !important;
    margin-top: 10px;
}
#orders-advanced-search-modal .select2-container--default .select2-selection--single {
    min-height: 46px;
    border-radius: 18px;
    border: 1px solid var(--ucs-border);
}
#orders-advanced-search-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 12px;
}
#orders-advanced-search-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}
.large {
    width: min(90vw, 90%);
}
.ucs-modal__title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #111;
}
.ucs-modal__text {
    margin: 0 0 16px;
    color: #555;
}
.ucs-modal__close {
    width: fit-content;
    padding: 0;
    background: transparent;
    font-size: 36px;
    cursor: pointer;
    color: #333;
    transition: color 0.18s ease;
}
.loading-modal__dialog {
    width: min(90vw, 400px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}
.loading-modal__dialog .ucs-modal__title {
    margin: 0;
}
.loading-modal__spinner {
    width: 28px;
    height: 28px;
    color: #ca3a50;
    flex: 0 0 28px;
}
.loading-modal__spinner svg {
    width: 100%;
    height: 100%;
    display: block;
}
.advanced-modal__field .select2-container {
    width: 100% !important;
    margin-top: 10px;
}
.advanced-modal__field .select2-container--default .select2-selection--single {
    border-radius: 12px;
    border: 1px solid #d3dae1;
}
.advanced-modal__field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    color: #25313c;
    padding-left: 12px;
}
.advanced-modal__field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
}
.advanced-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.btn .clear {
    background: #fff;
    color: #3e4a55;
    border-color: #ccd6df;
}



         .vessel-schedules-nav {
            position: relative;
            display: flex;
            align-items: center;
        }
        .vessel-schedules-trigger {
            color: var(--btn-red);
            font-family: 'Archivo Black', 'Montserrat', Arial, sans-serif;
            font-size: 18px;
            text-decoration: none;
            white-space: nowrap;
        }
        .vessel-schedules-trigger:hover {
            text-decoration: underline;
        }
        .vessel-schedules-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 260px;
            background: #fff;
            border: 1px solid var(--ucs-border);
            border-radius: 12px;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
            display: none;
            z-index: 40;
        }
        .vessel-schedules-dropdown.is-open {
            display: block;
        }
        .vessel-schedules-dropdown a {
            display: block;
            padding: 12px 14px;
            color: #202529;
            text-decoration: none;
            font-size: 16px;
            font-weight: 600;
        }
        .vessel-schedules-dropdown a:hover {
            background: #f6f8fa;
        }
        .container-action-select-wrap {
            position: relative;
            display: inline-block;
            min-width: 220px;
        }
        .container-action-select {
            width: 100%;
            height: 42px;
            border: 1px solid var(--ucs-border);
            border-radius: 12px;
            background: #fff;
            color: var(--btn-red);
            font-family: 'Archivo Black', 'Montserrat', Arial, sans-serif;
            font-size: 15px;
            padding: 0 38px 0 14px;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
        }
        .container-action-select:focus {
            outline: none;
            border-color: var(--btn-red);
        }
        .container-action-select option {
            color: #202529;
            font-family: 'Montserrat', Arial, sans-serif;
            font-size: 14px;
        }
        .container-action-select-caret {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--btn-red);
            font-size: 14px;
            pointer-events: none;
        }
        #containers-table tbody tr.table-success td {
            background: #dff4dd;
        }
        #containers-table tbody tr.table-danger td {
            background: #f8d7da;
        }
        #containers-table tbody tr.table-secondary td {
            background: #e2e3e5;
        }
        #containers-table tbody tr.table-warning td {
            background: #fff3cd;
        }
        #containers-table tbody tr.table-updated td {
            background: #ffc780;
        }
        .containers-color-key {
            margin-bottom: 14px;
            border: 1px solid var(--ucs-border);
            border-radius: 12px;
            background: #fff;
            padding: 14px 16px;
        }
        .containers-color-key.is-collapsed {
            display: none;
        }
        .containers-color-key__title {
            margin: 0 0 10px 0;
            font-family: 'Archivo Black', 'Montserrat', Arial, sans-serif;
            font-size: 17px;
        }
        .containers-color-key__items {
            display: flex;
            flex-wrap: wrap;
            gap: 14px 22px;
        }
        .containers-color-key__item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 700;
            color: #2f3b47;
        }
        .containers-color-key__swatch {
            width: 16px;
            height: 16px;
            border: 1px solid #25313c;
        }
        .containers-color-key__swatch.table-success {
            background: #dff4dd;
        }
        .containers-color-key__swatch.table-danger {
            background: #f8d7da;
        }
        .containers-color-key__swatch.table-secondary {
            background: #e2e3e5;
        }
        .containers-color-key__swatch.table-warning {
            background: #fff3cd;
        }
        .containers-color-key__swatch.table-updated {
            background: #ffc780;
        }


/* SELECT 2 */

.select2-container {
  box-sizing: border-box;
  display: inline-block;
  margin-top: 10px;
  position: relative;
  vertical-align: middle; }
  .select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 48px;
    user-select: none;
    -webkit-user-select: none; }
   .select2-container .select2-selection--single .select2-selection__rendered {
      display: block;
      padding-left: 8px;
      padding-right: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap; }
    .select2-container .select2-selection--single .select2-selection__clear {
      position: relative; }
  .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px; }
  .select2-container .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 32px;
    user-select: none;
    -webkit-user-select: none; }
    .select2-container .select2-selection--multiple .select2-selection__rendered {
      display: inline-block;
      overflow: hidden;
      padding-left: 8px;
      text-overflow: ellipsis;
      white-space: nowrap; }
  .select2-container .select2-search--inline {
    float: left; }
    .select2-container .select2-search--inline .select2-search__field {
      box-sizing: border-box;
      border: none;
      font-size: 100%;
      margin-top: 5px;
      padding: 0; }
      .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
        -webkit-appearance: none; }

.select2-dropdown {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051; }

.select2-results {
  display: block; }

.select2-results__options {
  list-style: none;
  margin: 0;
  padding: 0; }

.select2-results__option {
  padding: 6px;
  user-select: none;
  -webkit-user-select: none; }
  .select2-results__option[aria-selected] {
    cursor: pointer; }

.select2-container--open .select2-dropdown {
  left: 0; }

.select2-container--open .select2-dropdown--above {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-search--dropdown {
  display: block;
  padding: 4px; }
  .select2-search--dropdown .select2-search__field {
    padding: 4px;
    width: 100%;
    box-sizing: border-box; }
    .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
      -webkit-appearance: none; }
  .select2-search--dropdown.select2-search--hide {
    display: none; }

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0); }

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important; }

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--ucs-border);
    border-radius: 18px; 
    justify-content: space-between;
}
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000000;
    flex: 1;
    font-weight: 600;
    line-height: 28px;
    min-width: 0;
    padding-right: 30px;
    position: relative;
    font-size: 16px;
 }
  .select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    font-weight: bold;
    margin-right: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

  .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999; }
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    padding: 5px 0;
    display:flex;
    justify-content: center;
    position: relative;
    width: 30px;
 }
    .select2-container--default .select2-selection--single .select2-selection__arrow b {
      border-color: #000000 transparent transparent transparent;
      border-style: solid;
      border-width: 6px 5px 0 5px;
      height: 0;
      position: relative;
      top: 50%;
      width: 0; 
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left; }

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 1px;
  right: auto; }

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #eee;
  cursor: default; }
  .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
    display: none; }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px; }

.select2-container--default .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text; }
  .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0 5px;
    width: 100%; }
    .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
      list-style: none; }
  .select2-container--default .select2-selection--multiple .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-top: 5px;
    margin-right: 10px;
    padding: 1px; }
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px; }
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 2px; }
    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
      color: #333; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
  float: right; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  margin-left: 5px;
  margin-right: auto; }

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto; }

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid black 1px;
  outline: 0; }

.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #eee;
  cursor: default; }

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  display: none; }

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa; }

.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: textfield; }

.select2-container--default .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto; }

.select2-container--default .select2-results__option[role=group] {
  padding: 0; }

.select2-container--default .select2-results__option[aria-disabled=true] {
  color: #999; }

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #ddd; }

.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em; }
  .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0; }
  .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -1em;
    padding-left: 2em; }
    .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
      margin-left: -2em;
      padding-left: 3em; }
      .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
        margin-left: -3em;
        padding-left: 4em; }
        .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
          margin-left: -4em;
          padding-left: 5em; }
          .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
            margin-left: -5em;
            padding-left: 6em; }

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #5897fb;
  color: white; }

.select2-container--default .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px; }

.select2-container--classic .select2-selection--single {
  background-color: #f7f7f7;
  border: 1px solid #aaa;
  border-radius: 4px;
  outline: 0;
  background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
  .select2-container--classic .select2-selection--single:focus {
    border: 1px solid #5897fb; }
  .select2-container--classic .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px; }
  .select2-container--classic .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    margin-right: 10px; }
  .select2-container--classic .select2-selection--single .select2-selection__placeholder {
    color: #999; }
  .select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-color: #ddd;
    border: none;
    border-left: 1px solid #aaa;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 26px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
    background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
    background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
    .select2-container--classic .select2-selection--single .select2-selection__arrow b {
      border-color: #888 transparent transparent transparent;
      border-style: solid;
      border-width: 5px 4px 0 4px;
      height: 0;
      left: 50%;
      margin-left: -4px;
      margin-top: -2px;
      position: absolute;
      top: 50%;
      width: 0; }

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left; }

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  border: none;
  border-right: 1px solid #aaa;
  border-radius: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  left: 1px;
  right: auto; }

.select2-container--classic.select2-container--open .select2-selection--single {
  border: 1px solid #5897fb; }
  .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
    background: transparent;
    border: none; }
    .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
      border-color: transparent transparent #888 transparent;
      border-width: 0 4px 5px 4px; }

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }

.select2-container--classic .select2-selection--multiple {
  background-color: white;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: text;
  outline: 0; }
  .select2-container--classic .select2-selection--multiple:focus {
    border: 1px solid #5897fb; }
  .select2-container--classic .select2-selection--multiple .select2-selection__rendered {
    list-style: none;
    margin: 0;
    padding: 0 5px; }
  .select2-container--classic .select2-selection--multiple .select2-selection__clear {
    display: none; }
  .select2-container--classic .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px; }
  .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
    color: #888;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 2px; }
    .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
      color: #555; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  float: right;
  margin-left: 5px;
  margin-right: auto; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  margin-left: 2px;
  margin-right: auto; }

.select2-container--classic.select2-container--open .select2-selection--multiple {
  border: 1px solid #5897fb; }

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0; }

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0; }

.select2-container--classic .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
  outline: 0; }

.select2-container--classic .select2-search--inline .select2-search__field {
  outline: 0;
  box-shadow: none; }

.select2-container--classic .select2-dropdown {
  background-color: white;
  border: 1px solid transparent; }

.select2-container--classic .select2-dropdown--above {
  border-bottom: none; }

.select2-container--classic .select2-dropdown--below {
  border-top: none; }

.select2-container--classic .select2-results > .select2-results__options {
  max-height: 200px;
  overflow-y: auto; }

.select2-container--classic .select2-results__option[role=group] {
  padding: 0; }

.select2-container--classic .select2-results__option[aria-disabled=true] {
  color: grey; }

.select2-container--classic .select2-results__option--highlighted[aria-selected] {
  background-color: #3875d7;
  color: white; }

.select2-container--classic .select2-results__group {
  cursor: default;
  display: block;
  padding: 6px; }

.select2-container--classic.select2-container--open .select2-dropdown {
  border-color: #5897fb; }

.input-small {
  padding: 4px;
  font-size: 14px; }

/* BEGIN MEDIA TAGS */

@media (max-width: 1600px) {
    .page-shell {
        max-width: 96%;
    }
    .tab-link {
        font-size: 16px;
    }
}
@media (max-width: 1280px) {
    .page-shell {
        width: 96%;
        padding: 0.75rem 1.5rem 2rem;
    }
    .page-content {
        padding: 0 1rem 1rem;
    }
    .dataTable {
        font-size: 0.95rem;
    }
    .dataTable th,
    .dataTable td {
        padding: 0.58rem 0.5rem;
    }
}
@media (max-width: 1180px) {
    nav .main-menu ul a {
        gap: 0;
        font-size: 14px;
    }
    .table-responsive,
    .dataTables_wrapper {
        max-width: 100%;
        overflow-x: hidden;
    }
    .dataTable th:nth-child(n+7),
    .dataTable tbody td:nth-child(n+7),
    .dataTable colgroup col:nth-child(n+7) {
        display: none;
        visibility: collapse;
    }
    .orders-row-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin: 0 0.35rem 0 0;
        padding: 0;
        border-radius: 50%;
        font-size: 17px;
        line-height: 1;
        vertical-align: middle;
    }
    .orders-detail-row {
        display: table-row;
    }
    .orders-detail-row td {
        padding: 0;
        border-bottom: 1px solid #d3dae1;
    }
    .orders-job-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        font-size: 0.86rem;
    }
    .orders-job-details__pickup,
    .orders-job-details__delivery,
    .orders-job-details__pieces,
    .orders-job-details__weight {
        display: none !important;
    }
    .dataTables_wrapper .table-footer-bar {
        position: relative;
        width: 100%;
        padding: 30px 0;
        justify-items: center;
    }
    .dataTables_wrapper .table-footer-bar .dataTables_info {
        position: relative;
        left: 0;
    }
    .dataTables_wrapper .table-footer-bar .dataTables_paginate {
        position: relative;
        display: flex;
        right: unset;
        box-shadow: none;

    }
    .dataTables_wrapper .table-footer-bar .dataTables_paginate .paginate_button {
     min-width: 0;   
    }
    .dataTables_wrapper .table-footer-bar .dataTables_paginate .ellipsis {
        min-width: 0;
    }
}
@media (max-width: 1080px) {
    nav .inner {
        width: 100%;
        padding: 0 0.85rem;
    }
    .template-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .main-menu {
        position: absolute;
        left: 0.65rem;
        right: 0.65rem;
        top: 84px;
        border: 1px solid #d7e0e8;
        border-radius: 0 0 14px 14px;
        background: #ffffff;
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
        padding: 0.75rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        box-sizing: border-box;
        z-index: 500;
    }
    .main-menu.is-open {
        display: flex;
    }
    nav .main-menu ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
    nav .main-menu li {
        width: 100%;
    }
    nav .main-menu ul a {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
        padding: 0.72rem 0.78rem;
        background: #f7f9fb;
        color: #2f3b47;
    }
    nav .main-menu ul a:hover {
        background: #eef4f9;
        color: #172029;
    }
    nav .main-menu ul a::after {
        display: none;
    }
    .breadcrumb__inner {
        width: 100%;
        padding: 0.45rem 0.65rem;
    }
}
@media (max-width: 1040px) {
    .dataTable th:nth-child(n+5),
    .dataTable tbody td:nth-child(n+5),
    .dataTable colgroup col:nth-child(n+5) {
        display: none;
        visibility: collapse;
    }
    .orders-job-details__pieces,
    .orders-job-details__weight {
        display: flex !important;
    }
}
@media (max-width: 980px) {
    #orders-advanced-search-modal .ucs-modal__dialog > .row:not(:first-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .dataTable {
        font-size: 0.88rem;
    }
    .dataTable th:nth-child(n+5),
    .dataTable tbody td:nth-child(n+5),
    .dataTable colgroup col:nth-child(n+5) {
        display: none;
        visibility: collapse;
    }
    .orders-job-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .orders-job-details__pickup,
    .orders-job-details__delivery {
        display: flex !important;
    }
}
@media (max-width: 740px) {
    .orders-job-details div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .table-toolbar {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    .dataTables_wrapper .dataTables_length {
        width: fit-content;
    }
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        box-sizing: border-box;
    }
    .toolbar-icon-button {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        padding: 0;
    }
    .dataTables_wrapper .table-footer-bar .dataTables_info,
    .dataTables_wrapper .table-footer-bar .dataTables_paginate {
        float: none;
    }   

    .page-shell {
        width: 100%;
        padding: 0.75rem 0.65rem 2rem;
    }
    .page-content {
        padding: 20px;
    }
    .tab-group {
        height: auto;
        padding: 0.7rem 0;
    }
    .tab-list {
        display: none;
    }
    .orders-stage-select {
        display: block;
    }
    .table-responsive,
    .dataTables_wrapper {
        max-width: 100%;
        overflow-x: hidden;
    }
    .dataTable {
        table-layout: fixed;
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.82rem;
    }
    .dataTable th,
    .dataTable td {
        padding: 8px;
    }
    .dataTable th:nth-child(n+5),
    .dataTable tbody td:nth-child(n+5) {
        display: none;
    }
    .group-row,
    .group-row__left,
    .group-row__right {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.35rem;
    }
    .group-row__order-link,
    .group-row__customer,
    .group-row__total {
        font-size: 1rem;
    }
}
@media (max-width: 640px) {
    #orders-advanced-search-modal.ucs-modal {
        align-items: stretch;
    }
    #orders-advanced-search-modal .ucs-modal__dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 18px;
    }
    #orders-advanced-search-modal .ucs-modal__dialog > .row:not(:first-child) {
        grid-template-columns: 1fr;
    }
    #orders-advanced-search-modal .ucs-modal__title {
        font-size: 24px;
    }
    #orders-advanced-search-modal .advanced-modal__actions {
        position: sticky;
        bottom: -18px;
        margin: 0 -18px -18px;
        padding: 12px 18px;
        background: #fff;
        border-top: 1px solid #d8e0e8;
    }
    #orders-advanced-search-modal .advanced-modal__actions button {
        flex: 1 1 0;
    }
}
