/* Layout */
html, body, .form {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    padding-top: 1px;
    margin-top: -1px;
}

.form {
    padding-bottom: 46px; /* Footer Height */
}

html, .form {
    height: 100%;
}

/* Content */
.content {
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.contentCenter {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 50px;
    -webkit-overflow-scrolling: touch;
}


.content5 {
    width: 5%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content10 {
    width: 10%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content15 {
    width: 15%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content20 {
    width: 20%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content25 {
    width: 25%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content30 {
    width: 30%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content35 {
    width: 35%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content40 {
    width: 40%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content45 {
    width: 45%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content50 {
    width: 50%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content55 {
    width: 55%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content60 {
    width: 60%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content65 {
    width: 65%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content70 {
    width: 70%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content75 {
    width: 75%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content80 {
    width: 80%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content85 {
    width: 85%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content90 {
    width: 90%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.content95 {
    width: 95%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}



/* Footer */
.footer-wrapper {
    height: 46px; /* Footer Height */
    position: absolute;
    bottom: 0;
    width: 100%
}

.footer {
    font-size: 10.5px;
    color: #999999;
}

.footer-link {
    color: #999999;
    border-right: 1px solid #bbbbbb;
    margin-right: 7px;
    padding-right: 10px;
    white-space: nowrap;
}

    .footer-link:last-child {
        border: none;
        margin: 0;
        padding: 0;
    }

.footer-left {
    float: left;
}

.footer-right {
    float: right;
}

.footer-left,
.footer-right {
    padding: 16px 24px;
}

@media (max-width: 599px) {
    .footer-left,
    .footer-right {
        padding: 16px 4px;
    }
}

/* Header */
.app-header {
    padding: 0 !important;
    box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.2);
    border-bottom-width: 0 !important;
}

    .app-header .left-block {
        float: left;
    }

    .app-header .right-block {
        float: right;
    }

    .app-header .menu-container {
        overflow: hidden;
    }

        .app-header .menu-container > div {
            float: right;
        }

.header-logo {
    background: url('../Images/HandsLogoLongForWeb.png') no-repeat center;
    height: 53px;
    width: 217px;
}

@media (max-width: 359px) {
    .header-logo {
        background: url('../Images/HandsLogoLongForWeb.png') no-repeat center;
        width: 53px;
    }
}


.header-wave {
    background: url('../Images/black_n_white_wave.jpg') no-repeat center;
    height: 53px;
    width: 800px;
}

@media (max-width: 800px) {
    .header-wave {
        background: url('../Images/black_n_white_wave.jpg') no-repeat center;
        width: 53px;
    }
}


.app-header .left-block .header-menu .image-item > .dxm-content {
    padding: 0 8px 0 8px;
}

.app-header .right-block .header-menu .image-item > .dxm-content {
    padding: 0 7px 0 7px;
}

.app-header .left-block .header-menu .item.toggle-item > .dxm-content {
    padding: 0 14px 0 14px;
}

.app-header .right-block .header-menu .item.toggle-item > .dxm-content {
    padding: 0 14px 0 14px;
}

.app-header .header-menu .item.selected {
    color: inherit;
    box-sizing: border-box;
    /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
    border-bottom: solid 2px #007BF7;
}

.app-header .header-menu .item.selected,
.app-header .header-menu .item.hovered {
    background-color: rgba(0, 0, 0, 0.05);
}

    .app-header .header-menu .item.selected .dxm-content {
        margin-bottom: -2px;
    }

    .app-header .header-menu .item.selected .dxm-content,
    .app-header .header-menu .item.hovered .dxm-content {
        color: inherit;
    }

/* Main Menu */
.header-menu {
    background-color: lightgrey !important;
    border-style: none !important;
    height: 3.13rem;
}

@media (max-width: 599px) {
    .menu-container .dxm-ltr > div:not(.header-menu) {
        width: 100% !important;
    }
}

.header-sub-menu {
    width: 100% !important;
}

    .header-sub-menu .item {
        padding: 12px 7px !important;
    }

/* Ellipsis -> Apps Icon */
.header-menu .adaptive-image {
    background: url('../Images/adaptive-menu.svg') no-repeat center;
    width: 16px;
    height: 16px;
    padding: 0 8px;
}
/* Hide item images */
.header-menu.application-menu .item .dxm-content > img {
    display: none !important;
}

@media (max-width: 720px) /* Change Ellipsis image Apps Icon */
{
    .app-header .menu-container > div {
        width: 47px;
    }

    .header-menu .adaptive-image {
        background: url('Images/application.svg') no-repeat center;
    }

    /* Show item images */
    .header-menu.application-menu .item .dxm-content > img {
        display: inline-block;
    }
}

/* Right area menu */
.header-menu .toggle-item .image {
    background: url('Images/double.svg') no-repeat center;
}

.header-menu .toggle-item.checked .image {
    background: url('Images/double-close.svg') no-repeat center;
}

.header-menu .image-item {
    vertical-align: middle !important;
}

.header-menu .vertically-aligned {
    font-size: 0;
}

/* Account */
.header-menu .account-background {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
}

    .header-menu .account-background div {
        border-radius: 50%;
    }

    .header-menu .account-background .empty-image {
        width: 16px;
        height: 16px;
        margin: 8px;
        display: inline-block;
        background: url('Images/user.svg');
    }

    .header-menu .account-background .account-image {
        width: 32px;
        height: 32px;
        font-size: 0.8em;
        font-weight: 600;
        line-height: 32px;
        text-align: center;
        margin: 0 auto;
        display: table;
        background-size: 100%;
    }

.user-info .avatar img {
    float: left;
    height: 43px;
    border-radius: 50%;
}

.user-info .text-container {
    height: 3.13rem;
    margin-left: 60px;
}

    .user-info .text-container .user-name {
        color: #444444;
        font-size: 1.14em;
    }

    .user-info .text-container .email {
        display: block;
        color: #666666;
        font-size: 0.86em;
    }

.myaccount-item {
    background-color: #e4e4e4;
}

/* Left Panel */
.left-panel {
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.leftpanel-section {
    border: none !important;
    background-color: rgba(0, 0, 0, 0.1);
}

.section-caption {
    height: 2.69rem;
    line-height: 2.69rem;
    vertical-align: middle;
    margin: 0;
}

.section-caption {
    border-top: solid 1px #f0f0f0;
    border-bottom: solid 1px #f0f0f0;
}

.left-panel.expand-bar,
.right-panel.expand-bar {
    border: 0;
}

a.tree-view-node {
    color: #666666;
    padding-top: 7px !important;
    padding-bottom: 8px !important;
    padding-right: 8px !important;
    border: none !important;
}

    a.tree-view-node.hovered {
        text-decoration: none;
    }

.tree-view-elbow {
    padding-top: 3px;
}

/* Right Panel */
.right-panel {
    border-left: 1px solid #f0f0f0;
}

.settings-content {
    padding: 24px 20px;
}

    .settings-content h2 {
        color: #494949;
        font-size: 1.3em;
        font-weight: 600;
    }

    .settings-content p {
        color: #999999;
    }

/* Toolbar */
.page-toolbar-wrapper {
    position: fixed;
    background-color: white;
    left: 0;
    right: 0;
    z-index: 1;
}

.page-toolbar {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-size: 0.93em !important;
    height: 2.69rem;
}

    .page-toolbar .item > h1,
    .section-caption {
        color: #494949;
        font-weight: 600;
        font-style: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 24px;
    }

    .page-toolbar .item > h1 {
        font-size: 1.46em;
    }

    .page-toolbar .item > h1 {
        margin: 0;
        padding: 0 17px;
    }

    .page-toolbar .item .dxm-disabled .dxm-image {
        opacity: 0.3;
    }

@media (max-width: 599px) {
    .page-toolbar .item > h1 {
        max-width: 150px;
    }
}


/* frame */
.lp-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 14px; /* smaller padding */
    border: 1px solid rgba(0,0,0,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 10px rgba(0,0,0,0.18);
}


/* Text under clock — modern, low-sheen */
.lp-text {
    margin-top: 6px; /* less gap */
    font-size: 12px; /* smaller font */
    font-weight: 500;
    color: rgba(0,0,0,0.65); /* dark text on white */
    letter-spacing: .2px;
}

/* ============================================================
   TOAST POPUP + PAGE BLOCKING OVERLAY
   ============================================================ */

/* DevExpress popup wrapper should own its visible area so it can receive clicks */
[id^="toastPopup_PW-"],
[id^="confirmPopup_PW-"] {
  position: fixed !important;   /* detach from the weird table flow */
  height: auto !important;      /* not height:0 */
  overflow: visible !important;
  pointer-events: auto !important;
}


/* Toast popup wrapper stays above overlay and clickable */
[id^="toastPopup"] {
    pointer-events: auto;
}

    /* Force DevExpress main wrapper above overlay */
    [id^="toastPopup"] .dxpc-mainDiv {
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        border-radius: 4px;
    }

    /* Remove DevExpress chrome */
    [id^="toastPopup"] .dxpc-mainDiv,
    [id^="toastPopup"] .dxpc-contentWrapper,
    [id^="toastPopup"] .dxpc-content {
        background: transparent !important;
        border:none !important;
        box-shadow: inset !important;
        padding: 0 !important;
    }

    /* Base toast content */
    [id^="toastPopup"] .dxpc-content {
        background-color: #Ffffff !important;
        color: #a94442 !important; /* default red (error style) */
        padding: 20px 28px !important;
        border:solid !important;
        border-radius: 10px !important;
        border-color: #a94442 !important;
        border-width: 13px;
        font-size: 18px !important;
        line-height: 1.5 !important;
        max-width: 380px !important;
        word-wrap: break-word;
        display: block;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    }

        /* Variants */
        [id^="toastPopup"] .dxpc-content.success {
            background-color: #Ffffff !important;
            color: #00CF76 !important;
            border-color: #00CF76 !important;
        }

        [id^="toastPopup"] .dxpc-content.info {
            background-color: #Ffffff !important;
            color: rgb(var(--toast-darker-rgb)) !important;
            border: 2px solid rgb(var(--toast-lighter-rgb)) !important;
        }

        [id^="toastPopup"] .dxpc-content.message {
            background-color: #Ffffff !important;
            font-size: 16px !important;
            font-weight: 600 !important;
            color: rgb(var(--toast-darker-rgb)) !important;
            border: 2px solid rgb(var(--toast-lighter-rgb)) !important;
        }

    /* Toast layout and X button */
    [id^="toastPopup"] .toast-inner {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    [id^="toastPopup"] #toastPopupText {
        flex: 1 1 auto;
        word-break: break-word;
    }

    [id^="toastPopup"] .toast-close-btn {
        position: relative;
        background: transparent;
        border: none;
        color: inherit;
        font-size: 16px;
        font-weight: bold;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        width: 20px;
        height: 20px;
        transition: transform 120ms ease, background-color 120ms ease;
    }

        [id^="toastPopup"] .toast-close-btn:focus {
            outline: 2px solid rgba(var(--toast-lighter-rgb), 0.9);
            outline-offset: 2px;
        }

/* Hover / active feel for toast close (X) */
.toast-close-btn:hover {
    background: rgba(95,190,215,0.18);
    border-radius: 4px; /* slight rounding */
    transform: scale(1.15); /* subtle enlarge */
}

.toast-close-btn:active {
    transform: scale(0.95); /* tap/click response */
}




/* Confirm buttons interaction */
/* Confirm popup container */
.confirm-popup-content {
    background-color: #Ffffff; /* #5FBED7 !important; HANDS turquoise */
    color: rgb(var(--toast-darker-rgb)) !important;
    border: 2px solid rgb(var(--toast-lighter-rgb)) !important;
    padding: 22px 28px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.20);
}

/* inner layout */
.confirm-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* buttons row */
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    /* base confirm buttons */
    .confirm-actions .btn {
        background-color: #ffffff;
        border: none;
        color: rgb(var(--toast-lighter-rgb)) !important;
        padding: 10px 22px;
        border: 1px solid rgb(var(--toast-darker-rgb)) !important;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.06s ease, opacity 0.06s ease, box-shadow 0.12s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

        /* hover */
        .confirm-actions .btn:hover {
            opacity: 0.92;
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        }

        /* pressed */
        .confirm-actions .btn:active {
            opacity: 0.75;
            transform: translateY(1px);
            box-shadow: 0 1px 3px rgba(0,0,0,0.20);
        }

/* SingleDiv popup look */
[id^="singleDivPopup_PW-"] {
    background-color: #fff !important;
    color: rgb(var(--toast-darker-rgb)) !important;
    border: 2px solid rgb(var(--toast-lighter-rgb)) !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.20);
}

    /* Optional header tweak */
    [id^="singleDivPopup_PW-"] .dxpc-header {
        background: linear-gradient( to bottom, rgba(var(--toast-lighter-rgb), 0.95), rgba(var(--toast-darker-rgb), 0.95) ) !important;
        color: #fff !important;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    /* Optional content padding */
    [id^="singleDivPopup_PW-"] .dxpc-content {
        padding: 22px 28px !important;
        text-align: center;
    }

    [id^="singleDivPopup_PW-"] .dxpc-header:hover {
        box-shadow: 0 2px 10px rgba(var(--toast-darker-rgb), .35);
    }

    [id^="singleDivPopup_PW-"] .dxpc-closeBtn:hover {
        transform: scale(1.15);
        opacity: 1;
    }


.dxpc-main {
    border: 2px solid rgb(var(--toast-darker-rgb)) !important;
}

.dxpc-header {
    background: linear-gradient( to bottom, rgba(var(--toast-lighter-rgb), 0.95), rgba(var(--toast-darker-rgb), 0.95) ) !important;
}

.dxpc-content {
    color: rgb(var(--toast-darker-rgb));
}
/* outer content area you already set via Styles.Content.CssClass */
.toast-popup-content {
    /* keep using this as your marker; no z-index magic needed anymore */
    padding: 14px 18px 18px 18px;
    overflow: hidden; /* hide any accidental outer overflow */
    word-break: break-word; /* don’t let long tracking numbers blow width */
    overflow-wrap: anywhere;
}

    /* inner scroll container */
    .toast-popup-content .toast-inner {
        max-height: 60vh; /* scroll instead of growing forever */
        overflow-y: auto;
        padding-right: 8px; /* space so the scrollbar doesn’t cover text */
        white-space: pre-wrap; /* preserve line breaks from pasted notes */
        line-height: 1.25;
    }

    /* close button stays tucked in the corner even when scrolling */
    .toast-popup-content .toast-close-btn {
        position: absolute;
        top: 6px;
        right: 8px;
        border: none;
        background: transparent;
        font-weight: bold;
        cursor: pointer;
    }

    /* optional: give each type a subtle background so walls of text are readable */
    .toast-popup-content.message {
        background: #f6f7fb;
    }

    .toast-popup-content.info {
        background: #eef7ff;
    }

    .toast-popup-content.success {
        background: #f0fff4;
    }

    .toast-popup-content.error {
        background: #fff2f2;
    }

.gridview .dxgv td a {
    word-break: break-all; /* keeps long tracking numbers from overflowing */
    text-decoration: underline;
}

/* generic icon chip */
.trk-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: text-bottom;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

/* brand-tinted circle with lettermarks (inline SVG, no assets) */
.trk-ups {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><circle cx='7' cy='7' r='7' fill='%236b4f2a'/><text x='7' y='10' font-size='9' text-anchor='middle' fill='white' font-family='Arial'>U</text></svg>");
}

.trk-fedex {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><circle cx='7' cy='7' r='7' fill='%234a3fab'/><text x='7' y='10' font-size='9' text-anchor='middle' fill='white' font-family='Arial'>F</text></svg>");
}

.trk-usps {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><circle cx='7' cy='7' r='7' fill='%23004b9a'/><text x='7' y='10' font-size='9' text-anchor='middle' fill='white' font-family='Arial'>S</text></svg>");
}

.trk-ontrac {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><circle cx='7' cy='7' r='7' fill='%23f1c40f'/><text x='7' y='10' font-size='9' text-anchor='middle' fill='black' font-family='Arial'>O</text></svg>");
}

/* make long numbers behave */
.po-note-cell a {
    word-break: break-all;



}
.trk-peek.hidden {
    display: none;
}

.trk-peek {
    position: fixed;
    z-index: 999999; /* above grids & loaders */
    max-width: 320px;
    background: #fff;
    border: 1px solid #dadde2;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.25;
}

.trk-peek-head {
    font-weight: 600;
    margin-bottom: 6px;
}

.trk-dot {
    margin: 0 6px;
    color: #a0a6ad;
}

.trk-peek-status {
    margin: 6px 0 8px;
    white-space: normal;
    word-break: break-word;
}

.trk-peek-actions a {
    text-decoration: underline;
}

.trk-link {
    cursor: pointer;
}
/* affordance */

/* preserve original newlines/tabs/spaces from the note text */
.dxgv .po-note-cell {
    white-space: pre-wrap !important; /* respect \r\n as real line breaks */
    line-height: 1.25;
}

    /* allow numbers/links to wrap without wrecking layout */
    .dxgv .po-note-cell a {
        word-break: break-word; /* breaks long tracking numbers cleanly */
        text-decoration: underline;
    }

    /* tiny nicety for the badge alignment */
    .dxgv .po-note-cell .trk-icon {
        vertical-align: text-bottom;
    }
