:root {
  --bill-bg-1: #f4fbf7;
  --bill-bg-2: #edf7f1;
  --bill-bg-3: #f8fbfd;
  --bill-brand-1: #27ae60;
  --bill-brand-2: #1f9d55;
  --bill-brand-3: #17864a;
  --bill-accent: #7bd8a8;
  --bill-accent-deep: #0f6b39;
  --bill-ink: #1f2937;
  --bill-muted: #6b7280;
  --bill-line: #dfeee4;
  --bill-line-soft: #edf4ef;
  --bill-surface: rgba(255, 255, 255, 0.92);
  --bill-shadow: 0 24px 72px rgba(31, 41, 55, 0.08);
  --bs-primary: #27ae60;
  --bs-primary-rgb: 39, 174, 96;
  --bs-link-color: #17864a;
  --bs-link-hover-color: #0f6b39;
  --bs-border-color: #d5e6da;
  --bs-secondary-color: #6b7280;
  --bs-body-color: #1f2937;
  --bs-body-bg: transparent;
  --bs-font-sans-serif: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--bill-ink);
  font-family: var(--bs-font-sans-serif);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(39, 174, 96, 0.16), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(123, 216, 168, 0.1), transparent 22%),
    radial-gradient(circle at 80% 84%, rgba(31, 157, 85, 0.1), transparent 20%),
    linear-gradient(135deg, var(--bill-bg-1) 0%, var(--bill-bg-2) 36%, var(--bill-bg-3) 100%);
}

a {
  text-decoration: none;
}

.btn {
  border-radius: 14px;
  font-weight: 500;
}

.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--bill-brand-1) 0%, var(--bill-brand-2) 40%, var(--bill-brand-3) 100%);
  box-shadow: 0 16px 30px rgba(39, 174, 96, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #31bc6a 0%, #27ae60 42%, #1f9652 100%);
}

.btn-outline-secondary {
  border-color: #d8e8dd;
  color: #4b5563;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: #bddac7;
  background: #f4faf6;
  color: #17864a;
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: #d5e6da;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bill-ink);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(39, 174, 96, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(39, 174, 96, 0.12);
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d5e6da;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bill-ink);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:hover {
  border-color: rgba(39, 174, 96, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(39, 174, 96, 0.12);
}

.custom-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-caret {
  display: inline-flex;
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid #7b8a7f;
  border-bottom: 2px solid #7b8a7f;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.custom-select.open .custom-select-caret {
  border-color: #17864a;
  transform: rotate(225deg) translateY(-1px);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dcebe0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.custom-select-option:hover {
  background: #eef8f1;
  color: #17864a;
  transform: translateX(2px);
}

.custom-select-option.active {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.14) 0%, rgba(39, 174, 96, 0.08) 100%);
  color: #17864a;
  font-weight: 600;
}

.custom-select-option.active::after {
  content: "";
  width: 8px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.form-label {
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.input-group-text {
  border-color: #d5e6da;
  background: #f7fbf8;
  color: #6b7280;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.login-backdrop {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
}

.login-backdrop-left {
  top: 84px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(39, 174, 96, 0.12);
}

.login-backdrop-right {
  right: -96px;
  bottom: 32px;
  width: 280px;
  height: 280px;
  background: rgba(123, 216, 168, 0.1);
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
  gap: 24px;
  min-height: 100vh;
  padding: 28px;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  border: 1px solid rgba(39, 174, 96, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(123, 216, 168, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(239, 250, 244, 0.96) 0%, rgba(230, 246, 236, 0.96) 48%, rgba(245, 251, 247, 0.98) 100%);
  box-shadow: 0 24px 72px rgba(31, 41, 55, 0.08);
}

.login-eyebrow {
  margin: 0 0 18px;
  color: var(--bill-accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-panel h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.login-brand-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.notice-card {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid rgba(39, 174, 96, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 252, 248, 0.88) 100%);
  backdrop-filter: blur(12px);
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.12);
  color: var(--bill-accent-deep);
  font-size: 14px;
  font-weight: 700;
}

.notice-date {
  color: #6b7280;
  font-size: 14px;
}

.notice-card h2 {
  margin: 20px 0 18px;
  font-size: 24px;
}

.notice-list {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.9;
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  width: 100%;
  padding: 36px 32px 32px;
  border: 1px solid rgba(39, 174, 96, 0.1);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 249, 0.92) 100%);
  box-shadow: 0 24px 72px rgba(31, 41, 55, 0.1);
  backdrop-filter: blur(10px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(39, 174, 96, 0.18);
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.08);
  color: var(--bill-accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.form-head h2 {
  margin: 18px 0 10px;
  font-size: 32px;
}

.form-head p {
  margin: 0;
  color: var(--bill-muted);
  line-height: 1.7;
}

.login-form {
  margin-top: 28px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--bill-muted);
  font-size: 14px;
}

.submit-button {
  width: 100%;
  min-height: 48px;
}

.platform-layout {
  --platform-aside-width: 232px;
  --platform-aside-collapsed-width: 72px;
  min-height: 100vh;
  width: 100%;
  padding: 18px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(39, 174, 96, 0.1), transparent 26%),
    linear-gradient(180deg, #f4fbf7 0%, #eef7f1 48%, #f8fbfd 100%);
}

.platform-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 36px);
  min-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid #dcebe0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.platform-shell.sidebar-collapsed {
  --platform-aside-width: var(--platform-aside-collapsed-width);
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 20px 28px;
  border-bottom: 1px solid #e7f1ea;
  background: rgba(255, 255, 255, 0.78);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2fb36c 0%, #1f9d55 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
}

.brand-copy h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.brand-copy p {
  display: none;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e0ece4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.user-menu-trigger:hover {
  border-color: #b8ddc2;
  box-shadow: 0 10px 24px rgba(31, 157, 85, 0.1);
  transform: translateY(-1px);
}

.dropdown-menu {
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(39, 174, 96, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(123, 216, 168, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 249, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.dropdown-item {
  min-height: 44px;
  border-radius: 12px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  line-height: 44px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(39, 174, 96, 0.08);
  color: #17864a;
}

.modal-backdrop.show {
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(3px);
}

.modal-content {
  border: 1px solid rgba(39, 174, 96, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(123, 216, 168, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.99) 100%);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.modal-header,
.modal-footer {
  background: transparent;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30ba70 0%, #1f9d55 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.user-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: left;
}

.user-name {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.user-role {
  color: #6b7280;
  font-size: 12px;
}

.platform-main {
  display: grid;
  grid-template-columns: var(--platform-aside-width) minmax(0, 1fr);
  flex: 1;
  min-width: 0;
  min-height: 0;
  transition: grid-template-columns 0.24s ease;
}

.platform-aside {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e7f1ea;
  background: linear-gradient(180deg, #f9fcfa 0%, #f5faf7 100%);
  min-width: 0;
  min-height: 0;
  transition: border-color 0.24s ease, background 0.24s ease;
  overflow: hidden;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  padding: 14px 12px 10px;
  border-bottom: 1px solid rgba(231, 241, 234, 0.72);
  background: linear-gradient(180deg, #f9fcfa 0%, rgba(249, 252, 250, 0.94) 100%);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sidebar-menu-filter {
  display: block;
  flex: none;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(231, 241, 234, 0.72);
  background: rgba(249, 252, 250, 0.96);
}

.platform-shell.menu-filter-active .sidebar-menu-filter {
  display: block;
}

.sidebar-menu-filter-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #d8e7dd;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sidebar-menu-filter-icon,
.sidebar-menu-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #6b7280;
}

.sidebar-menu-filter-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.sidebar-menu-filter-input {
  min-width: 0;
  width: 100%;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font-size: 13px;
  line-height: 34px;
}

.sidebar-menu-filter-input::placeholder {
  color: #9ca3af;
}

.sidebar-menu-filter-clear {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.sidebar-menu-filter-clear:hover {
  background: #eef8f1;
  color: #17864a;
}

.sidebar-title {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8e7dd;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.platform-sidebar-toggle:hover {
  border-color: #b8ddc2;
  background: #eef8f1;
  box-shadow: 0 8px 18px rgba(31, 157, 85, 0.08);
}

.platform-sidebar-toggle-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.2s ease;
}

.platform-shell.sidebar-collapsed .platform-sidebar-toggle-icon {
  transform: rotate(180deg);
}

.platform-shell .platform-aside .side-menu {
  flex: 1;
  flex-wrap: nowrap;
  min-height: 0;
  gap: 6px;
  padding: 12px 10px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  transition: padding 0.18s ease;
}

.platform-shell .platform-aside .side-menu > .side-menu-link,
.platform-shell .platform-aside .side-menu > .side-menu-group {
  flex: 0 0 auto;
}

.platform-shell .platform-aside .side-menu-empty {
  padding: 12px 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.platform-shell .platform-aside .side-menu-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.platform-shell .platform-aside .side-menu-link:hover {
  background: #eef8f1;
  color: #17864a;
  text-decoration: none;
}

.platform-shell .platform-aside .side-menu.nav-pills .side-menu-link.active,
.platform-shell .platform-aside .side-menu.nav-pills .show > .side-menu-link,
.platform-shell .platform-aside .side-menu-link.active {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.14) 0%, rgba(39, 174, 96, 0.08) 100%);
  color: #17864a;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.08);
}

.platform-shell .platform-aside .side-menu.nav-pills .side-menu-link.active:hover,
.platform-shell .platform-aside .side-menu.nav-pills .show > .side-menu-link:hover {
  color: #17864a;
}

.platform-shell .platform-aside .side-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: currentColor;
  flex: none;
  transition: margin 0.18s ease;
}

.platform-shell .platform-aside .side-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.platform-shell .platform-aside .side-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-shell .platform-aside .side-menu-group {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.platform-shell .platform-aside .side-menu-group-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.platform-shell .platform-aside .side-menu-group-toggle:hover {
  background: rgba(39, 174, 96, 0.08);
  color: #17864a;
}

.platform-shell .platform-aside .side-menu-group-toggle.active {
  color: #17864a;
}

.platform-shell .platform-aside .side-menu-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: currentColor;
  flex: none;
}

.platform-shell .platform-aside .side-menu-group-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.platform-shell .platform-aside .side-menu-group-label {
  min-width: 0;
  flex: 1;
}

.platform-shell .platform-aside .side-menu-group-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: currentColor;
  transition: transform 0.2s ease;
}

.platform-shell .platform-aside .side-menu-group-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.platform-shell .platform-aside .side-menu-group-children {
  display: grid;
  gap: 6px;
}

.platform-shell .platform-aside .side-menu-group.collapsed .side-menu-group-children {
  display: none;
}

.platform-shell .platform-aside .side-menu-group.collapsed .side-menu-group-arrow {
  transform: rotate(0deg);
}

.platform-shell .platform-aside .side-menu-group:not(.collapsed) .side-menu-group-arrow {
  transform: rotate(90deg);
}

.platform-shell .platform-aside .side-menu-link-child {
  min-height: 42px;
  margin-left: 14px;
  padding-left: 12px;
}

.platform-shell .platform-aside .side-menu-group-children > .side-menu-group {
  margin-top: 0;
}

.platform-shell .platform-aside .side-menu-group-children > .side-menu-group > .side-menu-group-toggle {
  margin-left: 14px;
  padding-left: 12px;
}

.platform-shell .platform-aside .side-menu-group-children > .side-menu-group .side-menu-link-child {
  margin-left: 28px;
}

.platform-shell.sidebar-collapsed .platform-aside {
  border-right-color: #e7f1ea;
}

.platform-shell.sidebar-collapsed .sidebar-head {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.platform-shell.sidebar-collapsed .sidebar-title {
  display: none;
}

.platform-shell.sidebar-collapsed .sidebar-menu-filter {
  display: none;
}

.platform-shell.sidebar-collapsed .side-menu {
  padding-left: 8px;
  padding-right: 8px;
}

.platform-shell.sidebar-collapsed .side-menu-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.platform-shell.sidebar-collapsed .side-menu-icon {
  margin-right: 0;
}

.platform-shell.sidebar-collapsed .side-menu-label {
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.platform-shell.sidebar-collapsed .side-menu-group {
  margin-top: 0;
}

.platform-shell.sidebar-collapsed .side-menu-group-toggle {
  display: flex;
  justify-content: center;
  min-height: 42px;
  padding-left: 0;
  padding-right: 0;
}

.platform-shell.sidebar-collapsed .side-menu-group-icon {
  margin-right: 0;
}

.platform-shell.sidebar-collapsed .side-menu-group-label,
.platform-shell.sidebar-collapsed .side-menu-group-arrow,
.platform-shell.sidebar-collapsed .side-menu-group-children {
  display: none !important;
}

.platform-shell.sidebar-collapsed .side-menu-link-child {
  margin-left: 0;
  padding-left: 0;
}

.platform-content {
  min-width: 0;
  min-height: 0;
  padding: 22px;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
  min-height: calc(100vh - 164px);
}

.page-card {
  min-width: 0;
  border: 1px solid var(--bill-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 249, 0.95) 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.page-card-body {
  min-width: 0;
  padding: 22px 22px 18px;
}

.page-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--bill-line-soft);
}

.page-card-header h2 {
  margin: 0;
  font-size: 18px;
}

.query-form-shell {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.query-main {
  flex: 1;
  min-width: 0;
}

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

.query-item {
  margin-bottom: 16px;
}

.query-item-time-type {
  grid-column: span 1;
}

.query-item-time-range {
  grid-column: span 2;
}

.time-range-field {
  display: grid;
  gap: 10px;
}

.time-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.datetime-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d5e6da;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.datetime-input:focus-within,
.datetime-input:hover {
  border-color: rgba(39, 174, 96, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(39, 174, 96, 0.12);
}

.datetime-input::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0.72;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3' ry='3'/%3E%3Cline x1='16' y1='2.5' x2='16' y2='6.5'/%3E%3Cline x1='8' y1='2.5' x2='8' y2='6.5'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.datetime-input .form-control {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.datetime-input .form-control:focus {
  box-shadow: none;
}

.datetime-input .form-control::-webkit-datetime-edit,
.datetime-input .form-control::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.datetime-input .form-control::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}

.datetime-input .form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.68;
}

.time-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-shortcut-btn {
  min-width: 84px;
}

.query-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 120px;
  padding-left: 18px;
  padding-top: 30px;
  border-left: 1px solid var(--bill-line-soft);
}

.query-actions .btn {
  width: 120px;
}

.table-wrap {
  position: relative;
  min-width: 0;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.bill-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  vertical-align: top;
}

.bill-table.export-task-table {
  min-width: 100%;
}

.bill-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 10px;
  border-bottom: 1px solid #e7f1ea;
  background: #f6fbf8;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}

.bill-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #eef4f0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  vertical-align: middle;
}

.bill-table tbody tr:hover td {
  background: rgba(39, 174, 96, 0.03);
}

.cell-multiline {
  white-space: normal;
  word-break: break-word;
}

.sticky-left {
  position: sticky;
  left: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 252, 250, 0.99) 100%);
  box-shadow: 8px 0 12px -12px rgba(15, 23, 42, 0.18);
  background-clip: padding-box;
}

.sticky-right {
  position: sticky;
  right: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 252, 250, 0.99) 100%);
  box-shadow: -8px 0 12px -12px rgba(15, 23, 42, 0.18);
  background-clip: padding-box;
}

thead .sticky-left,
thead .sticky-right {
  background: #f6fbf8;
  z-index: 7;
}

.bill-table thead th.sticky-left,
.bill-table tbody td.sticky-left {
  left: 0;
}

.bill-table thead th.sticky-right,
.bill-table tbody td.sticky-right {
  right: 0;
}

.bill-table thead th.sticky-left {
  z-index: 8;
}

.bill-table thead th.sticky-right {
  z-index: 8;
}

.bill-table tbody tr:hover .sticky-left,
.bill-table tbody tr:hover .sticky-right {
  background: linear-gradient(180deg, rgba(243, 250, 246, 0.99) 0%, rgba(238, 248, 241, 0.99) 100%);
}

.commission-breakdown {
  display: grid;
  gap: 6px;
}

.commission-breakdown-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.commission-breakdown-label {
  flex: 0 0 28px;
  color: #8a94a6;
}

.table-empty {
  padding: 56px 18px;
  color: #8a94a6;
  text-align: center;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.table-summary {
  color: #6b7280;
  font-size: 14px;
}

.table-summary span {
  color: #17864a;
  font-weight: 600;
}

.pagination-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pagination-size {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pagination-pages .btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.pagination-jump-input {
  width: 74px;
  min-height: 40px;
}

.table-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-header-tip {
  color: #6b7280;
  font-size: 13px;
}

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

.user-admin-table {
  min-width: 100%;
}

.table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.table-action-btn {
  padding: 0;
  color: #17864a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.table-action-btn:hover,
.table-action-btn:focus {
  color: #0f6b39;
}

.table-action-btn-danger {
  color: #dc2626;
}

.table-action-btn-danger:hover,
.table-action-btn-danger:focus {
  color: #b91c1c;
}

.modal-form-grid {
  display: grid;
  gap: 16px;
}

.textarea-control {
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.textarea-tall {
  min-height: 220px;
}

.modal-info-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e6f0e9;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f7fbf8 100%);
}

.modal-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-info-label {
  color: #6b7280;
  font-size: 13px;
}

.modal-info-value {
  color: #1f2937;
  font-weight: 600;
}

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

.detail-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #e6f0e9;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f7fbf8 100%);
}

.detail-label {
  color: #6b7280;
  font-size: 13px;
}

.detail-value {
  color: #1f2937;
  font-weight: 600;
  line-height: 1.7;
  word-break: break-word;
}

.helper-text {
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid #e6f0e9;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfefd 0%, #f7fbf8 100%);
}

.token-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.1);
  color: #17864a;
  font-size: 13px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.status-created {
  background: #eef2ff;
  color: #475569;
}

.status-running {
  background: #fff7dd;
  color: #a16207;
}

.status-success {
  background: #eaf9ef;
  color: #15803d;
}

.status-fail {
  background: #fef2f2;
  color: #dc2626;
}

.export-condition-list {
  display: grid;
  gap: 12px;
}

.export-condition-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e6f0e9;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfefd 0%, #f7fbf8 100%);
}

.export-condition-label {
  color: #6b7280;
  font-size: 14px;
}

.export-condition-value {
  color: #1f2937;
  line-height: 1.7;
  word-break: break-all;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  z-index: 5;
}

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

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #17864a;
  font-size: 14px;
}

.loading-content .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.24em;
}

.app-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1090;
  display: grid;
  gap: 10px;
  justify-items: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.app-toast {
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  text-align: center;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast-success {
  border-color: rgba(21, 128, 61, 0.12);
  background: rgba(236, 253, 245, 0.94);
  color: #166534;
}

.app-toast-danger {
  border-color: rgba(220, 38, 38, 0.12);
  background: rgba(254, 242, 242, 0.94);
  color: #b91c1c;
}

.app-toast-warning {
  border-color: rgba(202, 138, 4, 0.12);
  background: rgba(254, 249, 195, 0.94);
  color: #92400e;
}

.app-toast-info {
  border-color: rgba(71, 85, 105, 0.12);
  background: rgba(248, 250, 252, 0.94);
  color: #334155;
}

.text-empty {
  color: #9ca3af;
}

@media (max-width: 1360px) {
  .query-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .query-item-time-range {
    grid-column: span 1;
  }
}

@media (max-width: 1180px) {
  .login-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .query-form-shell {
    flex-direction: column;
  }

  .query-actions {
    flex-direction: row;
    min-width: 0;
    padding-top: 0;
    padding-left: 0;
    border-left: none;
  }

  .platform-main {
    grid-template-columns: 1fr;
  }

  .platform-aside {
    border-right: none;
    border-bottom: 1px solid #e7f1ea;
  }

  .sidebar-head {
    display: none;
  }

  .platform-shell .platform-aside .side-menu {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 12px;
  }

  .platform-sidebar-toggle {
    display: none;
  }

  .platform-shell .platform-aside .side-menu-link {
    white-space: nowrap;
  }

  .platform-shell .platform-aside .side-menu-group {
    display: contents;
  }

  .platform-shell .platform-aside .side-menu-group-toggle {
    display: none;
  }

  .platform-shell .platform-aside .side-menu-group-children,
  .platform-shell .platform-aside .side-menu-group.collapsed .side-menu-group-children {
    display: contents;
  }

  .platform-shell .platform-aside .side-menu-link-child {
    margin-left: 0;
    padding-left: 14px;
  }

  .platform-shell.sidebar-collapsed .side-menu {
    padding-left: 12px;
    padding-right: 12px;
  }

  .platform-shell.sidebar-collapsed .side-menu-link {
    justify-content: flex-start;
    padding-left: 14px;
    padding-right: 14px;
  }

  .platform-shell.sidebar-collapsed .side-menu-icon {
    margin-right: 10px;
  }

  .platform-shell.sidebar-collapsed .side-menu-label,
  .platform-shell.sidebar-collapsed .side-menu-group-label,
  .platform-shell.sidebar-collapsed .side-menu-group-arrow {
    width: auto;
    opacity: 1;
  }

  .platform-shell.sidebar-collapsed .side-menu-group-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .login-panel,
  .platform-layout {
    padding: 16px;
  }

  .brand-panel,
  .form-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .form-head h2 {
    font-size: 28px;
  }

  .form-actions,
  .table-footer,
  .platform-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .platform-shell {
    height: calc(100vh - 32px);
    min-height: calc(100vh - 32px);
  }

  .query-grid,
  .time-range-inputs {
    grid-template-columns: 1fr;
  }

  .custom-select-menu {
    max-height: 220px;
  }

  .platform-content {
    padding: 16px;
  }

  .export-condition-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Unified platform theme: align pages with the current brand submission style. */
:root {
  --bill-theme-primary: #1683ff;
  --bill-theme-primary-hover: #0f6fe5;
  --bill-theme-ink: #172033;
  --bill-theme-muted: #667085;
  --bill-theme-bg: #f5f6f8;
  --bill-theme-panel: #ffffff;
  --bill-theme-line: #e4e9f2;
  --bill-theme-line-strong: #d2dbe8;
  --bill-theme-head: #f3f6fb;
  --bill-theme-soft: #f8fafc;
  --bill-theme-success: #16834a;
  --bill-theme-warning: #d97706;
  --bill-theme-danger: #dc2626;
}

.platform-layout,
.platform-content {
  background: var(--bill-theme-bg);
}

.platform-shell {
  border-color: var(--bill-theme-line);
  border-radius: 18px;
  background: var(--bill-theme-panel);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.platform-header,
.platform-aside,
.sidebar-head,
.sidebar-menu-filter {
  border-color: var(--bill-theme-line);
  background: #ffffff;
}

.brand-mark,
.user-avatar {
  background: var(--bill-theme-primary);
  box-shadow: none;
}

.brand-copy h1,
.user-name {
  color: var(--bill-theme-ink);
}

.brand-copy p,
.user-role,
.sidebar-title {
  color: var(--bill-theme-muted);
}

.user-menu-trigger,
.platform-sidebar-toggle,
.sidebar-menu-filter-field {
  border-color: var(--bill-theme-line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.user-menu-trigger:hover,
.platform-sidebar-toggle:hover,
.sidebar-menu-filter-clear:hover {
  border-color: #cbd5e1;
  background: var(--bill-theme-soft);
  color: var(--bill-theme-primary);
  box-shadow: none;
  transform: none;
}

.dropdown-menu,
.modal-content {
  border-color: var(--bill-theme-line);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #eef6ff;
  color: var(--bill-theme-primary);
}

.platform-shell .platform-aside .side-menu-link {
  border-radius: 10px;
  color: #344054;
}

.platform-shell .platform-aside .side-menu-link:hover,
.platform-shell .platform-aside .side-menu-group-toggle:hover {
  background: #f1f5f9;
  color: var(--bill-theme-primary);
}

.platform-shell .platform-aside .side-menu.nav-pills .side-menu-link.active,
.platform-shell .platform-aside .side-menu.nav-pills .show > .side-menu-link,
.platform-shell .platform-aside .side-menu-link.active,
.platform-shell .platform-aside .side-menu-group-toggle.active {
  background: #eaf3ff;
  color: #1167d8;
  box-shadow: inset 3px 0 0 var(--bill-theme-primary);
}

.platform-shell .platform-aside .side-menu.nav-pills .side-menu-link.active:hover,
.platform-shell .platform-aside .side-menu.nav-pills .show > .side-menu-link:hover {
  color: #1167d8;
}

.platform-shell.sidebar-collapsed .platform-aside {
  border-right-color: var(--bill-theme-line);
}

.page-card,
.tabler-content-card,
.daily-report-main-card,
.daily-report-side-card,
.card {
  border-color: var(--bill-theme-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.form-control,
.form-select,
.form-check-input,
.datetime-input,
.input-group-text {
  border-color: #d9e1ec;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--bill-theme-ink);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.datetime-input:focus-within {
  border-color: #92c5ff;
  box-shadow: 0 0 0 3px rgba(22, 131, 255, 0.12);
}

.form-control::placeholder {
  color: #a7b2c2;
}

.btn {
  border-radius: 8px;
  box-shadow: none;
}

.btn-primary,
.btn-success {
  border-color: var(--bill-theme-primary);
  background: var(--bill-theme-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  border-color: var(--bill-theme-primary-hover);
  background: var(--bill-theme-primary-hover);
  color: #ffffff;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-light {
  border-color: var(--bill-theme-line-strong);
  background: #ffffff;
  color: #344054;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-light:hover,
.btn-light:focus {
  border-color: #b8c4d6;
  background: #f8fafc;
  color: var(--bill-theme-primary);
}

.btn-outline-danger {
  border-color: #ffd6d6;
  color: var(--bill-theme-danger);
}

.btn-outline-warning {
  border-color: #fde6b3;
  color: #b7791f;
}

.table-wrap,
.table-scroll,
.daily-report-table-wrap,
.daily-report-table-scroll,
.brand-submitted-table-wrap,
.brand-submitted-table-scroll {
  border-color: var(--bill-theme-line);
  background: #ffffff;
}

.bill-table thead th,
.table thead th,
.daily-report-table th {
  border-color: var(--bill-theme-line);
  background: var(--bill-theme-head);
  color: #344054;
}

.bill-table tbody td,
.table tbody td,
.daily-report-table td {
  border-color: var(--bill-theme-line);
  color: #344054;
}

.bill-table tbody tr:hover td,
.table tbody tr:hover td,
.daily-report-table tbody tr:hover td {
  background: rgba(22, 131, 255, 0.035);
}

.sticky-left,
.sticky-right {
  background: #ffffff;
}

thead .sticky-left,
thead .sticky-right {
  background: var(--bill-theme-head);
}

.table-summary span,
.token-chip,
.loading-content {
  color: var(--bill-theme-primary);
}

.token-list,
.detail-card,
.export-condition-item {
  border-color: var(--bill-theme-line);
  background: #ffffff;
}

.status-success {
  background: #edf9f2;
  color: var(--bill-theme-success);
}

.status-running {
  background: #fff7e8;
  color: var(--bill-theme-warning);
}

.status-fail {
  background: #fff1f2;
  color: var(--bill-theme-danger);
}

.app-toast {
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  backdrop-filter: none;
}

/* Unified compact page identity. */
.tabler-table-demo-page.tabler-table-demo-page,
.seedance-lab-page.seedance-lab-page,
.seedance-test-page.seedance-test-page,
.seedance-gallery-page.seedance-gallery-page,
.text-to-image-page.text-to-image-page,
.token-ranking-page.token-ranking-page,
.video-mvp-page.video-mvp-page,
.tabler-payroll-import-page.tabler-payroll-import-page {
  background: var(--bill-theme-bg);
}

.token-ranking-page.token-ranking-page .platform-layout {
  background: var(--bill-theme-bg);
}

body.ai-project-settlement-page.ai-project-settlement-page,
body.offline-commission-page.offline-commission-page,
body.tabler-cost-maintenance-page.tabler-cost-maintenance-page,
body.token-ranking-page.token-ranking-page,
body.tabler-payroll-import-page.tabler-payroll-import-page {
  --tblr-primary: var(--bill-theme-primary);
  --tblr-primary-rgb: 22, 131, 255;
  --tblr-link-color: var(--bill-theme-primary);
  --tblr-link-hover-color: var(--bill-theme-primary-hover);
}

.platform-page-header,
.daily-report-page-head,
.settlement-page-head,
.maintenance-page-head,
.offline-page-head,
.qianchuan-query-page .query-page-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px 22px;
  border: 1px solid var(--bill-theme-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.report-page-title,
.platform-page-header-title {
  margin: 0;
  color: var(--bill-theme-ink);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.18;
}

.report-page-subtitle,
.platform-page-header-subtitle {
  margin-top: 6px;
  color: var(--bill-theme-muted);
  font-size: 13px;
  line-height: 1.5;
}

.report-shell-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-chip,
.payroll-status-chip,
.maintenance-toolbar-copy {
  border-color: var(--bill-theme-line);
  background: #f8fafc;
  color: #475467;
}

.seedance-lab-page .seedance-hero-card,
.seedance-test-page .seedance-hero-card,
.seedance-gallery-page .seedance-gallery-hero-card,
.text-to-image-page .text-to-image-hero-card,
.tabler-payroll-import-page .page-stack .payroll-hero-card {
  position: relative;
  border: 1px solid var(--bill-theme-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.seedance-lab-page .seedance-hero-card .seedance-hero-body,
.seedance-test-page .seedance-hero-card .seedance-hero-body,
.seedance-gallery-page .seedance-gallery-hero-card .seedance-gallery-hero-body,
.text-to-image-page .text-to-image-hero-card .text-to-image-hero-body,
.tabler-payroll-import-page .page-stack .payroll-hero-card .payroll-hero-body {
  min-height: 0;
  padding: 18px 22px;
  background: transparent;
  color: var(--bill-theme-ink);
}

.seedance-lab-page .seedance-hero-body h2,
.seedance-test-page .seedance-hero-body h2,
.seedance-gallery-page .seedance-gallery-hero-body h2,
.text-to-image-page .text-to-image-hero-body h2,
.tabler-payroll-import-page .payroll-hero-body .hero-title,
.video-mvp-page .mvp-hero-main h1 {
  margin: 0;
  color: var(--bill-theme-ink);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.18;
}

.seedance-lab-page .seedance-hero-body p,
.seedance-test-page .seedance-hero-body p,
.text-to-image-page .text-to-image-hero-body p,
.tabler-payroll-import-page .payroll-hero-body .hero-desc,
.video-mvp-page .mvp-hero-main p {
  color: var(--bill-theme-muted);
}

.seedance-eyebrow,
.text-to-image-eyebrow,
.tabler-payroll-import-page .hero-kicker,
.video-mvp-page .mvp-eyebrow {
  margin-bottom: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bill-theme-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.seedance-chip,
.text-to-image-chip {
  border: 1px solid var(--bill-theme-line);
  background: #f8fafc;
  color: #475467;
}

.tabler-payroll-import-page .page-stack .payroll-hero-card::after {
  display: none;
}

.video-mvp-page .mvp-shell .mvp-hero-main {
  position: relative;
  border: 1px solid var(--bill-theme-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
}

@media (max-width: 768px) {
  .platform-page-header,
  .daily-report-page-head,
  .settlement-page-head,
  .maintenance-page-head,
  .offline-page-head,
  .qianchuan-query-page .query-page-head {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .report-page-title,
  .platform-page-header-title,
  .seedance-lab-page .seedance-hero-body h2,
  .seedance-test-page .seedance-hero-body h2,
  .seedance-gallery-page .seedance-gallery-hero-body h2,
  .text-to-image-page .text-to-image-hero-body h2,
  .tabler-payroll-import-page .payroll-hero-body .hero-title,
  .video-mvp-page .mvp-hero-main h1 {
    font-size: 22px;
  }
}

/* ProcessOn-style shell refinement: light file-workbench frame. */
:root {
  --bill-theme-bg: #f4f5f9;
  --bill-theme-panel: #ffffff;
  --bill-theme-line: #e5eaf2;
  --bill-theme-line-strong: #cfd7e3;
  --bill-theme-soft: #f3f5f8;
  --bill-theme-head: #f2f5fa;
}

.platform-layout {
  padding: 0;
  background: var(--bill-theme-bg);
}

.platform-shell {
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.platform-header {
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--bill-theme-line);
  background: #ffffff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bill-theme-primary);
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: none;
}

.brand-copy h1 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-copy p {
  display: block;
  margin: 2px 0 0;
  color: #8a94a6;
  font-size: 12px;
}

.user-menu-trigger {
  min-height: 46px;
  padding: 4px 8px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
}

.user-menu-trigger:hover {
  border-color: transparent;
  background: #f2f4f8;
  box-shadow: none;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: #ffb454;
  box-shadow: none;
}

.platform-main {
  background: var(--bill-theme-bg);
}

.platform-aside {
  border-right: 1px solid var(--bill-theme-line);
  background: #ffffff;
}

.sidebar-head {
  padding: 16px 16px 8px;
  border-bottom: 0;
  background: #ffffff;
}

.sidebar-title {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.sidebar-menu-filter {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--bill-theme-line);
  background: #ffffff;
}

.sidebar-menu-filter-field,
.platform-sidebar-toggle {
  border-color: #dce3ed;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.sidebar-menu-filter-field:focus-within {
  border-color: #b9d7ff;
  box-shadow: 0 0 0 3px rgba(22, 131, 255, 0.1);
}

.platform-sidebar-toggle:hover,
.sidebar-menu-filter-clear:hover {
  border-color: #cbd5e1;
  background: #f3f5f8;
  color: var(--bill-theme-primary);
  box-shadow: none;
}

.platform-shell .platform-aside .side-menu {
  gap: 2px;
  padding: 12px 8px 18px;
}

.platform-shell .platform-aside .side-menu-link,
.platform-shell .platform-aside .side-menu-group-toggle {
  min-height: 42px;
  border-radius: 8px;
  color: #2f3848;
  font-size: 14px;
  font-weight: 500;
}

.platform-shell .platform-aside .side-menu-link:hover,
.platform-shell .platform-aside .side-menu-group-toggle:hover {
  background: #f3f5f8;
  color: #111827;
}

.platform-shell .platform-aside .side-menu.nav-pills .side-menu-link.active,
.platform-shell .platform-aside .side-menu.nav-pills .show > .side-menu-link,
.platform-shell .platform-aside .side-menu-link.active,
.platform-shell .platform-aside .side-menu-group-toggle.active {
  background: #eef5ff;
  color: var(--bill-theme-primary);
  box-shadow: none;
}

.platform-shell .platform-aside .side-menu-icon,
.platform-shell .platform-aside .side-menu-group-icon {
  color: currentColor;
}

.platform-content {
  padding: 24px 28px;
  background: var(--bill-theme-bg);
}

.page-card,
.tabler-content-card,
.daily-report-main-card,
.daily-report-side-card,
.card,
.platform-page-header,
.daily-report-page-head,
.settlement-page-head,
.maintenance-page-head,
.offline-page-head,
.qianchuan-query-page .query-page-head {
  border-color: var(--bill-theme-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.dropdown-menu,
.modal-content {
  border-color: var(--bill-theme-line);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

@media (max-width: 768px) {
  .platform-layout {
    padding: 0;
  }

  .platform-shell {
    height: 100vh;
    min-height: 100vh;
  }

  .platform-header {
    padding: 12px 16px;
  }

  .platform-content {
    padding: 16px;
  }
}

/* ProcessOn-inspired typography: system UI stack, restrained weight hierarchy. */
:root {
  --bill-font-sans: "Apple System", "SF Pro SC", "SF Pro Display", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", STHeiti, "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", sans-serif;
  --bs-font-sans-serif: var(--bill-font-sans);
  --bill-text-primary: #212930;
  --bill-text-secondary: #6c7d8f;
  --bill-text-tertiary: #9aa5b8;
}

html,
body {
  color: var(--bill-text-primary);
  font-family: var(--bill-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.modal-content,
.table,
.bill-table {
  font-family: var(--bill-font-sans);
  letter-spacing: 0;
}

.btn,
button {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning {
  font-weight: 500;
}

.form-control,
.form-select,
.input-group-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.form-label,
.toolbar-label,
.summary-card-label,
.card-subtitle,
.report-card-subtitle,
.platform-page-header-subtitle,
.report-page-subtitle {
  color: var(--bill-text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.brand-copy h1,
.report-page-title,
.platform-page-header-title,
.seedance-lab-page .seedance-hero-body h2,
.seedance-test-page .seedance-hero-body h2,
.seedance-gallery-page .seedance-gallery-hero-body h2,
.text-to-image-page .text-to-image-hero-body h2,
.tabler-payroll-import-page .payroll-hero-body .hero-title,
.video-mvp-page .mvp-hero-main h1 {
  color: var(--bill-text-primary);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.brand-copy h1 {
  font-size: 18px;
  font-weight: 600;
}

.brand-copy p,
.user-role,
.sidebar-title,
.seedance-eyebrow,
.text-to-image-eyebrow,
.tabler-payroll-import-page .hero-kicker,
.video-mvp-page .mvp-eyebrow {
  color: var(--bill-text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.user-name {
  color: var(--bill-text-primary);
  font-size: 14px;
  font-weight: 500;
}

.platform-shell .platform-aside .side-menu-link,
.platform-shell .platform-aside .side-menu-group-toggle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.platform-shell .platform-aside .side-menu-link.active,
.platform-shell .platform-aside .side-menu-group-toggle.active {
  font-weight: 500;
}

.page-card-header h2,
.card-title,
.report-card-header .card-title,
.material-panel-head h3,
.mvp-panel-head h2 {
  color: var(--bill-text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.summary-card-value,
.report-chip,
.token-chip,
.status-success,
.status-running,
.status-fail {
  font-weight: 500;
}

.bill-table,
.table,
.daily-report-table {
  font-size: 14px;
  line-height: 1.45;
}

.bill-table thead th,
.table thead th,
.daily-report-table th {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.bill-table tbody td,
.table tbody td,
.daily-report-table td {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.dropdown-item {
  font-size: 14px;
  font-weight: 400;
}

/* Lighten dense business pages without removing necessary status color. */
:root {
  --bill-theme-bg: #f7f8fb;
  --bill-theme-primary-soft: #edf6ff;
  --bill-theme-line: #edf1f5;
  --bill-theme-line-strong: #dfe5ee;
  --bill-theme-head: #f6f8fb;
  --bill-text-primary: #263242;
  --bill-text-secondary: #6f7b8e;
  --bill-text-tertiary: #9aa5b8;
}

.platform-content {
  background: var(--bill-theme-bg);
}

.page-card,
.tabler-content-card,
.daily-report-main-card,
.daily-report-side-card,
.card,
.platform-page-header,
.daily-report-page-head,
.settlement-page-head,
.maintenance-page-head,
.offline-page-head {
  border-color: var(--bill-theme-line);
  box-shadow: 0 10px 26px rgba(33, 41, 48, 0.06);
}

.page-card-header,
.card-header,
.report-card-header,
.material-panel-head,
.mvp-panel-head {
  background: linear-gradient(90deg, rgba(22, 131, 255, 0.045), rgba(255, 255, 255, 0) 52%);
}

.bill-table thead th,
.table thead th,
.daily-report-table th {
  background: var(--bill-theme-head);
  color: #596779;
}

.bill-table tbody td,
.table tbody td,
.daily-report-table td {
  border-color: var(--bill-theme-line);
  color: #3f4a5a;
}

.form-control,
.form-select,
.input-group-text,
.custom-select-trigger {
  border-color: var(--bill-theme-line-strong);
}

.platform-home-page .page-stack {
  align-content: start;
  gap: 14px;
  min-height: 0;
}

.platform-home-page .platform-page-header {
  align-self: start;
  min-height: 0;
  padding: 18px 22px;
}

.platform-home-page .platform-home-menu-card {
  align-self: start;
}

.platform-home-page .platform-home-menu-card .card-body {
  padding: 20px;
}

.platform-home-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.platform-home-menu-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px;
  color: var(--bill-text-primary);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--bill-theme-line);
  border-radius: 8px;
}

.platform-home-menu-tile:hover {
  color: #1683ff;
  border-color: #b9d8ff;
  background: #f8fbff;
}

.platform-home-menu-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #637083;
}

.platform-home-menu-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-home-menu-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.app-common-confirm-dialog {
  width: calc(100% - 28px);
  max-width: 430px;
}

.app-common-confirm-dialog .modal-content {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.2);
}

.app-common-confirm-dialog .modal-header {
  padding: 20px 22px 8px;
}

.app-common-confirm-dialog .modal-title {
  color: #1e293b;
  font-size: 17px;
  font-weight: 800;
}

.app-common-confirm-dialog .modal-body {
  padding: 10px 22px 12px;
}

.app-common-confirm-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.app-common-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 16px;
  font-weight: 900;
}

.app-common-confirm-modal[data-variant="danger"] .app-common-confirm-icon {
  background: #fee2e2;
  color: #dc2626;
}

.app-common-confirm-modal[data-variant="warning"] .app-common-confirm-icon {
  background: #fef3c7;
  color: #b45309;
}

.app-common-confirm-copy p {
  margin: 3px 0 0;
  color: #526074;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.app-common-confirm-dialog .modal-footer {
  gap: 8px;
  padding: 10px 22px 20px;
}

.app-common-confirm-dialog .modal-footer .btn {
  min-width: 78px;
}

.platform-home-empty {
  color: var(--bill-text-secondary);
  font-size: 14px;
  line-height: 22px;
}
