/* =========================
   BASE
========================= */
body {
  font-family: Arial, sans-serif;
  background: #f5f6f8;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1600px;
  margin: auto;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =========================
   HEADER
========================= */
.header-image {
  display: flex;
  align-items: center;
}

.logo {
  max-height: 100px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-btn {
  width: auto;              /* ✅ stop full width */
  padding: 8px 16px;
  cursor: pointer;
  touch-action: manipulation; 
}

/* Back button spacing */
.back-btn {
  margin: 10px 0;
  display: inline-block;
  cursor: pointer;
  touch-action: manipulation; 
}

/* =========================
   SEARCH
========================= */
.search-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

input, select {
  padding: 10px;
  font-size: 16px;
}

button {
  padding: 10px;
  font-size: 15px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  touch-action: manipulation; 
}

/* =========================
   TABLE CONTAINER
========================= */
.table-container {
  width: 100%;
  overflow-x: auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* =========================
   MOBILE TABLE
========================= */
.mobile-table {
  width: 100%;
  border-collapse: separate;   /* ✅ IMPORTANT */
  border-spacing: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.mobile-table th,
.mobile-table td {
  padding: 10px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Remove last borders */
.mobile-table th:last-child,
.mobile-table td:last-child {
  border-right: none;
}

.mobile-table tr:last-child td {
  border-bottom: none;
}

.mobile-table th {
  background: #f4f4f4;
  font-weight: 600;
  text-align: left;
}

/* =========================
   LIST UI
========================= */
.list-note {
  font-size: 12px;
  color: #666;
  margin: 10px 10px 25px 10px;  /* 👈 bigger bottom gap */
}

.list-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding: 0 10px;
}

.list-actions button {
  flex: 1;
}

/* =========================
   RESULTS
========================= */
.result-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* =========================
   DETAILS TABLE
========================= */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.details-table td {
  border: 2px solid #333;
  padding: 12px;
}

.details-label {
  font-weight: bold;
  background: #f2f2f2;
}

/* =========================
   TOAST
========================= */
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
}