.procurement {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #123451;
  min-width: 0;
}
.procurement :is(button,input,select,textarea) { font: inherit; }
.procurement [hidden] { display: none !important; }
.procurement :is(.primary-button,.secondary-button) { font-size: 13px; font-weight: 650; min-height: 42px; border-radius: 9px; }
.procurement .secondary-button { background: #edf4ff; color: #1556b8; border: 1px solid #b9d1f5; box-shadow: 0 2px 5px #1234510b; }
.procurement .primary-button { background: linear-gradient(115deg,#174b88,#1667bf); color: #fff; border: 1px solid #1656aa; }
.procurement .portal-main {
  width: min(1500px, calc(100% - 40px));
  padding-top: clamp(24px, 4vw, 52px);
}
.procurement .portal-header-inner, .procurement .portal-footer {
  width: min(1500px, calc(100% - 40px));
}
.procurement .portal-header-inner { min-height: 70px; gap: 12px; }
.procurement-heading { margin-bottom: 24px; }
.procurement-heading h1 {
  margin: 4px 0 8px;
  color: var(--navy-950);
  font-size: clamp(25px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.procurement p { margin: .4rem 0 1rem; color: var(--slate-600); line-height: 1.5; }
.procurement h2, .procurement h3 { margin: 0 0 10px; color: var(--navy-900); }
.procurement h2 { font-size: 18px; }
.procurement h3 { font-size: 15px; }
.procurement-panel, .procurement dialog {
  margin: 0 0 16px;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.procurement .narrow { max-width: 520px; }
.procurement .grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 22px; }
.procurement .wide { grid-column: 1 / -1; }
.procurement fieldset {
  min-width: 0;
  margin: 18px 0;
  padding: 14px clamp(12px, 2vw, 20px) 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}
.procurement legend { padding: 0 7px; color: var(--navy-900); font-size: 14px; font-weight: 800; }
.procurement .field { display: grid; align-content: start; min-width: 0; gap: 6px; color: var(--slate-700); font-size: 13px; font-weight: 700; }
.procurement .choice-field { position: relative; }
.procurement .choice-list {
  position: absolute; z-index: 5; top: 100%; inset-inline: 0; max-height: 255px; overflow: auto;
  padding: 4px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-md);
}
.procurement .choice-list button {
  display: block; width: 100%; border: 0; border-radius: 5px; background: transparent; color: var(--navy-900);
  padding: 9px 10px; font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.procurement .choice-list button:hover, .procurement .choice-list [aria-selected=true] { background: var(--blue-50); }
.procurement .choice-list p { margin: 8px; }
.procurement .category-selections, .procurement .category-list { margin: 8px 0 0; padding-inline-start: 20px; }
.procurement .category-selections li { margin-bottom: 6px; overflow-wrap: anywhere; }
.procurement .category-selections button { margin-inline-start: 8px; min-height: 30px; padding: 4px 8px; font-size: 12px; }
.procurement .category-editor { height: auto; padding: 10px; resize: vertical; }
.procurement .person-card { margin: 12px 0; padding: 12px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); }
.procurement .person-card > .field, .procurement .person-card > button { margin: 8px 0; }
.procurement form > .field { margin: 10px 0; }
.procurement .field-input { min-width: 0; height: 46px; margin: 0; font: inherit; font-weight: 500; }
.procurement input[type=file] { height: auto; min-height: 46px; padding: 10px; }
.procurement input::file-selector-button { margin-right: 8px; font: inherit; }
.procurement .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.procurement form > .primary-button { margin-top: 14px; }
.procurement form > [role=status]:empty { display: none; }
.procurement form + .button-link { margin-top: 12px; }
.procurement .procurement-panel > .button-link { margin-top: 12px; }
.procurement .procurement-panel form + form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.procurement details { margin: 12px 0; }
.procurement details > summary { padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: var(--white); color: var(--navy-900); cursor: pointer; font-weight: 700; }
.procurement details .procurement-panel { margin-top: 10px; }
.procurement a { color: var(--blue-700); }
.procurement .brand { color: var(--navy-950); }
.procurement .error { color: var(--red-700); }
.procurement :focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.procurement .field-input:focus-visible { outline-offset: 0; }
.procurement .status { border-radius: 999px; display: inline-block; padding: 3px 9px; font-size: 12px; font-weight: 750; text-transform: capitalize; background: var(--amber-100); color: #684300; }
.procurement .status.approved { background: var(--green-100); color: var(--green-700); }
.procurement .status.ready_release, .procurement .status.released, .procurement .status.received {
  background: var(--green-100); color: var(--green-700);
}
.procurement .accounts-order { margin: 0 0 18px; padding-inline-start: 28px; }
.procurement .accounts-order li { padding: 8px 0; border-bottom: 1px solid #dce6f1; }
.procurement .accounts-order .toolbar { display: inline-flex; flex-wrap: wrap; margin-inline-start: 10px; }
.procurement .accounts-order button { min-height: 32px; padding: 4px 8px; font-size: 12px; }
.procurement .payment-confirmation { display: flex; align-items: center; gap: 8px; margin-block: 14px; }
.procurement .status.rejected, .procurement .status.expired, .procurement .status.deleted { background: var(--red-100); color: var(--red-700); }
.procurement .toolbar [aria-pressed=true] { border-color: var(--blue-700); color: var(--blue-700); }
.procurement .supplier-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 8rem; }
.procurement .procurement-table { min-width: 0; margin-block: 12px; border: 1px solid #d5e2f2; border-radius: 12px; overflow: hidden; }
.procurement .table-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px; background: linear-gradient(100deg,#f4f9ff,#eef4fc); border-bottom: 1px solid #d5e2f2; }
.procurement .table-tools .table-search { flex: 1 1 240px; min-width: 120px; height: 42px; background: #fff; border-color: #c6d8ef; }
.procurement .table-count { color: #47627e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.procurement .table-tools button { min-height: 38px; padding: 7px 12px; }
.procurement .table-tools button:disabled { opacity: .55; }
.procurement .table-wrap { overflow: auto; max-height: min(65dvh,760px); border: 0; border-radius: 0; }
.procurement table { width: 100%; border-collapse: collapse; }
.procurement thead { position: sticky; top: 0; z-index: 2; }
.procurement th, .procurement td { text-align: left; padding: 12px; vertical-align: middle; border-inline-end: 1px solid #dce6f1; font-size: 13px; }
.procurement th:last-child, .procurement td:last-child { border-inline-end: 0; }
.procurement th { background: linear-gradient(135deg,#173d5b,#102f49); color: var(--white); white-space: nowrap; font-weight: 650; }
.procurement .table-sort { display: block; width: 100%; text-align: left; border: 1px solid #ffffff28; border-radius: 8px; min-height: 44px; padding: 10px; font-size: 12px; font-weight: 650; color: #fff; background: #ffffff08; box-shadow: none; }
.procurement .table-header-filter { height: 44px; min-width: 90px; width: 100%; font-size: 12px; background: #fff; color: #123451; }
.procurement .smart-table-empty { padding: 24px 14px; text-align: center; color: #58718a; }
.procurement .table-with-checkboxes > table > thead > tr > th { position: static; }
.procurement .table-with-checkboxes > table > thead > tr > th.smart-table-select { position: sticky; left: 0; z-index: 3; }
.procurement .smart-table-select { min-width: 52px; width: 52px; text-align: center; }
.procurement tbody tr:nth-child(even) { background: var(--slate-50); }
.procurement tbody tr + tr { border-top: 1px solid var(--slate-200); }
.procurement dialog { width: min(calc(100% - 28px), 760px); max-height: 85dvh; margin: auto; color: inherit; }
.procurement dialog.request-detail { width: min(calc(100% - 28px), 1180px); }
.procurement .request-detail h3 { margin-block: 16px 8px; }
.procurement .request-audit table { min-width: 780px; }
.procurement .request-audit td { vertical-align: top; overflow-wrap: anywhere; }
.procurement .request-audit td:first-child { min-width: 9rem; }
.procurement .request-audit td:nth-child(6) { min-width: 9rem; white-space: pre-wrap; }
.procurement dialog::backdrop { background: #0b22378c; }
.procurement dl { display: grid; grid-template-columns: minmax(100px,1fr) 2fr; gap: 7px 14px; }
.procurement dt { font-weight: 650; }
.procurement dd { margin: 0; overflow-wrap: anywhere; }
.procurement .supplier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin-bottom: 18px;
  background: transparent;
  border-bottom: 1px solid #dce6f1;
}
.procurement .supplier-tabs button {
  border: 1px solid #bbd2f4;
  background: #edf4ff;
  color: #1556b8;
  white-space: nowrap;
  padding-inline: 18px;
}
.procurement .supplier-tabs button[aria-selected=true] { background: #dceaff; color: #10478d; border-color: #83afea; box-shadow: inset 0 -2px #165ab6; }
.procurement .supplier-tabs button:hover:not([aria-selected=true]) { background: #e2edfc; }
.procurement .supplier-tabs button:focus-visible { outline-color: #4e8eea; }
.procurement .supplier-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 12px; margin-bottom: 16px; }
.procurement .supplier-metric {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 16px 18px;
  min-height: 116px;
  background: #fff;
  border: 1px solid #d6e1ef;
  border-radius: var(--radius-sm);
  color: #123653;
  text-align: left;
  cursor: pointer;
}
.procurement .supplier-metric:hover { border-color: #709ac4; background: #f3f8fd; }
.procurement .supplier-metric span { font-size: .88rem; font-weight: 750; }
.procurement .supplier-metric strong { font-size: 1.7rem; line-height: 1.2; }
.procurement .supplier-metric small { color: #45617c; }
.procurement .supplier-notice { padding: 10px 14px; border: 1px solid #c6ddf0; border-radius: var(--radius-sm); background: #eef7ff; color: #173d5e; }
.procurement .supplier-tab-panel .procurement-panel > .secondary-button { margin-top: 10px; }
@media (max-width: 600px) {
  .procurement .portal-main, .procurement .portal-header-inner, .procurement .portal-footer { width: calc(100% - 24px); }
  .procurement .grid { grid-template-columns: minmax(0,1fr); }
  .procurement .brand-copy strong { font-size: 12px; }
}

table > tbody > tr:has(> td):not(:has(> .smart-table-empty, > td:first-child input[type="checkbox"]:disabled)) {
  cursor: pointer;
}

.table-wrap.table-with-checkboxes {
  max-height: min(62vh, 760px);
}

.table-with-checkboxes > table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-with-checkboxes > table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
}

:is(.smart-table, .table-with-checkboxes > table) > thead > tr:first-child > th.smart-table-select {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
}

:is(.smart-table, .table-with-checkboxes > table) > tbody > tr > td.smart-table-select {
  position: sticky;
  left: 0;
  z-index: 1;
}

.table-with-checkboxes > table > tbody > tr > td.smart-table-select {
  background: #fff;
}

.table-with-checkboxes > table > tbody > tr:nth-child(even) > td.smart-table-select {
  background: #f5f8fb;
}

table > tbody > tr:is(
  .portal-row-highlighted,
  [aria-selected="true"],
  :has(> .smart-table-select input[type="checkbox"]:checked),
  :has(> td:first-child input[type="checkbox"][aria-label^="Select "]:checked)
) {
  background: linear-gradient(100deg, #2c6687, #275371);
}

table > tbody > tr:is(
  .portal-row-highlighted,
  [aria-selected="true"],
  :has(> .smart-table-select input[type="checkbox"]:checked),
  :has(> td:first-child input[type="checkbox"][aria-label^="Select "]:checked)
) > td {
  background: transparent;
  border-color: #ffffff35;
  color: #fff;

  &:first-child {
    box-shadow: inset 3px 0 #6fd2d3;
  }

  &.smart-table-select {
    background: #2c6687;
  }

  & :where(*) {
    color: #fff;
  }

  & :is(.smart-status, .status, .status-pill, .badge) {
    background: #173d58;
  }

  & :is(button, [role="button"], .button, .primary-button, .secondary-button, .danger-button, input[type="button"], input[type="submit"], input[type="reset"]) {
    background: #fff;
    color: #123654;
    border-color: #c3d6e4;
    transition-property: transform, box-shadow, border-color;

    & :where(*) {
      color: inherit;
    }

    &:hover:enabled {
      border-color: #6fd2d3;
    }
  }

  & :is(input, textarea, select) {
    color: #123654;
  }
}
