/* Payment voucher search — dedicated page */
.voucher-search-page {
  min-height: 100vh;
  background: #eef0f4;
}

.voucher-search-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.voucher-search-module-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -12px -8px 20px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
}

.voucher-search-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}

.voucher-search-nav-back:hover {
  color: #0f1419;
}

.voucher-search-nav-back::before {
  content: "←";
  opacity: 0.75;
}

.voucher-search-nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f6f7f9;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
}

.voucher-search-nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.voucher-search-nav-tab:hover {
  color: #0f1419;
  background: rgba(255, 255, 255, 0.72);
}

.voucher-search-nav-tab.active {
  color: #0f1419;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(15, 20, 25, 0.08);
}

.voucher-search-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.voucher-search-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f1419;
}

.voucher-search-header p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.voucher-search-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e5eb;
  border-radius: 8px;
  padding: 4px;
}

.voucher-search-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
  margin-bottom: 16px;
}

.voucher-search-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.voucher-search-form .field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.voucher-search-form .wer-input {
  min-height: 38px;
  padding: 0 0.75rem;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.voucher-search-form .wer-input:focus {
  outline: none;
  border-color: #9aa3ad;
  box-shadow: 0 0 0 3px rgba(15, 20, 25, 0.06);
}

.voucher-search-form .btn {
  min-height: 38px;
  width: auto;
  margin: 0;
  white-space: nowrap;
  padding: 0 1.25rem;
}

.voucher-search-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
  min-height: 1.25rem;
}

.voucher-search-results {
  background: #fff;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.04);
}

.voucher-search-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.voucher-search-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e31e24;
  color: #fff;
}

.voucher-search-table th.num,
.voucher-search-table td.num {
  text-align: right;
}

.voucher-search-table th.actions,
.voucher-search-table td.actions {
  width: 148px;
  text-align: right;
}

.voucher-search-table td {
  padding: 12px 14px;
  font-size: 0.84rem;
  border-bottom: 1px solid #e2e5eb;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voucher-search-table tr:hover td {
  background: #f8f9fb;
}

.voucher-search-table .voucher-no {
  font-weight: 700;
  color: #0f1419;
  word-break: break-all;
}

.voucher-search-table .customer-cell {
  font-weight: 500;
}

.voucher-search-table .staff-cell {
  font-size: 0.78rem;
  color: #6b7280;
}

.voucher-search-table .empty-row {
  text-align: center;
  color: #9ca3af;
  padding: 32px !important;
}

.voucher-search-table .actions {
  white-space: nowrap;
}

.voucher-search-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.voucher-search-actions .btn {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  width: auto;
  margin: 0;
}

@media (max-width: 900px) {
  .voucher-search-shell {
    padding: 16px 12px 32px;
  }

  .voucher-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .voucher-search-form .field--submit {
    grid-column: 1 / -1;
  }

  .voucher-search-form .field--submit .btn {
    width: 100%;
  }

  .voucher-search-table th.actions,
  .voucher-search-table td.actions {
    width: 120px;
  }
}

@media (max-width: 600px) {
  .voucher-search-form {
    grid-template-columns: 1fr;
  }

  .voucher-search-results {
    overflow-x: auto;
  }

  .voucher-search-table {
    min-width: 640px;
  }
}
