﻿html {
    -webkit-text-size-adjust: 100%;
}

/* Base mobile-friendly layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 10px;
    margin: 0;
    color: #1c1c1e;
}

/* Kiosk container – tuned for iPhone 6/6s */
#formBox,
#loginBox {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}

/* Inputs optimized for smaller iPhones */
input, select, button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    padding: 6px;
    margin: 6px 0;
    font-size: 16px !important;
    box-sizing: border-box;
    border-radius: 6px;
}

input:focus, select:focus, textarea:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
}

textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: 100%;
    padding: 6px;
    margin: 6px 0;
    font-size: 14px !important;
    box-sizing: border-box;
    border-radius: 6px;
}

/* Buttons easier to tap */
button {
 -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 500;
  padding: 8px 12px;
  background-color: #f5f5f7;
  color: #1c1c1e;
  border: 1px solid #d1d1d6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

button:hover {
  background-color: #e5e5ea;
}

button:active {
  transform: scale(0.98);
}

/* Images never overflow */
img {
    max-width: 100%;
    height: auto;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #d1d1d6;
  color: #6e6e73;
}}

#status {
  margin-top: 10px;
  font-size: 14px;
}

.success { color: green; }
.error { color: red; }

#preview {
  display: none;
  margin-top: 10px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#loginBox, #formBox {
  display: block;
}

.date-row {
  display: flex;
  gap: 6px;
  margin-bottom: 0px;
}

.date-group {
  display: flex;
  flex-direction: column; 
  flex: 1; 
}

.date-group input {
  width: 100%; 
}

#results {
  font-size: 11px;
  border-collapse: collapse;
  width: 100%;
}

#results th,
#results td {
  padding: 3px 5px;
}

#results img {
  vertical-align: middle;
}

#results img:hover {
  transform: scale(3.0);
  transition: transform 0.15s ease;
}

#results thead th {
  position: sticky;
  top: 0;
  background: #f0f0f0;
  z-index: 5;
}

#results tbody tr:hover {
  background: #e6f2ff;
  cursor: pointer;
}

#results-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  display: block;
}

.totals-row {
  position: sticky;
  bottom: 0;
  background: #f0f0f0;
  font-weight: bold;
  z-index: 6;
}

.totals-row td,
.totals-row th {
  border-top: 2px solid #999;
}


.right {
  text-align: right;
}

.left {
  text-align: left;
}
