﻿@import url('bootstrap/bootstrap-grid.min.css');

:root {
    --vs-border-width: 1px;
    --kendo-chat-width: 100%;
    --kendo-chat-height: 100%;
    --kendo-color-primary: #7D35F1;
    --kendo-color-primary-hover: #5B20C6;
    --tb-kendo-color-primary-active: #6A28E3;
    --kendo-border-radius-md: 12px;
    --kendo-input-solid-bg: #F8FAFC;
    --kendo-disabled-border: #E2E8F0;
    --tb-kendo-color-base-subtle: #E2E8F0;
    --tb-kendo-color-primary-subtle: #eee5fd;
    --tb-kendo-color-surface-alt: white;
    --tb-kendo-color-app-surface: white;
    --kendo-color-app-surface: white;
    --kendo-button-focus-outline-style: none;
    --tb-kendo-color-primary-on-surface: #7D35F1;
    --tb-kendo-color-primary-subtle-hover: #eee5fd;
}

html, body {
    font-family: AvenirFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0px;
}

.row {
    --bs-gutter-x: 16px;
}

.alt-grid .row {
    margin-left: 0;
    margin-right: 0
}

.alt-grid .container-fluid {
    width: 100%;
    max-width: none;
    padding: 0;
}

.sub-drawer > .k-drawer-start {
    left: 274px;
    top: 50px;
    height: calc(100vh - 60px);
    border-radius:16px;
    border:none;
}

.k-drawer-mini + .sub-drawer > .k-drawer-start {
    left: 74px;
}

.main-drawer ::-webkit-scrollbar,
.sub-drawer ::-webkit-scrollbar {
    width: 6px;
}

.main-drawer ::-webkit-scrollbar-thumb,
.sub-drawer ::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.main-drawer:hover ::-webkit-scrollbar-thumb,
.sub-drawer:hover ::-webkit-scrollbar-thumb {
    background-color: var(--kendo-color-primary);
}

.k-drawer-mini .k-drawer-items .menu-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.k-drawer-mini .k-drawer-wrapper {
    width: 70px;
}

.default-btn {
    min-width: 100px;
    min-height: 38px;
}

.custom-grid {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
}

.k-window-content {
    overflow-y: auto !important;
}

.k-window-content .custom-grid {
    padding: 0px;
}

.grid-action-button .k-menu-button-arrow {
    display: none;
}

.combobox-custom-grid .k-grid-norecords {
    animation: ddgrid-norecords-in 0s linear 0.3s both;
}

@keyframes ddgrid-norecords-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Padding for instant skeleton table — matches DropdownGridSkeleton.razor scoped style */
.ddgrid-instant-skeleton .skeleton-table .k-table-tbody tr td,
.ddgrid-instant-skeleton .skeleton-table .k-table-head tr th {
    padding-block: 10px !important;
    padding-inline: 10px !important;
}

.custom-grid .k-grid-md .k-table-md .k-button:hover::before,
.custom-grid .k-grid-md .k-table-md .k-button:active::before,
.combobox-custom-grid .k-grid-md .k-table-md .k-button:hover::before,
.combobox-custom-grid .k-grid-md .k-table-md .k-button:active::before {
    opacity: 0;
}

.custom-grid .k-grid-md .k-table-md .dot-btn,
.custom-grid .k-grid-md .k-table-md .dot-btn:hover,
.combobox-custom-grid .k-grid-md .k-table-md .dot-btn,
.combobox-custom-grid .k-grid-md .k-table-md .dot-btn:hover {
    background-color: transparent;
    color: #2573C2;
    border: none;
    box-shadow: none;
}

    .custom-grid .k-grid-md .k-table-md .dot-btn .filter-btn.k-button-md,
    .combobox-custom-grid .k-grid-md .k-table-md .dot-btn .filter-btn.k-button-md {
        padding-block: 0;
        border: none;
    }

        .custom-grid .k-grid-md .k-table-md .dot-btn .filter-btn.k-button-md:hover::before,
        .combobox-custom-grid .k-grid-md .k-table-md .dot-btn .filter-btn.k-button-md:hover::before {
            opacity: 0;
        }

.custom-grid-dropdown-popup {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}

.custom-grid .grid-link,
.combobox-custom-grid .grid-link {
    cursor: pointer;
    color: #2573C2;
    text-decoration: underline;
}

.custom-grid ::-webkit-scrollbar,
.combobox-custom-grid ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-grid ::-webkit-scrollbar-track,
.combobox-custom-grid ::-webkit-scrollbar-track {
    background-color: transparent;
}

.custom-inline-grid .k-input-spinner {
    display: none;
}

.custom-inline-grid .k-button-solid-base {
    background-color: transparent;
    border: none;
}

.custom-inline-grid .k-command-cell svg > path {
    fill: #2573C2;
}

.custom-inline-grid .k-grid-add-row {
    background-color: transparent;
}

.k-tabstrip > .k-content:focus {
    outline-style: none;
}

.k-grouping-header {
    background-color: var(--vs-background-color);
    color: var(--vs-font-color);
    width: 30%;
    position: absolute;
    top: 8px;
    border-radius: 4px;
    border-color: #121212;
    left: 310px;
    border: 1px solid var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent));
    font-size: 14px;
}

.grid-caret-popup-btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    z-index: 1;
    margin-top: 10px;
}

    .grid-caret-popup-btn.k-button-solid-base {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .grid-caret-popup-btn.k-button-md.k-icon-button {
        padding: 0;
    }

.grid-caret-input.k-input {
    padding-right: 30px;
    padding-bottom: 0px;
}

.custom-file-upload {
    background-color: transparent;
    border-width: 2px;
    border-radius: 4px;
    border-style: dashed;
}

    .custom-file-upload .k-dropzone-hint {
        display: none !important;
    }

    .custom-file-upload .k-upload-dropzone .k-upload-status {
        display: none !important;
    }

    .custom-file-upload .k-button::before,
    .custom-file-upload .k-button:hover::before {
        opacity: 0;
    }

    .custom-file-upload .k-file-name {
        max-width: 80px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

.custom-grid .grid-search,
.combobox-custom-grid .grid-search {
    min-width: 300px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 20px;
    background-color: var(--kendo-color-primary);
}

.custom-input-group {
    min-height: 70px;
}

.partner-form .custom-input-group {
    min-height: 56px;
}

.custom-input-group .k-disabled {
    color:unset;
}

/* Make validation (invalid) fields more prominent */
.custom-input-group .k-invalid,
.custom-input-group .k-invalid.k-focus,
.custom-input-group .k-invalid:focus-within {
    border-width: 2px;
    border-color: var(--kendo-color-error, #d9534f);
    box-shadow: 0 0 0 1px var(--kendo-color-error, #d9534f);
}

.custom-input-group .k-invalid .k-input-inner {
    color: var(--kendo-color-error, #d9534f);
    font-weight: 600;
}

.custom-input-group .k-floating-label-container.k-invalid > .k-label,
.custom-input-group .k-invalid + .k-label {
    color: var(--kendo-color-error, #d9534f);
    font-weight: 600;
}

    .custom-input-group .k-dropdownlist.k-disabled .k-button.k-disabled,
    .custom-input-group .k-combobox.k-disabled .k-button {
        display: none;
    }

.permission-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .permission-item .checkbox {
        margin-right: 10px;
    }

    .permission-item .label-container {
        display: flex;
        flex-direction: column;
        padding-left: 5px;
    }

    .permission-item .label {
        margin-bottom: 5px;
    }

    .permission-item .description {
        color: #666;
        font-size: 14px;
    }

.donut-chart > svg > g > path,
.sale-chart > svg > g > path {
    fill: none;
    padding: 0;
}

.sale-chart-button-group {
    background-color: transparent;
    box-shadow: none;
}

    .sale-chart-button-group .k-button {
        color: #B3B8BD;
    }

@media only screen and (max-width: 992px) {
    .custom-grid .k-grid {
        height: auto !important;
    }
}

@media only screen and (max-width: 600px) {
    .default-btn {
        width: auto !important;
    }
}

.k-numerictextbox .k-input-spinner {
    display: none;
}

.grid-action-button {
    padding-block: 8px;
    padding-inline: 8px;
}

    .grid-action-button > .k-button-text {
        display: none;
    }

.k-popup .k-table-footer .k-table-td {
    padding-block: 8px;
    padding-inline: 8px;
}


@keyframes scale-up {

}

.skeleton-max-height {
    max-height: calc(100vh - 220px);
    max-width: 100%;
    overflow-y: auto;
}

.k-popover-body {
    padding-block: 0px;
    padding-inline: 0px;
}

.k-button-group .k-group-start {
    border-right-color: #1f1f1f !important;
    border-right-width: 1px;
    border-right-style: solid;
}

.k-button-group .k-group-end {
    border-left-color: #1f1f1f !important;
    border-left-width: 1px;
    border-left-style: solid;
}

.k-menu-group > .k-menu-item > .k-menu-link.k-disabled {
    opacity: 0.5;
}

.k-menu-group > .k-menu-item.k-focus[aria-disabled="true"] {
    color: unset;
    background-color: unset;
}

.k-menu-group .k-menu-item.k-focus {
    color: unset;
    background-color: unset;
}

.combobox-custom-grid > .k-grid .k-grid-aria-root {
    border-radius: 0px;
    border: none;
}

.combobox-popover {
    border-radius: 0px;
}

.custom-multicol-combox .clear {
    opacity: 0.5;
    cursor: pointer;
    z-index: 1;
}

    .custom-multicol-combox .clear:hover {
        opacity: 1;
    }

.custom-multicol-combox .caret {
    cursor: pointer;
    z-index: 1;
}


.validating {
    cursor: progress;
}

    .validating * {
        pointer-events: none;
    }

.avatar-container.k-rounded-md {
    width: 140px;
    height: 140px;
}

.camera-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease; /* Smooth transition for the icon appearance */
    border: 2px solid #EB4A8A;
}

    .camera-icon.k-rounded-md {
        width: 100%;
    }

.avatar-container:hover .camera-icon {
    opacity: 1; /* Show the camera icon on hover */
}

.k-avatar-xl {
    width: 140px;
    height: 140px;
    flex-basis: 140px;
}

.avatar-container.k-rounded-md .k-avatar-xl {
    width: 100%;
    height: 100%;
}

.custom-ellipsis {
    white-space: nowrap !important;
}


.k-grid .k-table-th > .k-cell-inner {
    margin-block: 1px;
    align-items: center;
}


/* Space calculate for pages*/
.page-grid {
    height: calc(100vh - 106px);
    background-color: white;
}

.page-form {
    max-height: calc(100vh - 182px);
    max-width: 100%;
    overflow-y: auto;
    padding-top: 25px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 52px;
    background-color: white;
}

.page-journal {
    max-height: calc(100vh - 182px);
    max-width: 100%;
    overflow-y: auto;
    padding-top: 25px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: white;
}

/*specially for category and attribute forms*/
.page-form-list {
    max-height: calc(100vh - 182px);
    max-width: 100%;
    overflow-y: auto;
    padding-top: 25px;
    margin-top: 52px;
    background-color: white;
}

.page-tab-form {
    max-height: calc(100vh - 230px);
    max-width: 100%;
    overflow-y: auto;
    padding-top: 25px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 16px;
    margin-top: 52px;
    background-color: white;
}

.page-tab-list {
    max-height: calc(100vh - 182px);
    max-width: 100%;
    overflow-y: auto;
    padding-top: 25px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 52px;
    background-color: white;
}

.page-report {
    height: calc(100vh - 121px);
    max-width: 100%;
    overflow-y: auto;
    padding-top: 25px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: white;
}

.k-column-title {
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    overflow: hidden;
    line-height: 1.2;
}

/* Keep every grid (incl. dropdown grids) header on a single line — never wrap.
   Truncated text shows the full value via the global auto-tooltip. */
.k-grid .k-table-th,
.k-grid .k-header,
.k-grid .k-cell-inner,
.k-grid .k-link,
.k-grid .k-column-title,
.combobox-custom-grid .k-table-th,
.combobox-custom-grid .k-cell-inner,
.combobox-custom-grid .k-link,
.combobox-custom-grid .k-column-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.k-toolbar .k-input, .k-toolbar .k-picker {
    width: 100%;
}

.k-numerictextbox input {
    text-align: right;
}

.custom-multicol-combox .k-numerictextbox input {
    text-align: left;
}

.k-top--9 {
    top: -36px
}

.\!k-top--9 {
    top: -36px !important
}

fieldset {
    display: block;
    border-width: 1px;
    border-color: var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent));
    border-style: solid;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-block-start: 8px;
    padding-inline-start: 12px;
    padding-inline-end: 12px;
    padding-block-end: 12px;
    min-inline-size: min-content;
    margin-bottom: 25px;
}

    fieldset legend {
        color: var(--kendo-color-primary);
        font-weight: var(--kendo-floating-label-font-weight, var(--kendo-font-weight-bold, inherit));
    }

.k-floating-label-container {
    width: 100%;
}

.grid-caret-popup-btn.k-button-md.k-icon-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0 !important;
    padding: 0
}

.k-floating-label-container > .k-label,
.k-floating-label-container > .k-floating-label {
    position: absolute;
    top: 0px !important;
    left: 0px !important;
    font-size: 12px !important;
    /*line-height: 1.25;*/
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 90%;
    overflow: hidden;
    cursor: text;
    transform: none !important;
    transition: none !important;
}

/* When a floating label is truncated, main.js tags it with data-tt. Ensure it
   can receive hover so the global tooltip fires (labels are absolute-positioned
   and can otherwise have pointer-events:none). */
.k-floating-label-container > .k-label[data-tt],
.k-floating-label-container > .k-floating-label[data-tt] {
    pointer-events: auto;
}

.action-bar {
    position: absolute;
    top: -52px;
    left: 0px;
    width: 100%;
    overflow: hidden;
    z-index: 2;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom: 1px solid;
    border-color: var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent));
    background-color: var(--kendo-color-app-surface);
}

.vs-border-left {
    border-left: var(--vs-border-width) solid var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)) !important;
}

.vs-border-right {
    border-right: var(--vs-border-width) solid var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)) !important;
}

.vs-border-top {
    border-top: var(--vs-border-width) solid var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)) !important;
}

.vs-border-bottom {
    border-bottom: var(--vs-border-width) solid var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)) !important;
}

.vs-border-left-transparent {
    border-left: var(--vs-border-width) solid transparent !important;
}

.vs-border-right-transparent {
    border-right: var(--vs-border-width) solid transparent !important;
}

.vs-border-top-transparent {
    border-top: var(--vs-border-width) solid transparent !important;
}

.vs-border-bottom-transparent {
    border-bottom: var(--vs-border-width) solid transparent !important;
}

.vs-border-color {
    border-color: var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent));
}

.k-drawer-items ul {
    display: unset;
    list-style-type: none;
    margin-block-start: unset;
    margin-block-end: unset;
    padding-inline-start: unset;
    unicode-bidi: unset;
}

.sub-drawer.k-drawer-overlay.k-drawer-expanded > .k-overlay {
    display: none;
}

.k-svg-icon * {
    fill: currentColor;
}

.custom-grid .k-grid-toolbar,
.combobox-custom-grid .k-grid-toolbar {
    margin-inline-start: 0px;
}

.k-table-tbody .k-table-row.k-selected > .k-table-td, .k-table-list .k-table-row.k-selected {
    border-right-color: var(--kendo-grid-sticky-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 80%, transparent));
}

.k-input:disabled, .k-input[disabled], .k-input.k-disabled {
    --INTERNAL--kendo-input-text: var(--kendo-input-solid-text, var(--kendo-color-on-app-surface, #323130));
}

.k-picker:disabled, .k-picker[disabled], .k-picker.k-disabled {
    --INTERNAL--kendo-picker-text: var(--kendo-input-solid-text, var(--kendo-color-on-app-surface, #323130));
    --INTERNAL--kendo-picker-bg: var(--kendo-input-solid-disabled-bg, var(--kendo-color-base-subtle, #edebe9));
    --INTERNAL--kendo-picker-border: var(--kendo-input-solid-disabled-border, transparent);
}

.k-grid a {
    color: var(--kendo-color-primary);
    text-decoration: underline;
}

.k-tabstrip-content, .k-tabstrip > .k-content {
    padding-inline: 0;
}

.k-tabstrip-top > .k-tabstrip-items-wrapper {
    border-bottom-width: var(--kendo-tabstrip-border-width, 1px);
}

.k-tabstrip-items-wrapper {
    border-color: var(--kendo-tabstrip-border, var(--kendo-grid-border, color-mix(in srgb, var(--kendo-color-border, #8a8886) 16%, transparent)));
}

.k-searchbox .k-input-icon {
    box-sizing: content-box !important;
}

.combobox-popover {
    padding: 5px !important;
    margin-right: 30px !important;
    margin-left: 80px !important;
}

.auth-layout{
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-layout .row{
    --bs-gutter-x:0px;
    --bs-gutter-y:0px;
}

.auth-layout-form {
    width: 50%;
    height: 100vh;
    background-color: black;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-layout-form > div:first-child{
    width:inherit;
}

.auth-layout-image {
    width: 50%;
    height: 100vh;
    position: relative;
}

.auth-layout-image > img {
    width: 100%;
    height: 99%;
    object-fit: none;
}

    .auth-layout-image > span {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        font-size: clamp(24px, 3vw, 35px);
        font-weight: 700;
        text-align: center;
        background: linear-gradient(90deg, #7D35F1 0%, #0857C6 100%);
        background-clip: text;
        color: transparent;
    }

    .auth-layout-form .k-input {
        width: 100%;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(206, 194, 252, 0.08) 0%, rgba(64, 62, 85, 0.08) 100%);
        font-size: 14px;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-style: normal;
        line-height: 100%;
        letter-spacing: -0.5px;
        vertical-align: middle;
        color: #94A3B8;
        box-sizing: border-box;
        --kendo-input-border: #8a8886;
        --kendo-input-hover-border: white;
        --kendo-input-focus-border: #0078d4;
        --kendo-input-solid-border: #8a8886;
        --kendo-input-solid-hover-border: white;
        --kendo-input-solid-focus-border: #0078d4;
    }

.auth-layout-form button[type=submit] {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(90deg, #7D35F1 0%, #9C5CFF 30%, #0857C6 100%);
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    box-shadow: none !important;
}

    .auth-layout-form button[type=submit]:hover {
        opacity: 0.9;
        box-shadow: none !important;
    }

.auth-layout .k-disabled .k-floating-label {
    color: white;
}

.main-drawer .k-drawer-items {
    gap: 4px;
    padding-inline: 8px;
}

.sub-drawer .k-drawer-items {
    gap: 4px;
    padding-inline: 8px;
    padding-block: 12px;
}

.main-drawer,
.main-drawer .k-drawer,
.main-drawer .k-drawer-items,
.main-drawer .k-drawer-item,
.main-drawer .k-drawer-link {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.sub-drawer,
.sub-drawer .k-drawer,
.sub-drawer .k-drawer-items,
.sub-drawer .k-drawer-item,
.sub-drawer .k-drawer-link {
    background-color: #000000 !important;
    color: #ffffff !important;
}

    .main-drawer .k-drawer-item:hover,
    .main-drawer .k-drawer-link:hover,
    .sub-drawer .k-drawer-item:hover {
        background-color: #1E1E1E !important;
    }

    .main-drawer .k-drawer-item,
    .sub-drawer .k-drawer-item {
        border-radius: 12px !important;
    }

        .main-drawer .k-drawer-item.k-selected,
        .sub-drawer .k-drawer-item.k-selected {
            background: linear-gradient( 103.21deg, #7D35F1 14.71%, #4452DB 37.98%, #2E3CED 61.25%, #005CBE 85.22% ) !important;
            color: #ffffff !important;
        }

.main-drawer,
.main-drawer .k-drawer,
.main-drawer .k-drawer-items {
    background-color: #000000 !important;
}

    .main-drawer .k-drawer-item,
    .main-drawer .k-drawer-link {
        color: #ffffff !important;
    }

.svg-background .k-svg-icon * {
    fill: none !important;
    stroke: white !important;
    color: white !important;
}

.svg-background .k-svg-i-chevron-right,
.svg-background .k-svg-i-chevron-right *,
.svg-background span.k-svg-i-chevron-right svg path {
    fill: white !important;
    stroke: white !important;
    color: white !important;
}

.main-drawer .k-drawer-item.k-selected::before,
.sub-drawer .k-drawer-item.k-selected::before {
    content: none !important;
    display: none !important;
}

.sidebar-separator {
    width: 100%;
    height: 1px;
    background-color: #2e2e2e;
    margin-top: 6px;
}

.main-drawer .k-drawer-item .k-svg-i-chevron-right,
.sub-drawer .k-drawer-item .k-svg-i-chevron-right {
    margin-left: auto !important;
    padding-right: 8px;
}

/* ================================
   Dashboard Page
================================ */
.dashboard-page {
    max-height: calc(100vh - 59px);
    max-width: 100%;
    overflow-y: auto;
    background-color: #f8fafc;
}

/* -----------------------------------------------
   Inbound + Outbound side-by-side row
   2 columns on ≥ 992 px, stacks on smaller
----------------------------------------------- */
.dashboard-io-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

@media (max-width: 992px) {
    .dashboard-io-row {
        grid-template-columns: 1fr;
    }
}

/* Prevent grid blowout when a child has wide content */
.dashboard-io-section {
    min-width: 0;
}

/* Divider between the two sections on large screens */
@media (min-width: 993px) {
    .dashboard-io-section + .dashboard-io-section {
        border-left: 1px solid #E2E8F0;
    }
}

/* --- Dashboard Tile Grid Layout --- */
.dashboard-tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 12px 16px 16px;
    max-width: 100%;
    grid-auto-rows: auto;
}

/* Single column on phones */
@media (max-width: 480px) {
    .dashboard-tile-container {
        grid-template-columns: 1fr;
    }
}

/* --- Individual Tile --- */
.dashboard-tile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

    .dashboard-tile-wrapper:hover {
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    }

/* --- Header --- */
.dashboard-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-tile-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
}

/* --- Icon --- */
.dashboard-tile-icon {
    display: flex;
    align-items: center;
}

.dashboard-tile-icon .k-svg-icon * {
    fill: none;
}

/* --- Total Count --- */
.dashboard-tile-total-count {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    display: inline-block;
}

.dashboard-tile-container-inbound .dashboard-tile-total-count {
    color: #7d35f1;
}

.dashboard-tile-container-outbound .dashboard-tile-total-count {
    color: #fbbf24;
}

/* --- Status Container --- */
.dashboard-tile-status-container {
    display: flex;
    justify-content: space-between;
    background-color: #F1F5F9;
    padding: 8px 12px;
    border-radius: 6px;
}

.dashboard-tile-status-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-tile-label {
    font-size: 14px;
    color: #64748B;
    font-weight: 600;
}

.dashboard-tile-count {
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Status Colors --- */
.dashboard-tile-open-status .dashboard-tile-count {
    color: #3BB2F6;
}

.dashboard-tile-released-status .dashboard-tile-count {
    color: #22C55E;
}

/* --- Dashboard Heading --- */
.dashboard-group-heading {
    padding: 16px 16px 0;
}

    .dashboard-group-heading h1 {
        font-size: 16px;
        font-weight: 700;
        color: #1E293B;
        margin: 0;
    }

/* -----------------------------------------------
   Dashboard Graphs (TelerikTileLayout)
----------------------------------------------- */
.dashboard-graph {
    padding: 0 16px 16px;
    overflow: hidden;
}

.dashboard-graph .k-tilelayout-item.k-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

    .dashboard-graph .k-tilelayout-item.k-card:hover {
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    }

    .dashboard-graph .k-chart path[d^="M0 0"] {
        fill: white;
    }

/* --- Graph title --- */
.dashboard-graph .k-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
}

/* Stack TileLayout items on tablets and below */
@media (max-width: 900px) {
    .dashboard-graph .k-tilelayout-item {
        grid-column: span 12 !important;
    }
}

/* Stack TileLayout items on phones: force flex column */
@media (max-width: 600px) {
    .dashboard-graph .k-tilelayout {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .dashboard-graph .k-tilelayout-item {
        width: 100% !important;
        min-height: 280px !important;
    }
}

/* ================================
   CONTAINER LAYOUT
================================ */
.ai-chat-window .k-window-content {
    padding-inline: 0px;
    padding-block: 0px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: -webkit-fill-available;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ================================
   HEADER
================================ */
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ai-chat-border-color, #e6e9ef);
    background-color: var(--ai-chat-header-bg, #ffffff);
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
}

    .ai-chat-avatar img {
        max-width: 34px;
        max-height: 34px;
        border-radius: 50%;
    }

.ai-chat-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ai-chat-header-title, #111827);
}

.ai-chat-status-text {
    display: block;
    font-size: 0.8rem;
    color: var(--ai-chat-status, #10b981); /* green by default */
    margin-top: 2px;
}

/* ================================
   MESSAGES AREA
================================ */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
    background-color: var(--ai-chat-messages-bg, white);
}

/* ================================
   MESSAGE ROW / BUBBLE
================================ */
/* Generic container for a message row */
.ai-chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

    /* Left (AI) vs Right (user) layout */
    .ai-chat-message.ai {
        justify-content: flex-start;
    }

    .ai-chat-message.user {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

/* message content wrapper */
.ai-chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 78%;
}

/* bubble */
.ai-chat-bubble {
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

/* bubble colors */

.ai-chat-message.user .ai-chat-bubble {
    background: linear-gradient( 103.21deg, rgba(125, 53, 241, 0.2) 14.71%, rgba(68, 82, 219, 0.2) 37.98%, rgba(46, 60, 237, 0.2) 61.25%, rgba(0, 92, 190, 0.2) 85.22% );
    color: #475569;
    border-radius:12px;
}

.ai-chat-message.ai .ai-chat-bubble {
    background-color: #F1F5F9;
    color: #475569;
    border-radius: 12px;
}

/* meta (name + time) */
.ai-chat-meta {
    font-size: 12px;
    color: var(--ai-chat-meta, #6b7280);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* suggested actions area (beneath a message bubble) */
.ai-chat-suggestions {
    display: flex;
    gap: 0.5rem;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* suggestion button (small pills) */
.ai-chat-suggestion-btn {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    border-radius: 999px;
    min-height: 28px;
    height: auto;
}

/* ================================
   TYPING INDICATOR
================================ */
.ai-chat-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #e5e7eb;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
}

/* typing text */
.ai-chat-typing-text {
    font-size: 0.85rem;
    color: #374151;
    display: inline-block;
}

/* ================================
   FOOTER INPUT AREA
================================ */
.ai-chat-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--ai-chat-footer-bg, #ffffff);
    border-top: 1px solid var(--ai-chat-border-color, #e6e9ef);
    align-items: center;
}

.ai-chat-input {

}

.ai-chat-send-btn {

}

/* ================================
   RESPONSIVE TWEAKS
================================ */
@media (max-width: 480px) {
    .ai-chat-container {
        border-radius: 6px;
    }

    .ai-chat-header {
        padding: 0.6rem;
    }

    .ai-chat-footer {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .ai-chat-avatar {
        width: 36px;
        height: 36px;
    }

    .ai-chat-message .ai-chat-avatar {
        width: 28px;
        height: 28px;
    }

    .ai-chat-bubble {
        font-size: 0.92rem;
        padding: 0.55rem 0.7rem;
    }
}

/* ================================
   FORM TEXT FIELD HEIGHT AND BLUR 
================================ */
.k-input,
.k-textbox,
.k-input-inner {
    height: 42px;
}

.k-menu-group .k-item:focus > .k-link, .k-menu-group .k-item:focus-visible > .k-link, .k-menu-group .k-item.k-focus > .k-link, .k-menu.k-context-menu .k-item:focus > .k-link, .k-menu.k-context-menu .k-item:focus-visible > .k-link, .k-menu.k-context-menu .k-item.k-focus > .k-link{
    outline-style:none;
}
    /* ================================
   AI WINDOW 
================================ */
    .ai-chat-window {
        border-top: none;
    }

.ai-chat-window .k-window-titlebar {
    background-color: #F1F5F9;
    padding-top:10px;
    padding-bottom:10px;
}

.ai-chat-window .ai-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-chat-window .ai-title-icon {
    width: 42px;
    height: 42px;
}

.ai-chat-window .ai-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .ai-chat-window .ai-text strong {
        color: #1E293B;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.2;
    }

.ai-chat-window .ai-status {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #475569;
    font-weight: 400;
    margin-top: 6px;
}

.ai-chat-window .ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00c853;
    margin-right: 6px;
}

/* ================================
   BREAD CRUM > COLOR UPDATE
================================ */
.k-breadcrumb .k-breadcrumb-delimiter-icon {
    color: #7D35F1 !important; 
}

/* ================================
   SVG ICON SIZE
================================ */
.k-svg-icon.k-icon-xxxxl {
    width:70px;
    height:70px;
}

/* ================================
   HEADER TEXT 
================================ */
.header-text {
    color: #334155;
}

.header-ai-chat-btn {
    padding-inline: 6px;
    padding-block: 0px;
    border-radius:50%
}
    .header-ai-chat-btn img {
        width: 24px;
        height: 30px;
    }

/* ================================
   DIALOG HEADER
================================ */
.custom-dialog-Alert .k-dialog-titlebar {
    display:none;
}

.custom-dialog-Confirm .k-dialog-content,
.custom-dialog-Alert .k-dialog-content,
.custom-dialog-Wait .k-dialog-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 20px);
}

/* ================================
   SETTING AVATAR IMAGE
================================ */
.k-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
    background-color: transparent; 
}

.language-dropdown {
    height: 38px;
}

/* ================================
   SETUP PAGE
================================ */
.k-tabstrip-items-wrapper .k-item:focus,
.k-tabstrip-items-wrapper .k-item.k-focus {
    box-shadow: none !important;
}

/* ================================
   SETUP PAGE TAB STRIPS FOCUS
================================ */
.setup-page .k-tabstrip .k-tabstrip {
    --kendo-tabstrip-item-selected-bg: transparent;
    --kendo-tabstrip-item-selected-text: white;
    --kendo-tabstrip-indicator-color: transparent;
}

    .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-active,
    .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-tab-on-top,
    .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-selected {
        background-color: transparent !important;
        background-image: linear-gradient(103.21deg, #7D35F1 14.71%, #4452DB 37.98%, #2E3CED 61.25%, #005CBE 85.22%) !important;
        color: white !important;
        border-color: #7D35F1 !important;
    }

        .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-active .k-link,
        .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-tab-on-top .k-link,
        .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-selected .k-link {
            color: white !important;
            background-color: transparent !important;
            background-image: none !important;
        }

        /* Hide the bottom indicator line since we have full background */
        .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-active::after,
        .setup-page .k-tabstrip .k-tabstrip .k-tabstrip-items-wrapper .k-item.k-selected::after {
            display: none !important;
        }

/* ================================
   DETAIL SUB-TABS (secondary segmented)
   The innermost detail tabs (e.g. User/Location detail: General | Locations)
   would otherwise inherit the same bold purple gradient as the navigation tabs
   above, producing two identical-looking tab bars stacked on top of each other.
   Render them as a light, secondary segmented control so the hierarchy reads
   clearly: bold nav tabs on top, subtle content tabs below.
================================ */
.setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper {
    border-bottom: 1px solid var(--kendo-color-border, #e4e7eb);
    gap: 4px;
    padding: 4px 0;
}

    .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item {
        border-radius: 6px;
    }

    .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item.k-active,
    .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item.k-tab-on-top,
    .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item.k-selected {
        background-image: none !important;
        background-color: rgba(125, 53, 241, 0.10) !important;
        color: #7D35F1 !important;
        border-color: transparent !important;
    }

        .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item.k-active .k-link,
        .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item.k-tab-on-top .k-link,
        .setup-page .k-tabstrip .k-tabstrip.detail-subtabs .k-tabstrip-items-wrapper .k-item.k-selected .k-link {
            color: #7D35F1 !important;
            font-weight: 600;
        }

/* ================================
   DIALOG FORM SCROLL
================================ */
.custom-dialog-Open .k-dialog-content,
.custom-dialog-Form .k-dialog-content {
    overflow: auto !important;
    padding: 0 !important;
}

.custom-dialog-Open .k-tabstrip {
    height: auto !important;
    overflow: visible !important;
}

.custom-dialog-Open .k-tabstrip-content,
.custom-dialog-Open .k-tabstrip > .k-content {
    overflow: visible !important;
}

.custom-dialog-Open .page-tab-form {
    max-height: none !important;
    overflow-y: visible !important;
}

/* Permissions tab content uses a fixed max-height + overflow:auto to fit the
   viewport on the full page. Inside a dialog that produces a nested scrollbar,
   so let it expand fully and let the dialog itself handle scrolling. */
.custom-dialog-Open .permissions-tab-max-height,
.custom-dialog-Form .permissions-tab-max-height {
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: visible !important;
}

/* AttributeForm action bar fix (scoped to that form only).

   The global .action-bar is position:absolute; top:-52px so the buttons land in
   the strip ABOVE the form. Most dialog forms (e.g. UserForm) live inside a
   TabStrip, whose tab-header row provides exactly that strip, so the buttons stay
   visible. AttributeForm has NO tabstrip -- it sits directly in .k-dialog-content
   (padding:0), so top:-52px hides the buttons behind the dialog title bar.

   Fix ONLY this form: pin its bar to top:0 and reserve the bar's height on its
   form-root wrapper. Scoped to .attribute-form-dialog so no other form is
   touched, and to dialog containers so the full-page layout is unaffected. */
.custom-dialog-Open .attribute-form-dialog,
.custom-dialog-Form .attribute-form-dialog {
    padding-top: 52px;
}

.custom-dialog-Open .attribute-form-dialog > .k-form .action-bar,
.custom-dialog-Form .attribute-form-dialog > .k-form .action-bar {
    top: 0;
}


/* ================================
   GRID HEIGHT FIX
================================ */
.k-tabstrip {
    height: calc(100vh - 100px);
    overflow: hidden;
}

    .k-tabstrip-content,
    .k-tabstrip > .k-content {
        overflow: hidden !important;
        flex: 1;
        padding: 0 !important;
    }

/* Settings (Setup) tabbed lists — give the grid pager a small professional
   gap at the bottom so it doesn't hug the viewport edge. */
.setup-page .k-tabstrip-content,
.setup-page .k-tabstrip > .k-content {
    padding-bottom: 10px !important;
}

/* Journey detail pages scroll naturally — no fixed viewport heights so
   line-item grids are never clipped by the journey tracker above. */
.page-detail .k-tabstrip {
    height: auto;
}

.page-detail .page-tab-form {
    max-height: none;
    overflow-y: visible;
}

/* ================================
   TENANT-LIST
================================ */
.tenant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

    .tenant-card:hover {
        background: rgba(255, 255, 255, 0.09);
    }

.tenant-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.tenant-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.tenant-name {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.tenant-chevron {
    flex-shrink: 0;
    opacity: 0.5;
}

/* ================================
   ITEM-TRACKING-LINES
================================ */
.warehouse-item-tracking-form-max-height {
    max-height: calc(100vh - 22vh);
    overflow-y: auto;
    padding-top: 1rem; 
}

/* ================================
   NOTIFICATION-INDEX
================================ */
.k-notification-container {
    z-index: 99999 !important;
}

.k-notification-group {
    z-index: 99999 !important;
}

.k-notification {
    min-width: 320px;
    padding: 14px 18px;
    font-size: 1rem;
    line-height: 1.4;
}

.k-notification .k-notification-content {
    font-size: 1rem;
}

.k-notification .k-icon,
.k-notification .k-notification-status .k-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* ================================
   STATUS SUMMARY CARDS
================================ */
.asn-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: clamp(4px, 0.5vw, 12px);
    padding: 0;
}

.asn-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-left: 3px solid;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 0;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.asn-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.asn-stat-card--active {
    border-color: #CBD5E1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.asn-stat-count {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.asn-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asn-stats--toolbar {
    padding: 0;
}


/* Status toggle buttons */
.status-toggle-btn {
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .3px !important;
    padding: 0 14px !important;
    height: 32px !important;
    transition: all .2s ease !important;
    cursor: pointer !important;
}

.status-toggle-open {
    background: transparent !important;
    color: #2563EB !important;
    border: 1.5px solid rgba(37, 99, 235, 0.35) !important;
    box-shadow: none !important;
}

.status-toggle-open:hover {
    background: rgba(37, 99, 235, 0.06) !important;
    border-color: #2563EB !important;
}

.status-toggle-open.is-active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.38) !important;
}

.status-toggle-open.is-active:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.status-toggle-released {
    background: transparent !important;
    color: var(--kendo-color-primary) !important;
    border: 1.5px solid rgba(125, 53, 241, 0.35) !important;
    box-shadow: none !important;
}

.status-toggle-released:hover {
    background: rgba(125, 53, 241, 0.06) !important;
    border-color: var(--kendo-color-primary) !important;
}

.status-toggle-released.is-active {
    background: linear-gradient(135deg, #4c1d95 0%, #7D35F1 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 10px rgba(125, 53, 241, 0.38) !important;
}

.status-toggle-released.is-active:hover {
    background: linear-gradient(135deg, #3b0764 0%, #5B20C6 100%) !important;
    box-shadow: 0 4px 14px rgba(125, 53, 241, 0.45) !important;
}

.asn-stats--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* ================================
   GRID BODY SKELETON (toggle views)
================================ */
.wms-grid-body-skeleton {
    position: absolute;
    top: 53px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--kendo-color-surface, #ffffff);
    z-index: 2;
    overflow: hidden;
}

/* ================================
   NAV GROUP LABEL
================================ */
.wms-nav-group-label {
    padding: 14px 20px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #64748B;
    list-style: none;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

/* ================================
   VIEW TOGGLE TABS
================================ */
.wms-vtabs {
    display: flex;
    gap: 0;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    padding: 2px;
    width: fit-content;
}

.wms-vt {
    padding: 4px 14px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.wms-vt--on {
    background: #ffffff;
    color: #0F172A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    cursor: default;
}

.wms-vtabs-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px 10px 6px;
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

/* ================================
   JOURNEY PROGRESS
================================ */
.journey-progress {
    display: flex;
    align-items: center;
    gap: 6px;
}

.journey-segments {
    display: flex;
    gap: 3px;
}

.journey-segment {
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background-color: #E2E8F0;
}

.journey-segment--done {
    background-color: var(--kendo-color-primary);
}

.journey-segment--active {
    background-color: var(--kendo-color-primary);
    opacity: 0.55;
}

.journey-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
}

/* ===== Inbound Journey Tracker ===== */
.ij-container {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ij-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 14px;
}

.ij-steps {
    display: flex;
    align-items: center;
}

.ij-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.ij-conn {
    height: 2px;
    flex: 1;
    min-width: 24px;
    margin-bottom: 28px;
    background: #E2E8F0;
}

.ij-conn.ij-conn-done {
    background: linear-gradient(90deg, #065f46 0%, #10b981 100%);
}

.ij-circ {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    background: #F1F5F9;
    color: #94A3B8;
    border: 2px solid #E2E8F0;
    transition: box-shadow .15s;
}

.ij-step.ij-done .ij-circ {
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
    color: #fff;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15), 0 2px 6px rgba(6, 95, 70, 0.3);
}

.ij-step.ij-active .ij-circ {
    background: var(--kendo-color-primary);
    color: #fff;
    border-color: var(--kendo-color-primary);
    box-shadow: 0 0 0 5px rgba(125, 53, 241, 0.15);
}

.ij-lbl {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    color: #94A3B8;
}

.ij-step.ij-done .ij-lbl {
    color: #047857;
    font-weight: 700;
}

.ij-step.ij-active .ij-lbl {
    color: var(--kendo-color-primary);
    font-weight: 700;
}

.ij-sub {
    font-size: 9px;
    color: #CBD5E1;
    text-align: center;
    white-space: nowrap;
    margin-top: 2px;
}

.ij-step.ij-done .ij-sub,
.ij-step.ij-active .ij-sub {
    color: #94A3B8;
}

/* Journey Action Banner */
.ij-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(125, 53, 241, 0.06);
    border: 1px solid rgba(125, 53, 241, 0.18);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    gap: 12px;
}

.ij-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ij-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--kendo-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 16px;
}

.ij-banner-icon span {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.ij-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
}

.ij-banner-sub {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

@keyframes ij-rotate {
    to { transform: rotate(360deg); }
}

.ij-icon-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ij-rotate 0.7s linear infinite;
}

.ij-btn-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ij-rotate 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

/* Base pill */
.journey-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.01em;
    border: none;
}

/* Open — blue: draft, not yet released */
.journey-pill--open {
    background: #DBEAFE;
    color: #2563EB;
}

/* Released — orange: submitted to warehouse */
.journey-pill--released {
    background: #FFF7ED;
    color: #EA580C;
}

/* Inspection Pending — indigo: awaiting inspection */
.journey-pill--inspection-pending {
    background: #EEF2FF;
    color: #4338CA;
}

/* Partially Inspected — orange: inspection in progress */
.journey-pill--inspection-partial {
    background: #FFEDD5;
    color: #EA580C;
}

/* Completely Inspected — teal: inspection done, awaiting put-away */
.journey-pill--inspected {
    background: #CFFAFE;
    color: #0891B2;
}

/* Partially Received — rose: receiving in progress */
.journey-pill--receiving {
    background: #FFE4E6;
    color: #BE123C;
}

/* Completely Received — green: fully done */
.journey-pill--complete {
    background: #DCFCE7;
    color: #16A34A;
}

/* Outbound — Pick Pending: purple, awaiting pick */
.journey-pill--pending {
    background: #EDE9FE;
    color: #7C3AED;
}

/* Outbound — Partially Picked: amber, pick in progress */
.journey-pill--picking {
    background: #FEF3C7;
    color: #D97706;
}

/* Outbound — Completely Picked: teal, pick done */
.journey-pill--picked {
    background: #CFFAFE;
    color: #0891B2;
}

/* Outbound — Completely Packed: emerald, ready to ship */
.journey-pill--packed {
    background: #D1FAE5;
    color: #059669;
}

.combobox-popover {
    transition: none !important;
    animation: none !important;
}

/* PPO Lines grid — column header truncation */
.ppo-col-header {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

/* PSS (Posted Sales Shipment) + PPR (Posted Purchase Receipt) column headers */
.pss-col-header,
.ppr-col-header {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.ppo-col-header--right {
    text-align: right;
}

.ppo-col-header--center {
    text-align: center;
}

/* PPO Lines card minimum height to match Related Docs */
.ppo-lines-grid {
    min-height: 160px;
}

/* PPO Lines grid — row and cell polish */
.ppo-lines-grid .k-table-td {
    font-size: 0.875rem;
    color: #1e293b;
    vertical-align: middle;
}

.ppo-lines-grid .k-grid-header .k-header {
    background: #f8fafc;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ppo-lines-grid .k-table-row:hover .k-table-td {
    background: #f1f5f9 !important;
}

.ppo-lines-grid .k-table-row.k-alt .k-table-td {
    background: #fafbfc;
}

/* Center numeric columns (Quantity, Qty to Receive) */
.ppo-lines-grid td.k-text-center,
.ppo-lines-grid .k-table-td.k-text-center {
    text-align: center !important;
}


/* PPO Lines grid — remove harsh borders */
.ppo-lines-grid,
.ppo-lines-grid .k-grid-toolbar,
.ppo-lines-grid .k-grid-header,
.ppo-lines-grid .k-grid-header-wrap,
.ppo-lines-grid .k-grid-container,
.ppo-lines-grid td,
.ppo-lines-grid th,
.ppo-lines-grid .k-table-td,
.ppo-lines-grid .k-table-th {
    border-color: #e2e8f0 !important;
}

.ppo-lines-grid {
    border: none !important;
    box-shadow: none !important;
}

/* ── Warehouse Inspection lines grid — responsive overflow ── */
/* Desktop / tablet: show horizontal scrollbar when columns overflow */
.winsp-lines-responsive {
    overflow-x: auto;
}

/* Small screens (< 768 px): no horizontal scrollbar.
   Columns compress to fit; users open the detail window for full field data. */
@media (max-width: 767.98px) {
    .winsp-lines-responsive {
        overflow-x: hidden !important;
    }

    .winsp-lines-responsive .k-grid-horizontal-scrollbar-wrap,
    .winsp-lines-responsive .k-grid-horizontal-scrollbar {
        display: none !important;
    }

    .winsp-lines-responsive .k-grid-table,
    .winsp-lines-responsive .k-grid-header-table {
        min-width: unset !important;
        width: 100% !important;
    }

    /* Prevent column header text from wrapping on small screens */
    .winsp-lines-responsive .k-grid-header .k-header {
        white-space: nowrap;
        overflow: hidden;
    }
}

/* PPO form CSS Grid layout */
.ppo-cards-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 12px;
    align-items: stretch;
    padding-bottom: 16px;
}

.ppo-cards-grid .ppo-left-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.ppo-cards-grid .ppo-left-stack > .k-card:first-child {
    flex: 1;
}

.ppo-cards-grid .ppo-side-column {
    height: 100%;
}

.ppo-cards-grid .ppo-side-column > .k-card {
    height: 100%;
}


.ppo-cards-grid .ppo-full-width {
    grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
    .ppo-cards-grid {
        grid-template-columns: 1fr;
    }

    .ppo-cards-grid .ppo-full-width {
        grid-column: 1;
    }
}

/* Warehouse Receipt Lines — hide Qty Received and Remaining Qty on medium screens */
@media (max-width: 991.98px) {
    .wreceipt-lines-grid .k-grid-header-wrap th:nth-child(8),
    .wreceipt-lines-grid .k-grid-header-wrap th:nth-child(9),
    .wreceipt-lines-grid .k-grid-content td:nth-child(8),
    .wreceipt-lines-grid .k-grid-content td:nth-child(9) {
        display: none;
    }
}

/* Warehouse Receipt Lines — also hide Zone and Bin on small screens */
@media (max-width: 767.98px) {
    .wreceipt-lines-grid .k-grid-header-wrap th:nth-child(4),
    .wreceipt-lines-grid .k-grid-header-wrap th:nth-child(5),
    .wreceipt-lines-grid .k-grid-header-wrap th:nth-child(8),
    .wreceipt-lines-grid .k-grid-header-wrap th:nth-child(9),
    .wreceipt-lines-grid .k-grid-content td:nth-child(4),
    .wreceipt-lines-grid .k-grid-content td:nth-child(5),
    .wreceipt-lines-grid .k-grid-content td:nth-child(8),
    .wreceipt-lines-grid .k-grid-content td:nth-child(9) {
        display: none;
    }
}

/* ================================
   PSO Lines Grid
================================ */

/* Column header span — truncate with ellipsis, show tooltip via title attr */
.pso-col-header {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.pso-col-header--right {
    text-align: right;
}

.pso-col-header--center {
    text-align: center;
}

/* Also force Kendo's own .k-column-title to never wrap inside this grid */
.pso-lines-grid .k-column-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
}

.pso-lines-grid {
    min-height: 160px;
    border: none !important;
    box-shadow: none !important;
}

.pso-lines-grid .k-table-td {
    font-size: 0.875rem;
    color: #1e293b;
    vertical-align: middle;
}

.pso-lines-grid .k-grid-header .k-header {
    background: #f8fafc;
    padding-top: 10px;
    padding-bottom: 10px;
    /* Keep header cells to a single line — truncate via pso-col-header ellipsis */
    white-space: nowrap;
    overflow: hidden;
}

.pso-lines-grid .k-table-row:hover .k-table-td {
    background: #f1f5f9 !important;
}

.pso-lines-grid .k-table-row.k-alt .k-table-td {
    background: #fafbfc;
}

.pso-lines-grid,
.pso-lines-grid .k-grid-toolbar,
.pso-lines-grid .k-grid-header,
.pso-lines-grid .k-grid-header-wrap,
.pso-lines-grid .k-grid-container,
.pso-lines-grid td,
.pso-lines-grid th,
.pso-lines-grid .k-table-td,
.pso-lines-grid .k-table-th {
    border-color: #e2e8f0 !important;
}

/* View mode: fit the lines grid to its container at any screen size so the
   columns compress instead of producing a horizontal scrollbar. Full field data
   stays available via the line detail dialog. Edit mode is left untouched so the
   inline-edit dropdown columns keep their natural (wider) widths. */
.ppo-view-mode .pso-lines-responsive {
    overflow-x: hidden !important;
}

.ppo-view-mode .pso-lines-responsive .k-grid-horizontal-scrollbar-wrap,
.ppo-view-mode .pso-lines-responsive .k-grid-horizontal-scrollbar {
    display: none !important;
}

.ppo-view-mode .pso-lines-responsive .k-grid-table,
.ppo-view-mode .pso-lines-responsive .k-grid-header-table {
    min-width: unset !important;
    width: 100% !important;
}

.ppo-view-mode .pso-lines-responsive .k-grid-header .k-header {
    white-space: nowrap;
    overflow: hidden;
}

/* Mobile (≤767px): hide Variant Code (2) + UOM (3) */
@media (max-width: 767.98px) {
    /* header: via HeaderClass="pso-hide-sm" */
    .pso-lines-grid th.pso-hide-sm {
        display: none !important;
    }
    /* data cells */
    .pso-lines-grid .k-grid-header-wrap col:nth-child(2),
    .pso-lines-grid .k-grid-header-wrap col:nth-child(3),
    .pso-lines-grid .k-grid-content col:nth-child(2),
    .pso-lines-grid .k-grid-content col:nth-child(3),
    .pso-lines-grid .k-grid-content td:nth-child(2),
    .pso-lines-grid .k-grid-content td:nth-child(3) {
        display: none !important;
    }

    /* Allow search box to shrink on very small screens */
    .pso-lines-grid .k-grid-toolbar .grid-search {
        min-width: 120px;
        flex: 1 1 0;
    }

    /* Let toolbar wrap to two lines if buttons won't fit */
    .pso-lines-responsive .k-grid-toolbar > div {
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

/* Line detail dialog — responsive width */
@media (max-width: 1050px) {
    .k-window.pso-line-dialog,
    .k-window.wpick-line-dialog,
    .k-window.wship-line-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        left: 2.5vw !important;
    }
}

/* Warehouse Pick lines grid — responsive toolbar */
@media (max-width: 767.98px) {
    .winsp-lines-responsive .k-grid-toolbar > div {
        flex-wrap: wrap;
    }
    .winsp-lines-responsive .k-grid-toolbar .grid-search {
        min-width: 120px;
        flex: 1 1 0;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIST PAGE RESPONSIVE
   Breakpoints: 1199 / 767 / 575
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Status filter row: scrollable flex on all sizes ──
   The default .asn-stats uses CSS grid (auto-fit) which
   compresses cells — switching to flex lets it scroll. */
.asn-stats--toolbar {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: clamp(4px, 0.5vw, 8px);
}

.asn-stats--toolbar::-webkit-scrollbar {
    display: none;
}

/* Cards: stretch to fill full width, floor at min-width */
.asn-stats--toolbar .asn-stat-card {
    flex: 1 1 0;
    min-width: 108px;
}

/* ── Tablet (768–1199px) ── */
@media (max-width: 1199px) {
    /* Search box: tighter */
    .k-grid-toolbar .grid-search {
        min-width: 180px;
        max-width: 200px;
    }

    /* "Posted Purchase Receipts": show icon only */
    .list-btn-receipts .k-button-text {
        display: none;
    }

    .list-btn-receipts {
        min-width: unset !important;
        padding-inline: 8px;
    }

    /* Grid: force horizontal scroll at this width */
    .custom-grid .k-grid-table,
    .custom-grid .k-grid-header-table {
        min-width: 820px;
    }

    /* Status cards: slightly narrower */
    .asn-stats--toolbar .asn-stat-card {
        min-width: 90px;
    }
}

/* ── Mobile (<768px) ── */
@media (max-width: 767px) {
    /* Toolbar top row: stack search above buttons */
    .list-toolbar-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
    }

    /* Search: full width */
    .list-toolbar-row .grid-search,
    .k-grid-toolbar .grid-search {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100%;
    }

    /* Button group: full-width flex row */
    .list-toolbar-actions {
        width: 100%;
        justify-content: space-between !important;
    }

    /* Hide "Posted Purchase Receipts" — too wide for mobile */
    .list-btn-receipts {
        display: none !important;
    }

    /* "+ Add": fill remaining space */
    .list-btn-add {
        flex: 1;
        min-width: unset !important;
        justify-content: center;
    }

    /* Status cards: compact */
    .asn-stats--toolbar .asn-stat-card {
        min-width: 76px;
        padding: 4px 8px;
        gap: 6px;
    }

    .asn-stats--toolbar .asn-stat-count {
        font-size: 13px;
    }

    .asn-stats--toolbar .asn-stat-label {
        font-size: 8px;
    }

    /* Grid: sticky first column + full horizontal scroll */
    .custom-grid .k-grid-table,
    .custom-grid .k-grid-header-table {
        min-width: 640px;
    }

    /* Pagination: hide first/last nav and page number list */
    .k-pager-nav.k-pager-first,
    .k-pager-nav.k-pager-last {
        display: none;
    }

    .k-pager-numbers {
        display: none;
    }

    /* Pager info text: compact */
    .k-pager-info {
        font-size: 0.6875rem;
    }
}

/* ── Small mobile (<575px) ── */
@media (max-width: 575px) {
    /* Hide "Items per page" label text */
    .k-pager-sizes .k-label {
        display: none;
    }

    /* Status cards: absolute minimum */
    .asn-stats--toolbar .asn-stat-card {
        min-width: 60px;
        padding: 4px 6px;
        gap: 4px;
    }

    /* Clear Filters button: icon only */
    .list-btn-clear .k-button-text {
        display: none;
    }

    .list-btn-clear {
        min-width: unset !important;
        padding-inline: 8px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CUSTOM GRID — compact table, badge, pagination
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Header row ── */
.custom-grid .k-grid-header .k-table-th,
.custom-grid .k-grid-header .k-header {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.custom-grid .k-grid-header .k-cell-inner {
    min-height: 34px;
}

/* ── Data rows ── */
.custom-grid .k-table-tbody .k-table-row {
    height: 38px;
}

.custom-grid .k-table-tbody .k-table-td {
    font-size: 0.8125rem;
    padding-block: 0;
    vertical-align: middle;
}

/* ── Current Stage: journey pill (status badge) ── */
.journey-pill {
    height: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding-block: 2px;
    padding-inline: 8px;
    line-height: 1.2;
    border-radius: 10px;
}

/* ── Current Stage: mini progress segments ── */
.journey-segment {
    width: 18px;
    height: 5px;
}

.journey-segments {
    gap: 2px;
}

.journey-label {
    font-size: 10px;
}

/* ── Pagination ── */
.k-pager {
    min-height: 44px;
    padding-block: 0;
    font-size: 0.8125rem;
}

.k-pager-item,
.k-pager-nav {
    min-width: 28px;
    height: 28px;
    font-size: 0.8125rem;
}

.k-pager-info {
    font-size: 0.75rem;
}

.k-pager-sizes .k-picker,
.k-pager-sizes .k-input {
    height: 28px;
    font-size: 0.8125rem;
    /* widen so the page-size value (e.g. "50") isn't clipped by the dropdown arrow */
    min-width: 64px;
}

/* keep the selected page-size value from being cut off on the right */
.k-pager-sizes .k-input-value-text,
.k-pager-sizes .k-input-inner {
    overflow: visible;
    text-overflow: clip;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GRID LIST TOOLBAR — compact stats row
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Stats cards inside grid toolbars: tighter than standalone cards */
.asn-stats--toolbar .asn-stat-card {
    padding: 5px 10px;
    gap: 8px;
    border-radius: 5px;
}

.asn-stats--toolbar .asn-stat-count {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.asn-stats--toolbar .asn-stat-label {
    font-size: 9px;
}

/* Grid toolbar search box: narrower so buttons have more room */
.k-grid-toolbar .grid-search {
    min-width: 220px;
    max-width: 280px;
}

/* Grid toolbar: tighten the top action row spacing */
.k-grid-toolbar .k-gap-3 {
    gap: 8px !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COMPACT UI
   Reduces visual footprint so app looks good at 100% zoom.
   All colors use existing variables — no hex values here.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Base font size */
html, body {
    font-size: 13px;
}

/* ── Header: 46px ── */
.vs-header {
    min-height: 46px;
    max-height: 46px;
    padding-block: 4px !important;
}

.header-profile-popover.k-popover {
    right: 8px !important;
    left: auto !important;
}


/* ── Sidebar mini (collapsed) width ── */
.k-drawer-mini .k-drawer-wrapper {
    width: 52px;
}

/* ── Drawer item height & font ── */
.k-drawer-item {
    min-height: 36px;
    font-size: 0.8125rem;
    padding-inline: 10px;
}

/* Nav group label */
.wms-nav-group-label {
    padding: 14px 14px 4px;
    font-size: 0.6875rem;
}

/* ── Sub-drawer: reposition for 200px main drawer ── */
.sub-drawer > .k-drawer-start {
    left: 210px;
}

.k-drawer-mini + .sub-drawer > .k-drawer-start {
    left: 58px;
}

/* ── Inputs: override explicit 42px height ── */
.k-input,
.k-textbox,
.k-input-inner {
    height: 32px;
}

/* Preserve auth-page input height */
.auth-layout-form .k-input,
.auth-layout-form .k-input-inner {
    height: 44px;
}

/* ── Buttons ── */
.k-button-md {
    min-height: 32px;
    height: 32px;
    font-size: 0.8125rem;
    padding-block: 0;
}

.default-btn {
    min-width: 100px;
    min-height: 32px;
}

/* ── Journey tracker: compact circles & banner ── */
.ij-container {
    padding: 10px 16px;
    margin-bottom: 8px;
}

.ij-title {
    margin-bottom: 10px;
}

.ij-circ {
    width: 28px;
    height: 28px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ij-conn {
    margin-bottom: 22px;
}

.ij-lbl {
    font-size: 9px;
}

.ij-banner {
    padding: 10px 16px;
    margin-bottom: 8px;
}

.ij-banner-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 14px;
}

.ij-banner-title {
    font-size: 0.875rem;
}

.ij-banner-sub {
    font-size: 0.75rem;
}

/* ── Page layout heights (adjusted for 46px header) ── */
.page-grid {
    height: calc(100vh - 103px);
    overflow: hidden;
    padding-bottom: 8px;
}

.page-form {
    max-height: calc(100vh - 170px);
    margin-top: 46px;
}

.page-journal {
    max-height: calc(100vh - 170px);
}

.page-form-list {
    max-height: calc(100vh - 170px);
    margin-top: 46px;
}

.page-tab-form {
    max-height: calc(100vh - 218px);
    margin-top: 46px;
}

.page-tab-list {
    max-height: calc(100vh - 170px);
    margin-top: 46px;
}

.page-report {
    height: calc(100vh - 110px);
}

.dashboard-page {
    max-height: calc(100vh - 50px);
}

/* Action bar absolute position */
.action-bar {
    top: -46px;
}

/* Skeleton */
.skeleton-max-height {
    max-height: calc(100vh - 190px);
}

/* Tabstrip height adjustment */
.k-tabstrip {
    height: calc(100vh - 89px);
}

/* Wms grid body skeleton top offset (was 53px for old header) */
.wms-grid-body-skeleton {
    top: 46px;
}

/* ── Responsive ── */
@media (max-width: 1399px) {
    .sub-drawer > .k-drawer-start {
        left: 200px;
    }
}

@media (max-width: 767px) {
    .vs-header {
        padding-inline: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PPO FORM — Responsive field grid & show-more animation
   ══════════════════════════════════════════════════════════════ */

/* Convert Bootstrap .row inside left-stack cards to CSS grid */
.ppo-left-stack .k-card-body .row {
    display: grid !important;
    gap: 10px 14px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Strip Bootstrap col sizing — grid handles width */
.ppo-left-stack .k-card-body .row > [class*="col-"],
.ppo-left-stack .k-card-body .row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* CREATE / EDIT mode: 4 columns */
.ppo-edit-mode .ppo-left-stack .k-card-body .row {
    grid-template-columns: repeat(4, 1fr);
}

/* VIEW mode: 4 columns */
.ppo-view-mode .ppo-left-stack .k-card-body .row {
    grid-template-columns: repeat(4, 1fr);
}

/* Side card (Receiving): always single column */
.ppo-side-column .k-card-body .row,
.ppo-side-column .ppo-show-more-panel .row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ppo-side-column .k-card-body .row > [class*="col-"],
.ppo-side-column .k-card-body .row > div,
.ppo-side-column .ppo-show-more-panel .row > [class*="col-"],
.ppo-side-column .ppo-show-more-panel .row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Show-more animated panel (max-height transition) */
.ppo-show-more-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.ppo-show-more-panel.expanded {
    max-height: 2000px;
    opacity: 1;
}

/* ── Reusable empty-state (No records) — dashed card, centered ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    max-width: 460px;
    margin: 48px auto;
    padding: 48px 32px;
    border: 1px dashed var(--kendo-color-border, #c7c7c7);
    border-radius: 12px;
}

.empty-state-icon {
    color: var(--kendo-color-primary, #6b21a8);
    opacity: 0.85;
    margin-bottom: 4px;
}

.empty-state-title {
    margin: 0;
    font-weight: 600;
    color: var(--kendo-color-on-app-surface, #1f1f1f);
}

.empty-state-text {
    margin: 0;
    color: var(--kendo-color-subtle, #6b7280);
    line-height: 1.5;
}

.empty-state .default-btn {
    margin-top: 8px;
}

/* ── Consistent, compact field spacing in PPO left-stack cards ──
   Tighten the field min-height so cells hug their content (removes the
   uneven dead-space below inputs), keep one uniform grid row-gap, and
   make the gap before the expanded Show-More panel match that row-gap so
   the main row block and the show-more block read as one even grid. */
.ppo-left-stack .custom-input-group {
    min-height: 56px;
}

.ppo-left-stack .k-card-body .row {
    gap: 8px 14px;
}

.ppo-left-stack .ppo-show-more-panel.expanded .row {
    margin-top: 8px !important;
}

/* Same compact, consistent field spacing for the Receiving side card. */
.ppo-side-column .custom-input-group {
    min-height: 56px;
}

.ppo-side-column .k-card-body .row,
.ppo-side-column .ppo-show-more-panel .row {
    gap: 8px;
}

.ppo-side-column .ppo-show-more-panel.expanded .row {
    margin-top: 8px !important;
}

/* Show-more link button */
.show-more-link {
    color: var(--kendo-color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.show-more-link:hover { opacity: 0.75; }

.show-more-chevron {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
    /* Collapsed (Show More): point right. */
    transform: rotate(-90deg);
}

.show-more-link.expanded .show-more-chevron {
    /* Expanded (Show Less): point down. */
    transform: rotate(0deg);
}

/* ── Tablet ≤1199px: 2-col fields, stack side card below ── */
@media (max-width: 1199px) {
    .ppo-edit-mode .ppo-left-stack .k-card-body .row,
    .ppo-view-mode .ppo-left-stack .k-card-body .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ppo-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Mobile ≤767px: 1-col fields ── */
@media (max-width: 767px) {
    .ppo-edit-mode .ppo-left-stack .k-card-body .row,
    .ppo-view-mode .ppo-left-stack .k-card-body .row {
        grid-template-columns: 1fr !important;
    }
}