/* Class, location, project and tag pickers (public/js/acct/dimensions.js), shared by every transaction form */
.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; align-items: start; }
.dims[hidden] { display: none; }
.dims .dim-f { margin-bottom: 12px; min-width: 0; }
.dims .dim-f > span { font-size: 12.5px; }
.dims .dim-tags { grid-column: 1 / -1; }
.dim-tagrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; }
.dim-chips { display: contents; }
.dim-chip { --chip: var(--accent); display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 10px; border-radius: 99px; background: var(--surface-2);
  border: 1px solid var(--border-strong); border-left: 3px solid var(--chip); color: var(--text); font-size: 13px; font-weight: 500; max-width: 100%; }
.dim-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dim-chip button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; }
.dim-chip button:hover { background: var(--surface-3); color: var(--text); }
.dims select.dim-add { width: auto; min-width: 140px; flex: 1 1 140px; max-width: 240px; height: 32px; }
.dims select.dim-add[hidden] { display: none; }
.dim-filter { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 600px) {
  .dims { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .dims select.dim-add { max-width: none; }
}
