:root {
  --color-primary: #2F6FED;
  --color-primary-dark: #1a5cd6;
  --color-primary-light: #eef4ff;
  --color-success: #1F8F63;
  --color-success-light: #edf8f3;
  --color-warning: #B7791F;
  --color-warning-light: #fff7e6;
  --color-danger: #C2413A;
  --color-danger-light: #fff1f0;
  --color-purple: #7156D9;
  --color-purple-light: #f4f0ff;
  --color-text: #1D2430;
  --color-text-muted: #667085;
  --color-border: #D9DEE8;
  --color-bg: #F6F7F9;
  --color-card: #FFFFFF;
  --color-nav: #202938;
  --color-nav-text: #a8c4e0;
  --color-nav-active: #2F6FED;
  --nav-width: 220px;
  --nav-collapsed-width: 64px;
  --topbar-height: 54px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --font: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.layout {
  display: flex;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.layout.nav-collapsed .sidebar {
  width: var(--nav-collapsed-width);
}

.sidebar {
  position: relative;
  z-index: 30;
  width: var(--nav-width);
  background: var(--color-nav);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.18s ease;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  background: var(--color-bg);
}

.content.caesar-content-loading {
  opacity: 0.72;
  pointer-events: none;
}

.sidebar-logo {
  padding: 18px 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-logo::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--color-primary);
  box-shadow: inset -5px -5px 0 rgba(255,255,255,0.22);
  flex-shrink: 0;
}

.nav-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 0;
}

.layout.nav-collapsed .nav-scroll {
  overflow-y: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 16px;
  color: var(--color-nav-text);
  border-radius: 6px;
  margin: 3px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-scroll > .nav-item,
.nav-scroll > .nav-parent {
  margin-bottom: 6px;
}

.nav-parent {
  position: relative;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-item.active {
  background: rgba(47,111,237,0.14);
  color: #fff;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-nav-active);
}

.nav-icon {
  width: 16px;
  height: 16px;
  margin-right: 9px;
  color: currentColor;
  opacity: 0.48;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 0.72;
}

.nav-icon svg,
.nav-arrow svg,
.topbar-chevron svg,
.topbar-user-icon svg,
.topbar-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-label-ai {
  background: linear-gradient(135deg, #8b5cf6, #5b7cfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-arrow {
  margin-left: auto;
  color: currentColor;
  width: 14px;
  height: 14px;
  opacity: 0.72;
  transition: transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-parent.open .nav-arrow {
  transform: rotate(90deg);
}

.nav-sub {
  display: none;
}

.nav-parent.open .nav-sub {
  display: block;
}

.nav-sub .nav-item {
  min-height: 34px;
  margin: 2px 10px 2px 35px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-sub .nav-item.active {
  background: rgba(47,111,237,0.14);
  color: #fff;
}

.nav-child .nav-label {
  font-weight: 500;
}

.layout.nav-collapsed .sidebar-logo {
  justify-content: center;
  gap: 0;
  padding: 18px 0;
  font-size: 0;
}

.layout.nav-collapsed .nav-scroll > .nav-item,
.layout.nav-collapsed .nav-scroll > .nav-parent > .nav-item {
  justify-content: center;
  width: 42px;
  min-height: 42px;
  margin: 4px auto 10px;
  padding: 0;
}

.layout.nav-collapsed .nav-scroll > .nav-item .nav-icon,
.layout.nav-collapsed .nav-scroll > .nav-parent > .nav-item .nav-icon {
  margin-right: 0;
}

.layout.nav-collapsed .nav-scroll > .nav-item .nav-label,
.layout.nav-collapsed .nav-scroll > .nav-parent > .nav-item .nav-label,
.layout.nav-collapsed .nav-scroll > .nav-parent > .nav-item .nav-arrow {
  display: none;
}

.layout.nav-collapsed .nav-parent.open .nav-sub {
  display: none;
}

.layout.nav-collapsed .nav-parent:hover .nav-sub {
  position: fixed;
  top: auto;
  left: calc(var(--nav-collapsed-width) - 8px);
  z-index: 20;
  display: block;
  min-width: 148px;
  padding: 8px;
  background: var(--color-nav);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.layout.nav-collapsed .nav-sub .nav-item {
  justify-content: flex-start;
  min-height: 32px;
  margin: 1px 0;
  padding: 7px 10px;
}

.layout.nav-collapsed .nav-sub .nav-label {
  display: block;
}

.layout.nav-collapsed .nav-scroll > .nav-item[data-title]:hover::after {
  content: attr(data-title);
  position: fixed;
  left: calc(var(--nav-collapsed-width) - 2px);
  top: auto;
  z-index: 20;
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  background: var(--color-nav);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.4;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.breadcrumb .current {
  color: var(--color-primary);
  font-weight: 600;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease;
}

.topbar-user:hover {
  background: #f2f4f7;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.avatar-xl {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.topbar-notify {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
}

.topbar-notify:hover {
  background: #f2f4f7;
}

.notify-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
  border: 1px solid #fff;
}

.notify-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-danger);
  color: #fff;
  border: 1px solid #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-weight: 700;
}

.topbar-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-chevron {
  width: 14px;
  height: 14px;
  color: currentColor;
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-user-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-toggle:hover {
  background: #f2f4f7;
  color: var(--color-text);
}

.avatar-dark {
  background: var(--color-nav);
}

.page-tabs {
  height: 44px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 24px 0;
  overflow-x: auto;
  flex-shrink: 0;
}

.page-tab {
  height: 34px;
  min-width: 0;
  max-width: 136px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--color-border);
  border-bottom-color: transparent;
  border-radius: 5px 5px 0 0;
  background: #f8fafc;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.page-tab:hover {
  color: var(--color-primary);
  background: #fff;
}

.page-tab.active {
  background: #fff;
  color: var(--color-primary);
  border-color: #bfd5ff;
  border-bottom-color: #fff;
}

.page-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-tab-close {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.page-tab-close:hover {
  background: #eef2f7;
  color: var(--color-text);
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.kpi-grid {
  display: grid;
  gap: 14px;
}

.kpi-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.kpi-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 4px solid var(--color-primary);
}

.kpi-card.blue {
  border-left-color: var(--color-primary);
}

.kpi-card.green {
  border-left-color: var(--color-success);
}

.kpi-card.orange {
  border-left-color: var(--color-warning);
}

.kpi-card.red {
  border-left-color: var(--color-danger);
}

.kpi-card.purple {
  border-left-color: var(--color-purple);
}

.kpi-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
}

.kpi-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.kpi-trend {
  margin-top: 8px;
  font-size: 12px;
}

.kpi-trend.up {
  color: var(--color-success);
}

.kpi-trend.down {
  color: var(--color-danger);
}

.kpi-trend.flat {
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-danger-outline {
  background: #fff;
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-danger-outline:hover {
  background: var(--color-danger-light);
}

.btn-warning {
  background: var(--color-warning);
  color: #fff;
}

.btn-warning-outline {
  background: #fff;
  color: var(--color-warning);
  border-color: var(--color-warning);
}

.btn-warning-outline:hover {
  background: #fff7ed;
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-sm {
  min-height: 24px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 16px;
}

.btn-lg {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 14px;
  line-height: 20px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

th {
  background: #f0f3f8;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
  color: #53657d;
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #f8fafc;
}

.table-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-action button,
.table-action a {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
}

.table-action .danger {
  color: var(--color-danger);
}

.table-action .warning {
  color: var(--color-warning);
}

.table-action .muted {
  color: var(--color-text-muted);
}

.table-more {
  position: relative;
  display: inline-flex;
}

.table-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.table-more-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  transform: translateY(1px);
}

.table-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 92px;
  padding: 6px;
  display: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.table-more.open .table-more-menu {
  display: grid;
  gap: 2px;
}

.table-action .table-more-menu button,
.table-action .table-more-menu a {
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.table-action .table-more-menu button:hover,
.table-action .table-more-menu a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

tr[data-href] {
  cursor: pointer;
}

.table-input {
  height: 36px;
  min-width: 92px;
  padding: 5px 10px;
}

.table-row-delete {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-danger);
  font-size: 12px;
  cursor: pointer;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tag-blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.tag-green {
  background: var(--color-success-light);
  color: var(--color-success);
}

.tag-orange {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.tag-red {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.tag-gray {
  background: #f2f4f7;
  color: var(--color-text-muted);
}

.tag-purple {
  background: var(--color-purple-light);
  color: var(--color-purple);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(194,65,58,0.08);
  flex-shrink: 0;
}

.status-dot-red {
  color: var(--color-danger);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-sm {
  max-width: 420px;
}

.modal-md {
  max-width: 620px;
}

.modal-lg {
  max-width: 740px;
}

.modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.form-label .req,
.req {
  color: var(--color-danger);
}

.form-control,
.table-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control:hover,
.table-input:hover {
  border-color: #c9d2df;
}

.form-control:focus,
.table-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.10);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  margin-top: 5px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.form-section-title {
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 700;
}

.schedule-cost-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e6ebf2;
  border-radius: var(--radius-md);
  background: #f6f8fb;
  color: var(--color-text);
  font-size: 13px;
}

.cost-table-wrap {
  margin-bottom: 12px;
}

.schedule-add-cost {
  margin-bottom: 12px;
}

.schedule-cost-total {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 12px 14px;
  border: 1px solid #dce4ef;
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 700;
}

.schedule-ai-card {
  margin-top: 12px;
}

.list-page-panel {
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: var(--radius-lg);
}

.list-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.list-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.filter-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 16px;
}

.filter-card-compact {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.filter-row {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 10px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 176px;
  flex: 0 1 220px;
}

.filter-card-compact .filter-item {
  min-width: 0;
  flex: 0 0 220px;
}

.filter-item-sm,
.filter-card-compact .filter-item-sm {
  min-width: 0;
  flex: 0 0 136px;
}

.filter-item-wide {
  min-width: 300px;
  flex-basis: 318px;
}

.filter-card-compact .filter-item-wide {
  min-width: 0;
  flex: 0 0 318px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 500;
  color: #6b778c;
}

.filter-item input,
.filter-item select {
  width: 100%;
  height: 32px;
  padding: 5px 10px;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.filter-item input::placeholder {
  color: #a7b0bf;
}

.filter-item input:hover,
.filter-item select:hover {
  border-color: #c9d2df;
}

.filter-item input:focus,
.filter-item select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.10);
}

.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-range input {
  min-width: 0;
  width: 136px;
}

.date-range span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.filter-card-compact .filter-item-status {
  min-width: 0;
  flex: 0 0 136px;
}

.filter-card-compact .filter-item-sm select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.filter-actions .btn {
  height: 32px;
  padding: 5px 14px;
}

.filter-card-compact .filter-actions .btn,
.filter-card-compact .filter-item input,
.filter-card-compact .filter-item select {
  height: 36px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.list-count {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.text-muted {
  color: var(--color-text-muted);
}

.table-main-link {
  font-weight: 600;
}

.product-thumb {
  display: inline-block;
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}

.thumb-blue {
  background: #2F6FED;
}

.thumb-green {
  background: #1F8F63;
}

.thumb-orange {
  background: #F59E0B;
}

.thumb-purple {
  background: #7156D9;
}

.thumb-red {
  background: #C2413A;
}

.thumb-cyan {
  background: #06A6B8;
}

.thumb-yellow {
  background: #FACC15;
}

.thumb-pink {
  background: #EC4899;
}

.product-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-type-card {
  min-height: 106px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.product-type-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.08);
}

.product-type-icon {
  font-size: 22px;
  line-height: 1;
}

.product-type-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.product-type-card small {
  display: block;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .list-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-page-actions {
    justify-content: flex-start;
  }

  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .list-page-panel {
    padding: 16px;
  }

  .filter-item,
  .filter-item-sm,
  .filter-item-wide,
  .filter-card-compact .filter-item,
  .filter-card-compact .filter-item-sm,
  .filter-card-compact .filter-item-wide {
    min-width: 100%;
    flex-basis: 100%;
  }

  .filter-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-card-compact .filter-item-date-range,
  .filter-card-compact .filter-item-status {
    min-width: 100%;
    flex-basis: 100%;
  }

  .date-range {
    width: 100%;
  }

  .date-range input {
    width: auto;
    flex: 1 1 0;
  }

  .product-type-grid {
    grid-template-columns: 1fr;
  }
}

.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 16px;
}

.tab-item {
  padding: 9px 18px;
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tab-item:hover {
  color: var(--color-text);
}

.tab-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  margin-left: 5px;
  padding: 1px 6px;
  background: #f2f4f7;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.tab-item.active .tab-badge {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager-btn {
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pager-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pager-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb-bar a {
  color: var(--color-primary);
}

.breadcrumb-bar .sep {
  color: var(--color-border);
}

.breadcrumb-bar .current {
  color: var(--color-text);
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
}

.timeline-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 1px;
  height: 38px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-dot::after {
  display: none;
}

.timeline-time {
  font-size: 12px;
  color: var(--color-text-muted);
}

.timeline-text {
  margin-top: 3px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
}

.steps {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-circle.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.step-circle.done {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.step-label {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.step-label.active {
  color: var(--color-primary);
}

.step-label.done {
  color: var(--color-success);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 10px;
}

.step-line.done {
  background: var(--color-success);
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
}

.progress-fill.green {
  background: var(--color-success);
}

.progress-fill.orange {
  background: var(--color-warning);
}

.progress-fill.red {
  background: var(--color-danger);
}

.todo-bar {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.todo-item:hover {
  background: #f2f4f7;
}

.todo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.todo-dot.red {
  background: var(--color-danger);
}

.todo-dot.orange {
  background: var(--color-warning);
}

.todo-count {
  font-weight: 700;
  color: var(--color-danger);
}

.workspace-select-page {
  min-height: 100vh;
  background: #f5f7fb;
}

.workspace-topbar {
  height: 54px;
  padding: 0 32px;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid #d9e0ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-brand {
  color: #182131;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workspace-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.workspace-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-username {
  font-size: 13px;
  font-weight: 500;
}

.workspace-main {
  min-height: calc(100vh - 54px);
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace-panel {
  width: min(620px, 100%);
  min-height: 0;
  background: #fff;
  border: 1px solid #d9e0ef;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(29,36,48,0.075);
  display: block;
  overflow: hidden;
}

.workspace-intro {
  padding: 42px 36px;
  background: #182131;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.workspace-intro-kicker {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.workspace-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: #182131;
}

.workspace-subtitle {
  margin: 0 0 28px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.workspace-insight {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.workspace-insight div {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

.workspace-insight strong,
.workspace-insight span {
  display: block;
}

.workspace-insight strong {
  font-size: 20px;
  line-height: 1.25;
  color: #fff;
}

.workspace-insight span {
  margin-top: 4px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

.workspace-picker {
  padding: 32px 34px 30px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workspace-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workspace-card {
  position: relative;
  background: #fff;
  border: 1px solid #d9e0ef;
  border-radius: 12px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
  overflow: hidden;
}

.workspace-card:hover {
  border-color: #aebbd2;
  background: #fbfdff;
  box-shadow: 0 8px 22px rgba(29,36,48,0.06);
  transform: translateX(3px);
}

.workspace-card.active {
  border-color: var(--color-primary);
  background: #f8fbff;
  box-shadow: 0 10px 26px rgba(47,111,237,0.13);
}

.workspace-card.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--color-primary);
}

.workspace-card-head {
  width: 100%;
  min-height: 70px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
}

.workspace-card-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.workspace-logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.workspace-logo-blue {
  background: var(--color-primary);
}

.workspace-logo-green {
  background: var(--color-success);
}

.workspace-logo-orange {
  background: var(--color-warning);
}

.workspace-company {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #182131;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workspace-card-desc {
  display: block;
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-actionbar {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.workspace-selected-label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.workspace-selected {
  color: #182131;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .workspace-main {
    align-items: flex-start;
  }

  .workspace-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .workspace-intro {
    padding: 30px 28px;
  }

  .workspace-insight {
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workspace-main {
    padding: 20px 14px 28px;
  }

  .workspace-panel {
    border-radius: 18px;
  }

  .workspace-intro,
  .workspace-picker {
    padding-left: 20px;
    padding-right: 20px;
  }

  .workspace-title {
    font-size: 24px;
  }

  .workspace-insight {
    grid-template-columns: 1fr;
  }

  .workspace-card-head,
  .workspace-actionbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-card-head {
    gap: 12px;
  }

  .workspace-actionbar .btn {
    width: 100%;
  }
}

.alert {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.alert-blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(47,111,237,0.24);
}

.alert-green {
  background: var(--color-success-light);
  color: var(--color-success);
  border-color: rgba(31,143,99,0.24);
}

.alert-orange {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border-color: rgba(183,121,31,0.24);
}

.alert-red {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border-color: rgba(194,65,58,0.24);
}

.finance-link-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 12px;
}

.finance-link-title {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.finance-link-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.finance-link-item {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fi-label {
  color: var(--color-text-muted);
}

.fi-val {
  color: var(--color-success);
  font-weight: 600;
}

.fi-no {
  color: var(--color-primary);
  cursor: pointer;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.ai-btn:hover {
  opacity: 0.9;
}

.ai-suggestion-card {
  background: linear-gradient(135deg,#f0f4ff,#f5f0ff);
  border: 1px solid rgba(113,86,217,0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 12px;
}

.ai-suggestion-title {
  font-size: 12px;
  font-weight: 600;
  color: #5b21b6;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ai-title-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-title-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-suggestion-content {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.7;
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  font-size: 11px;
}

.data-footnote {
  background: #f2f4f7;
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: var(--radius-md);
}

.data-footnote-title {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.data-footnote-content {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.empty-icon {
  margin-bottom: 12px;
  font-size: 48px;
  opacity: 0.4;
}

.empty-text {
  font-size: 14px;
}

.mobile-frame {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mobile-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.mobile-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.mobile-topbar-back {
  font-size: 20px;
  cursor: pointer;
}

.mobile-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 70px;
}

.mobile-tabbar {
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  max-width: 390px;
  width: 100%;
  z-index: 100;
}

.mobile-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--color-text-muted);
  font-size: 11px;
  cursor: pointer;
}

.mobile-tabbar-item.active {
  color: var(--color-primary);
}

.mobile-tabbar-icon {
  font-size: 20px;
}

.mobile-section {
  padding: 12px 16px;
}

.mobile-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 12px;
}

.mobile-card-body {
  padding: 14px 16px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  z-index: 200;
  display: none;
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  color: var(--color-text);
  text-align: left;
}

.dropdown-item:hover {
  background: #f2f4f7;
}

.dropdown-item.danger {
  color: var(--color-danger);
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
}

.drawer-overlay {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  background: rgba(0,0,0,0.36);
}

.drawer-modal {
  width: min(520px, 92vw);
  max-width: none;
  min-height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.drawer-overlay.show .drawer-modal {
  animation: drawer-slide-in 0.24s cubic-bezier(0.2, 0, 0, 1) both;
  transform: translateX(0);
}

@keyframes drawer-slide-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-overlay.show .drawer-modal {
    animation: none;
  }
}

.drawer-modal .modal-header {
  padding: 18px 20px;
}

.drawer-modal .modal-body {
  padding: 20px;
}

.modal-confirm,
.product-confirm-modal {
  width: min(380px, calc(100vw - 40px));
  border-radius: var(--radius-md);
  box-shadow: 0 10px 32px rgba(29,36,48,0.16);
}

.modal-confirm .modal-header,
.product-confirm-modal .modal-header {
  padding: 16px 18px 12px;
  border-bottom: 0;
}

.modal-confirm .modal-title,
.product-confirm-modal .modal-title {
  font-size: 16px;
  line-height: 24px;
}

.modal-confirm .modal-close,
.product-confirm-modal .modal-close {
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.modal-confirm .modal-body,
.product-confirm-modal .modal-body {
  padding: 4px 18px 18px;
}

.modal-confirm .modal-center-text,
.product-confirm-modal .modal-center-text {
  margin: 0;
  text-align: left;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 22px;
}

.modal-confirm .modal-footer,
.product-confirm-modal .modal-footer {
  padding: 12px 18px 16px;
  border-top: 0;
  gap: 8px;
}

.modal-confirm .btn,
.product-confirm-modal .btn {
  min-height: 32px;
  padding: 4px 15px;
  font-size: 14px;
  line-height: 22px;
}

.table-action-more,
.product-row-more {
  position: relative;
}

.table-action .table-action-more .table-more-toggle,
.product-row-more .table-more-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  line-height: 22px;
  outline: none;
}

.table-action .table-action-more .table-more-toggle::after,
.product-row-more .table-more-toggle::after {
  border-top-width: 5px;
  transform: translateY(1px);
}

.table-action .table-action-more .table-more-toggle:hover,
.product-row-more .table-more-toggle:hover {
  color: var(--color-primary-dark);
}

.table-action .table-action-more .table-more-toggle:focus-visible,
.product-row-more .table-more-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(47,111,237,0.18);
  border-radius: var(--radius-sm);
}

.action-dropdown-menu,
.product-more-menu {
  min-width: 132px;
  padding: 4px;
  border-radius: var(--radius-md);
}

.action-dropdown-menu .dropdown-item,
.product-more-menu .dropdown-item {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 20px;
}

.merchant-login-page {
  min-height: 100vh;
  background: #fff;
}

.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: #fff;
  background: linear-gradient(145deg, #0f2744 0%, #2563eb 100%);
  overflow: hidden;
}

.login-brand-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.login-brand-subtitle {
  margin: 12px 0 40px;
  font-size: 18px;
  color: rgba(255,255,255,0.86);
}

.login-feature-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

.login-feature-icon {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border: 1.8px solid rgba(255,255,255,0.76);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.login-feature-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid rgba(255,255,255,0.88);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.rank-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-badge.top {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.login-copyright {
  position: absolute;
  left: 60px;
  bottom: 34px;
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 480px;
  min-height: 100vh;
  background: #fff;
  padding: 40px 60px;
}

.login-card {
  width: 360px;
}

.login-title {
  margin: 12px 0 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
}

.login-subtitle {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.login-field {
  margin-bottom: 14px;
}

.login-field .form-control {
  height: 42px;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background: #f2f4f7;
  color: var(--color-text);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
  font-size: 13px;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.login-check input {
  margin: 0;
}

.login-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 13px;
}

.login-full-btn {
  width: 100%;
  height: 42px;
}

.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.wechat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1fbb5c;
  display: inline-block;
}

.captcha-row {
  display: grid;
  grid-template-columns: 60% 36%;
  gap: 4%;
  align-items: center;
}

.captcha-box {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f2f4f7;
  color: #475467;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  user-select: none;
}

.sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: center;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-text);
}

.page-meta {
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-stack {
  display: grid;
  gap: 16px;
}

.todo-bar.dashboard-todos {
  justify-content: space-between;
}

.dashboard-todos .todo-item {
  color: var(--color-text);
  font-size: 13px;
  min-height: 30px;
}

.dashboard-todos .todo-count {
  color: var(--color-text);
}

.ai-suggestion-card.dashboard-ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}

.ai-suggestion-card.dashboard-ai .ai-suggestion-title {
  font-size: 14px;
  margin-bottom: 7px;
}

.link-primary {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.link-primary:hover {
  color: var(--color-primary-dark);
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  align-items: stretch;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.segmented-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-toggle {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chart-toggle.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.line-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid-line {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--color-text-muted);
  font-size: 11px;
}

.chart-line-fill {
  fill: rgba(47,111,237,0.14);
}

.chart-line-stroke {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pie-slice-blue {
  stroke: #2F6FED;
}

.pie-slice-green {
  stroke: #1F8F63;
}

.pie-slice-orange {
  stroke: #B7791F;
}

.pie-slice-purple {
  stroke: #7156D9;
}

.pie-card-body {
  display: grid;
  place-items: center;
  gap: 14px;
}

.pie-chart {
  width: min(220px, 100%);
  height: auto;
  transform: rotate(-90deg);
}

.pie-legend {
  width: 100%;
  display: grid;
  gap: 8px;
}

.pie-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.swatch-blue {
  background: #2F6FED;
}

.swatch-green {
  background: #1F8F63;
}

.swatch-orange {
  background: #B7791F;
}

.swatch-purple {
  background: #7156D9;
}

.swatch-red {
  background: #dc2626;
}

.swatch-gray {
  background: #94a3b8;
}

.table-row-link {
  cursor: pointer;
}

.rank-change {
  font-weight: 700;
}

.rank-change.up {
  color: var(--color-success);
}

.rank-change.down {
  color: var(--color-danger);
}

@media (max-width: 1180px) {
  .dashboard-chart-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .kpi-grid-5,
  .kpi-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kpi-grid-3,
  .kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .login-split {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 42vh;
    padding: 44px 28px 76px;
  }

  .login-copyright {
    left: 28px;
    bottom: 28px;
  }

  .login-form-panel {
    width: 100%;
    min-height: 58vh;
    padding: 36px 24px;
  }

  .login-card {
    width: min(360px, 100%);
  }

  .page-head,
  .ai-suggestion-card.dashboard-ai {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
  }

  .page-meta {
    white-space: normal;
  }

  .todo-bar.dashboard-todos {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .kpi-grid-5,
  .kpi-grid-6 {
    grid-template-columns: 1fr;
  }

  .segmented-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.portal-page {
  --portal-card-h: 74px;
  --portal-card-gap: 15px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #f5f7fb;
}

.portal-panel {
  width: min(430px, 100%);
  min-height: 486px;
  padding: 36px 32px 28px;
  background: #fff;
  border: 1px solid #d9e0ef;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(29,36,48,0.065);
}

.portal-title {
  margin: 0;
  color: #182131;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.portal-subtitle {
  margin: 11px 0 32px;
  color: #66738a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.35px;
  text-align: center;
}

.portal-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--portal-card-gap);
}

.portal-card {
  position: relative;
  z-index: 1;
  min-height: var(--portal-card-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 21px 14px 23px;
  border: 1px solid #d9e0ef;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.portal-selection {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: var(--portal-card-h);
  border: 1px solid #aebbd2;
  border-radius: 9px;
  background: #f8fbff;
  box-shadow: 0 7px 18px rgba(29,36,48,0.055);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.26s cubic-bezier(.2,.8,.2,1), opacity 0.18s ease;
}

.portal-grid:has(.portal-card:nth-of-type(1):hover) .portal-selection,
.portal-grid:has(.portal-card:nth-of-type(1):focus-visible) .portal-selection {
  opacity: 1;
  transform: translateY(0);
}

.portal-grid:has(.portal-card:nth-of-type(2):hover) .portal-selection,
.portal-grid:has(.portal-card:nth-of-type(2):focus-visible) .portal-selection {
  opacity: 1;
  transform: translateY(calc(var(--portal-card-h) + var(--portal-card-gap)));
}

.portal-grid:has(.portal-card:nth-of-type(3):hover) .portal-selection,
.portal-grid:has(.portal-card:nth-of-type(3):focus-visible) .portal-selection {
  opacity: 1;
  transform: translateY(calc((var(--portal-card-h) + var(--portal-card-gap)) * 2));
}

a.portal-card:hover,
a.portal-card:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: translateX(5px);
}

a.portal-card:active {
  transform: translateX(5px) scale(0.985);
}

.portal-card-title {
  display: block;
  color: #182131;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0;
}

.portal-card-desc {
  display: block;
  margin-top: 5px;
  color: #66738a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

.portal-card-arrow {
  width: 13px;
  height: 13px;
  border-top: 2px solid #66738a;
  border-right: 2px solid #66738a;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

a.portal-card:hover .portal-card-arrow,
a.portal-card:focus-visible .portal-card-arrow {
  border-color: #4f5d73;
  transform: translateX(4px) rotate(45deg);
}

.portal-footer {
  margin-top: 32px;
  color: #66738a;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-align: center;
}

@media (max-width: 900px) {
  .portal-page {
    --portal-card-h: 74px;
    --portal-card-gap: 15px;
  }

  .portal-panel {
    min-height: auto;
    padding: 34px 24px 27px;
    border-radius: 20px;
  }

  .portal-title {
    font-size: 24px;
  }

  .portal-subtitle {
    margin: 11px 0 30px;
    font-size: 13px;
  }

  .portal-card {
    padding: 14px 20px;
  }

  .portal-card-title {
    font-size: 17px;
  }

  .portal-card-desc {
    font-size: 12px;
  }

  .portal-footer {
    margin-top: 30px;
    font-size: 10px;
    letter-spacing: 1px;
  }
}

@media (max-width: 520px) {
  .portal-page {
    --portal-card-h: 70px;
    --portal-card-gap: 12px;
    padding: 20px;
  }

  .portal-panel {
    padding: 31px 16px 24px;
    border-radius: 18px;
  }

  .portal-card {
    gap: 12px;
    padding: 13px 15px;
  }

  .portal-card-title {
    font-size: 16px;
  }

  .portal-card-desc {
    font-size: 11px;
  }
}

.product-create-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-workbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: var(--radius-lg);
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-text);
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 28px;
}

.page-title-row .page-title {
  margin: 0;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.page-back-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.page-back-link:hover,
.page-meta a:hover {
  color: var(--color-primary-dark);
}

.page-meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text-muted);
}

.page-meta a {
  color: var(--color-primary);
  font-weight: 600;
}

.page-subtitle {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
}

.product-create-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-step-panel {
  position: sticky;
  top: 0;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.product-step-panel .steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
}

.product-step {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.product-step:hover {
  background: #f6f8fb;
  color: var(--color-text);
}

.product-step.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.product-step-index {
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
}

.product-step-content {
  display: none;
}

.product-step-content.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .form-group-full {
  grid-column: 1 / -1;
}

.field-with-action,
.field-with-suffix,
.field-with-count,
.select-search {
  position: relative;
}

.field-with-action {
  display: flex;
  gap: 8px;
}

.field-with-action .form-control {
  flex: 1;
}

.field-count,
.field-suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--color-text-muted);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-with-count .form-control {
  padding-right: 54px;
}

.readonly-field {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f5f7fa;
  color: var(--color-text-muted);
  font-size: 13px;
}

.select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 15;
  display: none;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.select-search.open .select-dropdown {
  display: block;
}

.select-option {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.select-option:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.inline-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-remove {
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.cover-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.upload-box {
  width: 160px;
  height: 160px;
  border: 1px dashed #aebbd2;
  border-radius: var(--radius-md);
  background: #fbfcff;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.upload-icon {
  font-size: 28px;
  line-height: 1;
}

.cover-preview {
  position: relative;
  width: 160px;
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,#2f6fed,#70a6ff);
  border: 1px solid rgba(47,111,237,0.18);
  overflow: hidden;
}

.cover-preview::after {
  content: "欧洲十国经典游";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cover-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(24,33,49,0.52);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.textarea-foot {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: right;
}

.page-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 6px;
}

.itinerary-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.itinerary-draft-card {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.itinerary-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.itinerary-draft-title {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.itinerary-draft-card .text-muted {
  font-size: 12px;
  line-height: 20px;
}

.itinerary-draft-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.itinerary-draft-textarea {
  min-height: 220px;
}

.itinerary-draft-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.itinerary-editor.is-applied .itinerary-day-row {
  border-color: rgba(47,111,237,0.36);
  background: #f8fbff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.itinerary-day-row {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.itinerary-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.itinerary-day-title {
  font-size: 14px;
  line-height: 22px;
}

.itinerary-title-field {
  margin-bottom: 10px;
}

.itinerary-actions,
.ai-suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.icon-action-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.icon-action-btn:disabled {
  border-color: var(--color-border);
  background: #f5f7fa;
  color: #b7c0cf;
  cursor: not-allowed;
}

.icon-action-btn.danger {
  color: var(--color-danger);
}

.icon-action-btn.danger:hover:not(:disabled) {
  border-color: rgba(194,65,58,0.42);
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.itinerary-meal-grid {
  display: grid;
  grid-template-columns: minmax(132px, 0.8fr) minmax(132px, 0.8fr) minmax(132px, 0.8fr) minmax(260px, 1.4fr);
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.itinerary-field,
.checkbox-grid label,
.switch-line {
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.itinerary-field {
  display: block;
  min-width: 0;
}

.itinerary-field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.itinerary-meal-grid select,
.itinerary-meal-grid input {
  width: 100%;
  min-width: 0;
}

.itinerary-day-row textarea[data-day-desc] {
  min-height: 86px;
  resize: vertical;
}

.ai-suggestion-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(47,111,237,0.06));
}

.ai-suggestion-title {
  margin-bottom: 8px;
  color: var(--color-purple);
  font-size: 14px;
  font-weight: 700;
}

.ai-suggestion-content {
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.ai-suggestion-content ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.compact-table {
  margin-bottom: 12px;
}

.editable-price-table .table-input {
  width: 112px;
}

.profit-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.profit-summary strong {
  color: var(--color-success);
  font-size: 20px;
  line-height: 28px;
}

.profit-summary strong.warning {
  color: var(--color-danger);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 10px;
}

.setting-block {
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}

.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.switch-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.inner-switch {
  min-height: 36px;
  padding-top: 22px;
  justify-content: flex-start;
}

.conditional-fields {
  margin-top: 12px;
}

.submit-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-section {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.summary-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 22px;
}

.summary-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.summary-section dt {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.summary-section dd,
.summary-section p {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.toast-notice {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 1200;
  padding: 10px 14px;
  border: 1px solid rgba(26,127,55,0.18);
  border-radius: var(--radius-md);
  background: #f0fff4;
  color: var(--color-success);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 22px;
}

.filter-select-button {
  width: 100%;
  height: 32px;
  padding: 4px 30px 4px 11px;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.filter-select-button:hover {
  border-color: #c9d2df;
}

.filter-select-button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--color-text-muted);
  border-bottom: 1px solid var(--color-text-muted);
  transform: translateY(-65%) rotate(45deg);
}

.city-tags,
.city-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.city-tag {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 12px;
  cursor: pointer;
}

.city-tag.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.city-group {
  margin-top: 16px;
}

.city-letter {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.city-filter-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 900px) {
  .page-workbar,
  .product-create-layout {
    display: flex;
    flex-direction: column;
  }

  .product-step-panel {
    position: static;
    width: 100%;
  }

  .product-step-panel .steps {
    flex-direction: row;
    overflow-x: auto;
  }

  .product-step {
    min-width: 136px;
  }

  .form-grid,
  .itinerary-meal-grid,
  .summary-section dl,
  .cover-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .itinerary-draft-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.product-detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-hero {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.product-detail-cover {
  width: 300px;
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,#2f6fed,#70a6ff);
  border: 1px solid rgba(47,111,237,0.18);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.product-detail-cover::after {
  content: "欧洲十国经典游";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.product-detail-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-text);
}

.product-code-row,
.product-brief-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 13px;
}

.copy-icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-muted);
  line-height: 1;
  cursor: pointer;
}

.copy-icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tag-lg {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.detail-price {
  color: #d64b2a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-price small {
  font-size: 14px;
  font-weight: 600;
}

.detail-tabs-card {
  padding: 0;
  overflow: hidden;
}

.detail-tabs-card .tab-bar {
  margin: 0;
  padding: 0 20px;
  background: #fff;
}

.detail-tab-panel {
  display: none;
  padding: 20px;
}

.detail-tab-panel.active {
  display: block;
}

.description-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.description-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 44px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.description-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.description-label {
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-border);
}

.description-value {
  padding: 12px 14px;
  color: var(--color-text);
  min-width: 0;
}

.detail-section-title {
  margin: 22px 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.detail-paragraph {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.8;
}

.product-itinerary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-itinerary-item {
  display: grid;
  grid-template-columns: 72px 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
}

.product-itinerary-day {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.product-itinerary-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.product-itinerary-dot::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 1px;
  height: calc(100% + 76px);
  background: var(--color-border);
  transform: translateX(-50%);
}

.product-itinerary-item:last-child .product-itinerary-dot::after {
  display: none;
}

.product-itinerary-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.product-itinerary-desc {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.fee-box {
  padding: 14px 16px;
  background: #fbfcfe;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.fee-box-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.fee-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.table-caption-note {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.sales-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sales-chart {
  padding: 18px 18px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.sales-chart-title {
  font-size: 13px;
  font-weight: 700;
}

.sales-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f6f8fb;
}

.segmented-control button {
  min-height: 28px;
  padding: 3px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
}

.segmented-control button.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.sales-chart-canvas {
  position: relative;
}

.sales-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.sales-chart-point {
  cursor: pointer;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 142px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 12px;
  line-height: 20px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  transform: translateX(-50%);
}

.timeline-list {
  padding: 4px 0 0;
}

.warning-modal-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--color-warning-light);
  color: var(--color-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.modal-center-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.modal-center-text {
  margin: 0 0 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .product-detail-hero,
  .fee-grid {
    flex-direction: column;
    display: flex;
  }

  .product-detail-cover {
    width: 100%;
    max-width: 420px;
  }

  .sales-kpi-grid,
  .description-grid {
    grid-template-columns: 1fr;
  }

  .description-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .description-item:last-child {
    border-bottom: 0;
  }
}

.btn-danger-outline {
  background: #fff;
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-danger-outline:hover {
  background: var(--color-danger-light);
}

.schedule-detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-summary-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.schedule-summary-col {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.schedule-summary-main {
  flex: 1.3;
}

.schedule-price-col {
  flex: 0.8;
}

.schedule-code {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.schedule-summary-line {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.schedule-arrow {
  margin: 0 8px;
  color: var(--color-border);
}

.schedule-progress-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.schedule-progress,
.roster-progress {
  width: 100%;
}

.progress-fill-90 {
  width: 90%;
}

.progress-fill-93 {
  width: 93%;
}

.progress-fill-77 {
  width: 76.7%;
}

.schedule-stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 13px;
}

.schedule-tight,
.text-danger {
  color: var(--color-danger);
  font-weight: 600;
}

.schedule-price {
  color: #d64b2a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.schedule-section-title {
  margin-top: 0;
}

.schedule-basic-grid .description-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.schedule-signup-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.schedule-progress-note {
  color: var(--color-text-muted);
  font-size: 12px;
}

.schedule-finance-card {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.schedule-finance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.schedule-finance-metrics div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
}

.schedule-finance-metrics span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.schedule-finance-metrics strong {
  color: var(--color-text);
  font-size: 18px;
  line-height: 26px;
}

.schedule-finance-tip {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.schedule-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.schedule-roster-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-roster-tools .form-control {
  width: 220px;
}

.schedule-roster-table table {
  min-width: 1120px;
}

.schedule-inner-pagination {
  margin-top: 12px;
  padding: 0;
  border-top: 0;
}

.schedule-material-card summary {
  cursor: pointer;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
}

.schedule-material-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.schedule-material-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.schedule-material-list label.warning {
  color: var(--color-warning);
  font-weight: 600;
}

.schedule-supplier-table table {
  min-width: 760px;
}

.schedule-stat-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.schedule-stat-strip > span {
  min-width: 86px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
}

.schedule-stat-strip > span span {
  margin-left: 2px;
}

.schedule-cost-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.schedule-cost-alert {
  flex: 1;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.schedule-cost-drawer {
  width: min(760px, 92vw);
}

.schedule-cancel-confirm {
  width: min(480px, calc(100vw - 40px));
}

.schedule-resource-drawer {
  width: min(560px, 92vw);
}

.schedule-kpi-grid {
  margin-bottom: 18px;
}

.schedule-timeline {
  max-width: 520px;
}

.roster-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.roster-title {
  margin-top: 0;
}

.roster-progress-text {
  color: var(--color-text-muted);
  font-size: 13px;
}

.roster-mini-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roster-mini-stats span {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.roster-mini-stats strong {
  margin-left: 8px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 22px;
}

.roster-mini-stats .danger {
  border-color: rgba(194,65,58,0.2);
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.roster-mini-stats .danger strong {
  color: var(--color-danger);
}

.roster-row-danger {
  background: var(--color-danger-light);
}

.roster-group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roster-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.roster-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #f3f5f8;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

.roster-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.roster-group-title strong {
  font-size: 14px;
}

.roster-group-arrow {
  width: 14px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.roster-group-body {
  display: block;
}

.roster-group.collapsed .roster-group-body {
  display: none;
}

.roster-extra-row {
  display: none;
}

.roster-group-body.expanded .roster-extra-row {
  display: table-row;
}

.roster-expand-all {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.roster-expand-all:hover {
  color: var(--color-primary);
}

.roster-focus-row td {
  background: #fff7e6;
}

.roster-edit-drawer {
  width: min(720px, 92vw);
}

.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 16px;
  color: var(--color-text);
  font-size: 13px;
}

.import-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.import-steps span {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.import-steps span.active {
  border-color: rgba(47,111,237,0.32);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.import-step-panel {
  display: none;
}

.import-step-panel.active {
  display: block;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
}

.upload-dropzone {
  width: 100%;
  min-height: 150px;
  border: 1px dashed #adc6ff;
  border-radius: var(--radius-md);
  background: #f7fbff;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.upload-dropzone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.upload-icon {
  font-size: 28px;
}

.schedule-tab-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .schedule-summary-card,
  .schedule-cost-head,
  .roster-progress-head {
    display: flex;
    flex-direction: column;
  }

  .schedule-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .schedule-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.booking-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 0;
}

.booking-product-panel {
  flex: 0 0 30%;
  height: calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.booking-form-panel {
  flex: 1 1 70%;
  min-width: 0;
  padding: 18px 20px 20px;
}

.booking-search {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.booking-search-input {
  height: 36px;
  padding: 7px 10px;
  font-size: 14px;
}

.booking-category-tabs {
  z-index: 2;
  gap: 2px;
  margin-bottom: 8px;
  background: #fff;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.booking-category-tabs .tab-item {
  flex: 0 0 auto;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 20px;
}

.booking-product-list {
  display: grid;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  border-top: 1px solid #edf0f5;
}

.booking-product-card {
  width: 100%;
  min-height: 58px;
  padding: 8px 8px 8px 10px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.booking-product-card:hover {
  background: #f8fafc;
}

.booking-product-card.selected {
  background: #f6f9ff;
  border-left-color: var(--color-primary);
  box-shadow: inset 0 -1px 0 #dbe8ff;
}

.booking-product-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.06);
  flex: 0 0 38px;
}

.booking-product-info {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.booking-product-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-product-meta {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-product-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.booking-product-bottom strong {
  color: var(--color-primary);
  font-size: 12px;
  line-height: 17px;
}

.booking-product-bottom .tag {
  padding: 0 7px;
  font-size: 12px;
  line-height: 17px;
}

.booking-selected-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe8ff;
  border-radius: var(--radius-md);
  background: #fbfdff;
  margin-bottom: 16px;
}

.booking-section-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.booking-change-product {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.booking-section {
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.booking-section + .booking-section {
  margin-top: 16px;
}

.booking-section-title {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
}

.booking-schedule-table {
  border-radius: var(--radius-sm);
}

.booking-schedule-table tr.selected td {
  background: var(--color-primary-light);
}

.booking-schedule-table tbody tr {
  cursor: pointer;
}

.booking-seat-danger {
  color: var(--color-danger);
  font-weight: 600;
}

.booking-seat-success {
  color: var(--color-success);
  font-weight: 600;
}

.booking-traveler-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.booking-traveler-head .booking-section-title {
  margin-bottom: 0;
}

.booking-subtotal {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.booking-subtotal span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.booking-subtotal strong {
  color: var(--color-primary);
  font-size: 24px;
  line-height: 30px;
}

.booking-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.booking-count-item {
  display: grid;
  grid-template-columns: 86px auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.booking-count-label {
  font-size: 13px;
  color: var(--color-text);
}

.booking-count-hint {
  color: var(--color-text-muted);
  font-size: 12px;
}

.booking-stepper {
  display: inline-flex;
  align-items: center;
  width: 108px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.booking-stepper button {
  width: 32px;
  height: 30px;
  border: 0;
  background: #f7f9fc;
  color: var(--color-text);
  font-size: 15px;
  cursor: pointer;
}

.booking-stepper button:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.booking-stepper input {
  width: 42px;
  height: 30px;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
  text-align: center;
  outline: none;
}

.booking-form-panel .form-grid {
  gap: 14px 16px;
}

.booking-form-panel .form-group {
  margin-bottom: 0;
}

.booking-form-panel select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.booking-internal-note {
  background: #fffbe8;
}

.booking-internal-note:focus {
  background: #fffef7;
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.booking-fee-detail {
  display: grid;
  gap: 3px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.booking-fee-detail strong {
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
}

.booking-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1180px) {
  .booking-layout {
    flex-direction: column;
  }

  .booking-product-panel,
  .booking-form-panel {
    width: 100%;
    flex-basis: auto;
  }

  .booking-product-panel {
    height: auto;
    max-height: calc(100vh - 150px);
  }

}

@media (max-width: 760px) {
  .booking-count-grid,
  .booking-form-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .booking-count-item {
    grid-template-columns: 86px auto;
  }

  .booking-count-hint {
    grid-column: 2;
  }

  .booking-traveler-head,
  .booking-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.orders-filter .filter-row {
  margin-bottom: 10px;
}

.orders-filter .filter-row:last-child {
  margin-bottom: 0;
}

.orders-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.orders-filter .filter-item-status {
  flex: 0 0 180px;
}

.orders-table-wrap table {
  min-width: 1180px;
}

.orders-table-wrap th:first-child,
.orders-table-wrap td:first-child {
  width: 42px;
  text-align: center;
}

.orders-table-wrap td {
  line-height: 20px;
}

.refund-filter .filter-row {
  margin-bottom: 10px;
}

.refund-filter .filter-row:last-child {
  margin-bottom: 0;
}

.refund-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.refund-amount-range {
  flex-basis: 318px;
}

.refund-tabs .tab-item {
  position: relative;
}

.tab-corner-badge {
  position: absolute;
  top: 2px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.refund-tab-danger {
  padding-right: 20px;
}

.refund-table-wrap table {
  min-width: 1040px;
}

.refund-approval-summary {
  display: grid;
  gap: 8px;
  line-height: 22px;
}

.intent-list-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intent-filter .filter-row {
  margin-bottom: 10px;
}

.intent-filter .filter-row:last-child {
  margin-bottom: 0;
}

.intent-filter select,
.intent-modal-date-range select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.intent-table-wrap table {
  min-width: 1120px;
}

.intent-modal-date-range {
  width: 100%;
}

.intent-modal-date-range input {
  min-width: 0;
}

.intent-count-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intent-follow-timeline {
  margin-bottom: 14px;
}

.intent-ai-card {
  margin: 0 0 16px;
}

.outbound-tabs .tab-item {
  position: relative;
}

.outbound-tab-danger {
  padding-right: 20px;
}

.outbound-table-wrap table {
  min-width: 1120px;
}

.outbound-urgent {
  margin-left: 4px;
  color: var(--color-danger);
  font-weight: 700;
}

.outbound-task-card {
  margin-top: 16px;
  border-color: #fde68a;
  background: #fffbeb;
}

.outbound-task-title {
  font-size: 15px;
}

.outbound-task-subtitle {
  margin-top: 12px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.outbound-task-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.outbound-task-item {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
  text-align: left;
}

button.outbound-task-item {
  cursor: pointer;
}

.outbound-task-item.done {
  color: var(--color-success);
}

.outbound-task-item.danger {
  color: var(--color-danger);
  font-weight: 600;
}

.outbound-task-item.warning {
  color: var(--color-warning);
  font-weight: 600;
}

.outbound-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.outbound-check-all,
.outbound-method-row label,
.outbound-guest-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 13px;
}

.outbound-guest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.outbound-method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.outbound-notice-text {
  font-family: inherit;
  line-height: 22px;
}

.outbound-fee {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

.project-filter .filter-row {
  margin-bottom: 10px;
}

.project-filter .filter-row:last-child {
  margin-bottom: 0;
}

.project-filter select,
.project-form-row select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.project-amount-range {
  flex-basis: 318px;
}

.project-table-wrap table {
  min-width: 1180px;
}

.project-form-row {
  gap: 14px 16px;
}

.project-form-row .form-group {
  margin-bottom: 0;
}

.project-form-full {
  margin-bottom: 16px;
}

.project-modal-date-range,
.project-location-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-modal-date-range input,
.project-location-row select {
  min-width: 0;
}

.project-detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: 20px;
}

.project-summary-col {
  min-width: 0;
}

.project-summary-title {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 30px;
}

.project-summary-line {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.project-summary-status {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.project-summary-money {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.project-budget-amount {
  color: var(--color-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 32px;
}

.project-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.project-payment-progress {
  width: 100%;
}

.project-progress-30 {
  width: 30%;
}

.project-budget-table table,
.project-subcontract-table table {
  min-width: 980px;
}

.project-total-row td {
  background: #fbfcfe;
  font-weight: 700;
}

.project-add-cost {
  margin-top: 12px;
}

.project-ai-card {
  margin-top: 14px;
}

.project-settlement-grid {
  margin-top: 14px;
}

.contracts-filter .filter-row {
  margin-bottom: 10px;
}

.contracts-filter .filter-row:last-child {
  margin-bottom: 0;
}

.contracts-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.contracts-tabs .tab-item {
  position: relative;
}

.contracts-tab-warning {
  padding-right: 22px;
}

.tab-corner-badge-orange {
  background: var(--color-warning);
}

.contracts-table-wrap table {
  min-width: 1120px;
}

.contracts-method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.contracts-method-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 13px;
}

.receivable-kpi-grid {
  margin: 16px 0;
}

.receivable-filter .filter-row {
  margin-bottom: 10px;
}

.receivable-filter .filter-row:last-child {
  margin-bottom: 0;
}

.receivable-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.receivable-table-wrap table {
  min-width: 1120px;
}

.receipt-kpi-grid {
  margin: 16px 0;
}

.receipt-filter .filter-row {
  margin-bottom: 10px;
}

.receipt-filter .filter-row:last-child {
  margin-bottom: 0;
}

.receipt-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.receipt-table-wrap table {
  min-width: 1120px;
}

.receipt-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.method-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.method-wechat {
  background: var(--color-success);
}

.method-alipay {
  background: var(--color-primary);
}

.method-bank {
  background: var(--color-warning);
}

.method-cash {
  background: var(--color-text-muted);
}

.receipt-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.payable-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  background: #fff7ed;
}

.payable-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payable-metrics div {
  display: grid;
  gap: 4px;
}

.payable-metrics span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.payable-metrics strong {
  color: var(--color-text);
  font-size: 20px;
  line-height: 28px;
}

.amount-orange {
  color: var(--color-warning);
}

.payable-ai-card {
  padding: 12px;
  border: 1px solid rgba(113,86,217,0.28);
  border-radius: var(--radius-md);
  background: #fff;
  color: #5b21b6;
  font-size: 13px;
  line-height: 22px;
}

.payable-filter .filter-row {
  margin-bottom: 10px;
}

.payable-filter .filter-row:last-child {
  margin-bottom: 0;
}

.payable-filter select,
#payMethod,
#payAccount {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.payable-table-wrap table {
  min-width: 1180px;
}

.payable-overdue-row td {
  background: #fff5f5;
}

.payable-overdue-row:hover td {
  background: #ffecec;
}

.payment-kpi-grid {
  margin: 16px 0;
}

.payment-filter .filter-row {
  margin-bottom: 10px;
}

.payment-filter .filter-row:last-child {
  margin-bottom: 0;
}

.payment-filter select,
.payment-apply-grid select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.payment-amount-range {
  flex-basis: 318px;
}

.payment-table-wrap table {
  min-width: 1080px;
}

.payment-apply-grid {
  gap: 18px;
}

.payment-upload-full {
  margin-top: 2px;
}

.finance-reports-page {
  margin-bottom: 16px;
}

.finance-report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-range-select {
  width: 136px;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.reports-method-card {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.reports-method-card p {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.reports-method-card p:last-child {
  margin-bottom: 0;
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reports-kpi-card {
  min-height: 132px;
}

.reports-kpi-compare {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.report-chart-card,
.reports-chart-grid,
.reports-aging-card,
.reports-detail-card {
  margin-bottom: 16px;
}

.report-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.report-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-line-chart-wrap {
  height: 280px;
  overflow: hidden;
}

.report-line-chart {
  width: 100%;
  height: 280px;
  display: block;
}

.report-line-income,
.report-line-cost {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-line-income {
  stroke: var(--color-primary);
}

.report-line-cost {
  stroke: var(--color-danger);
}

.report-point-income {
  fill: var(--color-primary);
}

.report-point-cost {
  fill: var(--color-danger);
}

.reports-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.report-bar-list,
.report-aging-list {
  display: grid;
  gap: 14px;
}

.report-bar-row,
.report-aging-row {
  display: grid;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 13px;
}

.report-bar-row {
  grid-template-columns: 70px minmax(0, 1fr) 150px;
}

.report-aging-row {
  grid-template-columns: 90px minmax(0, 1fr) 160px;
}

.report-bar-row strong,
.report-aging-row strong {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.report-bar-track,
.report-aging-track {
  height: 12px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.report-bar-fill,
.report-aging-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-bar-fill.blue {
  background: var(--color-primary);
}

.report-bar-fill.green,
.aging-green {
  background: var(--color-success);
}

.report-bar-fill.purple {
  background: var(--color-purple);
}

.report-bar-fill.orange,
.aging-orange {
  background: var(--color-warning);
}

.aging-yellow {
  background: #facc15;
}

.aging-red {
  background: var(--color-danger);
}

.w-568 { width: 56.8%; }
.w-240 { width: 24%; }
.w-139 { width: 13.9%; }
.w-053 { width: 5.3%; }
.w-650 { width: 65%; }
.w-320 { width: 32%; }
.w-180 { width: 18%; }
.w-210 { width: 21%; }

.report-pie-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.report-pie-chart {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.pie-slice-gray {
  stroke: #94a3b8;
}

.reports-aging-warning {
  color: var(--color-warning);
  font-size: 13px;
  font-weight: 700;
}

.reports-aging-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff7ed;
  color: var(--color-warning);
  font-size: 13px;
  font-weight: 600;
}

.reports-table-wrap table {
  min-width: 980px;
}

.settlement-kpi-grid {
  margin: 16px 0;
}

.settlement-filter .filter-row {
  margin-bottom: 10px;
}

.settlement-filter .filter-row:last-child {
  margin-bottom: 0;
}

.settlement-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.settlement-table-wrap table {
  min-width: 1080px;
}

.settlement-detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settlement-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.settlement-head-grid {
  grid-template-columns: 1fr;
}

.settlement-head-grid .description-item {
  grid-template-columns: 132px minmax(0, 1fr);
}

.settlement-head-grid .description-item:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--color-border);
}

.settlement-head-grid .description-item:last-child {
  border-bottom: 0;
}

.settlement-head-side {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.settlement-side-label {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
}

.settlement-side-amount {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  line-height: 34px;
}

.settlement-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.settlement-side-row strong {
  color: var(--color-text);
}

.settlement-dispute-card {
  border-color: #fecaca;
  background: #fffafa;
}

.settlement-section-title {
  margin-top: 0;
}

.settlement-dispute-text {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.settlement-dispute-time {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.settlement-reply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.settlement-reply-timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #fee2e2;
}

.settlement-reply-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.settlement-reply-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 700;
}

.settlement-reply-avatar.internal {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.settlement-reply-meta {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.settlement-reply-content {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.settlement-detail-table table {
  min-width: 960px;
}

.settlement-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  background: #fff7ed;
}

.settlement-total-bar div {
  color: var(--color-text);
  font-size: 16px;
  line-height: 26px;
}

.settlement-total-bar strong {
  font-size: 24px;
  font-weight: 800;
}

.settlement-total-bar span {
  color: var(--color-warning);
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}

.invoice-tabs-card {
  margin-top: 16px;
}

.invoice-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.invoice-mini-kpis div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.invoice-mini-kpis span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.invoice-mini-kpis strong {
  color: var(--color-text);
  font-size: 18px;
  line-height: 26px;
}

.amount-blue {
  color: var(--color-primary) !important;
}

.amount-muted {
  color: var(--color-text-muted) !important;
}

.invoice-filter {
  margin-bottom: 14px;
}

.invoice-filter .filter-row {
  margin-bottom: 10px;
}

.invoice-filter .filter-row:last-child {
  margin-bottom: 0;
}

.invoice-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.invoice-table-wrap table {
  min-width: 1080px;
}

.invoice-radio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--color-text);
  font-size: 13px;
}

.invoice-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-filter .filter-row {
  margin-bottom: 10px;
}

.customer-filter .filter-row:last-child {
  margin-bottom: 0;
}

.customer-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.customer-phone-filter {
  position: relative;
}

.customer-phone-filter input {
  padding-right: 112px;
}

.customer-permission-note {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--color-warning);
  font-size: 12px;
  line-height: 18px;
  pointer-events: none;
  white-space: nowrap;
}

.customer-tag-select {
  flex-basis: 260px;
}

.customer-tag-select select[multiple] {
  height: 32px;
  overflow: hidden;
}

.customer-table-wrap table {
  min-width: 1180px;
}

.store-filter .filter-row {
  margin-bottom: 10px;
}

.store-filter .filter-row:last-child {
  margin-bottom: 0;
}

.store-filter select,
.store-form-grid select.form-control,
.store-address-grid select.form-control,
.store-products-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.store-table-wrap table {
  min-width: 1180px;
}

.store-form-grid {
  gap: 18px;
}

.store-form-grid .form-group,
.store-address-grid .form-group {
  margin-bottom: 12px;
}

.store-address-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.store-time-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.store-time-range span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.store-products-select {
  min-height: 96px;
  background-position: right 10px top 9px;
}

.role-permission-page {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: calc(100vh - 128px);
}

.role-list-card {
  flex: 0 0 280px;
  width: 280px;
}

.role-list-head,
.role-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.role-list-head .card-title,
.role-config-head .page-title {
  margin: 0;
}

.role-card-list {
  display: grid;
  gap: 8px;
}

.role-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.role-card:hover {
  border-color: #bfd3f7;
  background: #f8fbff;
}

.role-card.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.role-card strong {
  font-size: 14px;
  line-height: 22px;
}

.role-card span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.role-config-card {
  flex: 1;
  min-width: 0;
}

.role-config-card .tab-bar {
  margin-bottom: 16px;
}

.permission-tree {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-group {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.permission-group h3 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.permission-group label,
.permission-check,
.role-data-scope label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.permission-group label {
  margin: 0 16px 8px 0;
}

.role-permission-table table {
  min-width: 760px;
}

.role-data-scope {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.role-department-select {
  min-height: 96px;
}

.role-field-select,
.role-department-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.role-department-select {
  background-position: right 10px top 9px;
}

.role-field-select {
  width: 180px;
}

.ai-assistant-page {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: calc(100vh - 128px);
}

.ai-menu-card {
  flex: 0 0 280px;
  width: 280px;
}

.ai-menu-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
  background: linear-gradient(135deg, #7c3aed, #2f6fed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-feature-list {
  display: grid;
  gap: 8px;
}

.ai-feature-item {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
}

.ai-feature-item:hover {
  border-color: #bfd3f7;
  background: #f8fbff;
}

.ai-feature-item.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.ai-tip-card {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(124,58,237,0.16);
  border-radius: var(--radius-md);
  background: #f7f2ff;
}

.ai-tip-card h2 {
  margin: 0 0 8px;
  color: #5b21b6;
  font-size: 14px;
  line-height: 22px;
}

.ai-tip-card p {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 20px;
}

.ai-tip-card p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.ai-content-area {
  flex: 1;
  min-width: 0;
}

.ai-panel,
.ai-plan-panel {
  display: none;
}

.ai-panel.active,
.ai-plan-panel.active {
  display: block;
}

.ai-input-card {
  margin-bottom: 16px;
}

.ai-card-title {
  margin-top: 0;
}

.ai-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px 16px;
}

.ai-form-full {
  grid-column: 1 / -1;
}

.ai-chip-row,
.ai-check-row,
.ai-highlight-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ai-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.ai-generate-btn {
  width: 100%;
  min-height: 42px;
  font-size: 15px;
}

.ai-result-card {
  margin-bottom: 0;
}

.ai-plan-tabs {
  margin-bottom: 14px;
}

.ai-result-title {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 28px;
}

.ai-itinerary-timeline {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ai-itinerary-timeline div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.72);
}

.ai-itinerary-timeline strong {
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.ai-itinerary-timeline span {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.ai-result-actions {
  margin-top: 16px;
}

.ai-profit-input {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.ai-profit-input .form-label {
  margin-bottom: 0;
  line-height: 32px;
}

.ai-profit-input select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.ai-profit-kpis {
  margin-bottom: 14px;
}

.ai-profit-copy {
  display: grid;
  gap: 8px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.ai-profit-copy p {
  margin: 0;
}

.design-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.design-page-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.design-phone-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 210px;
  margin: 0 auto;
  padding: 26px 12px 14px;
  border: 1px solid #d7deea;
  border-radius: 18px;
  background: #f3f5f8;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: inset 0 0 0 6px #fff;
}

.design-phone-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.design-page-info {
  display: grid;
  gap: 8px;
}

.design-page-info h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
}

.design-page-info p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.design-page-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.design-page-stats span {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.design-page-actions {
  padding-top: 2px;
}

.customer-table-wrap th:first-child,
.customer-table-wrap td:first-child {
  width: 58px;
  text-align: center;
}

.avatar-blue {
  background: var(--color-primary);
}

.avatar-green {
  background: var(--color-success);
}

.avatar-orange {
  background: var(--color-warning);
}

.avatar-purple {
  background: var(--color-purple);
}

.avatar-red {
  background: var(--color-danger);
}

.avatar-cyan {
  background: #0891b2;
}

.avatar-yellow {
  background: #ca8a04;
}

.orders-radio-row {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-text);
  font-size: 13px;
}

.orders-radio-row label,
.orders-export-fields label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.orders-export-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-size: 13px;
}

.orders-locked-field {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.orders-export-alert {
  margin-bottom: 0;
}

.lock-icon {
  font-size: 13px;
  line-height: 1;
}

.order-detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 18px;
}

.order-summary-col {
  min-width: 0;
}

.order-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.order-code-row strong {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}

.order-summary-line {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.order-status-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.tag-xl {
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 800;
}

.order-status-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.order-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-desc-card {
  min-width: 0;
}

.order-desc-card .detail-section-title,
.order-panel-head .detail-section-title {
  margin-top: 0;
}

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

.order-description-grid .description-item.full {
  grid-column: 1 / -1;
}

.order-description-grid .description-item.full:nth-last-child(1),
.order-description-grid .description-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

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

.amount-strong {
  font-weight: 700;
}

.amount-red {
  color: var(--color-danger);
}

.amount-green {
  color: var(--color-success);
}

.finance-eye {
  font-size: 13px;
  cursor: help;
}

.inline-lock-btn,
.text-danger-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
}

.text-danger-btn {
  color: var(--color-danger);
}

.order-note-card,
.contract-info-card {
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
  background: #fffbeb;
  padding: 14px 16px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.order-ai-card {
  margin-top: 0;
}

.order-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tourist-progress {
  display: grid;
  gap: 8px;
  min-width: 220px;
  color: var(--color-success);
  font-size: 13px;
}

.order-progress-full {
  width: 100%;
}

.order-finance-card {
  margin: 14px 0 0;
}

.order-payable-head {
  margin-top: 22px;
}

.contract-info-card {
  border-left-color: var(--color-primary);
  background: #f8fbff;
}

.contract-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.order-log-list {
  padding: 4px 0;
}

.readonly-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--color-text);
  font-size: 13px;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  border: 1px dashed #b8c4d6;
  border-radius: var(--radius-md);
  background: #fbfcfe;
  color: var(--color-text-muted);
  font-size: 13px;
}

.receipt-result {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .orders-export-fields {
    grid-template-columns: 1fr;
  }

  .order-summary-card,
  .order-description-grid,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .order-panel-head,
  .contract-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-actions,
  .order-panel-head .btn-group {
    flex-wrap: wrap;
  }

  .order-description-grid .description-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .order-description-grid .description-item:last-child {
    border-bottom: 0;
  }

  .outbound-guest-list {
    grid-template-columns: 1fr;
  }

  .outbound-notice-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-modal-date-range,
  .project-location-row {
    align-items: stretch;
    flex-direction: column;
  }

  .project-summary-card,
  .project-settlement-grid {
    grid-template-columns: 1fr;
  }

  .payable-status-card,
  .payable-metrics {
    grid-template-columns: 1fr;
  }

  .settlement-detail-head,
  .settlement-reply-row {
    grid-template-columns: 1fr;
  }

  .settlement-total-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-mini-kpis {
    grid-template-columns: 1fr;
  }

  .store-address-grid,
  .store-time-range {
    grid-template-columns: 1fr;
  }

  .role-permission-page {
    flex-direction: column;
  }

  .role-list-card {
    width: 100%;
    flex-basis: auto;
  }

  .permission-tree {
    grid-template-columns: 1fr;
  }

  .role-config-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-assistant-page {
    flex-direction: column;
  }

  .ai-menu-card {
    width: 100%;
    flex-basis: auto;
  }

  .ai-form-grid,
  .ai-itinerary-timeline div,
  .ai-profit-input {
    grid-template-columns: 1fr;
  }

  .ai-profit-input .form-label {
    line-height: 22px;
  }

  .finance-report-actions,
  .reports-aging-tip {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-kpi-grid,
  .reports-chart-grid,
  .report-pie-body,
  .report-bar-row,
  .report-aging-row {
    grid-template-columns: 1fr;
  }

  .report-bar-row strong,
  .report-aging-row strong {
    text-align: left;
  }

  .report-range-select {
    width: 100%;
  }

  .design-page-grid {
    grid-template-columns: 1fr;
  }

  .schedule-finance-metrics,
  .schedule-signup-progress {
    grid-template-columns: 1fr;
  }

  .schedule-card-head,
  .schedule-roster-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-roster-tools .form-control {
    width: 100%;
  }
}

.operator-login-page {
  min-height: 100vh;
  background: #fff;
}

.operator-login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
}

.operator-login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 60px;
  color: #fff;
  background: linear-gradient(145deg, #0F1729 0%, #1D2430 100%);
  overflow: hidden;
}

.operator-login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.operator-login-logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #132b4f;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  flex-shrink: 0;
}

.operator-login-heading {
  margin: 40px 0 0;
  color: #fff;
  font-size: 36px;
  line-height: 46px;
  font-weight: 800;
}

.operator-login-subheading {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 24px;
}

.operator-login-features {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.operator-login-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 24px;
}

.operator-login-features li span:first-child {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.operator-login-guard {
  position: absolute;
  left: 60px;
  bottom: 34px;
  margin: 0;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  line-height: 20px;
}

.operator-login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 480px;
  min-height: 100vh;
  padding: 40px 60px;
  background: #fff;
}

.operator-login-card {
  width: 360px;
}

.operator-login-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #9f2f2a;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.operator-login-title {
  margin: 12px 0 24px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.operator-login-field {
  position: relative;
  margin-bottom: 14px;
}

.operator-login-field .form-control {
  width: 100%;
  height: 42px;
  padding-left: 42px;
  font-size: 14px;
}

.operator-password-field .form-control {
  padding-right: 42px;
}

.operator-login-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #8a94a6;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.operator-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.operator-password-toggle:hover {
  background: #f2f4f7;
  color: var(--color-text);
}

.operator-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operator-login-note {
  margin: 2px 0 20px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.operator-login-submit {
  width: 100%;
  height: 42px;
  border-color: #202938;
  background: #202938;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.operator-login-submit:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.operator-login-footer {
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.operator-login-footer p {
  margin: 0;
}

.operator-login-footer p + p {
  margin-top: 4px;
}

.operator-login-footer a {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .operator-login-layout {
    grid-template-columns: 1fr;
  }

  .operator-login-hero {
    min-height: 42vh;
    padding: 44px 28px 76px;
  }

  .operator-login-heading {
    font-size: 30px;
    line-height: 40px;
  }

  .operator-login-guard {
    left: 28px;
    bottom: 28px;
  }

  .operator-login-form-panel {
    width: 100%;
    min-height: 58vh;
    padding: 36px 24px;
  }

  .operator-login-card {
    width: min(360px, 100%);
  }
}

.operator-merchant-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.operator-merchant-table table {
  min-width: 1120px;
}

.operator-merchant-table tr[data-row-link] {
  cursor: pointer;
}

.operator-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.operator-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.operator-stepper span {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8edf5;
  color: var(--color-text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.operator-stepper li.active {
  border-color: #bfd3f7;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.operator-stepper li.active span,
.operator-stepper li.done span {
  background: var(--color-primary);
  color: #fff;
}

.operator-step-panel {
  display: none;
}

.operator-step-panel.active {
  display: block;
}

.operator-password-preview {
  position: relative;
}

.operator-password-preview .form-control {
  padding-right: 42px;
}

.operator-password-preview button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.operator-password-preview button:hover {
  background: #f2f4f7;
}

.operator-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.operator-package-card,
.operator-renew-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
}

.operator-package-card.selected,
.operator-renew-card.selected {
  border-color: var(--color-primary);
  background: #f7fbff;
  box-shadow: 0 0 0 2px rgba(47,111,237,0.08);
}

.operator-package-card input,
.operator-renew-card input {
  position: absolute;
  top: 12px;
  right: 12px;
}

.operator-package-card em {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.operator-package-card em + strong {
  margin-top: 24px;
}

.operator-package-card strong,
.operator-renew-card strong {
  color: var(--color-text);
  font-size: 16px;
  line-height: 24px;
}

.operator-package-card span,
.operator-renew-card span {
  color: var(--color-primary);
  font-size: 18px;
  line-height: 26px;
  font-weight: 800;
}

.operator-package-card small {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.operator-radio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  color: var(--color-text);
  font-size: 13px;
}

.operator-radio-row > span {
  font-weight: 700;
}

.operator-radio-row label,
.operator-module-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.operator-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.operator-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.operator-summary-card div {
  display: grid;
  gap: 4px;
}

.operator-summary-card span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.operator-summary-card strong {
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.operator-step-actions #prevCreateStep,
.operator-step-actions #confirmCreateMerchant {
  display: none;
}

.operator-renew-current {
  margin: 0 0 12px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 22px;
}

.operator-renew-current strong {
  font-weight: 800;
}

.operator-renew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.operator-renew-card {
  padding: 12px 10px;
}

.operator-renew-card strong {
  font-size: 14px;
  line-height: 22px;
}

.operator-renew-card span {
  font-size: 14px;
  line-height: 22px;
}

.operator-renew-footer {
  display: block;
}

.operator-renew-footer .btn {
  width: 100%;
}

@media (max-width: 900px) {
  .operator-package-grid,
  .operator-renew-grid,
  .operator-summary-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .operator-stepper,
  .operator-module-grid {
    grid-template-columns: 1fr;
  }
}

.operator-dashboard .kpi-card {
  min-width: 0;
}

.operator-alert-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.operator-alert-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 22px;
}

.operator-alert-strip span {
  min-width: 0;
}

.operator-alert-strip strong {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.operator-chart-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
  align-items: stretch;
}

.operator-line-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.operator-line-chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-axis-line {
  stroke: #cfd6e1;
  stroke-width: 1;
}

.operator-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operator-line.blue {
  stroke: #2F6FED;
}

.operator-line.green {
  stroke: #1F8F63;
}

.operator-line.orange {
  stroke: #B7791F;
}

.operator-line.purple {
  stroke: #7156D9;
}

.operator-line.red {
  stroke: #C2413A;
}

.operator-line.gray {
  stroke: #667085;
}

.operator-line.dashed {
  stroke-dasharray: 7 6;
}

.operator-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.operator-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.operator-chart-legend .legend-swatch {
  flex-shrink: 0;
}

.operator-pie-body {
  display: grid;
  place-items: center;
  gap: 14px;
}

.operator-pie-orange {
  stroke: #B7791F;
}

.operator-pie-blue {
  stroke: #2F6FED;
}

.operator-pie-gray {
  stroke: #667085;
}

.operator-status-table table {
  min-width: 980px;
}

@media (max-width: 1100px) {
  .operator-alert-strip,
  .operator-chart-grid {
    grid-template-columns: 1fr;
  }
}

.operator-merchant-detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.operator-merchant-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.operator-merchant-logo {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.operator-merchant-main {
  min-width: 0;
}

.operator-merchant-main h2 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
}

.operator-merchant-main p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

.operator-merchant-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.operator-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.operator-usage-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.operator-usage-item > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text);
  font-size: 13px;
}

.operator-usage-item span {
  color: var(--color-text-muted);
}

.operator-progress-50 {
  width: 50%;
}

.operator-progress-40 {
  width: 40%;
}

.operator-progress-24 {
  width: 24%;
}

.operator-progress-17 {
  width: 16.9%;
}

.operator-module-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.operator-module-permission-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-size: 13px;
}

.operator-module-permission-grid strong,
.operator-module-permission-grid small {
  display: block;
}

.operator-module-permission-grid strong {
  color: var(--color-text);
  line-height: 20px;
}

.operator-module-permission-grid small {
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.operator-tab-actions {
  margin-top: 16px;
}

.operator-check-list {
  display: grid;
  gap: 10px;
}

.operator-check-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-size: 13px;
}

.operator-check-list span {
  color: var(--color-success);
  font-weight: 700;
}

.operator-check-list strong {
  color: var(--color-text);
  font-weight: 600;
}

.operator-check-list em {
  color: var(--color-text-muted);
  font-style: normal;
}

.operator-init-alert {
  margin: 14px 0 0;
}

.operator-audit-timeline {
  display: grid;
  gap: 0;
}

.operator-audit-timeline div {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 16px 18px;
  border-left: 1px solid var(--color-border);
}

.operator-audit-timeline div::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
}

.operator-audit-timeline time {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.operator-audit-timeline p {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

@media (max-width: 900px) {
  .operator-merchant-hero,
  .operator-usage-grid,
  .operator-module-permission-grid {
    grid-template-columns: 1fr;
  }

  .operator-merchant-status {
    justify-content: flex-start;
  }

  .operator-audit-timeline div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  .operator-check-list div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operator-check-list em {
    grid-column: 2;
  }
}

.operator-package-page {
  display: grid;
  gap: 16px;
}

.operator-package-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.operator-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-left-width: 4px;
}

.operator-plan-card.basic {
  border-left-color: #667085;
}

.operator-plan-card.professional {
  border-left-color: var(--color-primary);
}

.operator-plan-card.flagship {
  border-left-color: #B7791F;
}

.operator-plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.operator-plan-badge.blue {
  background: var(--color-primary);
}

.operator-plan-badge.gold {
  background: #B7791F;
}

.operator-plan-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-right: 56px;
}

.operator-plan-head h2 {
  margin: 0 0 6px;
  color: var(--color-text);
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
}

.operator-plan-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
}

.operator-plan-head strong {
  color: var(--color-text);
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  white-space: nowrap;
}

.operator-plan-head small {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.operator-plan-meta {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
}

.operator-plan-limits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  color: var(--color-text);
  font-size: 13px;
  line-height: 20px;
  list-style: none;
}

.operator-plan-features {
  display: grid;
  gap: 8px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 20px;
}

.operator-plan-features span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.operator-plan-features span::before {
  width: 14px;
  flex: 0 0 14px;
  font-weight: 800;
}

.operator-plan-features .ok::before {
  content: "✓";
  color: var(--color-success);
}

.operator-plan-features .no {
  color: var(--color-text-muted);
}

.operator-plan-features .no::before {
  content: "✗";
  color: var(--color-danger);
}

.operator-plan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.operator-package-modal-title {
  margin-top: 4px;
}

.operator-module-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 16px;
}

.operator-module-switch-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--color-text);
  font-size: 13px;
}

.operator-package-desc {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .operator-package-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .operator-plan-head,
  .operator-module-switch-grid {
    grid-template-columns: 1fr;
  }

  .operator-plan-head {
    padding-right: 0;
  }
}

.operator-template-page .tab-bar {
  margin-bottom: 16px;
}

.operator-template-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.operator-template-table table {
  min-width: 980px;
}

.operator-page-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.operator-page-template-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.operator-page-template-card h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.operator-page-template-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
}

.operator-template-thumb {
  height: 112px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
}

.operator-template-thumb.blue {
  background: linear-gradient(135deg, #2F6FED, #8bb7ff);
}

.operator-template-thumb.orange {
  background: linear-gradient(135deg, #B7791F, #f7c56b);
}

.operator-template-thumb.green {
  background: linear-gradient(135deg, #1F8F63, #8fd9b4);
}

.operator-template-thumb.purple {
  background: linear-gradient(135deg, #7156D9, #b8a7ff);
}

.operator-template-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
}

.operator-template-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.operator-template-targets label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

.operator-template-note {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 22px;
}

@media (max-width: 1100px) {
  .operator-page-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .operator-page-template-grid,
  .operator-template-targets {
    grid-template-columns: 1fr;
  }
}

.operator-company-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.operator-company-table table {
  min-width: 1080px;
}

.operator-component-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.operator-component-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.operator-component-preview {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 28px;
}

.operator-component-preview.blue {
  background: linear-gradient(135deg, #eaf2ff, #cfe1ff);
}

.operator-component-preview.green {
  background: linear-gradient(135deg, #eaf8f1, #c8f0dc);
}

.operator-component-preview.orange {
  background: linear-gradient(135deg, #fff7e6, #ffe2ad);
}

.operator-component-preview.purple {
  background: linear-gradient(135deg, #f4f0ff, #ddd4ff);
}

.operator-component-preview.gray {
  background: linear-gradient(135deg, #f3f5f8, #dce2ea);
}

.operator-component-preview.red {
  background: linear-gradient(135deg, #fff1f0, #ffd6d2);
}

.operator-component-card h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.operator-component-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 1280px) {
  .operator-component-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .operator-component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .operator-component-grid {
    grid-template-columns: 1fr;
  }
}

.operator-config-page .tab-bar {
  margin-bottom: 16px;
}

.operator-dict-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.operator-dict-sidebar {
  flex: 0 0 240px;
  width: 240px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.operator-dict-sidebar button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.operator-dict-sidebar button:hover {
  background: #f6f8fb;
}

.operator-dict-sidebar button.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

.operator-dict-panel {
  flex: 1;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.operator-dict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.operator-dict-head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.operator-dict-table table {
  min-width: 680px;
}

.operator-empty-panel {
  padding: 28px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.operator-switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 22px;
}

@media (max-width: 900px) {
  .operator-dict-layout {
    flex-direction: column;
  }

  .operator-dict-sidebar {
    width: 100%;
    flex-basis: auto;
  }

  .operator-dict-panel {
    width: 100%;
  }
}

.operator-audit-filter select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2353657d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

.operator-audit-filter .operator-audit-type {
  flex-basis: 180px;
}

.operator-audit-tabs .operator-audit-danger-tab {
  position: relative;
  padding-right: 26px;
}

.operator-audit-table table {
  min-width: 1260px;
}
