:root { --primary: #b45309; --primary-dark: #92400e; --primary-soft: #fef3c7; }
.hero { background: linear-gradient(135deg, #78350f 0%, #b45309 55%, #f59e0b 100%); }
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mb-0 { margin-bottom: 0; }
.menu-toggle { display: none; }
.row-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); min-width: 0; }
.row-line:first-child, h3 + .row-line { border-top: 0; }
.row-main { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.row-meta { flex: 0 0 auto; color: var(--gray); font-size: .9rem; white-space: nowrap; }
.row-meta.code { font-family: ui-monospace, monospace; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row-form label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 0; font-weight: 600; font-size: .92rem; }
.row-form input, .row-form select { width: 100%; }
.field input, .field select, .field textarea, .row-form input, .row-form select, .search-wrap input { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.search-wrap { max-width: 520px; margin: 14px auto 12px; } .search-wrap input { width: 100%; }
.choice { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.pick { max-height: 240px; overflow-y: auto; padding: 8px 0; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.status-rejected { background: #fee2e2; color: #991b1b; } .status-approved { background: #dcfce7; color: #166534; } .status-pending { background: #fef3c7; color: #92400e; }
.gps-bar { text-align: center; font-weight: 700; padding: 10px; border-radius: 10px; margin: 8px 0 12px; background: #e2e8f0; }
.gps-bar.ok { background: #dcfce7; color: #166534; } .gps-bar.moving { background: #fee2e2; color: #991b1b; } .gps-bar.off { background: #fef3c7; color: #92400e; }
.stop-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.stop-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 800; }
.kid { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.kid-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 1.05rem; }
.kid button { min-height: 46px; min-width: 76px; }
.kid .tag { font-size: .85rem; font-weight: 700; color: var(--gray); white-space: nowrap; }
body.moving .kid button.tap, body.moving #bulk button { opacity: .4; }
.btn-danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .topbar .container { position: relative; }
  .topbar .topnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 12px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 16px rgba(15,23,42,.12); z-index: 60; }
  .topbar .topnav.open { display: flex; } .topbar .topnav a { padding: 11px 0; } .topbar .topnav a.btn { margin-top: 6px; }
  .fb-hide { display: none; }
}

.tabs-row { display: flex; gap: 8px; justify-content: center; margin: 0 0 14px; }
.tabs-row button { flex: 1 1 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: inherit; }
.tabs-row button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.trip-update { padding: 6px 0; border-top: 1px solid var(--border); font-size: .95rem; overflow-wrap: anywhere; }
.trip-update .row-meta { display: block; }

.lang-picker { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin: 0 0 10px; }
.lang-picker select { width: auto; max-width: 180px; padding: 6px 8px; font-size: .9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--white); }

.demo-bar { background: #fef3c7; color: #78350f; text-align: center; font-size: .9rem; font-weight: 600; padding: 7px 12px; }
.demo-bar a { color: inherit; text-decoration: underline; }
.demo-box { text-align: center; }
.demo-box .btn-row { justify-content: center; }

/* homepage screenshot carousel (same as FieldTripPro; added 2026-11-07). Click a picture to see it full size. */
.hc-section { padding-top: 40px; padding-bottom: 30px; }
.hc-section h2 { text-align: center; margin: 0 0 16px; }
.hero-carousel { background: #fff; color: #1f2937; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); padding: 12px 12px 10px; width: 100%; max-width: 900px; margin: 0 auto; box-sizing: border-box; min-width: 0; outline-offset: 4px; }
.hc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.hc-track::-webkit-scrollbar { display: none; }
.hc-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.hc-desktop, .hc-phone { aspect-ratio: 8 / 5; border-radius: 10px; overflow: hidden; background: #eef3f8; display: flex; justify-content: center; align-items: flex-start; }
.hc-desktop img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hc-phone { background: linear-gradient(135deg, #e2e8f0, #f8fafc); align-items: center; }
.hc-phone img { height: 94%; width: auto; border: 6px solid #1f2937; border-radius: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); display: block; object-fit: cover; object-position: top; }
.hc-slide figcaption { padding: 10px 6px 2px; font-weight: 600; font-size: .95rem; text-align: center; min-height: 3em; }
.hc-slide figcaption::after { content: "  🔍 Tap to enlarge"; font-weight: 500; color: #64748b; font-size: .85em; white-space: nowrap; }
.hc-controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 6px; }
.hc-prev, .hc-next { border: 1px solid #cfd8e3; background: #fff; border-radius: 999px; width: 40px; height: 40px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--primary); }
.hc-dots { display: flex; gap: 8px; align-items: center; }
.hc-dot { position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: #c5d0dd; cursor: pointer; }
.hc-dot::after { content: ''; position: absolute; inset: -14px; }
.hc-dot[aria-current="true"] { background: var(--primary); transform: scale(1.25); }
.hc-track img { cursor: zoom-in; }
.hc-big { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 10px; cursor: zoom-out; }
.hc-big img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.hc-big p { color: #fff; font-weight: 600; text-align: center; margin: 0; }
.hc-big-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; }
@media (min-width: 1200px) { .hero-carousel { max-width: 1040px; } }
