/* Zetra shared POS/ERP polish. Loaded late to normalize common shell patterns. */
:root {
    --zetra-ui-bg: #eef3f7;
    --zetra-ui-surface: #ffffff;
    --zetra-ui-surface-soft: #f6f8fb;
    --zetra-ui-surface-muted: #edf2f7;
    --zetra-ui-border: #dce4ec;
    --zetra-ui-border-strong: #c8d4df;
    --zetra-ui-text: #20252a;
    --zetra-ui-muted: #667085;
    --zetra-ui-primary: #348fe2;
    --zetra-ui-primary-soft: rgba(52, 143, 226, 0.1);
    --zetra-ui-success-soft: rgba(0, 172, 172, 0.12);
    --zetra-ui-danger-soft: rgba(255, 91, 87, 0.11);
    --zetra-ui-warning-soft: rgba(245, 156, 26, 0.13);
    --zetra-ui-shadow-sm: 0 3px 10px rgba(32, 37, 42, 0.06);
    --zetra-ui-shadow: 0 10px 26px rgba(32, 37, 42, 0.08);
    --zetra-ui-radius: 8px;
    --zetra-ui-radius-sm: 6px;
    --zetra-ui-control-h: 38px;
}

html.dark-mode,
[data-bs-theme="dark"] {
    --zetra-ui-bg: #141a22;
    --zetra-ui-surface: #1e2835;
    --zetra-ui-surface-soft: #243040;
    --zetra-ui-surface-muted: #2b3748;
    --zetra-ui-border: rgba(255, 255, 255, 0.1);
    --zetra-ui-border-strong: rgba(255, 255, 255, 0.17);
    --zetra-ui-text: #e8edf3;
    --zetra-ui-muted: #a4afbd;
    --zetra-ui-primary-soft: rgba(52, 143, 226, 0.16);
    --zetra-ui-success-soft: rgba(0, 172, 172, 0.18);
    --zetra-ui-danger-soft: rgba(255, 91, 87, 0.17);
    --zetra-ui-warning-soft: rgba(245, 156, 26, 0.18);
    --zetra-ui-shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.2);
    --zetra-ui-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

#content.app-content:has(.erp-app-shell) {
    background: var(--zetra-ui-bg);
}

.erp-app-shell,
.erp-app-shell * {
    letter-spacing: 0;
}

.erp-app-shell {
    background: var(--zetra-ui-bg);
    color: var(--zetra-ui-text);
}

.erp-shell-main,
.erp-shell-content {
    background: transparent;
}

.erp-shell-header {
    background: var(--zetra-ui-surface);
    border-bottom-color: var(--zetra-ui-border);
    box-shadow: var(--zetra-ui-shadow-sm);
}

.erp-tab-toolbar {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 9px 14px;
    background: var(--zetra-ui-surface);
    border-bottom: 1px solid var(--zetra-ui-border);
    box-shadow: var(--zetra-ui-shadow-sm);
    flex-wrap: wrap;
}

.erp-tab-toolbar h1,
.erp-tab-toolbar h2,
.erp-tab-toolbar h3,
.erp-tab-toolbar h4,
.erp-tab-toolbar h5,
.erp-tab-toolbar .toolbar-title {
    color: var(--zetra-ui-text);
    font-weight: 700;
    line-height: 1.25;
}

.erp-tab-toolbar .erp-btn-group,
.erp-tab-toolbar .toolbar-left,
.erp-tab-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.erp-tab-toolbar .erp-btn-group.ms-auto {
    margin-left: auto !important;
}

.erp-tab-toolbar .btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0.42rem 0.72rem;
    border-radius: var(--zetra-ui-radius-sm) !important;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: none;
}

.erp-tab-toolbar .btn i {
    width: 14px;
    text-align: center;
}

.erp-tab-toolbar .btn.btn-default,
.erp-tab-toolbar .btn.btn-secondary,
.erp-tab-toolbar .btn.btn-outline-secondary {
    background: var(--zetra-ui-surface-soft);
    border-color: var(--zetra-ui-border);
    color: var(--zetra-ui-text);
}

.erp-tab-toolbar .btn.btn-default:hover,
.erp-tab-toolbar .btn.btn-secondary:hover,
.erp-tab-toolbar .btn.btn-outline-secondary:hover {
    background: var(--zetra-ui-surface-muted);
    border-color: var(--zetra-ui-border-strong);
}

.erp-tab-toolbar .btn.disabled,
.erp-tab-toolbar .btn:disabled {
    opacity: 0.5;
    filter: saturate(0.8);
}

.erp-shell-tabs {
    margin-top: 0;
    background: var(--zetra-ui-surface);
    border-bottom: 1px solid var(--zetra-ui-border);
    box-shadow: 0 1px 0 rgba(32, 37, 42, 0.02);
}

.erp-shell-content > .erp-shell-tabs:first-child {
    margin-top: 0;
}

.erp-tab-body > .erp-shell-tabs {
    margin: 0 0 14px;
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    box-shadow: var(--zetra-ui-shadow-sm);
}

.erp-shell-tabs .nav-tabs {
    gap: 0;
    padding: 0;
}

.erp-shell-tabs .nav-link {
    min-height: 58px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--zetra-ui-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.erp-shell-tabs .nav-link i {
    color: inherit;
    font-size: 1.05rem;
}

.erp-shell-tabs .nav-link:hover {
    color: var(--zetra-ui-text);
    background: var(--zetra-ui-primary-soft);
}

.erp-shell-tabs .nav-link.active {
    color: var(--zetra-ui-primary);
    background: var(--zetra-ui-primary-soft);
    border-bottom-color: var(--zetra-ui-primary);
}

.erp-shell-tabs .nav-link .badge {
    border-radius: 6px;
    font-weight: 800;
}

.erp-tab-body {
    padding: 16px 22px 58px;
    background: var(--zetra-ui-bg);
}

.erp-app-shell .tab-content.mt-3 {
    margin-top: 14px !important;
}

.erp-app-shell .wh-section,
.erp-app-shell .erp-collapsible-section {
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    box-shadow: var(--zetra-ui-shadow-sm);
    overflow: hidden;
}

.erp-app-shell .wh-section {
    margin-bottom: 14px;
}

.erp-app-shell .wh-section-header,
.erp-app-shell .wh-section > .section-header,
.erp-app-shell .erp-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 10px 14px;
    background: var(--zetra-ui-surface-soft);
    border-bottom: 1px solid var(--zetra-ui-border);
    color: var(--zetra-ui-text);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
}

.erp-app-shell .wh-section-header i,
.erp-app-shell .wh-section > .section-header i,
.erp-app-shell .erp-section-header i:not(.erp-section-chevron) {
    color: var(--zetra-ui-primary);
    margin-right: 0;
}

.erp-app-shell .erp-section-header:hover {
    background: var(--zetra-ui-primary-soft);
}

.erp-app-shell .section-content,
.erp-app-shell .wh-section-body,
.erp-app-shell .erp-section-body {
    padding: 14px;
}

.erp-app-shell .activation-workbench {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.erp-app-shell .activation-secondary-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.erp-app-shell .activation-section {
    min-width: 0;
    overflow: hidden;
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    box-shadow: var(--zetra-ui-shadow-sm);
}

.erp-app-shell .activation-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    background: var(--zetra-ui-surface-soft);
    border-bottom: 1px solid var(--zetra-ui-border);
}

.erp-app-shell .activation-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.erp-app-shell .activation-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: var(--zetra-ui-primary);
    background: var(--zetra-ui-primary-soft);
    border: 1px solid rgba(52, 143, 226, 0.18);
    border-radius: var(--zetra-ui-radius-sm);
}

.erp-app-shell .activation-section-title h3 {
    margin: 0;
    color: var(--zetra-ui-text);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.erp-app-shell .activation-section-title p {
    margin: 2px 0 0;
    color: var(--zetra-ui-muted);
    font-size: 0.75rem;
    line-height: 1.25;
}

.erp-app-shell .activation-section-body {
    padding: 10px;
}

.erp-app-shell .activation-campaign-list,
.erp-app-shell .activation-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.erp-app-shell .activation-count-pill,
.erp-app-shell .activation-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: var(--zetra-ui-radius-sm);
    color: #fff;
    background: #00acac;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.erp-app-shell .activation-empty-state,
.erp-app-shell .activation-loading-state,
.erp-app-shell .activation-grid-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-height: 118px;
    padding: 18px;
    color: var(--zetra-ui-muted);
    text-align: center;
    background: var(--zetra-ui-surface-soft);
    border: 1px dashed var(--zetra-ui-border-strong);
    border-radius: var(--zetra-ui-radius);
}

.erp-app-shell .activation-empty-state i,
.erp-app-shell .activation-loading-state i,
.erp-app-shell .activation-grid-empty i {
    color: var(--zetra-ui-primary);
    font-size: 1.25rem;
}

.erp-app-shell .activation-empty-state strong,
.erp-app-shell .activation-grid-empty strong {
    color: var(--zetra-ui-text);
    font-size: 0.86rem;
    font-weight: 800;
}

.erp-app-shell .activation-empty-state span,
.erp-app-shell .activation-grid-empty span {
    max-width: 34rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.erp-app-shell .activation-campaign-card,
.erp-app-shell .activation-result-card {
    overflow: hidden;
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    border-left: 3px solid #00acac;
    border-radius: var(--zetra-ui-radius);
}

.erp-app-shell .activation-campaign-card.is-limited,
.erp-app-shell .activation-result-card.is-limited {
    border-left-color: #f59c1a;
}

.erp-app-shell .activation-campaign-card.is-limited .activation-status-pill,
.erp-app-shell .activation-result-card.is-limited .activation-status-pill {
    color: #20252a;
    background: #f59c1a;
}

.erp-app-shell .activation-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    background: var(--zetra-ui-surface);
    border-bottom: 1px solid var(--zetra-ui-border);
}

.erp-app-shell .activation-card-head h4 {
    margin: 0;
    color: var(--zetra-ui-text);
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.25;
}

.erp-app-shell .activation-card-head p,
.erp-app-shell .activation-card-head span {
    margin: 3px 0 0;
    color: var(--zetra-ui-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.erp-app-shell .activation-card-head .activation-status-pill {
    margin: 0;
    color: #fff;
    font-size: 0.68rem;
    line-height: 1;
}

.erp-app-shell .activation-campaign-card.is-limited .activation-card-head .activation-status-pill,
.erp-app-shell .activation-result-card.is-limited .activation-card-head .activation-status-pill {
    color: #20252a;
}

.erp-app-shell .activation-card-meta,
.erp-app-shell .activation-chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.erp-app-shell .activation-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.erp-app-shell .activation-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-height: 20px;
    padding: 2px 6px;
    color: var(--zetra-ui-text);
    background: var(--zetra-ui-surface-muted);
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
}

.erp-app-shell .activation-chip i {
    color: var(--zetra-ui-primary);
}

.erp-app-shell .activation-chip-success {
    color: #007f7f;
    background: var(--zetra-ui-success-soft);
    border-color: rgba(0, 172, 172, 0.24);
}

.erp-app-shell .activation-chip-muted {
    color: var(--zetra-ui-muted);
}

.erp-app-shell .activation-reward-list,
.erp-app-shell .activation-result-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.erp-app-shell .activation-reward-row,
.erp-app-shell .activation-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: var(--zetra-ui-surface-soft);
    border: 1px solid transparent;
    border-radius: var(--zetra-ui-radius-sm);
}

.erp-app-shell .activation-reward-info,
.erp-app-shell .activation-result-info,
.erp-app-shell .activation-history-main {
    min-width: 0;
}

.erp-app-shell .activation-reward-info strong,
.erp-app-shell .activation-result-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--zetra-ui-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.erp-app-shell .activation-row-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.erp-app-shell .activation-row-action .btn,
.erp-app-shell .activation-section-header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 0.28rem 0.55rem;
    border-radius: var(--zetra-ui-radius-sm);
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.erp-app-shell .activation-history-grid {
    width: 100%;
    min-height: 200px;
}

.erp-app-shell .activation-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 7px 0;
}

.erp-app-shell .activation-history-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.erp-app-shell .activation-history-title strong {
    color: var(--zetra-ui-text);
    font-size: 0.78rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.erp-app-shell .activation-history-row .btn-delete-aktivacija {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
}

.erp-app-shell .erp-collapsible-section.collapsed .erp-section-header {
    border-bottom-color: transparent;
}

.erp-app-shell .form-label,
.erp-app-shell label {
    color: var(--zetra-ui-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.erp-app-shell .form-control,
.erp-app-shell .form-select,
.erp-app-shell .input-group-text,
.erp-app-shell .select2-container--default .select2-selection--single {
    min-height: var(--zetra-ui-control-h);
    border-color: var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius-sm);
    background-color: var(--zetra-ui-surface);
    color: var(--zetra-ui-text);
}

.erp-app-shell .form-control:focus,
.erp-app-shell .form-select:focus,
.erp-app-shell .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(52, 143, 226, 0.65);
    box-shadow: 0 0 0 3px rgba(52, 143, 226, 0.16);
}

.erp-app-shell .input-group-text {
    background: var(--zetra-ui-surface-soft);
    color: var(--zetra-ui-muted);
    font-weight: 700;
}

.erp-app-shell .badge {
    border-radius: 6px;
    font-weight: 800;
}

.erp-app-shell .ag-theme-quartz {
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    overflow: hidden;
    box-shadow: var(--zetra-ui-shadow-sm);
    --ag-row-height: 36px;
    --ag-header-height: 40px;
    --ag-list-item-height: 34px;
    --ag-font-size: 0.78rem;
    --ag-font-family: inherit;
    --ag-cell-horizontal-padding: 10px;
    --ag-grid-size: 4px;
    --ag-border-radius: 8px;
    --ag-wrapper-border-radius: 8px;
    --ag-header-background-color: var(--zetra-ui-surface-soft);
    --ag-header-foreground-color: var(--zetra-ui-text);
    --ag-border-color: var(--zetra-ui-border);
    --ag-secondary-border-color: var(--zetra-ui-border);
    --ag-row-border-color: var(--zetra-ui-border);
    --ag-background-color: var(--zetra-ui-surface);
    --ag-foreground-color: var(--zetra-ui-text);
    --ag-secondary-foreground-color: var(--zetra-ui-muted);
    --ag-odd-row-background-color: color-mix(in srgb, var(--zetra-ui-surface-soft) 48%, var(--zetra-ui-surface));
    --ag-row-hover-color: var(--zetra-ui-primary-soft);
    --ag-selected-row-background-color: var(--zetra-ui-primary-soft);
    --ag-range-selection-border-color: var(--zetra-ui-primary);
    --ag-checkbox-checked-color: var(--zetra-ui-primary);
    --ag-input-focus-border-color: var(--zetra-ui-primary);
    --ag-input-focus-box-shadow: 0 0 0 3px rgba(52, 143, 226, 0.16);
}

.erp-app-shell .ag-grid-full,
.erp-app-shell .ag-grid-sm,
.erp-app-shell .pos-card-grid {
    background: var(--zetra-ui-surface);
}

.erp-app-shell .ag-theme-quartz .ag-root-wrapper {
    border: 0;
    border-radius: var(--zetra-ui-radius);
    background: var(--zetra-ui-surface);
}

.erp-app-shell .ag-theme-quartz .ag-header {
    border-bottom: 1px solid var(--zetra-ui-border);
    background: var(--zetra-ui-surface-soft);
}

.erp-app-shell .ag-theme-quartz .ag-header-cell,
.erp-app-shell .ag-theme-quartz .ag-header-group-cell {
    border-right: 1px solid var(--zetra-ui-border);
    color: var(--zetra-ui-muted);
    font-weight: 800;
}

.erp-app-shell .ag-theme-quartz .ag-header-cell:last-child,
.erp-app-shell .ag-theme-quartz .ag-header-group-cell:last-child {
    border-right-color: transparent;
}

.erp-app-shell .ag-theme-quartz .ag-header-cell-label {
    gap: 6px;
}

.erp-app-shell .ag-theme-quartz .ag-header-cell-text {
    color: var(--zetra-ui-text);
    font-size: 0.76rem;
    font-weight: 800;
}

.erp-app-shell .ag-theme-quartz .ag-header-icon,
.erp-app-shell .ag-theme-quartz .ag-icon {
    color: var(--zetra-ui-muted);
}

.erp-app-shell .ag-theme-quartz .ag-header-cell-menu-button,
.erp-app-shell .ag-theme-quartz .ag-sort-indicator-container,
.erp-app-shell .ag-theme-quartz .ag-filter-icon {
    opacity: 0.68;
}

.erp-app-shell .ag-theme-quartz .ag-header-cell:hover .ag-header-cell-menu-button,
.erp-app-shell .ag-theme-quartz .ag-header-cell:hover .ag-sort-indicator-container,
.erp-app-shell .ag-theme-quartz .ag-header-cell:hover .ag-filter-icon {
    opacity: 1;
}

.erp-app-shell .ag-theme-quartz .ag-header-cell-resize::after {
    width: 1px;
    height: 18px;
    top: calc(50% - 9px);
    background-color: var(--zetra-ui-border-strong);
    opacity: 0.38;
}

.erp-app-shell .ag-theme-quartz .ag-row {
    background: var(--zetra-ui-surface);
    border-bottom: 1px solid var(--zetra-ui-border);
    color: var(--zetra-ui-text);
}

.erp-app-shell .ag-theme-quartz .ag-row-odd {
    background: color-mix(in srgb, var(--zetra-ui-surface-soft) 44%, var(--zetra-ui-surface));
}

.erp-app-shell .ag-theme-quartz .ag-row-hover,
.erp-app-shell .ag-theme-quartz .ag-row:hover {
    background: var(--zetra-ui-primary-soft);
}

.erp-app-shell .ag-theme-quartz .ag-row-selected,
.erp-app-shell .ag-theme-quartz .ag-row.ag-row-selected {
    background: color-mix(in srgb, var(--zetra-ui-primary) 15%, var(--zetra-ui-surface)) !important;
}

.erp-app-shell .ag-theme-quartz .ag-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    border-right: 1px solid var(--zetra-ui-border);
    color: var(--zetra-ui-text);
    line-height: 1.25;
}

.erp-app-shell .ag-theme-quartz .ag-cell:last-child {
    border-right-color: transparent;
}

.erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell {
    box-sizing: border-box;
    border-inline-start: 3px solid transparent;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-danger {
    background: rgba(255, 91, 87, 0.16) !important;
    border-inline-start-color: rgba(255, 91, 87, 0.9);
    color: #981b1e !important;
}

.erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-warning {
    background: rgba(245, 156, 26, 0.18) !important;
    border-inline-start-color: rgba(245, 156, 26, 0.9);
    color: #7a4700 !important;
}

.erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-success {
    background: rgba(0, 172, 172, 0.14) !important;
    border-inline-start-color: rgba(0, 172, 172, 0.9);
    color: #006d6d !important;
}

.erp-app-shell .ag-theme-quartz .ag-cell-value,
.erp-app-shell .ag-theme-quartz .ag-group-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-app-shell .ag-theme-quartz .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.erp-app-shell .ag-theme-quartz .ag-cell-focus:not(.ag-cell-range-selected) {
    border-color: rgba(52, 143, 226, 0.55) !important;
    box-shadow: inset 0 0 0 1px rgba(52, 143, 226, 0.55);
}

.erp-app-shell .ag-theme-quartz .ag-checkbox-input-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1px solid var(--zetra-ui-border-strong);
    border-radius: 5px;
    background: var(--zetra-ui-surface-soft);
    color: transparent;
    box-shadow: none;
}

.erp-app-shell .ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked {
    background: var(--zetra-ui-primary);
    border-color: var(--zetra-ui-primary);
    color: #fff;
}

.erp-app-shell .ag-theme-quartz .ag-checkbox-input-wrapper.ag-indeterminate {
    color: var(--zetra-ui-primary);
    border-color: var(--zetra-ui-primary);
}

.erp-app-shell .ag-theme-quartz .ag-paging-panel {
    min-height: 42px;
    padding: 6px 10px;
    border-top: 1px solid var(--zetra-ui-border);
    background: var(--zetra-ui-surface);
    color: var(--zetra-ui-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.erp-app-shell .ag-theme-quartz .ag-paging-row-summary-panel,
.erp-app-shell .ag-theme-quartz .ag-paging-page-summary-panel {
    color: var(--zetra-ui-text);
}

.erp-app-shell .ag-theme-quartz .ag-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-inline: 2px;
    border-radius: var(--zetra-ui-radius-sm);
    color: var(--zetra-ui-muted);
}

.erp-app-shell .ag-theme-quartz .ag-paging-button:not(.ag-disabled):hover {
    background: var(--zetra-ui-primary-soft);
    color: var(--zetra-ui-primary);
}

.erp-app-shell .ag-theme-quartz .ag-picker-field-wrapper,
.erp-app-shell .ag-theme-quartz .ag-input-field-input {
    min-height: 32px;
    border-color: var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius-sm);
    background: var(--zetra-ui-surface-soft);
    color: var(--zetra-ui-text);
}

.erp-app-shell .ag-theme-quartz .ag-overlay-loading-wrapper,
.erp-app-shell .ag-theme-quartz .ag-overlay-no-rows-wrapper {
    background: color-mix(in srgb, var(--zetra-ui-surface) 92%, transparent);
    color: var(--zetra-ui-muted);
    font-weight: 700;
}

.erp-app-shell .ag-theme-quartz .ag-menu,
.erp-app-shell .ag-theme-quartz .ag-popup-child {
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    background: var(--zetra-ui-surface);
    color: var(--zetra-ui-text);
    box-shadow: var(--zetra-ui-shadow);
}

.erp-app-shell .ag-theme-quartz .ag-body-horizontal-scroll-viewport::-webkit-scrollbar,
.erp-app-shell .ag-theme-quartz .ag-body-vertical-scroll-viewport::-webkit-scrollbar,
.erp-app-shell .ag-theme-quartz .ag-center-cols-viewport::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.erp-app-shell .ag-theme-quartz .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb,
.erp-app-shell .ag-theme-quartz .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb,
.erp-app-shell .ag-theme-quartz .ag-center-cols-viewport::-webkit-scrollbar-thumb {
    border: 2px solid var(--zetra-ui-surface);
    border-radius: 999px;
    background: var(--zetra-ui-border-strong);
}

.erp-app-shell .ag-theme-quartz .badge {
    min-height: 18px;
    padding: 0.2rem 0.44rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.1;
}

.erp-app-shell .grid-quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    box-shadow: var(--zetra-ui-shadow-sm);
}

.erp-app-shell .grid-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0.42rem 0.7rem;
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius-sm);
    background: var(--zetra-ui-surface-soft);
    color: var(--zetra-ui-text);
    font-weight: 700;
    line-height: 1.1;
}

.erp-app-shell .grid-filter-btn:hover {
    border-color: var(--zetra-ui-border-strong);
    background: var(--zetra-ui-surface-muted);
}

.erp-app-shell .grid-filter-btn.active,
.erp-app-shell .grid-filter-btn[aria-pressed="true"] {
    border-color: rgba(52, 143, 226, 0.38);
    background: var(--zetra-ui-primary-soft);
    color: var(--zetra-ui-primary);
}

.erp-app-shell .totals-summary {
    align-items: center;
    min-height: 42px;
    background: var(--zetra-ui-surface-soft) !important;
    border-bottom: 1px solid var(--zetra-ui-border) !important;
    color: var(--zetra-ui-muted);
}

.erp-app-shell .totals-summary strong,
.erp-app-shell .totals-summary .fw-bold {
    color: var(--zetra-ui-text);
}

.erp-app-shell .progress {
    background-color: var(--zetra-ui-surface-muted);
    border-radius: 999px;
}

.erp-app-shell .sp-weight-total-box,
.erp-app-shell .sp-weight-row,
.erp-app-shell .sp-weight-card {
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
}

.erp-app-shell {
    --erp-info-footer-h: 46px;
}

.erp-app-shell .erp-tab-body:has(.erp-info-footer) {
    padding-bottom: 0 !important;
    scroll-padding-bottom: calc(var(--erp-info-footer-h) + 16px);
}

.erp-app-shell .erp-tab-body:has(.erp-info-footer) > .tab-content,
.erp-app-shell .erp-tab-body:has(.erp-info-footer) > .tab-content > .tab-pane {
    min-width: 0;
}

.erp-app-shell .erp-tab-body:has(.erp-info-footer) > .tab-content > .tab-pane.active {
    padding-bottom: calc(var(--erp-info-footer-h) + 14px);
}

.erp-app-shell .erp-tab-body.tab-content:has(> .erp-info-footer) > .tab-pane.active {
    padding-bottom: calc(var(--erp-info-footer-h) + 14px);
}

.erp-app-shell .erp-info-footer {
    position: sticky !important;
    right: auto !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 40;
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-height: var(--erp-info-footer-h);
    height: auto;
    max-height: calc(var(--erp-info-footer-h) + 10px);
    margin-top: 12px;
    padding: 0 6px;
    background: var(--zetra-ui-surface);
    border-top: 1px solid var(--zetra-ui-border);
    color: var(--zetra-ui-muted);
    box-shadow: 0 -4px 14px rgba(32, 37, 42, 0.06);
    overflow-x: auto;
    overflow-y: hidden;
}

.erp-app-shell .erp-info-footer .erp-info-item {
    min-height: var(--erp-info-footer-h);
    border-right-color: var(--zetra-ui-border);
}

.erp-app-shell .erp-info-footer .erp-info-item strong {
    color: var(--zetra-ui-text);
}

.erp-app-shell .erp-shell-content:has(> .erp-info-footer) > .erp-tab-body {
    padding-bottom: 12px !important;
}

.erp-app-shell .erp-shell-content:has(> .erp-info-footer) > .erp-info-footer {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    margin-top: 0;
}

.erp-app-shell .btn,
.erp-app-shell .form-control,
.erp-app-shell .form-select,
.erp-app-shell .grid-filter-btn,
.erp-app-shell .nav-link {
    outline: none;
}

.erp-app-shell .btn:focus-visible,
.erp-app-shell .grid-filter-btn:focus-visible,
.erp-app-shell .nav-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(52, 143, 226, 0.2);
}

/* Shared mobile grid toolbar and bottom-sheet filters from AgGridResponsiveHelper. */
body .erp-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 10px 0;
    margin: 0 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body .erp-grid-toolbar::-webkit-scrollbar {
    display: none;
}

body .erp-sort-btn,
body .erp-filter-chip,
body .erp-filter-clear {
    flex: 0 0 auto;
    min-height: 36px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body .erp-sort-btn,
body .erp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.48rem 0.74rem;
    color: var(--zetra-ui-text);
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    box-shadow: var(--zetra-ui-shadow-sm);
}

body .erp-sort-btn:hover,
body .erp-filter-chip:hover {
    border-color: rgba(52, 143, 226, 0.38);
    background: var(--zetra-ui-primary-soft);
    color: var(--zetra-ui-primary);
}

body .erp-sort-btn i,
body .erp-filter-chip i {
    width: 14px;
    color: var(--zetra-ui-muted);
    font-size: 0.78rem !important;
    text-align: center;
}

body .erp-filter-chip .chip-label,
body .erp-sort-btn .sort-field {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .erp-sort-btn .sort-dir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    color: var(--zetra-ui-primary);
    background: var(--zetra-ui-primary-soft);
    font-size: 0.68rem;
    font-weight: 900;
}

body .erp-filter-chip.active,
body .erp-filter-chip[aria-pressed="true"] {
    color: #fff;
    background: var(--zetra-ui-primary);
    border-color: var(--zetra-ui-primary);
    box-shadow: 0 8px 18px rgba(52, 143, 226, 0.26);
}

body .erp-filter-chip.active i,
body .erp-filter-chip[aria-pressed="true"] i {
    color: #fff;
}

body .erp-filter-chip .chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
}

body .erp-filter-chip:not(.active) .chip-badge {
    display: none;
}

body .erp-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.76rem;
    border: 1px solid rgba(255, 91, 87, 0.25);
    background: var(--zetra-ui-danger-soft);
    color: #d94845;
}

body .erp-bottom-sheet-overlay {
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(3px);
}

body .erp-bottom-sheet-panel {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    max-height: min(76vh, 620px);
    background: var(--zetra-ui-surface);
    border: 1px solid var(--zetra-ui-border);
    border-radius: 14px;
    color: var(--zetra-ui-text);
    box-shadow: 0 -18px 46px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

body .erp-bottom-sheet-handle {
    width: 42px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--zetra-ui-border-strong);
}

body .erp-bottom-sheet-header {
    min-height: 50px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--zetra-ui-border);
}

body .erp-bottom-sheet-header h6 {
    color: var(--zetra-ui-text);
    font-size: 0.92rem;
    font-weight: 800;
}

body .erp-bottom-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--zetra-ui-muted);
    background: transparent;
}

body .erp-bottom-sheet-close:hover {
    background: var(--zetra-ui-surface-soft);
    border-color: var(--zetra-ui-border);
    color: var(--zetra-ui-text);
}

body .erp-bottom-sheet-body {
    padding: 12px 16px;
    background: var(--zetra-ui-surface);
}

body .erp-bottom-sheet-search {
    top: 0;
    padding: 0 0 10px;
    background: var(--zetra-ui-surface);
}

body .erp-bottom-sheet-search input {
    min-height: 40px;
    border-color: var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius-sm);
    background: var(--zetra-ui-surface-soft);
    color: var(--zetra-ui-text);
    font-weight: 600;
}

body .erp-bottom-sheet-option,
body .erp-sort-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    background: var(--zetra-ui-surface-soft);
    color: var(--zetra-ui-text);
    font-size: 0.86rem;
    font-weight: 700;
}

body .erp-bottom-sheet-option:last-child,
body .erp-sort-option-row:last-child {
    margin-bottom: 0;
}

body .erp-bottom-sheet-option:hover,
body .erp-sort-option-row:hover {
    background: var(--zetra-ui-primary-soft);
    border-color: rgba(52, 143, 226, 0.36);
}

body .erp-bottom-sheet-option input[type="checkbox"],
body .erp-bottom-sheet-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body .erp-bottom-sheet-option .option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid var(--zetra-ui-border-strong);
    border-radius: 6px;
    background: var(--zetra-ui-surface);
}

body .erp-bottom-sheet-option.is-selected {
    background: var(--zetra-ui-primary-soft);
    border-color: rgba(52, 143, 226, 0.46);
    color: var(--zetra-ui-primary);
}

body .erp-bottom-sheet-option.is-selected .option-check {
    border-color: var(--zetra-ui-primary);
    background: var(--zetra-ui-primary);
}

body .erp-bottom-sheet-option.is-selected .option-check::after {
    content: "\f00c";
    color: #fff;
    font-family: "Font Awesome 6 Free";
    font-size: 0.72rem;
    font-weight: 900;
}

body .erp-bottom-sheet-option .option-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .erp-bottom-sheet-option .option-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--zetra-ui-surface);
    color: var(--zetra-ui-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

body .erp-bottom-sheet-empty {
    padding: 18px;
    border: 1px dashed var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    color: var(--zetra-ui-muted);
    text-align: center;
    font-weight: 700;
}

body .erp-bottom-sheet-footer {
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--zetra-ui-border);
    background: var(--zetra-ui-surface);
}

body .erp-bottom-sheet-footer .btn {
    min-height: 44px;
    border-radius: var(--zetra-ui-radius-sm) !important;
    font-weight: 800;
}

/* POS/card AG Grid polish. */
body .erp-app-shell .pos-card-grid.ag-theme-quartz {
    border: 0;
    box-shadow: none;
    background: transparent;
}

body .erp-app-shell .pos-card-grid .ag-root-wrapper {
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    background: var(--zetra-ui-surface);
    box-shadow: var(--zetra-ui-shadow-sm);
}

body .erp-app-shell .pos-card-grid .ag-body-viewport,
body .erp-app-shell .pos-card-grid .ag-center-cols-viewport,
body .erp-app-shell .pos-card-grid .ag-center-cols-container {
    background: var(--zetra-ui-surface);
}

body .erp-app-shell .pos-card-grid .ag-row {
    background: var(--zetra-ui-surface);
    border-bottom: 1px solid var(--zetra-ui-border);
}

body .erp-app-shell .pos-card-grid .ag-row-hover,
body .erp-app-shell .pos-card-grid .ag-row:hover {
    background: var(--zetra-ui-primary-soft);
}

body .erp-app-shell .pos-card-grid .ag-row-selected {
    background: var(--zetra-ui-primary-soft) !important;
}

body .erp-app-shell .zetra-card-grid.ag-theme-quartz {
    border: 0;
    box-shadow: none;
    background: transparent;
}

body .erp-app-shell .zetra-card-grid .ag-root-wrapper {
    border: 1px solid var(--zetra-ui-border);
    border-radius: var(--zetra-ui-radius);
    background: var(--zetra-ui-surface);
    box-shadow: var(--zetra-ui-shadow-sm);
}

body .erp-app-shell .zetra-card-grid .ag-header {
    display: none;
}

body .erp-app-shell .zetra-card-grid .ag-body-viewport,
body .erp-app-shell .zetra-card-grid .ag-center-cols-viewport,
body .erp-app-shell .zetra-card-grid .ag-center-cols-container {
    background: var(--zetra-ui-surface);
}

body .erp-app-shell .zetra-card-grid .ag-row {
    background: var(--zetra-ui-surface);
    border-bottom: 1px solid var(--zetra-ui-border);
}

body .erp-app-shell .zetra-card-grid .ag-row-hover,
body .erp-app-shell .zetra-card-grid .ag-row:hover,
body .erp-app-shell .zetra-card-grid .ag-row-selected {
    background: var(--zetra-ui-primary-soft) !important;
}

body .erp-app-shell .zetra-card-grid .ag-cell,
body .erp-app-shell .zetra-card-grid .ag-cell-wrapper,
body .erp-app-shell .zetra-card-grid .ag-cell-value,
body .erp-app-shell .zetra-card-grid .ag-cell > .order-card,
body .erp-app-shell .zetra-card-grid .ag-cell > div {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body .erp-app-shell .zetra-card-grid .ag-cell,
body .erp-app-shell .zetra-card-grid .ag-cell-wrapper,
body .erp-app-shell .zetra-card-grid .ag-cell-value {
    padding: 0 !important;
    overflow: visible !important;
}

body .erp-app-shell .zetra-card-grid:not(.zetra-card-grid-has-selection-column) .ag-selection-column,
body .erp-app-shell .zetra-card-grid:not(.zetra-card-grid-has-selection-column) .ag-selection-checkbox,
body .erp-app-shell .erp-card-grid:not(.zetra-card-grid-has-selection-column) .ag-selection-column,
body .erp-app-shell .erp-card-grid:not(.zetra-card-grid-has-selection-column) .ag-selection-checkbox {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

body .erp-app-shell .zetra-card-grid .order-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

body .erp-app-shell .zetra-card-grid .order-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

body .erp-app-shell .zetra-card-grid .order-main-info {
    flex: 1 1 auto;
    min-width: 0;
}

body .erp-app-shell .zetra-card-grid .order-amount {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
    text-align: right;
}

body .erp-app-shell .order-card {
    background: transparent;
    color: var(--zetra-ui-text);
}

body .erp-app-shell .order-number {
    color: var(--zetra-ui-primary);
}

body .erp-app-shell .order-partner,
body .erp-app-shell .order-amount-value {
    color: var(--zetra-ui-text);
}

body .erp-app-shell .order-amount-label,
body .erp-app-shell .order-meta-item,
body .erp-app-shell .order-meta-item i {
    color: var(--zetra-ui-muted);
}

body .erp-app-shell .zetra-card-grid .order-amount-value,
body .erp-app-shell .zetra-card-grid .order-amount-label {
    overflow-wrap: anywhere;
}

body .erp-app-shell .order-meta {
    border-top-color: var(--zetra-ui-border);
}

body .erp-app-shell .order-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    padding-top: 8px;
    border-top: 1px solid var(--zetra-ui-border);
}

body .erp-app-shell .order-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    color: var(--zetra-ui-muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

body .erp-app-shell .order-detail-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--zetra-ui-muted);
    font-weight: 800;
    line-height: inherit;
    white-space: nowrap;
}

body .erp-app-shell .order-detail-value {
    min-width: 0;
    color: var(--zetra-ui-text);
    font-weight: 700;
    line-height: inherit;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    body .erp-app-shell .zetra-card-grid .ag-root-wrapper,
    body .erp-app-shell .zetra-card-grid .ag-root-wrapper-body,
    body .erp-app-shell .zetra-card-grid .ag-root,
    body .erp-app-shell .zetra-card-grid .ag-body,
    body .erp-app-shell .zetra-card-grid .ag-body-viewport,
    body .erp-app-shell .zetra-card-grid .ag-center-cols-viewport,
    body .erp-app-shell .zetra-card-grid .ag-center-cols-clipper,
    body .erp-app-shell .zetra-card-grid .ag-center-cols-container,
    body .erp-app-shell .zetra-card-grid .ag-row,
    body .erp-app-shell .zetra-card-grid .ag-cell {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body .erp-app-shell .order-detail-item {
        display: grid;
        grid-template-columns: minmax(82px, max-content) minmax(0, 1fr);
        flex: 1 1 100%;
        column-gap: 7px;
        font-size: 0.74rem;
    }

    body .erp-app-shell .zetra-card-grid .ag-body-viewport {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }
}

body .erp-app-shell .order-status-badge {
    border-radius: 6px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .erp-tab-body > #tabPartneri:not(.active) {
        display: none !important;
    }

    .erp-tab-body > #tabPartneri.active {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
    }

    #wrapperPartneri {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid.ag-theme-quartz {
        flex: 1 1 auto;
        min-height: 220px;
        border: 0;
        background: transparent;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-root-wrapper {
        border: 1px solid var(--zetra-ui-border);
        border-radius: var(--zetra-ui-radius);
        background: var(--zetra-ui-surface);
        box-shadow: var(--zetra-ui-shadow-sm);
        overflow: hidden;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-header,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-selection-column,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-checkbox-selection {
        display: none !important;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-body-viewport,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-center-cols-viewport,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-center-cols-clipper,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-center-cols-container,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-row,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-cell {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-center-cols-viewport,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-body-horizontal-scroll-viewport {
        overflow-x: hidden !important;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-row {
        border-bottom: 1px solid var(--zetra-ui-border);
        background: var(--zetra-ui-surface);
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-row-hover,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-row:hover,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-row-selected {
        background: var(--zetra-ui-primary-soft) !important;
    }

    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-cell,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-cell-wrapper,
    body .erp-app-shell #grid_partner.partner-mobile-grid .ag-cell-value {
        display: flex;
        align-items: stretch;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body .erp-app-shell .ag-theme-quartz .ag-paging-panel {
        display: flex !important;
        min-height: 48px !important;
        height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }

    body .erp-app-shell .ag-theme-quartz .ag-paging-page-size,
    body .erp-app-shell .ag-theme-quartz .ag-paging-row-summary-panel {
        display: none !important;
    }

    body .erp-app-shell .ag-theme-quartz .ag-paging-page-summary-panel {
        display: flex !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        color: var(--zetra-ui-text);
    }

    body .erp-app-shell .ag-theme-quartz .ag-paging-button {
        width: 30px !important;
        min-width: 30px !important;
        height: 32px !important;
        min-height: 32px !important;
        margin: 0 !important;
    }

    body .erp-app-shell .partner-mobile-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        min-width: 0;
        padding: 12px;
        color: var(--zetra-ui-text);
    }

    body .erp-app-shell .partner-mobile-card-header {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    body .erp-app-shell .partner-mobile-select {
        display: flex;
        flex: 0 0 26px;
        justify-content: center;
        padding-top: 2px;
    }

    body .erp-app-shell .partner-mobile-select span {
        display: inline-flex;
        width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--zetra-ui-border-strong);
        border-radius: 5px;
        background: var(--zetra-ui-surface-muted);
        color: transparent;
        font-size: 0.68rem;
    }

    body .erp-app-shell .partner-mobile-select span.is-selected {
        border-color: var(--zetra-ui-primary);
        background: var(--zetra-ui-primary);
        color: #fff;
    }

    body .erp-app-shell .partner-mobile-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    body .erp-app-shell .partner-mobile-title-line {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        flex-wrap: wrap;
        line-height: 1.2;
    }

    body .erp-app-shell .partner-mobile-type,
    body .erp-app-shell .partner-mobile-id {
        color: var(--zetra-ui-primary);
        font-weight: 800;
    }

    body .erp-app-shell .partner-mobile-kind {
        border-radius: 999px;
        padding: 2px 7px;
        background: var(--zetra-ui-primary-soft);
        color: var(--zetra-ui-primary);
        font-size: 0.68rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    body .erp-app-shell .partner-mobile-card .badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.15;
    }

    body .erp-app-shell .partner-mobile-name {
        margin-top: 4px;
        color: var(--zetra-ui-text);
        font-size: 0.96rem;
        font-weight: 800;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    body .erp-app-shell .partner-mobile-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding-top: 8px;
        border-top: 1px solid var(--zetra-ui-border);
    }

    body .erp-app-shell .partner-mobile-meta span {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
        color: var(--zetra-ui-muted);
        font-size: 0.76rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    body .erp-app-shell .partner-mobile-meta i {
        flex: 0 0 14px;
        margin-top: 1px;
        color: var(--zetra-ui-muted);
        text-align: center;
    }

    body .erp-app-shell .partner-mobile-meta strong {
        flex: 0 0 auto;
        color: var(--zetra-ui-text);
        font-weight: 800;
    }
}

html.dark-mode .erp-app-shell .btn.btn-default,
html.dark-mode .erp-app-shell .btn.btn-secondary,
html.dark-mode .erp-app-shell .btn.btn-outline-secondary,
[data-bs-theme="dark"] .erp-app-shell .btn.btn-default,
[data-bs-theme="dark"] .erp-app-shell .btn.btn-secondary,
[data-bs-theme="dark"] .erp-app-shell .btn.btn-outline-secondary {
    color: var(--zetra-ui-text);
}

html.dark-mode .erp-app-shell .badge.bg-light,
[data-bs-theme="dark"] .erp-app-shell .badge.bg-light {
    background: var(--zetra-ui-surface-muted) !important;
    color: var(--zetra-ui-text) !important;
}

html.dark-mode .erp-app-shell .ag-theme-quartz,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz {
    --ag-header-background-color: var(--zetra-ui-surface-soft);
    --ag-header-foreground-color: var(--zetra-ui-text);
    --ag-border-color: rgba(255, 255, 255, 0.075);
    --ag-secondary-border-color: rgba(255, 255, 255, 0.055);
    --ag-row-border-color: rgba(255, 255, 255, 0.065);
    --ag-background-color: var(--zetra-ui-surface);
    --ag-foreground-color: var(--zetra-ui-text);
    --ag-secondary-foreground-color: var(--zetra-ui-muted);
    --ag-odd-row-background-color: rgba(255, 255, 255, 0.018);
    --ag-row-hover-color: rgba(52, 143, 226, 0.13);
    --ag-selected-row-background-color: rgba(52, 143, 226, 0.18);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-root-wrapper,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-root-wrapper {
    background: var(--zetra-ui-surface);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-header,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-header {
    background: var(--zetra-ui-surface-soft);
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-header-cell,
html.dark-mode .erp-app-shell .ag-theme-quartz .ag-header-group-cell,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-header-cell,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-header-group-cell {
    border-right-color: rgba(255, 255, 255, 0.07);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-header-cell-text,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-header-cell-text {
    color: var(--zetra-ui-text);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-header-cell-resize::after,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-header-cell-resize::after {
    background-color: rgba(255, 255, 255, 0.18);
    opacity: 0.34;
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-row,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-row {
    background: var(--zetra-ui-surface);
    border-bottom-color: rgba(255, 255, 255, 0.065);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-row-odd,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-row-odd {
    background: rgba(255, 255, 255, 0.018);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-row-hover,
html.dark-mode .erp-app-shell .ag-theme-quartz .ag-row:hover,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-row-hover,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-row:hover {
    background: rgba(52, 143, 226, 0.13);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-row-selected,
html.dark-mode .erp-app-shell .ag-theme-quartz .ag-row.ag-row-selected,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-row-selected,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-row.ag-row-selected {
    background: rgba(52, 143, 226, 0.18) !important;
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-cell,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-cell {
    border-right-color: rgba(255, 255, 255, 0.065);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-danger,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-danger {
    background: rgba(255, 91, 87, 0.22) !important;
    border-inline-start-color: rgba(255, 91, 87, 0.95);
    color: #ffc7c5 !important;
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-warning,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-warning {
    background: rgba(245, 156, 26, 0.23) !important;
    border-inline-start-color: rgba(245, 156, 26, 0.95);
    color: #ffe0ad !important;
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-success,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-cell.rg-margin-cell-success {
    background: rgba(0, 172, 172, 0.22) !important;
    border-inline-start-color: rgba(0, 172, 172, 0.95);
    color: #98ffff !important;
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-checkbox-input-wrapper,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-checkbox-input-wrapper {
    background: var(--zetra-ui-surface-muted);
    border-color: rgba(255, 255, 255, 0.14);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-paging-panel,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-paging-panel {
    background: var(--zetra-ui-surface);
    border-top-color: rgba(255, 255, 255, 0.09);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-picker-field-wrapper,
html.dark-mode .erp-app-shell .ag-theme-quartz .ag-input-field-input,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-picker-field-wrapper,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-input-field-input {
    background: var(--zetra-ui-surface-soft);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--zetra-ui-text);
}

html.dark-mode .erp-app-shell .ag-theme-quartz .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb,
html.dark-mode .erp-app-shell .ag-theme-quartz .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb,
html.dark-mode .erp-app-shell .ag-theme-quartz .ag-center-cols-viewport::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-body-horizontal-scroll-viewport::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .erp-app-shell .ag-theme-quartz .ag-center-cols-viewport::-webkit-scrollbar-thumb {
    border-color: var(--zetra-ui-surface);
    background: rgba(255, 255, 255, 0.2);
}

html.dark-mode body .erp-sort-btn,
html.dark-mode body .erp-filter-chip,
[data-bs-theme="dark"] body .erp-sort-btn,
[data-bs-theme="dark"] body .erp-filter-chip {
    background: var(--zetra-ui-surface);
    border-color: var(--zetra-ui-border);
    color: var(--zetra-ui-text);
}

html.dark-mode body .erp-sort-btn:hover,
html.dark-mode body .erp-filter-chip:hover,
[data-bs-theme="dark"] body .erp-sort-btn:hover,
[data-bs-theme="dark"] body .erp-filter-chip:hover {
    background: var(--zetra-ui-primary-soft);
    border-color: rgba(52, 143, 226, 0.42);
    color: #fff;
}

html.dark-mode body .erp-bottom-sheet-panel,
[data-bs-theme="dark"] body .erp-bottom-sheet-panel {
    background: var(--zetra-ui-surface);
    border-color: var(--zetra-ui-border);
    color: var(--zetra-ui-text);
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.42);
}

html.dark-mode body .erp-bottom-sheet-header,
html.dark-mode body .erp-bottom-sheet-footer,
[data-bs-theme="dark"] body .erp-bottom-sheet-header,
[data-bs-theme="dark"] body .erp-bottom-sheet-footer {
    background: var(--zetra-ui-surface);
    border-color: var(--zetra-ui-border);
}

html.dark-mode body .erp-bottom-sheet-body,
html.dark-mode body .erp-bottom-sheet-search,
[data-bs-theme="dark"] body .erp-bottom-sheet-body,
[data-bs-theme="dark"] body .erp-bottom-sheet-search {
    background: var(--zetra-ui-surface);
}

html.dark-mode body .erp-bottom-sheet-header h6,
[data-bs-theme="dark"] body .erp-bottom-sheet-header h6 {
    color: var(--zetra-ui-text);
}

html.dark-mode body .erp-bottom-sheet-option,
html.dark-mode body .erp-sort-option-row,
[data-bs-theme="dark"] body .erp-bottom-sheet-option,
[data-bs-theme="dark"] body .erp-sort-option-row {
    background: var(--zetra-ui-surface-soft);
    border-color: var(--zetra-ui-border);
    color: var(--zetra-ui-text);
}

html.dark-mode body .erp-bottom-sheet-option:hover,
html.dark-mode body .erp-sort-option-row:hover,
[data-bs-theme="dark"] body .erp-bottom-sheet-option:hover,
[data-bs-theme="dark"] body .erp-sort-option-row:hover {
    background: var(--zetra-ui-primary-soft);
}

html.dark-mode body .erp-bottom-sheet-option .option-count,
[data-bs-theme="dark"] body .erp-bottom-sheet-option .option-count {
    background: var(--zetra-ui-surface);
    color: var(--zetra-ui-muted);
}

html.dark-mode body .erp-app-shell .pos-card-grid .ag-root-wrapper,
[data-bs-theme="dark"] body .erp-app-shell .pos-card-grid .ag-root-wrapper {
    background: var(--zetra-ui-surface);
    border-color: var(--zetra-ui-border);
}

html.dark-mode body .erp-app-shell .pos-card-grid .ag-row,
[data-bs-theme="dark"] body .erp-app-shell .pos-card-grid .ag-row {
    background: var(--zetra-ui-surface);
    border-bottom-color: var(--zetra-ui-border);
}

html.dark-mode body .erp-app-shell .activation-chip-success,
[data-bs-theme="dark"] body .erp-app-shell .activation-chip-success {
    color: #8be8e8;
}

@media (max-width: 767.98px) {
    html.dark-mode body .erp-app-shell .erp-card-grid.zetra-card-grid .erp-card-container,
    body.dark-mode .erp-app-shell .erp-card-grid.zetra-card-grid .erp-card-container,
    [data-bs-theme="dark"] body .erp-app-shell .erp-card-grid.zetra-card-grid .erp-card-container {
        padding-inline-end: 18px !important;
    }

    html.dark-mode body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing,
    body.dark-mode .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing,
    [data-bs-theme="dark"] body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing {
        flex: 0 0 auto !important;
        min-width: 86px !important;
        max-width: 104px !important;
        padding-inline-end: 2px !important;
        text-align: right;
    }

    html.dark-mode body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-main,
    html.dark-mode body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-sub,
    html.dark-mode body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-label,
    body.dark-mode .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-main,
    body.dark-mode .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-sub,
    body.dark-mode .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-label,
    [data-bs-theme="dark"] body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-main,
    [data-bs-theme="dark"] body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-sub,
    [data-bs-theme="dark"] body .erp-app-shell .erp-card-grid.zetra-card-grid .card-pricing .price-label {
        max-width: 100%;
        overflow: visible !important;
        text-align: right;
    }
}

@media (max-width: 991.98px) {
    .erp-tab-toolbar {
        padding: 8px 10px;
        gap: 8px;
    }

    .erp-tab-toolbar .erp-btn-group,
    .erp-tab-toolbar .toolbar-left,
    .erp-tab-toolbar .toolbar-right {
        width: 100%;
    }

    .erp-tab-toolbar .btn {
        min-height: 38px;
        padding-inline: 0.62rem;
    }

    .erp-tab-body {
        padding: 12px 12px 58px;
    }

    .erp-app-shell .activation-secondary-grid {
        grid-template-columns: 1fr;
    }

    .erp-app-shell .activation-section-header {
        align-items: flex-start;
    }
}

@media (min-width: 768px) {
    body .erp-bottom-sheet-panel {
        left: 50%;
        right: auto;
        width: min(760px, calc(100vw - 32px));
        transform: translate(-50%, 100%);
    }

    body .erp-bottom-sheet-overlay.active + .erp-bottom-sheet-panel,
    body .erp-bottom-sheet-panel.active {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 767.98px) {
    body:has(#header.app-header) #content.app-content:has(.erp-app-shell) > .erp-app-shell {
        margin: -20px -20px -20px;
        height: calc(100dvh - var(--zetra-mobile-header-height, 56px)) !important;
    }

    body.keyboard-open:has(#header.app-header) #content.app-content:has(.erp-app-shell) > .erp-app-shell {
        height: calc(var(--vvh, 100dvh) - var(--zetra-mobile-header-height, 56px)) !important;
    }

    .erp-app-shell .activation-section-header {
        flex-direction: column;
    }

    .erp-app-shell .activation-section-header .btn {
        width: 100%;
    }

    .erp-app-shell .activation-reward-row,
    .erp-app-shell .activation-result-row {
        grid-template-columns: 1fr;
    }

    .erp-app-shell .activation-row-action {
        justify-content: stretch;
    }

    .erp-app-shell .activation-row-action .btn {
        width: 100%;
    }

    .erp-shell-content > .erp-shell-tabs,
    .erp-tab-body > .erp-shell-tabs {
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
        margin-top: 0;
        overflow-x: auto;
        overflow-y: hidden;
        border-top: 1px solid var(--zetra-ui-border);
        background: var(--zetra-ui-surface);
        scrollbar-width: thin;
        scrollbar-color: rgba(112, 126, 141, 0.48) transparent;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        transition: box-shadow 0.16s ease;
    }

    .erp-shell-content > .erp-shell-tabs:first-child,
    .erp-tab-body > .erp-shell-tabs:first-child {
        margin-top: 0;
    }

    .erp-shell-content > .erp-shell-tabs::-webkit-scrollbar,
    .erp-tab-body > .erp-shell-tabs::-webkit-scrollbar {
        display: block;
        height: 3px;
    }

    .erp-shell-content > .erp-shell-tabs::-webkit-scrollbar-thumb,
    .erp-tab-body > .erp-shell-tabs::-webkit-scrollbar-thumb {
        background: rgba(112, 126, 141, 0.45);
        border-radius: 999px;
    }

    .erp-shell-tabs.erp-tabs-overflowing:not(.erp-tabs-at-end) {
        box-shadow: inset -22px 0 18px -22px rgba(52, 143, 226, 0.85);
    }

    .erp-shell-tabs.erp-tabs-overflowing:not(.erp-tabs-at-start) {
        box-shadow: inset 22px 0 18px -22px rgba(52, 143, 226, 0.85);
    }

    .erp-shell-tabs.erp-tabs-overflowing:not(.erp-tabs-at-start):not(.erp-tabs-at-end) {
        box-shadow:
            inset 22px 0 18px -22px rgba(52, 143, 226, 0.85),
            inset -22px 0 18px -22px rgba(52, 143, 226, 0.85);
    }

    .erp-shell-tabs .nav-tabs {
        align-items: stretch;
        flex-wrap: nowrap;
        min-height: 52px;
        min-width: max-content;
        width: auto;
    }

    .erp-shell-tabs .nav-item {
        flex: 0 0 auto;
        min-width: 72px;
        scroll-snap-align: start;
    }

    body .erp-grid-toolbar {
        gap: 7px;
        margin-bottom: 8px;
        padding: 8px 0;
    }

    body .erp-sort-btn,
    body .erp-filter-chip {
        min-height: 38px;
        padding-inline: 0.7rem;
        font-size: 0.8rem;
    }

    body .erp-bottom-sheet-panel {
        left: max(8px, env(safe-area-inset-left, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        max-height: min(82vh, 640px);
        border-radius: 14px;
    }

    .erp-shell-tabs .nav-link {
        justify-content: center;
        min-width: 72px;
        min-height: 52px;
        height: 52px;
        padding: 7px 8px 6px;
        font-size: 0.76rem;
        gap: 3px;
        overflow: hidden;
    }

    .erp-shell-tabs .nav-link i {
        font-size: 0.96rem;
        line-height: 1;
    }

    .erp-shell-tabs .nav-link span {
        display: block;
        max-width: 78px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .erp-shell-tabs .nav-link.active {
        box-shadow: inset 0 -3px 0 var(--zetra-ui-primary);
        border-bottom-color: transparent;
    }

    .erp-app-shell .form-control,
    .erp-app-shell .form-select,
    .erp-app-shell .input-group-text,
    .erp-app-shell .select2-container--default .select2-selection--single {
        min-height: 42px;
    }

    .erp-app-shell .grid-filter-btn {
        flex: 1 1 145px;
        min-height: 40px;
    }

    body .erp-app-shell {
        --erp-info-footer-h: 50px;
    }

    body .erp-app-shell .erp-info-footer {
        max-height: calc(var(--erp-info-footer-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

body.erp-info-footer-hidden .erp-info-footer {
    display: none !important;
}

body.erp-info-footer-hidden .erp-app-shell {
    --erp-info-footer-h: 0px !important;
}

body.erp-info-footer-hidden .erp-app-shell .erp-tab-body:has(.erp-info-footer) {
    padding-bottom: 12px !important;
    scroll-padding-bottom: 12px;
}

body.erp-info-footer-hidden .erp-app-shell .erp-tab-body:has(.erp-info-footer) > .tab-content > .tab-pane.active,
body.erp-info-footer-hidden .erp-app-shell .erp-tab-body.tab-content:has(> .erp-info-footer) > .tab-pane.active {
    padding-bottom: 0 !important;
}
