* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #eef2f7;
  color: #2c3e50;
  line-height: 1.6;
  min-height: 100vh;
  padding: 1.5rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 1.25rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dde3ea;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 1.25rem;
}

/* Filter form */
.filter-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 1.25rem;
}

.filter-form {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #dde3ea;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  color: #5a6a7a;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #2c3e50;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #1a5276;
  box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.12);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.88;
}

.btn-primary {
  background: #1a5276;
  color: #fff;
}

.btn-secondary {
  background: #e8ecf0;
  color: #2c3e50;
}

.btn-details {
  background: #e8f0fe;
  color: #1a5276;
}

.btn-track {
  background: #1a5276;
  color: #fff;
  padding: 0.5rem 1.25rem;
}

.btn-action {
  background: #f5c842;
  color: #2c3e50;
}

.btn-return {
  background: #1a5276;
  color: #fff;
}

/* Results count */
.results-count {
  font-size: 0.9rem;
  color: #5a6a7a;
  margin-bottom: 1rem;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  background: #fdf3c7;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2a3a;
  border-bottom: 2px solid #f0e6a0;
}

.data-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef1f5;
  font-size: 0.9rem;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.ref-number {
  font-weight: 700;
  color: #1a2a3a;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  min-width: 100px;
}

.badge-open {
  background: #fdf3c7;
  color: #8a6d1b;
}

.badge-awaiting {
  background: #fdf3c7;
  color: #8a6d1b;
}

/* Info grid (3 columns) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dde3ea;
  border-radius: 10px;
  overflow: hidden;
}

.info-cell {
  padding: 1rem 1.25rem;
  border-right: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
}

.info-cell:nth-child(3n) {
  border-right: none;
}

.info-cell:nth-last-child(-n+3) {
  border-bottom: none;
}

.info-cell .info-label {
  font-size: 0.82rem;
  color: #7a8a9a;
  margin-bottom: 0.3rem;
}

.info-cell .info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
}

.info-cell .info-value.bold {
  font-weight: 700;
}

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid #dde3ea;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.tab-list {
  display: flex;
  gap: 0;
}

.tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a8a9a;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
}

.tab.active {
  color: #1a5276;
  font-weight: 700;
  border-bottom-color: #1a5276;
}

.tab-actions {
  display: flex;
  gap: 0.75rem;
}

/* Equipment detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dde3ea;
  border-radius: 10px;
  overflow: hidden;
}

.detail-cell {
  padding: 1rem 1.25rem;
  border-right: 1px solid #dde3ea;
  border-bottom: 1px solid #dde3ea;
}

.detail-cell:nth-child(3n) {
  border-right: none;
}

.detail-cell:nth-last-child(-n+3) {
  border-bottom: none;
}

.detail-cell .detail-label {
  font-size: 0.82rem;
  color: #7a8a9a;
  margin-bottom: 0.3rem;
}

.detail-cell .detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
}

.detail-cell.full-width {
  grid-column: 1 / -1;
}

.detail-cell .detail-value.description {
  font-weight: 600;
  line-height: 1.6;
}

/* Image placeholder */
.image-placeholder {
  display: inline-block;
  width: 120px;
  height: 80px;
  background: #e8f0fe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #1a5276;
  font-weight: 600;
  border: 1px solid #c8d8ec;
}

/* Equipment name in table */
.equip-name {
  font-weight: 700;
  color: #1a2a3a;
}

.equip-code {
  font-size: 0.82rem;
  color: #7a8a9a;
}
