/* 出入库页面与管理表格共用控件、间距和状态颜色。所有样式限定在仓库视图。 */
:where(.storage-view, body.storage-page) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ui-on-surface);
  background: var(--ui-surface-container-low);
  font-size: 14px;
  margin: 0
}

:where(.storage-view, body.storage-page) * {
  box-sizing: border-box
}

:where(.storage-view, body.storage-page) [hidden] {
  display: none !important
}

:where(.storage-view, body.storage-page) header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 32px;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-section-divider)
}

:where(.storage-view, body.storage-page) header strong {
  font-size: 24px
}

:where(.storage-view, body.storage-page) header a {
  margin-left: auto
}

:where(.storage-view, body.storage-page) a {
  color: var(--ui-primary)
}

:where(.storage-view, body.storage-page) .storage-content {
  max-width: 1440px;
  margin: auto;
  padding: 24px 32px 48px
}

:where(.storage-view, body.storage-page) .heading {
  display: flex;
  justify-content: space-between;
  margin: 0 0 24px
}

:where(.storage-view, body.storage-page) h1 {
  font-size: 24px;
  margin: 0;
  line-height: 1.4
}

:where(.storage-view, body.storage-page) h2 {
  font-size: 18px;
  margin: 0;
  line-height: 1.4
}

:where(.storage-view, body.storage-page) h3 {
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.5
}

:where(.storage-view, body.storage-page) p {
  line-height: 1.7;
  margin: 10px 0;
  color: var(--ui-on-surface-variant)
}

:where(.storage-view, body.storage-page) .hint,
:where(.storage-view, body.storage-page) .table-note {
  font-size: 14px;
  color: var(--ui-on-surface-variant);
  line-height: 1.7
}

:where(.storage-view, body.storage-page) .table-note {
  margin: 12px 20px
}

:where(.storage-view, body.storage-page) button,
:where(.storage-view, body.storage-page) input,
:where(.storage-view, body.storage-page) select {
  font: inherit;
  color: inherit;
  border: 1px solid var(--ui-outline-variant);
  border-radius: 7px;
  background: var(--ui-surface);
  min-height: 40px;
  padding: 9px 15px
}

:where(.storage-view, body.storage-page) button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap
}

:where(.storage-view, body.storage-page) button:hover {
  background: var(--ui-surface-container-low)
}

:where(.storage-view, body.storage-page) button:disabled {
  opacity: .5;
  cursor: default
}

:where(.storage-view, body.storage-page) button:focus-visible,
:where(.storage-view, body.storage-page) summary:focus-visible {
  outline: 2px solid var(--ui-outline);
  outline-offset: 2px
}

:where(.storage-view, body.storage-page) input:not([type=checkbox]),
:where(.storage-view, body.storage-page) select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px
}

:where(.storage-view, body.storage-page) input:focus {
  outline: 2px solid var(--ui-primary-container-hover);
  outline-offset: 1px
}

:where(.storage-view, body.storage-page) label {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0
}

:where(.storage-view, body.storage-page) .primary,
:where(.storage-view, body.storage-page) form>button,
:where(.storage-view, body.storage-page) .actions button:last-child {
  background: var(--ui-primary);
  color: var(--ui-on-primary);
  border-color: var(--ui-primary)
}

:where(.storage-view, body.storage-page) .primary:hover,
:where(.storage-view, body.storage-page) form>button:hover,
:where(.storage-view, body.storage-page) .actions button:last-child:hover {
  background: var(--ui-primary-hover)
}

:where(.storage-view, body.storage-page) section {
  min-width: 0;
  margin: 0 0 20px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-outline-variant);
  border-radius: 10px;
  padding: 20px
}

:where(.storage-view, body.storage-page) .storage-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px
}

:where(.storage-view, body.storage-page) .workspace-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--ui-surface-container);
  border: 1px solid var(--ui-outline-variant);
  border-radius: 8px;
  min-width: 0
}

:where(.storage-view, body.storage-page) .workspace-tabs button {
  background: transparent;
  border: 0;
  min-height: 36px;
  padding: 8px 16px;
  color: var(--ui-on-surface-variant)
}

:where(.storage-view, body.storage-page) .workspace-tabs button.active {
  background: var(--ui-surface);
  color: var(--ui-primary);
  box-shadow: 0 1px 3px var(--ui-shadow-soft);
  font-weight: 600
}

:where(.storage-view, body.storage-page) .storage-page-tools,
:where(.storage-view, body.storage-page) .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

:where(.storage-view, body.storage-page) .storage-page-tools button {
  background: transparent;
  color: var(--ui-on-surface-variant);
  border-color: var(--ui-outline-variant);
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px
}

:where(.storage-view, body.storage-page) .storage-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px
}

:where(.storage-view, body.storage-page) .storage-card-heading .hint {
  margin: 6px 0 0
}

:where(.storage-view, body.storage-page) [data-storage-id=setup-panel] {
  background: transparent;
  border: 0;
  padding: 0
}

:where(.storage-view, body.storage-page) .setup-status {
  margin: 0 0 14px;
  font-size: 14px
}

:where(.storage-view, body.storage-page) .rule-status {
  font-size: 14px;
  margin: 12px 0;
  color: var(--ui-on-surface-variant)
}

:where(.storage-view, body.storage-page) .rule-risk {
  background: var(--ui-error-container);
  border: 1px solid var(--ui-error-outline);
  border-left: 3px solid var(--ui-error);
  border-radius: 7px;
  padding: 14px 16px;
  margin: 16px 0 0;
  color: var(--ui-error);
  font-size: 14px;
  line-height: 1.8
}

:where(.storage-view, body.storage-page) .rule-risk strong {
  font-size: 16px;
  display: block
}

:where(.storage-view, body.storage-page) .rule-risk p {
  color: var(--ui-error);
  font-size: 14px;
  margin: 6px 0 0
}

:where(.storage-view, body.storage-page) button.risk-button {
  background: var(--ui-error) !important;
  color: var(--ui-on-primary) !important;
  border-color: var(--ui-error) !important
}

:where(.storage-view, body.storage-page) button.risk-button:hover {
  background: var(--ui-error) !important
}

:where(.storage-view, body.storage-page) button.danger-outline {
  background: var(--ui-surface) !important;
  color: var(--ui-error) !important;
  border-color: var(--ui-error-outline) !important
}

:where(.storage-view, body.storage-page) .warehouse-list {
  background: var(--ui-surface);
  border: 1px solid var(--ui-outline-variant);
  border-radius: 10px;
  min-width: 0;
  padding: 20px 0 0
}

:where(.storage-view, body.storage-page) .warehouse-list .storage-card-heading {
  padding: 0 20px
}

:where(.storage-view, body.storage-page) [data-storage-id=area-summary] {
  min-width: 0
}

:where(.storage-view, body.storage-page) .table-scroll {
  overflow: auto;
  min-width: 0
}

:where(.storage-view, body.storage-page) table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
  white-space: normal;
  font-size: 14px
}

:where(.storage-view, body.storage-page) th {
  background: var(--ui-surface-container-low);
  color: var(--ui-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  padding: 16px;
  border-bottom: 1px solid var(--ui-section-divider);
  white-space: nowrap
}

:where(.storage-view, body.storage-page) td {
  padding: 15px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--ui-section-divider);
  line-height: 1.65;
  overflow-wrap: anywhere
}

:where(.storage-view, body.storage-page) tbody tr:last-child td {
  border-bottom: 0
}

:where(.storage-view, body.storage-page) .area-table th:nth-child(1) {
  width: 44%
}

:where(.storage-view, body.storage-page) .area-table th:nth-child(2) {
  width: 20%
}

:where(.storage-view, body.storage-page) .area-table th:nth-child(3) {
  width: 20%
}

:where(.storage-view, body.storage-page) .area-table th:last-child,
:where(.storage-view, body.storage-page) .area-table td:last-child {
  width: 16%;
  text-align: center
}

:where(.storage-view, body.storage-page) .area-table td:last-child {
  padding-top: 10px;
  padding-bottom: 10px
}

:where(.storage-view, body.storage-page) .area-table details {
  border: 0;
  margin: 0;
  padding: 0
}

:where(.storage-view, body.storage-page) .area-table .area-actions {
  display: inline-block;
  position: relative;
  text-align: left
}

:where(.storage-view, body.storage-page) .area-actions summary {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ui-outline-variant);
  border-radius: 7px;
  padding: 6px 12px;
  min-height: 34px;
  font-size: 14px;
  color: var(--ui-primary);
  list-style: none
}

:where(.storage-view, body.storage-page) .area-actions summary::-webkit-details-marker {
  display: none
}

:where(.storage-view, body.storage-page) .area-menu {
  position: fixed;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 160px;
  padding: 6px;
  margin: 0;
  background: var(--ui-surface);
  border: 1px solid var(--ui-outline-variant);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--ui-shadow-soft)
}

:where(.storage-view, body.storage-page) .area-menu button {
  justify-content: flex-start;
  min-height: 34px;
  font-size: 14px;
  padding: 7px 10px;
  border: 0;
  background: var(--ui-surface);
  color: var(--ui-on-surface)
}

:where(.storage-view, body.storage-page) .area-menu button:hover {
  background: var(--ui-surface-container-low)
}

:where(.storage-view, body.storage-page) .area-menu button.risk-button {
  background: var(--ui-error-container) !important;
  color: var(--ui-error) !important
}

:where(.storage-view, body.storage-page) .storage-status,
:where(.storage-view, body.storage-page) .attachment-state {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap
}

:where(.storage-view, body.storage-page) .status-success,
:where(.storage-view, body.storage-page) .attachment-complete {
  background: var(--ui-success-container);
  color: var(--ui-success)
}

:where(.storage-view, body.storage-page) .status-warning {
  background: var(--ui-warning-container);
  color: var(--ui-warning)
}

:where(.storage-view, body.storage-page) .status-in-use {
  background:var(--ui-action-surface);color:var(--ui-primary);
}

:where(.storage-view, body.storage-page) .attachment-incomplete {
  background: var(--ui-error-container-hover);
  color: var(--ui-error)
}

:where(.storage-view, body.storage-page) .storage-empty {
  text-align: center !important;
  color: var(--ui-on-surface-variant);
  padding: 48px 20px !important;
  font-weight: 400
}

:where(.storage-view, body.storage-page) .storage-pending,
:where(.storage-view, body.storage-page) [data-storage-id=pending-panel] {
  background: var(--ui-warning-container);
  border: 1px solid var(--ui-warning-outline);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0
}

:where(.storage-view, body.storage-page) .pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--ui-section-divider);
  line-height: 1.7
}

:where(.storage-view, body.storage-page) .pending-row button {
  font-size: 14px;
  min-height: 34px;
  padding: 6px 12px;
  flex-shrink: 0
}

:where(.storage-view, body.storage-page) .operation-steps {
  display: flex;
  gap: 16px;
  counter-reset: step;
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--ui-section-divider)
}

:where(.storage-view, body.storage-page) .operation-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 14px;
  color: var(--ui-on-surface-variant);
  line-height: 1.7
}

:where(.storage-view, body.storage-page) .operation-steps li:before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--ui-primary-container);
  border-radius: 50%;
  color: var(--ui-primary);
  font-size: 12px
}

:where(.storage-view, body.storage-page) .controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px
}

:where(.storage-view, body.storage-page) .controls label {
  width: 220px;
  margin: 0
}

:where(.storage-view, body.storage-page) [data-storage-id=count] {
  margin-left: auto;
  font-size: 14px;
  color: var(--ui-on-surface-variant);
  padding-bottom: 10px
}

:where(.storage-view, body.storage-page) [data-storage-id=scan-form],
:where(.storage-view, body.storage-page) [data-storage-id=checkout-scan-form] {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0
}

:where(.storage-view, body.storage-page) [data-storage-id=scan-form] label,
:where(.storage-view, body.storage-page) [data-storage-id=checkout-scan-form] label {
  flex: 1;
  min-width: 0;
  margin: 0
}

:where(.storage-view, body.storage-page) [data-storage-id=scan-form] button,
:where(.storage-view, body.storage-page) [data-storage-id=checkout-scan-form] button {
  flex-shrink: 0;
  height: 42px
}

:where(.storage-view, body.storage-page) [data-storage-id=intake-help],
:where(.storage-view, body.storage-page) [data-storage-id=checkout-help] {
  font-size: 14px;
  margin: 12px 0 0
}

:where(.storage-view, body.storage-page) [data-storage-id=inventory-panel] {
  padding: 0;
  overflow: hidden
}

:where(.storage-view, body.storage-page) .inventory td:last-child div div:not(.attachment-state) {
  font-size: 14px;
  color: var(--ui-on-surface-variant);
  line-height: 1.7;
  margin-top: 5px
}

:where(.storage-view, body.storage-page) .inventory .hint,
:where(.storage-view, body.storage-page) [data-storage-id=empty] {
  padding: 0 20px
}

:where(.storage-view, body.storage-page) [data-storage-id=empty] {
  margin: 40px 0;
  text-align: center
}

:where(.storage-view, body.storage-page) details {
  border-top: 1px solid var(--ui-section-divider);
  margin-top: 20px;
  padding-top: 16px
}

:where(.storage-view, body.storage-page) summary {
  cursor: pointer;
  color: var(--ui-primary);
  font-size: 14px;
  line-height: 1.7
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records-panel] {
  border: 0;
  border-top: 1px solid var(--ui-section-divider);
  border-radius: 0;
  margin: 20px 0 0;
  padding: 16px 0 0
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] {
  border: 0;
  margin: 0;
  padding: 0
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] .table-scroll {
  margin-top: 16px
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] table {
  min-width: 760px
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] th:nth-child(1) {
  width: 25%
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] th:nth-child(2) {
  width: 25%
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] th:nth-child(3) {
  width: 12%
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] th:nth-child(4) {
  width: 14%
}

:where(.storage-view, body.storage-page) [data-storage-id=checkout-records] th:nth-child(5) {
  width: 24%
}

:where(.storage-view, body.storage-page) [data-storage-id=message] {
  padding: 12px 16px;
  background: var(--ui-primary-container);
  border: 1px solid var(--ui-outline);
  border-radius: 7px;
  white-space: pre-wrap;
  font-size: 14px;
  margin: 0 0 16px
}

:where(.storage-view, body.storage-page) dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--ui-outline-variant);
  border-radius: 12px;
  padding: 24px;
  background: var(--ui-surface);
  color: var(--ui-on-surface);
  font-size: 14px;
  box-shadow: 0 18px 80px var(--ui-shadow-strong)
}

:where(.storage-view, body.storage-page) dialog::backdrop {
  background: var(--ui-scrim)
}

:where(.storage-view, body.storage-page) .dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ui-section-divider)
}

:where(.storage-view, body.storage-page) .dialog-heading h2 {
  font-size: 18px
}

:where(.storage-view, body.storage-page) .close {
  border: 0;
  background: transparent !important;
  color: var(--ui-on-surface-variant) !important;
  font-size: 24px;
  padding: 0;
  min-width: 36px;
  min-height: 36px
}

:where(.storage-view, body.storage-page) dialog .actions {
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ui-section-divider)
}

:where(.storage-view, body.storage-page) .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px
}

:where(.storage-view, body.storage-page) input[type=checkbox] {
  min-height: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  flex-shrink: 0;
  margin: 4px 0 0;
  accent-color: var(--ui-primary)
}

:where(.storage-view, body.storage-page) fieldset {
  border: 1px solid var(--ui-outline-variant);
  border-radius: 7px;
  min-width: 0;
  padding: 12px 16px;
  margin: 20px 0
}

:where(.storage-view, body.storage-page) legend {
  font-size: 14px;
  padding: 0 6px
}

:where(.storage-view, body.storage-page) .item-row {
  display: flex;
  gap: 10px;
  margin: 12px 0
}

:where(.storage-view, body.storage-page) .item-row input {
  margin: 0;
  min-width: 0
}

:where(.storage-view, body.storage-page) .error {
  color: var(--ui-error);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap
}

:where(.storage-view, body.storage-page) .error:empty {
  display: none
}

:where(.storage-view, body.storage-page) .checkout-identity p {
  display: flex;
  gap: 20px;
  margin: 6px 0;
  color: var(--ui-on-surface)
}

:where(.storage-view, body.storage-page) .checkout-identity span {
  color: var(--ui-on-surface-variant);
  min-width: 48px
}

:where(.storage-view, body.storage-page) .checkout-location {
  background: var(--ui-primary-container);
  border: 1px solid var(--ui-outline);
  border-radius: 7px;
  padding: 12px 16px;
  color: var(--ui-primary);
  line-height: 1.8
}

:where(.storage-view, body.storage-page) .move-record {
  border-top: 1px solid var(--ui-section-divider);
  padding: 14px 0;
  line-height: 1.7
}

:where(.storage-view, body.storage-page) .move-record p {
  margin: 6px 0
}

:where(.storage-view, body.storage-page) .placement-rules ol {
  padding-left: 22px;
  margin: 0
}

:where(.storage-view, body.storage-page) .placement-rules li {
  line-height: 1.9;
  margin: 14px 0;
  color: var(--ui-on-surface-variant)
}

:where(.storage-view, body.storage-page) [data-storage-id=login] {
  max-width: 420px;
  margin: 30px auto;
  padding: 28px
}

:where(.storage-view, body.storage-page) [data-storage-id=login] button {
  width: 100%;
  margin-top: 10px
}

:where(.storage-view, body.storage-page) .dropdown {
  position: relative;
  margin-top: 6px;
  width: 100%;
  text-align: left
}

:where(.storage-view, body.storage-page) .dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 40px;
  padding: 9px 12px;
  text-align: left;
  background: var(--ui-surface);
  line-height: 1.5
}

:where(.storage-view, body.storage-page) .dropdown-trigger>span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

:where(.storage-view, body.storage-page) .dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-outline-variant);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--ui-shadow-soft);
  z-index: 20
}

:where(.storage-view, body.storage-page) .dropdown-option {
  display: block;
  width: 100%;
  border: 0;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
  line-height: 1.5;
  border-radius: 4px;
  white-space: normal;
  overflow-wrap: anywhere
}

:where(.storage-view, body.storage-page) .dropdown-option[aria-selected=true] {
  background: var(--ui-primary-container);
  color: var(--ui-primary);
  font-weight: 600
}

:where(.storage-view, body.storage-page) .dropdown-option:hover {
  background: var(--ui-primary-container)
}

.storage-view .storage-content {
  max-width: none;
  padding: 0;
  margin: 0
}

.storage-view .storage-content>[data-storage-id=login] {
  display: none
}

/* 在库查询：自定义筛选和管理表格一致，排序不影响实物位置。 */
:where(.storage-view, body.storage-page) .inventory-search {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
  border-top: 1px solid var(--ui-section-divider);
  padding-top: 16px
}

:where(.storage-view, body.storage-page) .inventory-search label {
  margin: 0
}

:where(.storage-view, body.storage-page) .inventory-search-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 0
}

:where(.storage-view, body.storage-page) .inventory-sort {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-height: 24px;
  font-size: 14px;
  color: inherit;
  justify-content: flex-start;
  gap: 7px
}

:where(.storage-view, body.storage-page) .inventory-sort span {
  color: var(--ui-on-surface-variant);
  font-size: 12px
}

:where(.storage-view, body.storage-page) .inventory .inventory-rule-note {
  font-size: 12px;
  color: var(--ui-on-surface-variant);
  font-weight: 400
}

/* 列表边距与学生、档案袋列表保持一致。 */
:where(.storage-view, body.storage-page) th,
:where(.storage-view, body.storage-page) td {
  padding: 14px 20px;
  vertical-align: middle
}:where(.storage-view, body.storage-page) .status-danger {
  background: var(--ui-error-container-hover);
  color: var(--ui-error)
}/* 档案库查询：位置、档案状态、附件标签及文件说明分别展示。 */
:where(.storage-view, body.storage-page) .inventory table {
  min-width: 1340px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(1) {
  width: 170px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(2) {
  width: 125px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(3) {
  width: 205px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(4) {
  width: 110px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(5) {
  width: 115px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(6) {
  width: 85px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(7) {
  width: 100px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(8) {
  width: 110px
}

:where(.storage-view, body.storage-page) .inventory th:nth-child(9) {
  width: auto
}

:where(.storage-view, body.storage-page) .inventory .inventory-location-note {
  font-size: 12px;
  color: var(--ui-on-surface-variant);
  line-height: 1.7;
  margin-top: 5px
}

:where(.storage-view, body.storage-page) .intake-review-prompt {
  margin-top: 16px;
  padding: 16px;
  background: var(--ui-warning-container);
  border: 1px solid var(--ui-warning-outline);
  border-radius: 8px
}

.history-controls,
.history-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0
}

.history-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px
}

.history-controls input,
.history-controls select {
  min-width: 120px;
  max-width: 180px
}

.history-pagination span {
  margin-right: auto;
  color: var(--ui-on-surface-variant)
}

/* v16: separate warehouse identity from its physical location. */
:where(.storage-view, body.storage-page) textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--ui-outline-variant);
  border-radius: 7px;
  font: inherit;
  resize: vertical
}

:where(.storage-view, body.storage-page) .area-table th:nth-child(1) {
  width: 18%
}

:where(.storage-view, body.storage-page) .area-table th:nth-child(2) {
  width: 38%
}

:where(.storage-view, body.storage-page) .area-table td:nth-child(2) {
  color: var(--ui-on-surface-variant);
  overflow-wrap: anywhere
}

:where(.storage-view, body.storage-page) .dropdown-option,
:where(.storage-view, body.storage-page) .dropdown-trigger {
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
  min-height: 40px
}

.area-location-note {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ui-on-surface-variant);
  margin-top: 3px
}

/* v18: shared history filters, including admin and storage records. */
.history-controls.history-controls {
  align-items: flex-end !important;
  gap: 12px;
  max-width: 100%
}

.history-controls.history-controls>label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0 !important;
  align-self: end
}

.history-controls.history-controls>label>input,
.history-controls.history-controls>label>select {
  box-sizing: border-box;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  line-height: normal;
  border: 1px solid var(--ui-outline-variant);
  border-radius: 7px;
  font: inherit;
  background: var(--ui-surface);
  color: var(--ui-on-surface)
}

.history-controls.history-controls .history-filter-actions {
  display: flex;
  align-items: flex-end;
  align-self: end;
  gap: 12px;
  flex: none;
  min-width: 0;
  margin: 0
}

.history-controls.history-controls .history-filter-actions>button {
  box-sizing: border-box;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 16px;
  line-height: normal;
  white-space: nowrap;
  border-radius: 7px
}

.history-pagination[hidden] {
  display: none !important
}

/* v19: equal-height inventory dropdowns despite school location descriptions. */
:where(.storage-view, body.storage-page) .controls.inventory-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  align-items: stretch;
  gap: 12px
}

:where(.storage-view, body.storage-page) .controls.inventory-controls>label {
  display: grid;
  grid-template-rows: 20px minmax(56px, auto);
  gap: 8px;
  align-items: stretch;
  min-width: 0;
  margin: 0
}

:where(.storage-view, body.storage-page) .controls.inventory-controls .dropdown {
  display: flex;
  min-width: 0;
  align-items: stretch
}

:where(.storage-view, body.storage-page) .controls.inventory-controls .dropdown-trigger {
  width: 100%;
  min-height: 56px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 10px 12px
}

:where(.storage-view, body.storage-page) .controls.inventory-controls>[data-storage-id="count"] {
  align-self: end;
  padding-bottom: 16px
}

/* Archive intake reuses the preview's secondary tabs and sliding panels. */
.storage-content .intake-tabs-shell {
  box-sizing:border-box;padding:0;border:0;
  border-radius:0;background:transparent;margin:0;
}
.storage-content .intake-tabs {width:max-content;padding:0;margin-bottom:24px;border:0;background:transparent;}
#workspace .storage-content .intake-tabs .hj-tab,
.storage-content .intake-tabs .hj-tabs .hj-tab {font-size:14px;line-height:24px;height:44px;padding:9px 15px;font-weight:600;}
/* Segmented navigation, scoped to intake tabs. */
.storage-content .intake-tabs--pill .hj-tabs.hj-tabs--navigator {height:50px;padding:4px;gap:2px;border-radius:12px;}
:is(#workspace,body.storage-page) .storage-content .intake-tabs--pill .hj-tabs--navigator .hj-tab {
  height:40px;min-height:40px;padding:9px 15px;border-radius:12px;line-height:20px;
}
.storage-content .intake-tabs--pill .hj-tabs--navigator .hj-tabs-indicator {top:4px;bottom:4px;border-radius:12px;}
.storage-content .intake-tab-panels {overflow:hidden;padding:24px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface);}
.storage-content .archive-tab-panels > section {
  margin:0;padding:0;border:0;background:transparent;box-shadow:none;
}
.storage-content .checkout-tabs-shell [data-storage-id="checkout-records-panel"] {
  border:0;margin:0;padding:0;background:transparent;
}
.storage-content .checkout-tabs-shell [data-storage-id="checkout-records"] > summary {display:none;}
.storage-content .intake-tabs-shell .intake-tab-panels > section {
  margin:0;padding:0;border:0;background:transparent;box-shadow:none;
}
.storage-content .intake-tabs-shell #setup-panel,
.storage-content .intake-tabs-shell [data-storage-id="setup-panel"],
.storage-content .intake-tabs-shell #operation-panel,
.storage-content .intake-tabs-shell [data-storage-id="operation-panel"] {
  margin:0;padding:0;border:0;background:transparent;box-shadow:none;
}
.storage-content .intake-history-controls {display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:24px 0;}
.storage-content .intake-history-controls label {display:flex;flex-direction:column;gap:8px;margin:0;}
.storage-content .intake-history-controls input {height:40px;box-sizing:border-box;margin:0;}
.storage-content .intake-history-controls input[type="number"] {width:140px;}
.storage-content .intake-history-controls .dropdown-trigger {min-width:140px;height:40px;}
.storage-content .intake-history-table th,.storage-content .intake-history-table td {white-space:nowrap;}
.storage-content .intake-history-table th:last-child,.storage-content .intake-history-table td:last-child {text-align:center;}
.storage-content .intake-record-status {display:inline-block;padding:4px 8px;border-radius:4px;background:var(--ui-surface-container-low);color:var(--ui-muted);font-size:12px;font-weight:600;}
.storage-content .intake-record-status--stored {background:var(--ui-primary-container);color:var(--ui-primary);}

.storage-content .intake-history-controls .actions {margin:0;}
.storage-content .intake-history-controls .actions button {height:40px;box-sizing:border-box;}
.storage-content .intake-history-table {table-layout:auto;}

.storage-content .intake-history-controls .actions button[type="button"] {background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-outline-variant);}
.storage-content .intake-history-controls .actions button[type="button"]:hover {background:var(--ui-surface-container-low);}

/* Single-page physical workflows: numbered sections and one action per task. */
.storage-content .storage-workflow {margin:0;}
.storage-content .workflow-section {min-width:0;margin:0;padding:0;border:0;border-radius:0!important;background:transparent;box-shadow:none;}
.storage-content .workflow-section-heading {display:flex;gap:12px;align-items:flex-start;margin-bottom:20px;}
.storage-content .workflow-number {display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--ui-primary-container);color:var(--ui-primary);font-size:14px;font-weight:600;}
.storage-content .workflow-section-heading h2 {font-size:16px;line-height:24px;margin:1px 0 0;font-weight:600;}
.storage-content .workflow-section-heading .hint {margin:4px 0 0;font-size:13px;line-height:20px;}
.storage-content .workflow-query {padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--ui-border);}
.storage-content .intake-content-grid {position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px;row-gap:24px;}
.storage-content .intake-content-grid::before {content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--ui-border);pointer-events:none;}
.storage-content .intake-left-column,
.storage-content .intake-right-column {display:flex;flex-direction:column;gap:24px;min-width:0;}
.storage-content .intake-summary-section {padding:0;border:0;}
.storage-content .intake-location-section {padding-bottom:24px;border-bottom:1px solid var(--ui-border);}
.storage-content .intake-pending-host:has(.storage-pending[hidden]) {display:none;}
.storage-content .intake-pending-host .storage-pending {margin-bottom:0;}
.storage-content .intake-pending-host .storage-pending > div {grid-template-columns:1fr;}
.storage-content .intake-summary-section .workflow-identity {margin:0;}
.storage-content .intake-summary-placeholder {display:flex;align-items:center;min-height:136px;padding:16px;border-radius:8px;background:var(--ui-surface-container-low);}
.storage-content .intake-summary-section:has(.workflow-identity:not([hidden])) .intake-summary-placeholder {display:none;}
/* Compact intake: short labels and progressive disclosure for optional notes. */
.storage-content .intake-content-grid .workflow-section-heading {margin-bottom:16px;align-items:center;}
.storage-content .intake-content-grid .workflow-number {width:24px;height:24px;flex-basis:24px;background:transparent;color:var(--ui-muted);font-size:13px;}
.storage-content .intake-content-grid .workflow-location {margin:8px 0 0;padding:0;background:transparent;border-radius:0;color:var(--ui-muted);font-size:12px;font-weight:400;}
.storage-content .intake-content-grid .workflow-location:empty {display:none;}
.storage-content .intake-content-grid .material-list-heading {margin-bottom:8px;}
.storage-content .intake-content-grid .material-checks {gap:4px 16px;margin-bottom:8px;}
.storage-content .intake-content-grid label.material-check {min-height:36px;}
.storage-content .intake-extra-note {padding:0;margin:0;border:0;background:transparent;}
.storage-content .intake-extra-note summary {width:max-content;padding:8px 0;font-size:13px;color:var(--ui-muted);cursor:pointer;}
.storage-content .intake-extra-note .workflow-note {margin:0;}
.storage-content .intake-pending-host .storage-pending.storage-pending {margin-bottom:0;}
.storage-content .intake-pending-host .storage-pending h2 {margin-bottom:12px;font-size:14px;font-weight:500;}
.storage-content .intake-pending-host .pending-operation-card {padding:12px;border-radius:8px;}
.storage-content .workflow-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;}
.storage-content .workflow-columns > .workflow-section + .workflow-section {padding-left:24px;border-left:1px solid var(--ui-border);}
.storage-content .storage-workflow form {margin:0;}
.storage-content .storage-workflow fieldset {border:0;min-width:0;padding:0;margin:0;}
.storage-content .storage-workflow fieldset:disabled {opacity:.65;}
.storage-content .storage-workflow label {margin:0 0 16px;font-weight:500;}
.storage-content .storage-workflow .intake-scan-form {display:flex;align-items:flex-end;gap:12px;margin:0;max-width:640px;}
.storage-content .storage-workflow .intake-scan-form label {flex:1;min-width:0;margin:0;}
.storage-content .storage-workflow .intake-scan-form button {height:40px;flex-shrink:0;}
.storage-content .workflow-identity {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 24px;padding:16px;margin:20px 0 0;border:0;border-radius:8px;background:var(--ui-surface-container-low);}
.storage-content .workflow-identity .checkout-identity {display:contents;border:0;padding:0;margin:0;}
.storage-content .workflow-identity p {display:flex;flex-direction:column;gap:4px;margin:0;min-width:0;}
.storage-content .workflow-identity span {font-size:12px;color:var(--ui-muted);line-height:18px;}
.storage-content .workflow-identity strong {font-size:14px;font-weight:500;color:var(--ui-text);line-height:22px;overflow-wrap:anywhere;}
.storage-content .workflow-identity .workflow-placeholder {grid-column:1/-1;}
.storage-content .workflow-placeholder {margin:0;color:var(--ui-muted);font-size:13px;line-height:22px;}
.storage-content .material-list-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:13px;color:var(--ui-muted);}
.storage-content button.text-action {border:0;background:transparent;min-height:32px;padding:4px 8px;color:var(--ui-primary);font-size:13px;}
.storage-content .material-checks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin-bottom:16px;}
.storage-content .storage-workflow label.material-check {display:flex;align-items:center;gap:10px;margin:0;min-height:40px;font-weight:400;cursor:pointer;}
.storage-content .material-check input {width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--ui-primary);flex-shrink:0;}
.storage-content .material-check:has(input:checked) {color:var(--ui-danger);}
.storage-content .material-checks .workflow-placeholder {grid-column:1/-1;}
.storage-content .workflow-note textarea {width:100%;min-height:72px;margin-top:8px;padding:10px 12px;border:1px solid var(--ui-outline-variant);border-radius:8px;background:var(--ui-surface);font:inherit;color:var(--ui-text);resize:vertical;font-weight:400;}
.storage-content .workflow-location {margin:16px 0 0;padding:12px 16px;border-radius:8px;background:var(--ui-primary-container);color:var(--ui-primary);font-weight:500;}
.storage-content .workflow-guidance {font-size:13px;line-height:22px;margin:16px 0 0;}
.storage-content .workflow-footer {display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--ui-border);}
.storage-content .workflow-footer .hint {flex:1;margin:0;font-size:13px;}
.storage-content .workflow-footer > .primary:last-child {margin-left:auto;}
.storage-content .workflow-footer button {min-height:40px;font-size:14px;padding:9px 16px;}
.storage-content .storage-pending.storage-pending {box-shadow:none;margin:0 0 24px;padding:0;border:0;border-radius:0;background:transparent;}
.storage-content .storage-pending h2 {font-size:16px;}
.storage-content .storage-pending > .hint {font-size:13px;margin:6px 0 12px;}
.storage-content .storage-pending > div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.storage-content .pending-operation-card {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px;border:1px solid var(--ui-outline-variant);border-radius:12px;background:var(--ui-surface-container-low);}
.storage-content .pending-operation-title {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.storage-content .pending-operation-title strong {font-size:14px;font-weight:600;}
.storage-content .pending-operation-info {grid-column:1;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;line-height:20px;color:var(--ui-muted);}
.storage-content .pending-operation-card > button {grid-column:2;grid-row:1 / span 2;align-self:center;min-height:36px;padding:7px 12px;font-size:13px;color:var(--ui-primary);}
.storage-content .attachment-rules-form {max-width:640px;margin:24px 0 0;}
.storage-content .attachment-rules-form > label:first-child {max-width:180px;}
.storage-content .attachment-rules-form textarea {width:100%;padding:12px;border:1px solid var(--ui-outline-variant);border-radius:8px;background:var(--ui-surface);font:inherit;color:var(--ui-text);resize:vertical;line-height:24px;margin-top:8px;}
:where(.storage-view,body.storage-page) .intake-detail-dialog {width:min(680px,calc(100vw - 48px));}
:where(.storage-view,body.storage-page) .intake-detail-content {display:grid;gap:24px;}
:where(.storage-view,body.storage-page) .intake-detail-content section {padding:0;margin:0;border:0;background:transparent;box-shadow:none;}
:where(.storage-view,body.storage-page) .detail-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0;}
:where(.storage-view,body.storage-page) .detail-facts dt {font-size:12px;color:var(--ui-muted);margin-bottom:4px;}
:where(.storage-view,body.storage-page) .detail-facts dd {margin:0;font-size:14px;line-height:22px;overflow-wrap:anywhere;white-space:pre-wrap;}
:where(.storage-view,body.storage-page) .detail-materials {list-style:none;padding:0;margin:0;display:grid;gap:8px;}
:where(.storage-view,body.storage-page) .detail-materials li {display:flex;justify-content:space-between;gap:16px;padding:8px 12px;background:var(--ui-surface-container-low);border-radius:6px;}
@media(max-width:760px) {
  .storage-content .intake-content-grid {display:flex;flex-direction:column;gap:24px;}
  .storage-content .intake-content-grid::before {display:none;}
  .storage-content .intake-right-column {padding-top:24px;border-top:1px solid var(--ui-border);}
  .storage-content .workflow-columns {grid-template-columns:1fr;gap:24px;}
  .storage-content .workflow-columns > .workflow-section + .workflow-section {padding:24px 0 0;border-left:0;border-top:1px solid var(--ui-border);}
  .storage-content .workflow-identity {grid-template-columns:repeat(2,minmax(0,1fr));}
  .storage-content .storage-pending > div {grid-template-columns:1fr;}
  .storage-content .workflow-footer {flex-wrap:wrap;}
  .storage-content .workflow-footer .hint {flex-basis:100%;order:-1;}
}

/* Intake history shares the student and bag table surfaces and geometry. */
.storage-content .intake-tab-panels:has([data-storage-id="intake-history-tab"]:not([hidden])) {
  padding:0;border:0;background:transparent;overflow:visible;
}
.storage-content .intake-history-filter-card {padding:24px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);}
.storage-content .management-data-table {margin-top:24px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);overflow:hidden;--ui-table-header:var(--ui-action-surface);}
.storage-content .management-data-table table {table-layout:fixed;border-collapse:separate;border-spacing:0;}
.storage-content .management-data-table .student-sort {min-height:0;height:auto;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font-size:14px;font-weight:600;line-height:20px;}
.storage-content .management-data-table :is(th,td) {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.storage-content .management-data-table tbody td {height:62px;box-sizing:border-box;}

/* Query, checkout history and location tables use the same list cards. */
.storage-content .intake-tab-panels:has([data-storage-id="checkout-history-tab"]:not([hidden])) {padding:0;border:0;background:transparent;overflow:visible;}
.storage-content .checkout-history-filter-card {padding:24px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);}
.storage-content .checkout-tabs-shell [data-storage-id="checkout-records-panel"].management-data-table {margin-top:24px;padding:0;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);}
.storage-content [data-storage-id="inventory-panel"].management-data-table {padding:0;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);}
.storage-content .management-data-table th {height:56px;box-sizing:border-box;}
.storage-content .management-data-table :is(.hint,[data-storage-id="empty"]) {margin:16px;}
.storage-content .management-data-table [data-storage-id="checkout-records"] {margin:0;padding:0;border:0;background:transparent;}
.storage-content [data-storage-id="area-summary"].management-data-table {overflow:visible;}
.storage-content [data-storage-id="area-summary"] .table-scroll {border-radius:12px;}

/* Intake: three independent cards, matching the working order. */
.storage-content .intake-topbar {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px;}
.storage-content .intake-topbar .intake-tabs {margin:0;flex-shrink:0;}
.storage-content .intake-topbar .intake-pending-host {width:min(540px,50%);}
.storage-content .intake-topbar .storage-pending {padding:0;border:0;border-radius:12px;background:transparent;}
.storage-content .intake-topbar .pending-operation-card {padding:8px 0;background:transparent;}
.storage-content .intake-content-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.storage-content .intake-content-grid::before {display:none;}
.storage-content .intake-content-grid .intake-step-card {display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);}
.storage-content .intake-content-grid .workflow-section-heading {min-height:28px;margin:0 0 24px;gap:8px;}
.storage-content .intake-content-grid .workflow-section-heading h2 {font-size:17px;line-height:26px;}
.storage-content .intake-card-control {display:block;min-height:72px;margin:0 0 20px;}
.storage-content .intake-card-control select {width:100%;}
.storage-content .intake-content-grid .intake-scan-form {gap:8px;}
.storage-content .intake-content-grid .intake-scan-form button {padding:8px 12px;}
.storage-content .intake-content-grid .intake-scan-form input {width:100%;min-width:0;}
.storage-content .intake-content-grid .intake-info-card {display:flex;flex-direction:column;gap:20px;box-sizing:border-box;min-height:340px;padding:20px;margin:0;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-primary-container,#edf3fb);}
.storage-content .intake-info-card p {display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0;line-height:22px;}
.storage-content .intake-info-card p > span {flex-shrink:0;font-size:13px;color:var(--ui-muted);}
.storage-content .intake-info-card p > strong {font-size:14px;font-weight:500;overflow-wrap:anywhere;text-align:right;min-width:0;}
.storage-content .intake-summary-section:has(.workflow-identity:not([hidden])) .intake-summary-placeholder {display:none;}
.storage-content .intake-area-info .intake-position-row {margin-top:auto;}
.storage-content .intake-material-info:has([data-storage-id="intake-rule-content"][hidden]),
.storage-content .intake-material-info:has(#intake-rule-content[hidden]) {justify-content:center;}
.storage-content .intake-material-info .workflow-placeholder {justify-content:center;text-align:center;color:var(--ui-muted);}
.storage-content .intake-material-info .material-checks {grid-template-columns:1fr;gap:12px;margin-top:20px;}
.storage-content .intake-material-info label.material-check {display:flex;flex-direction:row-reverse;justify-content:space-between;}
.storage-content .intake-content-grid .intake-card-link {display:flex;align-items:center;justify-content:flex-end;align-self:flex-end;gap:8px;margin:24px 0 0;padding:4px 0;border:0;background:transparent;box-shadow:none;color:var(--ui-primary);font-size:14px;line-height:24px;}
.storage-content .intake-card-link .ui-icon {width:18px;height:18px;}
.storage-content .intake-card-link:hover:not(:disabled) {text-decoration:none;color:var(--ui-primary-hover);}
.storage-content .intake-content-grid fieldset {min-width:0;}
.storage-content .intake-step-card > .intake-card-link {margin-top:auto;padding-top:24px;}
@media(max-width:1000px){
 .storage-content .intake-content-grid {grid-template-columns:1fr;}
 .storage-content .intake-content-grid .intake-info-card {min-height:240px;}
 .storage-content .intake-topbar {flex-wrap:wrap;}
 .storage-content .intake-topbar .intake-pending-host {width:100%;}
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-step-card {border-radius:12px!important;}
.storage-content .intake-content-grid .intake-info-card p {flex-direction:row;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-card-link,
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-card-link:disabled {background:transparent!important;border:0;box-shadow:none;}
.storage-content .intake-content-grid .intake-scan-form label input {margin-bottom:0;}

/* A compact warning row for each unfinished intake. */
.storage-content .intake-topbar .storage-pending > h2 {display:none;}
.storage-content .intake-topbar .pending-operation-card.intake-pending-reminder {display:flex;align-items:center;box-sizing:border-box;height:50px;min-height:50px;gap:16px;padding:8px 16px;border:1px solid #ead49a;border-radius:8px;background:var(--ui-warning-container,#fff4d6);}
.storage-content .intake-pending-reminder .intake-pending-summary {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:24px;color:var(--ui-text);}
/* Intake groups use one outline per card; colour separates the inner content. */
.storage-content .intake-tabs-shell .intake-tab-panels:has(> :is(#intake-standard-tab,[data-storage-id="intake-standard-tab"]):not([hidden])) {
  padding:0;border:0;background:transparent;overflow:visible;
}
.storage-content .intake-content-grid .intake-info-card {border:0;}
.storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) .workflow-footer {
  margin-top:20px;padding:16px 20px;border:0;border-radius:12px;background:var(--ui-surface);
}

/* Consistent intake typography; identity labels and values share a left edge. */
.storage-content .intake-content-grid .workflow-section-heading h2 {
  font-size:16px;line-height:24px;font-weight:600;color:var(--ui-text);
}
.storage-content .intake-content-grid .workflow-number {font-size:13px;font-weight:600;color:var(--ui-muted);}
.storage-content .intake-content-grid .intake-card-control,
.storage-content .intake-content-grid .intake-scan-form label {
  font-size:14px;line-height:22px;font-weight:500;color:var(--ui-text);
}
.storage-content .intake-content-grid fieldset:disabled {opacity:1;}
.storage-content .intake-content-grid .intake-info-card p > span {
  font-size:14px;line-height:22px;font-weight:400;color:var(--ui-muted);
}
.storage-content .intake-content-grid .intake-info-card p > strong {
  font-size:14px;line-height:22px;font-weight:400;color:var(--ui-text);
}
.storage-content .intake-query .intake-info-card {align-items:stretch;}
.storage-content .intake-query .intake-info-card p {justify-content:flex-start;gap:16px;text-align:left;}
.storage-content .intake-query .intake-info-card p > span {flex:0 0 84px;text-align:left;}
.storage-content .intake-query .intake-info-card p > strong {flex:1;text-align:left;}
.storage-content .intake-material-info .material-check {font-size:14px;line-height:22px;color:var(--ui-text);}
.storage-content .intake-material-info .material-check:has(input:checked) {color:var(--ui-danger);}
.storage-content .intake-content-grid :is(.material-list-heading,.workflow-placeholder,.workflow-location,.intake-extra-note summary) {
  font-size:13px;line-height:20px;color:var(--ui-muted);
}

:is(#workspace,body.storage-page) .storage-content .intake-content-grid :is(.intake-query,.intake-location-section) .intake-info-card p {
  flex-direction:row;justify-content:flex-start;gap:16px;text-align:left;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid :is(.intake-query,.intake-location-section) .intake-info-card p > span {
  flex:0 0 84px;text-align:left;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid :is(.intake-query,.intake-location-section) .intake-info-card p > strong {
  flex:1;text-align:left;
}

.storage-content .intake-content-grid .workflow-section-heading .workflow-number {
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 28px;width:28px;height:28px;border-radius:50%;
  background:var(--ui-primary-container);color:var(--ui-primary);
  font-size:14px;line-height:20px;font-weight:600;
}
.storage-content .intake-content-grid .workflow-section-heading {gap:12px;}
.storage-content .intake-content-grid .workflow-section-heading .workflow-number {
  box-sizing:border-box;border:1px solid var(--ui-field-outline);
}

/* Compact intake cards while retaining room for seven identity fields. */
.storage-content .intake-content-grid .intake-info-card {min-height:280px;gap:14px;padding:16px 20px;}
.storage-content .intake-content-grid .workflow-section-heading {margin-bottom:20px;}
.storage-content .intake-content-grid .intake-card-control {margin-bottom:16px;}
.storage-content .intake-content-grid .intake-step-card > .intake-card-link {padding-top:20px;}

/* Completion belongs to the final intake card. */
.storage-content .intake-content-grid .intake-material-section > .intake-card-link {margin-top:0;}
.storage-content .intake-content-grid .intake-card-completion {margin-top:20px;padding-top:16px;border-top:1px solid var(--ui-border);}
.storage-content .intake-card-completion > .hint {margin:0 0 12px;font-size:13px;line-height:20px;color:var(--ui-muted);}
.storage-content .intake-card-completion > .error:empty {display:none;}
.storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) .intake-card-completion .workflow-footer {justify-content:flex-end;gap:12px;margin:0;padding:0;border:0;background:transparent;}
.storage-content .intake-card-completion .workflow-footer > .primary:last-child {margin-left:0;}
:is(#workspace,body.storage-page) .storage-content .intake-card-completion :is(#cancel-intake,[data-storage-id="cancel-intake"]) {background:transparent!important;border-color:transparent;color:var(--ui-muted);padding:8px 4px;}

.storage-content .intake-content-grid .intake-control-label {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
.storage-content .intake-content-grid .intake-card-control {min-height:40px;}
.storage-content .intake-content-grid .intake-scan-form input {margin-top:0;}

/* Intake dropdown menus follow the class selector's list treatment. */
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-options {
  box-sizing:border-box;padding:4px;border:1px solid var(--ui-field-outline);border-radius:8px;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-option {
  min-height:36px;padding:8px 12px;margin:0 0 4px;border:0;border-radius:4px;
  background:transparent;color:var(--ui-text);font-size:14px;font-weight:400;line-height:20px;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-option:last-child {margin-bottom:0;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-option:is([aria-selected="true"],:hover,:focus-visible) {
  background:var(--ui-option-highlight);box-shadow:none!important;outline:none;border:0;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-option:is(:hover,:focus-visible) {color:var(--ui-primary-hover);}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-option[aria-selected="true"]:is(:hover,:focus-visible) {background:var(--ui-option-selected-hover);}

/* A single search field for intake verification codes. */
.storage-content .intake-content-grid .intake-search-box {
  display:flex;align-items:center;gap:8px;box-sizing:border-box;height:40px;
  padding:0 4px 0 12px;border:1px solid var(--ui-field-outline);border-radius:8px;background:#fff;
}
.storage-content .intake-search-box .intake-search-icon {flex:0 0 18px;width:18px;height:18px;color:var(--ui-muted);}
.storage-content .intake-content-grid .intake-search-box label {flex:1;min-width:0;margin:0;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-search-box input {
  width:100%;height:36px;min-height:36px;margin:0;padding:6px 0;border:0;background:transparent;box-shadow:none!important;outline:none;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-search-box button {
  height:32px;min-height:32px;padding:4px 10px;border:0;background:transparent!important;color:var(--ui-primary);font-size:14px;line-height:24px;
}
.storage-content .intake-content-grid .intake-search-box:focus-within {border-color:var(--ui-primary);box-shadow:inset 0 0 0 1px var(--ui-primary);}

/* Match information-row rhythm and keep missing-file choices compact. */
.storage-content .intake-content-grid .intake-info-card {gap:14px;}
.storage-content .intake-content-grid .intake-material-info .material-list-heading {margin:0;font-size:13px;line-height:22px;}
.storage-content .intake-content-grid .intake-material-info .material-checks {gap:14px;margin:14px 0 0;}
.storage-content .intake-content-grid .intake-material-info label.material-check {
  flex-direction:row;justify-content:flex-start;gap:8px;min-height:22px;line-height:22px;margin:0;
}
.storage-content .intake-content-grid .intake-material-info .material-check input {
  width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;
}
.storage-content .intake-content-grid .intake-info-card {
  background:#F8FAFD;
}

/* Reuse the existing roster search component at the intake card's width. */
.storage-content .intake-content-grid .intake-existing-search {position:relative;flex:1;max-width:none;width:100%;height:40px;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-existing-search input {
  box-sizing:border-box;width:100%;height:40px;min-height:40px;margin:0;padding:8px 80px 8px 40px;
  border:1px solid var(--ui-field-outline);border-radius:8px;background:var(--ui-surface);font-size:14px;
}
.storage-content .intake-existing-search > .ui-icon {position:absolute;left:12px;top:50%;margin:0;transform:translateY(-50%);}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-existing-search .search-submit {
  position:absolute;right:4px;top:4px;box-sizing:border-box;width:64px;height:32px;min-height:32px;margin:0;padding:4px 12px;
}

/* Standalone reminder action, with explicit geometry and standard button tokens. */
:is(#workspace,body.storage-page) .storage-content .intake-topbar .intake-resume-button {
  --ui-button-outline:var(--ui-field-outline);
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  box-sizing:border-box;height:32px;min-height:32px;margin:0;padding:5px 12px;
  border:1px solid var(--ui-field-outline)!important;border-radius:6px;
  background:#fff!important;color:var(--ui-text);box-shadow:none;
  font-family:inherit;font-size:13px;font-weight:400;line-height:20px;white-space:nowrap;
}
:is(#workspace,body.storage-page) .storage-content .intake-topbar .intake-resume-button:hover:not(:disabled) {
  border-color:var(--ui-field-outline-hover)!important;color:var(--ui-primary);
}
.storage-content .intake-content-grid .intake-info-card {
  border:1px solid var(--ui-field-outline);
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid :is(.intake-existing-search input,.intake-existing-search .search-submit,.dropdown-trigger,.dropdown-trigger > span) {
  font-weight:400;
}
.storage-content .intake-content-grid .intake-existing-search input::placeholder {font-weight:400;}

:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-card-link,
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-card-link:is(:hover,:focus-visible) {
  text-decoration:none;
}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-card-link:hover:not(:disabled) {
  color:var(--ui-primary-hover);
}

/* Resume uses the same text-link treatment as the intake settings entries. */
:is(#workspace,body.storage-page) .storage-content .intake-topbar .intake-resume-button {
  --ui-button-outline:transparent;
  gap:8px;padding:4px 0;border:0!important;background:transparent!important;
  color:var(--ui-primary);text-decoration:none;
}
:is(#workspace,body.storage-page) .storage-content .intake-topbar .intake-resume-button:hover:not(:disabled) {
  border:0!important;color:var(--ui-primary-hover);text-decoration:none;
}
.storage-content .intake-resume-button .ui-icon {width:18px;height:18px;}

/* Settings links belong to each card heading; completion guidance precedes the rule. */
.storage-content .intake-content-grid .workflow-section-heading .intake-card-link {
  margin:0 0 0 auto;padding:0;align-self:center;flex-shrink:0;font-size:13px;
}
.storage-content .intake-content-grid .workflow-section-heading {flex-wrap:wrap;}
.storage-content .intake-content-grid .intake-card-completion {border-top:0;padding-top:0;}
.storage-content .intake-card-completion > .hint {margin-bottom:12px;}
.storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) .intake-card-completion .workflow-footer {
  border-top:1px solid var(--ui-border);border-radius:0;padding-top:16px;
}
:is(#workspace,body.storage-page) .storage-content .intake-card-completion :is(#cancel-intake,[data-storage-id="cancel-intake"]),
:is(#workspace,body.storage-page) .storage-content .intake-card-completion :is(#cancel-intake,[data-storage-id="cancel-intake"]):disabled {
  border:0!important;background:transparent!important;box-shadow:none!important;
}

/* Emphasise field names and attachment choices with normal body ink. */
:is(#workspace,body.storage-page) .storage-content .intake-content-grid :is(.intake-query,.intake-location-section) .intake-info-card p > span,
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-material-info :is(.material-list-heading,.material-check > span) {
  color:var(--ui-text);font-size:14px;font-weight:600;line-height:22px;
}
.storage-content .intake-content-grid .intake-material-info label.material-check {gap:12px;}

/* Each intake column reserves the same 40px control row. */
.storage-content .intake-content-grid .intake-card-control {
  box-sizing:border-box;min-height:40px;margin:0 0 16px;padding:0;
}
.storage-content .intake-content-grid .intake-card-control > .dropdown {margin:0;}
.storage-content .intake-content-grid .intake-card-control .dropdown-trigger {
  box-sizing:border-box;height:40px;min-height:40px;margin:0;
}
.storage-content .intake-content-grid .workflow-section-heading {min-height:32px;}
.storage-content .intake-content-grid {
  row-gap:16px;
}

/* Align the reminder with the third intake card. */
.storage-content .intake-topbar .intake-pending-host {width:calc((100% - 32px)/3);flex-shrink:0;}
.storage-content .intake-topbar .pending-operation-card.intake-pending-reminder {border:0;background:#FFFAF3;gap:12px;}
.storage-content .intake-pending-summary strong {font-weight:600;}
@media(max-width:1000px){
  .storage-content .intake-topbar .intake-pending-host {width:100%;}
}

/* Empty states share the same centred presentation. */
.storage-content .intake-content-grid .intake-summary-placeholder,
.storage-content .intake-content-grid .intake-area-info.intake-area-empty {align-items:center;justify-content:center;}
.storage-content .intake-query .intake-summary-placeholder p.workflow-placeholder,
.storage-content .intake-content-grid .intake-area-info > .workflow-placeholder {justify-content:center;text-align:center;font-size:13px;font-weight:400;color:var(--ui-muted);}
.storage-content .intake-area-info.intake-area-empty > p:not(.workflow-placeholder) {display:none;}
.storage-content .intake-content-grid .intake-step-card > .intake-card-link {align-self:flex-start;justify-content:flex-start;margin-top:20px;padding:0;}
.storage-content .intake-content-grid .intake-location-section > .intake-card-link {margin-top:auto;padding-top:20px;}

/* Intake cards share the dashboard's lower-right elevation. */
.storage-content .intake-content-grid .intake-step-card {
  box-shadow:5px 7px 14px rgba(28,52,83,.09)!important;
}

.storage-content .intake-topbar .pending-operation-card.intake-pending-reminder {border:1px solid var(--ui-warning-outline);gap:10px;}
.storage-content .intake-pending-reminder .intake-pending-summary {color:var(--ui-warning);}
.storage-content .intake-tabs--pill .hj-tabs.hj-tabs--navigator {
  box-shadow:5px 7px 14px rgba(28,52,83,.09)!important;
}
:where(.storage-view,body.storage-page) :is(#refresh-workspace,[data-storage-id="refresh-workspace"]) {
  box-shadow:5px 7px 14px rgba(28,52,83,.09)!important;
}

/* Pending message retains its warning colours without an outer border. */
.storage-content .intake-topbar .pending-operation-card.intake-pending-reminder {
  border:0;
}

/* Match dashboard notices, retaining the borderless intake presentation. */
.storage-content .intake-topbar .pending-operation-card.intake-pending-reminder {
  background:var(--ui-notice-surface);border:0;
  box-shadow:5px 7px 14px rgba(28,52,83,.09)!important;
}
.storage-content .intake-pending-reminder .intake-pending-summary {
  color:var(--ui-text);
}

.storage-content .intake-card-completion .workflow-footer .intake-card-link {
  align-self:center;justify-content:flex-start;margin:0 auto 0 0;padding:0;font-size:13px;min-height:32px;
}

/* Intake keeps its desktop arrangement rather than stacking at narrow widths. */
.storage-content .intake-content-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:1280px;
}
.storage-content .intake-topbar {min-width:1280px;flex-wrap:nowrap;}
.storage-content .intake-topbar .intake-pending-host {width:calc((100% - 32px)/3);}
.storage-content .intake-content-grid .intake-info-card {min-height:280px;}

.storage-content .intake-pending-reminder .intake-pending-summary {
  display:flex;align-items:center;gap:12px;
}
.storage-content .intake-pending-summary strong {flex-shrink:0;}
.storage-content .intake-pending-summary > span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

:is(#workspace,body.storage-page) .storage-content .intake-content-grid .dropdown-options.shared-option-menu {
  position:fixed;inset:auto;width:max-content;max-width:min(480px,calc(100vw - 32px));max-height:260px;
}
.storage-content .intake-content-grid .intake-step-card {
  padding:24px;
}

/* Attachment rules: editor and searchable catalog. */
.storage-content .rules-manager {display:grid;grid-template-columns:30% minmax(0,1fr);gap:16px;min-width:1180px;align-items:stretch;}
.storage-content .rules-manager .rules-editor {margin:0;max-width:none;padding:24px;display:flex;flex-direction:column;gap:16px;min-height:600px;}
.storage-content .rules-manager :is(.rules-editor,.rules-search-card,.rules-list-card) {background:#fff;border:1px solid var(--ui-field-outline,#D6E2F3);border-radius:12px;box-shadow:5px 7px 14px rgba(28,52,83,.09)!important;}
.storage-content .rules-editor h2 {margin:0;font-size:16px;line-height:24px;}
.storage-content .rules-editor .hint {font-size:13px;margin:4px 0 0;}
.storage-content .rule-item-list {display:flex;flex-direction:column;gap:12px;}
.storage-content .rule-item-row {display:flex;align-items:center;gap:8px;}
.storage-content .rule-item-row > span {width:20px;flex-shrink:0;text-align:center;color:var(--ui-muted);font-variant-numeric:tabular-nums;}
.storage-content .rule-item-row input {width:0;min-width:0;flex:1;margin:0;}
.storage-content .rule-item-row .rule-remove {padding:0;width:30px;height:32px;min-width:30px;font-size:22px;border:1px solid var(--ui-field-outline);background:var(--ui-surface);color:var(--ui-primary);}
.storage-content .rule-item-row .rule-remove:hover {color:var(--ui-primary-hover);background:var(--ui-action-surface);border-color:var(--ui-field-outline-hover);}
.storage-content .rule-add-item {width:100%;min-height:40px;border:1px dashed var(--ui-field-outline,#D6E2F3);background:#f8fafd;color:var(--ui-primary);}
.storage-content .rules-editor-bottom {margin-top:auto;display:flex;flex-direction:column;gap:12px;padding-top:24px;}
.storage-content .rules-editor-bottom label {display:flex;flex-direction:column;gap:8px;font-size:14px;}
.storage-content .rules-editor-bottom input {width:100%;box-sizing:border-box;margin:0;}
.storage-content .rules-editor-bottom label input {width:100%;}
.storage-content .rules-editor-actions {display:flex;justify-content:flex-end;gap:12px;}
.storage-content .rules-manager-main {display:flex;flex-direction:column;gap:20px;min-width:0;}
.storage-content .rules-search-card {padding:24px;display:flex;justify-content:flex-end;}
.storage-content .rules-search-card .filter-search-wrap {width:440px;max-width:100%;}
.storage-content .rules-list-card {flex:1;display:flex;flex-direction:column;overflow:hidden;}
.storage-content .rules-table {table-layout:fixed;width:100%;border-collapse:collapse;}
.storage-content .rules-table th {background:#edf3fb;height:56px;font-size:14px;font-weight:600;}
.storage-content .rules-table th:nth-child(1) {width:23%;text-align:left;}
.storage-content .rules-table th:nth-child(2) {width:100px;}
.storage-content .rules-table th:nth-child(4) {width:120px;}
.storage-content .rules-table th button {border:0;background:transparent;color:inherit;font:inherit;padding:0;}
.storage-content .rules-table :is(th,td) {padding:16px;text-align:center;}
.storage-content .rules-table td {border-bottom:1px solid #edf1f6;overflow-wrap:anywhere;font-size:14px;}
.storage-content .rules-table td:first-child {text-align:left;}
.storage-content .rules-table tbody tr:nth-child(even) {background:#fafbfd;}
.storage-content .rule-tags {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:center;}
.storage-content .rule-tags span {display:block;background:#edf3fb;color:#244d7a;border-radius:5px;padding:5px 8px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;}
.storage-content .rule-row-actions {display:flex;justify-content:center;gap:10px;white-space:nowrap;}
.storage-content .rule-row-actions button {padding:0;background:transparent;border:0;color:#244d7a;min-height:28px;}
.storage-content .rules-table .rules-empty {height:220px;text-align:center;color:var(--ui-muted);}
.storage-content .rules-pagination {margin-top:auto;padding:18px;display:flex;align-items:center;justify-content:center;gap:16px;}
.storage-content .rules-pagination button {border:0;background:transparent;width:28px;padding:0;font-size:22px;}
.storage-content .intake-tab-panels:has(#attachment-rules-tab:not([hidden])),
#workspace .storage-content .intake-tab-panels:has(#storage-attachment-rules-tab:not([hidden])) {padding:0;border:0;background:transparent;box-shadow:none!important;}
.storage-content .rules-search-card .filter-search-wrap {position:relative;display:block;height:40px;}
.storage-content .rules-search-card .filter-search-wrap > svg {position:absolute;left:12px;top:12px;width:16px;height:16px;fill:none;stroke:#6480a3;stroke-width:2;pointer-events:none;}
.storage-content .rules-search-card .filter-search-wrap > input {width:100%;height:40px;margin:0;padding:8px 80px 8px 38px;box-sizing:border-box;}
.storage-content .rules-search-card .search-submit {position:absolute;right:4px;top:4px;min-height:32px;height:32px;width:64px;padding:0;}
.storage-content .rules-editor-bottom > label {margin:0;}
#workspace .storage-content .rules-search-card .filter-search-wrap > input,
body.storage-page .storage-content .rules-search-card .filter-search-wrap > input {padding-left:38px!important;padding-right:80px!important;width:100%!important;}
.storage-content .rule-tags {display:flex;flex-wrap:wrap;justify-content:center;}
.storage-content .rule-tags span {max-width:calc((100% - 12px)/3);box-sizing:border-box;}

:is(#workspace,body.storage-page) .storage-content .intake-content-grid .workflow-section-heading h2 {font-size:16px;line-height:24px;}

/* Official Lucide assets; keep existing placeholder typography. */
.storage-content .intake-content-grid .workflow-placeholder.intake-empty-state:not([hidden]) {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-empty-icon {width:32px;height:32px;flex-shrink:0;color:#8b9bb4;}

.storage-content .rule-items-card {display:flex;flex-direction:column;gap:12px;height:334px;box-sizing:border-box;padding:16px;border:1px solid var(--ui-field-outline,#D6E2F3);border-radius:8px;background:#F8FAFD;}
.storage-content .rules-list-card > .management-data-table {margin:20px 16px 0;}
.storage-content .rules-list-card .generation-history-sort {font:inherit;line-height:24px;min-height:24px;}
.storage-content .rules-list-card .rule-tags {max-height:48px;overflow-y:auto;gap:4px;}
.storage-content .rules-list-card .rule-tags span {padding:1px 6px;line-height:18px;}
.storage-content .rules-list-card.management-data-table tbody td:has(.rule-tags) {padding-top:4px!important;padding-bottom:4px!important;}
:is(#workspace,body.storage-page) .storage-content .rules-list-card .data-table-text:has(.rule-tags) {display:block;max-height:48px;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible;}
.storage-content .rules-pagination {margin-top:0;font-size:14px;color:var(--ui-muted);}
.storage-content .rules-pagination button {background:transparent!important;}
.storage-content .rules-list-card .management-data-table tbody td {height:56px;}
:is(#workspace,body.storage-page) .storage-content .rules-list-card .generation-history-sort {display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0;border:0;background:transparent;box-shadow:none;min-height:24px;height:auto;color:var(--ui-text);font-size:14px;font-weight:600;}
:is(#workspace,body.storage-page) .storage-content .rules-list-card .management-data-table tbody td {height:56px!important;}
:is(#workspace,body.storage-page) .storage-content .rules-pagination button {background:transparent!important;border:0!important;box-shadow:none!important;}

/* Empty-state text must not inherit the field-label typography or row layout. */
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-info-card p.workflow-placeholder.intake-empty-state:not([hidden]) {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
  font-size:13px;font-weight:400;line-height:20px;color:var(--ui-muted);text-align:center;
}

.storage-content .intake-content-grid .intake-step-hint {margin:20px 0 12px;font-size:13px;line-height:20px;font-weight:400;color:var(--ui-muted);}

/* Intake history: centred attachment status and inset pagination divider. */
:is(#workspace,body.storage-page) .storage-content :is([data-storage-id="intake-history-table"],[data-storage-id="checkout-records-panel"]) [data-sort="attachment_status"] {justify-content:center;}
:is(#workspace,body.storage-page) .storage-content :is([data-storage-id="intake-history-table"],[data-storage-id="checkout-records-panel"]) tbody td:nth-last-child(3) > div {display:flex;justify-content:center;}
:is(#workspace,body.storage-page) .storage-content :is([data-storage-id="intake-history-table"],[data-storage-id="checkout-records-panel"]) > .history-pagination {
  justify-content:center;gap:12px;margin:0 16px;padding:16px 0;
  border-left:0;border-top:1px solid var(--ui-field-outline);flex-wrap:nowrap;
}
:is(#workspace,body.storage-page) .storage-content :is([data-storage-id="intake-history-table"],[data-storage-id="checkout-records-panel"]) > .history-pagination span {margin:0;}

/* Use the roster/bag management table directly, without a surrounding card. */
.storage-content .rules-manager-main {align-self:start;}
.storage-content .rules-list-card.management-data-table {margin:0;flex:initial;min-height:0;}
.storage-content .rules-list-card.management-data-table > .table-scroll {margin:0;border:0;border-radius:0;}
:is(#workspace,body.storage-page) .storage-content .rules-list-card.management-data-table tbody td {height:62px!important;}
.storage-content .rules-list-card.management-data-table > .rules-pagination {border-top:1px solid var(--ui-field-outline);margin:0 16px;}

.storage-content .rule-items-card .rule-item-row input {height:40px;box-sizing:border-box;}

/* Rules share the editor height; only rows scroll beneath the fixed header. */
.storage-content .rules-manager-main {align-self:stretch;min-height:0;}
.storage-content .rules-list-card.management-data-table {flex:1;height:100%;min-height:0;}
.storage-content .rules-list-card.management-data-table > .table-scroll {flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.storage-content .rules-list-card.management-data-table > .table-scroll > table {flex:none;}
.storage-content .rules-list-card.management-data-table .data-table-body-viewport {flex:1;min-height:0;height:0;max-height:none!important;scrollbar-gutter:stable;}
.storage-content .rules-list-card.management-data-table > .rules-pagination {flex:none;}

:is(#workspace,body.storage-page) .storage-content .rule-items-card .rule-add-item,
:is(#workspace,body.storage-page) .storage-content .rule-items-card .rule-add-item:disabled {
  background:transparent!important;border:0!important;box-shadow:none!important;
}
:is(#workspace,body.storage-page) .storage-content .rule-items-card .rule-add-item:disabled {color:var(--ui-muted)!important;opacity:.55;}

/* Keep roster action spacing and avoid an unused scrollbar gutter. */
.storage-content .rules-list-card.management-data-table .data-table-body-viewport {scrollbar-gutter:auto;background:var(--ui-surface);}
.storage-content .rules-list-card.management-data-table > .table-scroll {background:var(--ui-table-header);}

.storage-content .rules-list-card.management-data-table > .rules-pagination {border-left:0;gap:12px;}
.storage-content .rules-list-card.management-data-table > .rules-pagination span {margin:0;}

/* Let a full page of rows fill the body down to the pagination divider. */

.storage-content .rules-manager > .rules-editor,
.storage-content .rules-manager > .rules-manager-main {align-self:stretch;box-sizing:border-box;}
:is(#workspace,body.storage-page) .storage-content .rules-list-card > .rules-pagination {padding:16px 0;gap:12px;border-left:0;}

/* Eight fixed 56px rows determine the rules list height. */
.storage-content .rules-manager-main {align-self:start;}
.storage-content .rules-list-card.management-data-table {height:auto;flex:initial;}
.storage-content .rules-list-card.management-data-table > .table-scroll {flex:none;}
.storage-content .rules-list-card.management-data-table .data-table-body-viewport {flex:none;height:448px;max-height:448px!important;}
:is(#workspace,body.storage-page) .storage-content .rules-list-card.management-data-table tbody td {height:56px!important;padding-top:8px;padding-bottom:8px;}
/* Match the eight-row list height without shrinking the five-item input card. */
.storage-content .rules-manager .rules-editor {min-height:0;gap:10px;}
.storage-content .rules-editor .rule-items-card {flex-shrink:0;}
.storage-content .rules-editor .rules-editor-bottom {padding-top:0;gap:8px;}
.storage-content .rules-editor .rules-editor-bottom label {gap:4px;line-height:20px;}
.storage-content .rules-editor-bottom > :is(.hint,.error):empty {display:none;}
.storage-content .rules-editor-bottom > :is(.hint,.error):not(:empty) {
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;
  width:max-content;max-width:calc(100vw - 48px);box-sizing:border-box;
  margin:0;padding:12px 20px;border:1px solid var(--ui-field-outline);
  border-radius:12px;background:var(--ui-surface);box-shadow:5px 7px 14px rgba(28,52,83,.12);
  font-size:14px;line-height:20px;
}
.storage-content .rules-editor-bottom:has(> .error:not(:empty)) > .hint {display:none;}
.storage-content .rules-manager .rules-editor {gap:8px;}
/* Resume intake with a white outlined text-and-arrow button. */
:is(#workspace,body.storage-page) .storage-content .intake-topbar .intake-resume-button {
  --ui-button-outline:var(--ui-field-outline);
  width:auto;gap:8px;padding:5px 12px;border:1px solid var(--ui-field-outline)!important;
  border-radius:8px;background:var(--ui-surface)!important;color:var(--ui-primary);
}
:is(#workspace,body.storage-page) .storage-content .intake-topbar .intake-resume-button:hover:not(:disabled) {
  border:1px solid var(--ui-field-outline-hover)!important;background:var(--ui-surface)!important;color:var(--ui-primary-hover);
}
/* The reminder translates with the desktop page instead of shrinking. */
.storage-content .intake-topbar {min-width:1216px;}
.storage-content .intake-topbar .intake-pending-host {width:448px;min-width:448px;flex:0 0 448px;}
:is(#workspace,body.storage-page) .storage-content .rule-item-row .rule-remove {
  --ui-button-outline:var(--ui-field-outline);
  border:1px solid var(--ui-field-outline)!important;
}
:is(#workspace,body.storage-page) .storage-content .rule-item-row .rule-remove:hover:not(:disabled) {
  --ui-button-outline:var(--ui-field-outline-hover);
  border-color:var(--ui-field-outline-hover)!important;
}

/* Keep location/rule panels and their guidance aligned with the identity panel. */
.storage-content .intake-content-grid :is(.intake-area-info,.intake-material-info) {min-height:var(--intake-info-height,280px);}
/* Reserve the fourth location row so placement order occupies row five. */
.storage-content .intake-content-grid .intake-area-info .intake-position-row {margin-top:36px;}
/* Attachment rule editor and list share the page's lower-right elevation. */
:is(#workspace,body.storage-page) .storage-content .rules-manager :is(.rules-editor,.rules-list-card) {
  box-shadow:5px 7px 14px rgba(28,52,83,.09)!important;
}
/* The rules panel must let its cards' exterior shadows remain visible. */
.storage-content .intake-tab-panels:has(> [data-storage-id="attachment-rules-tab"]:not([hidden])) {overflow:visible;}

/* Intake history reuses the class option menu and existing filter search control. */
.storage-content .intake-history-controls {display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0;}
.storage-content .intake-history-filter-control {flex:0 0 140px;min-width:0;}
.storage-content .intake-history-filter-control .dropdown {margin:0;}
.storage-content .intake-history-filter-control .dropdown-trigger {width:140px;min-width:140px;height:40px;font-weight:400;}
.storage-content .intake-history-controls .filter-search-wrap {flex:0 0 312px;max-width:none;width:312px;height:40px;}
.storage-content .intake-history-controls .filter-search-wrap input {width:100%;height:40px;margin:0;padding:8px 80px 8px 40px;box-sizing:border-box;font-weight:400;}
.storage-content .intake-history-controls .dropdown-options.shared-option-menu {position:fixed;inset:auto;width:max-content;max-width:min(480px,calc(100vw - 32px));max-height:260px;}
.storage-content :is([data-storage-id="intake-history-error"], [data-storage-id="checkout-history-error"]):empty {display:none;}
/* Consistent rule editor spacing, preserving all card dimensions. */
.storage-content .rules-manager .rules-editor {gap:16px;}
.storage-content .rules-editor .rules-editor-bottom {gap:16px;padding-top:0;}
.storage-content .rules-editor .rules-editor-actions {align-items:center;gap:12px;}
.storage-content .rule-items-card .rule-item-row {gap:12px;}
.storage-content .rule-item-list:empty {display:none;}
.storage-content .rule-items-card .rule-item-row > span {display:flex;align-items:center;justify-content:center;width:32px;flex:0 0 32px;height:40px;box-sizing:border-box;border:1px solid var(--ui-field-outline);border-radius:8px;background:var(--ui-surface);}
:is(#workspace,body.storage-page) .storage-content .rule-item-row .rule-remove {width:32px;min-width:32px;height:40px;min-height:40px;}
/* Location management uses the same two-column editor and table layout. */
.storage-content .intake-tab-panels:has(> [data-storage-id="intake-locations-tab"]:not([hidden])) {padding:0;border:0;background:transparent;overflow:visible;box-shadow:none!important;}
.storage-content [data-storage-id="setup-panel"] {padding:0;margin:0;border:0;background:transparent;box-shadow:none!important;}
.storage-content .rule-items-card.location-fields {height:386px;}
.storage-content .location-fields label {display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px;line-height:20px;}
.storage-content .location-fields label:last-child {flex:1;min-height:0;}
.storage-content .location-fields :is(input,textarea) {width:100%;box-sizing:border-box;margin:0;}
.storage-content .location-fields textarea {flex:1;min-height:0;resize:none;padding:12px;font:inherit;border:1px solid var(--ui-field-outline);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);}
.storage-content .locations-manager .rules-editor {min-height:567px;}
:is(#workspace,body.storage-page) .storage-content .locations-manager .rules-list-card {overflow:hidden;}

/* Keep the outer editor height while naming the rule above its attachment card. */
.storage-content .rules-manager:not(.locations-manager) .rules-editor {gap:8px;}
.storage-content .rule-name-field {display:flex;flex-direction:column;gap:8px;margin:0;font-size:14px;line-height:20px;font-weight:400;}
.storage-content .rule-name-field input {width:100%;height:40px;box-sizing:border-box;margin:0;}
.storage-content .rules-manager:not(.locations-manager) .rule-items-card {height:326px;padding:12px;}
.storage-content .rule-items-card:not(.location-fields) > label {display:block;margin:0;}
.storage-content .rule-items-card > label input {width:100%;height:40px;box-sizing:border-box;margin:0;}

/* Archive management reuses the student filter controls and list layout. */
.storage-content [data-storage-id="archive-tabs"] {display:none;}
.storage-content .archive-filter-card {margin-bottom:24px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);box-shadow:5px 7px 14px rgba(28,52,83,.09);}
#workspace .storage-content .archive-filter-card > .toolbar {border:0;border-radius:12px 12px 0 0;box-shadow:none!important;}
#workspace .storage-content .archive-filter-card > .student-filters {border:0;border-top:1px solid var(--ui-section-divider);margin:0;border-radius:0 0 12px 12px;box-shadow:none!important;}
.storage-content [data-storage-id="inventory-panel"] .student-row-actions > div {margin:0;white-space:nowrap;}
.storage-content .archive-filter-card .student-filter {border-top:0;margin-top:0;padding-top:0;}
.storage-content [data-storage-id="inventory-panel"] > .hint {display:none;}

:is(#workspace,body.storage-page) .storage-content :is([data-storage-id="intake-history-table"],[data-storage-id="checkout-records-panel"]) [data-sort="storage_state"] {justify-content:center;}
:is(#workspace,body.storage-page) .storage-content :is([data-storage-id="intake-history-table"],[data-storage-id="checkout-records-panel"]) tbody td:nth-last-child(2) > div {display:flex;justify-content:center;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-material-info .material-check > span {font-weight:400;}

/* Checkout shares intake's three cards and control geometry. */
.storage-content .checkout-tabs-shell .intake-tab-panels:has(> :is(#checkout-standard-tab,[data-storage-id="checkout-standard-tab"]):not([hidden])) {padding:0;border:0;background:transparent;overflow:visible;}
.storage-content .checkout-content-grid .checkout-control-row {display:flex;align-items:center;min-height:40px;margin:0 0 16px;}
.storage-content .checkout-control-row form {width:100%;margin:0;}
.storage-content .checkout-location-heading {font-size:14px;color:var(--ui-muted);}
.storage-content .checkout-code-form {margin:20px 0 0;}
.storage-content .checkout-content-grid .intake-card-completion {margin-top:20px;}
.storage-content .checkout-content-grid .workflow-footer {justify-content:flex-end;gap:12px;margin:12px 0 0;padding:0;border:0;background:transparent;}
.storage-content .checkout-content-grid .intake-info-card p {justify-content:flex-start;}
.storage-content .checkout-content-grid .intake-info-card p>span {flex:0 0 84px;}
.storage-content .checkout-content-grid .intake-info-card p>strong {text-align:left;}

:is(#workspace,body.storage-page) .storage-content .checkout-content-grid form.checkout-code-form {margin:0 0 16px;}

.storage-content .checkout-content-grid .intake-info-card p>span {color:var(--ui-text);font-weight:600;}


/* Checkout warnings float above the page without changing card geometry. */
.storage-content :is(#checkout-error,[data-storage-id="checkout-error"]):not(:empty) {
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;
  box-sizing:border-box;width:max-content;max-width:calc(100vw - 48px);margin:0;padding:12px 20px;
  border:1px solid var(--ui-field-outline);border-radius:12px;background:var(--ui-surface);
  box-shadow:5px 7px 14px rgba(27,49,79,.12);font-size:14px;line-height:20px;
}
.storage-content :is(#checkout-error,[data-storage-id="checkout-error"]):empty {display:none;}

.storage-content .checkout-content-grid .intake-info-card p.checkout-attachment-row {align-items:center;justify-content:space-between;gap:16px;}
.storage-content .checkout-content-grid .intake-info-card p.checkout-attachment-row > .checkout-attachment-name {flex:1;min-width:0;font-size:14px;font-weight:400;overflow-wrap:anywhere;}
.storage-content .checkout-attachment-icon {width:18px;height:18px;flex:0 0 18px;}
.storage-content .checkout-attachment-icon.attachment-present {color:#18795c;}
.storage-content .checkout-attachment-icon.attachment-missing {color:var(--ui-error,#b42318);}

/* Values and attachment indicators share the midpoint of each information card. */
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p:not(.workflow-placeholder) {
  display:grid;grid-template-columns:50% minmax(0,1fr);align-items:center;justify-content:initial;gap:0;min-height:24px;
}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p:not(.workflow-placeholder)>span {
  min-width:0;flex:initial;text-align:left;font-weight:600;overflow-wrap:anywhere;padding-right:12px;
}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p>strong {text-align:left;}
.storage-content .checkout-attachment-icon {
  box-sizing:border-box;width:24px;height:24px;padding:4px;border-radius:6px;justify-self:start;
}
.storage-content .checkout-attachment-icon.attachment-present {background:#e4f4ed;}
.storage-content .checkout-attachment-icon.attachment-missing {background:#fdebea;}

/* Fixed checkout geometry matches the 547px intake cards. */
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid > .intake-step-card {box-sizing:border-box;height:547px;padding:24px;overflow:hidden;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .workflow-section-heading {height:32px;min-height:32px;flex:0 0 32px;margin:0 0 20px;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card {height:280px;min-height:280px;flex:0 0 280px;overflow:hidden;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-location-section .intake-info-card {height:280px;min-height:280px;flex-basis:280px;margin-top:56px;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .checkout-control-row {height:40px;min-height:40px;flex:0 0 40px;margin:0 0 16px;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid form.checkout-code-form {height:40px;min-height:40px;flex:0 0 40px;margin:0 0 16px;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p>strong,
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p>span {display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow-wrap:normal;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p>.checkout-attachment-name {font-weight:400;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p.checkout-location-note {display:block;min-height:0;margin-top:auto;font-size:13px;line-height:20px;color:var(--ui-muted);}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid :is(.intake-step-hint,.checkout-bottom-space,.intake-card-completion) {box-sizing:border-box;margin:20px 0 0;padding:16px 0 0;border-top:1px solid var(--ui-border);}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-card-completion {flex:1;display:flex;flex-direction:column;min-height:0;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-card-completion fieldset {padding:0;margin:0;border:0;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-card-completion .hint {margin:0;font-size:13px;line-height:20px;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-card-completion .workflow-footer {margin-top:auto;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p.checkout-attachment-row > span.checkout-attachment-name {font-weight:400;}

.storage-content .intake-topbar :is(#checkout-pending-panel,[data-storage-id="checkout-pending-panel"]) {margin:0;}
.storage-content .intake-topbar :is(#checkout-pending-panel,[data-storage-id="checkout-pending-panel"]) > .hint {display:none;}

/* Checked intake items mark missing files with a cross. */
:is(#workspace,body.storage-page) .storage-content .intake-material-info .material-check input[type="checkbox"] {
  appearance:none;-webkit-appearance:none;box-sizing:border-box;width:16px;height:16px;min-height:16px;
  border:1px solid var(--ui-field-outline-hover,#7c8796);border-radius:3px;background:var(--ui-surface);cursor:pointer;
}
:is(#workspace,body.storage-page) .storage-content .intake-material-info .material-check input[type="checkbox"]:checked {
  border-color:var(--ui-primary);background-color:var(--ui-surface);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23244d7a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m4 4 8 8m0-8-8 8'/%3E%3C/svg%3E");
  background-size:14px 14px;background-position:center;background-repeat:no-repeat;
}
:is(#workspace,body.storage-page) .storage-content .intake-material-info .material-check input[type="checkbox"]:is(:focus,:focus-visible,:active) {outline:none!important;box-shadow:none!important;}
:is(#workspace,body.storage-page) .storage-content .intake-material-info .material-check input[type="checkbox"]:disabled {cursor:default;opacity:.6;}

.storage-content .intake-topbar .pending-operation-card.intake-pending-reminder {width:100%;max-width:100%;min-width:0;overflow:hidden;}
.storage-content .intake-pending-summary > span {flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}

.storage-content .checkout-attachment-heading {margin:0;font-size:14px;line-height:22px;font-weight:600;color:var(--ui-text);}

:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-card-completion {border-top:0;padding-top:0;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-card-completion .workflow-footer {border-top:1px solid var(--ui-border);padding-top:16px;}

.storage-content .checkout-content-grid .checkout-location-guidance {margin:20px 0 0;font-size:13px;line-height:20px;color:var(--ui-muted);border:0;padding:0;}

:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-query > .intake-step-hint {border-top:0;padding-top:0;}

:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-area-info p>span {flex:0 0 112px;}
:is(#workspace,body.storage-page) .storage-content .intake-content-grid .intake-area-info p>span {flex:0 0 112px!important;white-space:nowrap;}

:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p.checkout-position-row {margin-top:22px;}

:is(#workspace,body.storage-page) .storage-content :is(#checkout-review,[data-storage-id="checkout-review"]) .workflow-placeholder {font-size:13px;line-height:20px;color:var(--ui-muted);font-weight:400;}
.storage-content .checkout-attachment-heading[hidden] {display:none;}

.storage-content .checkout-content-grid .intake-info-card {position:relative;}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p.workflow-placeholder.intake-empty-state {
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;margin:0;padding:20px;min-height:0;text-align:center;
}
:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .intake-info-card p.workflow-placeholder.intake-empty-state>span {
  flex:0 0 auto;padding:0;white-space:normal;font-size:13px;line-height:20px;font-weight:400;color:var(--ui-muted);
}
/* Equal-height checkout information cards share their empty-state centre. */

/* Intake identity and location values begin at the information card midpoint. */
:is(#workspace,body.storage-page) .storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) :is(.intake-query,.intake-location-section) .intake-info-card p:not(.workflow-placeholder) {
  display:grid;grid-template-columns:50% minmax(0,1fr);gap:0;align-items:center;justify-content:initial;
}
:is(#workspace,body.storage-page) .storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) :is(.intake-query,.intake-location-section) .intake-info-card p:not(.workflow-placeholder)>span {
  min-width:0;padding-right:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
:is(#workspace,body.storage-page) .storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) :is(.intake-query,.intake-location-section) .intake-info-card p>strong {
  display:block;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;
}
:is(#workspace,body.storage-page) .storage-content :is(#intake-workflow,[data-storage-id="intake-workflow"]) .intake-area-info.intake-area-empty p:not(.workflow-placeholder) {display:none!important;}

:is(#workspace,body.storage-page) .storage-content .checkout-content-grid .checkout-attachment-heading {font-size:14px;line-height:22px;}

:is(#workspace,body.storage-page) .storage-content :is(#inventory-panel,[data-storage-id="inventory-panel"]) [data-sort]:is([data-sort="storage_state"],[data-sort="attachment_status"]) {justify-content:center;}
:is(#workspace,body.storage-page) .storage-content :is(#inventory-panel,[data-storage-id="inventory-panel"]) tbody td:is(:nth-last-child(2),:nth-last-child(3)) {text-align:center;}
:is(#workspace,body.storage-page) .storage-content :is(#inventory-panel,[data-storage-id="inventory-panel"]) tbody td:is(:nth-last-child(2),:nth-last-child(3))>div {display:flex;justify-content:center;align-items:center;}

body :is(#pending-operation-dialog, [data-storage-id="pending-operation-dialog"]) {
  width: min(480px, calc(100vw - 48px));
  padding: 24px;
}
body :is(#pending-operation-dialog, [data-storage-id="pending-operation-dialog"]) .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.storage-content :is(.intake-history-filter-card, .checkout-history-filter-card) {
  box-shadow: 5px 7px 14px var(--ui-shadow-soft);
}
