@font-face {
    font-family: 'Helvetica Now Display';
    src: url('fonts/HelveticaNowDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now Display';
    src: url('fonts/HelveticaNowDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now Display';
    src: url('fonts/HelveticaNowDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

:root {
    /* Primary color */
    --md-sys-color-primary: #1755ff; /* Main color */
    --md-sys-color-on-primary: #ffffff;
    /* Secondary color */
    --md-sys-color-secondary: #1755ff;
    --md-sys-color-on-secondary: #000000;
    /* Background color */
    --md-sys-color-background: #ffffff;
    --md-sys-color-on-background: #000000;
    /* Surface color */
    --md-sys-color-surface: #ffffff;
    --md-sys-color-on-surface: #000000;
}
/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.4);
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: rgba(0, 0, 0, 0.6);
    }

/* Main */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Now Display', sans-serif;
    margin: 0;
    background: #E5E7F1;
}
    /* Dark mode - Body */
    body.dark {
        background: #141C21;
    }

@media screen and (min-width: 1024px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
}

a {
    color: #1061FF;
}

img {
    max-width: 100%;
}

.wrap.freeTracking {
    flex-direction: column;
}

    /* Add padding for mobile header on free tracking pages */
    @media screen and (max-width: 820px) {
        .wrap.freeTracking .body {
            padding-top: 65px;
        }
    }

    .wrap.freetracking > .header {
        display: flex;
        background: white;
        padding: 10px 20px;
        justify-content: space-between
    }

        .wrap.freetracking > .header img {
            max-height: 30px;
        }

    /* Keep margin for back button, remove for others */
    .wrap.freeTracking .header > div:first-child .icon-button {
        margin-bottom: 13px;
        margin-top: 13px;
    }

    .wrap.freetracking > .header .mobile-lockup {
        display: flex;
        justify-content: space-between;
        /* width: 100%; */
        align-items: center;
    }

    .wrap.freetracking > .header .mobile-hide {
    }

    .wrap.freetracking > .header .mobile-show {
        display: none;
    }

@media screen and (min-width: 1024px) {
    .wrap {
        height: 100vh;
        display: flex;
    }
}

@media screen and (max-width: 560px) {
    .wrap.freetracking > .header {
        flex-direction: column;
        align-items: baseline;
        gap: 19px;
    }

        .wrap.freetracking > .header .mobile-lockup {
            width: 100%;
        }

        .wrap.freetracking > .header .mobile-hide {
            display: none;
        }

        .wrap.freetracking > .header .mobile-show {
            display: block;
        }
}


/* Typography */
h1 {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    color: #373737;
    margin: 0;
}
/* Dark mode - h1 */
body.dark h1 {
    color: #ffffff;
}

h2 {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    margin-top: 0;
    color: #373737;
}
/* Dark mode - h2 */
body.dark h2,
body.dark h3 {
    color: #ffffff;
}

h3 {
    margin: 0;
}

div.helperText {
    font-size: 14px;
    font-weight: 400;
    color: #6B7786;
    margin-top: 10px;
}

.dark div.helperText {
    color: #99A1AF;
}

span.helperText {
    font-size: 14px;
    font-weight: 400;
    color: #6B7786;
    margin-top: 10px;
}

.dark span.helperText {
    color: #99A1AF;
}

.dark div.helperText {
    color: #99A1AF;
}

/* Order header container for free tracking */
.order-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-header h2 {
    margin-bottom: 0;
}

.order-number {
    display: inline-flex;
    align-items: center;
}

/* Submit link button styling */
.submitLink {
    color: #1061FF;
    background-color: transparent;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Helvetica Now Display', sans-serif;
    padding: 0;
    margin: 0;
    display: inline;
}

.submitLink:hover {
    text-decoration: underline;
    color: #0d4acc;
}

.submitLink:active {
    color: #0a3a99;
}

body.dark .submitLink {
    color: #2883FF;
}

body.dark .submitLink:hover {
    color: #4a99ff;
}

body.dark .submitLink:active {
    color: #6bb0ff;
}

p {
}

/* Buttons */
md-outlined-button {
    --_outline-color: rgba(16, 97, 255, 0.25);
    --_outline-width: 2px;
    --_label-text-size: 16px;
    --_label-text-font: 'Helvetica Now Display', sans-serif;
    --_label-text-weight: 700;
    --_pressed-outline-color: #1755ff;
    --_container-height: 47px;
    --_hover-state-layer-color: rgba(16, 97, 255, 0.08);
}

    md-outlined-button.light {
        --_outline-color: rgba(255, 255, 255, 0.25);
        --_label-text-color: #ffffff;
        --_hover-state-layer-color: #ffffff;
        --_hover-outline-color: #ffffff;
        --_pressed-state-layer-color: #ffffff;
        --_pressed-outline-color: #ffffff;
        --_hover-label-text-color: #ffffff;
        --_focus-label-text-color: #ffffff;
        --_pressed-label-text-color: #ffffff;
    }

md-filled-button {
    --_label-text-font: 'Helvetica Now Display', sans-serif;
    --_label-text-weight: 500;
    --_container-height: 47px;
    --_label-text-size: 16px;
}


/* inputs */
md-outlined-text-field {
    --_outline-color: #CBCBCB;
    --_focus-outline-color: #1755ff;
    --_outline-width: 1px;
    --_focus-outline-width: 2px;
}
/* Dark mode - inputs */
body.dark md-outlined-text-field {
    --_outline-color: #3F4C5C;
    --_focus-outline-color: #2883FF;
    --_label-text-color: #6B7786;
    --_focus-label-text-color: #2883FF;
    --_input-text-color: #ffffff;
    --_focus-input-text-color: #ffffff;
    --_disabled-input-text-color: #ffffff;
    --_disabled-label-text-color: #6B7786;
    --_disabled-outline-color: #3F4C5C;
}

.sidebar md-outlined-text-field {
    --_outline-color: #787878;
    --_label-text-color: #ffffff;
    --_input-text-color: #ffffff;
    --_focus-input-text-color: #ffffff;
    --_focus-label-text-color: #4776f8;
}

/* Select */
md-outlined-select {
    --_text-field-outline-color: #CBCBCB;
    --_text-field-focus-outline-color: #1755ff;
    --_text-field-outline-width: 1px;
    --_text-field-focus-outline-width: 2px;
    --md-sys-color-surface: #F6F7FC;
    --md-sys-color-surface-container-highest: #F6F7FC;
    --md-sys-color-on-surface: #000000;
    --md-sys-color-primary: #1755ff;
    --md-sys-color-outline: #CBCBCB;
    --md-menu-container-color: #ffffff;
    --md-menu-container-shape: 4px;
    --md-select-text-field-caret-color: #1755ff;
    --md-menu-item-selected-container-color: #e9eefe;
    --md-menu-item-hover-state-layer-color: #acaccf;
}

/* Dark mode - Select */
body.dark md-outlined-select {
    --_text-field-outline-color: #3F4C5C;
    --_text-field-focus-outline-color: #2883FF;
    --_text-field-label-text-color: #6B7786;
    --_text-field-focus-label-text-color: #2883FF;
    --_text-field-input-text-color: #ffffff;
    --_text-field-disabled-input-text-color: #ffffff;
    --_text-field-disabled-label-text-color: #6B7786;
    --_text-field-disabled-outline-color: #3F4C5C;
    --md-sys-color-surface: #1E2931;
    --md-sys-color-surface-container-highest: #1E2931;
    --md-sys-color-on-surface: #ffffff;
    --md-menu-container-color: #1E2931;
    --md-select-text-field-caret-color: #2883FF;
    --md-menu-item-selected-container-color: #2883FF;
    --md-menu-item-hover-state-layer-color: rgba(40, 131, 255, 0.1);
}

md-select {
    --md-select-container-color: #F6F7FC;
    --md-select-container-shape: 4px;
}

md-menu {
    --md-menu-container-color: #F6F7FC;
    --md-menu-container-shape: 4px;
}

md-select-option {
    --md-select-option-hover-state-layer-color: #F9F9FC;
    --md-select-option-hover-state-layer-opacity: 1;
}

    md-select-option[selected] {
        --md-select-option-selected-container-color: #e9eefe;
    }

    /* Remove the specific text color styling */
    md-select-option::part(headline) {
        color: inherit;
    }

/* Updated styles for the ripple effect */
md-ripple {
    --md-ripple-hover-color: #F9F9FC;
    --md-ripple-pressed-color: rgba(23, 85, 255, 0.12);
}

/* Checkbox */
md-checkbox {
    --md-checkbox-container-color: #F6F7FC;
    --md-checkbox-container-shape: 4px;
}

    md-checkbox::part(container) {
        --md-checkbox-container-color: #F6F7FC;
        --md-checkbox-container-shape: 4px;
    }

.dark md-checkbox {
    --md-checkbox-container-color: #f0f3f5;
    --md-checkbox-container-shape: 4px;
    --md-checkbox-outline-color: rgba(255, 255, 255, 0.3);
}

    .dark md-checkbox:hover {
        --md-checkbox-hover-outline-color: rgba(255, 255, 255, 0.6);
        --md-checkbox-outline-color: rgba(255, 255, 255, 0.6);
    }

    .dark md-checkbox::part(outline) {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .dark md-checkbox:hover::part(outline) {
        border-color: rgba(255, 255, 255, 0.6);
    }

.md-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #373737;
    margin: 0 10px 10px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.dark .md-checkbox-label {
    color: #99A1AF;
}

/* Surface */
.surfaceLockup {
    border: 1px solid #D4D7DC;
    border-radius: 10px;
    overflow: hidden;
}

.formgrid + .surfaceLockup {
    margin-top: 20px;
}

.surface {
    padding: 20px 26px 26px;
    border-radius: 10px;
    background: #F6F7FC;
    box-shadow: 0px 5px 2.8px 0px rgba(0, 0, 0, 0.04);
}

.surface--lined {
}

.surfacelockup .surface {
    box-shadow: none;
    border-bottom: 1px solid #D4D7DC;
    border-radius: 0;
    background: transparent;
}

    .surfacelockup .surface:last-child {
        border-bottom: none;
    }

@media screen and (max-width:460px) {
    .surfacelockup .surface {
        padding: 14px;
    }
}

/* Dark mode - Surface */
body.dark .surface {
    background: #1E2931;
    box-shadow: none;
}

body.dark .surfaceLockup {
    border-color: rgb(255 255 255 / 10%);
}

    body.dark .surfacelockup .surface {
        border-color: rgb(255 255 255 / 10%);
    }


@media screen and (min-width: 1024px) {
    .mobileNav {
        display: none;
    }
}

@media screen and (max-width: 1023px) {
    .mobileNav {
        display: flex;
        padding: 10px 20px;
        align-items: center;
        justify-content: space-between;
        background: #283340;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        box-shadow: 0px 5px 2.8px 0px rgba(0, 0, 0, 0.04);
    }

    .navToggle {
        background: transparent;
        border: 0;
        width: 40px;
        height: 36px;
        cursor: pointer;
    }

        .navToggle svg path {
            fill: white;
        }
}

.mobileNav .logo {
    max-width: 130px;
    max-height: 60px;
}

/* Sidebar */
.sidebar {
    width: 275px;
    background: #293340;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    overflow: auto;
    flex-shrink: 0;
}

@media screen and (min-width: 1024px) {
    .sidebar {
    }
}

@media screen and (max-width: 1023px) {
    .sidebar {
        position: fixed;
        z-index: 9;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar.open {
            transform: translateX(0);
        }
}

/* Scrim */
.scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8;
    display: none;
}

.sidebar.open ~ .scrim {
    display: block;
}

@media screen and (min-width: 1024px) {
    .scrim {
        display: none;
    }
}

/* Sidebar - Logo */
.logo-link {
    padding: 12px 16px;
    display: block;
}

.sidebar .logo {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

    .sidebar .logo img {
        max-width: 160px;
        mix-blend-mode: normal; /* Prevent darkening */
    }

    body.dark .sidebar .logo img {
        mix-blend-mode: normal;
        opacity: 0.9;
    }

/* Darkmode button */
.darkmode {
    background: transparent;
    border: 0;
    display: flex;
    padding: 9px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 25px;
}

    .darkmode:hover {
        background: rgba(166, 189, 255, 0.11);
    }

    .darkmode svg {
        width: 18px;
        height: 18px;
    }

/* Zoom Control Buttons */
.zoom-in,
.zoom-out {
    background: transparent;
    border: 0;
    display: none; /* Hidden by default - only show in Quick-Entry app */
    padding: 9px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 25px;
    transition: background 0.2s ease;
}

/* Show zoom buttons only in Quick-Entry app */
body.quick-entry-app .zoom-in,
body.quick-entry-app .zoom-out {
    display: flex;
}

.zoom-in:hover,
.zoom-out:hover {
    background: rgba(166, 189, 255, 0.11);
}

.zoom-in svg,
.zoom-out svg {
    width: 18px;
    height: 18px;
}

/* Dark mode SVG color override */
body.dark .zoom-in svg path,
body.dark .zoom-out svg path {
    stroke: #99A1AF;
}

/* Disabled state */
.zoom-in:disabled,
.zoom-out:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Print media - reset zoom */
@media print {
    body {
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Sidebar - Nav */
nav {
    padding: 0 20px;
    border-bottom: 1px solid #33404E;
}

    nav ul {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding-bottom: 27px;
    }

    nav li {
        list-style: none;
        padding: 0;
        margin: 0;
        border-radius: 30px;
        transition: 0.26s ease-out all;
    }

        nav li.active {
            background: #1061FF;
        }

        nav li:not(.active):hover {
            background: rgb(166 189 255 / 11%);
        }

        nav li a {
            text-decoration: none;
            display: flex;
            align-items: center;
            padding: 12px 13px;
        }

        nav li.active a {
        }

        nav li:not(.active):hover a svg path {
            stroke: #ffffff;
        }

        nav li.active svg path {
            stroke: white;
        }

        nav li a svg:first-child {
            margin-right: 11px;
        }

        nav li a svg:last-child {
            display: none;
        }

        nav li.active a svg:last-child {
            display: block;
        }

        nav li a svg path {
            stroke: #A0AFBD;
        }

        nav li span {
            font-weight: 500;
            color: #ffffff;
            flex-grow: 1;
        }

        nav li.active span {
            color: white;
            display: block;
        }

        nav li:not(.active):hover span {
            color: #ffffff;
        }

/* Tracking search */
.trackingSearch {
    padding: 20px 20px;
}

    .trackingSearch h2 {
        color: white;
    }

    .trackingSearch md-outlined-text-field {
        margin-bottom: 14px;
    }

    .trackingSearch .button {
        width: 100%;
    }

/* Software Download Box */
.downloadBox,
.downloadbox {
    display: none; /* Hidden by default, shown by JS if not in Quick-Entry */
    flex-direction: column;
    align-items: center;
    margin: 0 20px 20px 20px;
    background: #1F2934;
    border-radius: 17px;
    padding: 16px;
}

    .downloadBox img,
    .downloadbox img {
        margin-bottom: 9px;
    }

    .downloadBox p,
    .downloadbox p {
        margin-top: 0;
        color: #A0AFBD;
    }

    .downloadBox a,
    .downloadbox a {
        display: block;
        width: 100%;
    }

    .downloadBox .button,
    .downloadbox .button {
        width: 100%;
    }


/* Body */
.body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

/* Top container for centered content */
.body .top {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Announcement text below header */
.body .announcement {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

@media screen and (max-width:1023px) {

    .body {
        padding-top: 95px;
    }

    .freetracking .body {
        padding-top: 24px;
    }

    body.sidebar-open {
        overflow-y: hidden;
    }
}

@media screen and (max-width:460px) {
    .body {
        padding-left: 8px;
        padding-right: 8px;
    }

    h1 {
        margin-bottom: 12px;
    }

    h2 {
        margin-bottom: 10px;
    }
}

.body .top {
    flex-grow: 1;
    max-width: 1440px;
    margin: auto;
    width: 100%;
}

@media screen and (min-width:1024px) {
    .body .bottom {
        margin: 20px auto 0;
        width: 100%;
        position: relative;
        z-index: 2;
    }
}

@media screen and (max-width:1023px) {
    .body .bottom {
        position: relative;
        width: 100%;
        padding: 0 8px 8px 8px;
        margin-top: 20px;
    }

    .body .top {
        padding-bottom: 0;
    }
}

.body .header {
    display: flex;
    margin-bottom: 19px;
    justify-content: space-between;
}

/* Hide desktop header controls on mobile (keep title, hide buttons) */
@media screen and (max-width:1023px) {
    .body .header .header-right {
        display: none;
    }
}

@media screen and (max-width:460px) {
    .body .header {
        padding-left: 11px;
    }
}

a.tel-link {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

    a.tel-link svg {
        margin-right: 7px;
    }

@media screen and (max-width:1023px) {
    .body .header a.tel-link {
        display: none;
    }
}

@media screen and (max-width:460px) {
    a.tel-link {
        font-size: 14px;
    }

    .body .header a.tel-link svg {
        display: none;
    }
}

/* Disabled external links in embedded contexts */
.link-disabled-embedded {
    cursor: default !important;
    pointer-events: none;
}

.link-disabled-embedded:hover {
    text-decoration: none;
}

/* Ensure disabled logo links don't show hover effects */
.link-disabled-embedded img {
    cursor: default;
}

/* Header right container for phone and dark mode button */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Announcement banner */
.announcement {
    font-size: 12px;
    color: #666;
    padding: 8px 0;
    text-align: right;
    word-wrap: break-word;
    max-width: 100%;
}

.announcement:empty {
    display: none;
}

.dark .announcement {
    color: #A0A0A0;
}

/* Error message styling */
.error-message {
    background-color: #FFEBEE;
    color: #C62828;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #C62828;
    margin: 16px 0;
    font-size: 14px;
}

.dark .error-message {
    background-color: #3D1A1A;
    color: #FF6B6B;
    border-left-color: #FF6B6B;
}

/* Desktop dark mode button in header */
.desktop-darkmode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide desktop dark mode button on mobile */
@media screen and (max-width:1023px) {
    .desktop-darkmode {
        display: none !important;
    }
}

/* Mobile dark mode button */
.mobile-darkmode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide mobile dark mode button on desktop */
@media screen and (min-width:1024px) {
    .mobile-darkmode {
        display: none !important;
    }
}

/* Show tel-link in mobile header */
@media screen and (max-width:1023px) {
    .mobileNav .tel-link {
        display: flex !important;
    }
}

/* Hide desktop dark mode button on mobile */
@media screen and (max-width:1023px) {
    .desktop-darkmode {
        display: none !important;
    }
}

/* Mobile header layout */
.mobileNav .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: 100%;
}

.loginLogoAndNameHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.mobile-darkmode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide mobile dark mode button on desktop */
@media screen and (min-width:1024px) {
    .mobile-darkmode {
        display: none !important;
    }
}

.formMain, .main {
    display: flex; /* 2 columns */ /* 2 rows */
    gap: 10px; /* Space between items */
    flex-direction: column;
}

    .formMain > .row, .main > .row {
        display: flex;
        gap: 10px;
        flex-grow: 1;
    }

        .formMain > .row > .surface, .main > .row > .surface {
            flex-grow: 1;
            flex-shrink: 0;
            width: calc(50% - 5px);
        }

@media screen and (max-width:660px) {
    .formMain > .row, .main > .row {
        flex-direction: column;
    }

        .formMain > .row > .surface, .main > .row > .surface, .formMain > .surface, .main > .surface {
            width: 100%;
            padding: 17px 16px 19px;
        }
}

.formMain h2, .main h2 {
    display: flex;
    margin-bottom: 19px;
}

    .formMain h2 svg, .main h2 svg {
        margin-right: 9px;
    }

.formGrid, .mainGrid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .formGrid .row, .mainGrid .row {
        display: flex;
        gap: 16px;
        flex-grow: 1;
        flex-wrap: wrap;
    }

        .formGrid .row.nowrap, .mainGrid .row.nowrap {
            flex-wrap: nowrap;
        }

        .formGrid .row.spacebetween, .mainGrid .row.spacebetween {
            justify-content: space-between;
            align-items: center;
        }

        .formGrid .row .stretch, .mainGrid .row .stretch,
        .formGrid .row .w120, .mainGrid .row .w120 {
            flex-grow: 1;
        }

@media screen and (min-width:1470px) {
    .formGrid .row.col3, .mainGrid .row.col3 {
        flex-wrap: nowrap;
    }
}

@media screen and (min-width:1120px) {
    .formGrid .row .w120, .mainGrid .row .w120 {
        width: 120px;
        flex-shrink: 0;
        flex-grow: 0;
    }
}

@media screen and (min-width:870px) and (max-width:1023px) {
    .formGrid .row .w120, .mainGrid .row .w120 {
        width: 120px;
        flex-shrink: 0;
        flex-grow: 0;
    }
}

@media screen and (min-width:420px) and (max-width:660px) {
    .formGrid .row .w120, .mainGrid .row .w120 {
        width: 120px;
        flex-shrink: 0;
        flex-grow: 0;
    }
}

/* Route Layout */
.routeLayoutWrap {
}

.routeLayout {
    display: flex;
    gap: 16px;
}

.routeLayout_planYourRoute {
    flex-grow: 1;
    max-width: 470px;
}

.routeLayout_selectedCompany {
    flex-grow: 1;
}

.routeLayout .routeBack {
    display: none;
    cursor: pointer;
}

.routeLayout_planYourRoute .row {
    flex-wrap: nowrap;
}

@media screen and (min-width:900px) {
}

@media screen and (max-width:899px) {
    .routeLayoutWrap {
        overflow-x: hidden;
        width: calc(100% + 40px);
        margin-left: -20px;
        padding: 0 20px;
    }

    .routeLayout {
        width: calc(200vw - 77px);
        gap: 20px !important;
        flex-direction: row !important;
        transition: 0.3s ease all;
    }

    .routeLayout_planYourRoute,
    .routeLayout_selectedCompany {
        width: calc(50% - 10px) !important;
        max-width: none;
    }

    .routeLayout .routeBack {
        display: inline-flex
    }

    .routeState--list .routeLayout_selectedCompany {
        height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .top.routeState--details + .bottom {
        display: none;
    }

    .routeState--details .routeLayout {
        transform: translateX(calc(-50% - 10px));
    }
}

@media screen and (max-width:460px) {
    .routeLayoutWrap {
        width: calc(100% + 10px);
        margin-left: -10px;
        padding: 0 10px 10px;
    }

    .routeLayout {
        width: calc(200vw - 40px);
        gap: 10px !important;
    }

    .routeLayout_planYourRoute,
    .routeLayout_selectedCompany {
    }

    .routeState--details .routeLayout {
        transform: translateX(calc(-50% - 5px));
    }

    .routeLayout_planYourRoute .row {
        flex-wrap: wrap;
    }
}

.multiGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

    .multiGrid .row {
        flex-grow: 1;
    }

.info-label {
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
    color: #535d6d;
}

.dark .info-label {
    color: #96a0af;
}

.info-value {
    font-size: 18px;
    display: block;
}

.dark .info-value {
    color: white;
}

.tabled-data {
    gap: 0;
}

    .tabled-data .row {
        border-bottom: 1px solid #e0e2ef;
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 16px;
        padding: 6px 0px;
        align-items: center;
    }

.freeTracking .tabled-data .row,
.freeTracking .tabled-data multipleStatus > .row,
.freeTracking .tabled-data vbstatusrow1 > .row,
.freeTracking .tabled-data vbstatusrow2 > .row,
.freeTracking .tabled-data vbstatusrow3 > .row,
.freeTracking .tabled-data vbstatusrow4 > .row {
    padding: 14px 0px;
}

.dark .tabled-data .row {
    border-color: #e0e2ef12;
}

.tabled-data .row:last-child {
    border-bottom: none;
}

/* Ensure status rows within VBStatusRow tags also get borders */
.tabled-data multipleStatus > .row,
.tabled-data vbstatusrow1 > .row,
.tabled-data vbstatusrow2 > .row,
.tabled-data vbstatusrow3 > .row,
.tabled-data vbstatusrow4 > .row {
    border-bottom: 1px solid #e0e2ef;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 6px 0px;
    align-items: center;
}

.dark .tabled-data multipleStatus > .row,
.dark .tabled-data vbstatusrow1 > .row,
.dark .tabled-data vbstatusrow2 > .row,
.dark .tabled-data vbstatusrow3 > .row,
.dark .tabled-data vbstatusrow4 > .row {
    border-color: #e0e2ef12;
}

.tabled-data .info-label {
    margin: 0;
}

.tabled-data .info-value {
}

.signature {
}

    .signature img {
        max-height: 180px;
        margin: 0 auto;
        display: block;
    }

.freeTracking .signature {
}

    .freeTracking .signature img {
        margin: 0;
        max-height: 78px;
    }

.dark .signature img {
    filter: invert(1);
    mix-blend-mode: color-dodge;
}

/* Dark mode support for canvas-drawn signatures (Sig.js) */
.dark #linecanvas,
.dark #linecanvas > div {
    filter: invert(1);
}

.icon-button {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 13px;
}
/* Actionbar */
.actionbar {
    display: flex;
    padding: 16px 20px;
    justify-content: space-between;
    border-radius: 10px;
    background: #283340;
}
/* Dark mode - Actionbar */
body.dark .actionbar {
    background: #283340;
}

.actionbar > div {
    display: flex;
    gap: 16px;
}

@media screen and (max-width:560px) {
    .freeTracking .tabled-data .row,
    .freeTracking .tabled-data multipleStatus > .row,
    .freeTracking .tabled-data vbstatusrow1 > .row,
    .freeTracking .tabled-data vbstatusrow2 > .row,
    .freeTracking .tabled-data vbstatusrow3 > .row,
    .freeTracking .tabled-data vbstatusrow4 > .row {
        grid-template-columns: 90px 1fr;
    }
}

@media screen and (max-width:480px) {
    .actionbar, body.dark .actionbar {
        padding: 0;
        background: transparent;
        box-shadow: none;
        display: block;
    }

        .actionbar > div {
            margin-top: 17px;
        }

        .actionbar md-outlined-button,
        .actionbar md-filled-button {
            width: 100%;
        }

            .actionbar md-outlined-button.light {
                --_outline-color: rgba(16, 97, 255, 0.25);
                --_label-text-color: #1061FF;
            }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f0f0f0;
}

body.dark thead {
    background: transparent
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    font-weight: 700;
    color: #373737;
    background-color: #e5e7f1;
}

body.dark th {
    background-color: #151c21;
    color: white;
}

th:first-child {
    border-radius: 6px 0px 0px 6px
}

th:last-child {
    border-radius: 0px 6px 6px 0px
}

td {
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

/* Use specific classes to avoid nth-child issues with expansion rows */
tbody tr.even-row td {
    background-color: rgb(229 231 241 / 50%);
}

tbody tr.odd-row td {
    background-color: #ffffff;
}

/* Legacy support for rows without .even-row/.odd-row class */
tbody tr:not(.even-row):not(.odd-row):not(.route-stops-row):nth-child(even) td {
    background-color: rgb(229 231 241 / 50%);
}

tbody tr:not(.even-row):not(.odd-row):not(.route-stops-row):nth-child(odd) td {
    background-color: #ffffff;
}

body.dark td {
    color: #A0AFBD !important;
    border-bottom: 1px solid #e0e0e000 !important;
}

body.dark tbody tr.even-row td {
    background-color: rgb(229 231 241 / 5%) !important;
}

body.dark tbody tr.odd-row td {
    background-color: transparent !important;
}

/* Legacy dark mode support */
body.dark tbody tr:not(.even-row):not(.odd-row):not(.route-stops-row):nth-child(even) td {
    background-color: rgb(229 231 241 / 5%) !important;
}

body.dark tbody tr:not(.even-row):not(.odd-row):not(.route-stops-row):nth-child(odd) td {
    background-color: transparent !important;
}

/* Route stops expansion row styling */
.route-stops-row > td {
    padding: 0 !important;
    background-color: transparent !important;
}

.route-stops-row table {
    width: 100%;
    border-collapse: collapse;
}

.route-stops-row table td {
    text-align: left;
}

/* Light mode - ensure proper styling with alternating backgrounds */
.route-stops-row table tbody tr:nth-child(odd) td {
    color: #555;
    border-bottom-color: #e0e0e0;
    background-color: #ffffff;
}

.route-stops-row table tbody tr:nth-child(even) td {
    color: #555;
    border-bottom-color: #e0e0e0;
    background-color: rgb(229, 231, 241, 0.5);
}

/* Dark mode styling for route stops expansion row */
body.dark .route-stops-row > td {
    background-color: transparent !important;
}

body.dark .route-stops-row table tbody tr:nth-child(odd) td {
    color: #A0AFBD !important;
    border-bottom-color: transparent !important;
    background-color: transparent !important;
}

body.dark .route-stops-row table tbody tr:nth-child(even) td {
    color: #A0AFBD !important;
    border-bottom-color: transparent !important;
    background-color: rgb(229 231 241 / 5%) !important;
}

.sorted-asc::after {
    content: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgNkw4IDExTDEzIDZIM1oiIGZpbGw9IiM0OTQ1NEYiLz4KPC9zdmc+');
    display: inline-block;
    margin-left: 5px;
    transform: rotate(180deg);
    position: relative;
    top: 3px;
}

.sorted-desc::after {
    content: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgNkw4IDExTDEzIDZIM1oiIGZpbGw9IiM0OTQ1NEYiLz4KPC9zdmc+');
    display: inline-block;
    margin-left: 5px;
    position: relative;
    top: 3px;
}


/* Responsive table */
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        position: relative;
    }

        thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    tr {
    }

    td {
        border: none;
        position: relative;
        padding: 6px 12px;
        padding-left: 50%;
    }

        td:first-child {
            padding-top: 16px;
        }

        td:last-child {
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 16px;
        }

        td:before {
            content: attr(data-label);
            position: absolute;
            left: 6px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: bold;
        }
}

/* Login page */
.login {
    background:
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 25%, transparent 50%),
        url('images/index_background.png') center center / cover no-repeat;
    padding: 10px;
    min-height: 100vh;
    overflow: auto;
    position: relative;
}

.loginHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    width: 100%;
}

    .loginHeader img {
    }

/* ===== logo + name block ===== */
.loginLogoAndName {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .loginLogoAndName .logo {
        height: 3rem;
        width: auto;
    }

.loginLogoAndNameSidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.loginLogoAndNameSidebar img {
    mix-blend-mode: normal;
}

.logoImage {
    margin-bottom: 10px;
    mix-blend-mode: normal;
}

.companyName {
    font-weight: 700;
    line-height: 1;
}

.companyNameSideBar {
    color: #000000;
    font-weight: 700;
    line-height: 1;
    margin-top: 8px;
}

.loginHeaderRight {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 10px;
    margin-right: 20px;
}

.loginHeaderRight .tel-link {
    display: flex;
    align-items: center;
    gap: 0px;
    text-decoration: none;
    color: #1061FF;
    font-size: 18px;
    font-weight: 700;
}

.loginHeaderRight .tel-link svg {
    flex-shrink: 0;
}

.loginHeaderRight .announcement {
    font-size: 16px;
    text-align: right;
    max-width: 200px;
}

.companyNameHeader {
    display: none;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

.loginBody {
    margin: auto;
    max-width: 380px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: auto;
}

@media screen and (max-width: 600px) {
    .loginBody {
        width: calc(100% - 40px);
        max-width: 100%;
        padding: 0 20px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
    }

    .login {
        display: flex;
        flex-direction: column;
        padding-bottom: 40px;
    }
}

.loginForm {
    background: #ffffff;
    padding: 30px 0px 15px;
    border-radius: 20px;
}

@media screen and (max-width: 600px) {
    .loginForm {
        padding: 30px 35px;
        width: 100%;
    }

    .trackOrders md-outlined-text-field {
        width: 100%;
    }
}

.loginFormHeader {
    margin-bottom: 30px;
    text-align: center;
}

    .loginFormHeader h1 {
    }

    .loginFormHeader p {
        margin-top: 7px;
        color: #546175;
    }

.loginForm form {
    padding: 0 30px;
    width: 100%;
}

    .loginForm form h3 {
        margin-bottom: 14px;
        font-size: 16px;
        font-weight: 500;
    }

.loginBody form md-outlined-text-field {
    width: 100%;
    margin-bottom: 16px;
}

.loginBody form .row.nowrap {
}

    .loginBody form .row.nowrap md-outlined-text-field {
        width: calc(50% - 8px);
    }

.loginBody form md-filled-button,
.loginBody form md-outlined-button {
    width: 100%;
}

.loginform form + p {
    text-align: center;
}

.loginForm p a {
    font-weight: 700;
}

.loginFooter {
    display: flex;
    margin-top: 16px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

    .loginFooter p {
        margin: 0;
        transform: translateY(4px);
        font-size: 13px;
    }

        .loginFooter p.light {
            color: #8892a1;
        }

    .loginFooter .row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.trackOrders {
    border-top: 1px solid #ebebeb;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trackOrders row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.trackOrders row > * {
    flex: 1;
}

.trackOrders row md-outlined-text-field {
    width: 100%;
}

@media screen and (max-width: 600px) {
    .trackOrders row {
        flex-direction: column;
        gap: 0;
    }
}

@media screen and (max-width:1023px) {
    .login {
        min-height: 100vh;
    }
}

@media screen and (max-width:860px) {
    .loginForm {
        max-width: 100%;
    }
}

@media screen and (max-width:460px) {
    .login {
    }

    .loginHeader {
        flex-direction: column;
        align-items: center;
    }

    .loginFooter a svg {
        display: block;
        width: 16px;
    }

    .loginForm {
        padding: 20px 0px;
    }
}

/* icon button */
.iconButton {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

    .iconButton:hover {
        background: #e5e7f1;
    }

.dark .iconButton:hover {
    background: rgb(229 231 241 / 8%);
}

.iconButton svg {
}

.iconButton.minus > .plus,
.iconButton.plus > .minus {
    display: none;
}

.iconButton.minus:hover path {
    stroke: #ff4f8a;
}

.row.nowrap .iconButton.minus {
    margin-top: 0;
    align-self: center;
}

.row.nowrap .iconButton.plus {
    align-self: center;
}

/* Ensure all items in advanced package row are vertically aligned */
.row.nowrap {
    align-items: center;
}

/* Advanced Package Buttons */
.advPackageButtons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Advanced Package Row Spacing */
.advPackRow {
    margin-top: 16px;
}

/* Piece and Weight Field Margins - match other textboxes */
md-outlined-text-field[name="NumberOfPieces"],
md-outlined-text-field[name="Weight"],
md-outlined-text-field[name*="NumbersOfPieces"],
md-outlined-text-field[name*="Weights"] {
    margin: 0;
}

/* Ensure advanced package selects also have no extra margin */
.row.nowrap md-outlined-select {
    margin: 0;
}

/* Nav List */
.navList {
    margin-top: 20px;
}

.navList--head {
    display: flex;
    padding: 7px 18px;
    align-items: flex-start;
    align-self: stretch;
    margin: 0 0 6px;
    border-radius: 10px;
    background: #E5E7F1;
}

    .navList--head li {
        font-weight: 500;
        list-style: none;
        flex: 1 0 0;
        color: #7A8594;
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        /* 171.429% */
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

body.dark .navList--head {
}

body.dark .navList--head {
    background: #141c21;
}

.navList--body {
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.navList--item {
    display: flex;
    padding: 14px 18px;
    align-items: flex-start;
    align-self: stretch;
    box-shadow: inset 0px 1px 0px #DFE1EC;
    cursor: pointer;
    margin-bottom: 1px;
    align-items: center;
}


    .navList--item > *:nth-child(1) {
        flex: 1 0 0;
        color: #49454F;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 24px; /* 150% */
    }

    .navList--item > *:nth-child(2) {
        flex: 1 0 0;
        color: #49454F;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 150% */
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .navList--item svg {
        margin-left: 10px;
    }

@media screen and (min-width:900px) {
    .navList--item:first-child {
        box-shadow: none !important;
    }

    .navList--item:hover {
        border-radius: 10px;
        background: #E5E7F1;
    }

    body.dark .navList--item:hover {
        background: #e5e7f112;
        box-shadow: none;
    }

    .navList--item:hover + .navList--item:not(.active),
    .navList--item.active + .navList--item:not(.active) {
        box-shadow: none;
    }

    .navList--item.active {
        border-radius: 10px;
        box-shadow: inset 0px 0px 0px 1px rgba(16, 97, 255, 0.20) !important;
        background: rgba(16, 97, 255, 0.12);
    }

    body.dark .navList--item.active {
        box-shadow: inset 0px 0px 0px 1px rgb(116 163 255 / 20%) !important;
        background: rgb(81 140 255 / 17%);
    }

    .navList--item svg {
        display: none;
    }

    body.dark .navList--item > *:nth-child(1) {
        color: white;
    }

    body.dark .navList--item > *:nth-child(2) {
        color: #adadbe;
    }

    body.dark .navList--item {
        box-shadow: inset 0px 1px 0px #dfe1ec2b;
    }
}

@media screen and (max-width:899px) {
    .navList--body {
        gap: 6px;
        margin-bottom: 16px
    }

    .navList--item {
        border-radius: 10px;
        background: #FFF;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    }

    body.dark .navlist--item {
        background: #283340;
    }

        body.dark .navList--item > *:nth-child(1) {
            color: white;
        }

        body.dark .navList--item > *:nth-child(2) {
            color: #adadbe;
        }
}

/* File Attachments */
.attachment-row {
  padding-top: 16px;
  margin-top: 16px;
}

.attachment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.attachment-header h3 {
  font-size: 16px;
  font-weight: 500;
  color: #373737;
  margin: 0;
  flex-grow: 1;
}
body.dark .attachment-header h3 {
  color: #ffffff;
}

.attachment-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1755ff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.attachment-add-btn:hover {
  background: #1046d6;
}
.attachment-add-btn svg {
  width: 20px;
  height: 20px;
}
.attachment-add-btn path {
  stroke: white;
  stroke-width: 2;
}

.attachment-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 20px;
}

.attachment-thumbnail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e0e2ef;
  transition: all 0.2s ease;
  cursor: pointer;
}
.attachment-thumbnail:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
body.dark .attachment-thumbnail {
  background: #283340;
  border-color: #3f4c5c;
}
body.dark .attachment-thumbnail:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.attachment-img-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #f6f7fc;
}
body.dark .attachment-img-container {
  background: #1e2931;
}

.attachment-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.attachment-icon img {
  width: 60px;
  height: 60px;
}

.attachment-name {
  font-size: 12px;
  color: #535d6d;
  text-align: center;
  max-width: 96px;
  word-break: break-word;
  line-height: 1.3;
}
body.dark .attachment-name {
  color: #96a0af;
}

.attachment-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff4f8a;
  border: none;
  color: white;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
}
.attachment-remove-btn:hover {
  background: #e63e75;
}

/* Attachment Modal */
.attachment-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.attachment-modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
body.dark .attachment-modal {
  background: #1e2931;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.attachment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e2ef;
}
body.dark .attachment-modal-header {
  border-color: #3f4c5c;
}

.attachment-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #373737;
  word-break: break-word;
  padding-right: 16px;
}
body.dark .attachment-modal-header h3 {
  color: #ffffff;
}

.attachment-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #535d6d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.attachment-modal-close:hover {
  background: #e5e7f1;
  color: #373737;
}
body.dark .attachment-modal-close {
  color: #96a0af;
}
body.dark .attachment-modal-close:hover {
  background: #283340;
  color: #ffffff;
}

.attachment-modal-body {
  padding: 24px;
  overflow: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.attachment-modal-body img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.attachment-modal-body embed {
  border-radius: 8px;
  border: 1px solid #e0e2ef;
}
body.dark .attachment-modal-body embed {
  border-color: #3f4c5c;
}

.attachment-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.attachment-preview-icon img {
  width: 120px;
  height: 120px;
}

.attachment-info {
  width: 100%;
  max-width: 400px;
}
.attachment-info p {
  margin: 8px 0;
  color: #535d6d;
  font-size: 14px;
}
body.dark .attachment-info p {
  color: #96a0af;
}
.attachment-info strong {
  color: #373737;
  font-weight: 600;
}
body.dark .attachment-info strong {
  color: #ffffff;
}

.attachment-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e0e2ef;
  gap: 12px;
}
body.dark .attachment-modal-footer {
  border-color: #3f4c5c;
}

.attachment-download-btn {
  padding: 10px 24px;
  background: #1755ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: "Helvetica Now Display", sans-serif;
}
.attachment-download-btn:hover {
  background: #1046d6;
}

/* Mobile optimizations */
@media screen and (max-width: 660px) {
  .attachment-thumbnails {
    gap: 8px;
  }

  .attachment-thumbnail {
    padding: 6px;
  }

  .attachment-img-container {
    width: 60px;
    height: 60px;
  }

  .attachment-icon img {
    width: 40px;
    height: 40px;
  }

  .attachment-name {
    font-size: 11px;
    max-width: 72px;
  }

  .attachment-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .attachment-modal-header,
  .attachment-modal-body,
  .attachment-modal-footer {
    padding: 16px;
  }

  .attachment-modal-body img {
    max-height: 50vh;
  }
}

@media screen and (max-width: 460px) {
  .attachment-add-btn {
    width: 32px;
    height: 32px;
  }

  .attachment-add-btn svg {
    width: 16px;
    height: 16px;
  }

  .attachment-header h3 {
    font-size: 14px;
  }
}

/* Autocomplete Dropdown Styling */
#tat_table {
  background-color: #ffffff !important;
  border: 1px solid #79747E !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: 'Roboto', sans-serif !important;
  overflow: hidden;
}

#tat_table tr {
  background-color: #ffffff !important;
  transition: background-color 0.2s ease;
}

#tat_table tr:hover {
  background-color: #f5f5f5 !important;
}

#tat_table tr[style*="background-color: rgb(195, 217, 255)"] {
  background-color: #E8F0FE !important;
}

#tat_table td {
  color: #1D1B20 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  line-height: 20px !important;
  border: none;
}

/* Dark mode support for autocomplete */
.dark #tat_table {
  background-color: #2B2D31 !important;
  border-color: #8E918F !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark #tat_table tr {
  background-color: #2B2D31 !important;
}

.dark #tat_table tr:hover {
  background-color: #383A40 !important;
}

.dark #tat_table tr[style*="background-color: rgb(195, 217, 255)"] {
  background-color: #3A4756 !important;
}

.dark #tat_table td {
  color: #E4E8ED !important;
}

/* Mobile Header Improvements */
@media screen and (max-width:1023px) {
  .mobileNav {
    height: 70px;
    padding: 12px 16px;
  }

  .mobileNav .logo {
    height: 100%;
  }

  .loginLogoAndNameHeader {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: fit-content;
  }

  .dark .loginLogoAndNameHeader {
    background: #2B2D31;
  }

  .companyNameHeader {
    font-size: 14px;
    font-weight: 500;
    color: #1D1B20;
    white-space: nowrap;
  }

  .dark .companyNameHeader {
    color: #E4E8ED;
  }

  .header h1 {
    margin-top: 8px;
  }
}

/* Native date input styling to match Material Design */
.date-input-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

.date-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant, #49454F);
    margin: -6px 0px -8px 12px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.4px;
    background-color: #F6F7FC;
    z-index: 10;
    padding: 0px 4px;
    width: fit-content;
}

.native-date-input {
    height: 56px;
    padding: 16px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    line-height: 24px;
    border: 1px solid var(--md-sys-color-outline, #CCCCCC);
    border-radius: 4px;
    background-color: #F6F7FC;
    color: var(--md-sys-color-on-surface, #1C1B1F);
    outline: none;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    box-sizing: border-box;
}

.native-date-input:focus {
  background-color: transparent;
  border-color: var(--md-sys-color-primary, #6750A4);
  border-width: 2px;
  padding: 15px; /* Adjust padding to compensate for thicker border */
}

/* Dark mode support */
.dark .date-label {
    color: var(--md-sys-color-on-surface-variant, #6B7783);
    background-color: #1E2931;
}

.dark .native-date-input {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline, #3F4C5C);
    color: #FFFFFF;
}

.dark .native-date-input:focus {
  background-color: transparent;
  border-color: var(--md-sys-color-primary, #D0BCFF);
}

/* Calendar picker icon styling */
.native-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.native-date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Dark mode calendar icon - make it white */
.dark .native-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
}

/* Mobile view - display datepicker inline with the page */
@media screen and (max-width:1023px) {
  #datepicker-wrapper {
    width: 100%;
  }

  #datepicker {
    width: 100%;
  }
}
