/* Common record surfaces. The same fields and actions are available at each size. */
.qz-record-workspace {
  --record-ink: #23364b;
  --record-muted: #536477;
  --record-rule: #dce3eb;
  --record-link: #254f80;
  min-width: 0;
  max-width: 100%;
  color: var(--record-ink);
}
.record-filters .el-form {
  display: flex; align-items: end; flex-wrap: wrap; gap: 12px;
  margin: 0 0 20px;
}
#app .record-filters .el-form-item { display: block; margin: 0; min-width: 0; }
#app .record-filters .el-form-item__label {
  display: block; float: none; height: auto; width: auto;
  padding: 0 0 5px; color: var(--record-muted); font-size: 13px; line-height: 20px;
}
.record-filters .el-input { width: 240px; max-width: 100%; }
.record-filters .el-select { width: 150px; max-width: 100%; }
.record-filters :is(.el-input__wrapper,.el-select__wrapper) {
  min-height: 40px; box-sizing: border-box; background: white;
}
.record-filter-actions { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.record-filter-actions .el-button { min-height: 40px; margin: 0; gap: 4px; }
.record-results {
  overflow: hidden; background: white; border: 1px solid var(--record-rule); border-radius: 12px;
}
.record-tools {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; min-height: 60px; padding: 8px 18px; box-sizing: border-box;
}
.record-spacer { flex: 1; }
.record-tools .el-button { margin: 0; }
.record-count { color: var(--record-muted); font-size: 13px; white-space: nowrap; }
.record-status { display: flex; align-items: center; gap: 2px; }
.record-status button, .record-tool, .record-link, .record-mobile-open {
  appearance: none; background: transparent; border: 0; font: inherit; cursor: pointer;
}
.record-status button, .record-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 10px; min-height: 36px; border-radius: 6px; color: var(--record-muted);
  font-size: 14px; white-space: nowrap;
}
.record-status button[aria-pressed="true"] { background: #eaf0f7; color: #244c78; font-weight: 600; }
.record-status button:hover, .record-tool:hover { background: #f0f4f8; color: var(--record-link); }
.record-tool:disabled { opacity: .55; cursor: default; }
.qz-record-workspace button:focus-visible { outline: 2px solid var(--record-link); outline-offset: -2px; }
#app .record-results .el-table {
  --el-table-border-color: #e4e9f0; --el-table-text-color: var(--record-ink);
  --el-table-row-hover-bg-color: #f5f8fb; font-variant-numeric: tabular-nums;
}
#app .record-results .el-table th.el-table__cell { background: #f4f7fa!important; color: var(--record-muted); padding: 8px 0; }
#app .record-results .el-table td.el-table__cell { padding: 6px 0; height: 46px; }
#app .record-results .el-table .cell { padding-inline: 14px; }
#app .record-results .el-tag { font-size: 12px; line-height: 1.4; }
#app .record-results .el-tag--success { color: #19604a; background: #e9f4ee; }
#app .record-results .el-tag--danger { color: #962d3a; background: #faecee; }
#app .record-results .el-table .record-link {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding: 6px 0; color: var(--record-link); font-weight: 600; text-align: left;
}
.record-link:hover { text-decoration: underline; text-underline-offset: 3px; }
#app .record-results .el-table__empty-block { min-height: 130px; }
#app .record-results .el-table__empty-text { width: auto; }
.record-state {
  min-height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; padding: 18px; color: var(--record-muted); line-height: 1.55; text-align: center;
}
.record-state strong { color: var(--record-ink); font-weight: 550; }
.record-pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 15px 18px; }
#app .record-pager .el-pagination { margin-inline-start: auto; max-width: 100%; gap: 4px; }
.owner-record-details .el-drawer__body { overflow-wrap: anywhere; }
.owner-record-details .el-descriptions__body table { table-layout: fixed; width: 100%; }
.record-mobile { min-height: 100px; }
.record-mobile-list { list-style: none; margin: 0; padding: 0; }
.record-mobile-list li { border-top: 1px solid var(--record-rule); padding: 5px 15px 14px; }
.record-mobile-open {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 44px; padding: 0; color: var(--record-link); text-align: left;
}
.record-mobile-open strong { font-size: 16px; overflow-wrap: anywhere; }
.record-mobile-open span { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--record-muted); font-size: 13px; }
.record-mobile-open span svg { transform: rotate(-90deg); }
.record-mobile-list dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 5px 14px; margin: 0; font-size: 13px; }
.record-mobile-list dt { color: var(--record-muted); }
.record-mobile-list dd { margin: 0; overflow-wrap: anywhere; }
.record-mobile-actions { display: flex; justify-content: flex-end; gap: 10px; }
.record-mobile-actions .el-button { min-height: 44px; margin: 0; padding-inline: 8px; }
@media (max-width:760px) {
  .record-filters .el-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 10px; margin-bottom: 14px; }
  .record-filters .el-form-item:first-child { grid-column: 1/-1; }
  .record-filters :is(.el-input,.el-select) { width: 100%; }
  .record-filter-actions { flex-wrap: wrap; }
  .record-filters :is(.el-input__inner,.el-select__input) { font-size: 16px; }
  .record-tools { gap: 2px; padding: 6px 10px; min-height: 52px; }
  .record-tool { width: 44px; height: 44px; padding: 0; }
  .record-tool span { display: none; }
  .record-filter-actions .el-button, .record-status button { min-height: 44px; }
  .record-pager { padding: 10px; gap: 8px; }
  #app .record-pager .el-pagination { margin: 0; }
}
