/* /Components/BusyIndicator.razor.rz.scp.css */
/* =========================================================
   MiConnect — Loading / Busy Indicator styles
   ---------------------------------------------------------
   Prototype:  imported in product-list-loading.html
   Blazor use: copy to Pages/ProductList.razor.css  (CSS Isolation)
               OR Components/Shared/BusyIndicator.razor.css
   All values reference CSS custom properties from theme.css.
   ========================================================= */

/* ── Shimmer keyframe ───────────────────────────────────── */
@keyframes shimmer-b-q5m10hgzgl {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* Base skeleton class — attach to any placeholder shape */
.skeleton[b-q5m10hgzgl] {
  background: linear-gradient(
    90deg,
    #dce3ee 0%,
    #e8eef6 30%,
    #f4f7fb 50%,
    #e8eef6 70%,
    #dce3ee 100%
  );
  background-size: 1200px 100%;
  animation: shimmer-b-q5m10hgzgl 1.6s infinite linear;
  border-radius: var(--radius-xs, 4px);
}

/* ── Skeleton product card ──────────────────────────────── */
.skeleton-card[b-q5m10hgzgl] {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-card,
    0 2px 24px rgba(21,101,192,0.10),
    0 1px 4px  rgba(21,101,192,0.06));
  border: 1px solid var(--border-light, #E5E9F2);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-height: 100px;
  pointer-events: none;
}

.skeleton-img-pane[b-q5m10hgzgl] {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(21, 101, 192, 0.03);
  border-right: 1px solid var(--border-light, #E5E9F2);
}

.skeleton-img[b-q5m10hgzgl]   { width: 72px; height: 72px; border-radius: var(--radius-sm, 8px); }
.skeleton-price[b-q5m10hgzgl] { width: 52px; height: 13px; }

.skeleton-info-pane[b-q5m10hgzgl] {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.skeleton-sku[b-q5m10hgzgl]    { width: 72px; height: 11px; }
.skeleton-name-l1[b-q5m10hgzgl] { width: 90%; height: 13px; }
.skeleton-name-l2[b-q5m10hgzgl] { width: 65%; height: 13px; }

.skeleton-actions[b-q5m10hgzgl] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}

.skeleton-badge[b-q5m10hgzgl] { width: 30px; height: 30px; border-radius: 8px; }
.skeleton-btn[b-q5m10hgzgl]   { width: 88px; height: 30px; border-radius: var(--radius-sm, 8px); }

/* ── Skeleton toolbar ───────────────────────────────────── */
.skeleton-toolbar[b-q5m10hgzgl] {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.skeleton-search[b-q5m10hgzgl] {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  min-width: 160px;
}

.skeleton-tabs[b-q5m10hgzgl] { display: flex; gap: 6px; flex-shrink: 0; }

.skeleton-tab[b-q5m10hgzgl] {
  height: 32px;
  border-radius: 999px;
}

/* ── Full-page loading overlay ──────────────────────────────
   Covers the entire viewport, blocks all interaction,
   centers the spinner.
   z-index 1050: above page content, below Bootstrap modals (1055+).
   ─────────────────────────────────────────────────────────── */
.loading-overlay[b-q5m10hgzgl] {
  position: fixed;
  inset: 0;
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1050;
  /* Blocks all mouse/touch events on underlying content */
  pointer-events: all;
  cursor: wait;
  animation: overlayFadeIn-b-q5m10hgzgl 0.2s ease forwards;
}

@keyframes overlayFadeIn-b-q5m10hgzgl {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Dual-ring spinner ──────────────────────────────────── */
.mc-spinner[b-q5m10hgzgl] {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

/* Outer ring — clockwise, primary blue */
.mc-spinner[b-q5m10hgzgl]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color:   #1565C0;
  border-right-color: rgba(21,101,192,0.20);
  animation: spinCW-b-q5m10hgzgl 0.9s cubic-bezier(0.4, 0.1, 0.6, 0.9) infinite;
}

/* Inner ring — counter-clockwise, accent magenta */
.mc-spinner[b-q5m10hgzgl]::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: #D81B7A;
  border-left-color:   rgba(216,27,122,0.20);
  animation: spinCCW-b-q5m10hgzgl 0.65s cubic-bezier(0.4, 0.1, 0.6, 0.9) infinite;
}

@keyframes spinCW-b-q5m10hgzgl  { to { transform: rotate(360deg);  } }
@keyframes spinCCW-b-q5m10hgzgl { to { transform: rotate(-360deg); } }

/* Orbital dot travelling along the outer ring */
.mc-spinner-dot[b-q5m10hgzgl] {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  border-radius: 50%;
  background: #1565C0;
  box-shadow: 0 0 8px 3px rgba(21, 101, 192, 0.45);
  transform-origin: 5px 32px;
  animation: orbitDot-b-q5m10hgzgl 0.9s linear infinite;
}

@keyframes orbitDot-b-q5m10hgzgl {
  from { transform: rotate(0deg)   translateY(-32px); }
  to   { transform: rotate(360deg) translateY(-32px); }
}

/* ── Loading message ────────────────────────────────────── */
.loading-message[b-q5m10hgzgl] {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #4B5563);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
  animation: textPulse-b-q5m10hgzgl 2s ease-in-out infinite;
}

@keyframes textPulse-b-q5m10hgzgl {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .skeleton[b-q5m10hgzgl],
  .mc-spinner[b-q5m10hgzgl]::before,
  .mc-spinner[b-q5m10hgzgl]::after,
  .mc-spinner-dot[b-q5m10hgzgl],
  .loading-overlay[b-q5m10hgzgl],
  .loading-message[b-q5m10hgzgl] {
    animation: none;
  }
  .skeleton[b-q5m10hgzgl] { background: #e3e9f3; }
  .mc-spinner[b-q5m10hgzgl]::before { border-top-color: #1565C0; border-right-color: transparent; }
  .mc-spinner[b-q5m10hgzgl]::after  { border-bottom-color: #D81B7A; border-left-color: transparent; }
}

/* ── Responsive skeleton ────────────────────────────────── */
@media (max-width: 1199.98px) {
  .skeleton-toolbar[b-q5m10hgzgl] { flex-direction: column; align-items: stretch; }
  .skeleton-search[b-q5m10hgzgl]  { min-width: 0; }
}

@media (max-width: 575.98px) {
  .skeleton-card[b-q5m10hgzgl] { min-height: 85px; }
}
/* /Components/ButtonLoader/ButtonLoader.razor.rz.scp.css */
/* =========================================================
   MiConnect — Button Loader Styles (component only)
   Scoped via Blazor CSS Isolation — do NOT prefix with component name manually.
   ========================================================= */

/* ── btn-add-cart base styles (owned here since button is rendered by this component) ── */

.btn-add-cart[b-adx08lhf8s] {
  height: 30px;
  padding: 0 var(--space-3);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-size: var(--font-size-xs);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.btn-add-cart:hover[b-adx08lhf8s] {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(216,27,122,0.05);
}

.btn-add-cart.in-cart[b-adx08lhf8s] {
  border-color: var(--color-success);
  color: var(--color-success);
  background: rgba(46,125,50,0.06);
}

/* ── Shared loading state ────────────────────────────────── */

.mc-btn--loading[b-adx08lhf8s] {
  pointer-events: none;
  opacity: 0.85;
  color: transparent !important;
  position: relative;
}

.mc-btn--loading[b-adx08lhf8s]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-accent);
  animation: mcBtnSpin-b-adx08lhf8s 0.7s linear infinite;
}

.btn-generate-order.mc-btn--loading[b-adx08lhf8s]::before,
.btn-pay.mc-btn--loading[b-adx08lhf8s]::before {
  width: 18px;
  height: 18px;
  border-top-color: var(--text-on-primary);
}

/* ── Success state ───────────────────────────────────────── */

.mc-btn--success[b-adx08lhf8s] {
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: var(--text-on-primary) !important;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast);
}

/* ── Error state ─────────────────────────────────────────── */

.mc-btn--error[b-adx08lhf8s] {
  background: var(--color-danger) !important;
  border-color: var(--color-danger) !important;
  color: var(--text-on-primary) !important;
  animation: mcBtnShake-b-adx08lhf8s 0.4s ease;
}

/* ── Keyframes ───────────────────────────────────────────── */

@keyframes mcBtnSpin-b-adx08lhf8s {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes mcBtnShake-b-adx08lhf8s {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-4px); }
  40%  { transform: translateX(4px); }
  60%  { transform: translateX(-3px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* ── Reduced-motion overrides ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mc-btn--loading[b-adx08lhf8s]::before {
    animation: none;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
  }

  .btn-generate-order.mc-btn--loading[b-adx08lhf8s]::before,
  .btn-pay.mc-btn--loading[b-adx08lhf8s]::before {
    border-top-color: var(--text-on-primary);
    border-right-color: var(--text-on-primary);
  }

  .mc-btn--error[b-adx08lhf8s] {
    animation: none;
  }
}
/* /Components/LoadingPageComponent.razor.rz.scp.css */
.lp-page[b-ecagt24uub] {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F5F7FA;
    z-index: 1000;
}

.lp-card[b-ecagt24uub] {
    background: #FFFFFF;
    max-width: 380px;
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(51, 118, 180, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.lp-brand[b-ecagt24uub] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.lp-logo[b-ecagt24uub] {
    width: auto;
    object-fit: contain;
}

.lp-brand-name[b-ecagt24uub] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3376B4;
    letter-spacing: 0.02em;
}

.lp-spinner[b-ecagt24uub] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #E5E7EB;
    border-top-color: #3376B4;
    animation: lp-spin-b-ecagt24uub 0.8s linear infinite;
}

@keyframes lp-spin-b-ecagt24uub {
    to { transform: rotate(360deg); }
}

.lp-status[b-ecagt24uub] {
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
    margin: 0;
}

@media (max-width: 480px) {
    .lp-card[b-ecagt24uub] {
        padding: 2rem 1.25rem;
        width: calc(100% - 2rem);
    }
}
/* /Components/NotFoundComponent.razor.rz.scp.css */
.nf-page[b-9cprg8cc0b] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    background: #F5F7FA;
}

.nf-card[b-9cprg8cc0b] {
    background: #FFFFFF;
    max-width: 440px;
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(51, 118, 180, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.nf-brand[b-9cprg8cc0b] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-self: center;
}

.nf-logo[b-9cprg8cc0b] {
    width: auto;
    object-fit: contain;
}

.nf-brand-name[b-9cprg8cc0b] {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3376B4;
    letter-spacing: 0.02em;
}

.nf-icon[b-9cprg8cc0b] {
    font-size: 3rem;
    color: #3376B4;
    line-height: 1;
}

.nf-code[b-9cprg8cc0b] {
    font-size: 6rem;
    font-weight: 900;
    color: #3376B4;
    line-height: 1;
}

.nf-title[b-9cprg8cc0b] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
}

.nf-desc[b-9cprg8cc0b] {
    font-size: 0.9rem;
    color: #6B7280;
    text-align: center;
    margin: 0;
}

.nf-btn[b-9cprg8cc0b] {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.55rem 1.5rem;
    background: #3376B4;
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.18s ease;
}

.nf-btn:hover[b-9cprg8cc0b] {
    background: #00539F;
}

/* Responsive: narrow viewports */
@media (max-width: 480px) {
    .nf-card[b-9cprg8cc0b] {
        padding: 2rem 1.25rem;
        width: calc(100% - 2rem);
    }
}
/* /Components/OTPCountdownTimer.razor.rz.scp.css */
.otpct-timer[b-0txck8vywb] {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.otpct-expired[b-0txck8vywb] {
    color: var(--rz-danger, #ef4444);
    font-weight: 600;
}
/* /Components/OTPVerificationDialog.razor.rz.scp.css */
/* ================================================================
   OTPVerificationDialog — scoped CSS (Blazor CSS isolation)
   All selectors prefixed otpv- to avoid leaking to other pages.
   ================================================================ */

.otpv-wrap[b-mudvv4a9x4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 4px 4px;
    text-align: center;
}

.otpv-message[b-mudvv4a9x4] {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.otpv-message strong[b-mudvv4a9x4] {
    color: #111;
}

.otpv-boxes[b-mudvv4a9x4] {
    display: flex;
    gap: 8px;
}

.otpv-box[b-mudvv4a9x4] {
    width: 40px;
    height: 46px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    outline: none;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otpv-box:focus[b-mudvv4a9x4] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.otpv-box-error[b-mudvv4a9x4] {
    border-color: var(--rz-danger, #ef4444);
}

.otpv-error[b-mudvv4a9x4] {
    margin: 0;
    font-size: 12.5px;
    color: var(--rz-danger, #ef4444);
}

.otpv-resend[b-mudvv4a9x4] {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.otpv-resend:disabled[b-mudvv4a9x4] {
    opacity: 0.5;
    cursor: not-allowed;
}

.otpv-footer[b-mudvv4a9x4] {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.otpv-btn-cancel[b-mudvv4a9x4],
.otpv-btn-submit[b-mudvv4a9x4] {
    flex: 1;
    height: 38px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, opacity 0.15s;
}

.otpv-btn-cancel[b-mudvv4a9x4] {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.otpv-btn-cancel:hover:not(:disabled)[b-mudvv4a9x4] {
    background: #e5e7eb;
}

.otpv-btn-submit[b-mudvv4a9x4] {
    background: #3b82f6;
    color: #fff;
}

.otpv-btn-submit:hover:not(:disabled)[b-mudvv4a9x4] {
    background: #2563eb;
}

.otpv-btn-cancel:disabled[b-mudvv4a9x4],
.otpv-btn-submit:disabled[b-mudvv4a9x4] {
    opacity: 0.55;
    cursor: not-allowed;
}
/* /Components/RemarksDialog.razor.rz.scp.css */
/* ================================================================
   RemarksDialog — scoped CSS
   ================================================================ */

.rz-textarea[b-fwie6rb49i] {
    border: 1px solid #d1d5db;
    border-radius: 5px;
}

.rz-textarea:focus[b-fwie6rb49i] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}

.clear_btn[b-fwie6rb49i] {
    height: 36px;
    padding: 0 28px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.clear_btn:hover[b-fwie6rb49i] {
    background: #e5e7eb;
}

.addBtn[b-fwie6rb49i] {
    height: 36px;
    padding: 0 32px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.addBtn:hover[b-fwie6rb49i] {
    background: #2563eb;
}
/* /Pages/Index.razor.rz.scp.css */
/* === Product List Page — Component Styles ===
   Extracted from main.css. Covers:
     - Page layout wrappers (.page-wrapper scaffolding lives in main.css)
     - MIID Bar
     - Tool Bar (toolbar, search, category tabs, subcategory bar)
     - Product List (grid, cards, list view, combo tooltip, qty stepper)
     - Cart (sidebar, items, footer, mobile bottom bar)
*/

/* =========================================================
   Product List Page — Root & Background
   ========================================================= */

/* =========================================================
   Page Layout — Cards & Main Row
   ========================================================= */

/* ── Page Cards ─────────────────────────────────────────── */
.page-card[b-aduyzm6nes] {
  /* background: rgba(255,255,255,0.95); */
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 0 var(--space-4);
  overflow: hidden;
  flex-shrink: 0;
}

.miid-card[b-aduyzm6nes] {
  margin-top: var(--space-3);
}

/* ── Main row (products column + cart side by side) ─────── */
.main-row[b-aduyzm6nes] {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  margin: var(--space-2) var(--space-4) var(--space-4);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.main-row .page-card[b-aduyzm6nes] {
  margin: 0;
}

/* Products column: toolbar + grid stacked vertically */
.products-col-wrap[b-aduyzm6nes] {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  overflow: hidden;
}

.toolbar-card[b-aduyzm6nes] {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
}

.products-card[b-aduyzm6nes] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: none !important;
}

.cart-card[b-aduyzm6nes] {
  background: rgba(255, 255, 255, 0.95);
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Main layout ────────────────────────────────────────── */
.product-list-main[b-aduyzm6nes] {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Products column ────────────────────────────────────── */
.products-col[b-aduyzm6nes] {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* =========================================================
   MIID Bar
   ========================================================= */

/* ── MIID Bar ───────────────────────────────────────────── */
.miid-bar[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.miid-chips-row[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1;
}

.miid-chip[b-aduyzm6nes] {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 8px 14px;
  width: 130px;
  height: 30px;
  background: #FFFFFF;
  border: 1px solid #8CD7FF;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #3FAAE3;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.miid-chip.active[b-aduyzm6nes] {
  background: #3FAAE3;
  border-color: #8CD7FF;
  color: #fff;
}

.miid-chip-remove[b-aduyzm6nes] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: bolder;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.miid-chip-remove:hover[b-aduyzm6nes] {
  opacity: 1;
}

/* 
.miid-chip .remove-icon-active       { display: none; } */
.miid-chip.active .remove-icon-default[b-aduyzm6nes] {
  display: none;
}

.miid-chip.active .remove-icon-active[b-aduyzm6nes] {
  display: block;
}

/* ── MIID input group (merged pill) ─────────────────────── */
.miid-input-group[b-aduyzm6nes] {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.miid-input-group:focus-within[b-aduyzm6nes] {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.10);
}

.miid-input[b-aduyzm6nes] {
  height: 30px;
  border: none;
  padding: 0 var(--space-4);
  font-size: var(--font-size-sm);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: transparent;
  width: calc(15ch + var(--space-6));
  outline: none;
}

.miid-input[b-aduyzm6nes]::placeholder {
  color: var(--text-muted);
}

.btn-miid-add[b-aduyzm6nes] {
  height: 30px;
  width: 34px;
  flex-shrink: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  border: none;
  border-left: 1.5px solid var(--border-input);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-miid-add:hover[b-aduyzm6nes] {
  background: var(--color-primary);
  color: #fff;
  border-left-color: var(--color-primary);
}

/* =========================================================
   Tool Bar
   ========================================================= */

/* ── Toolbar ────────────────────────────────────────────── */
.products-toolbar[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* reduced from space-4 (1rem) to space-3 (0.75rem) */
  padding: var(--space-3) var(--space-4);
  background: transparent;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

/* ── List / Card view toggle ────────────────────────────── */
.view-toggle[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.view-toggle-btn[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.view-toggle-btn:hover[b-aduyzm6nes] {
  opacity: 0.7;
}

.view-toggle-btn.active[b-aduyzm6nes] {
  opacity: 1;
}

/* ── Search bar ─────────────────────────────────────────── */
.product-search-bar[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  border: 0px solid var(--border-input);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-search-input);
  transition: border-color var(--transition-fast);
  flex: 1;
}

.product-search-bar:focus-within[b-aduyzm6nes] {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.10);
}

.product-search-input[b-aduyzm6nes] {
  flex: 1;
  height: 32px;
  border: none;
  outline: none;
  padding: 0 var(--space-3);
  font-size: var(--font-size-sm);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: transparent;
}

.product-search-input[b-aduyzm6nes]::placeholder {
  color: var(--text-muted);
}

.product-search-btn[b-aduyzm6nes] {
  background: none;
  border: none;
  padding: 0 var(--space-5);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  height: 32px;
  display: flex;
  align-items: center;
}

.product-search-btn:hover[b-aduyzm6nes] {
  color: var(--color-primary);
}

/* Category tabs */
.category-tabs[b-aduyzm6nes] {
  flex-wrap: nowrap;
  gap: var(--space-3);
  /* tightened from space-2 to reduce inter-pill gaps */
  flex-shrink: 0;
  /* prevent the tab row itself from being compressed by the search bar */
}

.category-tabs .nav-link[b-aduyzm6nes] {
  padding: var(--space-2) var(--space-6);
  /* reduced horizontal from space-4 (1rem) to space-3 (0.75rem) */
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  font-size: 0.8125rem;
  /* reduced from font-size-sm (0.875rem) to 0.8125rem for compact fit */
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  /* tightened inner gap (icon + text) from space-2 to space-1 */
  background: #fff;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

/* Per-category tints */
.category-tabs .nav-link[data-cat="all"][b-aduyzm6nes] {
  background: #fff;
  color: #000;
}

.category-tabs .nav-link[data-cat="g35"][b-aduyzm6nes] {
  background: #fff;
  border-color: var(--border-light);
  color: #000;
}

.category-tabs .nav-link[data-cat="g75"][b-aduyzm6nes] {
  background: #fff;
  border-color: var(--border-light);
  color: #000;
}

.category-tabs .nav-link:not(.active):hover[b-aduyzm6nes] {
  border-color: var(--color-primary);
  text-decoration: none;
}

.category-tabs .nav-link:hover[b-aduyzm6nes] {
  text-decoration: none;
}

.category-tabs .nav-link.active[b-aduyzm6nes] {
  border-radius: 50px;
  border: 1px solid #000;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16);
}

.category-tabs .nav-link[data-cat="combo"][b-aduyzm6nes] {
  background: #ffe7f2;
  border-color: #eda7ca;
  color: #000;
}

.category-tabs .nav-link[data-cat="g35"][b-aduyzm6nes] {
  background: #FFD2CF;
  border-color: #FFD2CF;
  color: #000;
}

.category-tabs .nav-link[data-cat="g75"][b-aduyzm6nes] {
  background: #B8E7FF;
  border-color: #B8E7FF;
  color: #000;
}

.category-tabs .nav-link[data-cat="g35"].active[b-aduyzm6nes],
.category-tabs .nav-link[data-cat="g75"].active[b-aduyzm6nes] {
  border-color: #000;
}

.category-tabs .nav-link[data-cat="combo"].active[b-aduyzm6nes] {
  background: #B12F68;
  border-color: #000;
  color: #fff;
}

/* "More ▼" toggle — plain text link, NOT a pill.
   The wrapping nav-item must not render as a pill, so we
   cancel Bootstrap nav-pills styles on the li itself. */
.category-tabs .nav-item:last-child[b-aduyzm6nes] {
  margin-left: var(--space-2);
  /* small visual gap after the last pill */
  display: flex;
  align-items: center;
}

.btn-more-toggle[b-aduyzm6nes] {
  background: none;
  border: none;
  padding: var(--space-1) var(--space-1);
  color: var(--text-muted);
  /* muted grey, not accent blue, matches reference */
  font-size: 0.8125rem;
  /* match pill font-size for visual rhythm */
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
  transition: color var(--transition-fast);
}

.btn-more-toggle:hover[b-aduyzm6nes] {
  color: var(--color-primary);
}

.more-chevron[b-aduyzm6nes] {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn-more-toggle[aria-expanded="true"] .more-chevron[b-aduyzm6nes] {
  transform: rotate(180deg);
}

/* Subcategory bar inside toolbar-card */
.toolbar-card .subcategory-bar[b-aduyzm6nes] {
  border-top: 1px solid var(--border-light);
  background: transparent;
}

.cat-combo-icon[b-aduyzm6nes] {
  width: 16px;
  /* reduced from 20px to match the slimmer pill */
  height: 16px;
}

/* ── Sub-category bar ───────────────────────────────────── */
.subcategory-bar[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  flex-shrink: 0;
}

.subcategory-label[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.subcategory-tabs[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.subcategory-pill[b-aduyzm6nes] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.subcategory-pill:hover[b-aduyzm6nes] {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(21, 101, 192, 0.05);
}

.subcategory-pill.active[b-aduyzm6nes] {
  border-color: var(--color-primary);
  background: rgba(21, 101, 192, 0.08);
  color: var(--color-primary);
}

.subcategory-icon[b-aduyzm6nes] {
  font-size: 0.9rem;
  width: 0.9rem;
}

/* =========================================================
   Product List
   ========================================================= */

/* ── Product Grid ────────────────────────────────────────── */
.product-grid[b-aduyzm6nes] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  /* padding: var(--space-5) var(--space-6); */
  overflow-y: auto;
  align-content: start;
  flex: 1;
}

/* Thin scrollbar for product grid */
.product-grid[b-aduyzm6nes]::-webkit-scrollbar {
  width: 5px;
}

.product-grid[b-aduyzm6nes]::-webkit-scrollbar-track {
  background: transparent;
}

.product-grid[b-aduyzm6nes]::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.product-card[b-aduyzm6nes] {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: 65% auto;
  grid-template-areas:
    "img info"
    "foot foot";
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-fast);
  min-height: 130px;
}

.product-card:hover[b-aduyzm6nes] {
  border-color: var(--color-primary);
}

.product-img-wrap[b-aduyzm6nes] {
  grid-area: img;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-3) var(--space-2);
  gap: var(--space-1);
}


.product-img-placeholder[b-aduyzm6nes] {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F4FA;
  border-radius: 10px;
  color: #B0BEC5;
  font-size: 2rem;
}

.product-img[b-aduyzm6nes] {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* "Included" ribbon for items in cart — overlaid on the image */
.product-included-badge[b-aduyzm6nes] {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-success);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px 3px 6px;
  border-bottom-right-radius: var(--radius-sm);
  text-transform: uppercase;
}

.product-info[b-aduyzm6nes] {
  grid-area: info;
  padding: var(--space-3) var(--space-3) var(--space-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  justify-content: center;
}

.product-sku[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name[b-aduyzm6nes] {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-foot[b-aduyzm6nes] {
  grid-area: foot;
  padding: 0 var(--space-4) var(--space-3) var(--space-4);
  /* border-top: 1px solid var(--border-light); */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-price-row[b-aduyzm6nes] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-price-amounts[b-aduyzm6nes] {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-1);
}

.product-rsp-label[b-aduyzm6nes] {
  font-size: 0.6rem;
  font-weight: 700;
  color: #7A4000;
  background: #FFE4C5;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: block;
}

.product-rsp-value[b-aduyzm6nes] {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #E3378C;
  white-space: nowrap;
}

.product-mrp-value[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}


.product-card-actions[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-combo-badge[b-aduyzm6nes] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 6px 10px;
  background: #B12F68;
  border-radius: 10px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-combo-badge img[b-aduyzm6nes] {
  width: 19px;
  height: 16px;
  display: block;
}

/* btn-add-cart base styles moved to ButtonLoader.razor.css (button rendered by that component) */

/* ── List view ──────────────────────────────────────────────
   Toggled by adding .product-grid--list to #productGrid
   ─────────────────────────────────────────────────────────── */
.product-grid--list[b-aduyzm6nes] {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

/* ── List view: 2-column grid row (info + foot) ─────────────
   The image column is dropped entirely — the image is hidden in list view
   and no .product-price element exists in the markup to fill it, so a
   dedicated middle column was just dead space crushing the info column. */
.product-grid--list .product-card[b-aduyzm6nes] {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  grid-template-areas: "info foot";
  align-items: center;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--border-light);
  min-height: 56px;
  flex: 0 0 auto;
  transform: none !important;
}

.product-grid--list .product-card:first-child[b-aduyzm6nes] {
  border-top: 1px solid var(--border-light);
}

.product-grid--list .product-card:hover[b-aduyzm6nes] {
  border-color: var(--border-light);
}

/* Info: sku + name stacked, takes remaining width */
.product-grid--list .product-info[b-aduyzm6nes] {
  grid-area: info;
  padding: 10px 16px;
  gap: 2px;
}

.product-grid--list .product-name[b-aduyzm6nes] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  font-weight: 700;
}

/* Image is not shown in list view — no visible content to lay out */
.product-grid--list .product-img-wrap[b-aduyzm6nes] {
  display: none;
}

/* Actions column */
.product-grid--list .product-card-foot[b-aduyzm6nes] {
  grid-area: foot;
  padding: 0 16px;
}

.product-grid--list[b-aduyzm6nes]  .btn-add-cart {
  white-space: nowrap;
}

/* ── Phones: 3 stacked rows per product ──
   1) ISCode · Type   2) name (2 lines)   3) RSP badge + prices | Add to Cart */
@media (max-width: 575.98px) {
  .product-grid--list .product-card[b-aduyzm6nes] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "info" "foot";
    align-items: stretch;
    padding: 8px 0;
    min-height: 88px;
  }

  .product-grid--list .product-info[b-aduyzm6nes] {
    padding: 0 12px 4px;
    gap: 2px;
  }

  .product-grid--list .product-name[b-aduyzm6nes] {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: clip;
    line-height: 1.3;
  }

  .product-grid--list .product-card-foot[b-aduyzm6nes] {
    padding: 0 12px;
    gap: var(--space-2);
    justify-content: space-between;
  }

  .product-grid--list .product-price-row[b-aduyzm6nes] {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .product-grid--list .product-mrp-value[b-aduyzm6nes] {
    display: inline;
  }

  .product-grid--list[b-aduyzm6nes]  .btn-add-cart {
    height: 28px;
    padding: 0 var(--space-3);
    font-size: 0.75rem;
  }
}

/* Combo tooltip */
.combo-tooltip[b-aduyzm6nes] {
  position: fixed;
  z-index: 1050;
  width: 313px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 5px #00000026;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.combo-tooltip.visible[b-aduyzm6nes] {
  display: flex;
}

.combo-tooltip-title[b-aduyzm6nes] {
  font-size: 12px;
  font-weight: 700;
  color: #030712;
  line-height: normal;
}

.combo-tooltip-items[b-aduyzm6nes] {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--font-size-sm);
}

.combo-tooltip-item[b-aduyzm6nes] {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.combo-tooltip-qty[b-aduyzm6nes] {
  font-size: 14px;
  font-weight: 700;
  color: #030712;
  white-space: nowrap;
  min-width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.combo-tooltip-desc[b-aduyzm6nes] {
  font-size: 12px;
  color: #030712;
  line-height: normal;
}

.combo-tooltip-desc strong[b-aduyzm6nes] {
  font-weight: 700;
}

/* Arrow — shadow layer (::before) + fill layer (::after) */
.combo-tooltip[b-aduyzm6nes]::before,
.combo-tooltip[b-aduyzm6nes]::after {
  content: '';
  position: absolute;
  top: var(--arrow-top, 10px);
  width: 0;
  height: 0;
}

/* Default: tooltip left of badge → arrow on right, pointing right */
.combo-tooltip[b-aduyzm6nes]::before {
  right: -11px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid rgba(0, 0, 0, 0.12);
}

.combo-tooltip[b-aduyzm6nes]::after {
  right: -9px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid #fff;
}

/* Flipped: tooltip right of badge → arrow on left, pointing left */
.combo-tooltip.flipped[b-aduyzm6nes]::before {
  right: auto;
  left: -11px;
  border-left: none;
  border-right: 10px solid rgba(0, 0, 0, 0.12);
}

.combo-tooltip.flipped[b-aduyzm6nes]::after {
  right: auto;
  left: -9px;
  border-left: none;
  border-right: 9px solid #fff;
}

/* Qty stepper (shown when item is in cart) — single capsule/pill */
.qty-stepper[b-aduyzm6nes] {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 26px;
  border: 1px solid rgba(83, 159, 223, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  flex-shrink: 0;
}

.qty-stepper .qty-btn[b-aduyzm6nes] {
  width: auto;
  height: 100%;
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transition: opacity var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

/* Minus segment — flush left, transparent/white background, blue icon */
.qty-stepper .qty-btn-minus[b-aduyzm6nes] {
  background-color: #539FDF70;
  color: #539FDF;
}

.qty-stepper .qty-btn-minus:hover:not(:disabled)[b-aduyzm6nes] {
  background-color: rgba(83, 159, 223, 0.07);
}

/* Plus segment — flush right, solid blue background, white icon, rounded only on the right to match the pill cap */
.qty-stepper .qty-btn-plus[b-aduyzm6nes] {
  background-color: #539FDF;
  color: #fff;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.qty-stepper .qty-btn-plus:hover:not(:disabled)[b-aduyzm6nes] {
  opacity: 0.9;
}

.qty-stepper .qty-btn:disabled[b-aduyzm6nes] {
  cursor: not-allowed;
  background-color: var(--bg-input);
  color: var(--text-secondary);
  opacity: 0.6;
}

.qty-stepper .qty-btn-plus:disabled[b-aduyzm6nes] {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.qty-stepper .qty-btn:disabled:hover[b-aduyzm6nes] {
  opacity: 0.6;
}

.qty-stepper .qty-value[b-aduyzm6nes] {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background-color: #fff;
}

/* =========================================================
   Cart
   ========================================================= */

/* ── Cart Sidebar ────────────────────────────────────────── */
.cart-sidebar[b-aduyzm6nes] {
  padding: 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

/* MIID header */
.cart-miid-header[b-aduyzm6nes] {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-4);
  background: #539FDF30;
  border-bottom: 1px solid var(--border-light);
}

.cart-miid-row[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.cart-miid-id[b-aduyzm6nes] {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.cart-miid-id strong[b-aduyzm6nes] {
  font-weight: 700;
}

.cart-miid-alloc[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.cart-user-row[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-user-avatar-sm[b-aduyzm6nes] {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0.7;
}

.cart-user-name[b-aduyzm6nes] {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.cart-table-header[b-aduyzm6nes] {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-th[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qty-th[b-aduyzm6nes] {
  text-align: center;
  white-space: nowrap;
}

.total-th[b-aduyzm6nes] {
  text-align: right;
  white-space: nowrap;
}

.cart-body[b-aduyzm6nes] {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-2);
}

.cart-body[b-aduyzm6nes]::-webkit-scrollbar {
  width: 4px;
}

.cart-body[b-aduyzm6nes]::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

/* Empty state */
.cart-empty[b-aduyzm6nes] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.cart-empty-icon[b-aduyzm6nes] {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.cart-empty-icon img[b-aduyzm6nes] {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.55;
}

.cart-empty-title[b-aduyzm6nes] {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 var(--space-1);
}

.cart-empty-sub[b-aduyzm6nes] {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
  opacity: 0.75;
}

/* Cart item row */
.cart-item[b-aduyzm6nes] {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child[b-aduyzm6nes] {
  border-bottom: none;
}

/* Item product details (left column) */
.cart-item-details[b-aduyzm6nes] {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-sku-row[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.cart-sku-dot[b-aduyzm6nes] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-primary);
}

.cart-sku-text[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-name[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-unit-price[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Quantity select (middle column) */
.cart-qty-select[b-aduyzm6nes] {
  width: 100%;
  height: 30px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-xs);
  padding: 0 var(--space-1);
  font-size: var(--font-size-xs);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-input);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition-fast);
}

.cart-qty-select:focus[b-aduyzm6nes] {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.10);
}

/* Total + remove (right column) */
.cart-item-right[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.cart-item-total[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.cart-item-remove[b-aduyzm6nes] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-danger);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.cart-item-remove:hover[b-aduyzm6nes] {
  opacity: 1;
}

/* ── Cart Footer ─────────────────────────────────────────── */
.cart-footer[b-aduyzm6nes] {
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  padding: var(--space-4) var(--space-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Promo success banner */
.promo-success-msg[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-success);
}

.promo-success-msg .bi[b-aduyzm6nes] {
  font-size: 0.9rem;
}

.cart-totals[b-aduyzm6nes] {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cart-total-row[b-aduyzm6nes] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.cart-total-row.grand-total[b-aduyzm6nes] {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
}

.cart-total-row.promo-value-row[b-aduyzm6nes] {
  color: var(--text-primary);
}

.promo-discount-amt[b-aduyzm6nes] {
  color: var(--color-success);
  font-weight: 600;
}

.cart-total-amounts[b-aduyzm6nes] {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-total-original[b-aduyzm6nes] {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.promo-unlock-banner[b-aduyzm6nes] {
  padding: 12px 14px;
  background: #E8F5E9;
  border: 1.5px dashed #66BB6A;
  border-radius: var(--radius-btn);
  color: #2E7D32;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}

.promo-unlock-banner strong[b-aduyzm6nes] {
  font-weight: 700;
}

.cart-actions[b-aduyzm6nes] {
  display: flex;
  gap: var(--space-2);
}

.btn-generate-order[b-aduyzm6nes],
.btn-pay[b-aduyzm6nes] {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-generate-order[b-aduyzm6nes] {
  background: linear-gradient(0deg, #A72A61 0%, #E3378C 100%);
  box-shadow: 0 4px 14px rgba(167, 42, 97, 0.30);
}

.btn-generate-order:hover[b-aduyzm6nes] {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 42, 97, 0.40);
}

.btn-pay[b-aduyzm6nes] {
  background: linear-gradient(0deg, #0279FF 0%, #00A3F3 100%);
  box-shadow: 0 4px 14px rgba(2, 121, 255, 0.30);
}

.btn-pay:hover[b-aduyzm6nes] {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 121, 255, 0.40);
}

/* ── Mobile bottom summary bar ───────────────────────────── */
/* Replaces the old floating cart FAB. Shown when cart has ≥1 item; tapping opens bottom sheet. */
.cart-bottom-bar[b-aduyzm6nes] {
  position: fixed !important;
  /* override .product-list-page > * position:relative */
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  z-index: 290;
  /* same level as navbar (290), below backdrop (300), below cart sheet (310) */
  cursor: pointer;
}

.cart-bottom-bar-info[b-aduyzm6nes] {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.cart-bottom-bar-miid[b-aduyzm6nes] {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.cart-bottom-bar-miid strong[b-aduyzm6nes] {
  font-weight: 700;
}

.cart-bottom-bar-alloc[b-aduyzm6nes] {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-bottom-bar-total[b-aduyzm6nes] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--space-3);
}

body.cart-drawer-open .cart-bottom-bar[b-aduyzm6nes] {
  display: none !important;
}

/* ── Bottom sheet drag handle ─────────────────────────────── */
/* Centered pill at the top of the cart panel — only visible on mobile bottom-sheet */
.cart-sheet-handle[b-aduyzm6nes] {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 8px auto 12px;
  flex-shrink: 0;
  /* Hidden by default; shown only inside mobile media query */
  display: none;
}

/* Backdrop sits directly in .product-list-page and gets position:relative;z-index:1
   from the `> *` rule. We must override position and z-index explicitly so it renders
   as a proper fixed overlay.
   Z-index ladder (mobile):
     .cart-card          → 310  (bottom sheet — topmost layer)
     .cart-backdrop      → 300  (dims content behind sheet)
     .app-navbar         → 290  (same level as bottom bar)
     .cart-bottom-bar    → 290  (same level as navbar)
     page content        → 1   (via .product-list-page > *)
*/
.cart-backdrop[b-aduyzm6nes] {
  display: none;
  position: fixed !important;
  /* override the > * position:relative */
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 300 !important;
  /* above navbar/bottom-bar (290), below cart sheet (310) */
}

.cart-backdrop.visible[b-aduyzm6nes] {
  display: block;
}

/* =========================================================
   Responsive — Product List (pure product-list selectors only)
   ========================================================= */

@media (max-width: 1199.98px) {
  .product-grid[b-aduyzm6nes] {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-sidebar[b-aduyzm6nes] {
    width: 100%;
  }
}

@media (max-width: 991.98px) {

  /* Bottom sheet: full-width, 85vh tall, rounded top corners, slides up */
  .cart-card[b-aduyzm6nes] {
    position: fixed !important;
    /* override .product-list-page > * position:relative */
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    max-height: 85vh;
    z-index: 310;
    /* strictly above .cart-backdrop (300) */
    transform: translateY(100%);
    transition: transform var(--transition-base);
    border-radius: 20px 20px 0 0;
    margin: 0;
    overflow: hidden;
  }

  .cart-card.open[b-aduyzm6nes] {
    transform: translateY(0);
  }

  /* Show the drag handle inside the sheet */
  .cart-sheet-handle[b-aduyzm6nes] {
    display: block;
  }

  /* Add padding-bottom only when the cart bar is visible so it doesn't overlap the last card */
  .page-wrapper.has-cart-bar[b-aduyzm6nes] {
    padding-bottom: 64px;
  }

  .product-grid[b-aduyzm6nes] {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Row 1: view toggle + search bar share a row; Row 2: category pills below */
  .products-toolbar[b-aduyzm6nes] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
  }

  /* Row 1: search bar shares the row with the view toggle, filling remaining width */
  .product-search-bar[b-aduyzm6nes] {
    flex: 1;
    min-width: 0;
  }

  /* Row 2: category pills fill the full width, single scrollable line — no wrapping */
  .category-tabs[b-aduyzm6nes] {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-1);
    /* Remove Bootstrap ms-auto margin so the pill row starts from the left */
    margin-left: 0 !important;
    /* Hide scrollbar track while keeping scroll functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  .category-tabs[b-aduyzm6nes]::-webkit-scrollbar {
    display: none;
  }

  /* Chrome/Safari */
}

@media (max-width: 767.98px) {
  .product-grid[b-aduyzm6nes] {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-4);
  }

  .products-toolbar[b-aduyzm6nes] {
    padding: var(--space-3) var(--space-4);
  }

  /* product-search-bar and category-tabs already handled by the 991.98px breakpoint above */
  .miid-bar[b-aduyzm6nes] {
    padding: var(--space-3) var(--space-4);
  }

  .subcategory-bar[b-aduyzm6nes] {
    padding: var(--space-2) var(--space-4);
  }
}

@media (max-width: 575.98px) {
  .product-grid[b-aduyzm6nes] {
    grid-template-columns: 1fr;
  }

  /* Tighter page gutters so the list gets the full width */
  .main-row[b-aduyzm6nes] {
    margin-left: var(--space-2);
    margin-right: var(--space-2);
  }

  .page-card[b-aduyzm6nes] {
    margin-left: var(--space-2);
    margin-right: var(--space-2);
  }

  .main-row .page-card[b-aduyzm6nes] {
    margin: 0;
  }

  .products-col[b-aduyzm6nes] {
    padding: var(--space-1) 0;
  }

  /* After the 767px rule so it wins; rows run edge-to-edge inside the card */
  .product-grid.product-grid--list[b-aduyzm6nes] {
    padding: 0 0 var(--space-3);
  }
}
/* /Pages/MIOrders/MIOrdersPage.razor.rz.scp.css */
/* ================================================================
   MIOrdersPage — scoped CSS (Blazor CSS isolation)
   All selectors prefixed mio- to avoid leaking to other pages.
   ================================================================ */

/* ── Page shell ─────────────────────────────────────────────── */
.mio-page[b-k3sp120r2o] {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    padding: 0;
    background: #f0f2f5;
}

/* ── In-page header ─────────────────────────────────────────── */
.mio-header[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.mio-back-btn[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #222;
    padding: 0;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.15s;
}

.mio-back-btn:hover[b-k3sp120r2o] {
    background: #f0f0f0;
}

.mio-title[b-k3sp120r2o] {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mio-count[b-k3sp120r2o] {
    font-weight: 600;
    color: #333;
}

.mio-header-actions[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search */
.mio-search-wrap[b-k3sp120r2o] {
    position: relative;
    display: flex;
    align-items: center;
}

.mio-search-input[b-k3sp120r2o] {
    height: 30px;
    width: 210px;
    padding: 0 36px 0 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mio-search-input:focus[b-k3sp120r2o] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    background: #fff;
}

.mio-search-input[b-k3sp120r2o]::placeholder {
    color: #aaa;
}

.mio-search-icon[b-k3sp120r2o] {
    position: absolute;
    right: 10px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

/* Filter & Week buttons */
.mio-filter-btn[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    color: #555;
    border-radius: 6px;
    transition: background 0.15s;
}

.mio-filter-btn:hover[b-k3sp120r2o] {
    background: #f0f0f0;
}

.mio-week-badge[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.mio-week-badge:hover[b-k3sp120r2o] {
    background: rgba(59,130,246,.06);
}

/* ── Body ────────────────────────────────────────────────────── */
.mio-body[b-k3sp120r2o] {
    flex: 1;
    padding: 16px;
    background: #f0f2f5;
}

/* ── Table wrapper ───────────────────────────────────────────── */
.mio-table-wrap[b-k3sp120r2o] {
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Table ───────────────────────────────────────────────────── */
.mio-table[b-k3sp120r2o] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    color: #333;
    background: #fff;
}

.mio-table thead tr[b-k3sp120r2o] {
    border-bottom: 2px solid #e8e8e8;
}

.mio-table th[b-k3sp120r2o] {
    padding: 8px 12px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: #666;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #f8f9fa;
}

.mio-table td[b-k3sp120r2o] {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    white-space: nowrap;
}

.mio-table tbody tr:hover[b-k3sp120r2o] {
    background: #f7f9ff;
}

/* Column widths */
.mio-col-no[b-k3sp120r2o]       { width: 44px; }
.mio-col-wk[b-k3sp120r2o]       { width: 80px; }
.mio-col-date[b-k3sp120r2o]     { width: 110px; }
.mio-col-orderno[b-k3sp120r2o]  { min-width: 200px; }
.mio-col-g75[b-k3sp120r2o]      { width: 100px; text-align: right !important; }
.mio-col-g35[b-k3sp120r2o]      { width: 100px; text-align: right !important; }
.mio-col-promo[b-k3sp120r2o]    { width: 100px; text-align: right !important; }
.mio-col-amount[b-k3sp120r2o]   { width: 130px; text-align: right !important; }
.mio-col-mobile[b-k3sp120r2o]   { min-width: 240px; }

/* Order number highlight (blue text, no link) */
.mio-order-highlight[b-k3sp120r2o] {
    color: #3b82f6;
    font-weight: 500;
}

/* ── Mobile number cell ──────────────────────────────────────── */
.mio-mobile-edit-wrap[b-k3sp120r2o],
.mio-mobile-view-wrap[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mio-mobile-input-wrap[b-k3sp120r2o] {
    display: flex;
    flex-direction: column;
}

.mio-mobile-error[b-k3sp120r2o] {
    display: block;
    font-size: 0.72rem;
    color: var(--rz-danger, #ef4444);
    margin-top: 2px;
    white-space: normal;
    max-width: 150px;
    line-height: 1.3;
}

.mio-mobile-input[b-k3sp120r2o] {
    height: 34px;
    width: 150px;
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mio-mobile-input:focus[b-k3sp120r2o] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.mio-mobile-input.input-error[b-k3sp120r2o] {
    border-color: var(--rz-danger, #ef4444);
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.mio-mobile-input[b-k3sp120r2o]::placeholder {
    color: #aaa;
}

.mio-mobile-disabled[b-k3sp120r2o] {
    background: #f5f5f5;
    color: #777;
    cursor: default;
}

/* Action icon buttons for mobile number */
.mio-mobile-btn[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    padding: 0;
    transition: background 0.15s, opacity 0.15s;
    flex-shrink: 0;
}

.mio-mobile-btn:disabled[b-k3sp120r2o] {
    opacity: 0.4;
    cursor: not-allowed;
}

.mio-mobile-btn-save[b-k3sp120r2o] {
    color: #2563eb;
}

.mio-mobile-btn-save:hover:not(:disabled)[b-k3sp120r2o] {
    background: rgba(37,99,235,.1);
}

.mio-mobile-btn-cancel[b-k3sp120r2o] {
    color: #6b7280;
}

.mio-mobile-btn-cancel:hover:not(:disabled)[b-k3sp120r2o] {
    background: #f0f0f0;
}

.mio-mobile-btn-edit[b-k3sp120r2o] {
    color: #555;
    font-size: 15px;
}

.mio-mobile-btn-edit:hover[b-k3sp120r2o] {
    background: #f0f0f0;
    color: #222;
}

/* ── Empty state ─────────────────────────────────────────────── */
.mio-empty[b-k3sp120r2o] {
    text-align: center;
    color: #999;
    padding: 48px 0 !important;
    font-size: 14px;
}

/* ── Pagination ──────────────────────────────────────────────── */
.mio-pager-wrap[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 16px;
    gap: 12px;
}

.mio-pager-info[b-k3sp120r2o] {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

/* ── Notes ───────────────────────────────────────────────────── */
.mio-notes[b-k3sp120r2o] {
    margin: 0 16px 16px;
    padding: 14px 18px;
    background: #fffde7;
    border: 1px solid #f9e87f;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 13.5px;
    color: #555;
}

.mio-notes-title[b-k3sp120r2o] {
    margin: 0 0 6px;
    font-weight: 600;
    color: #444;
}

.mio-notes-list[b-k3sp120r2o] {
    margin: 0;
    padding-left: 18px;
}

.mio-notes-list li[b-k3sp120r2o] {
    margin-bottom: 3px;
    line-height: 1.5;
}

.mio-notes-list li:last-child[b-k3sp120r2o] {
    margin-bottom: 0;
}

/* ── Status column ───────────────────────────────────────────── */
.mio-col-status[b-k3sp120r2o] {
    white-space: nowrap;
}

.mio-status[b-k3sp120r2o] {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
}

.mio-status-ordered[b-k3sp120r2o] {
    background: #dcfce7;
    color: #15803d;
}

.mio-status-cancelled[b-k3sp120r2o] {
    background: #fee2e2;
    color: #b91c1c;
}

/* ── Actions column ──────────────────────────────────────────── */
.mio-col-actions[b-k3sp120r2o] {
    white-space: nowrap;
}

.mio-action-wrap[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 6px;
}


.mio-action-btn[b-k3sp120r2o] {
    border:none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    /* border: 1px solid transparent; */
    border-radius: 5px;
    font-size: 14pt;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    white-space: nowrap;
    background: none;
}

.mio-action-btn:disabled[b-k3sp120r2o] {
    opacity: 0.55;
    cursor: not-allowed;
}

.mio-btn-delivery[b-k3sp120r2o] {
    border-color: #d1d5db;
    color: #374151;
    background: #f9fafb;
}

.mio-btn-delivery:hover[b-k3sp120r2o] {
    background: #e5e7eb;
}

.mio-btn-cancel[b-k3sp120r2o] {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fff5f5;
}

.mio-btn-cancel:hover[b-k3sp120r2o] {
    background: #fee2e2;
}

.mio-btn-view[b-k3sp120r2o] {
    border-color: #d1d5db;
    color: #374151;
    background: #f9fafb;
    padding: 4px 8px;
    font-size: 14px;
}

.mio-btn-view:hover[b-k3sp120r2o] {
    background: #e5e7eb;
}

/* ── Mobile card list (hidden by default; shown < 768px) ─────── */
.mio-card-list[b-k3sp120r2o] {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mio-card[b-k3sp120r2o] {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 14px;
}

.mio-card-header[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.mio-card-header-left[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mio-card-badge[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mio-card-header .mio-order-highlight[b-k3sp120r2o] {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mio-card-header-meta[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.mio-card-header-meta i[b-k3sp120r2o] {
    font-size: 12px;
}

.mio-stat-row[b-k3sp120r2o] {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.mio-stat-box[b-k3sp120r2o] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    min-width: 0;
    background: #f5f5f5;
}

.mio-card-label[b-k3sp120r2o] {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mio-card-value[b-k3sp120r2o] {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
}

.mio-amount-bar[b-k3sp120r2o] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 12px;
}

.mio-card-value-amount[b-k3sp120r2o] {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.mio-card-mobile[b-k3sp120r2o] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.mio-card-mobile .mio-mobile-input[b-k3sp120r2o] {
    flex: 1;
    width: auto;
}

.mio-card-mobile .mio-mobile-edit-wrap[b-k3sp120r2o],
.mio-card-mobile .mio-mobile-view-wrap[b-k3sp120r2o] {
    width: 100%;
}

.mio-card-mobile .mio-mobile-input-wrap[b-k3sp120r2o] {
    flex: 1;
}

.mio-card-actions[b-k3sp120r2o] {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.mio-card-actions .mio-action-btn[b-k3sp120r2o] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 12.5px;
}

.mio-card-actions .mio-action-btn i[b-k3sp120r2o] {
    font-size: 14px;
}

/* ── Responsive breakpoint ─────────────────────────────────────
   Below 768px: swap table for stacked cards, and let header /
   pager controls wrap instead of overflowing.                   */
@media (max-width: 768px) {
    .mio-table[b-k3sp120r2o] {
        display: none;
    }

    .mio-card-list[b-k3sp120r2o] {
        display: flex;
    }

    .mio-table-wrap[b-k3sp120r2o] {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .mio-body[b-k3sp120r2o] {
        padding: 10px;
    }

    .mio-header[b-k3sp120r2o] {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .mio-header-actions[b-k3sp120r2o] {
        order: 2;
        flex-basis: 100%;
    }

    .mio-search-wrap[b-k3sp120r2o] {
        flex: 1;
    }

    .mio-search-input[b-k3sp120r2o] {
        width: 100%;
    }

    .mio-pager-wrap[b-k3sp120r2o] {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .mio-pager-info[b-k3sp120r2o] {
        white-space: normal;
        text-align: center;
    }
}

/* /Pages/OrderReceipt.razor.rz.scp.css */
/* ── Page wrapper ──────────────────────────────────── */
.por-wrapper[b-6s7dwabpr8] {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

/* ── Back navigation ───────────────────────────────── */
.por-back-bar[b-6s7dwabpr8] {
    margin-bottom: 1rem;
}

.por-back-link[b-6s7dwabpr8] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #37474f;
    text-decoration: none;
    transition: color 0.15s;
}

    .por-back-link:hover[b-6s7dwabpr8] {
        color: #1565c0;
    }

/* ── Receipt card ──────────────────────────────────── */
.por-receipt[b-6s7dwabpr8] {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Individual order receipt cards sit below the summary */
.por-receipt-order[b-6s7dwabpr8] {
    margin-top: 1.5rem;
}

/* ── Perforated top border ─────────────────────────── */
.por-stamp-top[b-6s7dwabpr8] {
    height: 14px;
    background-image: radial-gradient(circle at 10px 14px, var(--rz-body-background-color, #eff2f7) 9px, #fff 10px);
    background-size: 20px 14px;
    background-repeat: repeat-x;
}

/* ── Receipt body padding ──────────────────────────── */
.por-receipt-body[b-6s7dwabpr8] {
    padding: 0.875rem 1.25rem 1rem;
}

/* ── Header row ────────────────────────────────────── */
.por-receipt-header[b-6s7dwabpr8] {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.por-header-logo[b-6s7dwabpr8] {
    flex-shrink: 0;
}

    .por-header-logo img[b-6s7dwabpr8] {
        height: 48px;
        width: auto;
        display: block;
    }

.por-header-title[b-6s7dwabpr8] {
    flex: 1;
}

.por-order-title-row[b-6s7dwabpr8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.por-tick[b-6s7dwabpr8] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.por-order-title-text[b-6s7dwabpr8] {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #546e7a;
}

/* Green "PURCHASE SUCCESSFUL" title */
.por-success-title[b-6s7dwabpr8] {
    color: #3faf98;
}

.por-order-subtitle[b-6s7dwabpr8] {
    font-size: 0.72rem;
    color: #546e7a;
    margin: 0;
    line-height: 1.4;
}

.por-header-meta[b-6s7dwabpr8] {
    flex-shrink: 0;
    text-align: right;
}

.por-meta-code[b-6s7dwabpr8] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #263238;
    margin-bottom: 0.15rem;
}

.por-meta-row[b-6s7dwabpr8] {
    font-size: 0.78rem;
    color: #546e7a;
    line-height: 1.6;
}

/* ── Divider ───────────────────────────────────────── */
.por-divider[b-6s7dwabpr8] {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1rem 0;
}

/* ── User info + QR row ────────────────────────────── */
.por-user-row[b-6s7dwabpr8] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.por-user-details[b-6s7dwabpr8] {
    flex: 1;
}

.por-user-miid[b-6s7dwabpr8] {
    font-size: 0.9rem;
    font-weight: 700;
    color: #263238;
    margin-bottom: 0.25rem;
}

.por-user-name[b-6s7dwabpr8] {
    font-size: 0.85rem;
    color: #37474f;
    margin-bottom: 0.15rem;
}

.por-user-contact[b-6s7dwabpr8] {
    font-size: 0.82rem;
    color: #546e7a;
    line-height: 1.6;
}

/* ── QR code area ──────────────────────────────────── */
.por-qr-area[b-6s7dwabpr8] {
    flex-shrink: 0;
}

.por-qr-img[b-6s7dwabpr8] {
    width: 72px;
    height: 72px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    display: block;
}

.por-qr-placeholder[b-6s7dwabpr8] {
    width: 72px;
    height: 72px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.por-qr-svg[b-6s7dwabpr8] {
    width: 72px;
    height: 72px;
}

.por-qr-caption[b-6s7dwabpr8] {
    margin-top: 4px;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    max-width: 72px;
}

/* ── MIID / order block ────────────────────────────── */
.por-miid-block[b-6s7dwabpr8] {
    margin-bottom: 1.25rem;
}

.por-miid-header[b-6s7dwabpr8] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.por-group-user[b-6s7dwabpr8] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #546e7a;
}

.por-group-user-icon[b-6s7dwabpr8] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.por-miid-num[b-6s7dwabpr8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #eaf5ff;
    color: #263238;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.por-miid-label[b-6s7dwabpr8] {
    font-size: 0.88rem;
    font-weight: 700;
    color: #263238;
}

.por-miid-code[b-6s7dwabpr8] {
    font-size: 0.88rem;
    font-weight: 600;
    color: #191c1f;
}

/* ── Product / summary table ───────────────────────── */
.por-table-wrap[b-6s7dwabpr8] {
    width: 100%;
    overflow-x: auto;
}

.por-table[b-6s7dwabpr8] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    color: #37474f;
}

    .por-table thead tr[b-6s7dwabpr8] {
        background: #f2f4f5;
    }

    .por-table th[b-6s7dwabpr8] {
        padding: 0.375rem 0.625rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: #475156;
        text-align: left;
        border-bottom: 1px solid #e4e7e9;
        white-space: nowrap;
    }

    .por-table td[b-6s7dwabpr8] {
        padding: 0.375rem 0.625rem;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

    .por-table tbody tr:last-child td[b-6s7dwabpr8] {
        border-bottom: none;
    }

.por-th-sl[b-6s7dwabpr8],
.por-td-sl[b-6s7dwabpr8] {
    width: 36px;
    text-align: center;
}

.por-th-product[b-6s7dwabpr8],
.por-td-product[b-6s7dwabpr8] {
    min-width: 200px;
}

.por-th-qty[b-6s7dwabpr8], .por-td-qty[b-6s7dwabpr8]{
    text-align: center;
    white-space: nowrap;
}

.por-th-price[b-6s7dwabpr8],
.por-td-price[b-6s7dwabpr8],
.por-th-subtotal[b-6s7dwabpr8],
.por-td-subtotal[b-6s7dwabpr8],
.por-th-amt[b-6s7dwabpr8],
.por-td-amt[b-6s7dwabpr8] {
    text-align: right !important;
    white-space: nowrap;
}

/* ── Total / footer row ────────────────────────────── */
.por-total-row td[b-6s7dwabpr8] {
    border-top: 1px solid #e4e7e9;
    border-bottom: none;
    padding: 0.375rem 0.625rem;
    background: #f9f9f9;
}

.por-total-label[b-6s7dwabpr8] {
    text-align: right;
    font-weight: 600;
    font-size: 0.82rem;
    color: #37474f;
}

.por-total-amount[b-6s7dwabpr8] {
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    color: #263238;
}

/* ── Promo applied notice ──────────────────────────── */
.por-promo-notice[b-6s7dwabpr8] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #12aa67;
    margin: 0.5rem 0;
}

    .por-promo-notice svg[b-6s7dwabpr8] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

/* ── Additional info line ──────────────────────────── */
.por-additional-info[b-6s7dwabpr8] {
    font-size: 0.75rem;
    color: #37474f;
    margin: 0.5rem 0 0.25rem;
}

.por-additional-label[b-6s7dwabpr8] {
    font-weight: 700;
}

/* ── Terms & Conditions ────────────────────────────── */
.por-terms[b-6s7dwabpr8] {
    padding-bottom: 0.5rem;
}

.por-terms-title[b-6s7dwabpr8] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #37474f;
    margin: 0 0 0.4rem;
}

.por-terms-body[b-6s7dwabpr8] {
    font-size: 0.75rem;
    color: #78909c;
    line-height: 1.6;
    margin: 0;
}

/* ── Action buttons ────────────────────────────────── */
.por-actions[b-6s7dwabpr8] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.por-btn[b-6s7dwabpr8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: 2px solid transparent;
    line-height: 1.4;
}

.por-btn-outline[b-6s7dwabpr8] {
    background: rgba(255, 255, 255, 0.27);
    color: #4677ba;
    border-color: #4677ba;
}

    .por-btn-outline:hover[b-6s7dwabpr8] {
        background: #eef3fb;
    }

.por-btn-whatsapp[b-6s7dwabpr8] {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    border: none;
    flex-shrink: 0;
}

    .por-btn-whatsapp svg[b-6s7dwabpr8] {
        width: 20px;
        height: 20px;
    }

    .por-btn-whatsapp:hover[b-6s7dwabpr8] {
        background: #1ebe5d;
    }

/* ── Empty state ───────────────────────────────────── */
.por-empty[b-6s7dwabpr8] {
    text-align: center;
    padding: 3rem 1rem;
    color: #78909c;
    font-size: 0.9rem;
}

/* ── Print styles ──────────────────────────────────── */
@media print {
    .por-back-bar[b-6s7dwabpr8],
    .por-actions[b-6s7dwabpr8] {
        display: none !important;
    }

    .por-wrapper[b-6s7dwabpr8] {
        max-width: 100%;
        padding: 0 !important;
        zoom: 1 !important;
    }

    .por-receipt[b-6s7dwabpr8] {
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .por-receipt-order[b-6s7dwabpr8] {
        page-break-before: always;
        margin-top: 0;
    }

    .por-table-wrap[b-6s7dwabpr8] {
        overflow-x: visible !important;
    }
}
/* /Pages/PreOrderReceipt.razor.rz.scp.css */
/* ── Page wrapper ──────────────────────────────────── */
.por-wrapper[b-e437bsc1t7] {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

/* ── Back navigation ───────────────────────────────── */
.por-back-bar[b-e437bsc1t7] {
    margin-bottom: 1rem;
}

.por-back-link[b-e437bsc1t7] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #37474f;
    text-decoration: none;
    transition: color 0.15s;
}

    .por-back-link:hover[b-e437bsc1t7] {
        color: #1565c0;
    }

/* ── Receipt card ──────────────────────────────────── */
.por-receipt[b-e437bsc1t7] {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* ── Perforated top border ─────────────────────────── */
.por-stamp-top[b-e437bsc1t7] {
    height: 14px;
    background-image: radial-gradient(circle at 10px 14px, var(--rz-body-background-color, #eff2f7) 9px, #fff 10px);
    background-size: 20px 14px;
    background-repeat: repeat-x;
}

/* ── Receipt body padding ──────────────────────────── */
.por-receipt-body[b-e437bsc1t7] {
    padding: 0.875rem 1.25rem 1rem;
}

/* ── Header row ────────────────────────────────────── */
.por-receipt-header[b-e437bsc1t7] {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.por-header-logo[b-e437bsc1t7] {
    flex-shrink: 0;
}

    .por-header-logo img[b-e437bsc1t7] {
        height: 48px;
        width: auto;
        display: block;
    }

.por-header-title[b-e437bsc1t7] {
    flex: 1;
}

.por-order-title-row[b-e437bsc1t7] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.por-tick[b-e437bsc1t7] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.por-order-title-text[b-e437bsc1t7] {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2e7d32;
}

.por-order-subtitle[b-e437bsc1t7] {
    font-size: 0.72rem;
    color: #546e7a;
    margin: 0;
    line-height: 1.4;
}

.por-header-meta[b-e437bsc1t7] {
    flex-shrink: 0;
    text-align: right;
}

.por-meta-code[b-e437bsc1t7] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #263238;
    margin-bottom: 0.15rem;
}

.por-meta-row[b-e437bsc1t7] {
    font-size: 0.78rem;
    color: #546e7a;
    line-height: 1.6;
}

/* ── Divider ───────────────────────────────────────── */
.por-divider[b-e437bsc1t7] {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1rem 0;
}

/* ── User info + QR row ────────────────────────────── */
.por-user-row[b-e437bsc1t7] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.por-user-details[b-e437bsc1t7] {
    flex: 1;
}

.por-user-miid[b-e437bsc1t7] {
    font-size: 0.9rem;
    font-weight: 700;
    color: #263238;
    margin-bottom: 0.25rem;
}

.por-user-name[b-e437bsc1t7] {
    font-size: 0.85rem;
    color: #37474f;
    margin-bottom: 0.15rem;
}

.por-user-contact[b-e437bsc1t7] {
    font-size: 0.82rem;
    color: #546e7a;
    line-height: 1.6;
}

/* ── QR code area ──────────────────────────────────── */
.por-qr-area[b-e437bsc1t7] {
    flex-shrink: 0;
}

.por-qr-img[b-e437bsc1t7] {
    width: 72px;
    height: 72px;
    /* border: 1px solid #cfd8dc; */
    border-radius: 4px;
    display: block;
}

.por-qr-placeholder[b-e437bsc1t7] {
    width: 72px;
    height: 72px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.por-qr-svg[b-e437bsc1t7] {
    width: 72px;
    height: 72px;
}

.por-qr-caption[b-e437bsc1t7] {
    margin-top: 4px;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    max-width: 72px;
}

/* ── MIID section ──────────────────────────────────── */
.por-miid-block[b-e437bsc1t7] {
    margin-bottom: 1.25rem;
}

.por-miid-header[b-e437bsc1t7] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.por-miid-num[b-e437bsc1t7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #263238;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 3px;
    flex-shrink: 0;
}

.por-miid-label[b-e437bsc1t7] {
    font-size: 0.88rem;
    font-weight: 700;
    color: #263238;
}

/* ── Product table ─────────────────────────────────── */
.por-table-wrap[b-e437bsc1t7] {
    width: 100%;
    overflow-x: auto;
}

.por-table[b-e437bsc1t7] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    color: #37474f;
}

    .por-table thead tr[b-e437bsc1t7] {
        background: #eceff1;
    }

    .por-table th[b-e437bsc1t7] {
        padding: 0.375rem 0.625rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: #546e7a;
        /* text-align: left; */
        border-bottom: 1px solid #cfd8dc;
        white-space: nowrap;
    }

    .por-table td[b-e437bsc1t7] {
        padding: 0.375rem 0.625rem;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

    .por-table tbody tr:last-child td[b-e437bsc1t7] {
        border-bottom: none;
    }

.por-th-sl[b-e437bsc1t7],
.por-td-sl[b-e437bsc1t7] {
    width: 36px;
    text-align: center;
}

.por-th-product[b-e437bsc1t7],
.por-td-product[b-e437bsc1t7] {
    min-width: 200px;
}

.por-th-qty[b-e437bsc1t7], .por-td-qty[b-e437bsc1t7]{
    text-align: center;
    white-space: nowrap;
}

.por-th-price[b-e437bsc1t7],
.por-td-price[b-e437bsc1t7],
.por-th-subtotal[b-e437bsc1t7],
.por-td-subtotal[b-e437bsc1t7] {
    text-align: right;
    white-space: nowrap;
}

/* ── Total row ─────────────────────────────────────── */
.por-total-row td[b-e437bsc1t7] {
    border-top: 1px solid #e0e0e0;
    border-bottom: none;
    padding: 0.375rem 0.625rem;
}

.por-total-label[b-e437bsc1t7] {
    text-align: right;
    font-weight: 600;
    font-size: 0.82rem;
    color: #37474f;
}

.por-total-amount[b-e437bsc1t7] {
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    color: #263238;
}

/* ── Terms & Conditions ────────────────────────────── */
.por-terms[b-e437bsc1t7] {
    padding-bottom: 0.5rem;
}

.por-terms-title[b-e437bsc1t7] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #37474f;
    margin: 0 0 0.4rem;
}

.por-terms-body[b-e437bsc1t7] {
    font-size: 0.75rem;
    color: #78909c;
    line-height: 1.6;
    margin: 0;
}

/* ── Action buttons ────────────────────────────────── */
.por-actions[b-e437bsc1t7] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.por-btn[b-e437bsc1t7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: 2px solid transparent;
    line-height: 1.4;
}

.por-btn-outline[b-e437bsc1t7] {
    background: #fff;
    color: #37474f;
    border-color: #90a4ae;
}

    .por-btn-outline:hover[b-e437bsc1t7] {
        background: #eceff1;
        border-color: #546e7a;
    }

.por-btn-whatsapp[b-e437bsc1t7] {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    border: none;
    flex-shrink: 0;
}

    .por-btn-whatsapp svg[b-e437bsc1t7] {
        width: 22px;
        height: 22px;
    }

    .por-btn-whatsapp:hover[b-e437bsc1t7] {
        background: #1ebe5d;
    }

/* ── Empty state ───────────────────────────────────── */
.por-empty[b-e437bsc1t7] {
    text-align: center;
    padding: 3rem 1rem;
    color: #78909c;
    font-size: 0.9rem;
}

/* ── Print styles ──────────────────────────────────── */
@media print {
    .por-back-bar[b-e437bsc1t7],
    .por-actions[b-e437bsc1t7] {
        display: none !important;
    }

    .por-wrapper[b-e437bsc1t7] {
        max-width: 100%;
        padding: 0;
        zoom: 1 !important;          /* Reset mobile zoom from scaleReceiptWrapper */
    }

    .por-receipt[b-e437bsc1t7] {
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important; /* Remove clip that cuts multi-page content */
    }

    .por-table-wrap[b-e437bsc1t7] {
        overflow-x: visible !important; /* Remove clip on table wrappers */
    }
}

/* /Pages/ReviewOrderPage.razor.rz.scp.css */
/* === Review Order Page — Component Styles ===
   All page-specific styles for review-order.html.
   Do NOT add these rules to main.css.
   ========================================================= */

/* =========================================================
   Page Root & Background
   ========================================================= */

/* ReviewOrderPage uses the default full-height fixed layout from main.css — no override needed */

/* =========================================================
   Page Header Bar  (ro-header* — defined in main.css)
   ========================================================= */

.ro-back-link[b-7o2s44hliw] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.ro-back-link:hover[b-7o2s44hliw] {
  color: var(--color-primary);
  text-decoration: none;
}

.ro-back-link .bi[b-7o2s44hliw] {
  font-size: 1.05rem;
  color: var(--color-primary);
}

.ro-page-heading[b-7o2s44hliw] {
  margin-bottom: var(--space-4);
}

.ro-header-actions[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* =========================================================
   Page Content Layout
   ========================================================= */

.ro-content[b-7o2s44hliw] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--space-6);
}

/* =========================================================
   MIID Order Cards (Left Column)
   ========================================================= */

.ro-miid-card[b-7o2s44hliw] {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.ro-miid-card-header[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  background: transparent;
}

/* Numbered badge — light blue circle with dark text (Figma: #EAF5FF bg) */
.ro-miid-badge[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EAF5FF;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

.ro-miid-title[b-7o2s44hliw] {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

/* =========================================================
   Order Items Table
   ========================================================= */

.ro-table-wrap[b-7o2s44hliw] {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ro-table[b-7o2s44hliw] {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

/* Column header row */
.ro-table thead th[b-7o2s44hliw] {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  background: #F2F4F5;
}

.ro-table thead th.ro-col-sl[b-7o2s44hliw] {
  /* no padding-left override — inherits var(--space-4) from thead th rule */
}

.ro-table thead th.ro-col-subtotal[b-7o2s44hliw] {
  padding-right: var(--space-5);
}

/* Body rows */
.ro-table tbody tr[b-7o2s44hliw] {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.ro-table tbody tr:hover[b-7o2s44hliw] {
  background: rgba(21, 101, 192, 0.025);
}

.ro-table tbody td[b-7o2s44hliw] {
  padding: var(--space-3) var(--space-4);
  vertical-align: middle;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

/* Column widths and alignment */
.ro-col-sl[b-7o2s44hliw] {
  width: 48px;
  text-align: center;
  /* padding-left matches standard cell padding — no !important override */
  padding-left: var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-size-xs) !important;
  font-weight: 500;
}

.ro-col-product[b-7o2s44hliw] {
  /* auto = take all remaining space not claimed by explicit-width columns.
     No min-width — let table-layout: fixed control the distribution. */
  width: auto;
  min-width: 0;
}

/* Prevent long product names from overflowing the fixed-layout cell */
.ro-table tbody td.ro-col-product[b-7o2s44hliw] {
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ro-product-name[b-7o2s44hliw] {
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ro-col-price[b-7o2s44hliw] {
  width: 80px;
  min-width: 80px;
  white-space: nowrap;
  color: var(--text-secondary);
  text-align: left;
}

.ro-col-qty[b-7o2s44hliw] {
  width: 80px;
  min-width: 80px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.ro-col-subtotal[b-7o2s44hliw] {
  width: 100px;
  min-width: 100px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  padding-right: var(--space-5) !important;
}

/* ── Total footer row ───────────────────────────────────── */
.ro-table tfoot tr[b-7o2s44hliw] {
  background: #FAFBFF;
}

.ro-table tfoot td[b-7o2s44hliw] {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light);
}

.ro-total-label[b-7o2s44hliw] {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: right;
}

.ro-total-amount[b-7o2s44hliw] {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
  padding-right: var(--space-5) !important;
}

/* =========================================================
   Summary Sidebar (Right Column)
   ========================================================= */

.ro-summary-card[b-7o2s44hliw] {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.ro-summary-title[b-7o2s44hliw] {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-4) var(--space-5);
  margin: 0;
}

.ro-summary-body[b-7o2s44hliw] {
  padding: var(--space-2) 0;
}

/* Each MIID row in the summary */
.ro-summary-row[b-7o2s44hliw] {
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.ro-summary-row-info[b-7o2s44hliw] {
  flex: 1;
  min-width: 0;
}

.ro-summary-miid-label[b-7o2s44hliw] {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #5F6C72;
  line-height: 1.4;
}

.ro-summary-miid-detail[b-7o2s44hliw] {
  display: block;
  font-size: 0.875rem;
  color: #5F6C72;
  margin-top: 2px;
  line-height: 1.4;
}

.ro-summary-miid-amount[b-7o2s44hliw] {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Divider between MIID rows */
.ro-summary-divider[b-7o2s44hliw] {
  height: 1px;
  background: var(--border-light);
  margin: 0 var(--space-5);
}

/* Total row */
.ro-summary-total-row[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-light);
}

.ro-summary-total-label[b-7o2s44hliw] {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
}

.ro-summary-total-amount[b-7o2s44hliw] {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Agency Code Input ──────────────────────────────────── */
.ro-agency-wrap[b-7o2s44hliw] {
  padding: 0 var(--space-5) 10px;
}

/* ── Payment Gateway Section (online mode) ──────────────── */
.ro-payment-section[b-7o2s44hliw] {
  padding: 0 var(--space-5) 10px;
}

.ro-agency-bar[b-7o2s44hliw] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #eaf2fe;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.ro-agency-search-row[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ro-agency-label[b-7o2s44hliw] {
  font-size: 13px;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
  min-width: 80px;
}

.ro-agency-input-wrap[b-7o2s44hliw] {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ro-agency-input[b-7o2s44hliw] {
  height: 32px;
  width: 180px;
  padding: 0 34px 0 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.ro-agency-input:focus[b-7o2s44hliw] {
  border-color: #86b7fe;
}

.ro-agency-input:disabled[b-7o2s44hliw] {
  background: #f8f9fa;
  color: #495057;
}

.ro-txnpwd-wrap[b-7o2s44hliw] {
  padding: 0 var(--space-5) 10px;
}

.ro-txnpwd-label[b-7o2s44hliw] {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ro-txnpwd-input[b-7o2s44hliw] {
  box-sizing: border-box;
  height: 36px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.ro-txnpwd-input:focus[b-7o2s44hliw] {
  border-color: #86b7fe;
}

.ro-txnpwd-input--error[b-7o2s44hliw] {
  border-color: #dc3545;
}

.ro-txnpwd-error[b-7o2s44hliw] {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #dc3545;
}

.ro-agency-icon-btn[b-7o2s44hliw] {
  position: absolute;
  right: 4px;
  height: 24px;
  width: 24px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6c757d;
  padding: 0;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.ro-agency-icon-btn:hover:not(:disabled)[b-7o2s44hliw] {
  background: #e9ecef;
  color: #212529;
}

.ro-agency-icon-btn:disabled[b-7o2s44hliw] {
  opacity: 0.4;
  cursor: default;
}

.ro-agency-clear-btn[b-7o2s44hliw] {
  color: #ef4444;
}

.ro-agency-clear-btn:hover[b-7o2s44hliw] {
  background: #fef2f2;
  color: #b91c1c;
}

.ro-agency-info[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #212529;
}

/* ── CTA Section ────────────────────────────────────────── */
.ro-summary-cta[b-7o2s44hliw] {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Pink gradient "Confirm & Generate Order" button */
.ro-btn-confirm[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-sm);
  /* Exact gradient from spec: bottom=#A72A61, top=#E3378C */
  background: linear-gradient(0deg, #0279FF 0%, #00A3F3 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(2, 121, 255, 0.30);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

.ro-btn-confirm:hover[b-7o2s44hliw] {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 121, 255, 0.40);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.ro-btn-confirm:active[b-7o2s44hliw] {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 121, 255, 0.24);
}

.ro-btn-confirm .bi[b-7o2s44hliw] {
  font-size: 0.95rem;
}

/* "← Back to Products" link */
.ro-back-to-products[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: #3FAAE3;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ro-back-to-products:hover[b-7o2s44hliw] {
  color: #2b8cbd;
  text-decoration: underline;
}

.ro-back-to-products .bi[b-7o2s44hliw] {
  font-size: 0.8rem;
}

/* =========================================================
   Payment Mode Section (review-order-payment.html only)
   ========================================================= */

/* Section heading: "Select the Payment Mode" */
.ro-payment-heading[b-7o2s44hliw] {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.4;
}

/* Ledger balance option row — full-width card above the gateway row */
.ro-ledger-option[b-7o2s44hliw] {
  margin-bottom: var(--space-3);
}

.ro-ledger-label[b-7o2s44hliw] {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

/* Row of two payment option cards */
.ro-payment-options[b-7o2s44hliw] {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

/* Individual payment option card — uses <label> for full-area click target */
.ro-payment-option[b-7o2s44hliw] {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #F8F8F8;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  position: relative;
}

.ro-payment-option .ro-payment-logo[b-7o2s44hliw] {
  flex: 1;
  margin: 0 auto;
  display: block;
}

.ro-payment-option:hover[b-7o2s44hliw] {
  border-color: #3FAAE3;
}

/* Selected state */
.ro-payment-option--selected[b-7o2s44hliw] {
  border-color: #3FAAE3;
  box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.05);
}

/* Hide the native radio input visually but keep it accessible */
.ro-payment-radio-input[b-7o2s44hliw] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Bootstrap Icon acting as the visual radio indicator */
.ro-payment-radio-icon[b-7o2s44hliw] {
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

/* Selected card: icon turns accent blue */
.ro-payment-option--selected .ro-payment-radio-icon[b-7o2s44hliw] {
  color: #3FAAE3;
}

/* Bank/payment logo image */
.ro-payment-logo[b-7o2s44hliw] {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* "Proceed to Checkout" button — blue gradient, full-width */
.ro-payment-btn-checkout[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(0deg, #0279FF 0%, #00A3F3 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(2, 121, 255, 0.32);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

.ro-payment-btn-checkout:hover[b-7o2s44hliw] {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 121, 255, 0.42);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.ro-payment-btn-checkout:active[b-7o2s44hliw] {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 121, 255, 0.24);
}

/* "← Back to Products" link (payment page variant) */
.ro-payment-back-link[b-7o2s44hliw] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.ro-payment-back-link:hover[b-7o2s44hliw] {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.ro-payment-back-link .bi[b-7o2s44hliw] {
  font-size: 0.8rem;
}

/* =========================================================
   MIID Cards Scroll Area (Left Column Inner)
   ========================================================= */

.ro-cards-scroll-area[b-7o2s44hliw] {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Thin custom scrollbar — matches Index page .product-grid */
.ro-cards-scroll-area[b-7o2s44hliw]::-webkit-scrollbar { width: 5px; }
.ro-cards-scroll-area[b-7o2s44hliw]::-webkit-scrollbar-track { background: transparent; }
.ro-cards-scroll-area[b-7o2s44hliw]::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

/* =========================================================
   Full-height two-column layout (lg+)
   ========================================================= */

@media (min-width: 992px) {
  /* Row fills remaining height; columns stretch to match */
  .ro-content > .row[b-7o2s44hliw] {
    flex: 1;
    min-height: 0;
    align-items: stretch !important;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  /* Left column: flex host — scroll lives on .ro-cards-scroll-area inside */
  .ro-content > .row > .col-lg-8[b-7o2s44hliw] {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: var(--space-4);
  }

  /* Right column: natural height, aligned to top */
  .ro-content > .row > .col-lg-4[b-7o2s44hliw] {
    align-self: flex-start;
  }
}

/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media (max-width: 991.98px) {
  .ro-sidebar[b-7o2s44hliw] {
    position: static;
    align-self: auto;
    margin-top: var(--space-4);
    height: auto;
  }

  .ro-summary-card[b-7o2s44hliw] {
    height: auto;
  }

  .ro-summary-body[b-7o2s44hliw] {
    overflow-y: visible;
  }

  .ro-content[b-7o2s44hliw] {
    overflow-y: auto;
    padding: var(--space-4);
    padding-bottom: var(--space-12);
  }

  .ro-content > .row[b-7o2s44hliw] {
    flex-wrap: wrap;
  }
}

/* ── Product type label (desktop + mobile) ──────────────────── */
.ro-product-type[b-7o2s44hliw] {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Mobile table → card-list transformation ─────────────────── */
@media (max-width: 767.98px) {
  .ro-table[b-7o2s44hliw],
  .ro-table tbody[b-7o2s44hliw],
  .ro-table tfoot[b-7o2s44hliw] { display: block; width: 100%; }

  .ro-table thead[b-7o2s44hliw] { display: none; }

  .ro-table tbody td.ro-col-sl[b-7o2s44hliw] { display: none; }

  .ro-table tbody tr[b-7o2s44hliw] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
  }

  .ro-table tbody td.ro-col-product[b-7o2s44hliw] {
    flex: 1;
    min-width: 0;
    padding: 0 var(--space-2) 0 0;
    order: 1;
    width: auto;
  }

  .ro-table tbody td.ro-col-subtotal[b-7o2s44hliw] {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
    text-align: right;
    padding: 0 !important;
    order: 2;
    font-size: var(--font-size-sm);
  }

  .ro-table tbody td.ro-col-price[b-7o2s44hliw],
  .ro-table tbody td.ro-col-qty[b-7o2s44hliw] {
    flex-shrink: 0;
    width: auto;
    min-width: 0;
    white-space: normal;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    padding: 2px 0 0;
    order: 3;
  }

  .ro-table tbody td[data-label][b-7o2s44hliw]::before {
    content: attr(data-label) ": ";
    font-weight: 500;
  }

  .ro-table tbody td.ro-col-qty[b-7o2s44hliw]::before {
    content: " · " attr(data-label) ": ";
  }

  .ro-table tfoot tr[b-7o2s44hliw] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: #FAFBFF;
    border-top: 1px solid var(--border-light);
  }

  .ro-table tfoot td[b-7o2s44hliw] { padding: 0; border-top: none; }

  .ro-total-label[b-7o2s44hliw] { text-align: left; }
  .ro-total-amount[b-7o2s44hliw] { padding-right: 0 !important; }
}

/* ── Sticky mobile CTA ───────────────────────────────────────── */
.ro-mobile-sticky-cta[b-7o2s44hliw] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  z-index: 200;
}

@media (max-width: 991.98px) {
  .ro-content[b-7o2s44hliw] {
    padding-bottom: 80px !important;
  }
}

@media (max-width: 767.98px) {
  .ro-content[b-7o2s44hliw] {
    padding: var(--space-3);
  }

  .ro-header[b-7o2s44hliw] {
    padding: 0 var(--space-4);
  }

  .ro-back-link[b-7o2s44hliw] {
    font-size: var(--font-size-base);
  }

  .ro-miid-card-header[b-7o2s44hliw] {
    padding: var(--space-3) var(--space-4);
  }

  .ro-header-actions .nav-text-btn span[b-7o2s44hliw] {
    display: none;
  }

  .ro-header-actions .nav-text-btn[b-7o2s44hliw] {
    padding: 0 8px;
  }
}
/* /Pages/SelectionHistory/PaymentEntryModal.razor.rz.scp.css */
/* ================================================================
   PaymentEntryModal — scoped CSS (pe- prefix)
   All selectors scoped via Blazor CSS isolation.
   ================================================================ */

.pe-wrap[b-807isqtmxm] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0 0;
    font-size: 13.5px;
    color: #222;
}

/* ── Summary banner ──────────────────────────────────────────── */
.pe-summary-bar[b-807isqtmxm] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pe-summary-box[b-807isqtmxm] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.pe-summary-selected[b-807isqtmxm] {
    background: #fde8e8;
}

.pe-summary-total[b-807isqtmxm] {
    background: #e6f6f4;
}

.pe-summary-label[b-807isqtmxm] {
    color: #444;
    font-weight: 500;
}

.pe-summary-value[b-807isqtmxm] {
    font-weight: 700;
    font-size: 14px;
    color: #111;
}

.pe-balance-block[b-807isqtmxm] {
    margin-left: auto;
    min-width: 260px;
}

.pe-balance-header[b-807isqtmxm] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pe-balance-label[b-807isqtmxm] {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.pe-balance-amount[b-807isqtmxm] {
    font-weight: 700;
    font-size: 16px;
    color: #16a34a;
}

.pe-progress-bar[b-807isqtmxm] {
    height: 6px;
    background: #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}

.pe-progress-fill[b-807isqtmxm] {
    height: 100%;
    background: #1e3a5f;
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 0;
}

/* ── Divider ─────────────────────────────────────────────────── */
.pe-divider[b-807isqtmxm] {
    margin: 0;
    border: none;
    border-top: 1px solid #e8e8e8;
}

/* ── Agency search bar ───────────────────────────────────────── */
.pe-agency-bar[b-807isqtmxm] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #eaf2fe;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.pe-agency-label[b-807isqtmxm] {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
    min-width: 80px;
}

.pe-agency-input-wrap[b-807isqtmxm] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pe-agency-input[b-807isqtmxm] {
    height: 32px;
    width: 180px;
    padding: 0 34px 0 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
}

.pe-agency-input:focus[b-807isqtmxm] {
    border-color: #86b7fe;
}

.pe-agency-input:disabled[b-807isqtmxm] {
    background: #f8f9fa;
    color: #495057;
}

.pe-agency-icon-btn[b-807isqtmxm] {
    position: absolute;
    right: 4px;
    height: 24px;
    width: 24px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6c757d;
    padding: 0;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

.pe-agency-icon-btn:hover:not(:disabled)[b-807isqtmxm] {
    background: #e9ecef;
    color: #212529;
}

.pe-agency-icon-btn:disabled[b-807isqtmxm] {
    opacity: 0.4;
    cursor: default;
}

.pe-agency-clear-btn[b-807isqtmxm] {
    color: #ef4444;
}

.pe-agency-clear-btn:hover[b-807isqtmxm] {
    background: #fef2f2;
    color: #b91c1c;
}

.pe-agency-info[b-807isqtmxm] {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.pe-agency-person[b-807isqtmxm] {
    font-size: 13px;
    font-weight: 500;
    color: #212529;
}

.pe-agency-balance[b-807isqtmxm] {
    font-size: 13px;
    font-weight: 600;
    color: #e91e8c;
}

/* ── Section: order chips ────────────────────────────────────── */
.pe-section[b-807isqtmxm] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pe-section-label[b-807isqtmxm] {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pe-chips-wrap[b-807isqtmxm] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pe-chip[b-807isqtmxm] {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1.5px solid #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Payment table ───────────────────────────────────────────── */
.pe-table-wrap[b-807isqtmxm] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.pe-table[b-807isqtmxm] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pe-table thead tr[b-807isqtmxm] {
    background: #f9fafb;
    border-bottom: 1.5px solid #e5e7eb;
}

.pe-table th[b-807isqtmxm] {
    padding: 6px 10px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pe-table td[b-807isqtmxm] {
    padding: 7px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.pe-table tbody tr:last-child td[b-807isqtmxm] {
    border-bottom: none;
}

.pe-table tbody tr.pe-row-edit[b-807isqtmxm] {
    background: #f8faff;
}

/* Column widths */
.pe-col-no[b-807isqtmxm]      { width: 36px; color: #888; }
.pe-col-mode[b-807isqtmxm]    { width: 130px; }
.pe-col-date[b-807isqtmxm]    { width: 150px; }
.pe-col-txnid[b-807isqtmxm]   { min-width: 100px; }
.pe-col-amount[b-807isqtmxm]  { width: 120px; }
.pe-col-doneby[b-807isqtmxm]  { width: 110px; }
.pe-col-miid[b-807isqtmxm]    { width: 120px; }
.pe-col-actions[b-807isqtmxm] { width: 64px; }

/* Input & select in edit rows */
.pe-input[b-807isqtmxm] {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    color: #222;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.pe-input:focus[b-807isqtmxm] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

.pe-input[b-807isqtmxm]::placeholder {
    color: #b0b0b0;
}

.pe-select[b-807isqtmxm] {
    width: 100%;
    height: 28px;
    padding: 0 4px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    color: #222;
    background: #fff;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

.pe-select:focus[b-807isqtmxm] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

/* Action buttons */
.pe-action-wrap[b-807isqtmxm] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pe-btn-icon[b-807isqtmxm] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    padding: 0;
    transition: background 0.15s;
}

.pe-btn-edit[b-807isqtmxm] {
    color: #6b7280;
}

.pe-btn-edit:hover[b-807isqtmxm] {
    background: #f0f0f0;
    color: #222;
}

.pe-btn-save[b-807isqtmxm] {
    color: #2563eb;
}

.pe-btn-save:hover[b-807isqtmxm] {
    background: #eff6ff;
}

.pe-btn-cancel[b-807isqtmxm] {
    color: #9ca3af;
}

.pe-btn-cancel:hover[b-807isqtmxm] {
    background: #f3f4f6;
    color: #374151;
}

.pe-btn-delete[b-807isqtmxm] {
    color: #ef4444;
}

.pe-btn-delete:hover[b-807isqtmxm] {
    background: #fef2f2;
}

/* ── Add new entry button ────────────────────────────────────── */
.pe-add-btn[b-807isqtmxm] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1.5px solid #3b82f6;
    border-radius: 7px;
    background: #fff;
    color: #3b82f6;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
}

.pe-add-btn:hover[b-807isqtmxm] {
    background: #eff6ff;
}

/* ── Number input — hide browser spin arrows ─────────────────── */
.pe-input-number[b-807isqtmxm]::-webkit-outer-spin-button,
.pe-input-number[b-807isqtmxm]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pe-input-number[b-807isqtmxm] {
    -moz-appearance: textfield;
}

/* ── Note ────────────────────────────────────────────────────── */
.pe-note[b-807isqtmxm] {
    padding: 12px 16px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 7px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────── */
.pe-footer[b-807isqtmxm] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.pe-btn-confirm[b-807isqtmxm] {
    height: 36px;
    padding: 0 32px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.pe-btn-confirm:hover[b-807isqtmxm] {
    background: #2563eb;
}

.pe-btn-cancel-footer[b-807isqtmxm] {
    height: 36px;
    padding: 0 28px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.pe-btn-cancel-footer:hover[b-807isqtmxm] {
    background: #e5e7eb;
}

/* ── Mobile card list ────────────────────────────────────────── */
.pe-card-list[b-807isqtmxm] {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.pe-card[b-807isqtmxm] {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 14px;
}

.pe-card-edit[b-807isqtmxm] {
    border-color: #93c5fd;
    background: #f8faff;
}

.pe-card-header[b-807isqtmxm] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.pe-card-badge[b-807isqtmxm] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pe-card-header .pe-card-value[b-807isqtmxm] {
    font-size: 14px;
    font-weight: 600;
}

.pe-card-edit-label[b-807isqtmxm] {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
}

.pe-card-grid[b-807isqtmxm] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.pe-card-field[b-807isqtmxm] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pe-card:not(.pe-card-edit) .pe-card-field[b-807isqtmxm] {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 10px;
}

.pe-card-label[b-807isqtmxm] {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pe-card-value[b-807isqtmxm] {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pe-card-hint[b-807isqtmxm] {
    font-size: 11px;
    color: #999;
}

.pe-card-actions[b-807isqtmxm] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* ── Mobile breakpoint ───────────────────────────────────────── */
@media (max-width: 768px) {
    .pe-table[b-807isqtmxm] {
        display: none;
    }

    .pe-table-wrap[b-807isqtmxm] {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .pe-card-list[b-807isqtmxm] {
        display: flex;
    }

    .pe-summary-bar[b-807isqtmxm] {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pe-summary-box[b-807isqtmxm] {
        flex: 1 1 45%;
    }

    .pe-balance-block[b-807isqtmxm] {
        flex-basis: 100%;
        margin-left: 0;
        min-width: 0;
    }

    .pe-agency-bar[b-807isqtmxm] {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .pe-agency-label[b-807isqtmxm] {
        min-width: 0;
    }

    .pe-agency-input-wrap[b-807isqtmxm] {
        width: 100%;
    }

    .pe-agency-input[b-807isqtmxm] {
        width: 100%;
    }

    .pe-agency-info[b-807isqtmxm] {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pe-add-btn[b-807isqtmxm] {
        width: 100%;
        justify-content: center;
    }

    .pe-footer[b-807isqtmxm] {
        flex-direction: row;
    }

    .pe-btn-confirm[b-807isqtmxm],
    .pe-btn-cancel-footer[b-807isqtmxm] {
        flex: 1;
    }
}
/* /Pages/SelectionHistory/SelectionHistoryPage.razor.rz.scp.css */
/* ================================================================
   SelectionHistoryPage — scoped CSS (Blazor CSS isolation)
   All selectors are prefixed sh- and further scoped by Blazor's
   auto-generated attribute, so nothing leaks to other pages.
   ================================================================ */

/* ── Page shell ─────────────────────────────────────────────── */
.sh-page[b-8ndzlosg9o] {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    padding: 0;
    background: #f0f2f5;
}

/* ── In-page header ─────────────────────────────────────────── */
.sh-header[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.sh-back-btn[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #222;
    padding: 0;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.15s;
}

.sh-back-btn:hover[b-8ndzlosg9o] {
    background: #f0f0f0;
}

.sh-title[b-8ndzlosg9o] {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-count[b-8ndzlosg9o] {
    font-weight: 600;
    color: #333;
}

.sh-header-actions[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Selection status + header Payment Entry button */
.sh-selection-status[b-8ndzlosg9o] {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    padding: 6px 12px;
    background: #f5f6f8;
    border-radius: 6px;
}

.sh-btn-payment-entry-header[b-8ndzlosg9o] {
    height: 30px;
    padding: 0 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.sh-btn-payment-entry-header:hover:not(:disabled)[b-8ndzlosg9o] {
    background: #2563eb;
}

.sh-btn-payment-entry-header:disabled[b-8ndzlosg9o] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search */
.sh-search-wrap[b-8ndzlosg9o] {
    position: relative;
    display: flex;
    align-items: center;
}

.sh-search-input[b-8ndzlosg9o] {
    height: 30px;
    width: 210px;
    padding: 0 36px 0 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sh-search-input:focus[b-8ndzlosg9o] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    background: #fff;
}

.sh-search-input[b-8ndzlosg9o]::placeholder {
    color: #aaa;
}

.sh-search-icon[b-8ndzlosg9o] {
    position: absolute;
    right: 10px;
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

/* Filter & Week buttons */
.sh-filter-btn[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    color: #555;
    border-radius: 6px;
    transition: background 0.15s;
}

.sh-filter-btn:hover[b-8ndzlosg9o] {
    background: #f0f0f0;
}

.sh-week-badge[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border: 1.5px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.sh-week-badge:hover[b-8ndzlosg9o] {
    background: rgba(59,130,246,.06);
}

/* ── Body (table + sidebar) ──────────────────────────────────── */
.sh-body[b-8ndzlosg9o] {
    display: flex;
    flex: 1;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
    background: #f0f2f5;
}

/* ── Table wrapper ───────────────────────────────────────────── */
.sh-table-wrap[b-8ndzlosg9o] {
    flex: 1;
    overflow: auto;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Table ───────────────────────────────────────────────────── */
.sh-table[b-8ndzlosg9o] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    color: #333;
    background: #fff;
}

.sh-table thead tr[b-8ndzlosg9o] {
    border-bottom: 2px solid #e8e8e8;
}

.sh-table th[b-8ndzlosg9o] {
    padding: 8px 12px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    color: #666;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #f8f9fa;
}

.sh-table td[b-8ndzlosg9o] {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    white-space: nowrap;
}

.sh-table tbody tr:hover[b-8ndzlosg9o] {
    background: #f7f9ff;
}

.sh-table tbody tr.sh-row-selected[b-8ndzlosg9o] {
    background: #eff6ff;
}

/* Column widths */
.sh-col-check[b-8ndzlosg9o]  { width: 44px; }
.sh-col-no[b-8ndzlosg9o]     { width: 44px; }
.sh-col-wk[b-8ndzlosg9o]     { width: 56px; }
.sh-col-date[b-8ndzlosg9o]   { width: 100px; }
.sh-col-orderno[b-8ndzlosg9o] { width: 150px; min-width: 150px; }
.sh-col-miid[b-8ndzlosg9o] { width: 240px; min-width: 240px; max-width: 240px; }
.sh-miid-no[b-8ndzlosg9o] { font-weight: 600; }
.sh-col-miid > div[b-8ndzlosg9o] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-col-type[b-8ndzlosg9o]   { width: 100px; }
.sh-col-amount[b-8ndzlosg9o] { width: 150px; text-align: right !important; }
.sh-col-payment[b-8ndzlosg9o] { width: 180px; }
.sh-col-status[b-8ndzlosg9o] { width: 110px; }
.sh-col-miorder[b-8ndzlosg9o] { min-width: 140px; }
.sh-col-action[b-8ndzlosg9o]  { width: 64px; text-align: center; }

.sh-btn-kebab[b-8ndzlosg9o] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 5px;
    color: #555;
    font-size: 15pt;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sh-btn-kebab:hover:not(:disabled)[b-8ndzlosg9o] {
    background: #f0f0f0;
    color: #222;
}

.sh-btn-kebab:disabled[b-8ndzlosg9o] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Checkboxes */
.sh-table input[type="checkbox"][b-8ndzlosg9o] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Order link */
.sh-order-link[b-8ndzlosg9o] {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.sh-order-link:hover[b-8ndzlosg9o] {
    text-decoration: underline;
}

/* Payment link */
.sh-payment-link[b-8ndzlosg9o] {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.sh-payment-link:hover[b-8ndzlosg9o] {
    text-decoration: underline;
}

.sh-payment-zero[b-8ndzlosg9o] {
    color: #333;
}

/* Status badges */
.sh-status[b-8ndzlosg9o] {
    font-size: 13px;
}

.sh-status-pending[b-8ndzlosg9o] {
    color: #b45309;
}

.sh-status-generated[b-8ndzlosg9o] {
    color: #166534;
}

.sh-status-cancelled[b-8ndzlosg9o] {
    color: #991b1b;
}

/* Action buttons */
.sh-action-wrap[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-btn-regenerate[b-8ndzlosg9o] {
    font-size: 16pt;
    height: 30px;
    padding: 0 12px;
    /* border: 1.5px solid #3b82f6;*/
    border-radius: 5px; 
    border:none;
    background: rgba(59,130,246,.1);
    color: #3b82f6;
    /* font-size: 12.5px; */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.sh-btn-regenerate:hover:not(:disabled)[b-8ndzlosg9o] {
    background: rgba(59,130,246,.2);
}

.sh-btn-regenerate:disabled[b-8ndzlosg9o] {
    opacity: 0.5;
    cursor: not-allowed;
}

.sh-btn-download[b-8ndzlosg9o] {    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 13pt;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s;
}

.sh-btn-download:hover:not(:disabled)[b-8ndzlosg9o] {
    background: #f0f0f0;
    color: #222;
}

.sh-btn-download:disabled[b-8ndzlosg9o] {
    opacity: 0.4;
    cursor: not-allowed;
}

.sh-btn-cancel[b-8ndzlosg9o] {
    font-size: 13pt;
    border:none;
    height: 30px;
    padding: 0 12px;
    /* border: 1.5px solid #dc2626; */
    border-radius: 5px;
    background: #fff;
    color: #dc2626;
    /* font-size: 12.5px; */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.sh-btn-cancel:hover:not(:disabled)[b-8ndzlosg9o] {
    background: #fef2f2;
    color: #991b1b;
}

.sh-btn-cancel:disabled[b-8ndzlosg9o] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Empty state */
.sh-empty[b-8ndzlosg9o] {
    text-align: center;
    color: #999;
    padding: 48px 0 !important;
    font-size: 14px;
}

/* ── Pagination ──────────────────────────────────────────────── */
.sh-pager-wrap[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 16px;
    gap: 12px;
}

.sh-pager-info[b-8ndzlosg9o] {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.sh-pager-left[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sh-page-size-wrap[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-page-size-select[b-8ndzlosg9o] {
    font-size: 13px;
    color: #666;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 2px 4px;
    height: 26px;
    background: #fff;
}
/* ── Notes ───────────────────────────────────────────────────── */
.mio-notes[b-8ndzlosg9o] {
    margin: 0 16px 16px;
    padding: 14px 18px;
    background: #fffde7;
    border: 1px solid #f9e87f;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 13.5px;
    color: #555;
}

.mio-notes-title[b-8ndzlosg9o] {
    margin: 0 0 6px;
    font-weight: 600;
    color: #444;
}

.mio-notes-list[b-8ndzlosg9o] {
    margin: 0;
    padding-left: 18px;
}

.mio-notes-list li[b-8ndzlosg9o] {
    margin-bottom: 3px;
    line-height: 1.5;
}

.mio-notes-list li:last-child[b-8ndzlosg9o] {
    margin-bottom: 0;
}

/* ── Mobile card list ────────────────────────────────────────── */
.sh-card-list[b-8ndzlosg9o] {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.sh-card[b-8ndzlosg9o] {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 14px;
}

.sh-card-selected[b-8ndzlosg9o] {
    border-color: #93c5fd;
    background: #f7faff;
}

.sh-card-header[b-8ndzlosg9o] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.sh-card-header-left[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sh-card-header-left input[type="checkbox"][b-8ndzlosg9o] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.sh-card-badge[b-8ndzlosg9o] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sh-card-header .sh-order-link[b-8ndzlosg9o] {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-card-header-meta[b-8ndzlosg9o] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.sh-card-header-meta .sh-status[b-8ndzlosg9o] {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f5f5f5;
}

.sh-card-header-date[b-8ndzlosg9o] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #888;
    white-space: nowrap;
}

.sh-card-header-date i[b-8ndzlosg9o] {
    font-size: 12px;
}

.sh-card-grid[b-8ndzlosg9o] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.sh-card-cell[b-8ndzlosg9o] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 0;
}

.sh-card-label[b-8ndzlosg9o] {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.sh-card-value[b-8ndzlosg9o] {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-card-value-wrap[b-8ndzlosg9o] {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.sh-card-miorder[b-8ndzlosg9o] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.sh-card-actions[b-8ndzlosg9o] {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.sh-card-actions .sh-action-btn[b-8ndzlosg9o] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.sh-card-actions .sh-action-btn i[b-8ndzlosg9o] {
    font-size: 14px;
}

.sh-card-actions .sh-action-btn:disabled[b-8ndzlosg9o] {
    opacity: 0.45;
    cursor: not-allowed;
}

.sh-action-update[b-8ndzlosg9o] {
    background: rgba(59,130,246,.1);
    color: #3b82f6;
}

.sh-action-update:hover:not(:disabled)[b-8ndzlosg9o] {
    background: rgba(59,130,246,.2);
}

.sh-action-cancel[b-8ndzlosg9o] {
    background: #fef2f2;
    color: #dc2626;
}

.sh-action-cancel:hover:not(:disabled)[b-8ndzlosg9o] {
    background: #fde2e2;
}

.sh-action-view[b-8ndzlosg9o] {
    background: #f0f0f0;
    color: #555;
}

.sh-action-view:hover:not(:disabled)[b-8ndzlosg9o] {
    background: #e4e4e4;
}

/* ── Mobile breakpoint ───────────────────────────────────────── */
@media (max-width: 768px) {
    .sh-table[b-8ndzlosg9o] {
        display: none;
    }

    .sh-card-list[b-8ndzlosg9o] {
        display: flex;
    }

    .sh-table-wrap[b-8ndzlosg9o] {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .sh-body[b-8ndzlosg9o] {
        padding: 10px;
    }

    .sh-header[b-8ndzlosg9o] {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .sh-header-actions[b-8ndzlosg9o] {
        flex-wrap: wrap;
        flex-basis: 100%;
        gap: 8px;
    }

    .sh-selection-status[b-8ndzlosg9o] {
        flex: 1;
    }

    .sh-search-wrap[b-8ndzlosg9o] {
        flex: 1;
        flex-basis: 100%;
    }

    .sh-search-input[b-8ndzlosg9o] {
        width: 100%;
    }

    .sh-pager-wrap[b-8ndzlosg9o] {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sh-pager-left[b-8ndzlosg9o] {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sh-pager-info[b-8ndzlosg9o] {
        white-space: normal;
        text-align: center;
    }
}
