.le-blanket-portal {
  color: #262b32;
}

.le-blanket-portal__page-title h2 {
  color: #262b32;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0;
}

.le-blanket-portal__selector {
  background: #f6f7f8;
  border: 1px solid #cfd4da;
  border-left: 3px solid #6f7d89;
  margin-bottom: 14px;
  padding: 10px 12px 12px;
}

.le-blanket-portal__selector label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.le-blanket-portal__selector .form-control {
  background: #ffffff;
  border-color: #aeb7c0;
  border-radius: 3px;
  max-width: 620px;
  min-height: 38px;
}

.le-blanket-portal__section-tabs {
  background: #e7edf2;
  border: 1px solid #aeb9c3;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(35, 52, 68, 0.12);
  display: inline-flex;
  gap: 5px;
  margin: 0 0 18px;
  padding: 4px;
}

.le-blanket-portal__section-tabs button {
  background: #ffffff;
  border: 1px solid #c5ced6;
  border-radius: 3px;
  color: #46535f;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  min-width: 170px;
  padding: 9px 20px;
}

.le-blanket-portal__section-tabs button:hover,
.le-blanket-portal__section-tabs button:focus {
  background: #f8fafb;
  border-color: #6f879b;
  color: #1f4e72;
  outline: 0;
}

.le-blanket-portal__section-tabs button.is-active {
  background: #2f6690;
  border-color: #285777;
  box-shadow: 0 1px 2px rgba(23, 52, 74, 0.22);
  color: #ffffff;
  font-weight: 800;
}

.le-blanket-portal__agreement {
  margin-bottom: 8px;
}

.le-blanket-portal__agreement:last-child {
  margin-bottom: 0;
}

/* Inset the complete child table, including its borders. */
.le-blanket-portal__agreement-content {
  background: #ffffff;
  margin: 6px 0 0 24px;
  width: auto;
}

.le-blanket-portal__agreement-header {
  align-items: center;
  background: #343a40;
  color: #ffffff;
  display: flex;
  cursor: pointer;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 6px 10px;
}

.le-blanket-portal__po-number {
  color: #ffffff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.le-blanket-portal__agreement-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Date colours describe availability; exhausted starts remain neutral. */
.le-blanket-portal__date {
  background: #eef0f3;
  border: 1px solid #bec6cf;
  border-left: 4px solid #84919e;
  border-radius: 6px;
  color: #4d5965;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
}

.le-blanket-portal__date > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.le-blanket-portal__date > strong {
  font-size: 15px;
  line-height: 1.2;
}

.le-blanket-portal__date.is-ready {
  background: #e6f3e9;
  border-color: #9bbfa5;
  border-left-color: #397a4e;
  color: #245f38;
}

.le-blanket-portal__date.is-future {
  background: #fff0de;
  border-color: #dbb486;
  border-left-color: #bc680e;
  color: #934600;
}

.le-blanket-portal__date.is-expired {
  background: #fce8e8;
  border-color: #dfa6a6;
  border-left-color: #b43a3a;
  color: #982c2c;
}

.le-blanket-portal .le-blanket-portal__agreement-meta .indicator-pill,
.le-blanket-portal .le-blanket-portal__group-heading .indicator-pill {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  min-height: 26px;
  line-height: 1.2;
  padding: 4px 10px;
  white-space: nowrap;
}

.le-blanket-portal__status {
  border-radius: 3px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.le-blanket-portal__status--active {
  background: #25835b;
}

.le-blanket-portal__status--not-yet-active {
  background: #c56a00;
}

.le-blanket-portal__status--expired {
  background: #8a4b9d;
}

.le-blanket-portal__table {
  margin-bottom: 0;
  min-width: 1050px;
  table-layout: fixed;
  width: 100%;
}

.le-blanket-portal__table > thead > tr > th {
  background: #dde2e6;
  color: #30343b;
  font-size: 12px;
  white-space: nowrap;
}

.le-blanket-portal__filters {
  align-items: end;
  background: #ffffff;
  border: 1px solid #cfd4da;
  display: grid;
  gap: 5px 12px;
  grid-template-columns: minmax(240px, 440px) 1fr;
  margin-bottom: 16px;
  padding: 12px;
}

.le-blanket-portal__filters label {
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
  margin: 0;
}

.le-blanket-portal__filters .form-control {
  border-radius: 3px;
  max-width: 440px;
}

.le-blanket-portal__filters small {
  color: #68717d;
  padding-bottom: 8px;
}

.le-blanket-portal__view-switch {
  display: inline-flex;
  margin-bottom: 16px;
}

.le-blanket-portal__view-switch .btn {
  background: #ffffff;
  border: 1px solid #aeb6bf;
  border-radius: 0;
  color: #40474f;
  font-weight: 650;
  min-height: 36px;
  padding: 7px 14px;
}

.le-blanket-portal__view-switch .btn:first-child {
  border-radius: 3px 0 0 3px;
}

.le-blanket-portal__view-switch .btn:last-child {
  border-left: 0;
  border-radius: 0 3px 3px 0;
}

.le-blanket-portal__view-switch .btn.is-active {
  background: #343a40;
  border-color: #343a40;
  color: #ffffff;
}

.le-blanket-portal__category {
  background: #ffffff;
  border: 1px solid #c8ced4;
  margin-bottom: 16px;
}

.le-blanket-portal__category > summary {
  align-items: center;
  background: #343a40;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 6px 10px;
}

.le-blanket-portal__category > summary::-webkit-details-marker {
  display: none;
}

.le-blanket-portal__category > summary::before {
  content: "+";
  font-size: 18px;
  margin-right: 9px;
}

.le-blanket-portal__category[open] > summary::before {
  content: "-";
}

.le-blanket-portal__category > summary > span {
  flex: 1;
}

.le-blanket-portal__category > summary > b {
  background: rgba(255, 255, 255, 0.17);
  border-radius: 3px;
  font-size: 12px;
  min-width: 30px;
  padding: 4px 8px;
  text-align: center;
}

.le-blanket-portal__category--paper > summary {
  border-left: 5px solid #4d8f62;
}

.le-blanket-portal__category--lamination > summary {
  border-left: 5px solid #4b82b8;
}

.le-blanket-portal__category--other > summary {
  border-left: 5px solid #927346;
}

.le-blanket-portal__category-content {
  padding: 10px;
}

.le-blanket-portal [data-status="Active"] {
  --le-blanket-status-background: #d9fae4;
}

.le-blanket-portal [data-status="Not Yet Active"] {
  --le-blanket-status-background: #ffefdb;
}

.le-blanket-portal [data-status="Exhausted"],
.le-blanket-portal [data-status="Expired"] {
  --le-blanket-status-background: #e5e6e7;
}

.le-blanket-portal__status-section {
  background: var(--le-blanket-status-background);
  border: 1px solid #e0e5e2;
  border-radius: 4px;
  margin-bottom: 10px;
}

.le-blanket-portal__status-section:last-child {
  margin-bottom: 0;
}

.le-blanket-portal__status-content {
  padding: 0 10px 10px 20px;
}

.le-blanket-portal__group-heading {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 8px 10px;
}

.le-blanket-portal__group-heading strong {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  min-width: 180px;
}

.le-blanket-portal__agreement-header::-webkit-details-marker,
.le-blanket-portal__group-heading::-webkit-details-marker {
  display: none;
}

.le-blanket-portal__agreement-header::before,
.le-blanket-portal__group-heading::before {
  content: "\25B8";
  flex: 0 0 10px;
  font-size: 14px;
}

.le-blanket-portal__agreement[open] > .le-blanket-portal__agreement-header::before,
.le-blanket-portal__status-section[open] > .le-blanket-portal__group-heading::before {
  content: "\25BE";
}

.le-blanket-portal__agreement-header > .le-blanket-portal__po-number {
  margin-right: auto;
}

.le-blanket-portal summary:focus-visible {
  outline: 2px solid #5881a5;
  outline-offset: 2px;
}

.le-blanket-portal__material-group {
  margin-bottom: 10px;
}

.le-blanket-portal__material-group > summary {
  align-items: center;
  background: #343a40;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  padding: 7px 10px;
}

.le-blanket-portal__material-group > summary::-webkit-details-marker {
  display: none;
}

.le-blanket-portal__material-group > summary > span {
  display: flex;
  flex-direction: column;
}

.le-blanket-portal__material-group > summary strong {
  font-size: 18px;
}

.le-blanket-portal__material-group > summary small {
  color: #cbd3da;
  font-size: 11px;
}

.le-blanket-portal__material-group > summary > b {
  background: #50575f;
  border: 1px solid #626a73;
  border-radius: 3px;
  min-width: 30px;
  padding: 3px 7px;
  text-align: center;
}

.le-blanket-portal__material-content {
  margin: 6px 0 0 24px;
  padding: 0;
}

.le-blanket-portal__material-totals {
  align-items: stretch;
  background: #9180c0;
  border: 1px solid #5a34b1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(4, minmax(105px, 150px));
  margin-top: 0;
}

.le-blanket-portal__material-totals > strong {
  align-items: center;
  background: #5b4b7c;
  color: #ffffff;
  display: flex;
  font-size: 13px;
  padding: 12px;
}

.le-blanket-portal__material-totals > span {
  border-left: 1px solid #5a34b1;
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  text-align: right;
}

.le-blanket-portal__material-totals small {
  color: #e4deee;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.le-blanket-portal__material-totals b {
  color: #f1edf8;
  font-size: 17px;
}

.le-blanket-portal__table > tbody > tr > td {
  overflow-wrap: anywhere;
  padding: 7px 10px;
  vertical-align: middle;
}

.le-blanket-portal__table > thead > tr > th {
  height: 32px;
  padding: 6px 10px;
}

.le-blanket-portal__table th:nth-child(1) {
  width: 30%;
}

.le-blanket-portal__table th:nth-child(2) {
  width: 18%;
}

.le-blanket-portal__table th:nth-child(3) {
  width: 12%;
}

.le-blanket-portal__table th:nth-child(4) {
  width: 11%;
}

.le-blanket-portal__table th:nth-child(5),
.le-blanket-portal__table th:nth-child(6) {
  width: 10%;
}

.le-blanket-portal__table th:nth-child(7) {
  width: 9%;
}

.le-blanket-portal__table td small,
.le-blanket-portal__table td span {
  display: block;
}

.le-blanket-portal__table td small {
  color: #68717d;
  margin-top: 2px;
}

.le-blanket-portal__table td.le-blanket-portal__contracted {
  background: #dfebf8;
  color: #355d83;
  font-weight: 650;
}

.le-blanket-portal__table td.le-blanket-portal__released {
  background: #faebf9;
  color: #8b2883;
  font-weight: 650;
}

.le-blanket-portal__table td.le-blanket-portal__remaining {
  background: #dbf0e3;
  color: #32684c;
  font-weight: 700;
}

.le-blanket-portal__table td.le-blanket-portal__rate {
  background: #ededf0;
  color: #696869;
  font-weight: 700;
}

/* The table itself is inset, so its labels retain compact cell padding. */
.le-blanket-portal__table > thead > tr > th.le-blanket-portal__row-identity,
.le-blanket-portal__table > tbody > tr > td.le-blanket-portal__row-identity {
  padding-left: 10px;
}

.le-blanket-portal__table--material .le-blanket-portal__po-number {
  color: #303a44;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.le-blanket-portal__table--material .le-blanket-portal__agreement-meta {
  justify-content: flex-start;
  gap: 8px;
}

.le-blanket-portal__table--material .le-blanket-portal__date {
  gap: 2px;
  padding: 3px 6px;
}

.le-blanket-portal__table--material .le-blanket-portal__date > strong {
  font-size: 14px;
}

.le-blanket-portal__table--material > tbody:nth-of-type(even) > tr > td:nth-child(n+2):nth-child(-n+3) {
  background: #fafbfc;
}

.le-blanket-portal__table--material > tbody + tbody > tr:first-child > td {
  border-top: 2px solid #bbc4ce;
}

.le-blanket-portal__table--material > tbody > tr > td.le-blanket-portal__row-identity {
  background: var(--le-blanket-status-background, #ffffff);
}

/* Pending reservations use amber; closed balances use one neutral palette. */
.le-blanket-portal [data-status="Not Yet Active"] td.le-blanket-portal__contracted {
  background: #fff2e3;
  color: #ad4413;
}

.le-blanket-portal [data-status="Exhausted"] td.le-blanket-portal__metric,
.le-blanket-portal [data-status="Expired"] td.le-blanket-portal__metric,
.le-blanket-portal__table > tbody > tr.is-exhausted > .le-blanket-portal__metric {
  background: #eef0f3;
  color: #59636e;
}

/* Small material accents reuse the inventory palette without tinting balances. */
.le-blanket-portal__item-accent {
  background: color-mix(in srgb, var(--le-lamination-color) 14%, white);
  border-left: 4px solid var(--le-lamination-color);
  border-radius: 3px;
  padding: 3px 7px;
}

.le-blanket-portal__material-group[class*="le-blanket-portal__lamination-color-"] > summary {
  border-left: 5px solid var(--le-lamination-color);
}

.le-blanket-portal__empty {
  background: #f5f6f7;
  border: 1px solid #d8dde2;
  color: #68717d;
  padding: 24px 16px;
  text-align: center;
}

.le-blanket-portal__lamination-details {
  background: #ffffff;
  border: 1px solid #bfc6cd;
}

.le-blanket-portal__lamination-details > header {
  align-items: center;
  background: #343a40;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 16px;
}

.le-blanket-portal__lamination-details > header > div:first-child > span {
  display: block;
  font-size: 20px;
  font-weight: 750;
  text-decoration: underline;
}

.le-blanket-portal__lamination-details > header > div:first-child > small {
  color: #dce1e5;
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.le-blanket-portal__lamination-summary {
  display: flex;
  gap: 1px;
}

.le-blanket-portal__lamination-summary > span {
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  min-width: 94px;
  padding: 7px 10px;
}

.le-blanket-portal__lamination-summary b {
  font-size: 16px;
}

.le-blanket-portal__lamination-summary small {
  color: #dce1e5;
  font-size: 10px;
  text-transform: uppercase;
}

.le-blanket-portal__lamination-content {
  padding: 12px;
}

.le-blanket-portal__lamination-table {
  margin-bottom: 0;
  min-width: 1050px;
  table-layout: fixed;
  width: 100%;
}

.le-blanket-portal__lamination-table th {
  background: #d9dde1;
  border-color: #9fa8b0;
  color: #2e343a;
  font-size: 14px;
  font-weight: 750;
  height: 40px;
  padding: 8px 9px;
  white-space: nowrap;
}

.le-blanket-portal__lamination-table td {
  border-color: #c5cbd0;
  font-size: 13px;
  padding: 8px 9px;
  vertical-align: middle;
}

.le-blanket-portal__lamination-table th:nth-child(1) { width: 21%; }
.le-blanket-portal__lamination-table th:nth-child(2) { width: 10%; }
.le-blanket-portal__lamination-table th:nth-child(3) { width: 11%; }
.le-blanket-portal__lamination-table th:nth-child(4) { width: 13%; }
.le-blanket-portal__lamination-table th:nth-child(5) { width: 11%; }
.le-blanket-portal__lamination-table th:nth-child(6) { width: 11%; }
.le-blanket-portal__lamination-table th:nth-child(7) { width: 13%; }
.le-blanket-portal__lamination-table th:nth-child(8) { width: 10%; }

.le-blanket-portal__lamination-material {
  --le-lamination-color: #d9e9f7;
  background: var(--le-lamination-color);
  border-top: 2px solid color-mix(in srgb, var(--le-lamination-color) 70%, black);
}

.le-blanket-portal__lamination-material td {
  border-top: 2px solid #545b61;
  font-weight: 750;
}

.le-blanket-portal__lamination-material td:first-child strong {
  font-size: 16px;
  color: #000000;
}

.le-blanket-portal__lamination-material td:nth-child(5) strong,
.le-blanket-portal__lamination-material td:nth-child(6) strong,
.le-blanket-portal__lamination-material td:nth-child(7) strong {
  font-size: 13px;
  color: #2b2b2b;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.le-blanket-portal__lamination-material td small {
  color: #343a40;
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-top: 1px;
}

.le-blanket-portal__lamination-detail {
  --le-lamination-color: #d9e9f7;
}

.le-blanket-portal__lamination-detail td:first-child {
  background: color-mix(in srgb, var(--le-lamination-color) 45%, white);
  font-weight: 650;
}

.le-blanket-portal__lamination-detail.le-blanket-portal__width-band--dark td:nth-child(2) {
  background: #cbd0d4;
  color: #171a1d;
  font-weight: 750;
}

.le-blanket-portal__lamination-detail.le-blanket-portal__width-band--light td:nth-child(2) {
  background: #eceeef;
  color: #171a1d;
  font-weight: 750;
}

.le-blanket-portal__lamination-detail.le-blanket-portal__width-block-start td {
  border-top: 2px solid #737b82 !important;
}

.le-blanket-portal__lamination-detail.le-blanket-portal__width-block-end td {
  border-bottom: 2px solid #737b82 !important;
}

.le-blanket-portal__lamination-detail td:nth-child(3),
.le-blanket-portal__lamination-detail td:nth-child(6) {
  font-weight: 750;
}

.le-blanket-portal__lamination-detail td:nth-child(4) {
  color: #324b62;
  font-weight: 650;
}

.le-blanket-portal__lamination-detail td:nth-child(5) {
  background: #f0f1f2;
  font-style: italic;
  font-weight: 750;
}

.le-blanket-portal__lamination-color-1 { --le-lamination-color: #ff8585; }
.le-blanket-portal__lamination-color-2 { --le-lamination-color: #76e983; }
.le-blanket-portal__lamination-color-3 { --le-lamination-color: #ffc17f; }
.le-blanket-portal__lamination-color-4 { --le-lamination-color: #f29bf1; }
.le-blanket-portal__lamination-color-5 { --le-lamination-color: #8bc8f0; }
.le-blanket-portal__lamination-color-6 { --le-lamination-color: #d9c58e; }

.le-blanket-portal__mixed {
  color: #08763c;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
}

.le-blanket-portal__lamination-table tfoot td {
  background: #343a40;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 767px) {
  .le-blanket-portal__agreement-header {
    flex-wrap: wrap;
  }

  .le-blanket-portal__agreement-header > .le-blanket-portal__agreement-meta {
    margin-left: 20px;
    width: calc(100% - 20px);
  }

  .le-blanket-portal__status-content {
    padding: 0 6px 6px 10px;
  }

  .le-blanket-portal__agreement-content,
  .le-blanket-portal__material-content {
    margin-left: 12px;
  }

  .le-blanket-portal__agreement-meta {
    justify-content: space-between;
    width: 100%;
  }

  .le-blanket-portal__section-tabs {
    display: flex;
    width: 100%;
  }

  .le-blanket-portal__section-tabs button {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
  }

  .le-blanket-portal__filters {
    grid-template-columns: 1fr;
  }

  .le-blanket-portal__filters small {
    padding-bottom: 0;
  }

  .le-blanket-portal__material-totals {
    grid-template-columns: 1fr;
  }

  .le-blanket-portal__material-totals > span {
    border-left: 0;
    border-top: 1px solid #c4cbd1;
  }

  .le-blanket-portal__lamination-details > header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .le-blanket-portal__lamination-summary > span {
    align-items: flex-start;
    flex: 1;
    min-width: 0;
  }
}
