/* MATVET data grid: stock reference font 12px, one 36px row per record. */
:root {
 --rz-primary:var(--erp-action); --rz-primary-light:var(--erp-soft); --rz-primary-lighter:var(--erp-soft);
 --rz-text-color:var(--erp-text); --rz-text-secondary-color:var(--erp-muted);
 --rz-base-background-color:var(--erp-surface); --rz-base-100:var(--erp-surface);
 --rz-base-200:var(--erp-alt); --rz-base-300:var(--erp-border); --rz-base-400:var(--erp-border);
 --rz-base-700:var(--erp-muted); --rz-base-800:var(--erp-text); --rz-base-900:var(--erp-text);
 --rz-body-background-color:var(--erp-bg); --rz-body-color:var(--erp-text);
 --rz-grid-background-color:var(--erp-surface); --rz-grid-cell-color:var(--erp-text);
 --rz-grid-header-background-color:var(--erp-alt); --rz-grid-header-color:var(--erp-text);
 --rz-grid-hover-background-color:var(--erp-soft); --rz-grid-selected-background-color:var(--erp-soft);
 --rz-grid-cell-padding:4px 10px; --rz-grid-header-padding:7px 10px;
 --rz-grid-cell-font-size:12px; --rz-grid-header-font-size:12px;
 --rz-border-color:var(--erp-border); --rz-input-background-color:var(--erp-surface);
 --rz-input-color:var(--erp-text); --rz-input-border:1px solid var(--erp-border);
 --rz-input-height:30px; --rz-font-family:"Segoe UI",Inter,-apple-system,BlinkMacSystemFont,sans-serif; --rz-border-radius:4px;
}
.matvet-grid-region { width:100%;max-width:100%;min-width:0;color:var(--erp-text);background:var(--erp-surface); }
.matvet-grid-region .rz-data-grid { border:1px solid var(--erp-border);border-radius:4px;font-size:12px;background:var(--erp-surface);color:var(--erp-text); }
.matvet-grid-region .rz-data-grid-data { overflow:auto;scrollbar-width:thin; }
.matvet-grid-region .rz-grid-table { table-layout:fixed;border-collapse:separate;border-spacing:0; }
.matvet-grid-region .rz-grid-table :is(th,td) { height:36px;box-sizing:border-box;padding:4px 10px!important;border-color:var(--erp-border)!important;border-right:1px solid var(--erp-border);vertical-align:middle;font-size:12px!important;line-height:20px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--erp-text); }
.matvet-grid-region .rz-grid-table th { font-weight:650!important;background:var(--erp-alt);text-align:left; }
.matvet-grid-region .rz-grid-table thead th {
    padding-inline: 9px 12px !important;
}
.matvet-grid-region .rz-grid-table thead th .rz-column-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding-inline: 0;
}
.matvet-grid-region .rz-grid-table thead th .rz-column-title-content {
    flex: 0 1 auto;
    min-width: 0;
}
.matvet-grid-region .rz-grid-table thead th :is(.rzi-sort,.rz-sortable-column-icon,.rz-grid-filter-icon,.rz-column-drag) {
    flex: 0 0 auto;
    color: var(--erp-muted);
}
.matvet-grid-region .rz-grid-table thead th .rz-column-resizer {
    inset-inline-end: 0;
    z-index: 1;
}
.matvet-grid-region .rz-grid-table th.rz-frozen-cell, .matvet-grid-region .rz-grid-table td.rz-frozen-cell {
    border-inline-end-color: var(--erp-accent) !important;
}
.matvet-grid-region .rz-grid-table th:focus-visible,
.matvet-grid-region .rz-grid-table th :is(button,a,.rz-column-title):focus-visible {
    outline: 2px solid var(--erp-accent);
    outline-offset: -2px;
}
.matvet-grid-region .rz-grid-table td { font-weight:400;background:var(--erp-surface); }
.matvet-grid-region .rz-grid-table tr:nth-child(even)>td {background:var(--erp-alt);}
.matvet-grid-region .rz-grid-table tr:hover>td,.matvet-grid-region .rz-grid-table tr.rz-state-highlight>td { background:var(--erp-soft); }
.matvet-grid-region .rz-cell-data {display:block;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;font-size:12px!important;line-height:20px;max-width:100%;}
.matvet-grid-region .rz-cell-data :is(div,span,small,strong,a,p) {white-space:nowrap!important;font-size:inherit;line-height:inherit;margin-block:0;}
.matvet-grid-region .rz-cell-data :is(strong,b) {font-weight:650;}
.matvet-grid-region .rz-cell-data :is(button,.btn) {font-size:12px!important;line-height:20px;padding:2px 8px!important;min-height:26px;max-height:28px;width:auto;white-space:nowrap;overflow:visible;}
.matvet-grid-region .rz-cell-data :is(input:not([type=checkbox]),select) {min-width:0;width:100%;height:27px;min-height:0;padding:2px 6px;font-size:12px;}
.matvet-grid-region .rz-grid-table td:focus-within,.matvet-grid-region .rz-grid-table td:focus {outline:2px solid var(--erp-accent);outline-offset:-2px;}
.matvet-grid-region .rz-group-header,.matvet-grid-region .rz-column-picker,.matvet-grid-region .rz-pager {background:var(--erp-alt);color:var(--erp-muted);font-size:12px;}
.matvet-grid-region .rz-grid-filter :is(input,select,button) {font-size:12px;height:28px;min-height:0;}
.matvet-grid-region .rz-grid-table tfoot :is(td,th) {background:var(--erp-soft);font-weight:650;}
.matvet-grid-scope {padding:8px 10px;color:var(--erp-muted);font-size:11px;line-height:1.4;border-top:1px solid var(--erp-border);}
.matvet-grid-totals {display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;padding:10px;background:var(--erp-soft);color:var(--erp-text);font-size:12px;}
.matvet-grid-region :is(.rz-badge,.badge,.pill,.state,.erp-badge) {display:inline-flex;align-items:center;white-space:nowrap;line-height:18px;max-height:24px;padding:2px 7px;font-size:11px;}
.matvet-grid-region .rz-text-align-right {text-align:right!important;font-variant-numeric:tabular-nums;}
@media print {.matvet-grid-region .rz-data-grid-data {overflow:visible!important;max-height:none!important;height:auto!important}.matvet-grid-region :is(.rz-pager,.rz-group-header,.rz-grid-filter-row){display:none!important}}

/* The shared grid and its host card must use the same theme in Web and Hybrid. */
:root .cp-page { --cp-brand:var(--erp-action);--cp-dark:var(--erp-accent);--cp-line:var(--erp-border);background:var(--erp-bg);color:var(--erp-text); }
:root .cp-page :is(.cp-filters,.cp-kpi,.cp-results,.cp-detail,.cp-method,.cp-empty) {background:var(--erp-surface);color:var(--erp-text);border-color:var(--erp-border);}
:root .cp-page :is(.cp-featured,.cp-sponge-bar,.cp-readonly,.cp-filter-note,.cp-loading,.cp-rebate) {background:var(--erp-soft);color:var(--erp-text);border-color:var(--erp-border);}
:root .cp-page :is(.cp-header p,.cp-toolbar p,.cp-scope span,.cp-kpi>span,.cp-kpi small,.cp-sponge-bar small,.cp-contribution span,.cp-rebate p,.cp-rebate dt,.cp-rebate-values>div>span,.cp-method p,.cp-pagination) {color:var(--erp-muted);}
:root .cp-page :is(.cp-rebate dd,.cp-rebate-values>div>strong) {color:var(--erp-text);}
:root .cp-page label:not(.cp-switch):not(.cp-advanced) {color:var(--erp-muted);}
:root .cp-page :is(input:not([type=checkbox]),select,button) {background:var(--erp-surface);color:var(--erp-text);border-color:var(--erp-border);}
:root .cp-page button:hover {background:var(--erp-soft);}
:root .cp-page .cp-primary {background:var(--erp-action);color:white;border-color:var(--erp-action);}
.matvet-grid-region .rz-grid-table thead .rz-cell-filter-label > .rz-button.rz-base {
    background: var(--erp-surface);
    color: var(--erp-text);
    border: 1px solid var(--erp-border);
}
.matvet-grid-region .rz-grid-table thead .rz-cell-filter-label > .rz-button.rz-base:hover,
.matvet-grid-region .rz-grid-table thead .rz-cell-filter-label > .rz-button.rz-base:focus-visible {
    background: var(--erp-soft);
    color: var(--erp-accent);
}
.matvet-grid-region :is(.rz-calendar,.rz-column-filter-popup,.rz-grid-filter,.rz-dropdown-panel,.rz-multiselect-panel) {
    background-color: var(--erp-surface);
    color: var(--erp-text);
    border-color: var(--erp-border);
}
.matvet-grid-region :is(.rz-calendar-header,.rz-calendar-footer,.rz-calendar-month) {
    color: var(--erp-text);
    background-color: var(--erp-alt);
}
