/*
 * styles-h5-cockpit.css
 * 来源：styles.css 段2+3（第 1808-2864 行）
 * 内容：H5 V6 移动驾驶舱 UI（.boss-page / .employee-page，KPI 卡片、排行、状态条）
 *       + H5 V7 小程序风格精修（圆角、阴影、间距微调）
 * 仅 .boss-page / .employee-page 类的 H5 页面需要引用。
 * 版本：styles-cockpit-20260706
 */

/* H5 V6 mobile cockpit */
.boss-page,
.employee-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% -8%, rgba(49, 103, 255, 0.16), transparent 260px),
    linear-gradient(180deg, #f7f9ff 0, #f3f6fb 42%, #eef3fa 100%);
}

.boss-page .app-shell,
.employee-page .app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  padding: 18px 12px 92px;
}

.boss-page .topbar,
.employee-page .topbar {
  border: 0;
  border-radius: 0;
  padding: 8px 4px 12px;
  background: transparent;
  box-shadow: none;
}

.boss-page .boss-topbar {
  color: #0f172a;
}

.boss-page .boss-topbar .eyebrow,
.boss-page .boss-topbar .header-subtitle,
.employee-page .topbar .eyebrow,
.employee-page .header-subtitle {
  color: #64748b;
}

.boss-page h1,
.employee-page h1 {
  font-size: 24px;
  font-weight: 900;
}

.boss-page .header-status,
.employee-page .header-status {
  justify-content: flex-start;
}

.boss-page .status-pill,
.employee-page .status-pill {
  min-height: 30px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.h5-hero-card {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.32), transparent 150px),
    linear-gradient(135deg, #315cf6 0%, #2679ff 56%, #18a8ed 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(38, 121, 255, 0.26);
}

.h5-hero-card span,
.h5-hero-card small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.h5-hero-card strong {
  display: block;
  margin: 8px 0 2px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.h5-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
}

.h5-hero-grid span {
  text-align: center;
  font-size: 12px;
}

.h5-hero-grid b {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 20px;
}

.h5-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
  margin-top: 12px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 8px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.h5-shortcut-grid a {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.shortcut-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.shortcut-icon.blue { background: linear-gradient(135deg, #4f7dff, #2f6bff); }
.shortcut-icon.green { background: linear-gradient(135deg, #34d399, #10b981); }
.shortcut-icon.purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.shortcut-icon.orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.shortcut-icon.cyan { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.shortcut-icon.mint { background: linear-gradient(135deg, #2dd4bf, #14b8a6); }
.shortcut-icon.amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.shortcut-icon.red { background: linear-gradient(135deg, #fb7185, #ef4444); }

.boss-page .toolbar,
.employee-page .toolbar {
  margin-top: 12px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
}

.boss-page .metric-grid,
.employee-page .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.boss-page .metric-card,
.employee-page .metric-card,
.boss-page .panel,
.employee-page .panel {
  border-color: rgba(226, 232, 240, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
}

.boss-page .metric-card,
.employee-page .metric-card {
  min-height: 106px;
  padding: 14px;
}

.boss-page .metric-card strong,
.employee-page .metric-card strong {
  margin: 12px 0 8px;
  color: #102a56;
  font-size: 24px;
}

.boss-page .primary-metric,
.employee-page .primary-metric,
.employee-page .metric-card.accent {
  background: linear-gradient(180deg, #ffffff 0, #eef5ff 100%);
  border-color: #d9e6ff;
}

.boss-page .section-heading,
.employee-page .section-heading {
  align-items: center;
  margin: 18px 4px 8px;
}

.boss-page .content-grid,
.employee-page .content-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.boss-page table,
.employee-page table {
  min-width: 0;
}

.boss-page th,
.boss-page td,
.employee-page th,
.employee-page td {
  padding: 12px 4px;
  font-size: 13px;
}

.boss-page .sync-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boss-page .sync-item,
.employee-page .sync-item {
  border-color: #edf2f7;
  border-radius: 8px;
  background: #f8fbff;
}

.employee-page .employee-profile {
  align-items: flex-start;
  border: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.34), transparent 150px),
    linear-gradient(135deg, #315cf6, #4f7dff);
  color: #fff;
  box-shadow: 0 18px 34px rgba(49, 92, 246, 0.24);
}

.employee-page .employee-profile .eyebrow,
.employee-page .employee-profile .profile-meta {
  color: rgba(255, 255, 255, 0.78);
}

.employee-page .employee-profile h2 {
  color: #fff;
}

.employee-page .progress-track {
  height: 10px;
  background: #e8effa;
}

.employee-page .progress-fill {
  background: linear-gradient(90deg, #315cf6, #14b8a6);
}

.reimbursement-page .settings-intro {
  margin-top: 12px;
}

.employee-devices-page .device-stack {
  display: grid;
  gap: 10px;
}

.employee-devices-page .device-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
}

.employee-devices-page .device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employee-devices-page .device-card p {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.employee-devices-page .device-card small,
.employee-devices-page .device-empty {
  color: #64748b;
  font-size: 12px;
}

.employee-devices-page .device-empty {
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 8px;
  padding: 14px 12px;
  background: rgba(248, 250, 252, 0.92);
}

.h5-bottom-nav {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(430px, 100%);
  min-height: 66px;
  transform: translateX(50%);
  border-top: 1px solid rgba(226, 232, 240, 0.88);
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}

.h5-bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.h5-bottom-nav span {
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.h5-bottom-nav a.active,
.h5-bottom-nav a.active span {
  color: #2f6bff;
}

.h5-bottom-nav .nav-plus span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #315cf6, #2f6bff);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 12px 22px rgba(47, 107, 255, 0.3);
}

.h5-page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.h5-page-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
}

.signed-orders-page .app-shell {
  padding-bottom: 90px;
}

.signed-order-filterbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signed-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.compact-heading {
  margin: 14px 0 10px;
}

.signed-order-cards {
  display: grid;
  gap: 10px;
}

.signed-order-card {
  display: grid;
  gap: 10px;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.signed-order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.signed-order-top h3 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 17px;
}

.signed-order-top strong {
  color: #0f766e;
  font-size: 18px;
  white-space: nowrap;
}

.signed-order-money,
.signed-order-person,
.signed-order-source {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.signed-order-money span,
.signed-order-person span,
.signed-order-source span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #edf2f7;
  border-radius: 7px;
  padding: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.signed-order-money b,
.signed-order-person b,
.signed-order-source b {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 13px;
}

.signed-order-person .signed-order-customer-name {
  align-content: center;
  border-color: #bde8df;
  background: #f0fdfa;
}

.signed-order-person .signed-order-customer-name b {
  color: #0f766e;
  font-size: 16px;
}

.signed-order-profile {
  margin: 0;
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.admin-console-page .signed-order-admin-filterbar {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.admin-console-page .signed-order-admin-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
}

.signed-order-table-wrap {
  overflow-x: auto;
}

.signed-order-admin-table {
  min-width: 1480px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.pagination-bar .status-pill {
  min-width: 112px;
  justify-content: center;
}

.pagination-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.table-main-cell {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.table-main-cell span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.customer-basic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 260px;
}

.reconciliation-filterbar {
  grid-template-columns: minmax(0, 180px) minmax(0, 180px) minmax(0, 1fr);
}

.reconciliation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reconciliation-summary-card {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.reconciliation-summary-card span,
.reconciliation-summary-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.reconciliation-summary-card strong {
  display: block;
  margin: 8px 0 6px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.reconciliation-summary-card.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.reconciliation-summary-card.success strong {
  color: #166534;
}

.reconciliation-summary-card.warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.reconciliation-summary-card.warning strong {
  color: #c2410c;
}

.reconciliation-summary-card.muted {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.reconciliation-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.reconciliation-table input {
  min-width: 150px;
}

.reconciliation-input {
  max-width: 180px;
}

.reconciliation-acceptance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reconciliation-acceptance-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.reconciliation-acceptance-grid label span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.reconciliation-acceptance-grid input,
.reconciliation-acceptance-grid select,
.reconciliation-acceptance-grid textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  padding: 10px 12px;
  outline: none;
}

.reconciliation-acceptance-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.reconciliation-acceptance-grid .wide-field {
  grid-column: span 2;
}

.release-guide-panel {
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.release-guide-grid {
  margin-top: 12px;
  margin-bottom: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.release-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.release-entry-card {
  display: grid;
  gap: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
  padding: 16px;
}

.release-entry-head {
  display: grid;
  gap: 8px;
}

.release-entry-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.release-entry-head strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.4;
}

.release-entry-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.release-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.release-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.release-route-step {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.release-route-index {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.release-route-step strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.45;
}

.release-route-step p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.customer-basic-grid span {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.3;
}

/* H5 V7: mini-program cockpit polish */
.boss-page .app-shell {
  padding-top: 10px;
}

.h5-app-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 4px 4px 8px;
}

.h5-app-header .header-status {
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.h5-header-action {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

.boss-page .boss-topbar #syncHealth {
  display: none;
}

.boss-page .boss-toolbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding: 10px;
}

.boss-page .boss-toolbar label {
  gap: 4px;
}

.boss-page .boss-toolbar label span {
  font-size: 12px;
}

.boss-page .boss-toolbar input {
  min-height: 34px;
  border-radius: 8px;
  font-size: 13px;
}

.boss-page .boss-toolbar .toolbar-actions {
  grid-column: 1 / -1;
  gap: 8px;
}

.boss-page .boss-toolbar button {
  min-height: 34px;
  border-radius: 8px;
  font-size: 13px;
}

.h5-hero-card {
  min-height: 156px;
  border-radius: 8px;
  padding: 18px 16px 16px;
  margin-top: 8px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.34), transparent 126px),
    linear-gradient(135deg, #2f61ff 0%, #287cff 58%, #16a8ef 100%);
}

.h5-hero-main strong {
  font-size: 35px;
  letter-spacing: 0;
}

.h5-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.h5-hero-grid span {
  min-width: 0;
  padding: 0 2px;
  line-height: 1.25;
}

.h5-hero-grid b {
  font-size: 19px;
  white-space: nowrap;
}

.h5-shortcut-grid {
  margin-top: 12px;
  border: 0;
  padding: 16px 8px 14px;
}

.h5-shortcut-grid b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-data-overview {
  display: none;
}

.h5-ranking-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  margin-top: 12px;
}

.h5-rank-panel {
  padding: 15px 13px;
}

.h5-rank-panel .panel-header {
  margin-bottom: 8px;
}

.h5-rank-panel .panel-header h2 {
  font-size: 16px;
}

.h5-ranking-list {
  display: grid;
  gap: 8px;
}

.h5-rank-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.h5-rank-row:last-child {
  border-bottom: 0;
}

.h5-rank-no {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #e8eef7;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.rank-gold .h5-rank-no {
  background: #fbbf24;
  color: #fff;
}

.rank-silver .h5-rank-no {
  background: #94a3b8;
  color: #fff;
}

.rank-bronze .h5-rank-no {
  background: #fb923c;
  color: #fff;
}

.h5-rank-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.h5-rank-main strong,
.h5-rank-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h5-rank-main strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.2;
}

.h5-rank-main span {
  color: #8a95a6;
  font-size: 11px;
}

.h5-rank-main i {
  display: block;
  height: 5px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6bff, #15b8a6);
}

.h5-rank-row > b {
  color: #111827;
  font-size: 12px;
  white-space: nowrap;
}

.compact-ranking .h5-rank-row {
  grid-template-columns: 22px minmax(0, 1fr);
}

.compact-ranking .h5-rank-row > b {
  grid-column: 2;
  justify-self: start;
  color: #334155;
}

.h5-sales-rank-panel {
  min-height: 100%;
}

.h5-sales-row {
  grid-template-columns: 25px 30px minmax(0, 1fr) auto;
  min-height: 58px;
}

.h5-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.h5-sales-row > b {
  color: #2563eb;
  font-size: 13px;
}

.h5-empty-card {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 13px;
}

@media (min-width: 681px) {
  .boss-page .app-shell,
  .employee-page .app-shell {
    width: min(430px, 100% - 28px);
  }
}

@media (max-width: 420px) {
  .boss-page .app-shell,
  .employee-page .app-shell {
    padding-inline: 10px;
  }

  .h5-shortcut-grid {
    gap: 10px 6px;
    padding-inline: 8px;
  }

  .shortcut-icon {
    width: 38px;
    height: 38px;
  }

  .h5-hero-card {
    padding-inline: 14px;
  }

  .h5-hero-grid b {
    font-size: 17px;
  }

  .h5-ranking-grid {
    grid-template-columns: 1fr;
  }

  .compact-ranking .h5-rank-row {
    grid-template-columns: 25px minmax(0, 1fr) auto;
  }

  .compact-ranking .h5-rank-row > b {
    grid-column: auto;
    justify-self: end;
  }
}

