.office-supplies-module {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.34);
  color: #172033;
  font-family: inherit;
}

.office-supplies-module,
.office-supplies-module *,
.office-supplies-module *::before,
.office-supplies-module *::after {
  box-sizing: border-box;
}

.office-supplies-module[hidden],
.office-supplies-dialog[hidden],
.office-supplies-empty[hidden] {
  display: none !important;
}

.office-supplies-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  width: min(760px, 100vw);
  max-width: 100vw;
  height: min(920px, 100dvh);
  overflow: hidden;
  border: 1px solid #d8e0eb;
  border-radius: 10px;
  background: #f3f5f7;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  transition: width 160ms ease;
}

.office-supplies-module.office-supplies-workbench {
  position: relative;
  inset: auto;
  z-index: auto;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: stretch;
  overflow: hidden;
  background: transparent;
}

.office-supplies-module.office-supplies-workbench > .office-supplies-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.office-supplies-module.office-supplies-purchase-plan-only,
.office-supplies-module.office-supplies-todo-dialog-only {
  background: transparent;
}

.office-supplies-module.office-supplies-purchase-plan-only .office-supplies-panel,
.office-supplies-module.office-supplies-todo-dialog-only .office-supplies-panel {
  display: contents;
}

.office-supplies-module.office-supplies-purchase-plan-only .office-supplies-header,
.office-supplies-module.office-supplies-purchase-plan-only .office-supplies-tabs,
.office-supplies-module.office-supplies-purchase-plan-only .office-supplies-content,
.office-supplies-module.office-supplies-todo-dialog-only .office-supplies-header,
.office-supplies-module.office-supplies-todo-dialog-only .office-supplies-tabs,
.office-supplies-module.office-supplies-todo-dialog-only .office-supplies-content {
  display: none;
}

.office-supplies-module.office-supplies-purchase-plan-only .office-supplies-dialog,
.office-supplies-module.office-supplies-purchase-plan-only .office-supplies-toast,
.office-supplies-module.office-supplies-todo-dialog-only .office-supplies-dialog,
.office-supplies-module.office-supplies-todo-dialog-only .office-supplies-toast {
  position: fixed;
}

.office-supplies-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 58px;
  padding: 0 8px;
  border-bottom: 1px solid #d9dfe8;
  background: #fff;
}

.office-supplies-header h2 {
  margin: 0;
  overflow: hidden;
  color: #101828;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-supplies-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #24324a;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.office-supplies-icon-button:hover {
  background: #eef2f6;
}

.office-supplies-icon-button:focus-visible,
.office-supplies-tab:focus-visible,
.office-supplies-button:focus-visible,
.office-supplies-summary-item:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 1px;
}

.office-supplies-tabs {
  display: flex;
  min-height: 48px;
  overflow-x: auto;
  border-bottom: 1px solid #d9dfe8;
  background: #fff;
  scrollbar-width: none;
}

.office-supplies-tabs::-webkit-scrollbar,
.office-supplies-content::-webkit-scrollbar,
.office-supplies-dialog-body::-webkit-scrollbar {
  display: none;
}

.office-supplies-tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 92px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.office-supplies-tab::after {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.office-supplies-tab.active {
  color: #067647;
}

.office-supplies-tab.active::after {
  background: #12b76a;
}

.office-supplies-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.office-supplies-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.office-supplies-view {
  min-width: 0;
  min-height: 100%;
  padding: 14px;
}

.office-supplies-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #dce3ec;
}

.office-supplies-summary.manager {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.office-supplies-summary-item {
  min-width: 0;
  padding: 13px 9px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.office-supplies-summary-item:hover {
  background: #f8fafc;
}

.office-supplies-summary-item.active {
  position: relative;
  z-index: 1;
  background: #f0fdf7;
  box-shadow: inset 0 -3px 0 #12b76a;
}

.office-supplies-summary-item strong {
  display: block;
  color: #101828;
  font-size: 20px;
  line-height: 1.2;
}

.office-supplies-summary-item span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-supplies-section {
  overflow: hidden;
  border-top: 1px solid #dde3eb;
  border-bottom: 1px solid #dde3eb;
  background: #fff;
}

.office-supplies-section + .office-supplies-section {
  margin-top: 12px;
}

.office-supplies-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #e7ebf0;
}

.office-supplies-section-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.office-supplies-section-head p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.office-supplies-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.office-supplies-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  margin: 0 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-row:last-child {
  border-bottom: 0;
}

.office-supplies-row-main {
  min-width: 0;
}

.office-supplies-row-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.office-supplies-row-title strong {
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-supplies-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.office-supplies-row-note {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.office-supplies-mode,
.office-supplies-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.office-supplies-mode.approval,
.office-supplies-status.pending-approval {
  background: #fff4e5;
  color: #b54708;
}

.office-supplies-mode.registration,
.office-supplies-status.pending-issue {
  background: #eaf7ef;
  color: #067647;
}

.office-supplies-status.rejected,
.office-supplies-status.withdrawn {
  background: #fef3f2;
  color: #b42318;
}

.office-supplies-status.issued {
  background: #eef4ff;
  color: #3538cd;
}

.office-supplies-status.low-stock {
  border: 1px solid #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.office-supplies-status.out-of-stock {
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.office-supplies-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 260px;
}

.office-supplies-button {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid #cfd7e3;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.office-supplies-button:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.office-supplies-button.primary {
  border-color: #16794f;
  background: #16794f;
  color: #fff;
}

.office-supplies-button.primary:hover {
  border-color: #126740;
  background: #126740;
}

.office-supplies-button.danger {
  border-color: #fda29b;
  color: #b42318;
}

.office-supplies-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.office-supplies-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.office-supplies-inventory-toolbar .office-supplies-button:first-child {
  order: 1;
}

.office-supplies-location {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid #b7e4cd;
  border-radius: 5px;
  background: #edf9f3;
  color: #067647;
  font-size: 12px;
  line-height: 1.35;
}

.office-supplies-location.compact {
  min-height: 24px;
  margin-bottom: 6px;
  padding: 3px 7px;
  font-size: 11px;
}

.office-supplies-location.pending {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.office-supplies-location-label {
  color: #47765f;
  font-size: 10px;
  font-weight: 600;
}

.office-supplies-location.pending .office-supplies-location-label {
  color: #b54708;
}

.office-supplies-location strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
}

.office-supplies-location small {
  color: #47765f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.office-supplies-notice {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid #b7e4cd;
  border-radius: 7px;
  background: #edf9f3;
}

.office-supplies-notice.warning {
  border-color: #fedf89;
  background: #fffaeb;
}

.office-supplies-notice.success {
  margin: 12px 0 0;
}

.office-supplies-notice > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.office-supplies-notice strong {
  color: #101828;
  font-size: 13px;
}

.office-supplies-notice span {
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.office-supplies-inventory-active {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #8ed8b2;
  border-radius: 8px;
  background: #f0fdf7;
}

.office-supplies-inventory-active-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.office-supplies-inventory-active-head > div {
  display: grid;
  gap: 3px;
}

.office-supplies-inventory-kicker {
  color: #067647;
  font-size: 11px;
  font-weight: 700;
}

.office-supplies-inventory-active-head strong {
  color: #101828;
  font-size: 16px;
}

.office-supplies-inventory-active-head > span {
  color: #667085;
  font-size: 11px;
  white-space: nowrap;
}

.office-supplies-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ccebdc;
}

.office-supplies-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #12b76a;
  transition: width 180ms ease;
}

.office-supplies-inventory-next {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  align-items: center;
  min-width: 0;
}

.office-supplies-inventory-next .office-supplies-location {
  margin: 0;
}

.office-supplies-inventory-next > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.office-supplies-inventory-active p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.office-supplies-inventory-active > .office-supplies-button {
  justify-self: end;
}

.office-supplies-history-section {
  margin-top: 12px;
}

.office-supplies-history-list {
  display: grid;
}

.office-supplies-history-entry {
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-history-entry:last-child {
  border-bottom: 0;
}

.office-supplies-history-entry > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.office-supplies-history-entry > summary::-webkit-details-marker,
.office-supplies-location-history summary::-webkit-details-marker {
  display: none;
}

.office-supplies-history-entry > summary > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #475467;
  font-size: 12px;
  text-align: right;
}

.office-supplies-history-entry > summary > span:first-child {
  text-align: left;
}

.office-supplies-history-entry summary strong {
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 13px;
}

.office-supplies-history-entry summary small {
  color: #667085;
  font-size: 11px;
}

.office-supplies-history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 14px;
  border-top: 1px solid #edf0f4;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
}

.office-supplies-inventory-adjustments {
  margin: 0;
  padding: 0 14px;
  list-style: none;
}

.office-supplies-inventory-adjustments li {
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-inventory-adjustments li:last-child {
  border-bottom: 0;
}

.office-supplies-inventory-adjustments li > div,
.office-supplies-inventory-complete-list li {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.office-supplies-inventory-adjustments strong,
.office-supplies-inventory-complete-list strong {
  color: #101828;
  font-size: 13px;
}

.office-supplies-inventory-adjustments span,
.office-supplies-inventory-complete-list span {
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.office-supplies-inventory-shortage {
  color: #b42318 !important;
  font-weight: 600;
}

.office-supplies-history-empty {
  margin: 0;
  padding: 14px;
  color: #667085;
  font-size: 12px;
}

.office-supplies-location-history {
  margin-top: 12px;
}

.office-supplies-location-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.office-supplies-location-history summary small {
  color: #667085;
  font-size: 11px;
  font-weight: 400;
}

.office-supplies-location-history ul {
  margin: 0;
  padding: 0 14px;
  border-top: 1px solid #e7ebf0;
  list-style: none;
}

.office-supplies-location-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-location-history li:last-child {
  border-bottom: 0;
}

.office-supplies-location-history li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.office-supplies-location-history li > div:last-child {
  text-align: right;
}

.office-supplies-location-history li strong {
  color: #101828;
  font-size: 13px;
}

.office-supplies-location-history li span {
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 11px;
}

.office-supplies-ledger-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid #dde3eb;
  border-bottom: 1px solid #dde3eb;
  background: #fff;
}

.office-supplies-ledger-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7ebf0;
  background: #fbfcfd;
}

.office-supplies-ledger-filters > input,
.office-supplies-ledger-date-range input {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #cfd7e3;
  border-radius: 5px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
}

.office-supplies-ledger-filters > input {
  grid-column: 1 / -1;
}

.office-supplies-ledger-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #667085;
  font-size: 12px;
}

.office-supplies-ledger-filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.office-supplies-ledger-filter-actions .office-supplies-button {
  min-height: 36px;
  padding-right: 11px;
  padding-left: 11px;
}

.office-supplies-ledger-list {
  min-height: 260px;
  max-height: min(500px, calc(100dvh - 330px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.office-supplies-ledger-list::-webkit-scrollbar {
  width: 6px;
}

.office-supplies-ledger-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cfd7e3;
}

.office-supplies-request-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 15px;
  padding: 13px 14px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #f8fafc;
}

.office-supplies-request-summary strong {
  color: #101828;
  font-size: 15px;
}

.office-supplies-request-summary span {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.office-supplies-dialog-secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4e7ec;
}

.office-supplies-dialog-secondary-action span {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.office-supplies-purchase-alert-note {
  margin: 0 0 10px;
}

.office-supplies-purchase-alert-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e7ebf0;
  list-style: none;
}

.office-supplies-purchase-alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-purchase-alert-row:last-child {
  border-bottom: 0;
}

.office-supplies-purchase-alert-row strong {
  color: #101828;
  font-size: 14px;
}

.office-supplies-issue-todo-note {
  margin: 0 0 10px;
}

.office-supplies-issue-todo-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e7ebf0;
  list-style: none;
}

.office-supplies-issue-todo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-issue-todo-row:last-child {
  border-bottom: 0;
}

.office-supplies-empty {
  padding: 60px 20px;
  color: #98a2b3;
  font-size: 13px;
  text-align: center;
}

.office-supplies-loading {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: #667085;
  font-size: 13px;
}

.office-supplies-loading::before {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border: 3px solid #d0d5dd;
  border-top-color: #12b76a;
  border-radius: 50%;
  content: "";
  animation: office-supplies-spin 0.75s linear infinite;
}

@keyframes office-supplies-spin {
  to {
    transform: rotate(360deg);
  }
}

.office-supplies-dialog {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.38);
}

.office-supplies-module.office-supplies-workbench .office-supplies-dialog {
  position: fixed;
  inset: 0;
  z-index: 4000;
  padding-left: calc(18px + var(--linxi-workbench-modal-left, 0px));
  padding-right: calc(18px + var(--linxi-workbench-modal-right, 0px));
}

.office-supplies-dialog-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(440px, 100%);
  max-height: min(680px, calc(100dvh - 36px));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.office-supplies-dialog-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #e4e7ec;
}

.office-supplies-dialog-head h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-supplies-dialog-body {
  overflow: auto;
  padding: 17px 18px;
  scrollbar-width: none;
}

.office-supplies-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.office-supplies-field:last-child {
  margin-bottom: 0;
}

.office-supplies-field label,
.office-supplies-field legend {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.office-supplies-field input,
.office-supplies-field select,
.office-supplies-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cfd7e3;
  border-radius: 5px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 14px;
}

.office-supplies-field-help {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.office-supplies-field textarea {
  min-height: 90px;
  resize: vertical;
}

.office-supplies-field input:focus,
.office-supplies-field select:focus,
.office-supplies-field textarea:focus,
.office-supplies-ledger-filters input:focus {
  border-color: #12b76a;
  outline: 3px solid rgba(18, 183, 106, 0.14);
}

.office-supplies-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #344054;
  font-size: 14px;
}

.office-supplies-inline-check input {
  width: 17px;
  min-height: 17px;
  margin: 0;
}

.office-supplies-location-fields {
  min-width: 0;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #f8fafc;
}

.office-supplies-location-fields legend {
  padding: 0 5px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.office-supplies-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.office-supplies-location-grid .office-supplies-field {
  min-width: 0;
  margin-bottom: 0;
}

.office-supplies-location-field-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.office-supplies-location-field-actions > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.office-supplies-location-field-actions .office-supplies-button {
  flex: 0 0 auto;
}

.office-supplies-location-current {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.office-supplies-location-current > span {
  color: #667085;
  font-size: 12px;
}

.office-supplies-location-current .office-supplies-location {
  margin: 0;
}

.office-supplies-inventory-start-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #b7e4cd;
  border-radius: 7px;
  background: #edf9f3;
}

.office-supplies-inventory-start-summary strong {
  color: #101828;
  font-size: 14px;
  line-height: 1.5;
}

.office-supplies-inventory-start-summary span {
  color: #475467;
  font-size: 12px;
  line-height: 1.6;
}

.office-supplies-inventory-check-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.office-supplies-inventory-check-head .office-supplies-location {
  margin: 0;
}

.office-supplies-inventory-check-head > div {
  display: grid;
  gap: 3px;
}

.office-supplies-inventory-check-head > div strong {
  color: #101828;
  font-size: 18px;
}

.office-supplies-inventory-check-head > div span {
  color: #667085;
  font-size: 12px;
}

.office-supplies-inventory-book {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #dce3ec;
}

.office-supplies-inventory-book > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px 7px;
  background: #fff;
  text-align: center;
}

.office-supplies-inventory-book span {
  color: #667085;
  font-size: 10px;
}

.office-supplies-inventory-book strong {
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 15px;
}

.office-supplies-inventory-difference {
  margin: -6px 0 14px;
  padding: 8px 10px;
  border-radius: 5px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.office-supplies-inventory-difference.matched {
  background: #edf9f3;
  color: #067647;
}

.office-supplies-inventory-difference.different {
  background: #fff4e5;
  color: #b54708;
}

.office-supplies-required-note {
  color: #b54708;
  font-size: 11px;
  font-weight: 400;
}

.office-supplies-inventory-complete-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #dce3ec;
}

.office-supplies-inventory-complete-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 7px;
  background: #f8fafc;
  text-align: center;
}

.office-supplies-inventory-complete-grid strong {
  color: #101828;
  font-size: 20px;
}

.office-supplies-inventory-complete-grid span {
  color: #667085;
  font-size: 10px;
}

.office-supplies-inventory-complete-title {
  margin: 17px 0 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.office-supplies-inventory-complete-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e4e7ec;
  list-style: none;
}

.office-supplies-inventory-complete-list li {
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.office-supplies-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #e4e7ec;
}

.office-supplies-dialog-card[data-linxi-modal-panel] {
  --office-supplies-dialog-text: #f6fffc;
  --office-supplies-dialog-muted: rgba(246, 255, 252, 0.84);
  --office-supplies-dialog-line: rgba(232, 255, 247, 0.26);
  --office-supplies-dialog-surface: rgba(255, 255, 255, 0.09);
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-dialog-body {
  color: var(--office-supplies-dialog-text) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-row-meta,
  .office-supplies-row-note,
  .office-supplies-field-help,
  .office-supplies-location-field-actions > span,
  .office-supplies-location-current > span,
  .office-supplies-inventory-start-summary span,
  .office-supplies-inventory-check-head > div span,
  .office-supplies-inventory-book span,
  .office-supplies-inventory-complete-grid span,
  .office-supplies-inventory-complete-list span,
  .office-supplies-request-summary span,
  .office-supplies-dialog-secondary-action span
) {
  color: var(--office-supplies-dialog-muted) !important;
  font-weight: 500;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-inline-check,
  .office-supplies-inventory-complete-title
) {
  color: var(--office-supplies-dialog-text) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-location {
  color: var(--office-supplies-dialog-text) !important;
  border-color: rgba(235, 255, 248, 0.4) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-location :is(
  .office-supplies-location-label,
  small
) {
  color: var(--office-supplies-dialog-muted) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-location.pending {
  color: #fff0c2 !important;
  border-color: rgba(255, 218, 135, 0.58) !important;
  background: rgba(146, 88, 0, 0.24) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-location.pending :is(
  .office-supplies-location-label,
  small,
  strong
) {
  color: #fff0c2 !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-request-summary,
  .office-supplies-inventory-start-summary,
  .office-supplies-location-fields,
  .office-supplies-notice
) {
  color: var(--office-supplies-dialog-text) !important;
  border-color: var(--office-supplies-dialog-line) !important;
  background: var(--office-supplies-dialog-surface) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-notice.warning {
  border-color: rgba(255, 218, 135, 0.5) !important;
  background: rgba(146, 88, 0, 0.2) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-inventory-book,
  .office-supplies-inventory-complete-grid
) {
  border-color: var(--office-supplies-dialog-line) !important;
  background: var(--office-supplies-dialog-line) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-inventory-book,
  .office-supplies-inventory-complete-grid
) > div {
  background: var(--office-supplies-dialog-surface) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-purchase-alert-list,
  .office-supplies-issue-todo-list,
  .office-supplies-inventory-complete-list,
  .office-supplies-dialog-actions,
  .office-supplies-dialog-secondary-action
) {
  border-color: var(--office-supplies-dialog-line) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-purchase-alert-row,
  .office-supplies-issue-todo-row,
  .office-supplies-inventory-complete-list li
) {
  border-bottom-color: var(--office-supplies-dialog-line) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-required-note {
  color: #ffe2a8 !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-inventory-shortage {
  color: #ffc8cf !important;
}

.office-supplies-toast {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  z-index: 6;
  display: none;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: auto;
  padding: 10px 14px;
  border-radius: 5px;
  background: rgba(16, 24, 40, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.office-supplies-toast.visible {
  display: block;
}

.office-supplies-toast.error {
  background: rgba(180, 35, 24, 0.94);
}

@media (max-width: 820px) {
  .office-supplies-button,
  .office-supplies-icon-button {
    min-height: 44px;
  }

  .office-supplies-icon-button {
    width: 44px;
    height: 44px;
  }

  .office-supplies-row-actions .office-supplies-button,
  .office-supplies-toolbar .office-supplies-button {
    min-height: 44px;
  }

  .office-supplies-field input,
  .office-supplies-field select,
  .office-supplies-field textarea {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .office-supplies-module {
    place-items: stretch;
    background: #f3f5f7;
  }

  .office-supplies-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .office-supplies-view {
    padding: 12px 0;
  }

  .office-supplies-summary {
    margin: 0 10px 12px;
  }

  .office-supplies-summary-item {
    padding: 11px 5px;
  }

  .office-supplies-summary-item strong {
    font-size: 17px;
  }

  .office-supplies-section + .office-supplies-section {
    margin-top: 10px;
  }

  .office-supplies-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-supplies-row-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .office-supplies-row-actions .office-supplies-button {
    flex: 1 1 118px;
  }

  .office-supplies-toolbar {
    padding: 0 10px;
  }

  .office-supplies-toolbar .office-supplies-button {
    flex: 1 1 132px;
  }

  .office-supplies-notice {
    align-items: stretch;
    flex-direction: column;
    margin-right: 10px;
    margin-left: 10px;
  }

  .office-supplies-notice .office-supplies-button {
    align-self: flex-start;
  }

  .office-supplies-inventory-active {
    margin-right: 10px;
    margin-left: 10px;
  }

  .office-supplies-inventory-active > .office-supplies-button {
    justify-self: stretch;
  }

  .office-supplies-ledger-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-supplies-ledger-filters > input {
    grid-column: auto;
  }

  .office-supplies-ledger-date-range {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .office-supplies-ledger-filter-actions {
    justify-content: flex-end;
  }

  .office-supplies-ledger-list {
    min-height: 230px;
    max-height: calc(100dvh - 430px);
  }

  .office-supplies-dialog-actions .office-supplies-button {
    min-height: 44px;
  }

  .office-supplies-dialog-secondary-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-supplies-purchase-alert-row,
  .office-supplies-issue-todo-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-supplies-purchase-alert-row .office-supplies-button,
  .office-supplies-issue-todo-row .office-supplies-button {
    justify-self: start;
    min-height: 44px;
  }

  .office-supplies-dialog {
    padding: 10px max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .office-supplies-dialog-card {
    max-height: calc(100dvh - 20px);
  }

  .office-supplies-location-field-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .office-supplies-location-field-actions .office-supplies-button {
    align-self: flex-start;
  }

  .office-supplies-location-history li {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-supplies-location-history li > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .office-supplies-location-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-supplies-history-entry > summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .office-supplies-history-entry > summary > span {
    text-align: left;
  }

  .office-supplies-inventory-active-head {
    flex-direction: column;
  }

  .office-supplies-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 2026-08-20：领用、审批、发放、盘库等状态弹窗统一高对比内容层。 */
.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-dialog-head,
.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-dialog-actions {
  color: var(--office-supplies-dialog-text, #f6fffc) !important;
  border-color: var(--office-supplies-dialog-line, rgba(232, 255, 247, 0.26)) !important;
  background: rgba(3, 70, 56, 0.16) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-purchase-alert-list,
  .office-supplies-issue-todo-list,
  .office-supplies-inventory-complete-list
) {
  background: transparent !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-purchase-alert-row,
  .office-supplies-issue-todo-row,
  .office-supplies-inventory-complete-list li
) {
  color: var(--office-supplies-dialog-text, #f6fffc) !important;
  border-color: var(--office-supplies-dialog-line, rgba(232, 255, 247, 0.26)) !important;
  background: transparent !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-inventory-difference {
  color: var(--office-supplies-dialog-muted, rgba(246, 255, 252, 0.84)) !important;
  border: 1px solid var(--office-supplies-dialog-line, rgba(232, 255, 247, 0.26)) !important;
  background: var(--office-supplies-dialog-surface, rgba(255, 255, 255, 0.09)) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-inventory-difference.matched {
  color: #c9ffe8 !important;
  border-color: rgba(183, 255, 224, 0.42) !important;
  background: rgba(8, 92, 71, 0.38) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] .office-supplies-inventory-difference.different {
  color: #ffe2a8 !important;
  border-color: rgba(255, 218, 167, 0.48) !important;
  background: rgba(103, 65, 20, 0.34) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-status.pending-approval,
  .office-supplies-status.low-stock
) {
  color: #ffe2a8 !important;
  border-color: rgba(255, 218, 167, 0.5) !important;
  background: rgba(103, 65, 20, 0.36) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-status.pending-issue,
  .office-supplies-status.issued
) {
  color: #c9ffe8 !important;
  border-color: rgba(183, 255, 224, 0.42) !important;
  background: rgba(8, 92, 71, 0.4) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-status.rejected,
  .office-supplies-status.withdrawn,
  .office-supplies-status.out-of-stock
) {
  color: #ffc8cf !important;
  border-color: rgba(255, 200, 208, 0.5) !important;
  background: rgba(151, 38, 53, 0.34) !important;
}

.office-supplies-dialog-card[data-linxi-modal-panel] :is(
  .office-supplies-empty,
  .office-supplies-loading
) {
  color: var(--office-supplies-dialog-muted, rgba(246, 255, 252, 0.84)) !important;
}
