@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap");

:root,
[data-theme="ebid"] {
  --brand: #f25b1b;
  --brand-hover: #dc4c0d;
  --brand-active: #c23e08;
  --brand-soft: #fff2eb;
  --brand-glow: rgba(242, 91, 27, 0.16);
  --ink: #1e332d;
  --ink-2: #2a433c;
  --accent: #f25b1b;
  --accent-soft: #fff2eb;
  --navy: #1e332d;
  --navy-2: #2a433c;
  --orange: #f25b1b;
  --orange-action: #f25b1b;
  --teal: #16a34a;
  --teal-2: #15803d;
  --bg: #ffffff;
  --card: #ffffff;
  --surface: #ffffff;
  --fill: #f7faf9;
  --hover: #f3f8f6;
  --line: #ebebeb;
  --line-strong: #eaeaea;
  --text: #1e332d;
  --muted: #6f6f6f;
  --muted-light: #8f8d8d;
  --nav-text: #4a5c57;
  --input-bg: #ffffff;
  --input-border: #eaeaea;
  --header-bg: #f7faf9;
  --row-odd: #fbfdfc;
  --row-hover: #f3f8f6;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(30, 51, 45, 0.04);
  --shadow: 0 8px 30px rgb(0, 0, 0, 0.015);
  --shadow-tight: 0 8px 30px rgb(0, 0, 0, 0.015);
  --shadow-lg: 0 18px 48px -12px rgba(30, 51, 45, 0.1);
  --radius: 18px;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Syne", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --color-primary: #f25b1b;
  --color-accent: #f25b1b;
  --color-base-content: #1e332d;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

html.theme-night,
html.theme-night [data-theme="ebid-night"],
[data-theme="ebid-night"] {
  --brand: #ff6b32;
  --brand-hover: #ff8555;
  --brand-active: #e85a24;
  --brand-soft: rgba(255, 107, 50, 0.14);
  --brand-glow: rgba(255, 107, 50, 0.22);
  --ink: #e8f4ef;
  --ink-2: #d5e8e0;
  --accent: #ff6b32;
  --accent-soft: rgba(255, 107, 50, 0.14);
  --orange: #ff6b32;
  --orange-action: #ff6b32;
  --navy: #e8f4ef;
  --bg: #0d1613;
  --card: #14201c;
  --surface: #14201c;
  --fill: #101a17;
  --hover: #1b2b26;
  --line: rgba(232, 244, 239, 0.1);
  --line-strong: rgba(232, 244, 239, 0.18);
  --text: #d7e8e1;
  --muted: #8ba39b;
  --muted-light: #6d847c;
  --nav-text: #b7cfc6;
  --input-bg: #101a17;
  --input-border: #2a3d37;
  --header-bg: #18241f;
  --row-odd: #121c18;
  --row-hover: #1b2b26;
  --on-brand: #ffffff;
  --color-primary: #ff6b32;
  --color-accent: #ff6b32;
  --color-primary-content: #ffffff;
  --color-accent-content: #ffffff;
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand h1, .eb-page-title h2, .hero-pane h2, .login-page .eb-page-title h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.shell, .main, .content, .work-frame { background: var(--bg); }
.side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: none;
  padding: 20px 14px 14px;
}
.brand { padding: 6px 10px 18px; margin-bottom: 10px; border-bottom-color: var(--line); }
.brand h1 { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px; border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav .group {
  padding: 16px 12px 8px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav a {
  min-height: 42px; margin: 3px 0; padding: 9px 14px; border-radius: 14px;
  font-size: 14px; font-weight: 500;
}
.hero-pane h2 span, .hero-accent { color: #f25b1b; font-weight: 500; }
.nav a.active,
html.theme-night .nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: none;
  font-weight: 600;
}
.nav a:hover { background: var(--hover); color: var(--ink); }

.top {
  min-height: 60px;
  padding: 10px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.top-context > strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.content { padding: 28px 32px 36px; }
.content:has(.eb-data-panel),
.content:has(.hall-panel) {
  padding-top: 14px;
  padding-bottom: 14px;
}
.content:has(.eb-data-panel) .eb-page-title,
.content:has(.hall-panel) .eb-page-title,
.content:has(.eb-data-panel) .eb-panel-head {
  display: none !important;
}
.content:has(.eb-data-panel) .eb-page-head:not(:has(.eb-page-actions)),
.content:has(.hall-panel) .eb-page-head:not(:has(.eb-page-actions)) {
  display: none !important;
}
.content:has(.eb-data-panel) .eb-page-head:has(.eb-page-actions),
.content:has(.hall-panel) .eb-page-head:has(.eb-page-actions) {
  margin-bottom: 10px;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.content:has(.eb-data-panel) > .eb-tabs,
.content:has(.hall-panel) > .eb-tabs {
  margin-bottom: 10px;
}
.content:has(> .eb-tabs):has(> .eb-page-head .eb-page-actions):has(.eb-data-panel) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 12px;
}
.content:has(> .eb-tabs):has(> .eb-page-head .eb-page-actions):has(.eb-data-panel) > .eb-tabs {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 10px;
}
.content:has(> .eb-tabs):has(> .eb-page-head .eb-page-actions):has(.eb-data-panel) > .eb-page-head {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 10px;
  align-self: start;
}
.content:has(> .eb-tabs):has(> .eb-page-head .eb-page-actions):has(.eb-data-panel) > .eb-data-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
}
.content:has(.hall-panel) {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.content:has(.hall-panel) > .eb-page-head,
.content:has(.hall-panel) > .eb-tabs {
  flex-shrink: 0;
}

html.embed .content:has(.hall-panel) { height: 100%; padding-bottom: 16px; }
.hall-panel {
  display: flex !important;
  flex: 1 1 0% !important;
  height: 0;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.hall-panel .eb-filter-bar { flex-shrink: 0; }
.hall-list {
  align-content: start !important;
  grid-auto-rows: min-content !important;
}
.hall-demand {
  overflow: visible !important;
  height: auto !important;
}
.hall-demand-2col {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr) !important;
}
@media (max-width: 1050px) {
  .hall-demand-2col {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr) !important;
  }
  .hall-demand-2col .hall-decision {
    grid-column: auto !important;
  }
}
.hall-panel .hall-list {
  flex: 1 1 0% !important;
  height: 0;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px 10px 18px 14px;
  align-content: start;
  grid-auto-rows: min-content;
  scrollbar-gutter: stable;
  scrollbar-width: auto !important;
  scrollbar-color: #94a3b8 #eef2f6;
}
.hall-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
}
.hall-panel .hall-list::-webkit-scrollbar {
  width: 10px;
  display: block;
}
.hall-panel .hall-list::-webkit-scrollbar-track {
  background: #eef2f6;
  border-radius: 8px;
}
.hall-panel .hall-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}
.hall-panel .hall-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.hall-money {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hall-money .hall-money-unit {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.btn { border-radius: 12px; font-weight: 600; transition: all .2s ease; }
.btn-primary, .btn-secondary, .btn-progress {
  border-color: #dc4c0d !important;
  box-shadow: 0 1px 2px rgba(242, 91, 27, 0.18), 0 8px 16px -8px rgba(242, 91, 27, 0.35) !important;
}
.btn-primary:hover, .btn-secondary:hover, .btn-progress:hover {
  box-shadow: 0 4px 16px rgba(242, 91, 27, 0.28) !important;
}
.btn-ghost {
  border-color: var(--line);
  box-shadow: none;
  border-radius: 12px;
}
.btn-ghost:hover {
  border-color: rgba(242, 91, 27, 0.35);
  color: var(--brand);
  background: var(--brand-soft);
}
.btn-sm { border-radius: 10px; }
@keyframes btn-wiggle {
  0%, 14%, 100% { transform: translateX(0) rotate(0); }
  2% { transform: translateX(-4px) rotate(-2deg); }
  4% { transform: translateX(4px) rotate(2deg); }
  6% { transform: translateX(-3px) rotate(-1.5deg); }
  8% { transform: translateX(3px) rotate(1.5deg); }
  10% { transform: translateX(-2px) rotate(-1deg); }
  12% { transform: translateX(1px) rotate(0.5deg); }
}
.btn-shake {
  transform-origin: center;
  animation: btn-wiggle 1.6s ease-in-out infinite;
}
.btn-shake:hover { animation-play-state: paused; }
.btn-xs { min-height: 28px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12px; }

.dt-pop {
  z-index: 90;
  width: 528px;
  padding: 12px 14px;
}
.dt-body { gap: 12px; }
.dt-time {
  width: 148px;
  flex: 0 0 148px;
  padding-left: 12px;
}
.dt-time-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.dt-cols { gap: 6px; height: 236px; }
.dt-col { min-width: 0; overflow-x: hidden; }
.dt-col button,
.dt-col .btn,
.dt-days button,
.dt-days .btn,
.dt-nav {
  min-width: 0;
  box-shadow: none !important;
  border-radius: 6px !important;
}
.dt-col button,
.dt-col .btn {
  width: 100%;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  line-height: 28px;
}
.dt-days button,
.dt-days .btn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 !important;
}
.dt-foot .btn { margin-left: 0; }
.dt-foot .btn[data-dt="ok"] { margin-left: auto; }

.input, .select, select, textarea.input,
.login-page input:not([type="checkbox"]):not([type="file"]) {
  border-radius: 12px !important;
  border-color: var(--input-border) !important;
  box-shadow: none !important;
}
.eb-filter-fields .input, .eb-filter-fields .select, .eb-filter-fields select {
  border-radius: 12px !important;
  border-width: 1px !important;
}

.card, .eb-panel, .eb-stat, .hall-demand, .bid-card, .work-task, .user-menu,
.login-page .auth-form-panel, .eb-dialog, .eb-drawer {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eb-data-panel { box-shadow: var(--shadow); }

.eb-page-title h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
}
.eb-page-title p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.eb-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 188px);
  justify-content: start;
  gap: 12px;
}
.eb-stat {
  width: 188px;
  max-width: 188px;
  min-height: 118px;
  padding: 18px 16px;
  box-sizing: border-box;
  transition: transform .35s ease, border-color .2s ease, box-shadow .2s ease;
}
.eb-stat:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(242, 91, 27, 0.35);
  box-shadow: 0 12px 28px rgba(242, 91, 27, 0.08);
}
.eb-stat.is-priority { background: #fff7f3; border-color: #fed7aa; }
.eb-stat-label { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.eb-stat-value {
  font-family: var(--font);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: 0;
}

.work-task {
  border-radius: 16px;
  min-height: 84px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.work-task:hover { transform: translateY(-1px); }
.work-task > .eb-icon:first-child { border-radius: 12px; background: var(--brand-soft); border-color: transparent; }

.ebid-grid.ag-theme-alpine {
  --ag-alpine-active-color: var(--brand);
  --ag-header-background-color: #f7faf9;
  --ag-selected-row-background-color: var(--brand-soft);
  --ag-row-hover-color: var(--row-hover);
  border-radius: 0 0 18px 18px;
}
.ebid-grid .ag-paging-panel { background: var(--surface); }
.ebid-grid .btn-ghost,
.cell-actions .btn-ghost { border-color: #fdba74; }

.who-avatar, .user-dock .who-avatar { background: var(--brand); }

.login-page {
  position: relative;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px) minmax(430px, 560px) 1fr;
  column-gap: 40px;
  max-width: none;
  margin: 0;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0 40% 0 0;
  pointer-events: none;
  background:
    radial-gradient(720px 560px at 18% 12%, rgba(255, 242, 235, 0.98), transparent 64%),
    radial-gradient(640px 520px at 8% 88%, rgba(242, 91, 27, 0.12), transparent 62%);
}
.hero-pane {
  position: relative;
  z-index: 1;
  grid-column: 2;
  background: transparent;
  border-right: 0;
  padding: clamp(36px, 6vh, 72px) 8px;
  transform: translateX(-64px);
}
.hero-pane h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.12;
  font-weight: 500;
  max-width: 560px;
}
.hero-pane p {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
  color: #6f6f6f;
}
.hero-logo {
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(30, 51, 45, 0.06);
}
.form-pane { position: relative; z-index: 1; grid-column: 3; background: transparent; padding: 24px 4px; justify-content: center; transform: translateX(64px); }
.login-page .auth-form-panel {
  border-radius: 18px;
  min-height: 528px;
  padding: 36px 32px;
  box-shadow: 0 8px 30px rgb(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
}
.login-page #pwdBox,
.login-page #smsBox { min-height: 168px; }
.login-page .remember { min-height: 32px; }
.login-page .mode { border: 0; box-shadow: none; }
.login-page .mode button { border: 0; box-shadow: none; }
.login-page .eb-page-title h2 {
  font-size: 28px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
}
@media (max-width: 900px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    column-gap: 0;
    padding: 0 16px;
  }
  .login-page::before { inset: 0; opacity: .55; }
  .hero-pane { display: none; }
  .form-pane { grid-column: auto; transform: none; }
}
.mode { border-radius: 12px; background: #f7faf9; border-color: #ebebeb; }
.mode button.active { color: var(--brand); border-radius: 10px; }
.eb-dialog .mode { margin: 0 0 14px; }

.eb-tabs > .eb-tab.active,
a.eb-tab.active,
button.eb-tab.active { color: var(--brand); }

.hall-money { color: var(--brand); font-family: var(--font); }
.cell-link, .foot-links a { color: var(--brand); }

html.theme-night .login-page { background: #0d1613; }
html.theme-night .login-page::before {
  background: radial-gradient(900px 640px at 18% 10%, rgba(255, 107, 50, 0.28), transparent 58%);
}
html.theme-night .login-page .hero-pane {
  background: transparent;
  color: #ffffff;
  border-right: 0;
}
html.theme-night .login-page .hero-pane h2 { color: #ffffff; }
html.theme-night .login-page .hero-pane p { color: #c5d4ce; }
html.theme-night .login-page .form-pane { background: transparent; }
html.theme-night .login-page .auth-form-panel {
  --ink: #ffffff;
  --text: #f2f8f5;
  --muted: #c5d4ce;
  --brand-soft: rgba(242, 91, 27, 0.16);
  background: #24352f !important;
  color: #f2f8f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}
html.theme-night .login-page .eb-page-title h2 {
  color: #ffffff !important;
  font-family: var(--font);
  font-weight: 700;
}
html.theme-night .login-page .eb-page-title p { color: #c5d4ce !important; }
html.theme-night .login-page .auth-form-panel label { color: #eef6f2 !important; }
html.theme-night .login-page .mode { background: #1b2a26; border-color: #3d534c; }
html.theme-night .login-page .mode button,
html.theme-night .login-page .mode .btn-ghost { color: #c5d4ce; background: transparent; border: 0; }
html.theme-night .login-page .mode button.active,
html.theme-night .login-page .mode .btn-ghost.active { background: #314840; color: #ff8a4c; }
html.theme-night .login-page .remember,
html.theme-night .login-page .check { color: #c5d4ce !important; }
html.theme-night .login-page input:not([type="checkbox"]):not([type="file"]) {
  background: #16241f !important;
  color: #ffffff !important;
  border-color: #4a635b !important;
}
html.theme-night .login-page input::placeholder { color: #9bb0a8; }
html.theme-night .login-page .btn-ghost {
  color: #eef6f2;
  background: #1b2a26;
  border-color: #4a635b;
}
html.theme-night .login-page .step-title { color: #ffffff; }
html.theme-night .login-page .step-item em { color: #c5d4ce; }
html.theme-night .login-page .upload-tile {
  background: #1b2a26;
  border-color: #4a635b;
}
html.theme-night .login-page .upload-tile strong { color: #eef6f2; }
html.theme-night .login-page .upload-tile .upload-thumb { background: rgba(255,255,255,.06); }
html.theme-night .login-page .summary {
  background: #1b2a26;
  color: #c5d4ce;
  border-color: #4a635b;
}

.eb-status-active { background: #fff2eb; color: #c2410c; border-color: #fed7aa; }
.eb-status-warning { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.tag-outer { background: #fff2eb; color: #c2410c; border-color: #fed7aa; }

.ebid-grid.ag-theme-alpine .ag-header-cell-text,
.ebid-grid.ag-theme-alpine .ag-header-cell-label {
  white-space: nowrap !important;
  overflow: hidden !important;
}
.ebid-grid .ag-cell,
.ebid-grid .ag-cell-value {
  overflow: hidden;
  white-space: nowrap;
  word-break: normal;
  text-overflow: clip;
}
.ebid-grid .ag-cell.ag-cell-wrap-text,
.ebid-grid .ag-cell.ag-cell-wrap-text .ag-cell-value {
  white-space: normal;
  word-break: break-word;
}
.ebid-grid .ag-cell .btn { flex: 0 0 auto; white-space: nowrap; }
.ebid-grid .eb-cell-actions,
.ebid-grid .ag-cell.eb-cell-actions,
.ebid-grid .ag-pinned-right-cols-container .ag-cell {
  overflow: hidden;
  padding-left: 8px;
  padding-right: 8px;
}
.cell-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
}
.eb-route-grid {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}
.eb-route-grid .eb-route-place {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 18px;
}
.eb-route-grid .eb-route-place:first-child { justify-content: flex-end; text-align: right; }
.eb-route-grid .eb-route-place:last-child { justify-content: flex-start; text-align: left; }
.eb-route-grid .eb-route-name {
  display: block;
  font-size: 13px;
  line-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.eb-route-grid .eb-route-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: 18px;
  justify-self: center;
  background: linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat;
}
.eb-route-grid .eb-route-line::before,
.eb-route-grid .eb-route-line::after {
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}
.eb-route-grid .eb-route-line::before { left: 0; }
.eb-route-grid .eb-route-line::after { right: 0; left: auto; }
.eb-route-grid .eb-route-line small {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  width: auto;
  max-width: calc(100% - 16px);
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  text-align: center;
  transform: none;
  background: var(--surface);
}
.eb-route-full .eb-route-name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
}

.hall-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 1.15fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  overflow: visible;
}
.hall-route-side { min-width: 0; }
.hall-route-side .eb-route-label {
  display: block;
  min-height: 18px;
  margin-bottom: 6px;
  line-height: 18px;
}
.hall-route-side .eb-route-name {
  display: block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hall-route-addr {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}
.hall-route-mid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 88px;
}
.hall-route-mid .eb-route-km {
  grid-column: auto;
  min-height: 18px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}
.hall-route-mid .eb-route-line {
  width: 100%;
  height: 18px;
  margin: 0;
  justify-self: stretch;
  align-self: stretch;
  background: linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat;
}
.hall-route-mid .eb-route-line::before,
.hall-route-mid .eb-route-line::after {
  top: 50%;
  transform: translateY(-50%);
}
.hall-route-address {
  display: none;
}
.hall-route-address > span {
  min-width: 0;
  text-align: left;
}

.form-grid {
  align-items: start;
}
.form-grid .eb-field,
.form-grid label,
.form-grid .val {
  text-align: left;
}
.form-grid .val {
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.eb-route-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  min-width: 0;
}
.eb-route-detail > :nth-child(3n+1) { text-align: left; justify-self: start; }
.eb-route-detail > :nth-child(3n) { text-align: right; justify-self: end; }
.eb-route-detail > :nth-child(3n+2) { text-align: center; justify-self: center; }
.eb-route-detail .eb-route-km {
  grid-column: auto;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.eb-route-detail .eb-route-line {
  width: 100%;
  justify-self: stretch;
  align-self: center;
}
.eb-route-detail .eb-route-addr {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}
.eb-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px;
}
.eb-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
}

html.theme-night .eb-stat.is-priority {
  background: rgba(255, 107, 50, 0.08);
  border-color: rgba(255, 107, 50, 0.32);
}
html.theme-night .eb-status-active,
html.theme-night .tag-outer {
  background: rgba(255, 107, 50, 0.14);
  color: #ffb089;
  border-color: rgba(255, 107, 50, 0.28);
}
html.theme-night .eb-status-warning {
  background: rgba(180, 83, 9, 0.18);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
}

.eb-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #8a9b94;
}
.eb-table th,
.eb-table td {
  border: 1px solid #8a9b94;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}
.eb-table th.req::after {
  content: " *";
  color: var(--danger, #dc2626);
  font-weight: 700;
}
.eb-table th {
  background: var(--header-bg);
  font-weight: 600;
  color: var(--ink);
}
.eb-table td .input {
  width: 100%;
}
.eb-table th.col-price,
.eb-table td.col-price {
  width: 88px;
  max-width: 96px;
}
.eb-table td.col-price .input {
  width: 80px;
  max-width: 80px;
  padding-left: 6px;
  padding-right: 4px;
}
.auth-perm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}
.auth-perm-head .auth-perm-title { margin: 0; }
.auth-perm-all { margin: 0; color: var(--ink); font-weight: 600; }
.biz-checks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.biz-checks .check {
  margin: 0;
}
html.theme-night .eb-table,
html.theme-night .eb-table th,
html.theme-night .eb-table td {
  border-color: rgba(232, 244, 239, 0.28);
}

.eb-quote-total {
  text-align: right;
}
.eb-quote-total label,
.eb-quote-total .val {
  text-align: right;
}
.eb-quote-total .val {
  font-weight: 700;
  font-size: 18px;
}
