.advanced-request-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 10px;
  color: #52615d;
  background: #f8fbf9;
  border: 1px solid #dce7e1;
  border-radius: 7px;
  font-size: 12px;
}

.advanced-request-hint > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.advanced-request-hint i {
  color: #c88a22;
}

.advanced-request-copy {
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px !important;
}

.advanced-request-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a611f;
  font-size: 11px;
  line-height: 1.35;
}

.advanced-request-copy small {
  max-width: 100%;
  overflow: hidden;
  color: #66736f;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advanced-request-hint button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: #fff;
  background: #167a68;
  border: 1px solid #167a68;
  border-radius: 6px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.advanced-request-hint button:hover {
  background: #0f5f58;
  transform: translateY(-1px);
}

.item-request-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 33, 29, .48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: itemRequestBackdrop .18s ease-out;
}

.item-request-dialog {
  width: min(760px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #14211d;
  background: #fff;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  box-shadow: 0 26px 74px rgba(20, 33, 29, .25);
  animation: itemRequestEnter .24s cubic-bezier(.22, .9, .3, 1);
}

.item-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e8efeb;
}

.item-request-kicker {
  margin-bottom: 3px;
  color: #167a68;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.item-request-head h2 {
  margin: 0;
  color: #14211d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.item-request-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #52615d;
  background: #fff;
  border: 1px solid #dce7e1;
  border-radius: 7px;
  cursor: pointer;
}

.item-request-close:hover {
  color: #a73d3d;
  border-color: #e6baba;
  background: #fff6f6;
}

.item-request-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 16px;
}

.item-request-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  background: #f0f4f2;
  border: 1px solid #dce7e1;
  border-radius: 7px;
}

.item-request-tab {
  min-height: 34px;
  padding: 0 12px;
  color: #66736f;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.item-request-tab.active {
  color: #0f5f58;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 33, 29, .1);
}

.item-request-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.item-request-intro {
  margin: 0 0 10px;
  color: #66736f;
  font-size: 12px;
}

.item-request-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 10px;
  color: #74521b;
  background: #fffaf0;
  border: 1px solid #ead8b5;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.item-request-notice > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #c88a22;
}

.item-request-notice div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.item-request-notice strong {
  font-size: 11px;
}

.item-request-notice span {
  color: #8a6d38;
}

.item-request-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.item-request-search label {
  position: relative;
  min-width: 0;
}

.item-request-search label i {
  position: absolute;
  left: 12px;
  top: 50%;
  color: #8a9893;
  transform: translateY(-50%);
}

.item-request-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  color: #14211d;
  background: #fff;
  border: 1px solid #ccd9d3;
  border-radius: 7px;
  font: inherit;
  outline: none;
}

.item-request-search input:focus {
  border-color: #167a68;
  box-shadow: 0 0 0 3px rgba(22, 122, 104, .12);
}

.item-request-search > button {
  min-width: 84px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  background: #167a68;
  border: 1px solid #167a68;
  border-radius: 7px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.item-request-search > button:hover {
  background: #0f5f58;
}

.item-request-filter {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: 8px;
  padding: 0 9px;
  color: #52615d;
  border: 1px solid #dce7e1;
  border-radius: 6px;
  background: #f8fbf9;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.item-request-filter input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #167a68;
}

.item-request-filter.is-checked {
  color: #0f5f58;
  border-color: #9bcdbd;
  background: #edf8f4;
}

.item-request-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px 7px;
  color: #7b8984;
  font-size: 11px;
}

.item-request-results {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #edf2ef;
  border-bottom: 1px solid #edf2ef;
  scrollbar-width: thin;
}

.item-request-row {
  min-height: 67px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid #edf2ef;
}

.item-request-row:last-child {
  border-bottom: 0;
}

.item-request-row:hover {
  background: #fbfdfc;
}

.item-request-copy {
  min-width: 0;
}

.item-request-name-line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.item-request-name {
  min-width: 0;
  overflow: hidden;
  color: #14211d;
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-request-id {
  flex: 0 0 auto;
  color: #9aa8a3;
  font: 10px ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.item-request-description {
  margin-top: 4px;
  overflow: hidden;
  color: #66736f;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-request-action {
  min-width: 86px;
  min-height: 34px;
  padding: 0 10px;
  color: #fff;
  background: #167a68;
  border: 1px solid #167a68;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.item-request-action:hover:not(:disabled) {
  background: #0f5f58;
  transform: translateY(-1px);
}

.item-request-action.is-retry {
  color: #9a6b20;
  background: #fffaf0;
  border-color: #ead5ad;
}

.item-request-action.is-status {
  cursor: default;
}

.item-request-action.is-pending {
  color: #8a611f;
  background: #fff8e9;
  border-color: #ead6ad;
}

.item-request-action.is-approved,
.item-request-action.is-added {
  color: #0f6a4c;
  background: #edf9f4;
  border-color: #bfe4d3;
}

.item-request-action:disabled {
  opacity: 1;
}

.item-request-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #7b8984;
  text-align: center;
  font-size: 12px;
}

.item-request-state i {
  color: #aab8b2;
  font-size: 25px;
}

.item-request-state .fa-spinner {
  color: #167a68;
}

.item-request-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}

.item-request-pager button {
  min-width: 104px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #52615d;
  background: #fff;
  border: 1px solid #dce7e1;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.item-request-pager button:hover:not(:disabled) {
  color: #167a68;
  border-color: #167a68;
}

.item-request-pager button:disabled {
  color: #adb8b4;
  background: #f5f7f6;
  cursor: default;
}

.item-request-history-head {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px 8px;
  border-bottom: 1px solid #edf2ef;
}

.item-request-history-head > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.item-request-history-head strong {
  color: #14211d;
  font-size: 13px;
}

.item-request-history-head span {
  color: #7b8984;
  font-size: 10px;
}

.item-request-refresh {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #52615d;
  background: #fff;
  border: 1px solid #dce7e1;
  border-radius: 7px;
  cursor: pointer;
}

.item-request-refresh:hover {
  color: #167a68;
  border-color: #167a68;
}

.item-request-refresh:disabled {
  color: #aab5b1;
  cursor: default;
}

.item-request-refresh.is-loading i {
  animation: itemRequestSpin .8s linear infinite;
}

.item-request-history-results {
  min-height: 340px;
}

.item-request-history-row {
  padding: 11px 4px;
  border-bottom: 1px solid #edf2ef;
}

.item-request-history-row:last-child {
  border-bottom: 0;
}

.item-request-history-main,
.item-request-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-request-history-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.item-request-history-name {
  min-width: 0;
  overflow: hidden;
  color: #14211d;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-request-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
}

.item-request-status.pending {
  color: #8a611f;
  background: #fff8e9;
}

.item-request-status.approved,
.item-request-status.added {
  color: #0f6a4c;
  background: #edf9f4;
}

.item-request-status.rejected {
  color: #a33c3c;
  background: #fff1f1;
}

.item-request-history-reason {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  overflow: hidden;
  color: #52615d;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-request-history-reason i {
  flex: 0 0 auto;
  color: #a0ada8;
  font-size: 9px;
}

.item-request-history-reason span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-request-history-meta {
  justify-content: flex-start;
  margin-top: 4px;
  color: #95a19d;
  font-size: 10px;
}

.item-request-history-meta span + span::before {
  content: "\00b7";
  margin: 0 6px;
}

.item-request-history-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.item-request-history-retry {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  color: #8a611f;
  background: #fffaf0;
  border: 1px solid #ead5ad;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.item-request-history-retry:hover {
  color: #6d4810;
  border-color: #cfaa64;
}

.item-request-confirm {
  position: fixed;
  inset: 0;
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 33, 29, .56);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: itemRequestBackdrop .16s ease-out;
}

.item-request-confirm-dialog {
  width: min(460px, 100%);
  overflow: hidden;
  color: #14211d;
  background: #fff;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(20, 33, 29, .3);
  animation: itemRequestEnter .2s cubic-bezier(.22, .9, .3, 1);
}

.item-request-confirm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid #e8efeb;
}

.item-request-confirm-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.item-request-confirm-body {
  padding: 14px 16px;
}

.item-request-confirm-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  padding: 10px 11px;
  background: #f6faf8;
  border: 1px solid #dce7e1;
  border-radius: 7px;
}

.item-request-confirm-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-request-confirm-item span {
  flex: 0 0 auto;
  color: #8a9893;
  font: 10px ui-monospace, Consolas, monospace;
}

.item-request-reason-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #31413c;
  font-size: 12px;
  font-weight: 750;
}

.item-request-reason-label em {
  color: #95a19d;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

#itemRequestReason {
  width: 100%;
  min-height: 104px;
  max-height: 220px;
  resize: vertical;
  padding: 10px 11px;
  color: #14211d;
  background: #fff;
  border: 1px solid #ccd9d3;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  outline: none;
}

#itemRequestReason:focus {
  border-color: #167a68;
  box-shadow: 0 0 0 3px rgba(22, 122, 104, .12);
}

.item-request-reason-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: #8a9893;
  font-size: 10px;
}

.item-request-confirm-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 16px 14px;
  background: #f9fbfa;
  border-top: 1px solid #edf2ef;
}

.item-request-secondary,
.item-request-primary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.item-request-secondary {
  color: #52615d;
  background: #fff;
  border: 1px solid #dce7e1;
}

.item-request-primary {
  color: #fff;
  background: #167a68;
  border: 1px solid #167a68;
}

.item-request-primary:disabled {
  cursor: default;
  opacity: .65;
}

body.item-request-open {
  overflow: hidden;
}

@keyframes itemRequestBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes itemRequestEnter {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes itemRequestSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .advanced-request-hint {
    min-height: 38px;
    margin-top: 6px;
    padding: 6px 8px;
  }

  .advanced-request-hint button {
    min-height: 30px;
  }

  .advanced-request-copy small {
    max-width: 190px;
    white-space: normal;
  }

  .item-request-modal {
    align-items: flex-end;
    padding: 0;
  }

  .item-request-dialog {
    width: 100%;
    max-height: calc(94vh - env(safe-area-inset-top, 0));
    border-width: 1px 0 0;
    border-radius: 8px 8px 0 0;
    animation-name: itemRequestEnterMobile;
  }

  .item-request-head {
    padding: 13px 13px 11px;
  }

  .item-request-head h2 {
    font-size: 16px;
  }

  .item-request-body {
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0));
  }

  .item-request-tabs {
    margin-bottom: 8px;
  }

  .item-request-intro {
    display: none;
  }

  .item-request-notice {
    margin-bottom: 8px;
    padding: 8px 9px;
  }

  .item-request-search {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .item-request-search input,
  .item-request-search > button {
    height: 40px;
  }

  .item-request-search > button {
    min-width: 46px;
    padding: 0;
  }

  .item-request-search > button span {
    display: none;
  }

  .item-request-results {
    min-height: 250px;
    max-height: 56vh;
  }

  .item-request-history-results {
    min-height: 300px;
  }

  .item-request-row {
    min-height: 64px;
    gap: 8px;
    padding: 9px 2px;
  }

  .item-request-action {
    min-width: 76px;
    min-height: 36px;
    padding: 0 7px;
    font-size: 11px;
  }

  .item-request-pager button {
    min-width: 96px;
  }

  .item-request-confirm {
    align-items: flex-end;
    padding: 8px;
  }

  .item-request-confirm-dialog {
    width: 100%;
  }

  .item-request-confirm-foot > button {
    flex: 1;
  }
}

@keyframes itemRequestEnterMobile {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .item-request-modal,
  .item-request-dialog,
  .item-request-confirm-dialog,
  .advanced-request-hint button,
  .item-request-action {
    animation: none;
    transition: none;
  }
}
