.staff-ui .staff-sheet { min-width:0; display:grid; gap:20px; }
.staff-ui .staff-sheet-heading h2 { font-size:16px; font-weight:700; margin:0; }
.staff-ui .staff-sheet-heading p { color:var(--sl-muted); margin:6px 0 0; font-size:13px; max-width:740px; }
.staff-ui .staff-sheet-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 220px; align-items:end; gap:20px; }
.staff-ui .staff-sheet-search { display:flex; gap:8px; align-items:end; min-width:0; }
.staff-ui .staff-sheet-search .sl-field { min-width:0; width:340px; max-width:100%; flex:0 1 340px; }
.staff-ui .staff-sheet-group { width:220px; max-width:100%; }
.staff-ui .staff-sheet-form { display:grid; min-width:0; gap:12px; }
.staff-ui .staff-sheet-caption, .staff-ui .staff-sheet-footer, .staff-ui .staff-sheet-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.staff-ui .staff-sheet-caption { font-size:12px; color:var(--sl-muted); }
.staff-ui .staff-sheet-pagination { justify-content:flex-start; font-size:13px; color:var(--sl-muted); }
.staff-ui .staff-sheet-scroll { overflow:auto; position:relative; border-block:1px solid var(--sl-border); scrollbar-gutter:stable; }
.staff-ui .staff-sheet-table { border-collapse:separate; border-spacing:0; width:100%; table-layout:fixed; min-width:1000px; font-size:13px; }
.staff-ui .staff-sheet-table[data-visible-group="sale"] { min-width:1180px; }
.staff-ui .staff-sheet-table[data-visible-group="content"] { min-width:1150px; }
.staff-ui .staff-sheet-table [hidden] { display:none!important; }
.staff-ui .staff-sheet-table th { padding:10px 12px; text-align:left; font-weight:500; color:var(--sl-muted); background:#fafafa; position:sticky; top:0; z-index:3; border-bottom:1px solid var(--sl-border); }
.staff-ui .staff-sheet-table td { padding:10px 12px; border-bottom:1px solid var(--sl-border); vertical-align:top; background:#fff; }
.staff-ui .staff-sheet-table tr:last-child td { border-bottom:0; }
.staff-ui .staff-sheet-table .staff-sheet-identity { width:280px; position:sticky; left:0; z-index:2; box-shadow:1px 0 0 var(--sl-border); }
.staff-ui .staff-sheet-table th.staff-sheet-identity { z-index:4; }
.staff-ui .staff-sheet-identity strong { display:block; font-size:13px; font-weight:500; line-height:18px; overflow-wrap:anywhere; }
.staff-ui .staff-sheet-reference { display:flex; flex-wrap:wrap; gap:2px 8px; color:var(--sl-muted); font-size:11px; line-height:16px; margin-top:6px; overflow-wrap:anywhere; }
.staff-ui .staff-sheet-reference span+span::before { content:"· "; }
.staff-ui .staff-sheet-table .staff-sheet-open { width:48px; padding-inline:4px; }
.staff-ui .staff-sheet-table [data-sheet-field="stock_quantity"], .staff-ui .staff-sheet-table [data-sheet-field="pages_count"] { width:104px; }
.staff-ui .staff-sheet-table [data-sheet-field="price_rubles"] { width:124px; }
.staff-ui .staff-sheet-table [data-sheet-field="preorder_allowed"] { width:132px; }
.staff-ui .staff-sheet-table [data-sheet-field="description"] { width:360px; }
.staff-ui .staff-sheet .sl-field { margin:0; min-width:0; }
.staff-ui .staff-sheet-table .sl-field { gap:0; min-width:0; }
.staff-ui .staff-sheet-table .sl-field>label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.staff-ui .staff-sheet .staff-sheet-table .sl-field .sl-input, .staff-ui .staff-sheet .staff-sheet-table .sl-field .sl-select-trigger { min-height:36px; font-size:13px; line-height:18px; padding:8px 10px; width:100%; border-radius:6px; }
.staff-ui .staff-sheet .staff-sheet-table .sl-field textarea.sl-input { display:block; height:54px; min-height:54px; line-height:18px; padding:8px 10px; resize:vertical; }
.staff-ui .staff-sheet-table .sl-field-error { font-size:12px; line-height:16px; margin:6px 0 0; }
.staff-ui .staff-sheet-table td[data-sheet-field="price_rubles"] { position:relative; }
.staff-ui .staff-sheet .staff-sheet-table [data-sheet-field="price_rubles"] .sl-input { padding-right:30px; }
.staff-ui .staff-sheet-unit { position:absolute; right:22px; top:20px; font-size:12px; color:var(--sl-muted); pointer-events:none; }
.staff-ui .staff-sheet-table .has-errors>.staff-sheet-identity { box-shadow:inset 3px 0 var(--sl-red),1px 0 0 var(--sl-border); }
.staff-ui .staff-sheet .staff-form-errors ul { max-height:180px; overflow:auto; }
.staff-ui .staff-sheet .staff-form-errors a { text-decoration:underline; }
@media(max-width:640px) {
  .staff-ui .staff-sheet-toolbar { grid-template-columns:minmax(0,1fr); gap:12px; }
  .staff-ui .staff-sheet-search { flex-wrap:wrap; gap:12px; }
  .staff-ui .staff-sheet-search .sl-field { flex-basis:100%; }
  .staff-ui .staff-sheet-search, .staff-ui .staff-sheet-search .sl-field, .staff-ui .staff-sheet-group { width:100%; min-width:0; }
  .staff-ui .staff-sheet-table .staff-sheet-identity { width:180px; }
  .staff-ui .staff-sheet .staff-sheet-table .sl-field .sl-input, .staff-ui .staff-sheet .staff-sheet-table .sl-field .sl-select-trigger { min-height:44px; }
  .staff-ui .staff-sheet-footer>.sl-button { width:100%; }
}

.staff-ui .staff-sheet-table[data-visible-group="book"] [data-sheet-group]:not([data-sheet-group~="book"]),
.staff-ui .staff-sheet-table[data-visible-group="sale"] [data-sheet-group]:not([data-sheet-group~="sale"]),
.staff-ui .staff-sheet-table[data-visible-group="content"] [data-sheet-group]:not([data-sheet-group~="content"]) { display:none; }
