/* Global Tender Intelligence page */

.global-tender-body {
  min-height: 100vh;
  color: #111827;
  background: #ffffff;
}

.global-tender-breadcrumb {
  width: 100%;
  min-height: 48px;
  border-bottom: 1px solid #e8ebf0;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.global-tender-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1280px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: 0 40px;
  color: #2f3339;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.global-tender-breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: #8a8f98;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.global-tender-breadcrumb-home:hover,
.global-tender-breadcrumb-home:focus-visible {
  color: #6735ff;
}

.global-tender-breadcrumb-home img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.global-tender-breadcrumb-separator {
  color: #a3a7ae;
}

.global-tender-main {
  width: 100%;
  min-height: 778px;
  background: #f8f9fb;
}

.global-tender-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 68px 0 100px;
}

.global-tender-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.global-tender-heading h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: -0.02em;
  color: #111827;
}

.global-tender-heading p {
  margin: 8px 0 0;
  color: #71809a;
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
}

.global-tender-date-wrap {
  position: relative;
  z-index: 20;
  width: 256px;
  flex: 0 0 auto;
}

.global-tender-date {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 51px;
  padding: 0 18px 0 16px;
  border: 1px solid #cdd7e5;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  text-align: left;
}

.global-tender-date:hover {
  border-color: #a9b7ca;
}

.global-tender-date:focus-visible {
  outline: 2px solid rgba(103, 53, 255, 0.24);
  outline-offset: 2px;
}

.global-tender-date > img {
  width: 16px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.global-tender-date strong {
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.global-tender-date-chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: translateY(-2px) rotate(45deg);
}

.global-tender-date[aria-expanded="true"] .global-tender-date-chevron {
  transform: translateY(2px) rotate(225deg);
}

.global-tender-calendar {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 300px;
  padding: 16px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.global-tender-calendar[hidden] {
  display: none;
}

.global-tender-calendar-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}

.global-tender-calendar-header > strong {
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
}

.global-tender-calendar-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.global-tender-calendar-header button:hover:not(:disabled) {
  color: #6735ff;
  background: #f3f1ff;
}

.global-tender-calendar-header button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.global-tender-calendar-weekdays,
.global-tender-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.global-tender-calendar-weekdays {
  margin-top: 12px;
}

.global-tender-calendar-weekdays span {
  padding: 5px 0 7px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.global-tender-calendar-days {
  gap: 3px;
}

.global-tender-calendar-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.global-tender-calendar-day:hover:not(:disabled):not(.is-selected) {
  color: #6735ff;
  background: #f3f1ff;
}

.global-tender-calendar-day.is-outside {
  color: #b8c1ce;
}

.global-tender-calendar-day.is-today:not(.is-selected) {
  color: #6735ff;
  box-shadow: inset 0 0 0 1px #6735ff;
}

.global-tender-calendar-day.is-selected {
  color: #ffffff;
  background: #6735ff;
}

.global-tender-calendar-day:focus-visible {
  outline: 2px solid rgba(103, 53, 255, 0.45);
  outline-offset: 1px;
}

.global-tender-calendar-day:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.global-tender-table-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 24px;
}

.global-tender-table {
  width: 100%;
  min-width: 0;
  overflow: visible;
  border: 1px solid #e5ebf3;
  border-spacing: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.05);
  table-layout: fixed;
}

.global-tender-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.global-tender-table th {
  height: 52px;
  padding: 0 24px;
  background: #f8fafc;
  color: #526076;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  vertical-align: middle;
}

.global-tender-table th:first-child {
  width: 28%;
  border-top-left-radius: 12px;
}

.global-tender-table th:nth-child(2) {
  width: 31%;
  text-align: center;
}

.global-tender-table th:last-child {
  width: 41%;
  border-top-right-radius: 12px;
  text-align: center;
}

.global-tender-column-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.global-tender-help {
  position: relative;
  display: inline-flex;
}

.global-tender-help button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: help;
}

.global-tender-help button img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.global-tender-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 40;
  width: 230px;
  padding: 10px 12px;
  border-radius: 7px;
  opacity: 0;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.global-tender-help:hover .global-tender-tooltip,
.global-tender-help:focus-within .global-tender-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.global-tender-table td {
  height: 57px;
  padding: 0 24px;
  border-top: 1px solid #e9eef5;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
}

.global-tender-table td:first-child {
  font-weight: 500;
}

.global-tender-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.global-tender-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.global-tender-status-row td {
  height: 136px;
  text-align: center;
}

.global-tender-loading,
.global-tender-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.global-tender-loading-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid #ded9ff;
  border-top-color: #6735ff;
  border-radius: 50%;
  animation: global-tender-spin 0.7s linear infinite;
}

@keyframes global-tender-spin {
  to {
    transform: rotate(360deg);
  }
}

.global-tender-country {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.global-tender-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 23px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  font-size: 29px;
  line-height: 23px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
}

.global-tender-count,
.global-tender-value {
  text-align: center;
}

.global-tender-count {
  color: #5147ff !important;
}

@media (max-width: 1328px) {
  .global-tender-inner {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 900px) {
  .global-tender-breadcrumb-inner {
    padding: 0 24px;
  }

  .global-tender-inner {
    padding: 56px 24px 80px;
  }

  .global-tender-toolbar {
    align-items: flex-start;
    gap: 32px;
  }

  .global-tender-heading h1 {
    font-size: 34px;
    line-height: 42px;
  }
}

@media (max-width: 768px) {
  .global-tender-main {
    min-height: 0;
  }

  .global-tender-breadcrumb-inner {
    padding: 0 20px;
  }

  .global-tender-inner {
    padding: 40px 14px 64px;
  }

  .global-tender-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .global-tender-heading h1 {
    font-size: 32px;
    line-height: 39px;
  }

  .global-tender-heading p {
    font-size: 16px;
    line-height: 24px;
  }

  .global-tender-date-wrap {
    width: 100%;
  }

  .global-tender-calendar {
    right: auto;
    left: 0;
    width: min(300px, 100%);
  }

  .global-tender-table {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .global-tender-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .global-tender-table tbody {
    display: grid;
    gap: 14px;
  }

  .global-tender-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.05);
  }

  .global-tender-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    height: auto;
    padding: 14px 18px;
    border-top: 1px solid #e9eef5;
    border-radius: 0 !important;
    text-align: right;
  }

  .global-tender-table td:first-child {
    border-top: 0;
  }

  .global-tender-table td::before {
    margin-right: 20px;
    color: #64748b;
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
  }

  .global-tender-count,
  .global-tender-value {
    text-align: right;
  }

  .global-tender-status-row td {
    min-height: 136px;
    justify-content: center;
    border-top: 0;
  }

  .global-tender-status-row td::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .global-tender-breadcrumb-inner {
    gap: 8px;
    padding: 0 14px;
    font-size: 12px;
  }

  .global-tender-breadcrumb-home {
    gap: 7px;
  }

  .global-tender-calendar {
    width: 100%;
  }

  .global-tender-table td {
    padding: 13px 15px;
  }

  .global-tender-country {
    gap: 10px;
  }
}
