/* ================================================
   VINE DEPOSIT APP — Shared Page Styles
   ================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #EAECEA;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1A1A1A;
}
body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Nav bar */
.app-nav {
  width: 100%;
  background: #1F4E28;
  display: flex;
  justify-content: center;
  border-bottom: 3px solid #2D6E38;
}
.app-nav-inner {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 48px;
}
.app-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.app-nav-brand svg {
  height: 26px;
  width: auto;
}
.app-nav-brand span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff;
}
.app-nav-links {
  display: flex;
  gap: 4px;
}
.app-nav-links a {
  color: #c8e6cc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  transition: all 0.1s;
}
.app-nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.app-nav-links a.active {
  background: #2D6E38;
  color: #fff;
}

/* Page wrapper */
.page-body {
  width: 100%;
  max-width: 1400px;
  padding: 24px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Controls bar */
.controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.controls button {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 9px 20px;
  border-radius: 3px;
  border: 1px solid #D0D0D0;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.1s ease;
}
.controls button:hover { background: #f5f5f5; border-color: #999; }
.controls button.primary {
  background: #2D6E38;
  border-color: #2D6E38;
  color: #fff;
}
.controls button.primary:hover { background: #1F4E28; }
.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Page card (white panel holding the slip) */
.page {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px;
  gap: 0;
}

/* Toast / status message */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1F4E28;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  letter-spacing: 0.3px;
}
.toast.error { background: #B8232F; }
.toast.show { display: block; }

/* =============================================
   HISTORY PAGE STYLES
   ============================================= */

.search-bar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-field label {
  font-size: 10px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-field input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  font-family: Helvetica, Arial, sans-serif;
  color: #1A1A1A;
  outline: none;
}
.search-field input:focus {
  border-color: #2D6E38;
  box-shadow: 0 0 0 1px #2D6E38;
}
.search-field.grow { flex: 1; }
.search-field.grow input { width: 100%; }

.search-bar button {
  height: 32px;
  padding: 0 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #2D6E38;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.search-bar button:hover { background: #1F4E28; }

/* Results table */
.results-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.results-header {
  padding: 12px 20px;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
  color: #666;
  font-weight: 600;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.results-table th {
  background: #fafafa;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #e0e0e0;
}
.results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.results-table tr:hover td {
  background: #f8fbf8;
}
.results-table .amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.results-table .reprint-link {
  color: #2D6E38;
  font-weight: 700;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.results-table .reprint-link:hover {
  text-decoration: underline;
}
.results-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid #e0e0e0;
}
.pagination button {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  color: #333;
  font-family: Helvetica, Arial, sans-serif;
}
.pagination button:hover { background: #f5f5f5; }
.pagination button.active {
  background: #2D6E38;
  color: #fff;
  border-color: #2D6E38;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination .page-info {
  font-size: 12px;
  color: #666;
  padding: 0 8px;
}
