/* 手机应用专用样式；不影响后台布局。 */
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;
  }
}

.mobile-hero-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mobile-hero-actions .button { white-space: nowrap; }

/* Each personal application is a separate, scannable record. */
.request-section { margin: 24px 0; }
.request-section > h2 { font-size: 20px; margin: 0 0 14px; }
.request-section > h2 small { font-size: 12px; font-weight: 400; color: #758596; margin-left: 6px; }
.request-list { display: grid; gap: 14px; }
.request-card { min-width: 0; background: #fff; border: 1px solid #dce5ec; border-radius: 14px; padding: 18px; box-shadow: 0 3px 12px #203d5410; }
.request-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.request-card-header h3 { margin: 0; font-size: 16px; }
.request-status { flex-shrink: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; padding: 4px 9px; }
.request-status[data-request-status="requested"] { background: #ffedd5; color: #9a3412; }
.request-status[data-request-status="approved"] { background: #e7f0ff; color: #2557a6; }
.request-status[data-request-status="paid"] { background: #e8f7ee; color: #166534; }
.request-status[data-request-status="rejected"], .request-status[data-request-status="void"] { background: #fee2e2; color: #b91c1c; }
.request-status[data-request-status="cancelled"] { background: #edf1f5; color: #657485; }
.request-amount { margin: 18px 0; font-size: clamp(22px, 6vw, 28px); font-weight: 700; line-height: 1.3; color: #21384b; overflow-wrap: anywhere; }
.request-amount > span { font-size: 13px; font-weight: 500; color: #6c7d8d; white-space: nowrap; }
.request-description { margin: 0; font-size: 14px; }
.request-description > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; margin: 10px 0; }
.request-description dt { color: #758596; }
.request-description dd { margin: 0; color: #3d5263; white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-app .request-card-footer { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 12px 0 0; border-top: 1px solid #edf1f5; text-align: left; color: #7b8b99; font-size: 11px; overflow-wrap: anywhere; }
.request-card-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.request-card-actions form { margin: 0; }
.request-withdraw { min-height: 44px; padding: 8px; gap: 6px; border: 0; background: transparent; color: #a63838; font-size: 13px; }
.request-withdraw:hover { background: #fff1f1; }
.request-withdraw:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media(max-width:360px) { .request-card { padding: 14px; } .request-card-header { align-items: flex-start; flex-wrap: wrap; } }

.request-view-more { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; color: #3b7376; background: #eaf2f3; border-radius: 8px; text-decoration: none; font-size: 14px; }
.request-view-more:hover { background: #dfecee; }
.request-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }
.request-filter h2 { margin-top: 0; font-size: 18px; }
.request-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0; font-size: 13px; }
.request-pagination > [aria-disabled] { color: #8e9ba6; padding: 9px 12px; }
.request-pagination .button { padding: 9px 12px; }

.pending-home { border-left: 4px solid #edaa40; }
.pending-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pending-heading h2 { font-size: 19px; margin: 0; }
.pending-count { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: #fff0d5; color: #9a4e08; text-align: center; font-weight: 700; }
.pending-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 0; border-top: 1px solid #edf1f5; text-decoration: none; color: #354e61; }
.pending-entry strong { color: #b76810; white-space: nowrap; }
.pending-item { overflow-wrap: anywhere; } .pending-item h3 { margin-top: 0; }
.mobile-app .action-control { min-height: 44px; padding: 8px 12px; margin-right: 8px; border: 0; background: transparent; color: #23633d; }
.mobile-app .action-control.action-danger { color: #b91c1c; }

.handled-home { border-left: 4px solid #6797cc; }
.handled-home-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #263e53; text-decoration: none; }
.handled-home-link h2 { margin: 0 0 6px; font-size: 19px; }
.handled-home-link p { margin: 0; font-size: 13px; }
.handled-home-link strong { color: #2b64a5; white-space: nowrap; }
.handled-item { overflow-wrap: anywhere; }.handled-note { white-space: pre-wrap; overflow-wrap: anywhere; }
