﻿:root {
    --iw-bg: #f4f6fa;
    --iw-surface: #ffffff;
    --iw-surface-soft: #f8fafc;
    --iw-surface-strong: #0f172a;
    --iw-line: #e2e8f0;
    --iw-line-strong: #cbd5e1;
    --iw-text: #0f172a;
    --iw-muted: #64748b;
    --iw-primary: #1f6feb;
    --iw-primary-strong: #174db6;
    --iw-success: #16a34a;
    --iw-warning: #d97706;
    --iw-info: #0284c7;
    --iw-sidebar: linear-gradient(180deg, #111c35 0%, #182b52 100%);
    --iw-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
    --bs-body-font-family: 'Manrope', sans-serif;
}

/* Sidebar surface: 25% compact sizing without transform/scale. */
html:root {
    --iw-sidebar-width: 204px;
    --iw-sidebar-collapsed-width: 71px;
}

body .app-sidebar { padding: 15px 11px; gap: 15px; }
body .sidebar-top { gap: 9px; padding: 3px 5px 8px; }
body .sidebar-product-header .brand-mark { width: 47px; height: 47px; border-radius: 12px; }
body .app-sidebar .sidebar-product-header .sidebar-product-copy strong { font-size: 0.987rem; }
body .sidebar-product-header + .sidebar-nav-scroll { margin-top: -8px; }
body .nav-group { gap: 5px; }
body .nav-group-title { font-size: 0.495rem; letter-spacing: 0.135em; padding: 0 9px; margin-bottom: 3px; }
body .nav-link,
body .nav-parent { min-height: 33px; padding: 8px 11px; border-radius: 11px; }
body .nav-link-main { gap: 8px; font-size: 0.675rem; }
body .nav-link i,
body .nav-parent i,
body .submenu-link i { font-size: 0.7125rem; }
body .nav-link-chevron { font-size: 0.64rem; }
body .submenu-list { gap: 5px; padding: 2px 0 0 9px; margin-top: 2px; }
body .submenu-link { min-height: 30px; padding: 8px 9px; border-radius: 9px; font-size: 0.66rem; gap: 8px; }
body .submenu-flyout { left: calc(100% + 8px); min-width: 180px; padding: 9px; border-radius: 14px; }
body .submenu-flyout-title { font-size: 0.51rem; letter-spacing: 0.135em; padding: 2px 5px 6px; }
body .sidebar-footer-stack { padding-top: 8px; gap: 8px; }
body .app-sidebar .sidebar-footer-stack .sidebar-company-dock { gap: 8px; }
body .app-sidebar .sidebar-footer-stack .sidebar-company-dock .brand-mark { width: 26px; height: 26px; flex: 0 0 26px; }
body .app-sidebar .sidebar-company-dock .sidebar-company-copy .inventara-wordmark { font-size: 0.99rem; }
body .sidebar-user-menu-slot .sidebar-user-trigger { min-height: 38px; gap: 9px; padding: 7px 9px; border-radius: 11px; }
body .sidebar-user-menu-slot .sidebar-user-trigger .user-avatar-clean { width: 27px; height: 27px; flex: 0 0 27px; font-size: 0.75rem; }
body .sidebar-user-menu-slot .sidebar-user-trigger .user-copy-clean strong { font-size: 0.765rem; }
body .sidebar-user-trigger-icon { font-size: 0.9375rem; }
body .sidebar-user-menu-slot .user-menu-panel-clean.sidebar-user-panel-card { bottom: calc(100% + 11px); padding: 8px; border-radius: 17px; gap: 8px; }
body .sidebar-user-panel-section { min-height: 42px; border-radius: 12px; gap: 9px; padding: 9px 11px; }
body .sidebar-user-panel-profile .user-avatar-clean.large { width: 39px; height: 39px; flex: 0 0 39px; font-size: 0.81rem; }
body .sidebar-user-panel-profile > div > strong,
body .sidebar-user-panel-action { font-size: 0.75rem; }
body .sidebar-user-panel-profile > div > span { font-size: 0.66rem; }
body .sidebar-mode-toggle,
body .sidebar-language-toggle { padding: 3px; }
body .sidebar-mode-toggle button,
body .sidebar-language-toggle button { width: 29px; height: 26px; font-size: 0.75rem; }
body .sidebar-toggle-float,
body .sidebar-search-float,
body .shell-layout.collapsed .sidebar-toggle-float,
body .shell-layout.collapsed .sidebar-search-float { left: calc(var(--iw-sidebar-width) - 14px); width: 29px; height: 29px; border-radius: 9px; }
body .sidebar-toggle-float { top: 69px; }
body .sidebar-search-float,
body .shell-layout.collapsed .sidebar-search-float { top: 104px; }
body .sidebar-toggle-float i,
body .sidebar-search-float i { font-size: 0.79rem; }
body .shell-layout.collapsed .app-sidebar { padding-inline: 9px; }
body .shell-layout.collapsed .sidebar-toggle-float,
body .shell-layout.collapsed .sidebar-search-float { left: calc(var(--iw-sidebar-collapsed-width) - 14px); }
body .shell-layout.collapsed .sidebar-footer-stack { gap: 8px; padding-top: 8px; }
body .shell-layout.collapsed .app-sidebar .sidebar-footer-stack .sidebar-company-dock { width: 41px; }
body .shell-layout.collapsed .app-sidebar .sidebar-footer-stack .sidebar-company-dock .brand-mark { width: 27px; height: 27px; flex-basis: 27px; }
body .shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger { width: 41px; height: 41px; }
body .shell-layout.collapsed .sidebar-user-menu-slot .user-menu-panel-clean.sidebar-user-panel-card { left: calc(100% + 11px); width: 195px; }

@media (max-width: 1024px) {
    body .shell-layout .app-sidebar,
    body .shell-layout.collapsed .app-sidebar { width: min(204px, calc(100vw - 21px)); max-width: min(204px, calc(100vw - 21px)); padding: 14px 11px; gap: 11px; }
    body .shell-layout .nav-link,
    body .shell-layout .nav-parent,
    body .shell-layout.collapsed .nav-link,
    body .shell-layout.collapsed .nav-parent { min-height: 33px; padding: 8px 9px; }
    body .shell-layout .sidebar-user-menu-slot .sidebar-user-trigger,
    body .shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger { min-height: 38px; padding: 5px 8px; }
}

/* Final login compact overrides; keep after all legacy login rules. */
body .login-experience {
    grid-template-columns: minmax(0, 1.15fr) minmax(315px, 0.85fr);
    font-size: 75%;
}

body .login-page-product-mark { top: 33px; left: 39px; gap: 15px; font-size: 1.125rem; }
body .login-page-product-logo { width: 54px; height: 54px; border-radius: 14px; }
body .login-page-product-mark span { font-size: 1.575rem; }
body .login-showcase { padding: 33px 36px 30px 39px; gap: 24px; }
body .login-showcase::after { inset: 18px 21px auto auto; width: 165px; height: 165px; filter: blur(6px); }
body .login-showcase-copy { max-width: 420px; margin-top: clamp(113px, 16.5vh, 188px); }
body .login-eyebrow { margin-bottom: 12px; font-size: 0.54rem; }
body .login-showcase-copy h1 { font-size: clamp(2.1rem, 3vw, 3.75rem); }
body .login-showcase-copy p { max-width: 353px; margin-top: 17px; font-size: 0.795rem; }
body .login-metric-grid { gap: 14px; }
body .login-metric-card { min-height: 143px; padding: 17px; border-radius: 21px; backdrop-filter: blur(14px); }
body .login-metric-card span { font-size: 0.585rem; }
body .login-metric-card strong { margin-top: 12px; font-size: 1.11rem; }
body .login-metric-card p { margin-top: 12px; font-size: 0.75rem; }
body .login-form-shell { gap: 12px; padding: 24px; }
body .login-form-card { width: min(100%, 420px); padding: 32px; border-radius: 24px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16); }
body .login-kicker { padding: 6px 9px; font-size: 0.6rem; }
body .login-form-head { margin-bottom: 18px; }
body .login-form-head h2 { margin: 12px 0 8px; font-size: 1.95rem; }
body .login-form-head p { font-size: 0.75rem; }
body .login-error-banner { gap: 9px; margin-bottom: 14px; padding: 11px 12px; border-radius: 14px; }
body .login-form-grid { gap: 14px; }
body .login-form-grid .field-label { font-size: 0.75rem; }
body .login-form-grid .rz-textbox,
body .login-form-grid .rz-password { min-height: 42px; border-radius: 14px !important; padding-left: 14px !important; font-size: 0.75rem; }
body .login-form-footer-row { gap: 12px; font-size: 0.69rem; }
body .login-form-footer-row .rz-chkbox,
body .login-form-footer-row .rz-chkbox-box { width: 15px; height: 15px; }
body .login-submit-btn { min-height: 44px; border-radius: 14px; gap: 9px; font-size: 0.79rem; box-shadow: 0 14px 24px rgba(31, 111, 235, 0.28); }
body .login-trust-band { gap: 11px; margin-top: 17px; padding-top: 17px; }
body .login-trust-band strong { font-size: 0.71rem; }
body .login-trust-band span { margin-top: 5px; font-size: 0.645rem; }
body .login-form-footer-stack { right: 24px; bottom: 21px; gap: 15px; }
body .login-language-switch { grid-template-columns: repeat(2, 35px); gap: 5px; padding: 5px; }
body .login-language-option { width: 35px; height: 29px; font-size: 0.75rem; }
body .login-footer-brand-lockup { gap: 12px; }
body .login-footer-brand-logo { width: 54px; height: 54px; }
body .login-footer-wordmark { font-size: 1.77rem; }

@media (max-width: 1100px) {
    body .login-experience { grid-template-columns: 1fr; }
    body .login-page-product-mark { top: 21px; left: 17px; }
    body .login-showcase { padding: 84px 17px 21px; }
    body .login-form-shell { padding: 21px 17px; }
    body .login-form-card { width: 100%; padding: 24px 18px; }
    body .login-form-footer-stack { gap: 9px; margin-top: 6px; }
}

@media (max-width: 768px) {
    body .login-showcase { padding: 72px 14px 8px; }
    body .login-page-product-mark { top: 18px; left: 14px; gap: 9px; }
    body .login-page-product-logo { width: 45px; height: 45px; border-radius: 11px; }
    body .login-page-product-mark span { font-size: 1.31rem; }
    body .login-showcase-copy h1 { font-size: 1.8rem; }
    body .login-form-shell { padding: 14px; }
    body .login-form-card { padding: 21px 14px; border-radius: 18px; }
    body .login-language-switch { grid-template-columns: repeat(2, 32px); padding: 4px; }
    body .login-language-option { width: 32px; height: 26px; font-size: 0.65rem; }
    body .login-footer-brand-logo { width: 37px; height: 37px; }
    body .login-footer-wordmark { font-size: 1.09rem; }
}

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--iw-bg) 100%);
    color: var(--iw-text);
}

body {
    font-family: var(--bs-body-font-family);
}

a {
    color: inherit;
    text-decoration: none;
}

.shell-layout {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 20px;
    background: var(--iw-sidebar);
    color: #edf4ff;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 4px;
    margin-right: -4px;
}

.sidebar-nav-scroll::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.sidebar-nav-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.sidebar-company-dock {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: center;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 0;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    background: transparent;
    box-shadow: none;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span {
    font-size: 0.78rem;
    color: rgba(237, 244, 255, 0.72);
}

.sidebar-product-copy strong,
.sidebar-product-copy span {
    display: block;
}

.sidebar-product-copy strong {
    font-size: 1.18rem;
    color: #ffffff;
    letter-spacing: 0;
    line-height: 1;
}

.sidebar-product-copy span {
    display: none;
}

.nav-group {
    display: grid;
    gap: 8px;
}

.nav-group-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(237, 244, 255, 0.54);
    padding: 0 12px;
}

.nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    color: #edf4ff;
    transition: 0.2s ease;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link-main {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.96rem;
    font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shell-main {
    padding: 22px 28px 36px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--iw-muted);
    margin-bottom: 8px;
}

.app-header h2,
.page-header-card h1,
.hero-card h1,
.auth-panel h1,
.form-title h2,
.empty-state h3 {
    margin: 0;
    letter-spacing: 0;
    font-weight: 800;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-header-actions-only {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.header-chip,
.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: var(--iw-shadow);
}

.user-chip small {
    display: block;
    color: var(--iw-muted);
}

.user-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--iw-success);
}

.shell-content {
    display: grid;
    gap: 20px;
}

.page-header-card,
.hero-card,
.panel-card,
.auth-panel,
.stat-card,
.empty-state {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.98);
    box-shadow: var(--iw-shadow);
}

.page-header-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-radius: 24px;
    padding: 24px 28px;
}

.page-header-card p,
.hero-card p,
.empty-state p,
.stat-copy p {
    margin: 10px 0 0;
    color: var(--iw-muted);
}

.app-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--iw-muted);
}

.app-breadcrumb .separator {
    color: var(--iw-line-strong);
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    border-radius: 28px;
}

.metronic-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 247, 255, 0.98) 100%);
}

.hero-badge {
    padding: 12px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--iw-primary), #54a6ff);
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    border-radius: 22px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--iw-primary), #3ba0ff);
}

.stat-copy span,
.panel-head span {
    color: var(--iw-muted);
    font-size: 0.86rem;
}

.stat-copy strong {
    display: block;
    font-size: 1.8rem;
    margin-top: 10px;
}

.stat-copy small {
    display: block;
    margin-top: 12px;
    color: var(--iw-primary);
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
}

.panel-card {
    border-radius: 24px;
    padding: 24px;
}

.panel-card.full-width {
    grid-column: 1 / -1;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.panel-head h3 {
    margin: 0;
    font-weight: 800;
}

.inventory-grid {
    border: 1px solid var(--iw-line);
    border-radius: 18px;
    overflow: hidden;
}

.oms-planning-results-grid {
    overflow-x: auto;
    --rz-grid-column-resizer-width: 0.875rem;
    --rz-grid-column-resizer-helper-width: 0.1875rem;
    --rz-grid-column-resizer-helper-background-color: var(--iw-primary);
}

.oms-planning-results-grid .rz-grid-table {
    min-width: 82rem;
}

.oms-planning-results-grid .rz-grid-table thead th {
    position: relative;
    overflow: visible;
}

.oms-planning-results-grid .rz-column-resizer {
    z-index: 3;
    pointer-events: auto;
    touch-action: none;
}

.oms-planning-results-grid .rz-column-resizer::after {
    opacity: 0.55;
}

.oms-planning-results-grid .rz-column-resizer:hover::after,
.oms-planning-results-grid .rz-column-resizer:active::after {
    opacity: 1;
}

.required-field-marker {
    color: #dc2626;
    font-weight: 800;
}

.warehouse-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.warehouse-overview strong,
.warehouse-overview span {
    display: block;
}

.warehouse-overview span {
    color: var(--iw-muted);
}

.warehouse-pill {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.warehouse-pill.success { background: #dcfce7; color: #166534; }
.warehouse-pill.warning { background: #ffedd5; color: #92400e; }
.warehouse-pill.info { background: #e0f2fe; color: #075985; }

.empty-state {
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
}

.empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: white;
    background: linear-gradient(135deg, #1f6feb, #60a5fa);
    font-size: 1.4rem;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 28px;
    align-items: stretch;
}

.auth-panel {
    border-radius: 32px;
    padding: 38px;
    position: relative;
}

.auth-panel.intro {
    background: linear-gradient(160deg, #101b35 0%, #1a315c 100%);
    color: #eef5ff;
}

.auth-panel.intro .eyebrow,
.auth-panel.intro p,
.auth-panel.intro span {
    color: rgba(238, 245, 255, 0.78);
}

.auth-highlights {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.auth-highlights div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    margin-bottom: 18px;
}

.field-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 700;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: var(--iw-muted);
    font-size: 0.92rem;
}

.support-copy {
    font-size: 0.85rem;
}

.erp-grid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.erp-test-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.erp-test-feedback i {
    font-size: 1rem;
    margin-top: 2px;
}

.erp-test-feedback strong,
.erp-test-feedback span {
    display: block;
}

.erp-test-feedback span {
    margin-top: 4px;
    color: var(--iw-muted);
    font-size: 0.88rem;
    word-break: break-word;
}

.erp-test-feedback.success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.2);
    color: var(--iw-success);
}

.erp-test-feedback.error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
    color: #dc2626;
}

.erp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.erp-form-field {
    display: grid;
    gap: 8px;
}

.erp-form-field-full {
    grid-column: 1 / -1;
}

.erp-form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 6px;
}

.rz-messages-error {
    font-size: 0.8rem;
    color: #dc2626;
}


.seed-hint {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--iw-surface-soft);
    border: 1px solid var(--iw-line);
}

.seed-hint span,
.seed-hint strong {
    display: block;
}

.app-loader-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--iw-muted);
    margin-top: 18px;
}

.app-loader-wrap.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: rgba(244, 246, 250, 0.88);
    z-index: 2800;
}

.app-loader {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(31, 111, 235, 0.2);
    border-top-color: var(--iw-primary);
    animation: spin 1s linear infinite;
}

.app-loader-wrap-dashboard {
    margin-top: 0;
    color: #64748b;
}

.app-loader-dashboard-card {
    width: min(100%, 360px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.1rem;
}

.app-loader-brand {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
}

.app-loader-brand-mark {
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    padding: 12px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.22), transparent 58%),
        linear-gradient(180deg, #020817, #0f172a);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.18),
        inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.app-loader-brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-loader-brand-name {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.app-loader-dashboard {
    width: 64px;
    height: 64px;
    border-width: 5px;
    border-color: rgba(37, 99, 235, 0.16);
    border-top-color: #2563eb;
    border-right-color: #60a5fa;
}

.app-loader-message {
    font-size: 1rem;
    color: #64748b;
}

.rz-textbox,
.rz-password,
.rz-dropdown,
.rz-numeric {
    border-radius: 14px !important;
    border-color: var(--iw-line) !important;
    min-height: 46px;
    box-shadow: none !important;
}

.rz-cell-data,
.rz-header-column,
.rz-paginator {
    font-family: var(--bs-body-font-family);
}

#blazor-error-ui {
    background: #fee2e2;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1200;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .auth-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .shell-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
    }

    .sidebar-nav-scroll {
        overflow: visible;
        padding-right: 0;
        margin-right: 0;
    }

    .shell-main {
        padding: 18px;
    }

    .app-header,
    .page-header-card,
    .hero-card,
    .remember-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive sidebar architecture */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body.sidebar-drawer-locked {
    overflow: hidden;
    touch-action: none;
}

.shell-layout {
    min-height: 100dvh;
}

.app-sidebar {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.sidebar-product-header,
.sidebar-search-shell,
.sidebar-footer-stack {
    flex: 0 0 auto;
}

.sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-padding-block: 12px;
}

.sidebar-drawer-close,
.mobile-menu-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    display: none;
    place-items: center;
}

.sidebar-drawer-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mobile-menu-button {
    background: #ffffff;
    color: #172033;
    border-color: #dbe3ee;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.mobile-menu-button i,
.sidebar-drawer-close i {
    font-size: 1.25rem;
}

.sidebar-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 1990;
    padding: 0;
    border: 0;
    background: rgba(3, 8, 20, 0.62);
    backdrop-filter: blur(2px);
}

.sidebar-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2590;
    padding: 0;
    border: 0;
    background: rgba(3, 8, 20, 0.6);
}

.sidebar-search-popover {
    z-index: 2600;
}

.sidebar-search-popover:focus {
    outline: none;
}

.nav-parent[aria-current="location"] {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(125, 220, 255, 0.34);
}

.shell-layout.collapsed .nav-link[title]::after,
.shell-layout.collapsed .nav-parent[title]::after,
.shell-layout.collapsed .sidebar-search-trigger[title]::after {
    content: attr(title);
    position: fixed;
    left: 82px;
    z-index: 2300;
    max-width: 230px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #ffffff;
    background: #0b1326;
    box-shadow: 0 12px 26px rgba(3, 8, 20, 0.28);
    font-size: 0.78rem;
    line-height: 1.25;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.shell-layout.collapsed .nav-link[title]:hover::after,
.shell-layout.collapsed .nav-link[title]:focus-visible::after,
.shell-layout.collapsed .nav-parent[title]:hover::after,
.shell-layout.collapsed .nav-parent[title]:focus-visible::after,
.shell-layout.collapsed .sidebar-search-trigger[title]:hover::after,
.shell-layout.collapsed .sidebar-search-trigger[title]:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .shell-layout,
    .shell-layout.collapsed,
    .shell-layout.mobile-shell {
        display: block;
        grid-template-columns: none;
        width: 100%;
        min-height: 100dvh;
    }

    .shell-layout .app-sidebar,
    .shell-layout.collapsed .app-sidebar {
        position: fixed;
        inset-block: 0;
        left: 0;
        z-index: 2000;
        width: min(272px, calc(100vw - 28px));
        max-width: min(272px, calc(100vw - 28px));
        height: 100dvh;
        max-height: 100dvh;
        padding: 18px 14px;
        gap: 14px;
        transform: translateX(calc(-100% - 12px));
        transition: transform 0.24s ease;
        box-shadow: 18px 0 48px rgba(3, 8, 20, 0.34);
    }

    .shell-layout.mobile-drawer-open .app-sidebar {
        transform: translateX(0);
    }

    .shell-layout .sidebar-product-copy,
    .shell-layout .sidebar-company-copy,
    .shell-layout .nav-group-title,
    .shell-layout .nav-link-label,
    .shell-layout .nav-link-chevron {
        display: initial;
    }

    .shell-layout .nav-link,
    .shell-layout .nav-parent,
    .shell-layout.collapsed .nav-link,
    .shell-layout.collapsed .nav-parent {
        width: 100%;
        height: auto;
        min-height: 44px;
        padding: 10px 12px;
        margin: 0;
    }

    .shell-layout .nav-link-main,
    .shell-layout.collapsed .nav-link-main {
        width: auto;
        height: auto;
    }

    .shell-layout .submenu-list {
        display: grid;
    }

    .shell-layout .sidebar-search-trigger,
    .shell-layout.collapsed .sidebar-search-trigger {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 10px 12px;
    }

    .shell-layout .sidebar-search-trigger-copy {
        display: grid;
    }

    .shell-layout .sidebar-footer-stack,
    .shell-layout.collapsed .sidebar-footer-stack {
        width: 100%;
        justify-items: stretch;
    }

    .shell-layout .sidebar-user-menu-slot .sidebar-user-trigger,
    .shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger {
        width: 100%;
        height: auto;
        min-height: 50px;
        padding: 7px 10px;
        justify-content: flex-start;
    }

    .shell-layout .sidebar-user-menu-slot .user-copy-clean,
    .shell-layout .sidebar-user-menu-slot .sidebar-user-trigger-icon {
        display: block;
    }

    .shell-layout .sidebar-company-dock,
    .shell-layout.collapsed .sidebar-company-dock {
        width: auto;
    }

    .sidebar-drawer-close,
    .mobile-menu-button {
        display: grid;
    }

    .sidebar-toggle-float {
        display: none !important;
    }

    .shell-main {
        width: 100%;
        min-width: 0;
        padding: 12px 14px 26px;
    }

    .app-header-clean {
        min-height: 52px;
        align-items: center;
    }

    .header-leading {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sidebar-search-popover,
    .shell-layout.collapsed .sidebar-search-popover {
        top: 50%;
        left: 50%;
        right: auto;
        width: calc(100vw - 32px);
        max-width: 460px;
        max-height: calc(100dvh - 32px);
        transform: translate(-50%, -50%);
    }
}

/* Login surface: 25% compact sizing without transform/scale. */
.login-experience {
    grid-template-columns: minmax(0, 1.15fr) minmax(315px, 0.85fr);
    font-size: 75%;
}

.login-page-product-mark {
    top: 33px;
    left: 39px;
    gap: 15px;
    font-size: 1.125rem;
}

.login-page-product-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
}

.login-page-product-mark span {
    font-size: 1.575rem;
}

.login-showcase {
    padding: 33px 36px 30px 39px;
    gap: 24px;
}

.login-showcase::after {
    inset: 18px 21px auto auto;
    width: 165px;
    height: 165px;
    filter: blur(6px);
}

.login-showcase-copy {
    max-width: 420px;
    margin-top: clamp(113px, 16.5vh, 188px);
}

.login-eyebrow {
    margin-bottom: 12px;
    font-size: 0.54rem;
}

.login-showcase-copy h1 {
    font-size: clamp(2.1rem, 3vw, 3.75rem);
}

.login-showcase-copy p {
    max-width: 353px;
    margin-top: 17px;
    font-size: 0.795rem;
}

.login-metric-grid {
    gap: 14px;
}

.login-metric-card {
    min-height: 143px;
    padding: 17px;
    border-radius: 21px;
    backdrop-filter: blur(14px);
}

.login-metric-card span {
    font-size: 0.585rem;
}

.login-metric-card strong {
    margin-top: 12px;
    font-size: 1.11rem;
}

.login-metric-card p {
    margin-top: 12px;
    font-size: 0.75rem;
}

.login-form-shell {
    gap: 12px;
    padding: 24px;
}

.login-form-card {
    width: min(100%, 420px);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.login-kicker {
    padding: 6px 9px;
    font-size: 0.6rem;
}

.login-form-head {
    margin-bottom: 18px;
}

.login-form-head h2 {
    margin: 12px 0 8px;
    font-size: 1.95rem;
}

.login-form-head p {
    font-size: 0.75rem;
}

.login-error-banner {
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 12px;
    border-radius: 14px;
}

.login-form-grid {
    gap: 14px;
}

.login-form-grid .field-label {
    font-size: 0.75rem;
}

.login-form-grid .rz-textbox,
.login-form-grid .rz-password {
    min-height: 42px;
    border-radius: 14px !important;
    padding-left: 14px !important;
    font-size: 0.75rem;
}

.login-form-footer-row {
    gap: 12px;
    font-size: 0.69rem;
}

.login-form-footer-row .rz-chkbox,
.login-form-footer-row .rz-chkbox-box {
    width: 15px;
    height: 15px;
}

.login-form-footer-row .rz-chkbox-box.rz-state-active {
    background-color: #1f6feb;
    border-color: #1f6feb;
}

.login-form-footer-row .rz-chkbox-box.rz-state-active:hover:not(.rz-state-disabled) {
    background-color: #175dcc;
    border-color: #175dcc;
}

.login-form-footer-row .rz-chkbox-box.rz-state-active .rzi {
    color: #ffffff;
}

.login-submit-btn {
    min-height: 44px;
    border-radius: 14px;
    gap: 9px;
    font-size: 0.79rem;
    box-shadow: 0 14px 24px rgba(31, 111, 235, 0.28);
}

.login-trust-band {
    gap: 11px;
    margin-top: 17px;
    padding-top: 17px;
}

.login-trust-band strong {
    font-size: 0.71rem;
}

.login-trust-band span {
    margin-top: 5px;
    font-size: 0.645rem;
}

.login-form-footer-stack {
    right: 24px;
    bottom: 21px;
    gap: 15px;
}

.login-language-switch {
    grid-template-columns: repeat(2, 35px);
    gap: 5px;
    padding: 5px;
}

.login-language-option {
    width: 35px;
    height: 29px;
    font-size: 0.75rem;
}

.login-footer-brand-lockup {
    gap: 12px;
}

.login-footer-brand-logo {
    width: 54px;
    height: 54px;
}

.login-footer-wordmark {
    font-size: 1.77rem;
}

@media (max-width: 1100px) {
    .login-experience {
        grid-template-columns: 1fr;
    }

    .login-page-product-mark {
        top: 21px;
        left: 17px;
    }

    .login-showcase {
        padding: 84px 17px 21px;
    }

    .login-form-shell {
        padding: 21px 17px;
    }

    .login-form-card {
        width: 100%;
        padding: 24px 18px;
    }

    .login-form-footer-stack {
        gap: 9px;
        margin-top: 6px;
    }
}

@media (max-width: 768px) {
    .login-showcase {
        padding: 72px 14px 8px;
    }

    .login-page-product-mark {
        top: 18px;
        left: 14px;
        gap: 9px;
    }

    .login-page-product-logo {
        width: 45px;
        height: 45px;
        border-radius: 11px;
    }

    .login-page-product-mark span {
        font-size: 1.31rem;
    }

    .login-showcase-copy h1 {
        font-size: 1.8rem;
    }

    .login-form-shell {
        padding: 14px;
    }

    .login-form-card {
        padding: 21px 14px;
        border-radius: 18px;
    }

    .login-language-switch {
        grid-template-columns: repeat(2, 32px);
        padding: 4px;
    }

    .login-language-option {
        width: 32px;
        height: 26px;
        font-size: 0.65rem;
    }

    .login-footer-brand-logo {
        width: 37px;
        height: 37px;
    }

    .login-footer-wordmark {
        font-size: 1.09rem;
    }
}

@media (min-width: 1025px) {
    .sidebar-drawer-scrim {
        display: none;
    }
}

.auth-layout-shell {
    min-height: 100vh;
}

.login-experience {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    position: relative;
    background:
        radial-gradient(circle at 8% 18%, rgba(70, 132, 255, 0.28), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(245, 184, 73, 0.18), transparent 18%),
        linear-gradient(135deg, #07111f 0%, #0f1d35 42%, #eef4fb 42%, #f7f9fc 100%);
}

.login-page-product-mark {
    position: absolute;
    top: 44px;
    left: 52px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.login-page-product-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    display: block;
}

.login-page-product-mark span {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 900;
    white-space: nowrap;
}

.login-showcase {
    padding: 44px 48px 40px 52px;
    color: #edf4ff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: 24px 28px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 164, 255, 0.28) 0%, rgba(88, 164, 255, 0) 70%);
    filter: blur(8px);
    pointer-events: none;
}

.login-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 0;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    background: transparent;
    box-shadow: none;
}

.login-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.login-brand-tag {
    color: rgba(237, 244, 255, 0.68);
    font-size: 0.92rem;
    margin-top: 4px;
    letter-spacing: 0;
}

.login-showcase-copy {
    max-width: 560px;
    margin-top: clamp(150px, 22vh, 250px);
    position: relative;
    z-index: 1;
}

.login-eyebrow {
    color: rgba(210, 227, 255, 0.78);
    margin-bottom: 16px;
}

.app-header h2:focus,
.app-header h2:focus-visible,
.header-title-wrap h2:focus,
.header-title-wrap h2:focus-visible,
.page-header-card h1:focus,
.page-header-card h1:focus-visible,
.hero-card h1:focus,
.hero-card h1:focus-visible,
.auth-panel h1:focus,
.auth-panel h1:focus-visible,
.form-title h2:focus,
.form-title h2:focus-visible,
.login-showcase-copy h1:focus,
.login-showcase-copy h1:focus-visible {
    outline: none;
    box-shadow: none;
}
.login-showcase-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 4vw, 5rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: 0;
}

.login-showcase-copy p {
    margin: 22px 0 0;
    max-width: 470px;
    color: rgba(227, 236, 251, 0.82);
    font-size: 1.06rem;
    line-height: 1.8;
}

.login-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.login-metric-card {
    min-height: 190px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-metric-card span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(214, 230, 255, 0.72);
}

.login-metric-card strong {
    display: block;
    margin-top: 16px;
    font-size: 1.48rem;
    line-height: 1.12;
    color: #fff;
}

.login-metric-card p {
    margin: 16px 0 0;
    color: rgba(223, 233, 248, 0.76);
    line-height: 1.65;
}

.login-metric-card.accent-blue {
    background: linear-gradient(160deg, rgba(55, 122, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.login-metric-card.accent-gold {
    background: linear-gradient(160deg, rgba(212, 150, 33, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.login-metric-card.accent-ice {
    background: linear-gradient(160deg, rgba(77, 188, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.login-form-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    position: relative;
    min-height: 100vh;
}

.login-form-card {
    width: min(100%, 560px);
    padding: 42px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.16);
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 235, 0.10);
    color: var(--iw-primary-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form-head {
    margin-bottom: 24px;
}

.login-form-head h2 {
    margin: 16px 0 10px;
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.login-form-head p {
    margin: 0;
    color: var(--iw-muted);
    line-height: 1.7;
}

.login-error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.login-form-grid {
    display: grid;
    gap: 18px;
}

.login-form-grid .rz-textbox,
.login-form-grid .rz-password {
    min-height: 56px;
    border-radius: 18px !important;
    padding-left: 18px !important;
    font-size: 1rem;
    background: #fbfdff;
}

.login-form-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--iw-muted);
    font-size: 0.92rem;
}

.login-submit-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #1f6feb 0%, #1254cb 100%);
    box-shadow: 0 18px 32px rgba(31, 111, 235, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.login-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 24px 38px rgba(31, 111, 235, 0.34);
}

.login-submit-btn:disabled {
    opacity: 0.7;
}

.login-trust-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--iw-line);
}

.login-trust-band strong,
.login-trust-band span {
    display: block;
}

.login-trust-band strong {
    font-size: 0.95rem;
}

.login-trust-band span {
    margin-top: 6px;
    color: var(--iw-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.login-form-footer-stack {
    position: absolute;
    right: 32px;
    bottom: 28px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 20px;
}

.login-language-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, 46px);
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.9);
    backdrop-filter: blur(16px);
}

.login-language-option {
    width: 46px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #315073;
    font-weight: 800;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.login-language-option:hover,
.login-language-option:focus-visible {
    background: rgba(31, 111, 235, 0.10);
    color: #0f3f91;
    outline: none;
}

.login-language-option.active {
    color: #ffffff;
    background: linear-gradient(135deg, #1f6feb 0%, #0ea5e9 100%);
}

.login-footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.login-footer-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.login-footer-wordmark {
    font-size: 2.36rem;
}

.login-footer-brand-lockup .inventara-wordmark-main {
    color: #0f1d35;
}

@media (max-width: 1400px) {
    .login-metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .login-experience {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, #0c1830 0%, #16284b 44%, #f4f7fb 44%, #f4f7fb 100%);
    }

    .login-page-product-mark {
        top: 28px;
        left: 22px;
    }

    .login-showcase {
        padding: 112px 22px 28px;
    }

    .login-form-shell {
        padding: 28px 22px;
        min-height: auto;
    }

    .login-form-footer-stack {
        position: static;
        display: flex;
        align-self: flex-end;
        align-items: flex-end;
        gap: 12px;
        margin-top: 8px;
    }

    .login-language-switch,
    .login-footer-brand-lockup {
        align-self: flex-end;
    }

    .login-showcase-copy {
        margin-top: 0;
    }

    .login-form-card {
        width: 100%;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .login-showcase {
        padding: 96px 18px 10px;
    }

    .login-page-product-mark {
        top: 24px;
        left: 18px;
        gap: 12px;
        font-size: 1.2rem;
    }

    .login-page-product-logo {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .login-page-product-mark span {
        font-size: 1.75rem;
    }

    .app-header h2:focus,
.app-header h2:focus-visible,
.header-title-wrap h2:focus,
.header-title-wrap h2:focus-visible,
.page-header-card h1:focus,
.page-header-card h1:focus-visible,
.hero-card h1:focus,
.hero-card h1:focus-visible,
.auth-panel h1:focus,
.auth-panel h1:focus-visible,
.form-title h2:focus,
.form-title h2:focus-visible,
.login-showcase-copy h1:focus,
.login-showcase-copy h1:focus-visible {
    outline: none;
    box-shadow: none;
}
.login-showcase-copy h1 {
        font-size: 2.4rem;
    }

    .login-form-shell {
        padding: 18px;
    }

    .login-form-card {
        border-radius: 24px;
        padding: 28px 18px;
    }

    .login-language-switch {
        grid-template-columns: repeat(2, 42px);
        padding: 5px;
    }

    .login-language-option {
        width: 42px;
        height: 34px;
        font-size: 0.86rem;
    }

    .login-form-footer-row,
    .login-trust-band {
        grid-template-columns: 1fr;
        display: grid;
    }

    .login-footer-brand-logo {
        width: 49px;
        height: 49px;
    }

    .login-footer-wordmark {
        font-size: 1.45rem;
    }
}

.brand-mark-image,
.login-brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-mark,
.login-brand-mark {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.login-brand-mark {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.login-metric-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 48px rgba(3, 10, 25, 0.28);
}

.login-metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.login-metric-card > * {
    position: relative;
    z-index: 1;
}

.login-metric-card.accent-blue {
    background:
        radial-gradient(circle at top right, rgba(109, 177, 255, 0.34) 0%, rgba(109, 177, 255, 0) 34%),
        linear-gradient(165deg, rgba(26, 75, 168, 0.72) 0%, rgba(15, 35, 77, 0.88) 100%);
}

.login-metric-card.accent-gold {
    background:
        radial-gradient(circle at top right, rgba(255, 212, 116, 0.34) 0%, rgba(255, 212, 116, 0) 34%),
        linear-gradient(165deg, rgba(119, 78, 16, 0.84) 0%, rgba(54, 35, 7, 0.92) 100%);
}

.login-metric-card.accent-ice {
    background:
        radial-gradient(circle at top right, rgba(122, 227, 255, 0.26) 0%, rgba(122, 227, 255, 0) 34%),
        linear-gradient(165deg, rgba(15, 86, 104, 0.82) 0%, rgba(6, 40, 54, 0.92) 100%);
}

.login-metric-card span {
    color: rgba(231, 240, 255, 0.82);
}

.login-metric-card p {
    color: rgba(234, 240, 248, 0.84);
}

/* Login command-center composition: compact KPIs above, live network globe below. */
body .login-experience > .login-metric-grid {
    position: absolute;
    inset: 28px 0 auto;
    z-index: 6;
    width: min(360px, calc(100% - 920px));
    min-width: 300px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

body .login-experience > .login-metric-grid .login-metric-card {
    min-height: 84px;
    padding: 13px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body .login-experience > .login-metric-grid .login-order-metric-copy > span {
    font-size: 0.65rem;
}

body .login-experience > .login-metric-grid .login-metric-card strong {
    margin: 0 0 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    color: #07111f;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.055em;
    white-space: nowrap;
    text-align: right;
}

body .login-experience > .login-metric-grid .login-metric-card strong span {
    font: inherit;
}

body .login-experience > .login-metric-grid .login-metric-card strong i {
    margin-inline: 0.1em;
    color: #1689ee;
    font-size: 0.68em;
    font-style: normal;
    font-weight: 500;
}

.login-order-metric-copy {
    display: grid;
    gap: 5px;
}

.login-order-metric-copy small {
    color: #61728b;
    font-size: 0.57rem;
    line-height: 1.25;
}

body .login-experience > .login-metric-grid .login-metric-card p {
    margin-top: 7px;
    font-size: 0.69rem;
    line-height: 1.42;
}

.login-network-globe-shell {
    position: absolute;
    left: -18%;
    bottom: -7%;
    z-index: 0;
    width: 96%;
    height: 67%;
    min-height: 390px;
    overflow: hidden;
    pointer-events: none;
}

.login-network-globe {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-network-globe canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.login-network-globe-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.login-network-globe:not(:empty) + .login-network-globe-fallback {
    opacity: 0;
    visibility: hidden;
}

.login-network-globe-fallback svg {
    width: min(76%, 680px);
    max-height: 92%;
    overflow: visible;
    filter: drop-shadow(0 0 38px rgba(40, 158, 236, 0.28));
    animation: login-globe-fallback-float 7s ease-in-out infinite;
}

.login-network-globe-fallback-surface {
    fill: url("#login-globe-surface");
    stroke: rgba(118, 212, 255, 0.82);
    stroke-width: 1.5;
}

.login-network-globe-fallback-grid,
.login-network-globe-fallback-orbit {
    fill: none;
    stroke: rgba(81, 181, 240, 0.48);
    stroke-width: 1.2;
}

.login-network-globe-fallback-land {
    fill: rgba(74, 172, 224, 0.14);
    stroke: rgba(199, 240, 255, 0.88);
    stroke-width: 1.35;
    stroke-linejoin: round;
}

.login-network-globe-fallback-orbit {
    stroke: rgba(154, 225, 255, 0.82);
    stroke-dasharray: 12 8;
    transform-box: fill-box;
    transform-origin: center;
    animation: login-globe-fallback-orbit 15s linear infinite;
}

.login-network-globe-fallback-orbit circle {
    fill: #ffffff;
    stroke: #67cfff;
    stroke-width: 2;
}

@keyframes login-globe-fallback-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes login-globe-fallback-orbit {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .login-network-globe-fallback svg,
    .login-network-globe-fallback-orbit {
        animation: none;
    }
}

.login-network-label {
    position: absolute;
    z-index: 3;
    padding: 7px 10px;
    border: 1px solid rgba(104, 201, 255, 0.34);
    border-radius: 9px;
    background: rgba(7, 17, 31, 0.88);
    color: #cceeff;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(1, 8, 22, 0.3);
}

.login-network-label::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: #68c9ff;
    box-shadow: 0 0 10px #68c9ff;
    content: "";
}

.login-network-label-one { top: 17%; left: 22%; }
.login-network-label-two { top: 48%; left: 11%; }
.login-network-label-three { right: 9%; bottom: 23%; }
.login-network-label-four { top: 25%; right: 7%; }
.login-network-label-five { bottom: 8%; left: 42%; }

.login-showcase-copy {
    z-index: 2;
}

@media (max-width: 1400px) and (min-width: 1101px) {
    body .login-experience > .login-metric-grid {
        width: min(330px, calc(100% - 920px));
        min-width: 290px;
    }

    body .login-experience > .login-metric-grid .login-metric-card {
        padding: 12px 14px;
    }

    body .login-experience > .login-metric-grid .login-metric-card p {
        display: none;
    }
}

@media (max-width: 1100px) {
    body .login-experience > .login-metric-grid {
        position: relative;
        inset: auto;
        order: -1;
        width: auto;
        min-width: 0;
        margin: 104px 22px 0;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    body .login-experience > .login-metric-grid .login-metric-card {
        flex: 0 0 min(88vw, 330px);
        scroll-snap-align: center;
    }

    .login-network-globe-shell {
        left: -20%;
        bottom: -10%;
        width: 105%;
        height: 75%;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    body .login-experience > .login-metric-grid {
        margin: 92px 18px 0;
    }

    .login-network-globe-shell {
        left: -28%;
        bottom: -12%;
        width: 120%;
        min-height: 320px;
    }

    .login-network-label {
        font-size: 0.54rem;
        padding: 6px 8px;
    }
}

/* One continuous midnight surface: content panels and WebGL canvas stay transparent. */
body .login-experience {
    background: #07111f;
}

/* Keep the login surface uniformly midnight blue; the star field remains on ::before. */
body .login-showcase::after {
    content: none;
}

@font-face {
    font-family: "Nasalization";
    src: url("branding/nasalization-rg.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

body .login-experience::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background-image:
        radial-gradient(circle, rgba(183, 226, 255, 0.78) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(90, 177, 255, 0.58) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 0.8px, transparent 1.4px);
    background-position: 3% 17%, 19% 8%, 7% 76%;
    background-size: 137px 163px, 211px 197px, 173px 229px;
    opacity: 0.52;
}

body .login-form-shell {
    background: transparent;
    border-left: 0;
}

body .login-showcase,
body .login-network-globe-shell,
body .login-network-globe,
body .login-network-globe canvas {
    background: transparent;
}

body .login-experience > .login-metric-grid {
    width: min(330px, calc(100% - 920px));
    min-width: 290px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

body .login-experience > .login-metric-grid .login-order-metric {
    min-height: 108px;
    background: #ffffff;
    border-color: rgba(215, 225, 238, 0.94);
    box-shadow: 0 18px 44px rgba(0, 7, 20, 0.24);
    backdrop-filter: none;
}

body .login-experience > .login-metric-grid .login-order-metric span {
    color: #58708f;
}

body .login-experience > .login-metric-grid .login-order-metric strong {
    color: #0c1a2f;
}

body .login-experience > .login-metric-grid .login-order-metric p {
    color: #687b93;
}

body .login-showcase-copy {
    position: absolute;
    top: 55%;
    left: 39px;
    width: min(420px, calc(100% - 78px));
    margin-top: 0;
}

body .login-showcase-copy .login-eyebrow {
    font-size: 0.594rem;
}

body .login-showcase-copy h1 {
    font-size: clamp(2.31rem, 3.3vw, 4.125rem);
}

body .login-form-card {
    background: #ffffff;
}

body .login-form-head {
    margin-bottom: 20px;
}

body .login-form-head h2 {
    margin: 0;
}

.login-password-control {
    position: relative;
}

.login-password-control .login-input {
    padding-right: 46px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #48627f;
    background: transparent;
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: #0f5fd7;
    background: #eaf2ff;
    outline: 2px solid rgba(31, 111, 235, 0.24);
    outline-offset: 1px;
}

body .login-page-product-wordmark {
    display: block;
    width: 126px;
    height: auto;
}

body .login-page-product-wordmark text {
    fill: #ffffff;
    font-family: "Nasalization", sans-serif;
    font-size: 273px;
}

body .login-footer-brand-logo {
    width: 168px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    body .login-page-product-wordmark {
        width: 105px;
    }

    body .login-footer-brand-logo {
        width: 132px;
        height: auto;
    }

    body .login-showcase-copy {
        top: 52%;
        left: 14px;
        width: min(420px, calc(100vw - 28px));
    }
}

.sidebar-brand-lockup {
    align-items: center;
}

.sidebar-product-header .brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 16px;
}

.sidebar-product-header .brand-mark-image {
    border-radius: 16px;
}

.brand-copy-lockup {
    min-width: 0;
}

.sidebar-company-dock .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 0;
}

.sidebar-company-dock .brand-mark-image {
    border-radius: 0;
}

.sidebar-company-copy {
    min-width: 0;
}

.sidebar-company-copy .inventara-wordmark {
    justify-content: center;
    font-size: 1.58rem;
    white-space: nowrap;
}

.sidebar-company-copy .inventara-wordmark span {
    display: inline;
}

.inventara-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22em;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.inventara-wordmark-main {
    color: #ffffff;
}

.inventara-wordmark-accent {
    background: linear-gradient(115deg, #7ddcff 0%, #2ec5ff 28%, #1f6feb 52%, #64e8ff 78%, #1d8fff 100%);
    background-size: 240% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: inventara-blue-flow 4.5s ease-in-out infinite;
}

@keyframes inventara-blue-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inventara-wordmark-accent {
        animation: none;
    }
}

.brand-copy-lockup .inventara-wordmark {
    font-size: 1.28rem;
}

.login-brand-lockup-lg {
    align-items: center;
    gap: 18px;
}

.login-brand-stack {
    display: grid;
    gap: 8px;
}

.inventara-wordmark-hero {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    text-shadow: 0 12px 26px rgba(10, 18, 35, 0.24);
}

.login-brand-lockup-lg .login-brand-mark {
    width: 84px;
    height: 84px;
    border-radius: 0;
}

.login-brand-tag {
    color: rgba(237, 244, 255, 0.68);
    font-size: 0.92rem;
    margin-top: 0;
}

@media (max-width: 768px) {
    .inventara-wordmark-hero {
        font-size: 2.3rem;
    }

    .login-brand-lockup-lg {
        align-items: center;
    }
}

.shell-layout.collapsed {
    grid-template-columns: 104px minmax(0, 1fr);
}

.shell-layout.collapsed .brand-copy,
.shell-layout.collapsed .nav-group-title,
.shell-layout.collapsed .nav-link-label,
.shell-layout.collapsed .nav-link-chevron {
    display: none;
}

.shell-layout.collapsed .sidebar-top {
    justify-content: center;
}

.shell-layout.collapsed .brand-mark {
    width: 58px;
    height: 58px;
}

.shell-layout.collapsed .sidebar-company-dock {
    padding-top: 16px;
}

.shell-layout.collapsed .nav-link,
.shell-layout.collapsed .nav-parent {
    justify-content: center;
    padding: 14px 0;
}

.shell-layout.collapsed .nav-link-main {
    justify-content: center;
}

.shell-layout.collapsed .sidebar-nav-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
    margin-right: 0;
}

.nav-tree {
    position: relative;
    display: grid;
    gap: 8px;
}

.nav-parent {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.nav-link-chevron {
    margin-left: auto;
    color: rgba(237, 244, 255, 0.68);
    transition: transform 0.18s ease;
}

.nav-tree.expanded .nav-link-chevron {
    transform: rotate(180deg);
}

.submenu-list {
    display: grid;
    gap: 8px;
    padding-left: 16px;
    margin-top: -2px;
}

.submenu-list[hidden] {
    display: none !important;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(237, 244, 255, 0.84);
    background: rgba(255, 255, 255, 0.035);
    transition: 0.18s ease;
}

.submenu-link:hover,
.submenu-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.submenu-flyout {
    position: absolute;
    left: calc(100% + 16px);
    top: 0;
    min-width: 260px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(14, 24, 46, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 44px rgba(3, 8, 20, 0.42);
    display: grid;
    gap: 8px;
    z-index: 50;
}

.submenu-flyout-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(237, 244, 255, 0.6);
    padding: 4px 8px 8px;
}

.app-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0 18px;
    margin-bottom: 12px;
}

.header-leading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-toggle-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--iw-shadow);
    color: var(--iw-text);
}

.header-title-wrap .eyebrow {
    margin-bottom: 6px;
}

.header-title-wrap h2 {
    margin: 0;
    font-size: 1.95rem;
    letter-spacing: 0;
}

.user-menu-dropdown {
    position: relative;
}

.user-menu-dropdown summary {
    list-style: none;
}

.user-menu-dropdown summary::-webkit-details-marker {
    display: none;
}

.user-menu-trigger-clean {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: var(--iw-shadow);
    cursor: pointer;
    user-select: none;
}

.user-avatar-clean {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #1f6feb 0%, #4cd3ff 100%);
}

.user-avatar-clean.large {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
}

.user-copy-clean {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.user-copy-clean strong {
    font-size: 0.96rem;
}

.user-copy-clean small,
.user-menu-panel-head span {
    color: var(--iw-muted);
}

.user-menu-panel-clean {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 280px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
    display: grid;
    gap: 14px;
    z-index: 60;
}

.user-menu-panel-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--iw-line);
}

.user-menu-panel-head strong,
.user-menu-panel-head span {
    display: block;
}

.user-menu-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 700;
    background: var(--iw-surface-soft);
    border: 1px solid var(--iw-line);
}

.user-menu-action.danger {
    color: #b91c1c;
}

@media (max-width: 900px) {
    .app-header-clean {
        flex-direction: column;
        align-items: stretch;
    }

    .header-leading {
        width: 100%;
    }

    .user-menu-trigger-clean,
    .user-menu-panel-clean {
        width: 100%;
        min-width: 0;
    }

    .submenu-flyout {
        display: none;
    }
}

:root {
    --iw-sidebar-width: 272px;
    --iw-sidebar-collapsed-width: 94px;
}

html {
    font-size: 14px;
}

body {
    font-size: 0.95rem;
}

.shell-layout {
    grid-template-columns: var(--iw-sidebar-width) minmax(0, 1fr);
}

.shell-layout.collapsed {
    grid-template-columns: var(--iw-sidebar-collapsed-width) minmax(0, 1fr);
}

.app-sidebar {
    padding: 20px 14px;
    gap: 20px;
    background: linear-gradient(180deg, #0f1a31 0%, #152445 100%);
}

.sidebar-top {
    gap: 12px;
    padding: 4px 6px 10px;
}

.sidebar-company-dock {
    padding-top: 16px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-copy strong {
    font-size: 0.94rem;
}

.brand-copy span {
    font-size: 0.72rem;
}

.nav-group {
    gap: 6px;
}

.nav-group-title {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    padding: 0 12px;
    margin-bottom: 4px;
}

.nav-link,
.nav-parent {
    padding: 11px 14px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.nav-link-main {
    gap: 11px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-link i,
.nav-parent i,
.submenu-link i {
    font-size: 0.95rem;
}

.nav-link.active,
.nav-link:hover,
.nav-parent.active,
.nav-parent:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.nav-tree.expanded > .nav-parent {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.06);
}

.submenu-list {
    gap: 6px;
    padding: 2px 0 0 12px;
    margin-top: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.submenu-link {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    background: transparent;
}

.submenu-link:hover,
.submenu-link.active {
    background: rgba(255, 255, 255, 0.09);
}

.submenu-flyout {
    left: calc(100% + 10px);
    min-width: 240px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(12, 22, 42, 0.98);
}

.submenu-flyout-title {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    padding: 2px 6px 8px;
}

.shell-main {
    padding: 18px 22px 28px;
}

.app-header-clean {
    padding: 4px 0 14px;
    margin-bottom: 10px;
}

.sidebar-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.header-title-wrap .eyebrow,
.eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
}

.header-title-wrap h2 {
    font-size: 1.55rem;
}

.page-header-card {
    border-radius: 20px;
    padding: 20px 22px;
}

.page-header-card h1,
.hero-card h1,
.auth-panel h1,
.form-title h2,
.empty-state h3 {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}

.page-header-card p,
.hero-card p,
.empty-state p,
.stat-copy p {
    font-size: 0.92rem;
}

.app-breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.hero-card {
    padding: 24px;
    border-radius: 24px;
}

.stats-grid {
    gap: 14px;
}

.stat-card {
    border-radius: 18px;
    padding: 18px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.stat-copy span,
.panel-head span {
    font-size: 0.8rem;
}

.stat-copy strong {
    font-size: 1.5rem;
    margin-top: 8px;
}

.dashboard-grid {
    gap: 14px;
}

.panel-card {
    border-radius: 20px;
    padding: 20px;
}

.panel-head h3 {
    font-size: 1.02rem;
}

.user-menu-trigger-clean {
    min-width: 208px;
    padding: 9px 12px;
    border-radius: 16px;
}

.user-avatar-clean {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 1;
    font-size: 0.82rem;
}

.user-copy-clean strong {
    font-size: 0.88rem;
}

.user-copy-clean small,
.user-menu-panel-head span {
    font-size: 0.76rem;
}

.user-menu-panel-clean {
    min-width: 250px;
    padding: 12px;
    border-radius: 18px;
    top: calc(100% + 8px);
}

.shell-layout.collapsed .brand-mark {
    width: 54px;
    height: 54px;
}

.shell-layout.collapsed .nav-link,
.shell-layout.collapsed .nav-parent {
    width: 54px;
    height: 54px;
    padding: 0;
    margin-inline: auto;
    border-radius: 16px;
}

.shell-layout.collapsed .nav-group {
    justify-items: center;
}

.shell-layout.collapsed .nav-link-main {
    width: 100%;
    height: 100%;
}

.shell-layout.collapsed .nav-link i,
.shell-layout.collapsed .nav-parent i {
    font-size: 1rem;
}

@media (max-width: 900px) {
    html {
        font-size: 13px;
    }
}

.user-menu-dropdown {
    position: relative;
}

.user-menu-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    z-index: 55;
}

.user-menu-trigger-clean,
.user-menu-panel-clean {
    position: relative;
    z-index: 60;
}

.user-menu-trigger-clean {
    position: relative;
    z-index: 60;
}

.user-menu-panel-clean {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 70;
}

.shell-layout {
    position: relative;
}

.sidebar-toggle-float {
    position: fixed;
    top: 92px;
    left: calc(var(--iw-sidebar-width) - 22px);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    display: grid;
    place-items: center;
    color: var(--iw-text);
    z-index: 80;
    transition: left 0.22s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-toggle-float:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.20);
}

.shell-layout.collapsed .sidebar-toggle-float {
    left: calc(var(--iw-sidebar-collapsed-width) - 22px);
}

.header-leading {
    gap: 0;
}

@media (max-width: 900px) {
    .sidebar-toggle-float {
        top: 82px;
        left: calc(var(--iw-sidebar-collapsed-width) - 20px);
        width: 40px;
        height: 40px;
    }
}

.sidebar-toggle-float {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 252, 0.98) 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.sidebar-toggle-float i {
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .sidebar-toggle-float {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

.page-header-card {
    padding: 14px 18px;
    border-radius: 18px;
    gap: 12px;
}

.page-header-card h1 {
    font-size: clamp(1.5rem, 1.9vw, 2rem);
}

.page-header-card p {
    margin: 6px 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.app-breadcrumb {
    margin-bottom: 6px;
    font-size: 0.78rem;
}

.eyebrow {
    margin-bottom: 4px;
}

.page-header-card {
    padding: 10px 16px;
    border-radius: 16px;
    min-height: auto;
}

.page-header-card > div:first-child {
    display: grid;
    gap: 3px;
}

.app-breadcrumb {
    margin-bottom: 2px;
    gap: 7px;
    font-size: 0.75rem;
}

.page-header-card .eyebrow {
    margin-bottom: 0;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
}

.page-header-card h1 {
    margin: 0;
    font-size: clamp(1.35rem, 1.7vw, 1.75rem);
    line-height: 1.08;
}

.page-header-card p {
    margin: 2px 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.nav-parent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
}

.nav-parent .nav-link-main {
    min-width: 0;
}

.nav-parent > .nav-link-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    margin-left: 0;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.nav-link-main > i:first-child,
.submenu-link > i:first-child {
    flex: 0 0 auto;
}

.shell-layout.collapsed .nav-parent > .nav-link-chevron {
    display: none;
}

.rz-notification {
    z-index: 2400 !important;
}

.rz-notification-item-wrapper {
    z-index: 2400 !important;
}

/* Keep Radzen popups interactive when dropdowns are used inside modal backdrops. */
.rz-popup,
.rz-overlaypanel {
    z-index: 1305 !important;
}


.user-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.user-language-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 235, 0.08);
    color: var(--iw-primary-strong);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.user-menu-panel-rich {
    min-width: 320px;
}

.user-menu-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--iw-muted);
    margin-bottom: 10px;
}

.user-menu-language-block {
    display: grid;
    gap: 10px;
}

.user-menu-language-list {
    display: grid;
    gap: 8px;
}

.user-menu-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid var(--iw-line);
    background: #fff;
    font-weight: 600;
}

.user-menu-language-option.active {
    background: rgba(31, 111, 235, 0.08);
    border-color: rgba(31, 111, 235, 0.24);
    color: var(--iw-primary-strong);
}

.flag-badge {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.flag-badge.tr {
    background: #e11d2f;
}

.flag-badge.tr::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.flag-badge.tr::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e11d2f;
}

.flag-badge.en {
    background:
        linear-gradient(90deg, transparent 40%, #ffffff 40%, #ffffff 60%, transparent 60%),
        linear-gradient(transparent 40%, #ffffff 40%, #ffffff 60%, transparent 60%),
        linear-gradient(90deg, transparent 45%, #d61f33 45%, #d61f33 55%, transparent 55%),
        linear-gradient(transparent 45%, #d61f33 45%, #d61f33 55%, transparent 55%),
        #0f4ea8;
}

.profile-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-side-card {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.profile-avatar-wrap {
    width: 132px;
    height: 132px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f6feb 0%, #64d3ff 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 20px 40px rgba(31, 111, 235, 0.22);
}

.profile-avatar-fallback {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity-block strong,
.profile-identity-block span {
    display: block;
}

.profile-identity-block strong {
    font-size: 1.1rem;
}

.profile-identity-block span {
    margin-top: 4px;
    color: var(--iw-muted);
}

.profile-upload-btn {
    position: relative;
    overflow: hidden;
}

.profile-upload-btn input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.profile-main-card,
.profile-password-card {
    display: grid;
    gap: 8px;
}

.profile-password-card {
    grid-column: 2 / 3;
}

@media (max-width: 1100px) {
    .profile-shell {
        grid-template-columns: 1fr;
    }

    .profile-password-card {
        grid-column: auto;
    }
}

.user-menu-submenu-block {
    display: grid;
    gap: 10px;
}

.user-menu-action.submenu-toggle {
    justify-content: space-between;
    background: transparent;
}

.user-menu-action-main,
.user-menu-action-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.user-menu-action-meta {
    color: var(--iw-muted);
    font-size: 0.82rem;
}

.menu-language-current {
    font-weight: 700;
    color: var(--iw-primary-strong);
}

.user-menu-submenu-list {
    display: grid;
    gap: 8px;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.readonly-input,
.readonly-input input {
    background: #f6f8fc !important;
    color: #64748b !important;
}

.user-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 18px;
}

.iw-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.iw-modal-panel {
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.iw-modal-panel-wide {
    width: min(100%, 920px);
}

.iw-modal-panel-medium {
    width: min(100%, 680px);
}

.iw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.iw-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.form-switch .form-check-input {
    width: 2.8rem;
    height: 1.45rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-switch .form-check-label {
    font-weight: 700;
}


.product-editor-panel {
    width: min(100%, 1180px);
}

.product-editor-shell {
    display: grid;
    gap: 1rem;
    --rz-tabs-tab-selected-color: #0d6efd;
    --rz-tabs-tab-hover-color: #0d6efd;
}

.product-search { min-width: 300px; }
.product-grid .rz-data-row { cursor: pointer; }
.product-grid .rz-data-row:hover > td { background: #e7f2ff !important; color: #0f4f9d !important; }
.product-grid .rz-data-row.rz-state-highlight > td { background: #dcebff !important; color: #0b57b7 !important; }
.product-grid .rz-data-row.rz-state-highlight:hover > td { background: #cfe5ff !important; }
.product-list-toolbar { padding: .28rem; border: 1px solid #d8e6f7; border-radius: 14px; background: #f7faff; }
.product-toolbar-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .48rem; border-radius: 11px; padding-inline: 1rem; font-weight: 700; box-shadow: 0 6px 16px rgba(22, 104, 220, .10); }
.product-toolbar-button:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(22, 104, 220, .18); }
.product-grid .erp-grid-actions { gap: .4rem; }
.product-grid .user-action-button { width: 36px; height: 36px; border: 1px solid #b8d4f6; border-radius: 10px; color: #1769d2; background: #f3f8ff; box-shadow: 0 4px 12px rgba(23, 105, 210, .08); }
.product-grid .user-action-button:hover, .product-grid .user-action-button:focus-visible { color: #fff; background: #1976ed; border-color: #1976ed; box-shadow: 0 7px 16px rgba(25, 118, 237, .25); }
.product-grid .user-action-button.danger { color: #dc3545; border-color: #f2c3c8; background: #fff7f8; }
.product-grid .user-action-button.danger:hover, .product-grid .user-action-button.danger:focus-visible { color: #fff; background: #dc3545; border-color: #dc3545; }
.product-grid .rz-paginator-element:hover, .product-grid .rz-paginator-element:focus-visible { color: #fff !important; background: #2c82ee !important; border-color: #2c82ee !important; }
.product-grid .rz-paginator-element.rz-state-active { color: #fff !important; background: #146fe0 !important; border-color: #146fe0 !important; }
.product-general-groups, .product-filter-groups { display: grid; gap: 0.85rem; }
.product-form-group { min-width: 0; margin: 0; padding: 1rem; border: 1px solid #d8e6f7; border-radius: 16px; background: #f8fbff; }
.product-form-group legend { float: none; width: auto; margin: 0 0 0.75rem; padding: 0 0.35rem; color: #145cb8; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.product-tracking-options { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.product-filter-dialog { width: min(94vw, 880px); }
.product-filter-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.product-filter-groups-comprehensive { align-items: stretch; }
.product-filter-groups .checkbox-line { margin-top: 0.85rem; }
.product-editor-shell .rz-tabview-nav li.rz-tabview-selected a,
.product-editor-shell .rz-tabview-nav li a:hover,
.product-editor-shell .rz-tabview-nav li a:focus { color: #0d6efd !important; border-color: #0d6efd !important; }
.product-editor-shell .rz-tabview-nav li.rz-tabview-selected { border-color: #0d6efd !important; }
.product-editor-panel, .product-filter-dialog { border-color: #4d9aff !important; }

/* Products page density: explicit dimensions only; visual scaling is intentionally unused. */
.products-page {
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.products-page .page-header {
    gap: 11px;
    padding-block: 2px;
}

.products-page .page-header h1,
.products-page .page-header h2 {
    font-size: 1.53rem;
    line-height: 1.08;
}

.products-page > .panel-card {
    padding: 14px;
    border-radius: 16px;
    min-width: 0;
    max-width: 100%;
}

.products-page > .panel-card > .panel-head {
    justify-content: flex-end;
    min-height: 39px;
    margin-bottom: 11px;
}

.products-page .product-list-toolbar {
    width: min(100%, 558px);
    margin-left: auto;
    padding: 4px;
    gap: 6px !important;
    border-radius: 13px;
}

.products-page .product-search {
    min-width: 243px;
    min-height: 34px;
    height: 34px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: .77rem;
}

.products-page .product-toolbar-button {
    min-width: 101px;
    min-height: 34px;
    height: 34px;
    padding: 6px 12px;
    gap: 6px;
    border-radius: 9px;
    font-size: .74rem;
    line-height: 1;
    box-shadow: none;
}

.products-page .product-toolbar-button.btn-primary,
.products-page .product-toolbar-button.btn-primary span,
.products-page .product-toolbar-button.btn-primary i {
    color: #fff !important;
}

.products-page .product-toolbar-button.btn-outline-primary:hover,
.products-page .product-toolbar-button.btn-outline-primary:focus-visible {
    color: #fff !important;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.products-page .product-toolbar-button.btn-outline-primary:hover span,
.products-page .product-toolbar-button.btn-outline-primary:focus-visible span,
.products-page .product-toolbar-button.btn-outline-primary:hover i,
.products-page .product-toolbar-button.btn-outline-primary:focus-visible i {
    color: #fff !important;
}

.products-page .product-toolbar-button i {
    font-size: .78rem;
}

.products-page .product-toolbar-button:hover,
.products-page .product-toolbar-button:focus-visible {
    box-shadow: 0 6px 14px rgba(22, 104, 220, .16);
}

.products-page .product-grid {
    font-size: .6935rem;
    min-width: 0;
    max-width: 100%;
}

.products-page .product-grid .rz-grid-table thead th {
    height: 37px;
    padding: 6.65px 9.5px;
    font-size: .646rem;
}

.products-page .product-grid .rz-grid-table tbody td {
    height: 47px;
    padding: 5.7px 9.5px;
}

.products-page .product-grid-thumb,
.products-page .product-grid-thumb-button {
    width: 47.5px;
    height: 47.5px;
    min-width: 47.5px;
    border-radius: 12.35px;
    box-shadow: none !important;
}

.products-page .product-grid-thumb-placeholder {
    box-shadow: none !important;
}

.products-page .product-grid .erp-grid-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4.75px;
    white-space: nowrap;
}

.products-page .product-grid .user-action-button {
    flex: 0 0 27.55px;
    width: 27.55px;
    height: 27.55px;
    border-radius: 7.6px;
    font-size: .83125rem;
    box-shadow: none;
}

.products-page .product-grid .warehouse-pill {
    padding: 1.9px 6.65px;
    font-size: .646rem;
}

.products-page .product-grid .rz-paginator {
    min-height: 41px;
    padding: 5.7px 8.55px;
    gap: 3.8px;
    font-size: .6935rem;
}

.products-page .product-grid .rz-paginator-element {
    min-width: 29.45px;
    height: 29.45px;
    border-radius: 50%;
}

.products-page .product-grid .rz-paginator-element:hover,
.products-page .product-grid .rz-paginator-element:focus-visible,
.products-page .product-grid .rz-paginator-element.rz-state-active {
    color: #fff !important;
    background: #146fe0 !important;
    border-color: #146fe0 !important;
}

.products-page .product-filter-dialog,
.products-page .product-editor-panel {
    font-size: .9rem;
}

.products-page .product-filter-dialog {
    width: min(94vw, 792px);
}

.products-page .product-filter-dialog .product-form-group {
    padding: 14px;
    border-radius: 14px;
}

@media (max-width: 720px) {
    .products-page > .panel-card {
        padding: 12px;
    }

    .products-page .product-list-toolbar {
        width: 100%;
    }

    .products-page .product-search {
        min-width: 0;
        width: 100%;
    }

    .products-page .product-toolbar-button {
        flex: 1 1 101px;
    }
}

@media (max-width: 720px) {
    .panel-head .d-flex { flex-wrap: wrap; width: 100%; }
    .product-search { min-width: 0; width: 100%; }
    .product-filter-groups { grid-template-columns: 1fr; }
}

.product-tab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.75rem 0;
}

.product-tab-head h4 {
    margin: 0;
    font-size: 1rem;
}

.product-line-grid {
    display: grid;
    gap: 0.75rem;
    align-items: center;
}

.product-line-grid-variant {
    grid-template-columns: 70px repeat(3, minmax(0, 1fr)) 120px;
}

.product-line-grid-barcode {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr) 120px;
}

.product-line-grid-attribute {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 120px;
}

.product-line-head {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--iw-muted);
}

.product-line-index {
    font-weight: 700;
    color: var(--iw-primary-strong);
}

@media (max-width: 920px) {
    .product-line-grid-variant,
    .product-line-grid-barcode,
    .product-line-grid-attribute {
        grid-template-columns: 1fr;
    }
}

.warehouse-layout-panel {
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(248, 250, 252, 0.98));
    padding: 1rem;
}

.warehouse-layout-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}

.warehouse-layout-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--iw-primary-strong);
}

.warehouse-layout-description,
.warehouse-layout-hint,
.warehouse-layout-floor-stats,
.warehouse-layout-aisle-meta,
.warehouse-layout-rack small,
.warehouse-layout-side-title {
    color: var(--iw-muted);
    font-size: 0.82rem;
}

.warehouse-layout-floor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.warehouse-layout-floor-card,
.warehouse-layout-aisle,
.warehouse-layout-center-row {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
}

.warehouse-layout-floor-card {
    padding: 0.85rem;
}

.warehouse-layout-floor-card.active,
.warehouse-layout-aisle.active,
.warehouse-layout-rack.active {
    border-color: rgba(14, 116, 144, 0.45);
    box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.12);
}

.warehouse-layout-floor-code,
.warehouse-layout-aisle-code {
    font-weight: 800;
    color: var(--iw-primary-strong);
}

.warehouse-layout-floor-name,
.warehouse-layout-aisle-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--iw-text);
}

.warehouse-layout-aisles {
    display: grid;
    gap: 0.9rem;
}

.warehouse-layout-aisle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem;
    align-items: stretch;
}

.warehouse-layout-aisle-core {
    border-radius: 0.85rem;
    background: repeating-linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(30, 41, 59, 0.92) 16px, rgba(51, 65, 85, 0.96) 16px, rgba(51, 65, 85, 0.96) 32px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    text-align: center;
}

.warehouse-layout-racks {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.warehouse-layout-rack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.8rem;
    padding: 0.55rem 0.7rem;
    background: rgba(250, 204, 21, 0.24);
    border: 1px solid rgba(234, 179, 8, 0.34);
}

.warehouse-layout-rack span {
    font-size: 0.86rem;
    font-weight: 700;
    color: #854d0e;
}

.warehouse-layout-center-row {
    padding: 0.75rem 0.9rem;
}

.warehouse-layout-center-racks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}

@media (max-width: 1100px) {
    .warehouse-layout-aisle {
        grid-template-columns: 1fr;
    }
}

.warehouse-layout-floor-card,
.warehouse-layout-aisle-core,
.warehouse-layout-rack-main,
.warehouse-layout-bin-chip {
    appearance: none;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.warehouse-layout-floor-card {
    background: rgba(255, 255, 255, 0.9);
}

.warehouse-layout-rack-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0;
}

.warehouse-layout-rack-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.55rem;
    flex-wrap: wrap;
}

.warehouse-layout-bin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.warehouse-layout-bin-chip {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: rgba(14, 116, 144, 0.08);
    color: var(--iw-primary-strong);
    font-size: 0.75rem;
    font-weight: 700;
}

.warehouse-layout-bin-chip small {
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 900;
}

.warehouse-layout-bin-chip.active {
    background: rgba(14, 116, 144, 0.18);
}

.warehouse-layout-rack-row,
.warehouse-layout-bin-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.warehouse-layout-info-btn,
.warehouse-layout-bin-info {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--iw-primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.warehouse-quick-detail {
    margin-top: 0.65rem;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 0.8rem;
    background: rgba(255,255,255,0.94);
    padding: 0.7rem;
}

.warehouse-quick-detail-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--iw-primary-strong);
    margin-bottom: 0.45rem;
}

.warehouse-quick-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.76rem;
    color: var(--iw-muted);
    padding: 0.12rem 0;
}

.warehouse-quick-detail-row strong {
    color: var(--iw-text);
    text-align: right;
}

.warehouse-quick-detail-section {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
}

.warehouse-quick-detail-section-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--iw-primary-strong);
    margin-bottom: 0.45rem;
}

.warehouse-quick-detail-capacity-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.warehouse-quick-detail-capacity-bar.is-pending .warehouse-quick-detail-capacity-fill {
    width: 38%;
    height: 100%;
    border-radius: 999px;
    background: repeating-linear-gradient(45deg, rgba(14, 116, 144, 0.55), rgba(14, 116, 144, 0.55) 10px, rgba(14, 116, 144, 0.2) 10px, rgba(14, 116, 144, 0.2) 20px);
}

.warehouse-quick-detail-caption {
    font-size: 0.74rem;
    color: var(--iw-text);
}

.warehouse-quick-detail-caption.muted {
    color: var(--iw-muted);
    margin-top: 0.2rem;
}

.warehouse-quick-detail-stock-placeholder {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem;
    border-radius: 0.75rem;
    background: rgba(241, 245, 249, 0.92);
}

.warehouse-quick-detail-stock-icon {
    min-width: 42px;
    height: 42px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--iw-primary-strong);
    background: rgba(14, 116, 144, 0.1);
}

.warehouse-quick-detail-stock-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.warehouse-quick-detail-stock-grid div,
.warehouse-quick-detail-stock-list div {
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 0.7rem;
    background: rgba(248, 250, 252, 0.92);
    padding: 0.55rem 0.65rem;
}

.warehouse-quick-detail-stock-grid span,
.warehouse-quick-detail-stock-list span {
    display: block;
    color: var(--iw-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.warehouse-quick-detail-stock-grid strong,
.warehouse-quick-detail-stock-list strong {
    display: block;
    color: var(--iw-text);
    font-size: 0.88rem;
    line-height: 1.2;
}

.warehouse-quick-detail-stock-list {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.warehouse-quick-detail-stock-list div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.reports-hub,
.report-page {
    display: grid;
    gap: 18px;
}

.reports-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--iw-muted);
}

.reports-loading.reports-loading-skeleton {
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 14px;
}

.reports-loading-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--iw-muted);
}

.reports-hero,
.report-filter-bar,
.report-panel,
.report-summary-card,
.reports-card {
    border: 1px solid rgba(216, 226, 238, 0.92);
    background: rgba(255,255,255,0.94);
    box-shadow: 0 16px 36px rgba(17, 34, 64, 0.07);
}

.reports-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 18%, rgba(15, 159, 154, 0.16), transparent 28%),
        linear-gradient(135deg, #ffffff, #f3f8fc);
}

.reports-hero span {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-hero h2 {
    margin: 6px 0;
    color: #14213d;
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.reports-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--iw-muted);
}

.reports-hero > i {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    color: #0f766e;
    background: rgba(15, 159, 154, 0.12);
    font-size: 2rem;
}

.reports-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.reports-card {
    display: flex;
    gap: 14px;
    min-height: 154px;
    padding: 18px;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.reports-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 159, 154, 0.35);
    box-shadow: 0 20px 42px rgba(17, 34, 64, 0.1);
}

.reports-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #0f766e;
    background: rgba(15, 159, 154, 0.11);
    font-size: 1.25rem;
}

.reports-card h3 {
    margin: 5px 0 8px;
    color: #14213d;
    font-size: 1.05rem;
}

.reports-card p {
    margin: 0;
    color: var(--iw-muted);
    font-size: 0.88rem;
}

.reports-card-status {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.68rem;
    font-weight: 900;
}

.reports-card.warning .reports-card-status {
    background: #fff7ed;
    color: #c2410c;
}

.report-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 190px auto;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
}

.report-filter-bar.analytical {
    grid-template-columns: minmax(220px, 1fr) 160px 160px 190px auto;
}

.report-filter-bar .form-control,
.report-filter-bar .form-select,
.report-filter-bar .btn {
    min-height: 42px;
    border-radius: 13px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.report-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    border-radius: 22px;
    padding: 18px;
}

.report-summary-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(15, 159, 154, 0.08);
}

.report-summary-card i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #0f766e;
    background: rgba(15, 159, 154, 0.12);
}

.report-summary-card span,
.report-summary-card strong,
.report-summary-card small {
    display: block;
}

.report-summary-card span {
    margin-top: 12px;
    color: var(--iw-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-summary-card strong {
    color: #14213d;
    font-size: 1.55rem;
}

.report-summary-card small {
    color: var(--iw-muted);
}

.report-skeleton-card::after {
    display: none;
}

.report-skeleton-panel,
.report-skeleton-card,
.report-skeleton-list article,
.report-skeleton-list dl > div {
    pointer-events: none;
}

.report-skeleton-list {
    gap: 12px;
}

.report-skeleton-list article {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(360px, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fbfd;
}

.report-skeleton-list dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.report-skeleton-list dl > div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef6fb;
}

.report-skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #e5edf5 0%, #f4f8fb 48%, #e5edf5 100%);
    background-size: 220% 100%;
    animation: report-skeleton-shimmer 1.2s linear infinite;
}

.report-skeleton-block.icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
}

.report-skeleton-block.title {
    width: 34%;
    height: 12px;
    margin-top: 12px;
}

.report-skeleton-block.value {
    width: 22%;
    height: 28px;
    margin-top: 10px;
}

.report-skeleton-block.description {
    width: 68%;
    height: 12px;
    margin-top: 12px;
}

.report-skeleton-block.kicker {
    width: 128px;
    height: 12px;
}

.report-skeleton-block.hero-title {
    width: min(420px, 82%);
    height: 26px;
    margin-top: 14px;
}

.report-skeleton-block.hero-copy {
    width: min(620px, 92%);
    height: 14px;
    margin-top: 14px;
}

.report-skeleton-block.hero-copy.short {
    width: min(420px, 68%);
}

.report-skeleton-block.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
}

.report-skeleton-block.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

.report-skeleton-block.card-badge {
    width: 88px;
    height: 14px;
}

.report-skeleton-block.card-title {
    width: 72%;
    height: 18px;
    margin-top: 16px;
}

.report-skeleton-block.card-copy {
    width: 90%;
    height: 12px;
    margin-top: 12px;
}

.report-skeleton-block.card-copy.short {
    width: 62%;
}

.report-skeleton-block.heading {
    width: 180px;
    height: 18px;
}

.report-skeleton-block.counter {
    width: 76px;
    height: 14px;
}

.report-skeleton-block.row-title {
    width: 58%;
    height: 16px;
}

.report-skeleton-block.row-subtitle {
    width: 36%;
    height: 12px;
    margin-top: 10px;
}

.report-skeleton-block.metric-label {
    width: 42%;
    height: 10px;
}

.report-skeleton-block.metric-value {
    width: 56%;
    height: 16px;
    margin-top: 10px;
}

.report-skeleton-block.cell {
    width: 100%;
    height: 16px;
}

.report-skeleton-hero,
.report-skeleton-breakdown div,
.report-table-skeleton-row,
.report-skeleton-panel {
    pointer-events: none;
}

.report-table-skeleton {
    display: grid;
    gap: 10px;
}

.report-table-skeleton-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #edf3f8;
}

.report-table-skeleton-row:last-child {
    border-bottom: 0;
}

.report-skeleton-breakdown {
    gap: 10px;
}

.report-skeleton-breakdown div {
    background: #f8fafc;
}

@keyframes report-skeleton-shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -20% 0;
    }
}

.report-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}

.report-panel {
    border-radius: 22px;
    padding: 18px;
}

.report-panel.wide {
    min-width: 0;
}

.report-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.report-panel-head h3 {
    margin: 0;
    color: #14213d;
    font-size: 1.1rem;
}

.report-panel-head span {
    color: var(--iw-muted);
    font-weight: 700;
}

.report-breakdown-list {
    display: grid;
    gap: 10px;
}

.report-breakdown-list div {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 12px;
}

.report-breakdown-list span,
.report-breakdown-list strong,
.report-breakdown-list small {
    display: block;
}

.report-breakdown-list span {
    color: var(--iw-muted);
    font-weight: 800;
}

.report-breakdown-list strong {
    color: #14213d;
    font-size: 1.2rem;
}

.report-breakdown-list small {
    color: var(--iw-muted);
}

.report-analytic-list {
    display: grid;
    gap: 10px;
}

.report-analytic-list article {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr);
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #38bdf8;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: 14px;
}

.report-analytic-list article.warning {
    border-left-color: #f59e0b;
}

.report-analytic-list article.danger {
    border-left-color: #ef4444;
}

.report-analytic-list article.success {
    border-left-color: #10b981;
}

.report-analytic-list strong,
.report-analytic-list span {
    display: block;
}

.report-analytic-list strong {
    color: #14213d;
}

.report-analytic-list span {
    color: var(--iw-muted);
    font-size: 0.84rem;
}

.report-analytic-list dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.report-analytic-list dl div {
    border-radius: 14px;
    background: #eef6fb;
    padding: 10px;
}

.report-analytic-list dt {
    color: var(--iw-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-analytic-list dd {
    margin: 0;
    color: #14213d;
    font-weight: 900;
}

@media (max-width: 1199.98px) {
    .report-filter-bar,
    .report-filter-bar.analytical,
    .report-content-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-table-skeleton-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .reports-hero {
        flex-direction: column;
    }

    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-analytic-list article,
    .report-analytic-list dl,
    .report-skeleton-list article,
    .report-skeleton-list dl {
        grid-template-columns: 1fr;
    }

    .report-table-skeleton-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.inbound-row-scanned td,
.rz-datatable-data .inbound-row-scanned td {
    background-color: #dff6e8 !important;
    border-top: 2px solid #2f9e44 !important;
    border-bottom: 2px solid #2f9e44 !important;
}

.putaway-suggestion-row,
.putaway-task-card,
.putaway-line-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: #ffffff;
}

.putaway-suggestion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
}

.putaway-suggestion-row span {
    display: block;
    color: var(--iw-muted);
    font-size: 0.78rem;
}

.putaway-task-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.putaway-task-card {
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.putaway-task-card header,
.putaway-line-route,
.putaway-line-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.putaway-task-card header span,
.putaway-task-meta,
.putaway-line-title span {
    color: var(--iw-muted);
    font-size: 0.78rem;
}

.putaway-task-card header strong {
    display: block;
    color: var(--iw-text);
    font-size: 1.05rem;
}

.putaway-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.putaway-task-meta span,
.putaway-line-route span {
    border-radius: 8px;
    background: rgba(14, 116, 144, 0.08);
    color: var(--iw-primary-strong);
    padding: 0.24rem 0.5rem;
    font-weight: 700;
}

.putaway-line-card {
    padding: 0.85rem;
    margin-top: 0.75rem;
}

.putaway-line-route {
    margin: 0.65rem 0;
}

.putaway-action-strip,
.putaway-line-actions,
.putaway-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.putaway-line-mobile-meta,
.putaway-dialog-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.putaway-line-mobile-meta span,
.putaway-dialog-summary span {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.96);
    padding: 0.55rem 0.65rem;
    color: var(--iw-muted);
    font-size: 0.78rem;
}

.putaway-line-mobile-meta strong,
.putaway-dialog-summary strong {
    display: block;
    color: var(--iw-text);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.putaway-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.44);
}

.putaway-modal {
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 2rem));
    overflow: auto;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.putaway-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.putaway-modal-head span {
    color: var(--iw-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.putaway-modal-head h3 {
    margin: 0.1rem 0 0;
    color: var(--iw-text);
    font-size: 1.1rem;
}

.putaway-modal-body {
    padding: 1rem;
}

.putaway-modal-actions {
    justify-content: flex-end;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.putaway-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--iw-text);
    font-weight: 700;
}

.putaway-execution-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(16, 185, 129, 0.1));
    padding: 0.9rem;
}

.putaway-execution-hero span {
    display: block;
    color: var(--iw-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.putaway-execution-hero strong {
    color: var(--iw-text);
    font-size: 1.25rem;
}

.putaway-execution-hero b {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--iw-primary-strong);
    padding: 0.45rem 0.65rem;
}

.putaway-barcode-input {
    min-height: 48px;
    font-size: 1.05rem;
    font-weight: 700;
}

.putaway-free-product-preview {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.8rem;
    padding: 0.75rem;
    border: 1px solid rgba(14, 116, 144, 0.22);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.78);
}

.putaway-free-product-preview img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
}

.putaway-free-product-preview span,
.putaway-free-product-preview small {
    display: block;
    color: var(--iw-primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.putaway-free-product-preview strong {
    display: block;
    color: var(--iw-text);
    font-size: 1rem;
}

.putaway-free-product-preview p {
    margin: 0.15rem 0;
    color: var(--iw-muted);
    font-weight: 700;
}

.putaway-free-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin: 0.8rem 0;
}

.putaway-free-steps span {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    padding: 0.5rem 0.55rem;
    color: var(--iw-muted);
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.putaway-free-steps span.active {
    border-color: rgba(14, 116, 144, 0.34);
    color: var(--iw-primary-strong);
    background: rgba(14, 116, 144, 0.08);
}

.putaway-free-steps span.done {
    color: #166534;
    background: rgba(34, 197, 94, 0.1);
}

@media (max-width: 768px) {
    .putaway-task-board {
        grid-template-columns: 1fr;
    }

    .putaway-task-card {
        padding: 0.85rem;
    }

    .putaway-line-title,
    .putaway-line-route,
    .putaway-modal-head,
    .putaway-execution-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .putaway-action-strip .btn,
    .putaway-line-actions .btn,
    .putaway-modal-actions .btn {
        width: 100%;
    }

    .putaway-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .putaway-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px 8px 0 0;
    }

    .putaway-modal-actions {
        position: sticky;
        bottom: 0;
        background: #ffffff;
    }

    .putaway-free-product-preview {
        grid-template-columns: 64px 1fr;
    }

    .putaway-free-product-preview img {
        width: 64px;
        height: 64px;
    }

.putaway-free-steps {
        grid-template-columns: 1fr;
    }
}

.counting-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.counting-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 52%, #fef6ec 100%);
    box-shadow: 0 14px 34px rgba(19, 34, 57, .08);
}

.counting-hero h3 {
    margin: 4px 0 6px;
    font-size: 1.45rem;
}

.counting-hero p,
.counting-location-row small,
.counting-task-row small,
.counting-staff-card small {
    color: #526070;
}

.counting-hero p {
    margin: 0;
    max-width: 760px;
}

.counting-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 32, 55, .05);
}

.counting-filter-grid label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
    font-size: .92rem;
}

.counting-checks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.counting-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
}

.counting-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.counting-kpis article {
    padding: 18px 20px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 32, 55, .05);
}

.counting-kpis span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: .88rem;
}

.counting-kpis strong {
    color: #0f172a;
    font-size: 1.4rem;
    line-height: 1.2;
}

.counting-workspace {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

.counting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.counting-board-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 220px)) minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.counting-board-search {
    min-width: 0;
}

.counting-board-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 220px;
}

.counting-board-filter-summary {
    display: grid;
    gap: 2px;
}

.counting-board-filter-summary span {
    color: #64748b;
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em;
}

.counting-board-filter-summary strong {
    color: #0f172a;
    font-size: .96rem;
}

.counting-staff-grid,
.counting-location-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.counting-staff-card,
.counting-location-row,
.counting-task-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #d9e5f2;
    border-radius: 8px;
    background: #f8fbff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.counting-staff-card:hover,
.counting-location-row:hover,
.counting-task-row:hover {
    border-color: #8ab7f0;
    box-shadow: 0 10px 24px rgba(41, 98, 255, .08);
}

.erp-job-summary-card {
    padding: 16px 18px;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.erp-job-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.erp-job-summary-head strong {
    color: #0f172a;
}

.erp-job-summary-head span {
    color: #64748b;
    font-size: .82rem;
}

.erp-job-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.erp-job-summary-metric {
    padding: 12px 14px;
    border: 1px solid #d9e5f2;
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
}

.erp-job-summary-metric span,
.erp-job-summary-list span {
    display: block;
    color: #64748b;
    font-size: .78rem;
}

.erp-job-summary-metric strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.2;
}

.erp-job-summary-list {
    display: grid;
    gap: 6px;
}

@media (max-width: 992px) {
    .erp-job-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .erp-job-summary-grid {
        grid-template-columns: 1fr;
    }
}

.counting-staff-card input,
.counting-location-row input {
    margin: 0;
}

.counting-staff-card strong,
.counting-location-row strong,
.counting-task-row strong {
    display: block;
    color: #0f172a;
}

.counting-staff-card small,
.counting-location-row small,
.counting-task-row small {
    display: block;
    margin-top: 2px;
}

.counting-staff-card span,
.counting-location-row span,
.counting-task-row span {
    color: #334155;
    font-size: .92rem;
    text-align: right;
}

.counting-staff-card {
    grid-template-columns: auto 1fr;
    background: #f8fffb;
}

.counting-location-row.wide {
    grid-template-columns: 1.2fr repeat(3, auto) auto;
}

.counting-task-row {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: #ffffff;
}

.counting-location-row.active,
.counting-task-row:focus-visible,
.counting-task-row:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}

.compact-number {
    width: 112px;
}

.counting-planner {
    max-width: min(1480px, calc(100vw - 24px));
    width: min(1480px, calc(100vw - 24px));
}

.counting-planner-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 720px;
}

.counting-planner-steps {
    padding: 22px;
    border-right: 1px solid #e4ebf3;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.counting-planner-steps button {
    border: 1px solid #d8e2ef;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    color: #526070;
}

.counting-planner-steps button.active {
    border-color: #1f8f75;
    color: #17362f;
    box-shadow: inset 4px 0 0 #1f8f75;
}

.counting-planner-steps b {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e9f5f1;
    color: #11735f;
}

.counting-planner-body {
    padding: 24px;
    overflow: auto;
}

.counting-planner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.counting-kpis-compact {
    margin-bottom: 18px;
}

.counting-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.counting-mode-card {
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    text-align: left;
    display: grid;
    gap: 6px;
}

.counting-mode-card.active {
    border-color: #1f8f75;
    box-shadow: 0 0 0 3px rgba(31, 143, 117, .14);
}

.counting-mode-card span {
    color: #627187;
}

.counting-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.counting-analysis-panel {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    min-height: calc(100vh - 190px);
    max-height: calc(100vh - 150px);
    overflow: hidden;
}

.counting-analysis-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 18px;
    min-height: 0;
}

.counting-analysis-main,
.counting-location-dock {
    min-height: 0;
    display: grid;
    gap: 14px;
}

.counting-analysis-section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.counting-analysis-section-head h4 {
    margin: 0 0 4px;
    color: #0f172a;
}

.counting-analysis-section-head p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.counting-analysis-section-head strong {
    color: #0f766e;
    font-size: .92rem;
    white-space: nowrap;
}

.counting-staff-grid-scroll,
.counting-location-dock-list {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.counting-location-dock {
    padding: 16px;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.counting-location-dock-summary {
    padding: 10px 12px;
    border-radius: 8px;
    background: #edf6ff;
    color: #1d4f91;
    font-weight: 600;
    font-size: .9rem;
}

.counting-location-row-compact {
    padding: 12px 14px;
}

.counting-planner-actions-sticky {
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid #e4ebf3;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #ffffff 28%);
    position: sticky;
    bottom: 0;
}

.compact-number-group {
    display: grid;
    gap: 6px;
}

.compact-number-group label {
    color: #334155;
    font-weight: 600;
    font-size: .92rem;
}

.counting-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.counting-summary-card {
    border: 1px solid #d9e3ee;
    border-radius: 8px;
    padding: 16px 18px;
    background: #fff;
    min-height: 104px;
    display: grid;
    align-content: space-between;
}

.counting-summary-card span {
    color: #5e6b7d;
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 800;
}

.counting-summary-card strong {
    color: #162233;
    font-size: 1.8rem;
    line-height: 1;
}

.counting-alert {
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.counting-alert.ok {
    background: #effaf5;
    border-color: #bce7d2;
    color: #0f6a4d;
}

.counting-alert.warn {
    background: #fff8eb;
    border-color: #f2d59f;
    color: #9a6700;
}

.counting-assignment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.counting-assignment-card {
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    display: grid;
    gap: 14px;
}

.panel-head.compact {
    margin-bottom: 0;
}

.panel-head.compact p {
    margin: 4px 0 0;
    color: #64748b;
}

.counting-chip-section {
    display: grid;
    gap: 8px;
}

.counting-chip-section label {
    color: #334155;
    font-weight: 700;
}

.counting-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.counting-chip {
    border: 1px solid #cfd9e6;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    transition: all .18s ease;
}

.counting-chip.active {
    border-color: #1f8f75;
    background: #eaf8f2;
    color: #145947;
}

.counting-assignment-foot {
    color: #526070;
    font-size: .92rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .counting-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .counting-board-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .counting-workspace {
        grid-template-columns: 1fr;
    }

    .counting-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .counting-summary-grid,
    .counting-assignment-grid {
        grid-template-columns: 1fr;
    }

    .counting-analysis-layout {
        grid-template-columns: 1fr;
    }

    .counting-analysis-panel {
        min-height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .counting-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .counting-filter-grid,
    .counting-kpis {
        grid-template-columns: 1fr;
    }

    .counting-board-filter-bar,
    .counting-board-filter-actions {
        grid-template-columns: 1fr;
    }

    .counting-board-filter-actions {
        display: grid;
    }

    .counting-staff-card,
    .counting-location-row,
    .counting-task-row,
    .counting-location-row.wide {
        grid-template-columns: 1fr;
    }

    .counting-staff-card span,
    .counting-location-row span,
    .counting-task-row span {
        text-align: left;
    }

    .counting-planner-layout {
        grid-template-columns: 1fr;
    }

    .counting-planner-steps {
        border-right: 0;
        border-bottom: 1px solid #e4ebf3;
        flex-direction: row;
        overflow-x: auto;
    }

    .counting-mode-grid,
    .counting-summary-grid {
        grid-template-columns: 1fr;
    }

    .counting-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .counting-analysis-section-head {
        flex-direction: column;
    }
}

.sidebar-search-shell {
    position: relative;
    padding: 0 6px;
}

.sidebar-search-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #edf4ff;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: text;
    text-align: left;
}

.sidebar-search-trigger:hover,
.sidebar-search-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    outline: none;
}

.sidebar-search-trigger-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-search-trigger-main > i,
.sidebar-search-input-wrap > i {
    font-size: 0.95rem;
    color: rgba(237, 244, 255, 0.8);
}

.sidebar-search-trigger-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sidebar-search-trigger-copy strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.sidebar-search-trigger-copy small {
    display: block;
    font-size: 0.74rem;
    color: rgba(237, 244, 255, 0.58);
    line-height: 1.2;
}

.sidebar-search-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    z-index: 2600;
    width: min(460px, calc(100vw - 36px));
    max-height: min(680px, calc(100vh - 56px));
    transform: translate(-50%, -50%);
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(10, 19, 38, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 28px 52px rgba(3, 8, 20, 0.48);
    overflow: hidden;
}

.sidebar-search-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-search-popover-head strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
}

.sidebar-search-popover-head span {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    color: rgba(237, 244, 255, 0.62);
    line-height: 1.45;
}

.sidebar-search-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #edf4ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sidebar-search-close:hover,
.sidebar-search-close:focus-visible {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
    outline: none;
}

.sidebar-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-search-input-wrap:focus-within {
    border-color: rgba(79, 198, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(79, 198, 255, 0.18);
}

.sidebar-search-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    padding: 0;
    outline: none;
}

.sidebar-search-input::placeholder {
    color: rgba(237, 244, 255, 0.44);
}

.sidebar-search-results {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-search-results::-webkit-scrollbar {
    width: 6px;
}

.sidebar-search-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.04);
    color: #edf4ff;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-search-result:hover,
.sidebar-search-result:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(79, 198, 255, 0.28);
    outline: none;
}

.sidebar-search-result-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-search-result-main > i {
    font-size: 0.95rem;
    color: rgba(237, 244, 255, 0.78);
}

.sidebar-search-result-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sidebar-search-result-copy strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #ffffff;
}

.sidebar-search-result-copy span {
    display: block;
    font-size: 0.74rem;
    line-height: 1.2;
    color: rgba(237, 244, 255, 0.58);
}

.sidebar-search-result-action {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7ddcff;
}

.sidebar-search-empty {
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-search-empty strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

.sidebar-search-empty span {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: rgba(237, 244, 255, 0.62);
}

.sidebar-footer-stack {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
    align-items: center;
}

.app-sidebar .sidebar-footer-stack .sidebar-company-dock {
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.app-sidebar .sidebar-footer-stack .sidebar-company-dock .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.app-sidebar .sidebar-footer-stack .sidebar-company-dock .brand-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-sidebar .sidebar-company-dock .sidebar-company-copy {
    display: flex;
    align-items: center;
    min-width: 0;
}

.app-sidebar .sidebar-company-dock .sidebar-company-copy .inventara-wordmark {
    align-items: center;
    justify-content: center;
    gap: 0.14em;
    font-size: 1.32rem;
    line-height: 1;
    white-space: nowrap;
}

.app-sidebar .sidebar-product-header .sidebar-product-copy strong {
    font-size: 1.316rem;
    line-height: 1;
}

.app-sidebar .sidebar-company-dock .sidebar-company-copy .inventara-wordmark-main {
    color: #ffffff;
}

.app-sidebar .sidebar-company-dock .sidebar-company-copy .inventara-wordmark span {
    font-size: inherit;
    line-height: inherit;
}

.app-sidebar .sidebar-company-dock .sidebar-company-copy .inventara-wordmark-accent {
    background: linear-gradient(115deg, #c8f4ff 0%, #63dcff 24%, #18b8ff 48%, #087dff 72%, #54efff 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-user-menu-slot {
    position: relative;
    width: 100%;
}

.sidebar-user-menu-slot .user-menu-dropdown {
    width: 100%;
}

.sidebar-user-menu-slot .sidebar-user-trigger {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: #edf4ff;
}

.sidebar-user-menu-slot .sidebar-user-trigger .user-avatar-clean {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    background: #2546c7;
    font-size: 1rem;
}

.sidebar-user-menu-slot .sidebar-user-trigger .user-copy-clean {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
}

.sidebar-user-menu-slot .sidebar-user-trigger .user-copy-clean strong {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-trigger-icon {
    margin-left: auto;
    color: rgba(237, 244, 255, 0.72);
    font-size: 1.25rem;
}

.sidebar-user-menu-slot .user-menu-panel-clean.sidebar-user-panel-card {
    right: 0;
    left: 0;
    top: auto;
    bottom: calc(100% + 14px);
    width: 100%;
    min-width: 0;
    padding: 10px;
    border-radius: 22px;
    background: #f4f7fb;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 46px rgba(2, 8, 23, 0.28);
    display: grid;
    gap: 10px;
    z-index: 90;
}

.sidebar-user-panel-section {
    min-height: 56px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #111827;
}

.sidebar-user-panel-profile {
    justify-content: flex-start;
}

.sidebar-user-panel-profile .user-avatar-clean.large {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 999px;
    background: #dbeafe;
    color: #0b63ff;
    font-size: 1.08rem;
}

.sidebar-user-panel-profile > div > strong,
.sidebar-user-panel-profile > div > span {
    display: block;
}

.sidebar-user-panel-profile > div > strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-user-panel-profile > div > span {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.25;
    word-break: break-word;
}

.sidebar-user-panel-action {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-user-panel-action:hover {
    color: #0b63ff;
}

.sidebar-user-panel-action.danger {
    color: #111827;
}

.sidebar-mode-toggle,
.sidebar-language-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: #eef1f6;
}

.sidebar-mode-toggle button,
.sidebar-language-toggle button {
    border: 0;
    width: 38px;
    height: 34px;
    border-radius: 999px;
    background: transparent;
    color: #8b95a5;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sidebar-mode-toggle button.active,
.sidebar-language-toggle button.active {
    background: #ffffff;
    color: #22c55e;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.sidebar-mode-toggle button:nth-child(2).active {
    color: #64748b;
}

.shell-layout.collapsed .sidebar-footer-stack {
    justify-items: center;
}

.shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger {
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
}

.shell-layout.collapsed .sidebar-user-menu-slot .user-copy-clean,
.shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger-icon {
    display: none;
}

.shell-layout.collapsed .sidebar-user-menu-slot .user-menu-panel-clean.sidebar-user-panel-card {
    left: calc(100% + 14px);
    right: auto;
    bottom: 0;
    width: 260px;
}

.shell-layout.collapsed .sidebar-search-shell {
    padding: 0;
}

.shell-layout.collapsed .sidebar-search-trigger {
    width: 54px;
    height: 54px;
    padding: 0;
    margin-inline: auto;
    justify-content: center;
    border-radius: 16px;
}

.shell-layout.collapsed .sidebar-search-trigger-copy {
    display: none;
}

.shell-layout.collapsed .sidebar-search-popover {
    top: 50%;
    left: 50%;
    right: auto;
    width: min(460px, calc(100vw - 36px));
    transform: translate(-50%, -50%);
}

/* Sidebar collapse, overflow and synchronized layout behavior */
.shell-layout {
    transition: grid-template-columns 0.24s ease;
}

.app-sidebar {
    min-width: 0;
    max-width: var(--iw-sidebar-width);
    overflow-x: hidden;
    transition: padding 0.24s ease, gap 0.24s ease;
}

.sidebar-nav-scroll {
    min-width: 0;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-gutter: auto;
}

.sidebar-nav-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-product-header + .sidebar-nav-scroll {
    margin-top: -10px;
}

.shell-main,
.shell-content {
    min-width: 0;
    transition: padding 0.24s ease;
}

.shell-layout.collapsed .app-sidebar {
    width: var(--iw-sidebar-collapsed-width);
    padding-inline: 12px;
}

.shell-layout.collapsed .nav-group-title,
.shell-layout.collapsed .nav-link-label,
.shell-layout.collapsed .nav-link-chevron,
.shell-layout.collapsed .sidebar-product-copy,
.shell-layout.collapsed .sidebar-company-copy {
    display: none;
}

.shell-layout.collapsed .nav-tree,
.shell-layout.collapsed .nav-group,
.shell-layout.collapsed .sidebar-footer-stack,
.shell-layout.collapsed .sidebar-user-menu-slot {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.shell-layout.collapsed .submenu-list,
.shell-layout.collapsed .submenu-flyout {
    display: none !important;
}

.shell-layout.collapsed .sidebar-footer-stack {
    gap: 10px;
    padding-top: 10px;
    position: relative;
    z-index: 4;
    background: var(--iw-sidebar);
    box-shadow: 0 -12px 22px rgba(7, 18, 38, 0.32);
}

.shell-layout.collapsed .app-sidebar .sidebar-footer-stack .sidebar-company-dock {
    width: 54px;
    padding: 0;
}

.shell-layout.collapsed .app-sidebar .sidebar-footer-stack .sidebar-company-dock .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.sidebar-search-trigger {
    cursor: pointer;
}

.sidebar-toggle-float,
.sidebar-search-float,
.shell-layout.collapsed .sidebar-toggle-float,
.shell-layout.collapsed .sidebar-search-float {
    left: calc(var(--iw-sidebar-width) - 19px);
    right: auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    transition: left 0.24s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-search-float,
.shell-layout.collapsed .sidebar-search-float {
    top: 138px;
    color: var(--iw-primary);
}

.shell-layout.collapsed .sidebar-toggle-float,
.shell-layout.collapsed .sidebar-search-float {
    left: calc(var(--iw-sidebar-collapsed-width) - 19px);
}

@media (max-width: 900px) {
    .sidebar-toggle-float,
    .sidebar-search-float,
    .shell-layout.collapsed .sidebar-toggle-float,
    .shell-layout.collapsed .sidebar-search-float {
        left: calc(var(--iw-sidebar-collapsed-width) - 18px);
        right: auto;
        width: 36px;
        height: 36px;
    }

    .sidebar-search-float,
    .shell-layout.collapsed .sidebar-search-float {
        top: 126px;
    }
}

/* Final responsive overrides: keep after legacy sidebar rules. */
@media (max-width: 1024px) {
    .shell-layout,
    .shell-layout.collapsed,
    .shell-layout.mobile-shell {
        display: block;
        grid-template-columns: none;
        width: 100%;
        min-height: 100dvh;
    }

    .shell-layout .app-sidebar,
    .shell-layout.collapsed .app-sidebar {
        position: fixed;
        inset-block: 0;
        left: 0;
        z-index: 2000;
        width: min(272px, calc(100vw - 28px));
        max-width: min(272px, calc(100vw - 28px));
        height: 100dvh;
        max-height: 100dvh;
        padding: 18px 14px;
        gap: 14px;
        overflow: hidden;
        transform: translateX(calc(-100% - 12px));
        transition: transform 0.24s ease;
        box-shadow: 18px 0 48px rgba(3, 8, 20, 0.34);
    }

    .shell-layout.mobile-drawer-open .app-sidebar {
        transform: translateX(0);
    }

    .shell-layout .sidebar-product-copy,
    .shell-layout .sidebar-company-copy,
    .shell-layout .nav-group-title,
    .shell-layout .nav-link-label,
    .shell-layout .nav-link-chevron,
    .shell-layout .sidebar-search-trigger-copy,
    .shell-layout .sidebar-user-menu-slot .user-copy-clean,
    .shell-layout .sidebar-user-menu-slot .sidebar-user-trigger-icon {
        display: initial;
    }

    .shell-layout .nav-link,
    .shell-layout .nav-parent,
    .shell-layout.collapsed .nav-link,
    .shell-layout.collapsed .nav-parent {
        width: 100%;
        height: auto;
        min-height: 44px;
        padding: 10px 12px;
        margin: 0;
    }

    .shell-layout .nav-link-main,
    .shell-layout.collapsed .nav-link-main {
        width: auto;
        height: auto;
    }

    .shell-layout .sidebar-search-trigger,
    .shell-layout.collapsed .sidebar-search-trigger {
        width: 100%;
        height: auto;
        min-height: 48px;
        padding: 10px 12px;
    }

    .shell-layout .sidebar-footer-stack,
    .shell-layout.collapsed .sidebar-footer-stack,
    .shell-layout .sidebar-user-menu-slot {
        width: 100%;
        justify-items: stretch;
    }

    .shell-layout .sidebar-user-menu-slot .sidebar-user-trigger,
    .shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger {
        width: 100%;
        height: auto;
        min-height: 50px;
        padding: 7px 10px;
        justify-content: flex-start;
    }

    .sidebar-drawer-close,
    .mobile-menu-button {
        display: grid;
    }

    .sidebar-toggle-float,
    .sidebar-search-float {
        display: none !important;
    }

    .shell-main {
        width: 100%;
        min-width: 0;
        padding: 12px 14px 26px;
    }

    .app-header-clean {
        min-height: 52px;
        flex-direction: row;
        align-items: center;
    }

    .header-leading {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .sidebar-search-popover,
    .shell-layout.collapsed .sidebar-search-popover {
        top: 50%;
        left: 50%;
        right: auto;
        width: calc(100vw - 32px);
        max-width: 460px;
        max-height: calc(100dvh - 32px);
        transform: translate(-50%, -50%);
    }
}
/* Dashboard dark theme is global because the theme attribute lives on <html>. */
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-kpi-card,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-chart-card,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-panel,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-alert-row,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-module-row,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-health-item,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-footprint-item,
[data-bs-theme="dark"] .dashboard-filter-modal {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .dashboard-page-compact .dashboard-kpi-card.data-unavailable {
    background: #292211 !important;
    border-color: #f59e0b !important;
}

[data-bs-theme="dark"] .dashboard-page-compact .stat-copy span,
[data-bs-theme="dark"] .dashboard-page-compact .stat-copy p,
[data-bs-theme="dark"] .dashboard-page-compact small,
[data-bs-theme="dark"] .dashboard-page-compact .panel-head span,
[data-bs-theme="dark"] .dashboard-page-compact .dashboard-chart-bar-label {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .dashboard-page-compact .dashboard-chart-empty {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .dashboard-page-compact .dashboard-chart-bar-value,
[data-bs-theme="dark"] .dashboard-page-compact strong,
[data-bs-theme="dark"] .dashboard-filter-modal strong,
[data-bs-theme="dark"] .dashboard-filter-modal h3,
[data-bs-theme="dark"] .dashboard-filter-modal .field-label {
    color: #f8fafc !important;
}
.erp-job-log-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #dfe4ea);
}

.erp-job-message {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.inventory-column-filter {
    display: grid;
    min-width: 15rem;
    gap: 0.5rem;
    padding: 0.25rem;
}

.inventory-column-filter .btn {
    justify-self: end;
}

.oms-rejection-reason {
    display: grid;
    gap: 0.45rem;
    min-width: 18rem;
    white-space: normal;
}

.oms-rejection-reason details {
    color: var(--text-secondary, #667085);
}

.oms-rejection-reason summary {
    cursor: pointer;
    font-weight: 600;
}

.oms-rejection-reason ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}

.oms-rejection-line {
    display: grid;
    gap: 0.25rem;
}

.oms-rejection-line + .oms-rejection-line {
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding-top: 0.55rem;
}

.notification-center { position: relative; margin-left: auto; }
.notification-backdrop { position:fixed; z-index:1199; inset:0; border:0; padding:0; background:transparent; cursor:default; }
.notification-trigger { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 13px; color: var(--text-primary, #172033); background: var(--surface, #fff); font-size: 1.05rem; }
.notification-trigger:hover { border-color: #b8c0cf; background: var(--surface-muted, #f7f8fa); }
.notification-badge { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--surface, #fff); border-radius: 11px; background: #b4232a; color: #fff; font-size: 12px; line-height: 1; font-weight: 700; }
.notification-panel { position: absolute; z-index: 1200; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18); }
.notification-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.notification-panel-header h3 { margin: 0; font-size: 1rem; }
.notification-panel-header span { display: block; margin-top: 3px; color: #475467; font-size: 13px; }
.notification-panel-header button { border: 0; padding: 5px; background: transparent; color: #2949b3; font-size: 13px; font-weight: 650; }
.notification-list { max-height: min(520px, calc(100dvh - 150px)); overflow-y: auto; }
.notification-item { width: 100%; display: grid; grid-template-columns: 9px 1fr; gap: 12px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--border-color, #eef0f3); background: transparent; color: inherit; text-align: left; }
.notification-item:hover { background: var(--surface-muted, #f7f8fa); }
.notification-item.unread { background: rgba(49, 87, 213, 0.055); }
.notification-severity { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #5282e4; }
.severity-success { background: #2e9d65; } .severity-warning { background: #dc8b16; } .severity-error { background: #d64545; }
.notification-copy { display: grid; gap: 4px; min-width: 0; }
.notification-copy strong { font-size: 14px; line-height: 1.35; }
.notification-copy > span { display: -webkit-box; overflow: hidden; color: #475467; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.notification-copy time { color: #475467; font-size: 13px; }
.notification-state, .notification-empty { margin: 0; padding: 34px 20px; color: #475467; text-align: center; font-size: 14px; }
.notification-error { display: grid; gap: 12px; color: #8f2032; }
.notification-error button { justify-self: center; min-height: 36px; border: 1px solid #8f2032; border-radius: 9px; padding: 6px 12px; background: #fff; color: #8f2032; font: inherit; font-weight: 700; }
.notification-empty i { display: block; margin-bottom: 8px; font-size: 1.35rem; }
@media (max-width: 640px) { .notification-panel { position: fixed; top: 68px; right: 14px; left: 14px; width: auto; } }

.notification-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-panel-header .notification-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 10px;
    color: var(--text-primary, #172033);
}

.notification-panel-header .notification-close:hover,
.notification-panel-header .notification-close:focus-visible {
    background: var(--surface-muted, #f1f5f9);
    outline: 2px solid var(--iw-primary);
    outline-offset: 2px;
}

.notification-close i {
    font-size: 1rem;
}

.sidebar-drawer-scrim {
    cursor: pointer;
}

/* Dashboard is intentionally an empty canvas until its next design iteration. */
.dashboard-design-canvas {
    min-height: calc(100dvh - 116px);
}

.header-title-wrap h2 {
    font-family: "Nasalization", "Segoe UI", sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.sidebar-company-wordmark {
    display: block;
    width: 92px;
    height: auto;
}

body .login-form-card .login-form-footer-row .checkbox-line {
    font-size: 0.7452rem;
}

body .login-form-card .login-form-footer-row .rz-chkbox,
body .login-form-card .login-form-footer-row .rz-chkbox-box {
    width: 16.2px;
    min-width: 16.2px;
    height: 16.2px;
}

/* Dashboard operations room */
.operations-dashboard { display:grid; gap:18px; color:#15213a; }
.operations-command-bar { display:flex; align-items:end; justify-content:space-between; gap:22px; padding:22px 24px; border:1px solid #d9e2f0; border-radius:22px; background:linear-gradient(120deg,#fff 0%,#f5f9ff 72%,#eaf3ff 100%); box-shadow:0 14px 34px rgba(24,48,84,.07); }
.operations-command-bar h1 { margin:4px 0 5px; font-size:1.55rem; letter-spacing:-.035em; }
.operations-command-bar p { margin:0; color:#66758e; font-size:.78rem; }
.operations-kicker,.operations-panel header span { color:#537095; font-size:.61rem; font-weight:750; letter-spacing:.14em; }
.operations-filter { display:flex; align-items:end; gap:9px; }
.operations-filter label { display:grid; gap:5px; color:#62718a; font-size:.64rem; font-weight:700; }
.operations-filter input { width:132px; min-height:38px; padding:7px 9px; border:1px solid #d3ddeb; border-radius:11px; background:#fff; color:#15213a; }
.operations-filter button { min-height:38px; display:flex; align-items:center; gap:7px; border-radius:11px; }
.operations-primary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.operations-metric { min-height:126px; display:grid; grid-template-columns:42px minmax(0,1fr); gap:13px; padding:18px; overflow:hidden; border:1px solid #8fc5ff; border-top:3px solid #2389f5; border-radius:19px; background:linear-gradient(115deg,#f8fbff 0%,#deedff 38%,#f5faff 68%,#cfe5ff 100%); background-size:240% 240%; box-shadow:0 12px 28px rgba(24,94,180,.12); animation:operationsMetricBlueFlow 8s ease-in-out infinite; }
.operations-metric .metric-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:rgba(255,255,255,.62); color:#126fd2; font-size:1rem; box-shadow:inset 0 0 0 1px rgba(54,135,229,.13); }
.operations-metric>div:last-child { display:grid; align-content:space-between; justify-items:stretch; gap:4px; min-width:0; }
.operations-metric span { min-height:30px; color:#365778; font-size:.68rem; font-weight:750; line-height:1.4; }
.operations-metric strong { align-self:end; justify-self:end; text-align:right; font-size:3.3rem; line-height:.88; letter-spacing:-.065em; color:#0d3970; }
.operations-metric small { color:#8995a8; font-size:.59rem; line-height:1.4; }
@keyframes operationsMetricBlueFlow { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.operations-split-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr); gap:12px; }
.operations-panel { min-width:0; padding:18px; border:1px solid #dfe6f0; border-radius:19px; background:rgba(255,255,255,.92); box-shadow:0 12px 28px rgba(24,48,84,.055); }
.operations-panel header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.operations-panel h2 { margin:3px 0 0; font-size:.94rem; }.operations-panel header>small { color:#7b899e; font-size:.63rem; }
.trend-legend { display:flex; justify-content:flex-end; gap:16px; margin-top:8px; color:#6d7d94; font-size:.62rem; }.trend-legend span::before { content:""; display:inline-block; width:8px; height:8px; margin-right:5px; border-radius:3px; }.trend-legend .unpacked::before{background:#91a8c9}.trend-legend .packed::before{background:#2b8cf0}
.operations-bar-chart { width:100%; max-width:100%; height:178px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(34px,1fr); align-items:stretch; gap:10px; margin-top:8px; padding:8px 2px 0; overflow-x:auto; overflow-y:hidden; border-bottom:1px solid #e5eaf1; scrollbar-width:thin; }
.bar-day { min-width:0; display:grid; grid-template-rows:1fr 28px; gap:6px; text-align:center; color:#77869c; font-size:.55rem; }.bar-day>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-values { display:flex; align-items:end; justify-content:center; gap:3px; }.bar-values i { width:min(15px,38%); min-height:3px; border-radius:5px 5px 2px 2px; }.bar-unpacked{background:#91a8c9}.bar-packed{background:linear-gradient(#55b8ff,#1874df)}
.oms-panel { background:linear-gradient(145deg,#112848,#173c68); color:#fff; }.oms-panel header span{color:#8dc7ff}.oms-panel header i{font-size:1.25rem;color:#66b6ff}.oms-score-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:20px; }.oms-score-grid>div{min-width:0;padding:13px 10px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.06)}.oms-score-grid .wide{grid-column:1/-1}.oms-score-grid span{display:block;color:#b9d0e7;font-size:.63rem;overflow-wrap:anywhere}.oms-score-grid strong{display:block;margin-top:6px;font-size:1.35rem}.oms-store-exits{display:flex;gap:7px;margin-top:10px;padding-top:10px;overflow-x:auto;border-top:1px solid rgba(255,255,255,.12)}.oms-store-exits>div{min-width:70px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 9px;border-radius:10px;background:rgba(83,167,255,.13)}.oms-store-exits span{color:#a9d5ff;font-size:.6rem}.oms-store-exits strong{font-size:.78rem}
.operations-work-grid { display:grid; grid-template-columns:1.25fr 1.25fr .8fr 1.2fr; gap:12px; }.workload-card header i{color:#4b8ddc}.workload-values{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:8px;margin-top:15px}.workload-values>div{padding:11px;border-radius:13px;background:#f3f7fc}.workload-values strong,.workload-values span{display:block}.workload-values strong{font-size:1.15rem}.workload-values span{margin-top:3px;color:#718097;font-size:.58rem}.workload-card.cyan{border-top:3px solid #16a8c9}.workload-card.violet{border-top:3px solid #7966d8}
.compact-stat { display:grid; align-content:center; gap:7px; background:#fff9ec; border-color:#f1dfb9; }.compact-stat>span{color:#7f6b40;font-size:.65rem;font-weight:700}.compact-stat strong{font-size:1.8rem}.compact-stat small{color:#97845d}
.inventory-health { display:flex; align-items:center; gap:14px; }.health-ring{--health:0;width:70px;height:70px;flex:0 0 70px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#20b97a calc(var(--health)*1%),#e8edf4 0);position:relative}.health-ring::after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}.health-ring span{z-index:1;font-size:.72rem;font-weight:800}.inventory-health>div:last-child{display:grid;gap:5px}.inventory-health>div:last-child span{font-size:.66rem;color:#607088}.inventory-health strong{font-size:1rem}.inventory-health small{font-size:.58rem;color:#8995a8;line-height:1.4}
.operations-lower-grid { display:grid; grid-template-columns:1fr 1fr 1.35fr; gap:12px; }.reason-pivot header>span{display:grid;place-items:center;min-width:30px;height:30px;border-radius:10px;background:#eef4fb;color:#376797;font-weight:800}.reason-list{display:grid;gap:9px;margin-top:14px}.reason-list>div{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:8px;position:relative;padding-bottom:6px}.reason-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#56667e;font-size:.64rem}.reason-list strong{text-align:right;font-size:.68rem}.reason-list i{position:absolute;left:0;bottom:0;height:3px;border-radius:2px;background:linear-gradient(90deg,#5ca7f2,#775fd5)}.panel-empty{margin:18px 0 0;color:#8793a5;font-size:.68rem}
.aged-list header>strong{font-size:1.15rem}.aged-order-table{display:grid;margin-top:10px}.aged-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #edf0f5}.aged-order-row div{display:grid}.aged-order-row strong{font-size:.68rem}.aged-order-row div span,.aged-order-row>span{color:#7b899d;font-size:.58rem}.aged-order-row em{padding:4px 6px;border-radius:8px;background:#fff0f1;color:#c44857;font-size:.58rem;font-style:normal;text-align:center}.operations-freshness{display:flex;justify-content:flex-end;gap:7px;color:#7b899e;font-size:.61rem}

/* Requested 5% sidebar increase using real dimensions. */
html:root { --iw-sidebar-width:214.2px; --iw-sidebar-collapsed-width:74.55px; }
body .app-sidebar { padding:15.75px 11.55px; gap:15.75px; }
body .sidebar-top { gap:9.45px; padding:3.15px 5.25px 8.4px; }
body .sidebar-product-header .brand-mark { width:49.35px; height:49.35px; }
body .nav-group { gap:5.25px; } body .nav-group-title { font-size:.51975rem; padding-inline:9.45px; margin-bottom:3.15px; }
body .nav-link,body .nav-parent { min-height:34.65px; padding:8.4px 11.55px; border-radius:11.55px; }
body .nav-link-main { gap:8.4px; font-size:.70875rem; } body .nav-link i,body .nav-parent i,body .submenu-link i { font-size:.748125rem; }
body .submenu-link { min-height:31.5px; padding:8.4px 9.45px; font-size:.693rem; gap:8.4px; }
body .sidebar-user-menu-slot .sidebar-user-trigger { min-height:39.9px; gap:9.45px; padding:7.35px 9.45px; }
body .sidebar-user-menu-slot .sidebar-user-trigger .user-avatar-clean { width:28.35px;height:28.35px;flex-basis:28.35px;font-size:.7875rem; }
body .sidebar-user-menu-slot .sidebar-user-trigger .user-copy-clean strong { font-size:.80325rem; }
.sidebar-product-wordmark { display:block; width:77px; height:auto; }
.header-title-wrap h2 { font-family:var(--bs-body-font-family); font-weight:600; letter-spacing:-.025em; }

@media (max-width:1100px){.operations-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-work-grid{grid-template-columns:1fr 1fr}.operations-lower-grid{grid-template-columns:1fr 1fr}.aged-list{grid-column:1/-1}}
@media (max-width:760px){.operations-command-bar{align-items:stretch;flex-direction:column}.operations-filter{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.operations-filter input{width:100%}.operations-filter button{grid-column:1/-1;justify-content:center}.operations-primary-grid,.operations-split-grid,.operations-work-grid,.operations-lower-grid{grid-template-columns:1fr}.aged-list{grid-column:auto}.operations-bar-chart{overflow-x:auto}.operations-metric{min-height:112px}}
@media (max-width:1024px){body .shell-layout .app-sidebar,body .shell-layout.collapsed .app-sidebar{width:min(214.2px,calc(100vw - 22px));max-width:min(214.2px,calc(100vw - 22px));}}
@media (prefers-reduced-motion:reduce){.operations-metric{animation:none}}

/* Compact collapsed navigation: keep every glyph on one shared centerline without visual scaling. */
body .shell-layout.collapsed .sidebar-nav-scroll { padding-block:2px; }
body .shell-layout.collapsed .nav-group,
body .shell-layout.collapsed .nav-tree { gap:2px; }
body .shell-layout.collapsed .nav-link,
body .shell-layout.collapsed .nav-parent {
    width:41px;
    height:41px;
    min-height:41px;
    display:grid;
    grid-template-columns:41px;
    place-items:center;
    padding:0;
    border-radius:12px;
}
body .shell-layout.collapsed .nav-link-main {
    width:41px;
    height:41px;
    display:grid;
    place-items:center;
    gap:0;
    line-height:1;
}
body .shell-layout.collapsed .nav-link i,
body .shell-layout.collapsed .nav-parent i {
    width:1em;
    height:1em;
    display:grid;
    place-items:center;
    font-size:.7462546875rem;
    line-height:1;
}
body .shell-layout.collapsed .nav-link i::before,
body .shell-layout.collapsed .nav-parent i::before { display:block; line-height:1; }

/* Collapsed footer: one transparent column shared by the company and user marks. */
body .shell-layout.collapsed .sidebar-footer-stack {
    width:100%;
    display:grid;
    grid-template-columns:41px;
    justify-content:center;
    justify-items:center;
    align-items:center;
    gap:8px;
    padding:8px 0 0;
    background:transparent;
    box-shadow:none;
}
body .shell-layout.collapsed .app-sidebar .sidebar-footer-stack .sidebar-company-dock,
body .shell-layout.collapsed .sidebar-user-menu-slot,
body .shell-layout.collapsed .sidebar-user-menu-slot .user-menu-dropdown {
    width:41px;
    min-width:41px;
    margin:0;
    display:grid;
    justify-items:center;
}
body .shell-layout.collapsed .app-sidebar .sidebar-footer-stack .sidebar-company-dock {
    height:41px;
    place-items:center;
    padding:0;
}
body .shell-layout.collapsed .sidebar-user-menu-slot .sidebar-user-trigger {
    width:41px;
    height:41px;
    min-height:41px;
    margin:0;
    padding:0;
    justify-content:center;
}

/* Dashboard density: 10% smaller real dimensions; visual scaling is intentionally not used. */
.operations-dashboard{gap:16.2px}
.operations-command-bar{gap:19.8px;padding:19.8px 21.6px;border-radius:19.8px;box-shadow:0 12.6px 30.6px rgba(24,48,84,.07)}
.operations-command-bar h1{margin:3.6px 0 4.5px;font-size:1.395rem}
.operations-command-bar p{font-size:.702rem}
.operations-kicker,.operations-panel header span{font-size:.549rem}
.operations-filter{gap:8.1px}.operations-filter label{gap:4.5px;font-size:.576rem}
.operations-filter input{width:118.8px;min-height:34.2px;padding:6.3px 8.1px;border-radius:9.9px;font-size:.9rem}
.operations-filter button{min-height:34.2px;gap:6.3px;padding:6.3px 10.8px;border-radius:9.9px;font-size:.9rem}
.operations-primary-grid,.operations-split-grid,.operations-work-grid,.operations-lower-grid{gap:10.8px}
.operations-metric{min-height:113.4px;grid-template-columns:37.8px minmax(0,1fr);gap:11.7px;padding:16.2px;border-radius:17.1px;box-shadow:0 10.8px 25.2px rgba(24,94,180,.12)}
.operations-metric .metric-icon{width:37.8px;height:37.8px;border-radius:11.7px;font-size:.9rem}
.operations-metric span{min-height:27px;font-size:.612rem}.operations-metric strong{font-size:2.97rem}
.operations-split-grid{grid-template-columns:minmax(0,1.65fr) minmax(252px,.75fr)}
.operations-panel{padding:16.2px;border-radius:17.1px;box-shadow:0 10.8px 25.2px rgba(24,48,84,.055)}
.operations-panel header{gap:10.8px}.operations-panel h2{font-size:.846rem}.operations-panel header>small{font-size:.567rem}
.trend-legend{gap:14.4px;margin-top:7.2px;font-size:.558rem}
.operations-bar-chart{height:160.2px;grid-auto-columns:minmax(30.6px,1fr);gap:9px;margin-top:7.2px;padding:7.2px 2px 0}
.bar-day{grid-template-rows:1fr 25.2px;gap:5.4px;font-size:.495rem}
.oms-panel header i{font-size:1.125rem}.oms-score-grid{gap:8.1px;margin-top:18px}.oms-score-grid>div{padding:11.7px 9px;border-radius:12.6px}.oms-score-grid span{font-size:.567rem}.oms-score-grid strong{margin-top:5.4px;font-size:1.215rem}
.oms-store-exits{gap:6.3px;margin-top:9px;padding-top:9px}.oms-store-exits>div{min-width:63px;gap:8.1px;padding:6.3px 8.1px;border-radius:9px}.oms-store-exits span{font-size:.54rem}.oms-store-exits strong{font-size:.702rem}
.workload-card header i{font-size:.9rem}.workload-values{gap:7.2px;margin-top:13.5px}.workload-values>div{padding:9.9px;border-radius:11.7px}.workload-values strong{font-size:1.035rem}.workload-values span{font-size:.522rem}
.putaway-card{border-top:3px solid #2389f5}.putaway-value{display:grid;grid-template-columns:1fr auto;align-items:end;gap:7.2px;margin-top:13.5px;padding:9.9px;border-radius:11.7px;background:#f3f7fc}.putaway-value strong{font-size:1.62rem;line-height:1}.putaway-value span{color:#718097;font-size:.522rem}
.inventory-health{gap:12.6px}.health-ring{width:63px;height:63px;flex-basis:63px}.health-ring::after{inset:7.2px}.health-ring span{font-size:.648rem}.inventory-health>div:last-child{gap:4.5px}.inventory-health>div:last-child span{font-size:.594rem}.inventory-health strong{font-size:.9rem}.inventory-health small{font-size:.522rem}
.reason-pivot header>span{min-width:27px;height:27px;border-radius:9px}.reason-list{gap:8.1px;margin-top:12.6px}.reason-list>div{grid-template-columns:minmax(0,1fr) 28.8px;gap:7.2px;padding-bottom:5.4px}.reason-list span{font-size:.576rem}.reason-list strong{font-size:.612rem}.panel-empty{margin-top:16.2px;font-size:.612rem}
.aged-list header>strong{font-size:1.035rem}.aged-order-table{margin-top:9px}.aged-order-row{grid-template-columns:minmax(0,1fr) auto 39.6px;gap:9px;padding:8.1px 0}.aged-order-row strong{font-size:.612rem}.aged-order-row div span,.aged-order-row>span,.aged-order-row em{font-size:.522rem}.operations-freshness{gap:6.3px;font-size:.549rem}
@media (max-width:1100px){.operations-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-work-grid{grid-template-columns:1fr 1fr}.operations-lower-grid{grid-template-columns:1fr 1fr}.aged-list{grid-column:1/-1}}
@media (max-width:760px){.operations-command-bar{align-items:stretch;flex-direction:column}.operations-filter{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.operations-filter input{width:100%}.operations-filter button{grid-column:1/-1;justify-content:center}.operations-primary-grid,.operations-split-grid,.operations-work-grid,.operations-lower-grid{grid-template-columns:1fr}.aged-list{grid-column:auto}.operations-metric{min-height:101px}}

/* Global list pager contract: active, hover and keyboard-focus states stay on brand blue. */
:root {
    --iw-list-pager-blue: #146fe0;
    --iw-list-pager-blue-soft: #e7f2ff;
    --rz-pager-numeric-button-selected-background-color: var(--iw-list-pager-blue) !important;
    --rz-pager-numeric-button-selected-color: #fff !important;
    --rz-pager-numeric-button-selected-border: 1px solid var(--iw-list-pager-blue) !important;
    --rz-pager-numeric-button-hover-background-color: var(--iw-list-pager-blue-soft) !important;
    --rz-pager-numeric-button-hover-color: var(--iw-list-pager-blue) !important;
}

body .rz-pager .rz-pager-page.rz-state-active,
body .rz-pager .rz-pager-page.rz-state-active:hover,
body .rz-pager .rz-pager-page.rz-state-active:active,
body .rz-pager .rz-pager-page.rz-state-active:focus,
body .rz-pager .rz-pager-page.rz-state-active:focus-visible,
body .rz-pager:focus-visible .rz-pager-page.rz-state-active.rz-state-focused {
    color: #fff !important;
    background: var(--iw-list-pager-blue) !important;
    background-image: none !important;
    border-color: var(--iw-list-pager-blue) !important;
    outline-color: var(--iw-list-pager-blue) !important;
    box-shadow: 0 0 0 3px rgba(20, 111, 224, .18) !important;
}

body .rz-pager .rz-pager-page:not(.rz-state-active):hover,
body .rz-pager .rz-pager-page:not(.rz-state-active):focus-visible {
    color: var(--iw-list-pager-blue) !important;
    background: var(--iw-list-pager-blue-soft) !important;
    background-image: none !important;
    border-color: #8fc1ff !important;
    outline-color: var(--iw-list-pager-blue) !important;
}
.warehouse-child-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.warehouse-child-toolbar .form-control {
    width: min(100%, 420px);
}

/* Shared inbound receipt workspace sizing and interaction contract. */
.inbound-free-entry-page {
    display: grid;
    font-size: .8075rem;
    gap: 17px;
    min-width: 0;
    width: 100%;
}

.inbound-free-entry-page > .panel-card {
    border-radius: 17px;
    min-width: 0;
    padding: 17px;
}

.inbound-free-entry-page .row.g-3 {
    --bs-gutter-x: .85rem;
    --bs-gutter-y: .85rem;
}

.inbound-free-entry-page .panel-head {
    gap: 13.6px;
    margin-bottom: 15.3px;
}

.inbound-free-entry-page h3 {
    font-size: .867rem;
    line-height: 1.2;
}

.inbound-free-entry-page .support-copy {
    font-size: .7225rem;
    line-height: 1.35;
    margin-top: 4px;
}

.inbound-free-entry-page .form-label,
.inbound-free-entry-page .field-label {
    font-size: .8075rem;
    line-height: 1.3;
    margin-bottom: 3.4px;
}

.inbound-free-entry-page .form-control,
.inbound-free-entry-page .form-select {
    border-radius: 4.5px;
    font-size: .85rem;
    min-height: 28.5px;
    padding: 4.5px 8.9px;
}

.inbound-free-entry-page .btn {
    border-radius: 6px;
    font-size: .85rem;
    line-height: 1.35;
    padding: 5.95px 11.9px;
}

.inbound-free-entry-page .btn-lg {
    font-size: 1.0625rem;
    min-height: 35.9px;
}

.inbound-free-entry-page .rz-dropdown,
.inbound-free-entry-page .rz-numeric {
    border-radius: 4.5px;
    font-size: .85rem;
    min-height: 28.5px;
}

.inbound-free-entry-page .rz-dropdown-label,
.inbound-free-entry-page .rz-inputtext {
    font-size: .85rem;
    line-height: 1.35;
    padding: 4.5px 8.9px;
}

.inbound-free-entry-page .rz-data-grid {
    border-radius: 8.5px;
    max-width: 100%;
    overflow: auto;
}

.inbound-free-entry-page .inbound-lines-grid .rz-grid-table {
    font-size: .8075rem;
    min-width: 1660px;
    table-layout: fixed;
}

.inbound-free-entry-page .inbound-lines-grid .rz-grid-table thead th {
    font-size: .8075rem;
    height: auto;
    min-height: 44px;
    vertical-align: middle;
}

.inbound-free-entry-page .inbound-lines-grid .rz-column-title,
.inbound-free-entry-page .inbound-lines-grid .rz-column-title-content {
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.inbound-free-entry-page .inbound-lines-grid .rz-cell-data {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbound-free-entry-page .inbound-lines-grid .rz-column-resizer {
    cursor: col-resize;
    width: 8px;
}

.inbound-free-entry-page .rz-grid-table tbody td {
    font-size: .8075rem;
    padding: 7.4px 11.9px;
}

.inbound-free-entry-page .rz-paginator {
    font-size: .8075rem;
    min-height: 34px;
    padding: 5.1px 8.5px;
}

.inbound-free-entry-page .rz-paginator-element {
    font-size: .8075rem;
    height: 27.2px;
    min-width: 27.2px;
}

.inbound-scan-panel--sticky {
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    position: sticky;
    top: 12px;
    z-index: 1050;
}

.inbound-open-receipts-launch {
    display: flex;
    justify-content: flex-end;
}

.inbound-open-receipts-launch .btn {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.inbound-open-receipts-count {
    align-items: center;
    background: #146fe0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    justify-content: center;
    min-height: 20px;
    min-width: 20px;
    padding: 1px 6px;
}

.inbound-open-receipts-dialog,
.inbound-erp-shipment-dialog {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inbound-open-receipts-dialog-body,
.inbound-erp-shipment-dialog-body {
    min-height: 0;
    overflow: auto;
}

.inbound-open-receipts-grid {
    max-width: 100%;
    overflow: auto;
}

.inbound-open-receipts-grid .rz-grid-table {
    min-width: 975px;
    table-layout: fixed;
}

.inbound-erp-shipment-dialog {
    max-width: 560px;
}

.inbound-auto-number-option {
    align-items: flex-start;
    background: #f3f8ff;
    border: 1px solid #cfe0f7;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 12px;
}

.inbound-auto-number-option span {
    display: grid;
    gap: 3px;
}

.inbound-auto-number-option small {
    color: #64748b;
    font-size: .73rem;
}

.inbound-erp-shipment-validation {
    background: #fff2f2;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    color: #b42318;
    font-size: .76rem;
    margin-top: 10px;
    padding: 9px 11px;
}

@media (max-width: 768px) {
    .inbound-scan-panel--sticky { top: 6px; }
    .inbound-free-entry-page .inbound-bottom-actions { flex-direction: column; }
}

/* Products production QA: accessible controls, contained data-table scrolling and viewport-safe dialogs. */
.products-page,
.products-page > .panel-card,
.products-page .product-grid,
.products-page .product-editor-panel,
.products-page .product-editor-shell,
.products-page .product-filter-dialog,
.products-page .product-nested-dialog {
    min-width: 0;
    max-width: 100%;
}

.products-page .product-list-toolbar {
    width: 100%;
    max-width: none;
}

.products-page .product-search {
    flex: 1 1 18rem;
    width: auto;
    min-width: 12rem;
    min-height: 44px;
    height: 44px;
    font-size: .875rem;
}

.products-page .product-toolbar-button,
.products-page .iw-modal-header .btn,
.products-page .erp-form-actions .btn,
.products-page .product-tab-head .btn,
.products-page .product-photo-showcase-meta .btn,
.products-page .product-grid-table .btn,
.iw-modal-panel[role="alertdialog"] .btn {
    min-width: 44px;
    min-height: 44px;
}

.products-page .product-grid {
    overflow: hidden;
    font-size: .875rem;
}

.products-page .product-grid .rz-grid-table-container {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.products-page .product-grid .rz-grid-table {
    width: 100%;
    min-width: 996px;
    table-layout: fixed;
}

.products-page .product-grid .rz-grid-table thead th {
    height: 46px;
    padding: 0 10px;
    overflow: visible;
    font-size: .8125rem;
    white-space: nowrap;
    vertical-align: middle;
}

.products-page .product-grid .rz-grid-table tbody td {
    height: 56px;
    padding: 6px 10px;
    font-size: .875rem;
    vertical-align: middle;
}

.products-page .product-sort-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-align: left;
}

.products-page th[aria-sort="none"] .product-sort-trigger::after {
    content: "↕";
    color: #64748b;
    font-size: .75rem;
}

.products-page th[aria-sort="ascending"] .product-sort-trigger::after {
    content: "▲";
    color: #146fe0;
    font-size: .7rem;
}

.products-page th[aria-sort="descending"] .product-sort-trigger::after {
    content: "▼";
    color: #146fe0;
    font-size: .7rem;
}

.products-page .product-sort-trigger:focus-visible,
.products-page .product-cell-value:focus-visible {
    outline: 3px solid #146fe0;
    outline-offset: 2px;
    border-radius: 6px;
}

.products-page .product-cell-value {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-page .product-value-dialog {
    width: min(100%, 620px);
}

.products-page .product-full-value {
    max-height: min(50dvh, 360px);
    overflow: auto;
    padding: 12px;
    border: 1px solid #cfe0f7;
    border-radius: 10px;
    background: #f8fbff;
    color: #0f172a;
    font: inherit;
    line-height: 1.55;
    overflow-wrap: anywhere;
    user-select: text;
    white-space: pre-wrap;
}

.products-page .product-grid .erp-grid-actions {
    min-width: 100px;
    justify-content: center;
}

.products-page .product-grid .user-action-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    font-size: 1rem;
}

.products-page .product-grid .warehouse-pill {
    padding: 4px 8px;
    font-size: .8125rem;
}

.products-page .product-grid .rz-paginator {
    min-height: 52px;
    padding: 4px 8px;
    font-size: .8125rem;
}

.products-page .product-grid .rz-paginator-element {
    min-width: 44px;
    height: 44px;
}

.products-page .product-grid .rz-frozen-cell-right,
.products-page .product-grid .rz-frozen-cell-right-inner,
.products-page .product-grid .rz-frozen-cell-right-end {
    background: #ffffff;
    box-shadow: -8px 0 14px -14px rgba(15, 23, 42, .75);
}

.products-page .product-editor-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1180px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}

.products-page .product-editor-panel > .iw-modal-header,
.products-page .product-filter-dialog > .iw-modal-header,
.products-page .product-nested-dialog > .iw-modal-header {
    flex: 0 0 auto;
}

.products-page .iw-modal-header p {
    margin: 4px 0 0;
    color: #526071;
    font-size: .8125rem;
}

.products-page .product-editor-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.products-page .product-editor-shell > .rz-tabview,
.products-page .product-editor-shell .rz-tabview-panels,
.products-page .product-editor-shell .rz-tabview-panel {
    min-width: 0;
    max-width: 100%;
}

.products-page .product-editor-shell > .rz-tabview {
    flex: 1 0 auto;
}

.products-page .product-editor-shell .rz-tabview-nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.products-page .product-editor-shell .rz-tabview-nav > li {
    flex: 0 0 auto;
}

.products-page .product-editor-shell .rz-tabview-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.products-page .product-editor-shell > .erp-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 12px !important;
    padding: 12px 0 2px;
    border-top: 1px solid #d8e6f7;
    background: rgba(255, 255, 255, .98);
}

.products-page .product-general-layout,
.products-page .product-general-groups,
.products-page .product-feature-grid,
.products-page .erp-form-grid {
    min-width: 0;
    max-width: 100%;
}

.products-page .product-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.products-page .erp-form-field,
.products-page .erp-form-field-full,
.products-page .product-form-group,
.products-page .product-general-photos,
.products-page .product-photo-showcase,
.products-page .product-photo-showcase-meta {
    min-width: 0;
    max-width: 100%;
}

.products-page .form-control,
.products-page .form-select,
.products-page .rz-dropdown,
.products-page .rz-numeric,
.products-page .rz-spinner {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.products-page .form-control,
.products-page .form-select,
.products-page .rz-dropdown,
.products-page .rz-numeric {
    min-height: 44px;
}

.products-page .checkbox-line {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
}

.products-page .checkbox-line label,
.products-page label.checkbox-line {
    cursor: pointer;
}

.products-page .required-field-marker,
.products-page .invalid-feedback {
    color: #b42318;
}

.products-page .product-filter-dialog,
.products-page .product-nested-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
}

.products-page .product-filter-groups,
.products-page .product-nested-dialog-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.products-page .product-filter-dialog > .erp-form-actions,
.products-page .product-nested-dialog-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d8e6f7;
    background: #ffffff;
}

.products-page .product-grid-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

@media (max-width: 720px) {
    .products-page .product-list-toolbar {
        align-items: stretch !important;
    }

    .products-page .product-search {
        flex-basis: 100%;
        min-width: 0;
    }

    .products-page .product-toolbar-button {
        flex: 1 1 calc(50% - 4px);
        height: 44px;
    }

    .products-page .product-general-layout,
    .products-page .product-filter-groups,
    .products-page .erp-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .products-page .product-tracking-options,
    .products-page .product-photo-showcase-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .products-page .product-general-photos-empty {
        min-height: 180px;
    }
}

@media (max-width: 520px) {
    .products-page .iw-modal-backdrop {
        padding: 8px;
    }

    .products-page .product-editor-panel,
    .products-page .product-filter-dialog,
    .products-page .product-nested-dialog,
    .products-page .product-value-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 12px;
        border-radius: 16px;
    }

    .products-page .product-editor-shell {
        padding-right: 0;
    }

    .products-page .rz-tabview-panels {
        padding-inline: 0;
    }

    .products-page .product-form-group,
    .products-page .product-general-photos,
    .products-page .product-feature-card {
        padding: 12px;
        border-radius: 12px;
    }

    .products-page .product-editor-shell > .erp-form-actions,
    .products-page .product-filter-dialog > .erp-form-actions,
    .products-page .product-nested-dialog-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .products-page .erp-form-actions .btn {
        width: 100%;
    }
}
