:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --surface-muted: #eef3fb;
    --line: #d9e3f1;
    --text: #18212f;
    --muted: #667085;
    --primary: #0f4c81;
    --primary-strong: #0a3558;
    --accent: #1ea896;
    --danger: #d64550;
    --warning: #f0a202;
    --shadow: 0 18px 48px rgba(15, 76, 129, 0.12);
    --shadow-soft: 0 10px 24px rgba(15, 76, 129, 0.08);
    --radius: 24px;
    --radius-sm: 16px;
    --header-height: 78px;
    --footer-height: 80px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.off_bg,
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(30, 168, 150, 0.12), transparent 36%),
        radial-gradient(circle at top right, rgba(15, 76, 129, 0.18), transparent 34%),
        linear-gradient(180deg, #eef4fb 0%, #f6f9fd 42%, #eef3f8 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding-top: calc(var(--header-height) + var(--safe-top) + 12px);
    padding-bottom: calc(var(--footer-height) + var(--safe-bottom) + 28px);
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

.app-shell {
    width: min(1120px, calc(100% - 20px));
    margin: 0 auto;
}

.main_header {
    position: fixed;
    top: calc(var(--safe-top) + 10px);
    left: 50%;
    z-index: 1100;
    width: min(1120px, calc(100% - 20px));
    transform: translateX(-50%);
    background: rgba(12, 28, 49, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.main_header .container-fluid,
.main_header .row {
    margin: 0;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-height);
    padding: 10px 18px;
    color: #fff;
}

.app-topbar__left,
.app-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-brand {
    min-width: 0;
}

.app-brand__eyebrow {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
}

.app-brand__title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.app-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.app-icon-btn:hover,
.app-icon-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.app-customer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-customer-chip i {
    color: #9de6db;
}

#slide-out.side-nav,
.side-nav {
    width: min(320px, calc(100% - 24px));
    background: linear-gradient(180deg, #09253e 0%, #103b61 48%, #0a2b47 100%) !important;
    box-shadow: 20px 0 48px rgba(6, 18, 33, 0.35);
    padding-bottom: 16px !important;
    top: calc(var(--header-height) + var(--safe-top) + 18px) !important;
    height: calc(100% - (var(--header-height) + var(--safe-top) + 28px)) !important;
    max-height: calc(100% - (var(--header-height) + var(--safe-top) + 28px)) !important;
    border-radius: 18px 18px 0 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 230, 219, 0.42) transparent;
}

#slide-out.side-nav::-webkit-scrollbar,
.side-nav::-webkit-scrollbar {
    width: 8px;
}

#slide-out.side-nav::-webkit-scrollbar-track,
.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

#slide-out.side-nav::-webkit-scrollbar-thumb,
.side-nav::-webkit-scrollbar-thumb {
    background: rgba(157, 230, 219, 0.34);
    border-radius: 999px;
}

#slide-out.side-nav::-webkit-scrollbar-thumb:hover,
.side-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 230, 219, 0.52);
}

#slide-out .nav1,
.nav1 {
    min-height: 100%;
    color: #fff;
    background: transparent !important;
}

#slide-out .its-navigation-header-outer,
.its-navigation-header-outer {
    padding: 28px 22px 20px;
    background: none !important;
}

#slide-out .its-navigation-header,
.its-navigation-header {
    padding: 24px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: auto !important;
    min-height: 0 !important;
}

.its-user-thum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    padding-right: 0 !important;
}

.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 168, 150, 0.95), rgba(15, 76, 129, 0.95));
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 28px rgba(7, 31, 55, 0.26);
}

.its-user-thum img:last-child {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.14);
    padding: 6px;
    float: none !important;
}

#slide-out .its-navigation-header p,
.its-navigation-header p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.9);
}

.its-nav-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(157, 230, 219, 0.86);
}

.its-nav-name {
    font-size: 22px;
    line-height: 1.15;
}

#slide-out .its-navigation-header .its-email,
.its-navigation-header .its-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76) !important;
}

#slide-out .its-nav-customer,
.its-nav-customer {
    display: block;
    margin-top: 16px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clear: both;
    position: relative;
    z-index: 1;
}

.its-nav-customer__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(157, 230, 219, 0.78);
    margin-bottom: 6px;
}

.its-nav-customer__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

#slide-out .sidebar-menu,
.sidebar-menu {
    list-style: none;
    margin: 14px 0 0;
    padding: 0 14px 24px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

#slide-out .sidebar-menu a,
.sidebar-menu a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.96) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    height: auto !important;
    line-height: 1.2 !important;
    white-space: normal !important;
}

#slide-out .sidebar-menu a i,
.sidebar-menu a i {
    width: 18px;
    margin-top: 3px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82) !important;
}

.sidebar-menu__text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

#slide-out .sidebar-menu a span,
.sidebar-menu a span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff !important;
}

#slide-out .sidebar-menu a small,
.sidebar-menu a small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(232, 242, 255, 0.72) !important;
    white-space: normal;
}

#slide-out .sidebar-menu a:hover,
#slide-out .sidebar-menu a:focus,
.sidebar-menu a:hover,
.sidebar-menu a:focus {
    background: rgba(255, 255, 255, 0.14) !important;
}

#slide-out.side-nav li > a:not(.btn):not(.btn-large):not(.btn-floating),
.side-nav li > a:not(.btn):not(.btn-large):not(.btn-floating) {
    height: auto !important;
    line-height: 1.2 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

#slide-out.side-nav .sidebar-menu li,
.side-nav .sidebar-menu li {
    float: none !important;
}

#slide-out.side-nav .sidebar-menu a > i,
#slide-out.side-nav .sidebar-menu a > [class^="mdi-"],
#slide-out.side-nav .sidebar-menu a > [class*="mdi-"],
#slide-out.side-nav .sidebar-menu a > i.material-icons,
.side-nav .sidebar-menu a > i,
.side-nav .sidebar-menu a > [class^="mdi-"],
.side-nav .sidebar-menu a > [class*="mdi-"],
.side-nav .sidebar-menu a > i.material-icons {
    margin: 2px 0 0 !important;
}

.page-hero,
.panel-card,
.app-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-hero {
    padding: 20px;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.95), rgba(30, 168, 150, 0.92));
    color: #fff;
    overflow: hidden;
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.page-hero__eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.section-title {
    margin: 12px 0 6px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.section-subtitle,
.page-hero p {
    margin: 0;
    color: inherit;
    opacity: 0.92;
}

.panel-card,
.app-card {
    padding: 18px;
    margin-bottom: 16px;
}

.search-panel {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    z-index: 10;
}

.search-form,
.product_search1,
.ledger_filters {
    display: grid;
    gap: 12px;
}

.customer-search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-search-controls .search-input {
    min-width: 0;
    flex: 1;
}

.voice-customer-button {
    flex: 0 0 auto;
    min-width: 94px;
}

.voice-customer-button.is-listening {
    background: #d92d20;
    animation: voiceCustomerPulse 1s ease-in-out infinite;
}

.voice-customer-status {
    min-height: 20px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

@keyframes voiceCustomerPulse {
    50% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(217, 45, 32, 0.14); }
}

.search-input,
.ledger_filter_input,
.product_search1 input,
.search-form input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 0 14px;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-input:focus,
.ledger_filter_input:focus,
.product_search1 input:focus {
    outline: none;
    border-color: rgba(15, 76, 129, 0.42);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.app-btn,
.ledger_filter_btn,
.search-form button,
.product_search1 button,
.place_order_button button,
.small_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.22);
}

.app-btn--secondary {
    background: #eef3fb;
    color: var(--primary);
    box-shadow: none;
}

.customer-grid,
.orders-grid {
    display: grid;
    gap: 14px;
}

.customer-card,
.order-card,
.cart-card,
.ledger_wrap {
    background: var(--surface);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.customer-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding: 18px 18px 16px;
}

.customer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 76, 129, 0.16);
}

.customer-card__logo,
.client_image {
    width: 72px;
    height: 72px !important;
    border-radius: 20px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(30, 168, 150, 0.18));
    padding: 8px;
}

.customer-card__name,
.big_text {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.meta-list {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.meta-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.meta-line i {
    width: 14px;
    color: var(--primary);
    margin-top: 2px;
}

.chip-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 14px;
    min-height: 38px;
    align-items: center;
}

.chip-actions a,
.small_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #eef3fb;
    color: var(--primary);
}

.customer-card > div:last-of-type {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.missing-phone-flag {
    align-self: flex-start;
}

.popular-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.saved-order-list {
    display: grid;
    gap: 12px;
}

.saved-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 22px rgba(15, 76, 129, 0.08);
    text-align: left;
}

.saved-order-card__name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.saved-order-card__qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 138px;
    padding: 18px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 28px rgba(15, 76, 129, 0.12);
    color: #1270ff;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-tile:hover,
.hub-tile:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(15, 76, 129, 0.16);
    color: #1270ff;
}

.hub-tile.is-disabled,
.hub-tile.is-disabled:hover,
.hub-tile.is-disabled:focus {
    opacity: 0.55;
    transform: none;
    box-shadow: 0 10px 18px rgba(15, 76, 129, 0.08);
    pointer-events: none;
}

.hub-tile i {
    font-size: 34px;
    margin-bottom: 14px;
    color: #21c34a;
}

.hub-tile__label {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.hub-tile--danger {
    color: #2d2d2d;
}

.hub-tile--danger i {
    color: #21c34a;
}

.profile-grid {
    display: grid;
    gap: 14px;
}

.profile-item {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.profile-item__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.profile-item__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.popular-product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
    border: 1px solid var(--line);
}

.popular-product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-actions .app-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.sync-status {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.sync-progress {
    margin-top: 14px;
}

.sync-progress[hidden] {
    display: none !important;
}

.sync-progress__track {
    position: relative;
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sync-progress__track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: syncShimmer 1.8s linear infinite;
}

.sync-progress__fill {
    position: relative;
    height: 100%;
    width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd76b 0%, #ffffff 45%, #7ef3d8 100%);
    box-shadow: 0 8px 18px rgba(126, 243, 216, 0.3);
    transition: width 0.45s ease;
}

.sync-progress__fill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.15));
    animation: syncPulse 1.2s ease-in-out infinite;
}

.sync-progress__meta {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.84);
}

.sync-progress--hero .sync-progress__track {
    background: rgba(255, 255, 255, 0.18);
}

.sync-progress--hero .sync-progress__meta {
    color: rgba(255, 255, 255, 0.84);
}

.sync-status--dark {
    color: var(--muted);
}

.product_search1 {
    grid-template-columns: minmax(0, 1.8fr) minmax(120px, 0.7fr) 52px;
    align-items: center;
}

.product_search1 .search_btn,
.product_search1 button[type="button"] {
    width: 52px;
    padding: 0;
}

.search_drop {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-height: 280px;
    overflow: auto;
}

.search_drop p {
    margin: 0 0 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7fafe;
    cursor: pointer;
}

.product-browser {
    display: grid;
    gap: 16px;
}

.product-browser__toolbar {
    display: grid;
    gap: 12px;
}

.product-voice-search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-voice-search-controls .product-search-input {
    min-width: 0;
    flex: 1;
}

.product-voice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-width: 94px;
    height: 52px;
    padding: 0 14px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.22);
}

.product-voice-button.is-listening {
    background: #d92d20;
    animation: voiceCustomerPulse 1s ease-in-out infinite;
}

.product-voice-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.product-voice-status:not(:empty) {
    padding: 8px 10px;
    border: 1px solid #cfe1f5;
    border-radius: 12px;
    background: #f2f8ff;
    color: #24537c;
}

.product-voice-suggestions {
    display: grid;
    gap: 6px;
    padding: 9px;
    border: 1px solid #cfe1f5;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 76, 129, 0.1);
}

.product-voice-suggestions[hidden] {
    display: none;
}

.product-voice-suggestions__label {
    padding: 0 3px 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.product-voice-suggestions button {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d7e6f7;
    border-radius: 10px;
    background: #f5f9ff;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.product-voice-suggestions__phrase,
.product-voice-suggestions__products {
    display: block;
}

.product-voice-suggestions__phrase {
    color: var(--primary);
    font-size: 13px;
}

.product-voice-suggestions__products {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.product-browser__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-browser__header > div {
    min-width: 0;
}

.product-browser__header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.ai-order-button { position:relative; isolation:isolate; overflow:hidden; flex:0 0 auto; width:auto; min-height:44px; display:flex; align-items:center; gap:8px; border:0; border-radius:14px; padding:8px 12px; background:linear-gradient(135deg,#102f4d,#167b86 58%,#22b8a7); color:#fff; text-align:left; box-shadow:0 8px 18px rgba(20,100,155,.2); }.ai-order-button:after{content:"";position:absolute;z-index:-1;inset:0;transform:translateX(-120%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);animation:aiOrderShine 3.4s ease-in-out infinite}.ai-order-button__icon{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:9px;background:rgba(255,255,255,.17);font-size:13px}.ai-order-button strong{display:block;font-size:13px;font-weight:900}.ai-order-button small{display:none}.ai-order-button__arrow{margin-left:2px;font-size:12px}@keyframes aiOrderShine{45%,100%{transform:translateX(120%)}}
.ai-order-modal { position:fixed; inset:0; z-index:100020; display:none; }
.ai-order-modal.is-visible { display:block; }
.ai-order-modal__backdrop { position:absolute; inset:0; background:rgba(7,18,33,.58); backdrop-filter:blur(5px); }
.ai-order-modal__card { position:relative; width:min(560px,calc(100% - 24px)); max-height:82dvh; overflow:auto; margin:8vh auto; padding:22px; border-radius:24px; background:#fff; box-shadow:0 30px 64px rgba(7,18,33,.3); }
.ai-order-panel[hidden]{display:none}.ai-order-panel{border:1px solid #9fdad1;background:radial-gradient(circle at top right,rgba(34,184,167,.18),transparent 35%),linear-gradient(145deg,#f8fcff,#eef8f7);box-shadow:0 16px 34px rgba(14,101,117,.12)}.ai-order-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ai-order-panel h3{margin:6px 0 0;font-size:22px;font-weight:900}.ai-order-panel>p{margin:8px 0 16px;color:var(--muted);font-size:13px;line-height:1.45}.ai-order-panel .ai-order-modal__close{position:static;flex:0 0 auto}
.ai-order-panel__footer{margin-top:16px;text-align:center}.ai-order-panel__footer button{border:0;border-radius:12px;padding:10px 16px;background:#e6eef7;color:var(--primary);font-size:12px;font-weight:900}
.ai-order-modal__close { position:absolute; right:14px; top:14px; width:36px; height:36px; border:0; border-radius:12px; background:#edf4fb; color:var(--primary); }
.ai-order-modal__eyebrow { color:#167b86; font-size:11px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.ai-order-modal__card h3 { margin:10px 0 6px; font-size:23px; font-weight:900; }.ai-order-modal__card>p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.5}
.ai-order-check,.ai-order-item { padding:12px; border:1px solid #d8e6f3; border-radius:14px; background:#f8fbff; }.ai-order-check{margin-bottom:10px;color:#24537c;font-size:13px}.ai-order-list{display:grid;gap:9px}.ai-order-item{display:grid;gap:5px}.ai-order-item strong{font-size:14px}.ai-order-item span{font-size:12px;color:var(--muted)}.ai-order-item button{justify-self:start;border:0;border-radius:10px;padding:8px 10px;background:#167b86;color:#fff;font-weight:800;font-size:12px}.ai-order-ready{color:#168343!important;font-weight:800}
.smart-order-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:4px 0 18px}.smart-order-actions button{display:flex;align-items:center;justify-content:flex-start;gap:13px;width:100%;min-height:62px;padding:12px 18px;border:0;border-radius:16px;background:linear-gradient(135deg,#0f4c81,#168b88);color:#fff;font-size:15px;font-weight:900;line-height:1.25;text-align:left;box-shadow:0 10px 20px rgba(15,76,129,.18);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.smart-order-actions button:hover,.smart-order-actions button:focus{color:#fff;transform:translateY(-2px);box-shadow:0 14px 26px rgba(15,76,129,.25)}.smart-order-actions button:disabled{cursor:wait;opacity:.72;transform:none}.smart-order-actions button i{width:22px;text-align:center;font-size:20px;color:#c9fff4}.smart-order-actions button .smart-order-actions__arrow{width:auto;margin-left:auto;font-size:13px;color:rgba(255,255,255,.9)}.smart-order-actions button:active{transform:scale(.98)}.ai-order-section-title{display:inline-flex;align-items:center;min-height:30px;margin:18px 0 9px;padding:7px 11px;border-radius:999px;background:#dff6f1;color:#0d685f;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;box-shadow:inset 0 0 0 1px rgba(22,139,136,.16)}.ai-order-item--stock{background:#f3fbf7;border-color:#ccebdd}.ai-order-item--stock button{background:#168343}
.ai-similar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ai-similar-card{display:grid;gap:5px;padding:10px;border:1px solid #d8e6f3;border-radius:13px;background:#fff;box-shadow:0 7px 16px rgba(18,75,113,.05)}.ai-similar-card--benefit{border-color:#bfe5d9;background:linear-gradient(145deg,#fff 0%,#f1fbf7 100%)}.ai-similar-card--recommendation{border-color:#75c8d1;background:linear-gradient(145deg,#fff 0%,#eaf8fa 100%);box-shadow:0 10px 20px rgba(22,139,136,.11)}.ai-similar-card strong{font-size:12px;line-height:1.25}.ai-similar-card span,.ai-similar-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}.ai-similar-card .smart-order-reason{overflow:visible;white-space:normal;color:#0c726f;font-weight:900;line-height:1.35}.ai-similar-card button{border:0;border-radius:9px;padding:7px;background:#eff7ff;color:var(--primary);font-size:11px;font-weight:900}.smart-order-loading{margin:12px 0;padding:11px 12px;border-radius:12px;background:#eef7ff;color:#24537c;font-size:12px;font-weight:800}.smart-order-loading i{margin-right:7px}
.ai-product-details{display:flex;flex-wrap:wrap;gap:3px 7px;width:100%;color:#315775;font-size:10px;font-weight:700;line-height:1.45}.ai-similar-card .ai-product-details span{overflow:visible;white-space:normal;text-overflow:clip;color:#315775;overflow-wrap:anywhere}.ai-qty-options{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}.ai-qty-options span{width:100%;color:var(--muted);font-size:9px;font-weight:800}.ai-qty-options button{padding:6px 7px!important;background:#e7f5f3!important;color:#127569!important;font-size:10px!important}.ai-custom-qty{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;margin-top:6px}.ai-custom-qty input{width:100%;min-width:0;border:1px solid #cbdced;border-radius:8px;padding:6px 7px;background:#fff;color:var(--text);font-size:10px;font-weight:700}.ai-custom-qty button{padding:6px 9px!important;background:#167b86!important;color:#fff!important;font-size:10px!important}

.product-search-input {
    width: 100%;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 0 16px;
    font-size: 25px !important
}

.product-search-input:focus,
.qty-field:focus {
    outline: none;
    border-color: rgba(15, 76, 129, 0.42);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.product-results {
    display: grid;
    gap: 12px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}
.product-results[hidden]{display:none}

.product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 0;
    align-items: stretch;
    padding: 0;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #d8e3f2;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.08);
}

.product-row.is-highlighted {
    animation: rowFlash 0.7s ease;
}

.product-row__content {
    display: flex;
    flex-direction: column;
}

.product-row__header {
    background: #e9f4ff;
    border-bottom: 1px solid #d6e6f7;
    padding: 0;
}

.product-row__body {
    padding: 14px 16px 16px;
}

.product-row__name {
    margin: 0;
    padding: 14px 16px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    color: #0f2440;
    text-transform: uppercase;
}

.product-row__name.stock-high {
    color: #0a7a1c;
}

.product-row__name.stock-low {
    color: #c46a00;
}

.product-row__name.stock-out {
    color: #b9121b;
}

.product-row__company {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #435266;
    font-weight: 700;
    text-transform: uppercase;
}

.product-row__history {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #edf8f4;
    color: #176a50;
    font-size: 13px;
    font-weight: 700;
}

.product-row__history i {
    margin-right: 4px;
}

.product-row__history strong {
    color: #0c4f3b;
    font-weight: 900;
}

.product-row__meta {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: #1f2937;
    font-weight: 700;
}

.product-row__submeta {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #405164;
}

.product-row__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-left: 1px solid #d8e3f2;
}

.product-row__controls.is-editing {
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
    box-shadow: inset 0 0 0 2px rgba(47, 125, 255, 0.16);
}

.product-row__controls--empty {
    justify-content: center;
}

.product-row__qty-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-picker-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-picker-btn--minus {
    color: #ff5a3d;
}

.qty-picker-btn--plus {
    color: #19a64b;
}

.qty-field {
    width: 78px;
    height: 52px;
    border: 1px solid #cfd9e7;
    border-radius: 10px;
    background: #fff;
    padding: 0 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #1b3d22;
}

.ok-btn {
    min-width: 108px;
    height: 44px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f7cf0, #2f8cff);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 18px rgba(31, 124, 240, 0.2);
}

.no-stock-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    height: 42px;
    border-radius: 999px;
    background: #fff0f1;
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf7ef;
    color: #08721d;
    font-size: 12px;
    font-weight: 700;
}

.stock-badge.low {
    background: #fff5df;
    color: #9e6b00;
}

.stock-badge.out {
    background: #ffe4e7;
    color: #b42318;
}

.scheme-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-right: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef8ff;
    color: #0f4c81;
    font-size: 12px;
    font-weight: 700;
}

.cart-board {
    overflow: auto;
    border-radius: 24px;
    border: 1px solid #d8e3f2;
    box-shadow: 0 12px 28px rgba(15, 76, 129, 0.12);
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.cart-board__header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f4c81, #1ea896);
    color: #fff;
    text-align: center;
}

.cart-board__header h3,
.cart-board__header p {
    margin: 0;
}

.cart-board__header h3 {
    font-size: 18px;
    font-weight: 800;
}

.cart-board__header p {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.cart-empty {
    padding: 18px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.cart-modern {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 0;
    padding: 0;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #d8e3f2;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.08);
}

.cart-item-card__left {
    display: flex;
    flex-direction: column;
}

.cart-item-card__header {
    background: #e9f4ff;
    border-bottom: 1px solid #d6e6f7;
}

.cart-item-card__body {
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.cart-item-card__name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f2440;
    margin: 0;
    padding: 14px 16px;
    text-transform: uppercase;
}

.cart-item-card__code,
.cart-item-card__company,
.cart-item-card__meta,
.cart-summary-card__meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.cart-item-card__company {
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 700;
    color: #435266;
}

.cart-item-card__meta {
    margin-top: 8px;
    font-size: 15px;
    color: #1f2937;
    font-weight: 700;
}

.cart-item-card__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-left: 1px solid #d8e3f2;
}

.cart-item-card__total strong {
    color: #0f4c81;
}

.cart-item-card__qty-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-card__qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #0f2440;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f7cf0, #2f8cff);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(31, 124, 240, 0.18);
}

.cart-item-card__total {
    margin-top: 10px;
    text-align: left;
    font-size: 14px;
    color: var(--muted);
}

.cart-item-card__remove {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #fff1f2;
    color: #c51d34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cart-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 16px 16px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f4c81, #1ea896);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 76, 129, 0.22);
}

.cart-summary-card__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.84;
}

.cart-summary-card__meta {
    color: rgba(255, 255, 255, 0.82);
}

.cart-summary-card__value {
    font-size: 26px;
    font-weight: 900;
    white-space: nowrap;
}

.cart-fab {
    position: fixed;
    right: 18px;
    bottom: 106px;
    z-index: 1080;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0a6415, #1cbc44);
    color: #fff;
    box-shadow: 0 18px 36px rgba(10, 100, 21, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cart-fab__count {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff5d5d;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-fab.is-bouncing {
    animation: cartBounce 0.6s ease;
}

.ai-order-top-button {
    position: fixed;
    right: 18px;
    bottom: 178px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c81, #168b88);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.25);
}

.ai-order-top-button:hover,
.ai-order-top-button:focus {
    color: #fff;
    transform: translateY(-2px);
}

.ai-order-top-button[hidden] {
    display: none !important;
}

.catalog-sync-info {
    display: grid;
    gap: 5px;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.35;
}

.catalog-sync-info span {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.catalog-sync-info i {
    width: 13px;
    margin-top: 2px;
    color: #a8f1e3;
}

.catalog-sync-info strong {
    color: #fff;
    font-weight: 800;
}

@media (min-width: 768px) {
    .ai-order-panel {
        padding: 28px;
    }

    .ai-order-panel h3 {
        font-size: 30px;
    }

    .ai-order-modal__eyebrow {
        font-size: 12px;
    }

    .smart-order-actions {
        gap: 14px;
        margin-bottom: 24px;
    }

    .smart-order-actions button {
        min-height: 72px;
        padding: 15px 22px;
        font-size: 18px;
        border-radius: 18px;
    }

    .smart-order-actions button i {
        width: 28px;
        font-size: 24px;
    }

    .ai-order-section-title {
        min-height: 38px;
        margin-top: 26px;
        padding: 9px 15px;
        font-size: 15px;
    }

    .ai-similar-grid {
        gap: 14px;
    }

    .ai-similar-card {
        gap: 8px;
        padding: 16px;
        border-radius: 18px;
    }

    .ai-similar-card strong {
        font-size: 17px;
    }

    .ai-similar-card span,
    .ai-similar-card small,
    .ai-product-details,
    .ai-similar-card .smart-order-reason {
        font-size: 13px;
    }

    .ai-qty-options span {
        font-size: 12px;
    }

    .ai-qty-options button,
    .ai-custom-qty input,
    .ai-custom-qty button {
        min-height: 36px;
        font-size: 13px !important;
    }
}

.saved-order-inline {
    display: flex;
    justify-content: center;
    margin: -5px 0 14px;
}

.saved-order-inline__button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d5e2f2;
    border-radius: 999px;
    background: #f2f7ff;
    color: #0f4c81;
    box-shadow: 0 8px 16px rgba(15, 76, 129, 0.1);
    font-size: 12px;
    font-weight: 900;
}

.saved-order-inline__button i {
    margin-right: 6px;
}

.order-entry-customer-marquee {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.cart-toast {
    position: fixed;
    left: 50%;
    top: 104px;
    z-index: 1200;
    transform: translateX(-50%) translateY(-18px);
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(18, 33, 51, 0.94);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.order-actions-disabled {
    opacity: 0.55;
    pointer-events: none;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    35% { transform: scale(1.14); }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

@keyframes rowFlash {
    0% { box-shadow: 0 0 0 rgba(30, 188, 68, 0); }
    35% { box-shadow: 0 0 0 4px rgba(30, 188, 68, 0.18); }
    100% { box-shadow: 0 10px 22px rgba(15, 76, 129, 0.06); }
}

@keyframes syncShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes syncPulse {
    0% { opacity: 0.32; }
    50% { opacity: 0.9; }
    100% { opacity: 0.32; }
}

.rt_wrap,
.cart-list,
.order-details {
    display: grid;
    gap: 12px;
}

.rt_head {
    display: none;
}

.rt_body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 16px rgba(15, 76, 129, 0.06);
}

.rt_body > div {
    margin-bottom: 8px;
}

.rt_body > div:last-child {
    margin-bottom: 0;
}

.rt_moble_prev {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.rt_moble_content {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.plus_minus {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #eef3fb;
    color: var(--primary);
}

.place_order_button {
    margin-bottom: 12px;
}

.place_order_button button {
    width: 100%;
}

.vo_header {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.06);
    cursor: pointer;
}

.vo_name {
    font-size: 18px;
    font-weight: 700;
}

.vo_address,
.vo_gstn,
.vo_date {
    color: var(--muted);
    font-size: 13px;
}

.vo_status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3fb;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.ledger_wrap {
    padding: 20px;
}

.ledger_table_wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.ledger_table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.ledger_table th,
.ledger_table td {
    padding: 12px;
    border: 1px solid var(--line);
    font-size: 13px;
}

.ledger_table th {
    background: #f2f6fc;
    color: var(--text);
}

.ledger_status {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    margin-top: 12px;
}

.ledger_status.info {
    background: #e9f3ff;
    color: var(--primary);
}

.ledger_status.warn {
    background: #fff4d6;
    color: #8c6300;
}

.ledger_status.error {
    background: #ffe4e7;
    color: #9f2433;
}

.fixed-page-footer,
.its-page-footer {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: 100%;
    transform: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.its-page-footer {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.sticky_footer {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 10px 8px calc(var(--safe-bottom) + 10px);
    background: rgba(12, 28, 49, 0.88);
    backdrop-filter: blur(18px);
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(12, 28, 49, 0.18);
}

.sticky_footer_btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 62px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: center;
    font-weight: 600;
    line-height: 1.15;
}

.sticky_footer_btn a:hover,
.sticky_footer_btn a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sticky_footer_btn a i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.82);
    display: block;
    margin: 0 auto;
}

.sticky_footer_btn a span {
    display: block;
    font-size: 11px;
    line-height: 1.1;
}

.sticky_footer_btn a:hover i,
.sticky_footer_btn a.active i {
    color: #9de6db;
}

@media all and (display-mode: standalone) {
    body.off_bg,
    body {
        padding-top: calc(var(--header-height) + var(--safe-top) + 26px);
        padding-bottom: calc(var(--footer-height) + var(--safe-bottom) + 34px);
    }

    .main_header {
        top: calc(var(--safe-top) + 18px);
    }

    #slide-out.side-nav,
    .side-nav {
        top: calc(var(--header-height) + var(--safe-top) + 26px) !important;
        height: calc(100% - (var(--header-height) + var(--safe-top) + 34px)) !important;
        max-height: calc(100% - (var(--header-height) + var(--safe-top) + 34px)) !important;
    }

    .fixed-page-footer,
    .its-page-footer {
        bottom: 0;
    }
}

@supports (padding: max(0px)) {
    body.off_bg,
    body {
        padding-top: max(calc(var(--header-height) + 12px), calc(var(--header-height) + var(--safe-top) + 12px));
        padding-bottom: max(calc(var(--footer-height) + 28px), calc(var(--footer-height) + var(--safe-bottom) + 28px));
    }

    @media all and (display-mode: standalone) {
        body.off_bg,
        body {
            padding-top: max(calc(var(--header-height) + 26px), calc(var(--header-height) + var(--safe-top) + 26px));
            padding-bottom: max(calc(var(--footer-height) + 34px), calc(var(--footer-height) + var(--safe-bottom) + 34px));
        }
    }
}

.text-muted {
    color: var(--muted);
}

.hidden-xs {
    display: none !important;
}

.visible-xs {
    display: block !important;
}

@media (max-width: 767px) {
    .smart-order-actions {
        gap: 7px;
        margin-bottom: 12px;
    }

    .smart-order-actions button {
        min-height: 58px;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 13px;
        font-size: 13px;
    }

    .smart-order-actions button i {
        font-size: 17px;
    }

    .customer-search-controls {
        gap: 7px;
    }

    .customer-search-controls .search-input {
        height: 46px;
        padding: 0 12px;
        font-size: 16px;
    }

    .voice-customer-button {
        width: 46px;
        min-width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 14px;
    }

    .voice-customer-button span {
        display: none;
    }

    .voice-customer-button i {
        font-size: 18px;
    }

    .voice-customer-status {
        min-height: 0;
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.25;
    }

    .product-browser {
        gap: 8px;
    }

    .product-browser__toolbar {
        gap: 7px;
    }

    .product-browser__header .section-title {
        margin: 0;
        font-size: 20px;
    }

    .product-browser__header p {
        font-size: 11px;
    }

    .product-voice-search-controls {
        gap: 7px;
    }

    .product-voice-search-controls .product-search-input {
        height: 54px;
        padding: 0 12px;
        font-size: 17px !important;
    }

    .product-voice-button {
        width: 46px;
        min-width: 46px;
        height: 54px;
        padding: 0;
        border-radius: 14px;
    }

    .product-voice-button span {
        display: none;
    }

    .product-voice-button i {
        font-size: 18px;
    }

    .product-voice-status {
        min-height: 0;
        font-size: 11px;
        line-height: 1.25;
    }

    .product-results {
        max-height: calc(100dvh - 250px);
    }

    .order-entry-hero {
        min-height: 0;
        margin-bottom: 10px;
        padding: 9px 12px 10px;
        border-radius: 18px;
    }

    .order-entry-hero::after {
        width: 120px;
        height: 120px;
        inset: auto -35px -70px auto;
    }

    .order-entry-hero .page-hero__eyebrow {
        padding: 4px 8px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .order-entry-customer-marquee {
        width: 100%;
        margin-top: 5px;
        overflow: hidden;
        white-space: nowrap;
        font-size: 16px;
        line-height: 1.3;
    }

    .order-entry-customer-marquee span {
        display: inline-block;
        min-width: 340px;
        animation: customerNameMarquee 8s ease-in-out infinite alternate;
    }

    .order-entry-hero > p {
        display: none;
    }

    .order-entry-hero .sync-status {
        position: relative;
        z-index: 1;
        margin-top: 5px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 10px;
    }

    .order-entry-hero .sync-progress {
        margin-top: 7px;
    }

    .order-entry-hero .sync-progress__track {
        height: 8px;
    }

    .order-entry-hero .sync-progress__meta {
        margin-top: 4px;
        font-size: 10px;
    }

    .product_search1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .product_search1 .search_btn,
    .product_search1 button[type="button"] {
        width: 100%;
    }

    .sticky_footer {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding: 8px 4px calc(var(--safe-bottom) + 8px);
    }

    .sticky_footer_btn a {
        min-height: 58px;
        font-size: 10px;
        gap: 5px;
    }

    .sticky_footer_btn a i {
        font-size: 21px;
    }

    .sticky_footer_btn a span {
        font-size: 10px;
    }

    .app-customer-chip {
        display: none;
    }

    .product-row {
        grid-template-columns: minmax(0, 1fr) 140px;
    }

    .product-row__name {
        font-size: 19px;
        padding: 14px 15px;
    }

    .product-row__controls {
        border-left: 1px solid #d8e3f2;
        border-top: none;
        padding: 12px 10px;
    }

    .product-row__qty-picker {
        gap: 6px;
    }

    .qty-picker-btn {
        width: 27px;
        height: 27px;
        font-size: 24px;
    }

    .qty-field {
        width: 68px;
        height: 48px;
        font-size: 20px;
    }

    .ok-btn {
        min-width: 98px;
        height: 42px;
        font-size: 14px;
    }

    .product-row__body {
        padding: 13px 15px 15px;
    }

    .product-row__company {
        font-size: 13px;
    }

    .product-row__history {
        gap: 6px 10px;
        margin-bottom: 9px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .product-row__meta {
        font-size: 14px;
    }

    .product-row__submeta {
        font-size: 13px;
    }

    .cart-item-card__top,
    .cart-summary-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-card__total,
    .cart-summary-card__value {
        text-align: left;
    }

    .cart-item-card {
        grid-template-columns: minmax(0, 1fr) 128px;
    }

    .cart-item-card__name {
        font-size: 17px;
    }

    .cart-item-card__meta {
        font-size: 14px;
    }
}

@keyframes customerNameMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-78px); }
}


@media (min-width: 768px) {
    body.off_bg,
    body {
        padding-top: calc(var(--header-height) + 18px);
    }

    .hidden-xs {
        display: block !important;
    }

    .visible-xs {
        display: none !important;
    }

    .customer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .orders-grid {
        grid-template-columns: 1fr;
    }

    .rt_head {
        display: grid;
        grid-template-columns: 1.1fr 2fr 1fr 1.2fr 1fr;
        gap: 10px;
        padding: 0 14px 8px;
        color: var(--muted);
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 992px) {
    .ai-order-panel {
        padding: 34px;
    }

    .ai-order-panel h3 {
        font-size: 36px;
        line-height: 1.12;
    }

    .ai-order-panel > p {
        max-width: 760px;
        font-size: 16px;
    }

    .smart-order-actions {
        gap: 18px;
        margin: 28px 0 30px;
    }

    .smart-order-actions button {
        min-height: 84px;
        padding: 18px 26px;
        font-size: 20px;
    }

    .smart-order-actions button i {
        width: 34px;
        font-size: 28px;
    }

    .ai-order-section-title {
        min-height: 46px;
        margin-top: 30px;
        padding: 12px 18px;
        font-size: 17px;
    }

    .ai-similar-grid {
        gap: 18px;
    }

    .ai-similar-card {
        padding: 20px;
        border-radius: 20px;
    }

    .ai-similar-card strong {
        font-size: 20px;
        line-height: 1.25;
    }

    .ai-similar-card span,
    .ai-similar-card small,
    .ai-product-details,
    .ai-similar-card .smart-order-reason {
        font-size: 15px;
        line-height: 1.5;
    }

    .ai-qty-options span {
        font-size: 14px;
    }

    .ai-qty-options button,
    .ai-custom-qty input,
    .ai-custom-qty button {
        min-height: 42px;
        font-size: 15px !important;
    }

    .customer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-shell {
        width: min(1240px, calc(100% - 36px));
    }

    .main_header,
    .fixed-page-footer,
    .its-page-footer {
        width: min(1240px, calc(100% - 36px));
    }
}
