:root {
    --primary: #682d91;
    --primary-light: #a86dd1;
    --primary-dark: #3f0366;
    --dark: #333;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    overflow-x: hidden;
}

.dropdown-menu {
    overflow-y: auto !important;
}

.form-select {
    width: fit-content;
}

.table th, .table td {
    font-size: .8rem;
}

.nav-item .dropdown-item {
    color: #fff !important;
    transition-duration: 200ms;
}

    .nav-item .dropdown-item:hover {
        background: var(--primary-light);
    }

.dropdown li.dropdown-item {
    color: #333 !important;
    cursor: pointer;
    transition-duration: 100ms;
}

    .dropdown li.dropdown-item:hover {
        background: var(--primary);
        color: #fff !important;
    }

.dropdown div.form-select {
    width: 100%;
    box-shadow: 0px 0px 0px 1px #000 inset;
}

input.form-control {
    box-shadow: 0px 0px 0px 1px #000 inset;
}

table th {
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    padding: 0px .25rem;
}

input::placeholder {
    font-size: .85rem;
}

input {
    accent-color: var(--primary);
}

#shipmentsTable {
    font-size: .8rem;
}

.w-fit {
    width: fit-content;
}

.table-sm td {
    padding: .25rem .5rem;
}

#excel-btn {
    margin-left: .5rem;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

::-webkit-scrollbar {
    width: 12px;
    position: relative;
    background: var(--dark);
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 0px;
}


*::selection {
    background: var(--primary-light);
    color: #000;
}

.form-select:focus {
    outline-color: var(--primary);
    box-shadow: 0px 0px 0px 3px var(--primary-light);
    border-color: var(--primary);
}

body {
    min-height: 100vh;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    background: #fbfbfb;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bg-img {
    position: relative;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: -1;
}

td {
    vertical-align: middle;
}

.even-cols {
    table-layout: fixed;
}

@media screen and (max-width: 1100px) {
    .even-cols {
        table-layout: unset;
    }
}

.custom-btn {
    border: 4px solid var(--primary);
    border-radius: 50px;
    background: var(--primary);
    padding: 8px 36px;
    color: #fff;
    transition-duration: 250ms;
    box-shadow: 0px 10px 20px 3px #0003;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

    .custom-btn:hover {
        background: var(--primary-dark);
        border-color: var(--primary-light);
        box-shadow: none;
        transform: scale(.95);
        color: var(--primary-light);
        box-shadow: 0px 5px 10px 0px #0003;
    }

.custom-btn.outbound {
    background: #399;
    border-color: #399;
}

    .custom-btn.outbound:hover {
        background: #5cc;
        border-color: #266;
        color: #266;
    }

    .custom-btn.square {
        border-radius: 5px;
    }

    .custom-btn.small {
        padding: 6px 18px;
    }

    .custom-btn.small.thin {
        padding: 3px 18px;
    }

    .custom-btn.round {
        border-radius: 50%;
        padding: 12px 12px;
        font-size: 1.5rem;
    }

    .custom-btn:disabled {
        background-color: #ccc;
        border: 2px solid var(--primary);
        color: var(--primary);
        cursor: default;
        box-shadow: none;
    }

.custom-btn:disabled:hover {
    transform: scale(1);
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #ccc;
}

.text-purp {
    color: var(--primary) !important;
}

a.text-purp:hover {
    color: #fff;
}

.text-purp-light {
    color: var(--primary-light) !important;
}

.text-purp-dark {
    color: var(--primary-dark) !important;
}

.text-shadow-purp {
    text-shadow: 2px 2px 0px var(--primary);
}

.text-shadow-white {
    text-shadow: 1px 0px 0px #fff, -1px 0px 0px #fff, 0px 1px 0px #fff, 0px -1px 0px #fff;
}

.bg-purp {
    background: var(--primary) !important;
}

.bg-purp-dark {
    background: var(--primary-dark) !important;
}

.bg-white {
    background: #fff;
    background-color: #fff !important;
}

.color-purp {
    color: var(--primary);
}

.bg-gray {
    background: #333;
}

.scroll-y {
    overflow-y: auto;
}

.title {
    color: var(--primary);
    font-weight: 800;
    margin: 16px 0;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0px 0px 0px .25rem var(--primary-light);
}


.carrier-logo {
 max-width: 120px;
 height: auto;
 object-fit: contain;
 max-height: 48px;
}

.carrier-logo.small {
    max-width: 100px;
}

.img-icon {
    width: 100px;
    height: auto;
}

/* nav */
 .nav-item > a.nav-link, .navbar a.navbar-brand {
    color: #fff;
    padding: 16px 8px;
    transition-duration: 150ms;
}

.nav-link:hover, .navbar-brand:hover, a.nav-link.current-page {
    text-shadow: 0px 0px 35px #fff, 0px 0px 20px #fff, 0px 0px 10px #fff;
}


a.nav-link:active, a.nav-link:focus {
    text-shadow: 0px 0px 10px #fff;
}


td > p {
    margin: 0;
    padding: 16px 0px
}

#history-table th {
    cursor: pointer;
}


/* shipment details */
 #shipment-details-container label {
    font-size: .9rem;
    font-weight: 600;
}

#shipment-details-container label.display-label {
    font-weight: 400 !important;
    font-size: 1rem;
}

input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], select {
    padding: .25rem;
    height: 38px;
    border: none;
    box-sizing: border-box;
    border-radius: 0px !important;
    box-shadow: 0px 0px 0px 1px #000 inset;
}

#shipment-details-container input:focus, #shipment-details-container textarea:focus, 
#shipment-details-container select:hover, #shipment-details-container input:hover {
    outline-color: var(--primary);
    box-shadow: 0px 0px 0px 3px var(--primary);
    z-index: 10;
    border: none;
    outline: var(--primary);
}

#shipmentItem .form-check {
    padding: 0px 12px;
}


.subtitle {
    background: var(--primary);
    color: #fff;
    padding: .35rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.subtitle-2 {
    margin: 1rem 0;
    color: var(--dark);
    font-size: 1.75rem;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    font-weight: 600;
}

.subtitle-2.addon {
    text-decoration: none;
    margin-left: 12px;
}

.ship-item-btn {
    box-sizing: border-box;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--primary);
    opacity: .4;
    color: #fff;
    transition-duration: 200ms;
    margin: auto;
    cursor: pointer;
}

.delete-btn {
    background: #f00;
}

.ship-item-btn:hover {
    opacity: 1;
}

.ship-item-btn.filled {
    opacity: 1;
}

.custom-tooltip.show {
    background: var(--primary-dark);
    border-radius: 5px;
    opacity: 1 !important;
}

.tooltip div.tooltip-inner {
    background: var(--primary-dark);
    opacity: 1 !important;
    font-weight: 500;
}

.text-danger {
    font-size: 14px
}

.hide {
    display: none !important;
}

.soft-hide {
    display: none;
}

#shipment-details-container .col-sm-auto {
    padding: 0px 8px;
}

.custom-select {
    min-width: 150px;
}

.custom-select:disabled:hover {
    box-shadow: 0px 0px 0px 1px #000 inset !important;
}

#shipment-details-container, #shipment-details-container h6 {
    font-size: .9rem;
}

.input-container {
    position: relative;
}

.small-input {
    max-width: 115px;
}

.fs-small{
    font-size: .8rem;
}

.delete-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: .5rem;
    padding: 0;
}
.totalRow td {
    border-top: 2px solid #000;
    font-weight: bold;
}

.shipmentNotes {
    list-style: none;
}

.shipmentNotes li {
    background: #682d9144;
    width: fit-content;
    margin-bottom: 4px;
    padding: 0px 2px
}


@media screen and (max-width: 742px) {
    .delete-box {
        top: 0;
        transform: none;
    }
}
.img-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}
.shipment-img-container {
    position: relative;
}

.delete-img-btn {
    border: none;
    background: #f00;
    border-radius: 50%;
    color: #fff;
    width: 25px;
    height: 25px;
    position: absolute;
    cursor: pointer;
    top: 18px;
    right: 1px;
}

.handling-unit-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    max-height: 250px;
    margin-top: 1rem;
}

#calculated-class-table {
    text-align: center;
    table-layout: fixed;
    font-size: .8rem
}

    #calculated-class-table th {
        text-align: center;
        table-layout: fixed;
    }


    #calculated-class-table td {
        padding: .25rem;
    }



#calculated-class-table .calculatedClass {
    background: var(--primary);
    color: #fff;
}

    #calculated-class-table .enteredClass {
        background: #f55;
        color: #fff;
    }

.colorBlock {
    padding: 3px 6px;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 0;
}

.colorBlock.calculated {
    background: var(--primary);
}
    .colorBlock.entered {
        background: #f55;
    }

    .colorBlock.adjusted {
        background: var(--primary-dark);
        padding: 2px 4px !important;
    }

.offcanvas-header {
    padding: .5rem !important;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offcanvas-body p {
    margin-bottom: .5rem !important;
}

#loading-overlay {
    position: fixed;
    inset: 0;
    background: #3333;
    z-index: 9999;
    display: none;
}

#loading-overlay-content {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}

#loading-overlay.visible {
    display: block;
}

.spinner-grow {
    animation-duration: 1000ms;
}

.spinner-grow:nth-child(2) {
    animation-delay: 100ms;
}
.spinner-grow:nth-child(3) {
    animation-delay: 200ms;
}
.spinner-grow:nth-child(4) {
    animation-delay: 300ms;
}
.spinner-grow:nth-child(5) {
    animation-delay: 400ms;
}


/* carrier selection */
.data-row {
    height: 65px;
    transition-duration: 100ms;
    background: #fff;
    box-sizing: border-box;
    border-bottom: 1px solid #3333;
}

.data-row.best-offer {
    border: 2px solid var(--primary-light);
}

.data-row td {
    padding: 4px 0px;
}

.data-row:hover {
    background: #682d9120;
}

@media screen and (max-width: 900px) {
    .data-row td {
        background: #fff;
    }
}

#carrier-table, #best-offer-table, #submission-table {
    font-size: .8rem;
    table-layout: fixed;
    border: 1px solid #dedede;
    width: 100%;
    min-width: 700px;
}

    #carrier-table th, #carrier-table td, #best-offer-table th, #best-offer-table td, #submission-table th, #submission-table td {
        padding: 6px;
        border: none;
        
    }

    #best-offer-table th, #submission-table th, #carrier-table th {
        color: #efefef;
        background: var(--primary);
        padding: 1rem 6px;
    }

    #carrier-table th {
        cursor: pointer;
    }

.arrow-icon {
    margin-left: 4px;
}

.table-container {
    overflow-x: auto;
    padding: 0;
}
#form-container div {
    display: flex;
    padding: 4px;
}

#form-container label {
    margin-left: .5rem;
}

.bol-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    .bol-container .subtitle {
        width: 100%;
        text-align: center;
    }

iframe {
    width: 100%;
}

/* Login / signup / contact */
    .login-page {
        background-color: #222d;
        background-image: url(/images/login_img.JPG);
        background-blend-mode: overlay;
        background-position: center;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        padding: 1rem;
        min-height: calc(100vh - 63px);
    }

.contact-page {
    background-image: url(/images/pallets.jpg);
}

.login-page h2 {
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #3331;
    backdrop-filter: blur(6px);
    padding: 3rem;
    width: fit-content;
}

.contact-form {
    background: #3331;
    backdrop-filter: blur(6px);
    border-radius: 8px;
}


.custom-form-ctrl {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 2rem;
}

.custom-form-ctrl p {
    margin:0;
}

.custom-form-ctrl .error-msg {
    position: absolute;
    top: calc(100% - 1.9rem);
    left: 12px;
    max-width: 100%;
    font-size: .85rem;
    line-height: 1rem;
}

    .custom-form-ctrl input, .custom-form-ctrl select {
        font-size: 1rem;
        height: 40px;
        padding: 6px;
        backdrop-filter: blur(6px);
        border-radius: 8px;
        background: rgb(232, 240, 254);
        box-sizing: border-box;
    }

        .custom-form-ctrl input:focus {
            outline: 2px solid var(--primary);
            box-shadow: none;
        }

.login-form .custom-form-ctrl input, .login-form .custom-form-ctrl select {
    width: 325px;
}

    .custom-form-ctrl textarea {
        border-radius: 8px;
        background: rgb(232, 240, 254);
        width: 100%;
        font-size: 1rem;
        padding: 8px;
        border: 2px solid black;
    }

    .custom-form-ctrl label {
        font-size: 1rem;
        transition-duration: 250ms;
        padding: 0px 3px;
        color: #fff;
    }

    .purp-border {
        border: 2px solid var(--primary) !important;
        box-shadow: 0px 0px 50px 10px var(--primary);
    }

    .powered-by-shiplify {
        display: inline-flex;
        flex-direction: column;
        width: fit-content;
        align-items: center;
    }

    .powered-by-shiplify p {
        margin-bottom: 0px;
        font-size: .75rem;
        color: #57ae75;
    }

    .modal-xxl {
        max-width: 1200px;  
    }


#lanes-add-modal label {
    font-size: .85rem;
}

.modal-body label {
    font-size: .9rem;
}

.small-link {
    font-size: .8rem;
    color: #682d91;
    cursor: pointer;
    width: fit-content;
    display: block;
}

.display-tab {
    background: #b4d6fa;
    color: #0f548c;
}

/* account */
.perc-sign {
    position: relative;
    left: -40px;
}


    /* carrier setup */
    .carrier-setup h4 {
        font-weight: 600;
        color: #fff;
        padding: .25rem .5rem;
        text-shadow: 0px 0px 4px #000;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }
.carrier-setup label {
    display: block;
}

.carrier-setup input[type=text], .carrier-setup input[type=password] {
    width: 300px;
}

.carrier-setup p {
    margin-bottom: 0 !important;
    font-weight: 600;
    color: #fff;
    text-shadow: 0px 0px 4px #000;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.carrier-setup p.small {
    font-size: 1rem;
    margin-right: .5rem;
}

.carrier-setup > div:first-child {
    margin-bottom: 1rem;
}

#config-shipper-tbody td {
    padding: .5rem !important;
}

#config-shipper-tbody tr.order-row {
    height: auto !important;
}

/* tabbing */
.tabs-container {
    max-width: 100%;
}
.tabs-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}
.tab-nav {
    border: 1px solid #aaa;
    box-sizing: border-box;
    padding: .5rem 1rem;
    cursor: pointer;
    border-bottom: none;
    background: #eee;
}
.tab-nav.active {
    position: relative;
    background: #fff;
}
.tab-nav.active::before {
    content: "";
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    bottom: -1px;
    left: 0;
}
.tabs-display {
    padding: .5rem;
    border: 1px solid #aaa;
}
.tab {
    display: none;
}
.tab.active {
    display: block;
}
.carrier-select-calendar {
    display: grid;
}
.carrier-select-calendar-day{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 1px solid #aaa;
    padding: 0rem .5rem 1rem;
}
.carrier-select-calendar-day:last-child {
    border-right: none;
}
.carrier-select-calendar-day > p {
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: .25rem;
    box-shadow: 0px 4px 4px 1px #3333;
}
.carrier-select-calendar-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #888;
    padding: .5rem;
    gap: .25rem;
    box-shadow: 0px 4px 4px 1px #3333;
}

.carrier-select-calendar-card table td{
    padding: .25rem;
}

.carrier-select-calendar-card div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.carrier-select-calendar-card input[type=button] {
    display: flex;
    height: fit-content;
    width: 100%;
}

/* animations */
@keyframes slide-in {
    0% {
        transform: translateY(150px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-150px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(-150px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}


@keyframes slide-right {
    0% {
        transform: translateX(150px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}


.animated {
    opacity: 0;
    position: relative;
    animation-fill-mode: forwards;
}

.slide-in-up {
    animation-name: slide-in;
    animation-timing-function: ease-out;
    animation-duration: 500ms;
}

.slide-in-down {
    animation-name: slide-down;
    animation-timing-function: linear;
}

.slide-in-left {
    animation-name: slide-left;
    animation-timing-function: linear;
}

.slide-in-right {
    animation-name: slide-right;
    animation-timing-function: linear;
}

.delay-1 {
    animation-delay: 500ms;
}

.delay-2 {
    animation-delay: 1000ms;
}

.mad-1 {
    animation-duration: 250ms;
}

.mad-2 {
    animation-duration: 500ms;
}

.mad-3 {
    animation-duration: 750ms;
}

.mad-4 {
    animation-duration: 1000ms;
}

@media screen and (max-width: 900px) {
    .animated {
        opacity: 1;
    }
    .carrier-logo {
        max-width: 80px;
    }
}