: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; }
