.amain .alist { width: 100%; min-width: 0; }
.alist-head { flex-wrap: wrap; }
.alist-head .headtools { justify-content: flex-end; }
.alist-scroll { overflow: auto; overscroll-behavior-x: contain; }
.akte-table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.akte-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  border-bottom: 1px solid var(--stroke-2);
  text-align: left;
  white-space: nowrap;
}
.akte-table th button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}
.akte-table th[aria-sort] button { color: var(--text); }
.akte-col-label { display: block; padding: 8px 14px; color: var(--text-2); font-size: 13px; font-weight: 650; cursor: grab; }
.akte-table th button:hover, .akte-table th button:focus-visible { background: var(--surface-3); }
.akte-table th button:focus-visible { outline-offset: -2px; }
.akte-table th button span { color: var(--brand); }
.akte-table th button span:empty { display: none; }
.akte-table th.dragging { opacity: .55; }
.akte-table th.drop-target { box-shadow: inset 3px 0 var(--brand); }
.akte-table .num { text-align: right; }
.akte-table .num button { justify-content: flex-end; text-align: right; }
.akte-table td {
  height: 54px;
  max-width: 340px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--stroke-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.akte-table td[data-cell="objekt"] { max-width: 29ch; }
.akte-table tbody tr { cursor: pointer; }
.akte-table tbody tr:hover { background: var(--surface-2); }
.akte-table tbody tr:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.akte-table tbody tr:focus-within, .akte-table tbody tr.sel { background: var(--brand-soft); }
.akte-link { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.akte-link strong { overflow: hidden; text-overflow: ellipsis; }
.akte-link .rel-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.akte-link .av { width: 32px; height: 32px; font-size: 11px; }
.akte-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  font-size: 12px;
}
.akte-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--akte-status); }
.akte-open-amount { color: var(--warn); }
.akte-cols { padding: 8px; max-height: min(60vh, 360px); overflow: auto; }
.akte-cols label { display: flex; align-items: center; min-height: 32px; gap: 8px; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.akte-cols label:hover { background: var(--surface-3); }
.akte-cols button { margin: 6px 0 2px; }
.akte-back { margin-right: 8px; }
.adetail .nav4 { flex-wrap: wrap; }
@media (max-width: 600px) {
  .alist-head { align-items: center; }
  .alist-head .headtools { flex-wrap: nowrap; gap: 5px; }
  .alist-head .headtools .btn { padding-inline: 8px; min-height: 40px; }
  .akte-table td { padding-inline: 10px; height: 52px; max-width: 180px; }
  .akte-table th button { padding-inline: 10px; }
  .akte-table td[data-cell="objekt"] { max-width: 23ch; }
  .akte-link { gap: 6px; }
  .akte-link .av { width: 25px; height: 25px; }
  .akte-cols { right: auto; left: 0; min-width: 202px; }
  .adetail .nav4 .akte-back { min-height: 40px; }
}
@media (max-width: 360px) {
  .alist-head .headtools { margin-left: auto; }
  .akte-table td[data-cell="kunde"] { max-width: 145px; }
}
