.app-shell .orders-workspace { min-width: 0; background: #fff; font-size: 13px; margin-bottom: 28px; color: #26383e; }
.orders-workspace *, .catalog-presets * { box-sizing: border-box; letter-spacing: 0; }
.orders-workspace h2 { font-size: 22px; margin: 0; }
.orders-workspace { scroll-margin-top: 120px; }
.orders-workspace .ow-mobile-sort { display: none; }
.ow-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 18px 14px; }
.ow-heading p { color: #6c777b; font-size: 12px; margin: 6px 0 0; }
.ow-actions, .ow-pagination > div { display: flex; align-items: center; gap: 8px; }
.app-shell .ow-icon { display: inline-flex; flex: 0 0 38px; width: 38px; height: 38px; padding: 8px; align-items: center; justify-content: center; background: white; color: #4f6368; border: 1px solid #ccd6d9; border-radius: 4px; cursor: pointer; }
.ow-icon svg, .orders-workspace button svg { width: 17px; height: 17px; flex-shrink: 0; }
.ow-icon:hover { background: #edf4f1; }
.ow-icon:disabled { opacity: .4; cursor: default; }
.orders-workspace :focus-visible, .catalog-presets :focus-visible, .ow-tabs :focus-visible { outline: 2px solid #217967; outline-offset: 2px; }
.ow-tabs { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 0 18px; border-bottom: 1px solid #dce3e5; background: white; }
.ow-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 13px 0; font: inherit; font-size: 13px; color: #53656b; cursor: pointer; }
.ow-tabs button[aria-current="page"] { color: #a53e10; border-bottom-color: #c95017; font-weight: 650; }
.ow-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 18px 0; }
.ow-quick button { display: flex; align-items: center; gap: 10px; background: #f5f7f7; border: 1px solid transparent; padding: 8px 11px; border-radius: 4px; color: #4f6268; font: inherit; cursor: pointer; }
.ow-quick button[aria-pressed="true"] { background: #eaf3ee; border-color: #accabb; color: #245c46; }
.ow-quick b { font-variant-numeric: tabular-nums; }
.app-shell .ow-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 16px 18px; align-items: end; }
.ow-search { grid-row: 1; grid-column: 1; }
.ow-filters > button { grid-row: 1; }
.ow-filter-extra { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.ow-filter-extra summary { cursor: pointer; color: #596d72; font-size: 12px; }
.ow-advanced { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.ow-filters label, .catalog-presets label { display: grid; gap: 5px; min-width: 0; font-size: 12px; color: #526269; }
.app-shell .ow-filters input, .app-shell .ow-filters select, .catalog-presets input, .catalog-presets select { width: 100%; min-width: 0; min-height: 38px; border: 1px solid #cdd7d9; border-radius: 4px; font: inherit; font-size: 13px; padding: 8px 10px; background: white; color: #26383e; }
.ow-filters .button { display: flex; justify-content: center; align-items: center; gap: 8px; height: 38px; }
.ow-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: #f7f9f9; border-top: 1px solid #e0e6e7; }
.ow-results label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.orders-workspace input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: #287456; }
.ow-table-scroll { overflow: auto; max-height: 650px; scrollbar-gutter: stable; border-block: 1px solid #dce3e5; }
.ow-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 970px; font-size: 12px; }
.ow-table th, .ow-table td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3e9e9; line-height: 1.5; max-width: 260px; overflow-wrap: anywhere; }
.ow-table th { position: sticky; top: 0; z-index: 2; background: #edf2f3; color: #56676d; font-size: 11px; white-space: nowrap; font-weight: 600; }
.ow-table th button { display: flex; gap: 7px; align-items: center; padding: 0; color: inherit; border: 0; background: transparent; font: inherit; cursor: pointer; }
.ow-table th button svg { width: 12px; height: 12px; }
.ow-table tr:hover td { background: #f6faf8; }
.ow-table tr.is-selected td { background: #edf6f0; }
.ow-table small { display: block; color: #65777d; font-size: 11px; margin-top: 4px; }
.ow-table strong { font-weight: 600; }
.ow-order-link { display: block; border: 0; background: none; font: inherit; font-weight: 650; color: #216654; padding: 0; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ow-order-link:hover { text-decoration: underline; }
.ow-table .ow-number { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.ow-badge { display: inline-block; border-radius: 3px; padding: 2px 7px; background: #f0f3f4; color: #52676d; font-size: 11px; }
.ow-badge.is-paid { background: #e7f4e9; color: #29633d; }
.ow-badge.is-new { background: #e7f1fa; color: #336183; }
.ow-badge.is-warning, .ow-issue { color: #973d25; }
.ow-issue { display: flex; align-items: start; gap: 4px; font-size: 10px; margin-top: 6px; }
.ow-issue svg { width: 13px; height: 13px; flex-shrink: 0; }
.ow-empty { padding: 48px 16px; color: #63767d; text-align: center; }
.ow-error { padding: 12px 18px; background: #fff3ee; color: #963b20; }
.ow-pagination { display: flex; align-items: center; gap: 18px; justify-content: flex-end; padding: 14px 18px; font-size: 12px; }
.ow-pagination label { margin-right: auto; display: flex; align-items: center; gap: 8px; }
.ow-pagination select { width: 65px; padding: 8px; border: 1px solid #cdd7d9; border-radius: 4px; background: white; }
.ow-drawer { padding: 0; border: 1px solid #cad6d8; border-radius: 6px 0 0 6px; color: #26383e; width: min(740px, calc(100% - 20px)); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); max-width: none; margin: auto 12px auto auto; background: white; box-shadow: 0 12px 55px #102c3433; }
.ow-drawer::backdrop { background: #172b3a70; }
.ow-drawer > header { position: sticky; top: 0; z-index: 3; background: white; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #dde5e7; }
.ow-drawer > header h2 { font-size: 15px; }
.ow-drawer-body { padding: 18px; overflow-wrap: anywhere; }
.ow-drawer-body .site-request-detail { padding: 0; }
.ow-drawer-body .site-request-detail h2 { font-size: 21px; }
.ow-drawer-body .site-request-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ow-drawer-body .site-request-contact-grid article { min-width: 0; }
.catalog-presets { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e1e7e7; }
.catalog-presets > label { flex: 1 1 220px; }
.catalog-presets form { display: flex; align-items: end; gap: 8px; flex: 1 1 250px; }
.catalog-presets form label { flex: 1; }
.preset-message { flex-basis: 100%; font-size: 12px; color: #973d25; }
.preset-message:empty { display: none; }
.app-shell .site-request-shell.is-connections { display: block; }
.app-shell .site-request-shell.is-connections > section { border: 0; border-radius: 0; }
@media (max-width: 1100px) { .ow-advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .app-shell .catalog-workspace-page > .manager-page-head { flex-wrap: wrap; }
  .app-shell .catalog-workspace-page > .manager-page-head .actions { width: 100%; min-width: 0; justify-content: flex-end; }
  .ow-heading { padding: 16px 12px; } .ow-heading h2 { font-size: 19px; }
  .ow-tabs { padding: 0 12px; gap: 0 14px; } .ow-tabs button { font-size: 12px; }
  .ow-quick { padding: 12px 12px 0; gap: 6px; } .ow-quick button { padding: 8px; font-size: 12px; }
  .app-shell .ow-filters { padding: 14px 12px; gap: 8px; }
  .ow-advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ow-filters .button { padding-inline: 8px; } .ow-filters .button svg { display: none; }
  .ow-results { flex-wrap: wrap; padding: 10px 12px; }
  .ow-table-scroll { max-height: 520px; } .ow-pagination { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .orders-workspace .ow-mobile-sort { display: flex; flex-basis: 100%; justify-content: space-between; }
  .ow-mobile-sort select { max-width: 220px; min-height: 36px; font: inherit; padding: 6px; border: 1px solid #cdd7d9; background: white; border-radius: 4px; }
  .ow-table { display: block; min-width: 0; } .ow-table thead { display: none; } .ow-table tbody { display: block; }
  .ow-table tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 105px; column-gap: 10px; row-gap: 6px; padding: 14px 12px; border-bottom: 1px solid #dde5e7; }
  .ow-table td { display: block; max-width: none; min-width: 0; padding: 0; border: 0; }
  .ow-table td:nth-child(1) { grid-column: 1; grid-row: 1 / 6; }
  .ow-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ow-table td:nth-child(3) { grid-column: 2 / 4; grid-row: 5; color: #63777c; font-size: 11px; }
  .ow-table td:nth-child(3) small { display: inline; margin-left: 6px; }
  .ow-table td:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
  .ow-table td:nth-child(5) { grid-column: 2; grid-row: 3; }
  .ow-table td:nth-child(6) { grid-column: 3; grid-row: 1; text-align: right; }
  .ow-table td:nth-child(7) { grid-column: 3; grid-row: 3; text-align: right; }
  .ow-table td:nth-child(8) { grid-column: 2 / 4; grid-row: 4; }
  .ow-table td:nth-child(9), .ow-table td:nth-child(10) { grid-column: 2 / 4; }
  .ow-table tr.is-selected { background: #edf6f0; }
  .ow-table td[colspan] { grid-column: 1 / -1; grid-row: 1; }
  .ow-drawer { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .ow-drawer-body { padding: 12px; } .ow-drawer-body .site-request-contact-grid { grid-template-columns: 1fr; }
  .ow-drawer-body .section-row, .ow-drawer-body .site-request-order-list > div { flex-wrap: wrap; }
  .catalog-presets { padding: 12px; } .catalog-presets > label { flex-basis: calc(100% - 50px); }
  .catalog-presets form { order: 2; flex-basis: 100%; }
}
