.inventory-page {
  min-width: 0;
  background: #eef3f9;
}

.inventory-content {
  display: grid;
  gap: 66px;
  padding: 26px 28px 46px;
}

.inventory-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.inventory-topbar h1 {
  margin: 0 0 6px;
  color: #191c1e;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.inventory-topbar p {
  margin: 0;
  color: #464555;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.inventory-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 4px;
}

.inventory-actions button,
.filter-actions button,
.quick-filters button,
.inventory-pagination button {
  border: 1px solid transparent;
  font: inherit;
}

.inventory-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-color: #e5e7eb;
  border-radius: 8px;
  color: #141b2b;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 43, 72, 0.04);
}

.inventory-actions svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.inventory-stat-card,
.inventory-filter-card,
.inventory-table-card {
  border: 1px solid #d9e2ed;
  background: #fff;
  box-shadow: 0 2px 4px rgba(20, 35, 62, 0.08);
}

.inventory-stat-card {
  min-height: 151px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.inventory-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 39px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 30px;
  border-radius: 9px;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.stat-icon.blue {
  color: #1a56db;
  background: #1a56db1a;
}

.stat-icon.green {
  color: #005438;
  background: #006f4b1a;
}

.stat-icon.gray {
  color: #5c5f60;
  background: #e1e3e44d;
}

.stat-icon.red {
  color: #ba1a1a;
  background: #ffdad64d;
}

.stat-icon.violet {
  color: #1a56db;
  background: #dce2f7;
}

.inventory-stat-card p {
  margin: 18px 0 6px;
  color: #454748;
  font-size: 12px;
  font-weight: 600;
}

.inventory-stat-card strong {
  display: block;
  color: #141b2b;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.inventory-stat-card em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 600;
}

.inventory-stat-card em svg {
  width: 12px;
  height: 12px;
}

.up.green {
  color: #005438;
}

.up.orange {
  color: #f59e0b;
}

.inventory-filter-card {
  display: grid;
  gap: 25px;
  padding: 24px 28px 22px;
  border-radius: 20px;
}

.inventory-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.inventory-filter-grid label {
  display: grid;
  gap: 8px;
}

.inventory-filter-grid span {
  color: #434654;
  font-size: 12px;
  font-weight: 600;
}

.inventory-filter-grid select,
.inventory-filter-grid input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  color: #101827;
  background: #fff;
  font-size: 13px;
  outline: none;
}

.inventory-filter-grid select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #59677a 50%),
    linear-gradient(135deg, #59677a 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.inventory-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 19px;
  border-top: 1px solid #e3e8f0;
}

.quick-filters,
.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-filters strong {
  margin-right: 8px;
  color: #4c5668;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-filters button {
  min-height: 29px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4a5568;
  background: #f3f5f8;
  font-size: 12px;
  font-weight: 700;
}

.quick-filters button.active {
  color: #007354;
  background: #dff4ed;
  border-color: #9bd8c6;
}

.quick-filters button.warning {
  color: #f09200;
  background: #fff4dd;
}

.quick-filters button.danger {
  color: #e81721;
  background: #fff1f1;
}

.quick-filters button.today {
  color: #1b63e6;
  background: #e7efff;
  border-color: #afc9ff;
}

.filter-actions {
  flex: 0 0 auto;
}

.filter-actions .apply {
  min-width: 139px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: #1f5ce5;
  font-size: 12px;
  font-weight: 700;
}

.filter-actions .reset {
  min-height: 36px;
  padding: 0 18px;
  color: #1e293b;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.inventory-table-card {
  overflow: hidden;
  border-radius: 20px;
}

.inventory-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.inventory-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
}

.inventory-table th {
  padding: 18px 15px 17px;
  color: #434654;
  background: #f1f3ff;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.inventory-table td {
  padding: 19px 15px;
  border-top: 1px solid #e1e6ee;
  color: #182132;
  font-size: 13px;
  line-height: 1.25;
  vertical-align: middle;
}

.inventory-table td strong {
  font-weight: 600;
}

.inventory-table td small {
  display: block;
  margin-top: 3px;
  color: #2d6fe8;
  font-size: 8px;
  line-height: 1.1;
  font-weight: 700;
}

.inventory-table td span {
  color: #596478;
}

.airline-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.airline-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.airline-logo.navy {
  background: #0c1450;
}

.airline-logo.red {
  background: #f13c42;
}

.airline-logo.blue {
  background: #2d67d8;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #454748 !important;
  background: #e7e8ea;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.seat-cell {
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 105px;
}

.seat-cell strong,
.seat-cell em {
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.seat-cell em {
  color: #5f6978;
  text-transform: uppercase;
}

.seat-bar {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9dee7;
}

.seat-bar svg {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1b64e8;
}

.seat-cell.low strong,
.seat-cell.low em,
.seat-cell.sold strong,
.seat-cell.sold em {
  color: #e01e27;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.active {
  color: #007354;
  background: #cce8df;
}

.status-badge.warning {
  color: #f09200;
  background: #fff4dd;
}

.status-badge.danger {
  color: #e01e27;
  background: #fff1f1;
}

.row-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  color: #152033;
  background: transparent;
}

.row-action svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 19px 20px;
  border-top: 1px solid #e1e6ee;
}

.inventory-pagination p {
  margin: 0;
  color: #4f5b6f;
  font-size: 14px;
  line-height: 1.35;
}

.inventory-pagination nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-pagination button {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 34px;
  padding: 0 4px;
  border-radius: 7px;
  color: #111827;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.inventory-pagination button.current {
  min-width: 37px;
  color: #fff;
  background: #1f5ce5;
}

.inventory-pagination button.ghost {
  color: #7b8797;
}

.inventory-pagination svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 1320px) {
  .inventory-content {
    gap: 38px;
    padding: 24px 22px 40px;
  }

  .inventory-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .inventory-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .inventory-topbar {
    flex-direction: column;
  }

  .inventory-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .inventory-actions button {
    flex: 1 1 160px;
  }

  .inventory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-quick-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .inventory-content {
    gap: 24px;
    padding: 20px 14px 32px;
  }

  .inventory-topbar h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  .inventory-topbar p {
    font-size: 13px;
  }

  .inventory-actions {
    gap: 8px;
  }

  .inventory-actions button {
    justify-content: center;
  }

  .inventory-stats,
  .inventory-filter-grid {
    grid-template-columns: 1fr;
  }

  .inventory-stat-card {
    min-height: 128px;
    padding: 20px;
  }

  .inventory-filter-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .quick-filters {
    gap: 8px;
  }

  .quick-filters strong {
    flex: 1 0 100%;
  }

  .quick-filters button {
    padding: 0 12px;
  }

  .filter-actions {
    gap: 8px;
  }

  .seat-cell {
    min-width: 105px;
  }

  .row-action {
    margin-left: auto;
  }

  .inventory-pagination {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .inventory-pagination nav {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
}
