: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;
}

.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-browser__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.product-search-input {
    width: 100%;
    height: 52px;
    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-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 156px;
    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: 18px;
    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: 12px;
    color: #435266;
    font-weight: 700;
    text-transform: uppercase;
}

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

.product-row__submeta {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    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: 28px;
    height: 28px;
    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: 74px;
    height: 48px;
    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: 96px;
    height: 40px;
    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: 12px 14px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

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

.cart-item-card__code,
.cart-item-card__company,
.cart-item-card__meta,
.cart-summary-card__meta {
    color: var(--muted);
    font-size: 12px;
    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: 13px;
    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: 16px;
    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: 13px;
    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;
}

.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) {
    .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) 128px;
    }

    .product-row__name {
        font-size: 16px;
    }

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

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

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

    .qty-field {
        width: 64px;
        height: 44px;
        font-size: 20px;
    }

    .ok-btn {
        min-width: 86px;
        height: 38px;
        font-size: 13px;
    }

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

    .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) 118px;
    }
}

@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) {
    .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));
    }
}
