/* Eight records per page; reserve room for filters, pagination and footer. */
.stock-page { --stock-row-height: clamp(37px, calc(12.5dvh - 57px), 60px); }
.site-layout > main.stock-page {
  background: radial-gradient(ellipse at 90% 0%, rgba(0, 169, 162, .045), transparent 48%), linear-gradient(180deg, #f7faff 0%, #fff 65%);
}
.stock-page > .stock-search-section { min-height: 0; }
.stock-page .stock-query { position: relative; padding: 16px; gap: 16px; border: 1px solid #dce6f2; border-radius: 10px; background: linear-gradient(110deg, #f4f8ff, #f5fbfc); box-shadow: 0 3px 12px rgba(25, 55, 90, .025); grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px) auto auto; }
.stock-page .stock-query::before { content: ""; position: absolute; top: -1px; left: 18px; width: 96px; height: 2px; background: linear-gradient(90deg, var(--blue), #31c7ce, transparent); }
.stock-page .stock-query-keyword { grid-column: auto; }
.stock-page .stock-query .button { min-width: 56px; height: 34px; margin-block: 3px; padding: 0 10px; font-size: 13px; font-weight: 500; }
.stock-page .stock-query .button:hover { transform: none; }
.stock-page .stock-query input[type="search"], .stock-page .stock-query select,
.stock-page .stock-query .styled-select-trigger { height: 40px; }
.stock-page .stock-query-reset { min-height: 40px; }
.stock-page .result-toolbar { min-height: 54px; gap: 16px; }
.stock-page .result-toolbar strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.stock-page .result-toolbar span { font-size: 14px; }
.stock-page .result-toolbar p { font-size: 13px; }
.stock-page .stock-table-shell { overflow-x: auto; border: 1px solid #dce6f2; border-radius: 10px; background: white; box-shadow: 0 6px 24px rgba(25, 55, 90, .045); }
.stock-page .stock-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; border-spacing: 0; }
.stock-page .stock-table thead { background: linear-gradient(105deg, #eaf2fc, #edf8fa); display: table-header-group; position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.stock-page .stock-table tbody { display: table-row-group; width: auto; }
.stock-page .stock-table tr { display: table-row; width: auto; padding: 0; border: 0; }
.stock-page .stock-table th { height: 46px; padding: 8px 16px; background: transparent; color: #43566c; border-bottom: 1px solid #dce5f0; font-size: 14px; font-weight: 600; vertical-align: middle; }
.stock-page .stock-table td { display: table-cell; width: auto; height: var(--stock-row-height); padding: 7px 16px; font-size: 14px; line-height: 1.5; vertical-align: middle; border-bottom: 1px solid #edf2f7; transition: background-color .15s ease; }
.stock-page .stock-table tbody tr:nth-child(even) { background: #f8fbfe; }
.stock-page .stock-table tbody tr:hover { background: #eef7ff; }
.stock-page .stock-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 #16a9ce; }
.stock-page .stock-table tbody tr:last-child td { border-bottom: 0; }
.stock-page .stock-table td:nth-child(5) { font-variant-numeric: tabular-nums; font-weight: 600; color: #365773; }
.stock-page .stock-table td::before { display: none; }
.stock-page .stock-table th:nth-child(1) { width: 23%; }
.stock-page .stock-table th:nth-child(2) { width: 15%; }
.stock-page .stock-table th:nth-child(3) { width: 13%; }
.stock-page .stock-table th:nth-child(4) { width: 29%; }
.stock-page .stock-table th:nth-child(5) { width: 10%; }
.stock-page .stock-table th:nth-child(6) { width: 10%; }
.stock-page .stock-cell-text,
.stock-page .stock-table .stock-model-cell .model-link { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.5; }
.stock-page .stock-table .table-inquiry { display: inline; width: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 14px; white-space: nowrap; }
.stock-page .solution-list-footer { min-height: 64px; padding: 20px 0 0; gap: 16px; align-items: center; flex-direction: row; flex-wrap: wrap; }
.stock-page .solution-list-footer > p { margin: 0; font-size: 14px; }
.stock-page .pagination { gap: 8px; flex-wrap: wrap; }
.stock-page .pagination a { width: auto; min-width: 38px; height: 38px; padding: 0 10px; flex-shrink: 0; border: 1px solid #dfe6ef; border-radius: 6px; background: white; color: #627187; font-size: 14px; line-height: 1; }
.stock-page .pagination a.is-active + a { border-left-color: #dfe6ef; }
.stock-page .pagination a:hover { border-color: #adcaf1; background: #edf5ff; color: var(--blue); }
.stock-page .pagination a.is-active { border-color: var(--blue); background: linear-gradient(135deg, #0962db, #087dbd); color: white; font-weight: 600; box-shadow: 0 3px 8px rgba(10, 92, 214, .15); }
.stock-page .pagination > span { display: inline-flex; min-width: 24px; height: 38px; align-items: center; justify-content: center; padding: 0 2px; color: #8b98a9; }
@media (min-width: 761px) and (max-height: 800px) {
  .site-layout > main.stock-page { padding-block: 12px; }
}
.stock-page .stock-empty { min-height: 220px; padding: 24px 16px; }
@media (max-width: 760px) {
  .stock-page .stock-query { grid-template-columns: minmax(0, 1fr) auto auto; padding: 8px; gap: 6px 8px; }
  .stock-page .stock-query-keyword { grid-column: 1; grid-row: 1; }
  .stock-page .stock-query .button { grid-column: 2; grid-row: 1; min-width: 48px; margin-block: 0; padding: 0 8px; }
  .stock-page .stock-query-reset { grid-column: 3; grid-row: 1; }
  .stock-page .filter-field label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .stock-page .stock-query input[type="search"], .stock-page .stock-query select,
  .stock-page .stock-query .styled-select-trigger, .stock-page .stock-query .button { height: 36px; min-height: 36px; }
  .stock-page .stock-query-reset { min-height: 36px; }
  .stock-page .result-toolbar { min-height: 38px; flex-direction: row; align-items: center; padding: 6px 0; gap: 8px; }
  .stock-page .result-toolbar p { max-width: 155px; font-size: 12px; }
  .stock-page .stock-table { min-width: 840px; }
  .stock-page .stock-table td { height: clamp(38px, calc(12.5dvh - 43px), 56px); padding-top: 5px; padding-bottom: 5px; }
  .stock-page .solution-list-footer { min-height: 54px; gap: 12px; }
  .stock-page .solution-list-footer > p { font-size: 13px; }
  .stock-page .pagination { gap: 6px; }
  .stock-page .pagination a { min-width: 34px; height: 34px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stock-page .stock-table td { transition: none; }
}
