/* admin-home-beauty-20260817 */
/* admin-home-beauty-20260817: workbench visual refresh */
/* Avoid duplicate 工作台 title above the new hero */
.admin-page:has(.admin-dash-hero) > .admin-page-head {
  display: none;
}
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  max-width: 100%;
}
.admin-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #d7e0ea;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(135deg, #f8fbff 0%, #eef3f8 55%, #f5f8fc 100%);
  box-shadow: 0 10px 28px rgba(18, 35, 58, 0.04);
}
.admin-dash-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b6fd4;
}
.admin-dash-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  color: #12233a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.admin-dash-lead {
  margin: 0.4rem 0 0;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5b6b7c;
}
.admin-dash-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.admin-dash-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}
.admin-dash-pulse::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.admin-dash-pulse.is-loading {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.admin-dash-pulse.is-loading::before {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  animation: admin-dash-blink 1s ease infinite;
}
@keyframes admin-dash-blink {
  50% { opacity: 0.35; }
}
.admin-dash-error {
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}
.admin-dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.admin-dash-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #12233a;
}
.admin-dash-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.admin-week-report,
.admin-overdue-banner,
.admin-dash-jump,
.admin-dash-section {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #d7e0ea;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 35, 58, 0.035);
  min-width: 0;
}
.admin-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.55rem;
}
.admin-week-stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.8rem;
  background: #f5f8fc;
  border: 1px solid #e8eef5;
}
.admin-week-stat span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 650;
}
.admin-week-stat strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b1f33;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.admin-dash-ok {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #ecfdf3);
  color: #166534;
  font-size: 0.92rem;
  font-weight: 650;
}
.admin-dash-ok-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.admin-overdue-banner {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.admin-overdue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.85rem;
}
.admin-overdue-col {
  min-width: 0;
}
.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.75rem), 1fr));
  gap: 0.7rem;
}
.admin-dash-card {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(18, 35, 58, 0.03);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.admin-dash-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #94a3b8;
}
.admin-dash-card.tone-work::before { background: #2563eb; }
.admin-dash-card.tone-comm::before { background: #0ea5e9; }
.admin-dash-card.tone-sales::before { background: #059669; }
.admin-dash-card.tone-ops::before { background: #64748b; }
.admin-dash-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}
.admin-dash-card.is-alert {
  border-color: #fbbf24;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.admin-dash-card.is-alert::before { background: #f59e0b; }
.admin-dash-card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.admin-dash-card-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0.1rem 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.admin-dash-card-hint {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
}
.admin-dash-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
  min-width: 0;
}
.admin-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.admin-dash-list li {
  padding: 0.55rem 0.15rem 0.65rem;
  border-bottom: 1px solid #eef2f7;
  min-width: 0;
}
.admin-dash-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-dash-list-main {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: baseline;
}
.admin-dash-list-main strong {
  font-size: 0.92rem;
  color: #12233a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-dash-list-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4ed8;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.admin-dash-list-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #64748b;
}
.admin-dash-list-sub em {
  font-style: normal;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}
.admin-dash-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
}
@media (max-width: 700px) {
  .admin-dash-hero { padding: 1rem; }
  .admin-dash-card-value { font-size: 1.35rem; }
}

/* admin-shell-beauty-20260818 */
/* admin-shell-beauty-20260818: unify remaining admin tabs with workbench look */
html body .admin-app:not(.admin-app-login) .admin-sidebar {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
  border-right: 1px solid #d7e0ea !important;
  box-shadow: 6px 0 28px rgba(18, 35, 58, 0.04) !important;
}
html body .admin-sidebar-brand {
  padding: 0.45rem 0.55rem 1rem !important;
  margin-bottom: 0.75rem !important;
  border-bottom: 1px solid #e4ebf3 !important;
}
html body .admin-sidebar-brand strong {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #0f1f33 !important;
}
html body .admin-sidebar-brand span {
  color: #64748b !important;
}
html body .admin-sidebar-link {
  border-radius: 0.8rem !important;
  padding: 0.7rem 0.8rem !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
html body .admin-sidebar-link:hover {
  background: #f1f6fb !important;
  border-color: #e2eaf3 !important;
}
html body .admin-sidebar-link.is-active {
  background: linear-gradient(90deg, #eaf2ff, #f5f9ff) !important;
  border-color: #c7d9fc !important;
  box-shadow: inset 3px 0 0 #1d4ed8 !important;
}
html body .admin-sidebar-link.is-active em {
  color: #1d4ed8 !important;
}
html body .admin-sidebar-foot {
  border-top: 1px solid #e4ebf3 !important;
  padding-top: 0.85rem !important;
}

/* Shared page head for non-home tabs */
html body .admin-page > .admin-page-head {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  margin-bottom: 1.1rem !important;
  padding: 1.05rem 1.2rem !important;
  border-radius: 1rem !important;
  border: 1px solid #d7e0ea !important;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    linear-gradient(135deg, #f8fbff 0%, #eef3f8 55%, #f5f8fc 100%) !important;
  box-shadow: 0 10px 28px rgba(18, 35, 58, 0.04) !important;
}
html body .admin-page > .admin-page-head h1 {
  margin: 0 !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #12233a !important;
}
html body .admin-page > .admin-page-head .admin-page-sub,
html body .admin-page > .admin-page-head p {
  margin: 0.35rem 0 0 !important;
  max-width: 40rem !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: #5b6b7c !important;
}
/* Keep home hero-only (no duplicate head) */
html body .admin-page:has(.admin-dash-hero) > .admin-page-head {
  display: none !important;
}

/* Toolbars / filters */
html body .admin-dash-toolbar,
html body .admin-members-toolbar,
html body .admin-rfq-toolbar,
html body .admin-mail-toolbar,
html body .admin-visits-toolbar,
html body .admin-freight-head {
  padding: 0.75rem 0.9rem !important;
  border-radius: 0.9rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(18, 35, 58, 0.03) !important;
  margin-bottom: 0.85rem !important;
}

/* Common content cards / lists */
html body .admin-quote-card,
html body .admin-lead-card,
html body .admin-member-card,
html body .admin-order-block,
html body .admin-rfq-card,
html body .admin-page .card {
  border-radius: 0.95rem !important;
  border: 1px solid #d7e0ea !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(18, 35, 58, 0.035) !important;
}
html body .admin-quote-card:hover,
html body .admin-lead-card:hover,
html body .admin-member-card:hover,
html body .admin-rfq-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08) !important;
}

/* Visits KPI strip */
html body .admin-visits-cards,
html body .admin-visits .admin-visits-cards {
  gap: 0.7rem !important;
}
html body .admin-visits-cards > *,
html body .admin-visits .kpi,
html body .admin-visits-card {
  border-radius: 0.9rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(18, 35, 58, 0.03) !important;
}

/* Orders / quotes flow strip already exists; polish bar */
html body .admin-order-next-bar,
html body .admin-flow-guide {
  border-radius: 0.9rem !important;
  border: 1px solid #d7e0ea !important;
  background: #fbfdff !important;
}

/* Soften main padding rhythm */
html body .admin-app-main {
  padding-top: 1.35rem !important;
}
@media (max-width: 900px) {
  html body .admin-page > .admin-page-head {
    padding: 0.9rem 1rem !important;
  }
}

/* admin-beautify-v2-20260825 */
/* admin-beautify-v2-20260825 — quotes / supplier / orders / filters */

/* Supplier + generic status tabs (plain buttons without .admin-chip) */
html body .admin-supplier-apps .admin-rfq-status-tabs,
html body .admin-quotes > .admin-dash-toolbar:first-of-type {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  margin-bottom: 0.85rem !important;
}
html body .admin-rfq-status-tabs button:not(.admin-chip) {
  border: 1px solid #d7e0ea !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 0.48rem 0.9rem !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  font-family: SimHei, "Heiti SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif !important;
}
html body .admin-rfq-status-tabs button:not(.admin-chip).is-active,
html body .admin-rfq-status-tabs button:not(.admin-chip):hover {
  border-color: #93c5fd !important;
}
html body .admin-rfq-status-tabs button:not(.admin-chip).is-active {
  background: #0b1f33 !important;
  color: #fff !important;
  border-color: #0b1f33 !important;
}

/* Quotes filter chips */
html body .admin-quotes .admin-dash-toolbar .btn-sm {
  border-radius: 999px !important;
  font-weight: 750 !important;
  padding: 0.45rem 0.9rem !important;
  font-family: SimHei, "Heiti SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif !important;
}

/* Flow guide card */
html body .admin-flow-guide {
  padding: 1rem 1.15rem !important;
  border-radius: 0.95rem !important;
  border: 1px solid #d7e0ea !important;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%) !important;
  box-shadow: 0 6px 18px rgba(18, 35, 58, 0.03) !important;
  margin-bottom: 0.85rem !important;
}
html body .admin-flow-guide strong {
  display: block !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #12233a !important;
  text-align: center !important;
}
html body .admin-flow-guide p,
html body .admin-flow-guide .text-muted {
  text-align: center !important;
  max-width: 52rem !important;
  margin: 0.45rem auto 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  font-weight: 650 !important;
  color: #5b6b7c !important;
}

/* Quotes panel layout */
html body .admin-quotes {
  display: grid !important;
  gap: 0.85rem !important;
  min-width: 0 !important;
}
html body .admin-quotes .admin-dash-toolbar:has(.input) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)) !important;
  gap: 0.55rem 0.65rem !important;
  align-items: end !important;
  padding: 0.85rem 1rem !important;
  border-radius: 0.9rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(18, 35, 58, 0.03) !important;
}
html body .admin-quotes .admin-dash-toolbar:has(.input) label {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}
html body .admin-quotes .admin-dash-toolbar:has(.input) .input,
html body .admin-quotes .admin-dash-toolbar:has(.input) .select {
  width: 100% !important;
  min-width: 0 !important;
}
html body .admin-quotes .admin-dash-toolbar:has(.btn) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Quote / order cards */
html body .admin-quote-card {
  border-radius: 0.95rem !important;
  border: 1px solid #d7e0ea !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(18, 35, 58, 0.035) !important;
  padding: 0.95rem 1.05rem !important;
  margin-bottom: 0.65rem !important;
}

/* Production flow strip */
html body .admin-flow-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  list-style: none !important;
  margin: 0.55rem 0 0 !important;
  padding: 0 !important;
}
html body .admin-flow-strip li {
  flex: 0 0 auto !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  white-space: nowrap !important;
  font-family: SimHei, "Heiti SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif !important;
}
html body .admin-flow-strip li.is-done {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}
html body .admin-flow-strip li.is-current {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}
html body .admin-flow-strip li.is-todo {
  opacity: 0.7 !important;
}
html body .admin-flow-strip li.is-muted {
  opacity: 0.45 !important;
}

/* Order blocks */
html body .admin-order-block {
  border-radius: 0.95rem !important;
  border: 1px solid #d7e0ea !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(18, 35, 58, 0.035) !important;
  overflow: hidden !important;
  margin-bottom: 0.65rem !important;
}
html body .admin-order-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 0.8fr) auto !important;
  gap: 0.65rem 0.85rem !important;
  align-items: center !important;
  padding: 0.95rem 1.05rem !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
}
html body .admin-order-row strong {
  font-weight: 800 !important;
  color: #12233a !important;
}
html body .admin-order-actions {
  justify-self: end !important;
}
html body .admin-order-editor {
  border-top: 1px solid #e8eef5 !important;
  background: #f8fafc !important;
  padding: 1rem 1.05rem !important;
}
html body .admin-orders-list {
  display: grid !important;
  gap: 0.75rem !important;
}

/* Supplier apps panel */
html body .admin-supplier-apps {
  display: grid !important;
  gap: 0.85rem !important;
}
html body .admin-supplier-card {
  border-radius: 0.95rem !important;
  border: 1px solid #d7e0ea !important;
  box-shadow: 0 8px 22px rgba(18, 35, 58, 0.035) !important;
  padding: 0.95rem 1.05rem !important;
}

/* Empty / loading states */
html body .admin-supplier-apps > .text-muted,
html body .admin-quotes > .text-muted,
html body .admin-dash-empty {
  margin: 0 !important;
  padding: 2.25rem 1rem !important;
  text-align: center !important;
  border-radius: 0.95rem !important;
  border: 1px dashed #cbd5e1 !important;
  background: linear-gradient(180deg, #f8fafc, #fff) !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

/* Admin page bold typography (all locales) */
html body .admin-app .admin-page-head h1,
html body .admin-app .admin-dash-title,
html body .admin-app .admin-dash-section-head h3,
html body .admin-app .admin-week-report strong,
html body .admin-app .admin-dash-card-label,
html body .admin-app .admin-dash-card-value {
  font-family: SimHei, "Heiti SC", "STHeiti", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
}

@media (max-width: 900px) {
  html body .admin-order-row {
    grid-template-columns: 1fr 1fr !important;
  }
  html body .admin-order-actions {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
  html body .admin-quotes .admin-dash-toolbar:has(.input) {
    grid-template-columns: 1fr !important;
  }
}

/* admin-supplier-s1-css-20260825 */
.admin-supplier-apps .admin-supplier-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.admin-supplier-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.admin-supplier-meta {
  display: block;
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 400;
  margin-top: 0.2rem;
}
.admin-supplier-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-supplier-detail {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
}
.admin-supplier-edit-hint {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}
.admin-supplier-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.admin-supplier-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
}
.admin-supplier-edit-grid input,
.admin-supplier-edit-grid select,
.admin-supplier-detail textarea {
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}
.admin-supplier-process-field {
  margin: 0.75rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.admin-supplier-process-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
@media (max-width: 720px) {
  .admin-supplier-edit-grid {
    grid-template-columns: 1fr;
  }
}
.admin-supplier-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.admin-supplier-margin {
  color: #047857;
  font-weight: 600;
}
.admin-supplier-quote {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
}
.supplier-orders-section {
  margin: 1.5rem 0 2rem;
}
.supplier-orders-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.supplier-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.supplier-order-card {
  padding: 1rem 1.1rem;
}
.supplier-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.supplier-order-badge {
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.supplier-order-meta {
  font-size: 0.88rem;
  margin: 0.35rem 0 0.75rem;
}
.supplier-order-form {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}
.supplier-order-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
}
.supplier-order-form input,
.supplier-order-form textarea {
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.supplier-order-note-field {
  grid-column: 1 / -1;
}
.supplier-order-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}
.supplier-order-msg {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: #047857;
  margin: 0;
}
@media (max-width: 640px) {
  .supplier-order-form {
    grid-template-columns: 1fr;
  }
}
.about-supplier-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 60%);
}
.about-supplier-cta h2 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0.5rem;
}
.about-supplier-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.about-supplier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.about-supplier-cta-en {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.about-supplier-link {
  border-color: #7dd3fc;
}
.supplier-join-done {
  color: #047857;
  font-weight: 600;
  padding: 0.75rem 0;
}
.supplier-apply-flow {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.supplier-apply-flow h3 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.supplier-apply-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.supplier-apply-flow-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.supplier-apply-flow-n {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.supplier-apply-flow-steps strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.supplier-apply-flow-steps p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}
.supplier-join-guest-login {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: #475569;
}
.supplier-join-guest-login a {
  font-weight: 600;
}
.supplier-join-linked-banner {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: #0369a1;
}
.supplier-join-status-card {
  padding: 1.25rem;
  display: grid;
  gap: 0.65rem;
}
.input-readonly {
  background: #f1f5f9;
  color: #475569;
}

/* admin-mobile-beauty-20260825 */
/* admin-mobile-beauty-20260825 — phone / tablet fixes for admin + guard desktop rules */

/* Desktop-only shell overrides (do not break mobile slide-out nav) */
@media (min-width: 901px) {
  html body .admin-app:not(.admin-app-login) .admin-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
    border-right: 1px solid #d7e0ea !important;
    box-shadow: 6px 0 28px rgba(18, 35, 58, 0.04) !important;
    position: sticky !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }
}

@media (max-width: 900px) {
  /* Restore mobile slide-out nav (override desktop shell-beauty sidebar rules) */
  html body .admin-app:not(.admin-app-login) .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(18.5rem, 86vw) !important;
    height: 100dvh !important;
    height: 100vh !important;
    z-index: 50 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.22s ease !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem 0.85rem !important;
    box-shadow: 12px 0 40px rgba(18, 35, 58, 0.18) !important;
  }
  html body .admin-app.is-nav-open .admin-sidebar {
    transform: translateX(0) !important;
  }

  /* Main content rhythm under sticky mobile bar */
  html body .admin-app-main {
    padding: 0.65rem 0.7rem 1.25rem !important;
  }

  html body .admin-page {
    padding: 0 !important;
    min-width: 0 !important;
  }

  /* Workbench hero stacks on phone */
  html body .admin-dash-hero {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.95rem 1rem !important;
    gap: 0.75rem !important;
  }
  html body .admin-dash-hero-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }

  /* Quick jump cards: 2 columns on phone */
  html body .admin-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }
  html body .admin-dash-card {
    padding: 0.75rem 0.8rem !important;
    min-width: 0 !important;
  }
  html body .admin-dash-card-value {
    font-size: 1.25rem !important;
  }
  html body .admin-dash-card-hint {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  /* Week stats + bottom lists stack */
  html body .admin-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }
  html body .admin-week-stat,
  html body .admin-week-grid > div {
    padding: 0.55rem 0.6rem !important;
  }
  html body .admin-dash-cols {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  /* Section cards full width */
  html body .admin-week-report,
  html body .admin-overdue-banner,
  html body .admin-dash-jump,
  html body .admin-dash-section {
    padding: 0.85rem 0.9rem !important;
    border-radius: 0.85rem !important;
  }

  /* Non-home tabs: compact page head */
  html body .admin-page > .admin-page-head {
    display: block !important;
    padding: 0.85rem 0.95rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 0.85rem !important;
  }
  html body .admin-page:has(.admin-dash-hero) > .admin-page-head {
    display: none !important;
  }
  html body .admin-page > .admin-page-head h1 {
    font-size: 1.15rem !important;
  }
  html body .admin-page > .admin-page-head .admin-page-sub,
  html body .admin-page > .admin-page-head p {
    font-size: 0.82rem !important;
    max-width: none !important;
  }

  /* Status chips wrap & shrink */
  html body .admin-rfq-status-tabs button:not(.admin-chip),
  html body .admin-quotes .admin-dash-toolbar .btn-sm {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.65rem !important;
  }

  /* Flow strip horizontal scroll */
  html body .admin-flow-strip {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.15rem !important;
    scrollbar-width: thin;
  }
  html body .admin-flow-strip li {
    font-size: 0.68rem !important;
    padding: 0.26rem 0.5rem !important;
  }

  /* Orders: single column card body */
  html body .admin-order-row {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
    padding: 0.85rem 0.9rem !important;
  }
  html body .admin-order-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  html body .admin-order-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Quote cards */
  html body .admin-quote-card {
    padding: 0.85rem 0.9rem !important;
  }

  /* Supplier cards */
  html body .admin-supplier-card {
    padding: 0.85rem 0.9rem !important;
  }
  html body .admin-supplier-card-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Toolbars */
  html body .admin-dash-toolbar,
  html body .admin-rfq-toolbar,
  html body .admin-members-toolbar {
    padding: 0.65rem 0.75rem !important;
  }
}

@media (max-width: 480px) {
  html body .admin-dash-grid {
    grid-template-columns: 1fr !important;
  }
  html body .admin-week-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Public site mobile: keep header usable (from prior patches) */
@media (max-width: 900px) {
  html body .site-header > .container.site-header-bar,
  html body .site-header .site-header-bar.container {
    justify-content: space-between !important;
    gap: 0.4rem !important;
  }
  html body .site-header .site-header-actions {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
  }
  html body .site-subnav-track {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
