html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
body {
    background: #f4f6f9;
}

.velora-topbar {
    background: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb;
    padding-left: 280px;
}

.brand-title {
    font-weight: 800;
    color: #111827;
}

.top-search {
    width: 260px;
    margin-right: 16px;
}

.velora-sidebar {
    background: #111827 !important;
    color: white;
    width: 260px !important;
}

.sidebar-brand {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #111827;
}

.sidebar-brand span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

.velora-sidebar .mud-nav-link {
    color: #d1d5db !important;
    margin: 4px 12px;
    border-radius: 10px;
}

.velora-sidebar .mud-nav-link.active {
    background: rgba(245, 158, 11, .18) !important;
    color: #fbbf24 !important;
}

.velora-content {
    padding: 96px 32px 32px 292px;
}
.dashboard-container {
    max-width: 1500px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title {
    font-weight: 800;
    color: #111827;
}

.page-subtitle,
.muted {
    color: #6b7280;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    border: 1px solid #eef2f7;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.kpi-icon.amber { background: #fef3c7; color: #92400e; }
.kpi-icon.blue { background: #dbeafe; color: #1d4ed8; }
.kpi-icon.green { background: #dcfce7; color: #166534; }
.kpi-icon.purple { background: #ede9fe; color: #6d28d9; }

.kpi-label {
    color: #6b7280;
    font-size: 13px;
}

.kpi-value {
    color: #111827;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
}

.kpi-note {
    color: #9ca3af;
    font-size: 12px;
}

.panel-card {
    padding: 22px;
    border-radius: 18px;
    min-height: 260px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    border: 1px solid #eef2f7;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fake-chart {
    height: 190px;
    display: flex;
    align-items: end;
    gap: 14px;
    margin-top: 28px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.fake-chart div {
    flex: 1;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, #4f46e5, #f59e0b);
}

.stock-row,
.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.stock-row strong,
.stock-row span,
.task-row span {
    display: block;
}

.stock-row span {
    color: #6b7280;
    font-size: 13px;
}

.task-row strong {
    color: #f59e0b;
}

/* ===== Velora Mobile Responsive v1 ===== */
.mobile-only { display: none; }

@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden;
    }

    .dashboard-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }

    .dashboard-header {
        gap: 10px;
        margin-bottom: 14px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-header > div:first-child {
        min-width: 0;
        flex: 1 1 180px;
    }

    .dashboard-header .mud-button-root {
        flex: 0 0 auto;
    }

    .page-title,
    .dashboard-header .mud-typography-h4 {
        font-size: 1.55rem !important;
        line-height: 1.15 !important;
    }

    .page-subtitle {
        font-size: .78rem !important;
    }

    .panel-card {
        padding: 12px !important;
        border-radius: 12px !important;
        min-height: 0 !important;
    }

    .kpi-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .kpi-value {
        font-size: 1.3rem !important;
    }

    .mud-grid {
        margin-left: -6px !important;
        margin-right: -6px !important;
        width: calc(100% + 12px) !important;
    }

    .mud-grid-item {
        padding-left: 6px !important;
        padding-right: 6px !important;
        padding-top: 8px !important;
    }

    .mud-paper {
        max-width: 100%;
    }

    .mud-input-control,
    .mud-input-root,
    .mud-select,
    .mud-picker {
        max-width: 100% !important;
    }

    .mud-stack-row {
        max-width: 100%;
        flex-wrap: wrap !important;
    }

    .mobile-scroll-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .mobile-scroll-table .mud-table-container {
        overflow-x: auto !important;
    }

    .mobile-scroll-table table {
        min-width: 760px;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-full-button {
        width: 100% !important;
    }

    .mobile-action-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mud-dialog {
        max-width: calc(100vw - 20px) !important;
        margin: 10px !important;
    }
}
\n\n/* ===== Velora Mobile v2.2 / DIA-style real mobile cards ===== */
.velora-mobile-only { display:none; }
@media (max-width: 767.98px) {
  .velora-desktop-only { display:none !important; }
  .velora-mobile-only { display:block !important; }
  .dashboard-container { padding:0 !important; }
  .dashboard-header { margin:0 0 12px !important; }
  .page-title { font-size:1.35rem !important; font-weight:800 !important; }
  .page-subtitle { display:none !important; }
  .panel-card { padding:10px !important; box-shadow:none !important; background:transparent !important; }
  .mobile-card-list { display:flex !important; flex-direction:column; gap:9px; }
  .mobile-entity-card { border:1px solid #e5e7eb; border-radius:12px; padding:12px; background:#fff; }
  .mobile-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
  .mobile-card-title { font-weight:800 !important; line-height:1.2 !important; }
  .mobile-card-code { color:#64748b; }
  .mobile-card-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin:9px 0; color:#64748b; font-size:.78rem; }
  .mobile-card-meta span { display:inline-flex; align-items:center; gap:3px; }
  .mobile-balance-row { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eef2f7; padding-top:9px; margin-top:7px; }
  .mobile-balance-row strong { font-size:1.08rem; }
  .balance-positive { color:#00c853; } .balance-negative { color:#f44336; }
  .mobile-card-actions { display:flex; align-items:center; gap:5px; margin-top:10px; padding-top:8px; border-top:1px solid #eef2f7; }
  .mobile-card-actions .mud-button-root { min-height:34px; }
  .mobile-party-title { font-weight:700 !important; margin-top:9px !important; }
  .mobile-order-info { display:flex; justify-content:space-between; gap:8px; margin-top:6px; color:#64748b; font-size:.78rem; }
  .mobile-order-total strong { color:#ff8f00; font-size:1.18rem; }
  /* Summary KPI cards: 2 columns instead of huge single-column blocks */
  .dashboard-container > .mud-grid.mb-4 > .mud-grid-item { flex:0 0 50% !important; max-width:50% !important; }
  .dashboard-container > .mud-grid.mb-4 .mud-paper.pa-4 { padding:10px !important; min-height:76px; }
  .dashboard-container > .mud-grid.mb-4 .mud-typography-h5 { font-size:1.05rem !important; }
  /* Form screens: less vertical waste */
  .panel-card .mud-typography-h5 { font-size:1.25rem !important; }
  .mud-input-control { margin-top:2px !important; }
  .mud-input-slot { font-size:.95rem !important; }
  /* Order detail header actions stack cleanly */
  .dashboard-header .mud-stack-row { width:100%; display:grid !important; grid-template-columns:1fr 1fr; gap:7px !important; }
  .dashboard-header .mud-stack-row .mud-button-root { width:100%; margin:0 !important; font-size:.72rem !important; }
}


/* Desktop/mobile render separation */
.velora-mobile-only { display: none !important; }

@media (max-width: 767.98px) {
    .velora-desktop-only { display: none !important; }
    .velora-mobile-only { display: block !important; }

    .mobile-card-list {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mobile-entity-card {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
}


/* ===== Velora Mobile v3 ===== */
.velora-mobile-only { display: none !important; }

@media (max-width: 767.98px) {
    html, body, #app {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .mud-layout,
    .mud-main-content,
    main.mud-main-content,
    .velora-content,
    .velora-content-dynamic {
        margin-left: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    .velora-topbar,
    .velora-topbar-dynamic {
        left: 0 !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mud-drawer.velora-sidebar-mini,
    .velora-sidebar-mini {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        display: none !important;
    }

    .velora-desktop-only { display: none !important; }
    .velora-mobile-only { display: block !important; }

    .mobile-home,
    .mobile-customer-detail,
    .mobile-order-wizard {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mobile-page-heading,
    .mobile-detail-head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 2px 0 14px;
    }

    .mobile-page-heading h1,
    .mobile-detail-head h1 {
        margin: 0;
        font-size: 1.35rem;
        line-height: 1.15;
        color: #111827;
        font-weight: 800;
    }

    .mobile-page-heading span,
    .mobile-detail-head span {
        color: #64748b;
        font-size: .78rem;
    }

    .mobile-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-quick-actions .mud-button-root {
        min-height: 44px;
    }

    .mobile-home-kpis {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-mini-kpi {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 10px;
    }

    .mobile-mini-kpi span {
        display: block;
        color: #64748b;
        font-size: .68rem;
        margin-bottom: 4px;
    }

    .mobile-mini-kpi strong {
        color: #111827;
        font-size: 1rem;
    }

    .mobile-module-group {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .mobile-module-title {
        padding: 9px 12px 6px;
        color: #64748b;
        font-size: .67rem;
        font-weight: 800;
        letter-spacing: .06em;
        background: #f8fafc;
    }

    .mobile-module-row {
        width: 100%;
        border: 0;
        border-top: 1px solid #eef2f7;
        background: #fff;
        color: #111827;
        display: grid;
        grid-template-columns: 34px 1fr 24px;
        align-items: center;
        text-align: left;
        gap: 6px;
        padding: 10px 12px;
        font: inherit;
    }

    .mobile-module-row .module-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #eef2ff;
        color: #4f46e5;
    }

    .mobile-module-row > span:nth-child(2) {
        font-weight: 650;
        font-size: .9rem;
    }

    .mobile-detail-tabs .mud-tabs-tabbar {
        background: transparent !important;
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-detail-tabs .mud-tab {
        min-width: auto !important;
        padding: 8px 10px !important;
        font-size: .75rem !important;
    }

    .mobile-detail-tabs .mud-tabs-panels {
        padding: 12px 0 0 !important;
    }

    .mobile-info-card,
    .mobile-wizard-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
    }

    .mobile-info-row {
        display: grid;
        grid-template-columns: 105px 1fr;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .mobile-info-row span {
        color: #64748b;
        font-size: .74rem;
    }

    .mobile-info-row strong {
        text-align: right;
        font-size: .82rem;
        word-break: break-word;
    }

    .mobile-info-row.full {
        grid-template-columns: 1fr;
    }

    .mobile-info-row.full strong {
        text-align: left;
    }

    .mobile-money { color: #ef4444; }

    .mobile-primary-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .mobile-transaction-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }

    .mobile-transaction-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .mobile-transaction-card div {
        display: flex;
        flex-direction: column;
    }

    .mobile-transaction-card span {
        color: #64748b;
        font-size: .72rem;
    }

    .mobile-transaction-card .positive { color: #16a34a; }

    .mobile-empty-hint {
        color: #64748b;
        font-size: .8rem;
        padding: 12px 0;
    }

    .mobile-stepper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        margin-bottom: 10px;
    }

    .mobile-stepper > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #94a3b8;
        font-size: .66rem;
        position: relative;
    }

    .mobile-stepper b {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: #e2e8f0;
        color: #64748b;
    }

    .mobile-stepper .active,
    .mobile-stepper .done {
        color: #2563eb;
    }

    .mobile-stepper .active b,
    .mobile-stepper .done b {
        background: #2563eb;
        color: white;
    }

    .mobile-wizard-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-product-preview,
    .mobile-cart-summary {
        background: #f8fafc;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        font-size: .78rem;
    }

    .mobile-wizard-nav {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-top: 4px;
    }

    .mobile-order-lines {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-line-card {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px;
    }

    .mobile-line-head {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
    }

    .mobile-line-head div {
        display: flex;
        flex-direction: column;
    }

    .mobile-line-head span {
        color: #64748b;
        font-size: .7rem;
    }

    .mobile-line-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .mobile-line-total {
        text-align: right;
        font-weight: 800;
        color: #f59e0b;
        margin-top: 6px;
    }

    .mobile-order-summary > div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 0;
        border-bottom: 1px solid #eef2f7;
    }

    .mobile-order-summary span {
        color: #64748b;
    }

    .mobile-order-summary .grand {
        font-size: 1.05rem;
        font-weight: 800;
    }

    .mobile-order-summary .grand strong {
        color: #f59e0b;
    }

    .mobile-status-filters {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
        margin-bottom: 8px !important;
    }

    .mobile-status-filters .mud-button-root {
        flex: 0 0 auto;
        min-height: 34px;
        font-size: .72rem;
        padding-left: 9px;
        padding-right: 9px;
    }

    .mobile-card-list {
        gap: 7px !important;
    }

    .mobile-entity-card {
        border-radius: 10px !important;
        padding: 10px !important;
        box-shadow: 0 2px 10px rgba(15,23,42,.04);
    }

    .mobile-card-title {
        font-size: .9rem !important;
    }

    .mobile-party-title {
        font-size: .86rem !important;
    }

    .mobile-card-actions {
        justify-content: space-between;
    }

    .panel-card {
        padding: 8px !important;
    }

    .dashboard-header {
        margin-bottom: 10px !important;
    }
}


/* ===== Velora Mobile v3.1 - kill MudDrawer reserved left gutter ===== */
@media (max-width: 767.98px) {
    body .mud-layout,
    body .mud-main-content,
    body main.mud-main-content,
    body .velora-content,
    body .velora-content-dynamic {
        margin-left: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body .mud-appbar,
    body .velora-topbar,
    body .velora-topbar-dynamic {
        margin-left: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        transform: none !important;
    }

    body .mud-drawer.mud-drawer--mini,
    body .velora-sidebar-mini {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        display: none !important;
    }

    .dashboard-container,
    .mobile-home,
    .mobile-customer-detail,
    .mobile-order-wizard,
    .mobile-card-list {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* Velora Mobile v3.2 - no reserved drawer gutter */
@media (max-width: 767.98px) {
    .velora-content.drawer-open-state,
    .velora-content.drawer-mini-state,
    .velora-topbar.drawer-open-state,
    .velora-topbar.drawer-mini-state {
        margin-left: 0 !important;
        left: 0 !important;
    }

    .velora-content.drawer-open-state,
    .velora-content.drawer-mini-state {
        padding-left: 10px !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .velora-topbar.drawer-open-state,
    .velora-topbar.drawer-mini-state {
        padding-left: 8px !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}


/* ===== Velora Mobile v3.3 - New Order ===== */
@media (max-width: 767.98px) {
    .mobile-order-v33 {
        padding-bottom: 22px;
    }

    .mobile-order-top {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .mobile-back-btn {
        margin-left: -8px;
    }

    .mobile-order-title-wrap h1 {
        margin: 0;
        font-size: 1.2rem;
        line-height: 1.15;
        color: #111827;
        font-weight: 800;
    }

    .mobile-order-title-wrap span {
        display: block;
        color: #64748b;
        font-size: .72rem;
        margin-top: 2px;
        max-width: 240px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-stepper-v33 {
        margin: 0 0 12px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 9px 6px;
    }

    .mobile-stepper-v33 > button {
        appearance: none;
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #94a3b8;
        font: inherit;
        padding: 0;
    }

    .mobile-stepper-v33 > button b {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: #f1f5f9;
        color: #64748b;
        font-size: .75rem;
    }

    .mobile-stepper-v33 > button span {
        font-size: .65rem;
        font-weight: 700;
    }

    .mobile-stepper-v33 > button.active,
    .mobile-stepper-v33 > button.done {
        color: #2563eb;
    }

    .mobile-stepper-v33 > button.active b,
    .mobile-stepper-v33 > button.done b {
        background: #2563eb;
        color: #fff;
    }

    .mobile-step-card {
        padding: 12px !important;
        gap: 10px !important;
        box-shadow: 0 5px 18px rgba(15,23,42,.05);
    }

    .mobile-section-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 2px;
    }

    .mobile-section-heading > div {
        display: flex;
        flex-direction: column;
    }

    .mobile-section-heading strong {
        font-size: 1rem;
        color: #111827;
    }

    .mobile-section-heading span {
        font-size: .7rem;
        color: #64748b;
    }

    .mobile-selected-customer,
    .mobile-summary-party {
        display: grid;
        grid-template-columns: 42px 1fr 28px;
        align-items: center;
        gap: 9px;
        background: #f8fafc;
        border: 1px solid #dbeafe;
        border-radius: 11px;
        padding: 10px;
    }

    .mobile-summary-party {
        grid-template-columns: 42px 1fr;
    }

    .mobile-avatar-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #e0e7ff;
        color: #4f46e5;
        font-weight: 800;
        font-size: .82rem;
    }

    .mobile-selected-customer > div:nth-child(2),
    .mobile-summary-party > div:nth-child(2) {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-selected-customer strong,
    .mobile-summary-party strong {
        color: #111827;
        font-size: .86rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-selected-customer span,
    .mobile-selected-customer small,
    .mobile-summary-party span {
        color: #64748b;
        font-size: .68rem;
    }

    .mobile-date-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mobile-primary-next,
    .mobile-add-cart {
        min-height: 44px;
        margin-top: 2px;
    }

    .mobile-product-select-card {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        background: #f8fafc;
        border-radius: 10px;
        padding: 10px;
    }

    .mobile-product-select-card > div:first-child {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-product-select-card strong {
        font-size: .82rem;
        color: #111827;
    }

    .mobile-product-select-card span {
        font-size: .68rem;
        color: #64748b;
    }

    .mobile-stock-badge {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        color: #64748b;
        font-size: .62rem;
    }

    .mobile-stock-badge strong {
        color: #16a34a;
        font-size: .76rem;
    }

    .mobile-mini-cart {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: 10px;
        padding: 9px 10px;
    }

    .mobile-mini-cart > div {
        display: flex;
        flex-direction: column;
    }

    .mobile-mini-cart > div:last-child {
        align-items: flex-end;
    }

    .mobile-mini-cart span {
        color: #9a3412;
        font-size: .65rem;
    }

    .mobile-mini-cart strong {
        color: #7c2d12;
        font-size: .82rem;
    }

    .mobile-cart-grand {
        color: #f59e0b;
        font-size: .95rem !important;
    }

    .mobile-line-card-v33 {
        background: #fff;
        padding: 10px;
    }

    .mobile-line-controls {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        align-items: center;
        margin: 8px 0;
    }

    .mobile-qty-control {
        display: grid;
        grid-template-columns: 34px 42px 34px;
        align-items: center;
        border: 1px solid #dbe2ea;
        border-radius: 9px;
        overflow: hidden;
        height: 36px;
    }

    .mobile-qty-control button {
        border: 0;
        background: #f8fafc;
        height: 100%;
        color: #334155;
        font-size: 1.15rem;
    }

    .mobile-qty-control strong {
        text-align: center;
        font-size: .8rem;
    }

    .mobile-line-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .mobile-line-price span {
        color: #64748b;
        font-size: .62rem;
    }

    .mobile-line-price strong {
        font-size: .78rem;
    }

    .mobile-line-edit-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .mobile-line-total-row {
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #eef2f7;
        margin-top: 8px;
        padding-top: 8px;
    }

    .mobile-line-total-row span {
        color: #64748b;
        font-size: .7rem;
    }

    .mobile-line-total-row strong {
        color: #f59e0b;
        font-size: .86rem;
    }

    .mobile-order-summary-v33 {
        background: #f8fafc;
        border-radius: 10px;
        padding: 4px 10px;
    }

    .mobile-save-zone {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px;
        align-items: center;
    }

    .mobile-save-order {
        min-height: 44px;
    }
}


/* ===== Velora Mobile v3.4 - quick customer + header discount ===== */
@media (max-width: 767.98px) {
    .mobile-quick-customer {
        width: 100%;
        min-height: 40px;
        border-style: dashed !important;
    }

    .mobile-header-discount {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .mobile-discount-toggle {
        width: 100%;
    }

    .mobile-discount-toggle .mud-toggle-item {
        flex: 1 1 0;
        min-width: 0;
        font-size: .72rem;
    }

    .mobile-discount-result {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        background: #fff7ed;
        border-radius: 8px;
        padding: 8px 9px;
    }

    .mobile-discount-result span {
        color: #9a3412;
        font-size: .68rem;
    }

    .mobile-discount-result strong {
        color: #c2410c;
        font-size: .8rem;
    }
}


/* Velora Mobile v3.5 - invoice equivalent discount */
@media (max-width: 767.98px) {
    .mobile-discount-result > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-discount-result small {
        color: #64748b;
        font-size: .62rem;
    }
}


/* ===== Velora Mobile v3.8 - Customer Detail Field Flow ===== */
@media (max-width: 767.98px) {
    .mobile-customer-v38 {
        padding-bottom: 18px;
    }

    .mobile-customer-head-v38 {
        margin-bottom: 8px;
    }

    .mobile-customer-back {
        margin-left: -8px;
        flex: 0 0 auto;
    }

    .mobile-customer-title {
        min-width: 0;
    }

    .mobile-customer-title h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.15rem;
    }

    .mobile-customer-title span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: 2px;
    }

    .mobile-customer-balance-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 11px 12px;
        margin-bottom: 9px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
    }

    .mobile-customer-balance-card > div:first-child {
        display: flex;
        flex-direction: column;
    }

    .mobile-customer-balance-card span {
        color: #64748b;
        font-size: .66rem;
    }

    .mobile-customer-balance-card > div:first-child strong {
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .mobile-balance-mini {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .mobile-balance-mini b {
        color: #334155;
        font-size: .68rem;
    }

    .mobile-customer-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-bottom: 10px;
    }

    .mobile-customer-action {
        border: 1px solid #e5e7eb;
        border-radius: 11px;
        background: #fff;
        min-height: 64px;
        padding: 7px 3px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font: inherit;
        font-weight: 750;
        font-size: .68rem;
        color: #334155;
    }

    .mobile-customer-action .mud-icon-root {
        font-size: 1.35rem;
    }

    .mobile-customer-action.primary {
        color: #2563eb;
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .mobile-customer-action.success {
        color: #15803d;
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .mobile-customer-action.maps {
        color: #b45309;
        background: #fffbeb;
        border-color: #fde68a;
    }

    .mobile-customer-action.phone {
        color: #0f766e;
        background: #f0fdfa;
        border-color: #99f6e4;
    }

    .mobile-customer-action:disabled {
        opacity: .42;
    }

    .mobile-customer-tabs-v38 .mud-tab {
        flex: 1 1 0;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .mobile-customer-info-v38 {
        padding-top: 4px;
    }

    .mobile-location-state {
        display: grid;
        grid-template-columns: 30px 1fr;
        align-items: center;
        gap: 7px;
        margin-top: 9px;
        padding: 9px;
        background: #f8fafc;
        border-radius: 9px;
        color: #475569;
    }

    .mobile-location-state > div {
        display: flex;
        flex-direction: column;
    }

    .mobile-location-state strong {
        font-size: .72rem;
    }

    .mobile-location-state span {
        font-size: .62rem;
        color: #64748b;
    }

    .mobile-transaction-card-v38 {
        align-items: center;
    }

    .mobile-tx-amount {
        align-items: flex-end;
    }

    .mobile-tx-amount button {
        border: 0;
        background: transparent;
        padding: 2px 0 0;
        color: #2563eb;
        font-size: .65rem;
        font-weight: 700;
    }

    .mobile-order-shortcut {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 20px;
        align-items: center;
        gap: 7px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        padding: 10px;
        text-align: left;
        color: #111827;
        font: inherit;
    }

    .mobile-order-shortcut > div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-order-shortcut > div strong {
        font-size: .78rem;
    }

    .mobile-order-shortcut > div span {
        color: #64748b;
        font-size: .66rem;
    }

    .mobile-order-shortcut > strong {
        font-size: .76rem;
        white-space: nowrap;
    }

    .positive { color: #15803d !important; }
    .negative { color: #dc2626 !important; }
    .neutral { color: #334155 !important; }
}
