/* 手机应用专用样式；不影响后台布局。 */
body.mobile-app {
  background: #edf3f5;
}
.mobile-app main.mobile-shell {
  margin: 0 auto;
  max-width: 640px;
  min-height: 100vh;
  padding: 0 0 90px;
  background: #f5f8fa;
}
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #123d45;
  color: white;
}
.mobile-header a {
  color: white;
  font-size: 22px;
  font-weight: 800;
}
.mobile-header small {
  font-size: 12px;
  font-weight: 400;
}
.mobile-header > span {
  font-size: 12px;
  border: 1px solid #6b9a9f;
  padding: 4px 9px;
  border-radius: 20px;
}
.mobile-app .page {
  padding: 20px 16px;
}
.mobile-app h1 {
  font-size: 24px;
  margin: 0 0 12px;
}
.mobile-app h2 {
  font-size: 19px;
}
.mobile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #627984;
}
.mobile-account form {
  margin: 0;
}
.mobile-hero {
  background: #dceeea;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 18px;
}
.mobile-hero p {
  color: #3c6563;
}
.mobile-hero .button {
  margin-top: 8px;
}
.mobile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mobile-metrics .card {
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: #53717a;
}
.mobile-metrics strong {
  display: block;
  font-size: 28px;
  color: #123d45;
}
.mobile-app .card {
  border-radius: 14px;
  min-width: 0;
}
.mobile-app .form-grid {
  grid-template-columns: 1fr;
}
.mobile-app .form-grid .full {
  grid-column: 1;
}
.mobile-app input,
.mobile-app select,
.mobile-app textarea {
  font-size: 16px;
  min-height: 44px;
  max-width: 100%;
}
.mobile-app button,
.mobile-app .button {
  min-height: 44px;
}
.mobile-app .mobile-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 640px);
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #d6e1e6;
  padding: 12px 4px calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
}
.mobile-nav a {
  padding: 8px;
  color: #176d6a;
  font-size: 14px;
}
.mobile-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mobile-search input {
  flex: 1;
  min-width: 120px;
  width: 100%;
}
.mobile-search select {
  flex: 1;
  min-width: 140px;
}
.order-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.mobile-app .actions {
  flex-wrap: wrap;
}
.mobile-app .card > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.mobile-app footer {
  font-size: 11px;
  padding: 12px;
  text-align: center;
}
.mobile-app .pagination {
  flex-wrap: wrap;
}
.mobile-app .parts-row {
  display: flex;
  flex-wrap: wrap;
}
.mobile-app .parts-row input {
  width: 100%;
}
@media print {
  .mobile-header,
  .mobile-account,
  .mobile-nav {
    display: none !important;
  }
  .mobile-app main.mobile-shell {
    max-width: none;
    padding: 0;
  }
  .mobile-app .page {
    padding: 0;
  }
}
