body.android-app {
  background: #0f172a;
}
body.android-app #app,
body.android-app #driver-tablet-app,
body.android-app #nav-win-menu {
  display: none !important;
}
body.android-app.login-lock #android-app {
  visibility: hidden;
  pointer-events: none;
}
#android-app[hidden] { display: none !important; }
#android-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.and-top {
  flex: 0 0 auto;
  background: #0f172a;
  color: #fff;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-top));
  padding-top: calc(0.7rem + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.and-top h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.and-top-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: right;
}
.and-top-meta button {
  display: block;
  margin-left: auto;
  margin-top: 0.2rem;
  background: transparent;
  border: 0;
  color: #93c5fd;
  font-size: 0.72rem;
  padding: 0;
  cursor: pointer;
}
.and-install {
  background: #1d4ed8;
  color: #fff;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.and-install[hidden] { display: none !important; }
.and-install button {
  background: #fff;
  color: #1d4ed8;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.and-pages {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.85rem 1.2rem;
}
.and-page[hidden] { display: none !important; }
.and-datebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.and-datebar input[type="date"] {
  flex: 1;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
}
.and-iconbtn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.and-sec {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0.9rem 0 0.45rem;
}
.and-driver-filter {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  box-sizing: border-box;
}
.and-card {
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.55rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.and-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}
.and-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}
.and-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}
.and-badge.unscheduled { background: #e2e8f0; color: #334155; }
.and-badge.scheduled { background: #dbeafe; color: #1d4ed8; }
.and-badge.dispatched { background: #dcfce7; color: #166534; }
.and-badge.completed { background: #f1f5f9; color: #475569; }
.and-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.and-actions button,
.and-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 0;
  padding: 0.45rem 0.75rem;
  font-weight: 650;
  font-size: 0.85rem;
  cursor: pointer;
}
.and-btn-primary { background: #2563eb; color: #fff; }
.and-btn-green { background: #16a34a; color: #fff; }
.and-btn-ghost { background: #e2e8f0; color: #0f172a; }
.and-empty {
  text-align: center;
  color: #64748b;
  padding: 1.5rem 0.5rem;
  font-size: 0.9rem;
}
.and-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  box-sizing: border-box;
}
.and-price {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}
.and-price-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}
.and-price-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.and-price-terms .and-driver-filter { margin-bottom: 0; }
.and-price-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.6rem;
}
.and-rank {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.and-rank.low { color: #166534; }
.and-card.and-rank-best {
  border: 2px solid #86efac;
  background: #f0fdf4;
}
.and-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.and-action-list button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  padding: 0.7rem 0.9rem;
}
.and-action-list button[hidden] { display: none !important; }
.and-action-list .and-action-cancel {
  background: transparent;
  color: #64748b;
  text-align: center;
}
.and-action-list button:active { background: #e2e8f0; }
.and-nav {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding-bottom: env(safe-area-inset-bottom);
}
.and-nav button {
  background: transparent;
  border: 0;
  padding: 0.55rem 0.3rem 0.45rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
.and-nav button.active { color: #2563eb; }
.and-nav svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 0.15rem;
}
.and-sheet {
  position: fixed;
  inset: 0;
  z-index: 18000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.and-sheet[hidden] { display: none !important; }
.and-sheet-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}
.and-sheet-card h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.and-sheet-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin: 0.65rem 0 0.25rem;
}
.and-sheet-card select,
.and-sheet-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  box-sizing: border-box;
}
.and-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
body.android-app .modal {
  padding: 0;
  align-items: stretch;
}
body.android-app .modal-content,
body.android-app .modal-content.wide {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  overflow: auto;
}
body.android-app #toast { z-index: 30000; }
