﻿:root {
  --bg: #eef7f0;
  --bg-soft: #f7fbf6;
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: #ffffff;
  --green-900: #063b2b;
  --green-800: #0b4d37;
  --green-700: #116b4a;
  --green-600: #18945f;
  --green-500: #27b875;
  --green-100: #dff4e7;
  --green-50: #effaf3;
  --gold: #c9a227;
  --text: #0f2f25;
  --muted: #60766d;
  --border: rgba(17, 107, 74, 0.14);
  --shadow: 0 24px 70px rgba(6, 59, 43, 0.12);
  --soft-shadow: 0 16px 36px rgba(6, 59, 43, 0.08);
  --green-950: #032419;
  --line: rgba(9, 73, 53, 0.09);
  --gold-soft: #f5edd7;
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Keep every full-page editor contained inside its operation canvas. */
.admin-section.operation-workspace-active .detail-panel,
.admin-section.operation-workspace-active .detail-panel * {
  box-sizing: border-box;
}

.admin-section.operation-workspace-active .detail-panel form,
.admin-section.operation-workspace-active .detail-panel fieldset,
.admin-section.operation-workspace-active .detail-panel .form-grid,
.admin-section.operation-workspace-active .detail-panel .form-field,
.admin-section.operation-workspace-active .detail-panel .field,
.admin-section.operation-workspace-active .detail-panel .button-row,
.admin-section.operation-workspace-active .detail-panel .status-box {
  min-width: 0;
  max-width: 100%;
}

.admin-section.operation-workspace-active .detail-panel form,
.admin-section.operation-workspace-active .detail-panel fieldset {
  width: min(100%, 1320px);
  margin-left: auto;
  margin-right: auto;
}

.admin-section.operation-workspace-active .detail-panel .form-grid {
  width: 100%;
}

.admin-section.operation-workspace-active .detail-panel .form-grid > *,
.admin-section.operation-workspace-active .detail-panel .form-field,
.admin-section.operation-workspace-active .detail-panel .field {
  min-width: 0;
}

.admin-section.operation-workspace-active .detail-panel input:not([type="checkbox"]):not([type="radio"]),
.admin-section.operation-workspace-active .detail-panel select,
.admin-section.operation-workspace-active .detail-panel textarea {
  display: block;
  width: 100%;
  max-width: 100%;
}

.admin-section.operation-workspace-active .detail-panel .button-row {
  position: static !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  transform: none !important;
}

.admin-section.operation-workspace-active .detail-panel .status-box {
  position: static !important;
  margin-top: 18px;
  overflow-wrap: anywhere;
  transform: none !important;
}

@media (max-width: 640px) {
  .admin-section.operation-workspace-active .detail-panel .button-row > button,
  .admin-section.operation-workspace-active .detail-panel .button-row > .button,
  .admin-section.operation-workspace-active .detail-panel .button-row > a {
    width: 100%;
    justify-content: center;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(39, 184, 117, 0.24) 0, rgba(39, 184, 117, 0) 28%),
    radial-gradient(circle at 92% 16%, rgba(201, 162, 39, 0.18) 0, rgba(201, 162, 39, 0) 24%),
    linear-gradient(135deg, #edf8ee 0%, #f6fbf2 45%, #e9f5ed 100%);
  overflow-x: hidden;
}

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

button {
  border: 0;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.ambient-one {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: 8%;
  background: rgba(24, 148, 95, 0.14);
}

.ambient-two {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 12%;
  background: rgba(201, 162, 39, 0.12);
}

.is-hidden {
  display: none !important;
}

.auth-view {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  width: min(1080px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.auth-copy {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  background:
    radial-gradient(circle at 24% 18%, rgba(233, 248, 220, 0.86), rgba(233, 248, 220, 0) 30%),
    linear-gradient(145deg, #063b2b 0%, #0e6b49 58%, #2fba78 100%);
  color: #ffffff;
}

.auth-copy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.auth-copy h1 {
  margin: 0;
  max-width: 460px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.auth-copy p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.9;
}

.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  width: min(1480px, calc(100% - 48px));
  margin: 28px auto;
}

.sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  min-height: calc(100vh - 56px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(6, 59, 43, 0.98) 0%, rgba(10, 79, 55, 0.98) 56%, rgba(13, 105, 69, 0.96) 100%);
  color: #f3fff6;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: auto -42px -80px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.brand-block {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #e9f8dc 0%, #70d799 100%);
  color: var(--green-900);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(4, 34, 25, 0.24);
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.workspace .eyebrow,
.overview-hero .eyebrow {
  color: var(--green-700);
}

.brand-block h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.side-nav {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: 180ms ease;
}

.nav-item::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.44;
}

.nav-item:hover,
.nav-item.active {
  transform: translateX(4px);
  background: #f5fff3;
  color: var(--green-900);
  box-shadow: 0 14px 28px rgba(4, 34, 25, 0.2);
}

.nav-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e94b35;
  color: #ffffff;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(233, 75, 53, 0.28);
}

.hidden {
  display: none !important;
}

.sidebar-note,
.sidebar-status {
  position: relative;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.sidebar-note span,
.sidebar-status span {
  display: block;
  margin-bottom: 8px;
  color: #bde9c9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sidebar-note p,
.sidebar-status strong {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.sidebar-status strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.topbar,
.panel,
.admin-section {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--card);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 32px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
  color: var(--green-900);
}

.topbar p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.panel,
.admin-section {
  border-radius: 30px;
  padding: 24px;
}

.login-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 250, 244, 0.9));
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: panelIn 220ms ease both;
}

@keyframes panelIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.compact-head {
  align-items: flex-start;
}

.section-head h3 {
  margin: 0;
  font-size: 22px;
  color: var(--green-900);
}

.section-head p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-state {
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

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

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

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

.stacked {
  grid-template-columns: 1fr;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-900);
  font-size: 14px;
  font-weight: 900;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-unit-note {
  margin: 16px 0 -4px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 176, 130, 0.2);
  border-radius: 10px;
  background: rgba(25, 176, 130, 0.06);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  background: rgba(250, 253, 250, 0.9);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(24, 148, 95, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(39, 184, 117, 0.12);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.quick-card {
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  padding: 12px 20px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  color: #fff;
  box-shadow: 0 14px 26px rgba(24, 148, 95, 0.24);
}

.secondary-btn {
  background: var(--green-100);
  color: var(--green-900);
}

.ghost-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
  color: var(--green-800);
}

.danger-btn {
  background: #fff0ec;
  color: #a53b2b;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(6, 59, 43, 0.12);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled,
.table-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 24px;
  align-items: center;
  min-height: 230px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 12%, rgba(233, 248, 220, 0.92), rgba(233, 248, 220, 0) 30%),
    linear-gradient(135deg, #073d2d 0%, #0f734c 52%, #34b878 100%);
  color: #ffffff;
  overflow: hidden;
}

.overview-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.overview-hero h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.05em;
}

.overview-hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.hero-orb {
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: #efffda;
  font-size: 38px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

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

.metric-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf4 100%);
  box-shadow: 0 12px 24px rgba(6, 59, 43, 0.06);
}

.metric-card.alert-card {
  border-color: rgba(233, 75, 53, 0.22);
  background: linear-gradient(180deg, #fffaf6 0%, #fff1e8 100%);
}

.metric-card.alert-card strong {
  color: #c4492d;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  color: var(--green-800);
  font-size: 42px;
  line-height: 1;
}

.clickable-card {
  cursor: pointer;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: rgba(18, 191, 144, 0.42) !important;
  box-shadow: 0 18px 42px rgba(16, 40, 30, 0.11) !important;
  transform: translateY(-2px);
  outline: none;
}

.clickable-card:active {
  transform: translateY(0);
}

.todo-center {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 12%, rgba(201, 162, 39, 0.13), rgba(201, 162, 39, 0) 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 243, 0.86));
  box-shadow: 0 18px 38px rgba(6, 59, 43, 0.08);
}

.todo-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.todo-list.empty {
  padding: 18px;
  border: 1px dashed rgba(17, 107, 74, 0.22);
  border-radius: 18px;
  background: rgba(239, 250, 243, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.todo-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(17, 107, 74, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(6, 59, 43, 0.06);
}

.todo-count {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: #e7f5ec;
  color: var(--green-800);
  font-size: 26px;
  font-weight: 950;
}

.todo-card.ticket .todo-count {
  background: #e0f2ff;
  color: #176280;
}

.todo-card.bill .todo-count {
  background: #fff5d8;
  color: #8a6410;
}

.todo-content span,
.todo-content strong {
  display: block;
}

.todo-content span {
  color: var(--green-600);
  font-size: 12px;
  font-weight: 900;
}

.todo-content strong {
  margin-top: 4px;
  color: var(--green-900);
  font-size: 16px;
}

.todo-content p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.quick-entry-panel {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(17, 107, 74, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
}

.section-divider {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 5px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-500), var(--gold));
}

.section-divider span {
  color: var(--green-900);
  font-size: 18px;
  font-weight: 950;
}

.section-divider p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.quick-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--green-900);
  text-align: left;
}

.quick-card span,
.quick-card strong {
  display: block;
}

.quick-card span {
  margin-bottom: 8px;
  color: var(--green-600);
  font-size: 13px;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

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

.list-panel {
  min-height: 360px;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-weight: 900;
}

.switch-line input {
  width: 18px;
  height: 18px;
}

.status-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--green-50);
  color: var(--muted);
  line-height: 1.7;
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 12px;
  margin-top: 18px;
}

.file-filter-toolbar {
  grid-template-columns: minmax(220px, 1fr) 160px 170px auto;
  align-items: center;
}

.filter-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.file-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.selection-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.row-check {
  width: 18px;
  height: 18px;
  accent-color: var(--green-800);
}

.file-download-modal {
  width: min(860px, 94vw);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f1faf4 100%);
  box-shadow: 0 34px 80px rgba(5, 24, 17, 0.28);
}

.file-download-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 252, 249, 0.9);
}

.download-check-list {
  padding: 16px 20px 22px;
  overflow: auto;
}

.download-check-list.empty {
  color: var(--muted);
  font-weight: 900;
}

.download-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 107, 74, 0.1);
  cursor: pointer;
}

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

.download-check-item strong,
.download-check-item small {
  display: block;
}

.download-check-item strong {
  color: var(--green-900);
  font-size: 14px;
}

.download-check-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(6, 59, 43, 0.06);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(17, 107, 74, 0.1);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #effaf3;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.data-table td {
  color: #405c50;
  font-size: 14px;
  line-height: 1.55;
}

.data-table tbody tr {
  transition: background 160ms ease;
}

.data-table tbody tr:hover {
  background: rgba(239, 250, 243, 0.82);
}

.data-table .file-group-row td {
  padding: 12px 16px;
  background:
    linear-gradient(90deg, rgba(16, 107, 72, 0.12), rgba(217, 243, 225, 0.62)),
    #f4fbf6;
  color: var(--green-900);
}

.file-group-row strong,
.file-group-row span,
.file-group-row em {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.file-group-row strong {
  font-weight: 950;
}

.file-group-row span {
  color: #527366;
  font-weight: 900;
}

.file-group-row em {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-800);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-link {
  color: var(--green-800);
  font-weight: 900;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.table-action-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

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

.strong-cell {
  color: var(--green-900) !important;
  font-weight: 900;
}

.ticket-summary,
.ticket-user,
.file-info-cell,
.file-uploader-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ticket-summary strong,
.ticket-user strong,
.file-info-cell strong,
.file-uploader-cell strong {
  color: var(--green-900);
  font-weight: 950;
  line-height: 1.35;
}

.ticket-summary span,
.ticket-user span,
.file-info-cell span,
.file-uploader-cell span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.ticket-summary {
  min-width: 260px;
}

.ticket-summary .ticket-reply-preview {
  color: #0b8a63;
  font-weight: 850;
}

.ticket-user {
  min-width: 150px;
}

.file-info-cell {
  min-width: 230px;
}

.file-uploader-cell {
  min-width: 140px;
}

.bill-company-cell,
.bill-usage-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bill-company-cell strong,
.bill-usage-cell strong {
  color: var(--green-900);
  font-weight: 950;
  line-height: 1.35;
}

.bill-company-cell span,
.bill-company-cell small,
.bill-usage-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.bill-company-cell {
  min-width: 240px;
}

.bill-usage-cell strong {
  font-size: 16px;
}

.ticket-context {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(17, 107, 74, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(45, 187, 120, 0.08), transparent 30%),
    #f9fcfa;
}

.ticket-context.is-empty {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

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

.context-grid div {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 107, 74, 0.08);
}

.context-grid span,
.context-demand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.context-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--green-900);
  font-size: 14px;
  line-height: 1.45;
}

.context-demand {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 107, 74, 0.08);
}

.context-demand p {
  margin: 8px 0 0;
  color: #36594a;
  line-height: 1.7;
  font-weight: 750;
}

.reply-context {
  border-color: rgba(11, 138, 99, 0.18);
  background:
    linear-gradient(135deg, rgba(226, 250, 240, 0.95), rgba(255, 255, 255, 0.98));
}

.reply-context span,
.reply-context p {
  color: #0b6f52;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-width: 68px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ef;
  color: #53665f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.success {
  background: #dff7e8;
  color: #147144;
}

.status-badge.warning {
  background: #fff5d8;
  color: #8a6410;
}

.status-badge.info {
  background: #e0f2ff;
  color: #176280;
}

.status-badge.muted {
  background: #edf0ee;
  color: #6d7974;
}

.unread-pill,
.read-pill,
.handled-pill,
.unhandled-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.unread-pill {
  background: #ffe7df;
  color: #b73b20;
}

.read-pill {
  background: #edf0ee;
  color: #6d7974;
}

.handled-pill {
  background: #dff7e8;
  color: #147144;
}

.unhandled-pill {
  background: #fff5d8;
  color: #8a6410;
}

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

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(17, 107, 74, 0.08);
  background: rgba(247, 251, 246, 0.92);
}

.table-footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.table-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-size-control select {
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
}

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

.pagination-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.table-btn {
  padding: 8px 12px;
  font-size: 13px;
}

.item-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.item-list.empty {
  padding: 20px;
  border: 1px dashed rgba(17, 107, 74, 0.22);
  border-radius: 20px;
  background: rgba(239, 250, 243, 0.72);
  color: var(--muted);
}

.card-item {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card-strong);
  box-shadow: 0 10px 24px rgba(6, 59, 43, 0.06);
  overflow: hidden;
}

.card-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green-500), var(--gold));
}

.card-item h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 20px;
}

.card-item p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-meta {
  margin-top: 12px;
  color: #4c6e5f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.card-actions button {
  padding: 8px 14px;
  font-size: 14px;
}

.reply-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green-800);
  line-height: 1.7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 24, 17, 0.62);
  backdrop-filter: blur(10px);
}

.file-preview-modal {
  width: min(1080px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: #f8fcf8;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.92);
}

.modal-head h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 22px;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #edf4ee;
  color: var(--green-900);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.file-preview-body {
  min-height: 420px;
  padding: 20px;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 10%, rgba(39, 184, 117, 0.12), transparent 30%),
    #edf5ef;
}

.image-preview {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(13, 44, 31, 0.18);
}

.policy-cover-preview {
  display: block;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(6, 55, 41, 0.12);
  box-shadow: 0 10px 24px rgba(5, 41, 31, 0.08);
}

.policy-cover-preview.is-hidden {
  display: none;
}

.inline-image-uploader {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(6, 55, 41, 0.1);
  border-radius: 10px;
  background: rgba(244, 250, 247, 0.92);
}

.inline-image-uploader input[type="file"],
.inline-image-uploader input {
  min-width: 0;
}

.inline-image-uploader .secondary-btn {
  min-height: 42px;
  white-space: nowrap;
}

.policy-table-cover {
  display: block;
  width: 92px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(6, 55, 41, 0.1);
}

.pdf-preview-frame {
  width: 100%;
  height: 68vh;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(13, 44, 31, 0.18);
}

/* Visual upgrade V1: premium green enterprise console */
body {
  background:
    radial-gradient(circle at 8% 10%, rgba(45, 187, 120, 0.2) 0, rgba(45, 187, 120, 0) 30%),
    radial-gradient(circle at 90% 18%, rgba(197, 162, 79, 0.18) 0, rgba(197, 162, 79, 0) 26%),
    linear-gradient(120deg, rgba(5, 61, 43, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #eef7ee 0%, #fbfbf3 48%, #e8f3ec 100%);
}

.ambient {
  filter: blur(18px);
  opacity: 0.9;
}

.admin-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  width: min(1500px, calc(100% - 40px));
}

.sidebar {
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 20% 0%, rgba(109, 214, 151, 0.22), transparent 34%),
    radial-gradient(circle at 96% 74%, rgba(197, 162, 79, 0.16), transparent 30%),
    linear-gradient(165deg, #06271d 0%, #0a3b2b 46%, #0d6543 100%);
  box-shadow: 0 26px 70px rgba(3, 36, 25, 0.22);
}

.sidebar::before {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    radial-gradient(circle at 34% 24%, #ffffff 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #dff8c9 0%, #63d990 100%);
}

.brand-block h1 {
  letter-spacing: -0.03em;
}

.nav-item {
  position: relative;
  min-height: 48px;
  padding: 13px 15px 13px 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(244, 255, 247, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item::before {
  position: absolute;
  left: 15px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 950;
}

.nav-item:nth-child(1)::before {
  content: "总";
}

.nav-item:nth-child(2)::before {
  content: "安";
}

.nav-item:nth-child(3)::before {
  content: "管";
}

.nav-item:nth-child(4)::before {
  content: "申";
}

.nav-item:nth-child(5)::before {
  content: "委";
}

.nav-item:nth-child(6)::before {
  content: "人";
}

.nav-item:nth-child(7)::before {
  content: "策";
}

.nav-item:nth-child(8)::before {
  content: "账";
}

.nav-item:nth-child(9)::before {
  content: "工";
}

.nav-item::after {
  width: 6px;
  height: 6px;
  opacity: 0.32;
}

.nav-item:hover,
.nav-item.active {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, #ffffff 0%, #edf9e9 100%);
  color: var(--green-950);
  box-shadow: 0 16px 34px rgba(3, 28, 20, 0.22);
}

.nav-item:hover::before,
.nav-item.active::before {
  background: var(--green-900);
  color: #ffffff;
}

.sidebar-note,
.sidebar-status {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.workspace {
  gap: 24px;
}

.topbar,
.panel,
.admin-section {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 253, 248, 0.76));
  box-shadow: var(--soft-shadow), var(--inner-glow);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 8;
  padding: 22px 26px;
  border-radius: 30px;
}

.topbar h2 {
  color: var(--green-950);
  letter-spacing: -0.05em;
}

.topbar-actions {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.panel,
.admin-section {
  border-radius: 32px;
}

.section-head h3 {
  color: var(--green-950);
  letter-spacing: -0.02em;
}

input,
select,
textarea {
  border-color: rgba(9, 73, 53, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 248, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(17, 107, 74, 0.26);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.quick-card,
.table-btn {
  letter-spacing: 0.01em;
}

.primary-btn {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #0b5a3f 0%, #24a96b 100%);
  box-shadow: 0 14px 30px rgba(17, 107, 74, 0.24);
}

.secondary-btn {
  border: 1px solid rgba(17, 107, 74, 0.12);
  background: linear-gradient(135deg, #e6f6eb 0%, #f8fbef 100%);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.7);
}

.danger-btn {
  border: 1px solid rgba(180, 57, 35, 0.12);
}

.overview-hero {
  position: relative;
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 78% 12%, rgba(233, 248, 220, 0.86), rgba(233, 248, 220, 0) 30%),
    radial-gradient(circle at 18% 86%, rgba(46, 189, 119, 0.28), transparent 34%),
    linear-gradient(135deg, #062d22 0%, #0c5d40 52%, #2faf71 100%);
  box-shadow: 0 24px 54px rgba(4, 37, 27, 0.16);
}

.overview-hero::after {
  content: "";
  position: absolute;
  inset: auto 34px 28px auto;
  width: 150px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7));
}

.metric-card,
.todo-center,
.quick-entry-panel,
.card-item,
.table-wrap,
.status-box {
  border-color: rgba(9, 73, 53, 0.1);
  box-shadow: 0 14px 34px rgba(4, 37, 27, 0.07), var(--inner-glow);
}

.metric-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(45, 187, 120, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5fbf5 100%);
}

.metric-card strong {
  color: var(--green-950);
}

.todo-center {
  background:
    radial-gradient(circle at 94% 12%, rgba(197, 162, 79, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(241, 250, 244, 0.88));
}

.todo-card {
  border-color: rgba(9, 73, 53, 0.09);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 248, 0.94));
}

.quick-entry-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(241, 250, 244, 0.5));
}

.quick-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 14%, rgba(45, 187, 120, 0.1), transparent 30%),
    #ffffff;
  box-shadow: 0 12px 26px rgba(4, 37, 27, 0.06);
}

.quick-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 18px;
  color: rgba(17, 107, 74, 0.38);
  font-size: 22px;
}

.quick-card strong {
  padding-right: 28px;
}

.table-toolbar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.table-wrap {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.data-table th {
  background: linear-gradient(180deg, #f2fbf4, #e7f4eb);
  color: var(--green-950);
}

.data-table tbody tr:hover {
  background: rgba(230, 246, 235, 0.7);
}

.card-item {
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 8%, rgba(45, 187, 120, 0.08), transparent 24%),
    #ffffff;
}

.status-badge,
.unread-pill,
.read-pill,
.handled-pill,
.unhandled-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.file-download-modal,
.file-preview-modal {
  box-shadow: 0 36px 88px rgba(5, 24, 17, 0.32);
}

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

  .sidebar {
    position: relative;
    top: 0;
    min-height: auto;
  }

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

  .nav-item {
    justify-content: center;
    padding: 13px 14px;
    text-align: center;
  }

  .nav-item::before {
    display: none;
  }

  .nav-item::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .auth-view {
    padding: 14px;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 260px;
    padding: 28px;
  }

  .auth-form {
    padding: 26px;
  }

  .admin-shell {
    width: calc(100% - 24px);
    margin: 12px auto 24px;
  }

  .topbar,
  .section-head,
  .overview-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    position: relative;
    top: 0;
  }

  .topbar-actions {
    border-radius: 24px;
  }

  .side-nav,
  .metric-grid,
  .todo-card,
  .quick-grid,
  .module-grid,
  .table-toolbar,
  .three-columns,
  .two-columns,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-actions {
    justify-content: stretch;
  }

  .pagination-actions button {
    width: 100%;
  }

  .hero-orb {
    width: 108px;
    height: 108px;
    border-radius: 32px;
    font-size: 28px;
  }

  .todo-center {
    padding: 18px;
  }

  .quick-entry-panel {
    margin-top: 24px;
    padding: 18px;
  }

  .todo-count {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 22px;
  }
}

/* Executive polish: calmer enterprise console */
:root {
  --surface: #ffffff;
  --surface-soft: #f6f8f7;
  --ink: #10251d;
  --ink-soft: #5f6f67;
  --hairline: #dfe8e2;
  --premium-shadow: 0 18px 44px rgba(13, 36, 27, 0.08);
  --premium-shadow-sm: 0 10px 24px rgba(13, 36, 27, 0.055);
}

body {
  background:
    linear-gradient(180deg, #f7faf8 0%, #eef4f0 100%);
  color: var(--ink);
}

.ambient {
  display: none;
}

.auth-card {
  border-radius: 26px;
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--premium-shadow);
  backdrop-filter: none;
}

.auth-copy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, #08281f 0%, #0a4a35 58%, #16845b 100%);
}

.auth-copy h1 {
  letter-spacing: -0.04em;
}

.admin-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  width: min(1480px, calc(100% - 36px));
  gap: 20px;
}

.sidebar {
  border-radius: 22px;
  background: #08271f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(7, 31, 24, 0.18);
}

.sidebar::before {
  display: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f4f8f5;
  color: #0a4936;
  box-shadow: none;
}

.brand-block h1 {
  font-size: 22px;
}

.side-nav {
  gap: 8px;
}

.nav-item {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(244, 255, 247, 0.72);
  box-shadow: none;
}

.nav-item::before {
  left: 14px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item:hover,
.nav-item.active {
  transform: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.nav-item:hover::before,
.nav-item.active::before {
  background: #d9b56d;
  color: #08271f;
}

.sidebar-note,
.sidebar-status {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

.workspace {
  gap: 18px;
}

.topbar,
.panel,
.admin-section {
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--premium-shadow-sm);
  backdrop-filter: none;
}

.topbar {
  top: 14px;
  border-radius: 20px;
  padding: 20px 24px;
}

.topbar h2 {
  color: var(--ink);
}

.topbar-actions {
  border-radius: 18px;
  background: var(--surface-soft);
  border-color: var(--hairline);
}

.panel,
.admin-section {
  border-radius: 20px;
}

.overview-hero {
  min-height: 210px;
  border-radius: 20px;
  border: 1px solid rgba(9, 73, 53, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #08271f 0%, #0c4f39 58%, #16845b 100%);
  box-shadow: var(--premium-shadow-sm);
}

.overview-hero::after {
  display: none;
}

.hero-orb {
  width: 122px;
  height: 122px;
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f3e2b8;
  font-size: 30px;
}

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

.metric-card {
  border-radius: 18px;
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--premium-shadow-sm);
}

.metric-card.alert-card {
  background: #fffaf4;
}

.metric-card strong {
  font-size: 38px;
  color: var(--ink);
}

.todo-center,
.quick-entry-panel,
.table-toolbar,
.table-wrap,
.card-item,
.status-box {
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--premium-shadow-sm);
}

.quick-card {
  min-height: 86px;
  border-radius: 16px;
  background: var(--surface);
  border-color: var(--hairline);
}

.quick-card::after {
  color: #b79656;
}

input,
select,
textarea {
  border-radius: 12px;
  border-color: var(--hairline);
  background: #ffffff;
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #16845b;
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.12);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.table-btn {
  border-radius: 12px;
  box-shadow: none;
}

.primary-btn {
  background: #0a4936;
}

.secondary-btn {
  background: #edf4ef;
}

.ghost-btn {
  background: #ffffff;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.quick-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--premium-shadow-sm);
}

.data-table th {
  background: #f3f7f4;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
}

.status-badge,
.unread-pill,
.read-pill,
.handled-pill,
.unhandled-pill {
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Layout upgrade: executive command center */
body {
  background:
    linear-gradient(90deg, rgba(8, 39, 31, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, #f8faf8 0%, #eef3f0 100%);
}

.admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 18px;
  width: min(1540px, calc(100% - 32px));
  margin: 16px auto 28px;
}

.sidebar {
  top: 16px;
  min-height: calc(100vh - 32px);
  padding: 18px;
}

.brand-block {
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav {
  margin-top: 18px;
}

.sidebar-note {
  display: none;
}

.sidebar-status {
  margin-top: 18px;
}

.workspace {
  gap: 14px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
}

.topbar .eyebrow {
  margin-bottom: 4px;
}

.topbar h2 {
  font-size: 30px;
  line-height: 1.1;
}

.topbar p:last-child {
  margin-top: 6px;
  font-size: 14px;
}

.topbar-actions {
  align-self: center;
  max-width: 560px;
  padding: 6px;
  border-radius: 14px;
}

.topbar-actions button {
  padding: 9px 13px;
}

.admin-section {
  padding: 18px;
}

.admin-section[data-panel="overview"].active {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.overview-hero {
  min-height: 188px;
  padding: 24px;
}

.overview-hero h2 {
  font-size: 40px;
  letter-spacing: -0.04em;
}

.overview-hero p:last-child {
  max-width: 620px;
}

.hero-orb {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  font-size: 25px;
}

.metric-grid {
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.metric-card {
  min-height: 126px;
  padding: 18px;
}

.metric-card span {
  font-size: 13px;
}

.metric-card strong {
  margin: 10px 0 8px;
  font-size: 36px;
}

.todo-center {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 100%;
  margin-top: 0;
  padding: 18px;
  border-radius: 18px;
}

.todo-center .section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.todo-center .section-head button {
  width: 100%;
}

.todo-list {
  max-height: 472px;
  overflow: auto;
}

.quick-entry-panel {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 18px;
  border-radius: 18px;
}

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

.quick-card {
  min-height: 78px;
  padding: 16px;
}

.module-grid {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
}

.module-grid > .panel {
  min-width: 0;
}

.full-width-panel {
  grid-column: 1 / -1;
}

.panel {
  padding: 20px;
}

.section-head {
  align-items: flex-start;
}

.section-head h3 {
  font-size: 20px;
}

.section-head p {
  font-size: 13px;
}

.form-grid {
  gap: 12px;
}

.table-toolbar {
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

.data-table {
  min-width: 860px;
}

.data-table th {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.data-table td {
  font-size: 13px;
}

.item-list {
  gap: 10px;
}

.card-item {
  border-radius: 16px;
}

.modal-head {
  padding: 16px 20px;
}

@media (max-width: 1280px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr;
  }

  .todo-center {
    grid-column: 1;
    grid-row: auto;
  }

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

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

  .sidebar {
    position: relative;
    top: 0;
    min-height: auto;
  }

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

@media (max-width: 900px) {
  .admin-shell {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .topbar,
  .module-grid,
  .metric-grid,
  .quick-grid,
  .table-toolbar,
  .file-filter-toolbar {
    grid-template-columns: 1fr;
  }

  .overview-hero {
    grid-template-columns: 1fr;
  }
}

/* Calm layout pass: cleaner hierarchy over dense dashboard */
.admin-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(1440px, calc(100% - 40px));
  gap: 22px;
  margin: 22px auto 34px;
}

.workspace {
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 22px 26px;
}

.topbar-actions {
  max-width: 640px;
}

.admin-section {
  padding: 22px;
}

.admin-section[data-panel="overview"].active {
  display: block;
}

.overview-hero {
  min-height: 220px;
  padding: 30px;
}

.overview-hero h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.hero-orb {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

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

.metric-card {
  min-height: 138px;
  padding: 22px;
}

.todo-center {
  min-height: auto;
  margin-top: 22px;
  padding: 22px;
}

.todo-center .section-head {
  display: flex;
}

.todo-center .section-head button {
  width: auto;
}

.todo-list {
  max-height: none;
}

.quick-entry-panel {
  margin-top: 24px;
  padding: 22px;
}

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

.quick-card {
  min-height: 92px;
  padding: 18px 20px;
}

.module-grid {
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.panel {
  padding: 24px;
}

.table-toolbar {
  padding: 12px;
}

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

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

@media (max-width: 900px) {
  .topbar,
  .todo-center .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .metric-grid,
  .quick-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Calm layout pass 2: fewer competing elements */
body {
  background: #f5f7f4;
}

.sidebar {
  background: #0b241b;
  border-radius: 18px;
}

.brand-block {
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 20px;
}

.nav-item {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 10px;
}

.nav-item::before,
.nav-item::after {
  display: none;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.topbar-actions .ghost-btn {
  display: none;
}

.topbar-actions {
  border: 0;
  background: transparent;
  padding: 0;
}

.overview-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  padding: 26px;
  background: #ffffff;
  color: var(--ink);
  border-color: var(--hairline);
}

.overview-hero .eyebrow {
  color: #0a4936;
}

.overview-hero h2 {
  color: var(--ink);
}

.overview-hero p:last-child {
  color: var(--ink-soft);
}

.hero-orb {
  display: none;
}

.metric-card,
.todo-center,
.quick-entry-panel,
.panel,
.topbar,
.admin-section {
  box-shadow: 0 8px 24px rgba(16, 40, 30, 0.055);
}

.metric-card {
  border-radius: 16px;
}

.metric-card.alert-card {
  background: #fff8f1;
}

.section-divider::before {
  height: 30px;
}

.quick-entry-panel {
  background: #ffffff;
}

.quick-card {
  border-radius: 14px;
  box-shadow: none;
}

.quick-card::after {
  display: none;
}

/* Calm layout pass 3: desktop dashboard hierarchy */
.admin-section[data-panel="overview"].active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .overview-hero {
  display: none;
}

.admin-section[data-panel="overview"] .metric-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.admin-section[data-panel="overview"] .metric-card {
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(16, 40, 30, 0.04);
}

.admin-section[data-panel="overview"] .metric-card strong {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.admin-section[data-panel="overview"] .metric-card small {
  margin-top: 8px;
  white-space: normal;
}

.admin-section[data-panel="overview"] .todo-center,
.admin-section[data-panel="overview"] .quick-entry-panel {
  margin: 0;
  border-radius: 14px;
}

.admin-section[data-panel="overview"] .todo-center {
  grid-column: 1;
  padding: 20px;
}

.admin-section[data-panel="overview"] .quick-entry-panel {
  display: none;
}

.admin-section[data-panel="overview"] .section-divider {
  margin-bottom: 14px;
}

.admin-section[data-panel="overview"] .section-divider p {
  display: none;
}

.admin-section[data-panel="overview"] .quick-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-section[data-panel="overview"] .quick-card {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8faf8;
}

.admin-section[data-panel="overview"] .quick-card:hover {
  background: #eef7f1;
}

.admin-section[data-panel="overview"] .quick-card span {
  font-size: 13px;
}

.admin-section[data-panel="overview"] .quick-card strong {
  margin-top: 3px;
  font-size: 13px;
}

.admin-section[data-panel="overview"] .todo-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 86px;
  padding: 14px;
  border-radius: 12px;
}

.admin-section[data-panel="overview"] .todo-count {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}

@media (max-width: 1280px) {
  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr;
  }

  .admin-section[data-panel="overview"] .quick-entry-panel {
    grid-column: 1;
  }

  .admin-section[data-panel="overview"] .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-section[data-panel="overview"] .metric-grid,
  .admin-section[data-panel="overview"] .quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-section[data-panel="overview"] .todo-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .admin-section[data-panel="overview"] .todo-card .table-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Industrial IoT dashboard pass: light, calm, reference-style admin */
:root {
  --iot-bg: #f4f8f7;
  --iot-surface: rgba(255, 255, 255, 0.86);
  --iot-line: #dce9e5;
  --iot-mint: #11b891;
  --iot-mint-deep: #07866a;
  --iot-dark: #08281f;
  --iot-text: #1f332f;
  --iot-muted: #7b918b;
  --iot-warn: #f6b832;
  --iot-danger: #ef5f5f;
  --iot-blue: #2897df;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(221, 240, 235, 0.9), rgba(255, 255, 255, 0.45) 42%, rgba(235, 246, 243, 0.75)),
    var(--iot-bg);
  color: var(--iot-text);
}

.ambient {
  display: none;
}

.admin-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-radius: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 14px 0 34px rgba(16, 40, 30, 0.08);
  color: var(--iot-text);
}

.brand-block {
  display: flex;
  justify-content: center;
  padding: 4px 0 24px;
  border-bottom: 0;
}

.brand-block > div:not(.brand-mark) {
  display: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  color: transparent;
  box-shadow: 0 10px 22px rgba(17, 184, 145, 0.14);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.side-nav {
  display: grid;
  gap: 12px;
}

.nav-item {
  width: 132px;
  min-height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--iot-text);
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(17, 184, 145, 0.28);
  background: #e9fbf5;
  color: var(--iot-mint-deep);
  box-shadow: 0 10px 24px rgba(17, 184, 145, 0.13);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  box-sizing: border-box;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--iot-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.sidebar-note,
.sidebar-status {
  display: none;
}

.workspace {
  gap: 0;
  min-width: 0;
  padding: 0;
}

.topbar {
  min-height: 72px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid rgba(218, 232, 228, 0.9);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(16, 40, 30, 0.05);
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar > div:first-child::before {
  content: "辰耀星能";
  display: inline-block;
  margin-right: 18px;
  color: var(--iot-dark);
  font-size: 18px;
  font-weight: 800;
}

.topbar .eyebrow,
.topbar #pageSubtitle {
  display: none;
}

.topbar h2 {
  display: inline-block;
  margin: 0;
  color: var(--iot-mint-deep);
  font-size: 16px;
  font-weight: 700;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.topbar-actions .ghost-btn {
  display: inline-flex;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.table-btn {
  border-radius: 4px;
  box-shadow: none;
}

.admin-section {
  margin: 24px 28px;
  border-radius: 0;
}

.admin-section[data-panel="overview"].active {
  min-height: calc(100vh - 120px);
  margin: 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 230px minmax(520px, 1fr) 360px;
  grid-template-rows: minmax(650px, calc(100vh - 128px)) auto;
  align-items: stretch;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(237, 247, 245, 0.72)),
    var(--iot-bg);
}

.admin-section[data-panel="overview"] .overview-hero {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  overflow: hidden;
  padding: 54px;
  border: 1px solid rgba(184, 216, 207, 0.72);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(5, 35, 29, 0.9) 0%, rgba(5, 35, 29, 0.56) 38%, rgba(255, 255, 255, 0.04) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(6, 65, 55, 0.58)),
    url("./assets/login-energy-hero.png") center / cover no-repeat;
  color: #ffffff;
  box-shadow: inset 0 -120px 140px rgba(3, 32, 27, 0.42), 0 22px 46px rgba(16, 40, 30, 0.08);
}

.admin-section[data-panel="overview"] .overview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .overview-hero::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(60, 227, 191, 0), rgba(60, 227, 191, 0.8), rgba(255, 255, 255, 0.18));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  position: relative;
  z-index: 1;
  width: min(560px, 62%);
  padding: 0 0 0 22px;
  border-left: 3px solid #34d7b6;
  background: transparent;
  backdrop-filter: none;
}

.admin-section[data-panel="overview"] .overview-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 14px;
  padding: 0 10px;
  border: 1px solid rgba(95, 232, 200, 0.5);
  background: rgba(5, 45, 36, 0.42);
  color: #7ff4d8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.2;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.admin-section[data-panel="overview"] .overview-hero p:last-child {
  max-width: 520px;
  margin-top: 16px;
  color: rgba(236, 255, 250, 0.8);
  font-size: 15px;
  line-height: 1.9;
}

.admin-section[data-panel="overview"] .hero-orb {
  position: absolute;
  right: 42px;
  top: 44px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 268px;
  min-height: 0;
  padding: 12px;
  border-radius: 2px;
  background: rgba(5, 35, 29, 0.22);
  border: 1px solid rgba(176, 246, 229, 0.28);
  color: #8cf7da;
  box-shadow: 0 24px 54px rgba(3, 28, 23, 0.18);
  backdrop-filter: blur(16px);
}

.admin-section[data-panel="overview"] .hero-orb strong {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
  border-left: 2px solid #5df0ce;
  color: #8cf7da;
  font-size: 18px;
  font-weight: 900;
}

.admin-section[data-panel="overview"] .hero-orb span {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 10px 8px;
  border: 1px solid rgba(176, 246, 229, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.admin-section[data-panel="overview"] .hero-orb em {
  color: rgba(239, 255, 251, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.admin-section[data-panel="overview"] .hero-orb b {
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.admin-section[data-panel="overview"] .metric-grid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 14px;
  margin: 0;
  padding: 24px;
  min-height: 0;
  border: 1px solid rgba(220, 233, 229, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(16, 40, 30, 0.06);
}

.admin-section[data-panel="overview"] .metric-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0 12px 48px;
  border: 0;
  border-bottom: 1px solid rgba(220, 233, 229, 0.72);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .metric-card:last-child {
  border-bottom: 0;
}

.admin-section[data-panel="overview"] .metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--iot-mint);
  box-shadow: 0 8px 16px rgba(17, 184, 145, 0.22);
}

.admin-section[data-panel="overview"] .metric-card:nth-child(1)::before {
  background: #ef4444;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.18);
}

.admin-section[data-panel="overview"] .metric-card:nth-child(2)::before {
  background: #f97316;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.18);
}

.admin-section[data-panel="overview"] .metric-card:nth-child(3)::before {
  background: #facc15;
  box-shadow: 0 8px 16px rgba(250, 204, 21, 0.2);
}

.admin-section[data-panel="overview"] .metric-card:nth-child(4)::before {
  background: #22c55e;
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.18);
}

.admin-section[data-panel="overview"] .metric-card:nth-child(5)::before {
  background: #0ea5e9;
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.18);
}

.admin-section[data-panel="overview"] .metric-card.alert-card::before {
  background: #8b5cf6;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.18);
}

.admin-section[data-panel="overview"] .metric-card span {
  color: var(--iot-muted);
  font-size: 13px;
}

.admin-section[data-panel="overview"] .metric-card strong {
  margin-top: 6px;
  color: var(--iot-dark);
  font-size: 26px;
}

.admin-section[data-panel="overview"] .metric-card small {
  margin-top: 4px;
  color: var(--iot-muted);
  font-size: 12px;
}

.admin-section[data-panel="overview"] .metric-card.alert-card {
  background: transparent;
  border-color: rgba(220, 233, 229, 0.72);
}

.admin-section[data-panel="overview"] .todo-center {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(220, 233, 229, 0.72);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(16, 40, 30, 0.06);
}

.admin-section[data-panel="overview"] .todo-center .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
}

.admin-section[data-panel="overview"] .todo-center .section-head h3 {
  color: var(--iot-dark);
  font-size: 20px;
}

.admin-section[data-panel="overview"] .todo-center .section-head p {
  color: var(--iot-muted);
  font-size: 13px;
}

.admin-section[data-panel="overview"] .todo-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  gap: 10px;
  padding-right: 4px;
}

.admin-section[data-panel="overview"] .todo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  min-height: auto;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(220, 233, 229, 0.72);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .todo-count {
  grid-row: 1 / span 2;
  width: 0;
  height: 0;
  overflow: hidden;
}

.admin-section[data-panel="overview"] .todo-content span {
  color: var(--iot-danger);
  font-size: 12px;
}

.admin-section[data-panel="overview"] .todo-content strong {
  color: var(--iot-text);
  font-size: 15px;
}

.admin-section[data-panel="overview"] .todo-content p {
  margin-top: 4px;
  color: var(--iot-muted);
  font-size: 12px;
}

.admin-section[data-panel="overview"] .todo-card .table-btn {
  align-self: center;
}

.admin-section[data-panel="overview"] .quick-entry-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  margin: 0;
  padding: 18px 24px;
  border: 1px solid rgba(220, 233, 229, 0.72);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(16, 40, 30, 0.04);
}

.admin-section[data-panel="overview"] .section-divider {
  display: none;
}

.admin-section[data-panel="overview"] .quick-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.admin-section[data-panel="overview"] .quick-card {
  min-height: 72px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.admin-section[data-panel="overview"] .quick-card:hover {
  border-color: rgba(17, 184, 145, 0.35);
  background: rgba(233, 251, 245, 0.62);
}

.admin-section[data-panel="overview"] .quick-card span {
  color: var(--iot-muted);
  font-size: 12px;
}

.admin-section[data-panel="overview"] .quick-card strong {
  margin-top: 6px;
  color: var(--iot-dark);
  font-size: 14px;
}

/* Overview clean layout: reduce visual competition and make work areas scan left-to-right. */
.admin-section[data-panel="overview"].active {
  min-height: calc(100vh - 96px);
  padding: 20px 24px 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto minmax(390px, 1fr);
  align-items: stretch;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(248, 252, 250, 0.94), rgba(235, 247, 244, 0.86)),
    var(--iot-bg);
}

.admin-section[data-panel="overview"] .metric-grid {
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .metric-card {
  min-height: 92px;
  padding: 16px 16px 16px 58px;
  border: 1px solid rgba(220, 233, 229, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(16, 40, 30, 0.045);
}

.admin-section[data-panel="overview"] .metric-card:last-child {
  border-bottom: 1px solid rgba(220, 233, 229, 0.86);
}

.admin-section[data-panel="overview"] .metric-card::before {
  left: 16px;
  top: 24px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.admin-section[data-panel="overview"] .metric-card span {
  font-size: 13px;
  line-height: 1.2;
}

.admin-section[data-panel="overview"] .metric-card strong {
  margin: 7px 0 0;
  font-size: 26px;
}

.admin-section[data-panel="overview"] .metric-card small {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-section[data-panel="overview"] .overview-hero {
  grid-column: 1;
  grid-row: 2;
  min-height: 390px;
  padding: 42px;
  align-items: flex-end;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(3, 34, 28, 0.84) 0%, rgba(4, 52, 43, 0.62) 42%, rgba(246, 252, 250, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(4, 55, 46, 0.52)),
    url("./assets/login-energy-hero.png") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(16, 40, 30, 0.08);
}

.admin-section[data-panel="overview"] .overview-hero::before {
  background:
    linear-gradient(90deg, rgba(54, 223, 190, 0.1), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
}

.admin-section[data-panel="overview"] .overview-hero::after {
  display: none;
}

.admin-section[data-panel="overview"] .overview-hero > div:first-child {
  width: min(620px, 72%);
  padding-left: 22px;
}

.admin-section[data-panel="overview"] .overview-hero h2 {
  font-size: 34px;
}

.admin-section[data-panel="overview"] .overview-hero p:last-child {
  max-width: 600px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.admin-section[data-panel="overview"] .hero-orb {
  display: none;
}

.admin-section[data-panel="overview"] .todo-center {
  grid-column: 2;
  grid-row: 2;
  padding: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(16, 40, 30, 0.06);
}

.admin-section[data-panel="overview"] .todo-center .section-head {
  grid-template-columns: 1fr;
}

.admin-section[data-panel="overview"] .todo-center .section-head .secondary-btn {
  width: 100%;
}

.admin-section[data-panel="overview"] .todo-list {
  margin-top: 10px;
}

.admin-section[data-panel="overview"] .todo-card {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 0;
}

.admin-section[data-panel="overview"] .todo-card .table-btn {
  width: 100%;
}

.admin-section[data-panel="overview"] .quick-entry-panel {
  display: none;
}

.admin-section[data-panel="overview"] .quick-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.admin-section[data-panel="overview"] .quick-card {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  border-color: rgba(220, 233, 229, 0.72);
  background: rgba(248, 252, 250, 0.72);
}

.admin-section[data-panel="overview"] .quick-card strong {
  display: none;
}

.panel,
.topbar,
.metric-card,
.todo-center,
.quick-entry-panel,
.admin-section {
  border-color: rgba(220, 233, 229, 0.8);
}

@media (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 20px;
  }

  .admin-section[data-panel="overview"] .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-section[data-panel="overview"] .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 12px 16px;
  }

  .brand-block {
    padding: 0;
  }

  .side-nav {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-item {
    width: auto;
    min-height: 48px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .admin-section[data-panel="overview"] .metric-grid,
  .admin-section[data-panel="overview"] .overview-hero,
  .admin-section[data-panel="overview"] .todo-center,
  .admin-section[data-panel="overview"] .quick-entry-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-section[data-panel="overview"] .metric-grid {
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-section[data-panel="overview"] .overview-hero {
    grid-row: 2;
    min-height: 520px;
  }

  .admin-section[data-panel="overview"] .todo-center {
    grid-row: 3;
  }

  .admin-section[data-panel="overview"] .quick-entry-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .side-nav,
  .admin-section[data-panel="overview"] .metric-grid,
  .admin-section[data-panel="overview"] .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section[data-panel="overview"] .overview-hero {
    min-height: 420px;
    padding: 24px;
  }

  .admin-section[data-panel="overview"] .overview-hero > div:first-child {
    width: 100%;
  }
}

/* Login visual pass: real energy image background */
.auth-view {
  min-height: 100vh;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(221, 244, 239, 0.95), rgba(255, 255, 255, 0.7) 45%, rgba(232, 244, 241, 0.9)),
    #f3f9f7;
}

.auth-card {
  grid-template-columns: minmax(560px, 1.2fr) minmax(420px, 0.8fr);
  width: min(1220px, calc(100vw - 96px));
  min-height: 620px;
  border: 1px solid rgba(213, 231, 226, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(16, 40, 30, 0.13);
}

.auth-copy {
  position: relative;
  min-height: 620px;
  justify-content: flex-end;
  overflow: hidden;
  padding: 58px 64px;
  background:
    linear-gradient(180deg, rgba(2, 36, 29, 0.02) 0%, rgba(2, 36, 29, 0.18) 42%, rgba(2, 44, 35, 0.86) 100%),
    linear-gradient(90deg, rgba(2, 42, 33, 0.72), rgba(2, 42, 33, 0.12) 62%, rgba(255, 255, 255, 0)),
    url("./assets/login-energy-hero.png") center / cover no-repeat;
}

.auth-copy::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.auth-copy::after {
  content: "合作申请  账单管理  服务需求";
  position: absolute;
  right: 34px;
  top: 34px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.auth-copy .eyebrow,
.auth-copy h1,
.auth-copy p:last-child {
  position: relative;
  z-index: 1;
}

.auth-copy .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0;
}

.auth-copy h1 {
  max-width: 600px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: 0;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.auth-copy p:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-form {
  position: relative;
  justify-content: center;
  padding: 64px 54px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 251, 0.92));
}

.auth-form::before {
  content: "";
  position: absolute;
  left: 0;
  top: 64px;
  bottom: 64px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(17, 184, 145, 0.38), transparent);
}

.auth-form .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.auth-form .section-head h3 {
  font-size: 24px;
}

.auth-form .section-head p {
  max-width: 330px;
  color: var(--iot-muted);
}

.auth-form .form-grid.stacked {
  gap: 18px;
}

.auth-form input {
  height: 50px;
  border-radius: 8px;
  background: #ffffff;
}

.auth-form .primary-btn {
  min-width: 148px;
  height: 48px;
  border-radius: 8px;
}

.login-state {
  min-width: 132px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .auth-view {
    padding: 18px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .auth-copy {
    min-height: 360px;
    padding: 38px;
  }

  .auth-form {
    padding: 34px;
  }

  .auth-form::before {
    display: none;
  }
}

/* Workspace scale pass: use the available content width */
.admin-section:not([data-panel="overview"]) {
  margin: 10px 28px 28px;
  padding: 22px;
  min-height: calc(100vh - 128px);
  border-radius: 0;
}

.admin-section:not([data-panel="overview"]) .module-grid {
  width: 100%;
  grid-template-columns: minmax(420px, 0.72fr) minmax(680px, 1.28fr);
  gap: 22px;
}

.admin-section:not([data-panel="overview"]) .module-grid.single-module {
  grid-template-columns: minmax(0, 1fr);
}

.admin-section:not([data-panel="overview"]) .module-grid.single-module > .panel,
.admin-section:not([data-panel="overview"]) .full-width-panel,
.admin-section:not([data-panel="overview"]) .list-panel {
  width: 100%;
}

.admin-section[data-panel="delegateUsers"] .panel,
.admin-section[data-panel="security"] .panel {
  max-width: none;
}

.admin-section[data-panel="delegateUsers"] .table-wrap,
.admin-section[data-panel="delegateUsers"] .item-list,
.admin-section[data-panel="adminUsers"] .table-wrap,
.admin-section[data-panel="leads"] .table-wrap,
.admin-section[data-panel="policies"] .table-wrap,
.admin-section[data-panel="bills"] .table-wrap,
.admin-section[data-panel="tickets"] .table-wrap {
  width: 100%;
}

.admin-section:not([data-panel="overview"]) .table-wrap table {
  min-width: 980px;
}

@media (max-width: 1280px) {
  .admin-section:not([data-panel="overview"]) .module-grid {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 980px) {
  .admin-section:not([data-panel="overview"]) {
    margin: 12px;
    padding: 16px;
  }

  .admin-section:not([data-panel="overview"]) .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Final workspace proportion pass */
.admin-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
}

.workspace {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  padding: 0;
}

.topbar {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  align-self: start;
  padding: 0 28px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(16, 40, 30, 0.045);
}

.topbar-actions {
  max-width: none;
  padding: 0;
  border: 0;
}

.admin-section:not([data-panel="overview"]) {
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 22px 28px 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-section:not([data-panel="overview"]).active {
  display: block;
}

.admin-section:not([data-panel="overview"]) .module-grid {
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(420px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
}

.admin-section:not([data-panel="overview"]) .module-grid.single-module {
  grid-template-columns: minmax(0, 1fr);
}

.admin-section:not([data-panel="overview"]) .panel {
  width: 100%;
  max-width: none;
  border-radius: 14px;
}

.admin-section:not([data-panel="overview"]) .module-grid.single-module > .panel {
  min-height: calc(100vh - 122px);
}

.admin-section:not([data-panel="overview"]) .list-panel {
  min-height: calc(100vh - 122px);
}

.admin-section:not([data-panel="overview"]) .table-toolbar {
  grid-template-columns: minmax(320px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
}

.admin-section:not([data-panel="overview"]) .table-wrap {
  width: 100%;
}

.admin-section:not([data-panel="overview"]) .table-wrap table {
  width: 100%;
}

@media (max-width: 1280px) {
  .admin-section:not([data-panel="overview"]) .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Bills page: operational layout */
.bill-command-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.bill-command-strip article {
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid rgba(220, 233, 229, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(16, 40, 30, 0.045);
}

.bill-command-strip span,
.bill-command-strip strong,
.bill-command-strip small {
  display: block;
}

.bill-command-strip span {
  color: var(--iot-muted);
  font-size: 13px;
  font-weight: 800;
}

.bill-command-strip strong {
  margin-top: 8px;
  color: var(--iot-dark);
  font-size: 34px;
  line-height: 1;
}

.bill-command-strip small {
  margin-top: 8px;
  color: var(--iot-muted);
  font-size: 12px;
}

.bill-command-strip article.alert {
  border-color: rgba(239, 95, 95, 0.24);
  background: #fff8f6;
}

.bill-command-strip article.alert strong {
  color: var(--iot-danger);
}

.bill-command-strip article.saving {
  border-color: rgba(18, 184, 134, 0.28);
  background:
    radial-gradient(circle at 92% 18%, rgba(31, 202, 151, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.94);
}

.bill-command-strip article.saving strong {
  color: #087553;
  font-size: 26px;
}

.saving-cell {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 184, 134, 0.1);
  color: #087553;
  font-size: 12px;
  font-weight: 900;
}

.savings-board-panel .section-head select {
  min-width: 150px;
}

.savings-leaderboard {
  margin-top: 18px;
}

.savings-leaderboard.empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(17, 107, 74, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 251, 248, 0.96));
  color: #60766d;
  font-weight: 800;
}

.savings-board-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(18, 184, 134, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 86% 18%, rgba(18, 184, 134, 0.16), transparent 32%),
    linear-gradient(135deg, #f6fffb, #ffffff);
}

.savings-board-summary span,
.savings-board-summary small {
  display: block;
  color: #60766d;
  font-size: 13px;
  font-weight: 800;
}

.savings-board-summary strong {
  display: block;
  margin-top: 5px;
  color: #073f30;
  font-size: 30px;
  line-height: 1;
}

.savings-rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.savings-rank-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(210, 226, 221, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.savings-rank-card.top-rank {
  border-color: rgba(18, 184, 134, 0.26);
  background:
    linear-gradient(135deg, rgba(238, 255, 248, 0.96), rgba(255, 255, 255, 0.96));
}

.rank-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: #073f30;
  color: #ffffff;
  font-weight: 950;
}

.rank-main,
.rank-saving {
  min-width: 0;
}

.rank-main strong,
.rank-saving strong {
  display: block;
  color: #073f30;
  font-weight: 950;
}

.rank-main span,
.rank-saving span {
  display: block;
  margin-top: 5px;
  color: #60766d;
  font-size: 12px;
  font-weight: 700;
}

.rank-saving {
  text-align: right;
}

.rank-saving strong {
  color: #087553;
  font-size: 18px;
}

.admin-section[data-panel="savings"] {
  gap: 18px;
}

.savings-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border: 1px solid rgba(18, 184, 134, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(3, 56, 43, 0.94), rgba(8, 117, 83, 0.84)),
    radial-gradient(circle at 88% 20%, rgba(93, 243, 204, 0.28), transparent 30%);
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(14, 50, 38, 0.16);
}

.savings-dashboard-hero .eyebrow {
  margin: 0 0 10px;
  color: rgba(121, 247, 213, 0.94);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.savings-dashboard-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.savings-dashboard-hero p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 700;
}

.savings-dashboard-hero select {
  min-width: 160px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 900;
}

.savings-dashboard-hero select option {
  color: #073f30;
}

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

.saving-kpi-grid article {
  padding: 20px;
  border: 1px solid rgba(210, 226, 221, 0.92);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 16%, rgba(18, 184, 134, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(18, 50, 38, 0.07);
}

.saving-kpi-grid span,
.saving-kpi-grid small {
  display: block;
  color: #60766d;
  font-size: 13px;
  font-weight: 850;
}

.saving-kpi-grid strong {
  display: block;
  margin: 8px 0;
  color: #073f30;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.savings-dashboard-panel {
  margin-top: 0;
}

.savings-dashboard-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.savings-dashboard-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 1.05fr) minmax(180px, 0.7fr) minmax(170px, auto);
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(210, 226, 221, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 253, 250, 0.96));
  box-shadow: 0 12px 26px rgba(16, 40, 30, 0.05);
}

.savings-dashboard-row.top-row {
  border-color: rgba(18, 184, 134, 0.28);
  background:
    radial-gradient(circle at 86% 18%, rgba(18, 184, 134, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(240, 255, 249, 0.98), rgba(255, 255, 255, 0.98));
}

.dashboard-rank {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #073f30;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.dashboard-company,
.dashboard-saving {
  min-width: 0;
}

.dashboard-company strong,
.dashboard-saving strong {
  display: block;
  color: #073f30;
  font-size: 17px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-company span,
.dashboard-saving span {
  display: block;
  margin-top: 6px;
  color: #60766d;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 63, 48, 0.09);
}

.dashboard-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #11b891, #7be4ca);
  box-shadow: 0 0 18px rgba(18, 184, 134, 0.32);
}

.dashboard-saving {
  text-align: right;
}

.dashboard-saving strong {
  color: #087553;
  font-size: 20px;
}

.admin-section[data-panel="bills"] .module-grid {
  grid-template-columns: minmax(420px, 0.68fr) minmax(0, 1.32fr);
}

.admin-section[data-panel="bills"] .full-width-panel {
  grid-column: 1 / -1;
}

.admin-section[data-panel="bills"] .panel {
  border-radius: 14px;
}

.admin-section[data-panel="bills"] .section-head h3 {
  font-size: 22px;
}

.admin-section[data-panel="bills"] .status-box {
  border-radius: 10px;
}

.admin-section[data-panel="bills"] .table-wrap {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-section[data-panel="bills"] .data-table th {
  background: #f3faf7;
}

.admin-section[data-panel="bills"] .full-width-panel .data-table {
  min-width: 1040px;
}

.admin-section[data-panel="bills"] .file-filter-toolbar {
  grid-template-columns: minmax(260px, 1fr) 180px 190px auto;
}

.admin-section[data-panel="bills"] .file-bulk-actions {
  justify-content: flex-end;
}

.service-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(220, 233, 229, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.04);
}

.service-tab {
  min-width: 104px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--iot-muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.service-tab.active {
  background: #e9fbf5;
  color: var(--iot-green);
  box-shadow: inset 0 0 0 1px rgba(17, 184, 145, 0.18);
}

.service-tab:hover,
.service-tab:focus-visible {
  color: var(--iot-green);
  outline: none;
}

@media (max-width: 1380px) {
  .bill-command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .savings-rank-list {
    grid-template-columns: 1fr;
  }

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

  .savings-dashboard-row {
    grid-template-columns: 60px minmax(180px, 1fr) minmax(150px, 0.8fr);
  }

  .dashboard-saving {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .bill-command-strip {
    grid-template-columns: 1fr;
  }

  .savings-dashboard-hero {
    display: grid;
    padding: 24px;
  }

  .savings-dashboard-hero h2 {
    font-size: 28px;
  }

  .savings-dashboard-hero select,
  .saving-kpi-grid {
    width: 100%;
  }

  .saving-kpi-grid,
  .savings-dashboard-row {
    grid-template-columns: 1fr;
  }

  .dashboard-rank {
    width: 42px;
    height: 42px;
  }

  .dashboard-saving {
    grid-column: auto;
  }
}

/* List-first management flow */
.admin-section:not([data-panel="overview"]) .list-first-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-section:not([data-panel="overview"]) .list-first-grid.detail-open {
  grid-template-columns: minmax(360px, 0.56fr) minmax(0, 1.44fr);
}

.admin-section:not([data-panel="overview"]) .detail-panel {
  align-self: start;
}

.admin-section:not([data-panel="overview"]) .list-first-grid .list-panel {
  min-height: calc(100vh - 122px);
}

.admin-section:not([data-panel="overview"]) .list-first-grid.detail-open .list-panel {
  min-height: calc(100vh - 122px);
}

.admin-section[data-panel="bills"] .list-first-grid.detail-open {
  grid-template-columns: minmax(420px, 0.68fr) minmax(0, 1.32fr);
}

.admin-section[data-panel="leads"] .table-wrap table,
.admin-section[data-panel="tickets"] .table-wrap table {
  min-width: 980px;
}

@media (max-width: 1280px) {
  .admin-section:not([data-panel="overview"]) .list-first-grid.detail-open,
  .admin-section[data-panel="bills"] .list-first-grid.detail-open {
    grid-template-columns: 1fr;
  }

  .admin-section:not([data-panel="overview"]) .detail-open .detail-panel {
    order: 2;
  }

  .admin-section:not([data-panel="overview"]) .detail-open .list-panel {
    order: 1;
  }
}

/* Current admin identity */
.topbar {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  height: 40px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(220, 233, 229, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--iot-text);
  box-shadow: 0 8px 20px rgba(16, 40, 30, 0.055);
}

.topbar-user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a8f72, #19c3a0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.topbar-user-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.topbar-user-copy strong,
.topbar-user-copy small {
  display: block;
  max-width: 124px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-copy strong {
  color: var(--iot-dark);
  font-size: 13px;
  font-weight: 900;
}

.topbar-user-copy small {
  margin-top: 3px;
  color: var(--iot-muted);
  font-size: 11px;
  font-weight: 700;
}

.toast-notice {
  position: fixed;
  top: 88px;
  right: 28px;
  z-index: 80;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(220, 233, 229, 0.96);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--iot-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 18px 46px rgba(16, 40, 30, 0.14);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-notice::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: #22c55e;
  vertical-align: 1px;
}

.toast-notice.error::before {
  background: #ef4444;
}

.toast-notice.warning::before {
  background: #f59e0b;
}

.toast-notice.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
}

@media (max-width: 1360px) {
  .topbar-user {
    min-width: 44px;
    padding-right: 5px;
  }

  .topbar-user-copy {
    display: none;
  }
}

/* Unified management pages */
.admin-section:not([data-panel="overview"]) {
  padding: 22px 28px 30px;
  background:
    linear-gradient(180deg, rgba(248, 252, 250, 0.88), rgba(238, 247, 244, 0.92)),
    #f4faf7;
}

.admin-section:not([data-panel="overview"]) .module-grid,
.admin-section:not([data-panel="overview"]) .list-first-grid {
  gap: 18px;
}

.admin-section:not([data-panel="overview"]) .panel {
  padding: 22px 24px;
  border: 1px solid rgba(210, 226, 221, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(16, 40, 30, 0.055);
}

.admin-section:not([data-panel="overview"]) .detail-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-left: 4px solid #10a47e;
  background:
    linear-gradient(180deg, rgba(246, 252, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.admin-section:not([data-panel="overview"]) .section-head {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(220, 233, 229, 0.86);
}

.admin-section:not([data-panel="overview"]) .section-head h3 {
  margin: 0;
  color: #062f24;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.admin-section:not([data-panel="overview"]) .section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #60766d;
  font-size: 13px;
  line-height: 1.7;
}

.admin-section:not([data-panel="overview"]) .table-toolbar,
.admin-section:not([data-panel="overview"]) .file-filter-toolbar {
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(220, 233, 229, 0.9);
  border-radius: 8px;
  background: #fbfefd;
}

.admin-section:not([data-panel="overview"]) .table-toolbar input,
.admin-section:not([data-panel="overview"]) .table-toolbar select,
.admin-section:not([data-panel="overview"]) .file-filter-toolbar select {
  min-height: 42px;
  border-radius: 6px;
  background: #ffffff;
}

.admin-section:not([data-panel="overview"]) .table-wrap {
  margin-top: 16px;
  border: 1px solid rgba(210, 226, 221, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.admin-section:not([data-panel="overview"]) .data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-section:not([data-panel="overview"]) .data-table th {
  padding: 13px 16px;
  background: #f4faf7;
  color: #0b3f30;
  font-size: 12px;
  line-height: 1.2;
}

.admin-section:not([data-panel="overview"]) .data-table td {
  padding: 14px 16px;
  border-bottom-color: rgba(220, 233, 229, 0.86);
  color: #28483d;
  font-size: 13px;
}

.admin-section:not([data-panel="overview"]) .data-table tbody tr:hover {
  background: #f7fcfa;
}

.admin-section:not([data-panel="overview"]) .item-list.empty,
.admin-section:not([data-panel="overview"]) .download-check-list.empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin-top: 16px;
  padding: 28px;
  border: 1px dashed rgba(17, 107, 74, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 251, 248, 0.96));
  color: transparent;
  font-size: 0;
  text-align: center;
}

.admin-section:not([data-panel="overview"]) .item-list.empty::before,
.admin-section:not([data-panel="overview"]) .download-check-list.empty::before {
  content: "暂无数据";
  color: #0b3f30;
  font-size: 18px;
  font-weight: 900;
}

.admin-section:not([data-panel="overview"]) .item-list.empty::after,
.admin-section:not([data-panel="overview"]) .download-check-list.empty::after {
  content: "当前没有匹配记录，可以调整筛选条件或新增内容。";
  display: block;
  max-width: 360px;
  margin-top: 8px;
  color: #60766d;
  font-size: 13px;
  line-height: 1.7;
}

.admin-section:not([data-panel="overview"]) .status-box,
.admin-section:not([data-panel="overview"]) .compact-status {
  border-radius: 8px;
  background: #f6fbf8;
  color: #48665b;
  font-size: 13px;
}

.admin-section:not([data-panel="overview"]) .primary-btn,
.admin-section:not([data-panel="overview"]) .secondary-btn,
.admin-section:not([data-panel="overview"]) .danger-btn,
.admin-section:not([data-panel="overview"]) .ghost-btn,
.admin-section:not([data-panel="overview"]) .table-btn {
  min-height: 36px;
  border-radius: 6px;
}

.service-tabs {
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.service-tab {
  border-radius: 6px;
}

.bill-command-strip article {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.05);
}

@media (max-width: 1280px) {
  .admin-section:not([data-panel="overview"]) .detail-panel {
    position: static;
  }

  .admin-section:not([data-panel="overview"]) .table-toolbar,
  .admin-section:not([data-panel="overview"]) .file-filter-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Larger edit panels: make editing areas readable and comfortable. */
.admin-section:not([data-panel="overview"]) .list-first-grid.detail-open {
  grid-template-columns: minmax(520px, 0.92fr) minmax(0, 1.08fr);
}

.admin-section[data-panel="bills"] .list-first-grid.detail-open {
  grid-template-columns: minmax(560px, 0.95fr) minmax(0, 1.05fr);
}

.admin-section:not([data-panel="overview"]) .detail-panel {
  padding: 28px 30px 64px;
}

.admin-section:not([data-panel="overview"]) .detail-panel .section-head h3 {
  font-size: 25px;
}

.admin-section:not([data-panel="overview"]) .detail-panel .section-head p {
  font-size: 14px;
}

.admin-section:not([data-panel="overview"]) .detail-panel .form-grid {
  gap: 18px;
  margin-top: 20px;
}

.admin-section:not([data-panel="overview"]) .detail-panel .form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.admin-section:not([data-panel="overview"]) .detail-panel label > span,
.admin-section:not([data-panel="overview"]) .detail-panel .field-label {
  margin-bottom: 9px;
  color: #073f30;
  font-size: 15px;
  font-weight: 900;
}

.admin-section:not([data-panel="overview"]) .detail-panel input,
.admin-section:not([data-panel="overview"]) .detail-panel select,
.admin-section:not([data-panel="overview"]) .detail-panel textarea {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.admin-section:not([data-panel="overview"]) .detail-panel textarea {
  min-height: 190px;
  resize: vertical;
}

#policySummary {
  min-height: 160px;
}

#policyContent {
  min-height: 280px;
}

#leadReply,
#ticketReply {
  min-height: 220px;
}

.admin-section:not([data-panel="overview"]) .detail-panel .field-hint {
  display: block;
  margin-top: 8px;
  color: #60766d;
  font-size: 13px;
  line-height: 1.6;
}

.admin-section:not([data-panel="overview"]) .detail-panel .button-row {
  gap: 12px;
  margin-top: 22px;
}

.admin-section:not([data-panel="overview"]) .detail-panel .primary-btn,
.admin-section:not([data-panel="overview"]) .detail-panel .secondary-btn {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.admin-section:not([data-panel="overview"]) .detail-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 1440px) {
  .admin-section:not([data-panel="overview"]) .list-first-grid.detail-open,
  .admin-section[data-panel="bills"] .list-first-grid.detail-open {
    grid-template-columns: minmax(500px, 0.88fr) minmax(0, 1.12fr);
  }
}

@media (max-width: 1280px) {
  .admin-section:not([data-panel="overview"]) .list-first-grid.detail-open,
  .admin-section[data-panel="bills"] .list-first-grid.detail-open {
    grid-template-columns: 1fr;
  }

  .admin-section:not([data-panel="overview"]) .detail-panel .form-grid.two-columns {
    grid-template-columns: 1fr;
  }
}

/* Pixel Blast homepage effect: restrained motion for the admin hero. */
.admin-section[data-panel="overview"] .overview-hero {
  --hero-x: 72%;
  --hero-y: 28%;
  isolation: isolate;
}

.admin-section[data-panel="overview"] .overview-hero::before {
  z-index: 0;
}

.admin-section[data-panel="overview"] .overview-hero::after {
  z-index: 1;
  opacity: 0.88;
}

.admin-section[data-panel="overview"] .pixel-blast-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.admin-section[data-panel="overview"] .pixel-blast-layer::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.78;
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(87, 255, 214, 0.58), rgba(87, 255, 214, 0) 18%),
    radial-gradient(circle at 18% 72%, rgba(255, 226, 130, 0.24), rgba(255, 226, 130, 0) 18%),
    linear-gradient(115deg, rgba(17, 239, 194, 0) 0%, rgba(17, 239, 194, 0.34) 45%, rgba(255, 255, 255, 0) 64%);
  filter: blur(1px);
  transform: translate3d(0, 0, 0);
  animation: heroLightSweep 8s ease-in-out infinite;
}

.admin-section[data-panel="overview"] .pixel-blast-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(118, 255, 224, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 224, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.18) 72%, transparent);
  animation: heroGridDrift 16s linear infinite;
}

.admin-section[data-panel="overview"] .pixel-core {
  position: absolute;
  left: var(--hero-x);
  top: var(--hero-y);
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: #83ffe0;
  box-shadow:
    0 0 0 1px rgba(131, 255, 224, 0.5),
    0 0 32px rgba(131, 255, 224, 0.94),
    20px 12px 0 rgba(131, 255, 224, 0.32),
    -30px 24px 0 rgba(255, 229, 142, 0.24),
    46px -20px 0 rgba(131, 255, 224, 0.26),
    -58px -18px 0 rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -50%);
  animation: heroPixelPulse 2.8s ease-in-out infinite;
}

.admin-section[data-panel="overview"] .pixel-scan {
  position: absolute;
  left: -20%;
  top: 0;
  width: 18%;
  height: 100%;
  opacity: 0.72;
  background: linear-gradient(90deg, transparent, rgba(122, 255, 225, 0.4), transparent);
  transform: skewX(-14deg);
  animation: heroScan 6.8s ease-in-out infinite;
}

.admin-section[data-panel="overview"] .pixel-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: rgba(128, 255, 224, 0.92);
  box-shadow:
    0 0 18px rgba(128, 255, 224, 0.72),
    18px 14px 0 rgba(128, 255, 224, 0.16),
    -14px 22px 0 rgba(255, 232, 156, 0.12);
  animation: heroPixelFloat 7s ease-in-out infinite;
}

.admin-section[data-panel="overview"] .node-1 { left: 14%; top: 22%; animation-delay: -0.6s; }
.admin-section[data-panel="overview"] .node-2 { left: 23%; top: 68%; animation-delay: -2.4s; }
.admin-section[data-panel="overview"] .node-3 { left: 36%; top: 18%; animation-delay: -3.1s; }
.admin-section[data-panel="overview"] .node-4 { left: 47%; top: 78%; animation-delay: -1.4s; background: rgba(255, 224, 135, 0.62); }
.admin-section[data-panel="overview"] .node-5 { left: 58%; top: 28%; animation-delay: -4.8s; }
.admin-section[data-panel="overview"] .node-6 { left: 68%; top: 62%; animation-delay: -2.9s; }
.admin-section[data-panel="overview"] .node-7 { left: 77%; top: 18%; animation-delay: -5.6s; background: rgba(255, 255, 255, 0.72); }
.admin-section[data-panel="overview"] .node-8 { left: 84%; top: 48%; animation-delay: -1.1s; }
.admin-section[data-panel="overview"] .node-9 { left: 91%; top: 74%; animation-delay: -3.9s; background: rgba(255, 224, 135, 0.58); }
.admin-section[data-panel="overview"] .node-10 { left: 31%; top: 44%; animation-delay: -6.2s; }

.admin-section[data-panel="overview"] .overview-hero > div:first-child,
.admin-section[data-panel="overview"] .hero-orb {
  z-index: 2;
}

/* Make the Pixel Blast layer clearly visible above the hero photo overlay. */
.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer {
  z-index: 3;
  opacity: 1;
  mix-blend-mode: normal;
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer::before {
  opacity: 1;
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(88, 255, 216, 0.78), rgba(88, 255, 216, 0.24) 8%, rgba(88, 255, 216, 0) 20%),
    radial-gradient(circle at 72% 18%, rgba(255, 236, 155, 0.48), rgba(255, 236, 155, 0) 16%),
    linear-gradient(112deg, rgba(31, 255, 206, 0) 0%, rgba(31, 255, 206, 0.12) 34%, rgba(31, 255, 206, 0.5) 45%, rgba(255, 255, 255, 0) 58%);
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer::after {
  opacity: 0.92;
  background-image:
    radial-gradient(circle, rgba(123, 255, 224, 0.92) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 232, 151, 0.78) 0 1px, transparent 2px),
    linear-gradient(rgba(118, 255, 224, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 255, 224, 0.24) 1px, transparent 1px);
  background-position: 0 0, 22px 18px, 0 0, 0 0;
  background-size: 74px 74px, 108px 108px, 42px 42px, 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.18));
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-core {
  width: 14px;
  height: 14px;
  background: #90ffe4;
  box-shadow:
    0 0 0 2px rgba(144, 255, 228, 0.52),
    0 0 42px rgba(144, 255, 228, 1),
    24px 14px 0 rgba(144, 255, 228, 0.55),
    -34px 24px 0 rgba(255, 232, 151, 0.42),
    54px -26px 0 rgba(144, 255, 228, 0.45),
    -70px -22px 0 rgba(255, 255, 255, 0.32),
    96px 36px 0 rgba(144, 255, 228, 0.25),
    -110px 42px 0 rgba(255, 232, 151, 0.22);
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-scan {
  opacity: 1;
  width: 24%;
  background:
    linear-gradient(90deg, transparent, rgba(117, 255, 224, 0.62), rgba(255, 255, 255, 0.22), transparent);
}

.admin-section[data-panel="overview"] .overview-hero > .pixel-blast-layer .pixel-node {
  width: 10px;
  height: 10px;
  background: rgba(128, 255, 224, 1);
  box-shadow:
    0 0 24px rgba(128, 255, 224, 0.95),
    20px 16px 0 rgba(128, 255, 224, 0.36),
    -18px 26px 0 rgba(255, 232, 156, 0.28),
    34px -22px 0 rgba(255, 255, 255, 0.18);
}

.admin-section[data-panel="overview"] .overview-hero > div:not(.pixel-blast-layer),
.admin-section[data-panel="overview"] .hero-orb {
  position: relative;
  z-index: 4;
}

@keyframes heroLightSweep {
  0%, 100% {
    transform: translate3d(-2%, 0, 0);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(4%, -2%, 0);
    opacity: 0.62;
  }
}

@keyframes heroGridDrift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 84px 42px, 84px 42px;
  }
}

@keyframes heroPixelPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

@keyframes heroScan {
  0%, 18% {
    transform: translateX(0) skewX(-14deg);
  }
  58%, 100% {
    transform: translateX(760%) skewX(-14deg);
  }
}

@keyframes heroPixelFloat {
  0%, 100% {
    opacity: 0.24;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.82;
    transform: translate3d(10px, -14px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-section[data-panel="overview"] .pixel-blast-layer::before,
  .admin-section[data-panel="overview"] .pixel-blast-layer::after,
  .admin-section[data-panel="overview"] .pixel-core,
  .admin-section[data-panel="overview"] .pixel-scan,
  .admin-section[data-panel="overview"] .pixel-node {
    animation: none;
  }
}

.admin-section[data-panel="bills"] .form-grid .span-two {
  grid-column: 1 / -1;
}

.admin-section[data-panel="bills"] .form-grid .span-two textarea {
  min-height: 120px;
}

.review-note-cell {
  max-width: 220px;
  margin-top: 8px;
  white-space: normal;
  line-height: 1.5;
}

.contract-price-lines {
  margin-top: 8px;
  line-height: 1.6;
}

/* Final overview layout: compact, readable task list without nested cards. */
.admin-section[data-panel="overview"].active {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
  grid-template-rows: auto minmax(420px, 1fr);
  gap: 18px;
}

.admin-section[data-panel="overview"] .todo-center {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 26px 24px;
  overflow: visible;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(16, 40, 30, 0.07);
}

.admin-section[data-panel="overview"] .todo-center .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section[data-panel="overview"] .todo-center .section-head h3 {
  font-size: 22px;
  line-height: 1.2;
}

.admin-section[data-panel="overview"] .todo-center .section-head p {
  max-width: 230px;
  margin-top: 8px;
  line-height: 1.55;
}

.admin-section[data-panel="overview"] .todo-center .section-head .secondary-btn {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.admin-section[data-panel="overview"] .todo-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  overflow: visible;
  border-top: 1px solid rgba(210, 228, 222, 0.82);
}

.admin-section[data-panel="overview"] .todo-list-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 2px 10px;
  color: var(--iot-muted);
  font-size: 13px;
}

.admin-section[data-panel="overview"] .todo-list-summary strong {
  color: var(--iot-dark);
  font-size: 24px;
  line-height: 1;
}

.admin-section[data-panel="overview"] .todo-list-summary small {
  color: var(--iot-muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-section[data-panel="overview"] .todo-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 2px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(220, 233, 229, 0.86);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-section[data-panel="overview"] .todo-card:hover {
  padding-right: 8px;
  background: rgba(238, 249, 246, 0.72);
}

.admin-section[data-panel="overview"] .todo-accent {
  align-self: stretch;
  width: 4px;
  min-height: 42px;
  border-radius: 2px;
  background: #ef5a5a;
}

.admin-section[data-panel="overview"] .todo-card.ticket .todo-accent {
  background: #0ea5e9;
}

.admin-section[data-panel="overview"] .todo-card.bill .todo-accent {
  background: #22c55e;
}

.admin-section[data-panel="overview"] .todo-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.admin-section[data-panel="overview"] .todo-content span {
  color: var(--iot-muted);
  font-size: 12px;
  line-height: 1.2;
}

.admin-section[data-panel="overview"] .todo-content strong {
  overflow: hidden;
  color: var(--iot-text);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-section[data-panel="overview"] .todo-compact-meta {
  display: flex;
  min-width: 64px;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.admin-section[data-panel="overview"] .todo-compact-meta strong {
  color: var(--iot-dark);
  font-size: 22px;
  line-height: 1;
}

.admin-section[data-panel="overview"] .todo-compact-meta span {
  color: var(--iot-mint-deep);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-section[data-panel="overview"] .todo-chevron {
  color: #8ba29b;
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease, color 160ms ease;
}

.admin-section[data-panel="overview"] .todo-card:hover .todo-chevron {
  color: var(--iot-mint-deep);
  transform: translateX(2px);
}

.admin-section[data-panel="overview"] .todo-count,
.admin-section[data-panel="overview"] .todo-priority,
.admin-section[data-panel="overview"] .todo-card .table-btn {
  display: none;
}

@media (max-width: 1380px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .admin-section[data-panel="overview"] .todo-center {
    padding: 22px 20px;
  }
}

@media (max-width: 1120px) {
  .admin-section[data-panel="overview"].active {
    grid-template-columns: 1fr;
  }

  .admin-section[data-panel="overview"] .todo-center {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .admin-section[data-panel="overview"] .todo-center .section-head {
    grid-template-columns: 1fr;
  }

  .admin-section[data-panel="overview"] .todo-center .section-head .secondary-btn {
    width: 100%;
  }

  .admin-section[data-panel="overview"] .todo-card {
    grid-template-columns: 4px minmax(0, 1fr) auto 12px;
    gap: 9px;
  }
}

/* Global business search */
.topbar {
  position: relative;
  z-index: 90;
  grid-template-columns: minmax(210px, 0.65fr) minmax(340px, 560px) auto;
}

.topbar-title {
  overflow: hidden;
  white-space: nowrap;
}

.global-search {
  position: relative;
  z-index: 120;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.global-search-field {
  position: relative;
  display: flex;
  height: 44px;
  align-items: center;
  border: 1px solid #d8e5e1;
  border-radius: 8px;
  background: rgba(248, 251, 250, 0.96);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.global-search:focus-within .global-search-field {
  border-color: #60bda6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 166, 128, 0.1), 0 10px 24px rgba(15, 66, 52, 0.08);
}

.global-search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: 15px;
  flex: 0 0 18px;
}

.global-search-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #66827a;
  border-radius: 50%;
}

.global-search-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #66827a;
  transform: rotate(45deg);
  transform-origin: right center;
}

.global-search-field input {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 42px 0 11px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #123e33;
  font: inherit;
  font-size: 14px;
}

.global-search-field input:focus,
.global-search-field input:focus-visible,
.global-search-field input:hover {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.global-search-field input::placeholder {
  color: #8ba09a;
}

.global-search-field input::-webkit-search-cancel-button {
  display: none;
}

.global-search-clear {
  position: absolute;
  right: 7px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #789088;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.global-search-clear:hover {
  background: #edf6f3;
  color: #08785c;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid #d9e7e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(12, 54, 43, 0.18);
}

.global-search-head {
  display: flex;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e7efed;
  background: #fbfdfc;
}

.global-search-head strong {
  color: #143f34;
  font-size: 13px;
}

.global-search-head span {
  color: #8a9c97;
  font-size: 11px;
  white-space: nowrap;
}

.global-search-list {
  padding: 6px 0;
}

.global-search-result {
  display: grid;
  width: 100%;
  min-height: 68px;
  padding: 10px 14px 10px 16px;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #edf2f0;
  border-radius: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.global-search-result:last-child {
  border-bottom: 0;
}

.global-search-result:hover,
.global-search-result.is-active {
  background: #eff9f6;
}

.global-search-result-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.global-search-result-main strong,
.global-search-result-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-main strong {
  color: #103d31;
  font-size: 14px;
}

.global-search-result-main small {
  color: #71857f;
  font-size: 12px;
}

.global-search-result-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.global-search-result-meta em {
  padding: 3px 7px;
  border-radius: 6px;
  background: #e9f7f3;
  color: #0b8a68;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.global-search-result-meta b {
  color: #7c908a;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.global-search-arrow {
  color: #85a098;
  font-size: 22px;
  line-height: 1;
}

.global-search-empty {
  padding: 30px 20px;
  color: #7f928c;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(180px, 0.45fr) minmax(300px, 1fr) auto;
    gap: 14px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .topbar-user {
    min-width: 150px;
  }
}

@media (max-width: 980px) {
  .topbar {
    min-height: 124px;
    padding-top: 10px;
    padding-bottom: 10px;
    grid-template-areas:
      "title actions"
      "search search";
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px;
  }

  .topbar-title {
    grid-area: title;
  }

  .global-search {
    grid-area: search;
    max-width: none;
  }

  .topbar-actions {
    grid-area: actions;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 178px;
    grid-template-areas:
      "title"
      "search"
      "actions";
    grid-template-columns: 1fr;
    grid-template-rows: 38px 44px 44px;
  }

  .topbar-actions {
    width: 100%;
    justify-self: stretch;
  }

  .topbar-user {
    min-width: 0;
    flex: 1;
  }

  .global-search-head span,
  .global-search-result-meta b {
    display: none;
  }
}
/* Standalone operation workspace: editing and processing never share space with lists. */
.admin-section.operation-workspace-active .service-tabs,
.admin-section.operation-workspace-active .bill-command-strip {
  display: none !important;
}

.admin-section.operation-workspace-active .module-grid.operation-workspace {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.admin-section.operation-workspace-active .module-grid.operation-workspace > .panel:not(.detail-panel) {
  display: none !important;
}

.admin-section.operation-workspace-active .module-grid.operation-workspace > .detail-panel {
  display: block !important;
  position: relative !important;
  top: auto !important;
  inset: auto !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: calc(100vh - 152px);
  margin: 0 !important;
  padding: clamp(30px, 3vw, 52px) clamp(28px, 4vw, 72px) 72px !important;
  border: 1px solid #d9e8e2 !important;
  border-left: 1px solid #d9e8e2 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(12, 67, 53, 0.08) !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  scrollbar-gutter: auto !important;
}

.admin-section.operation-workspace-active {
  height: auto !important;
  min-height: calc(100vh - 84px);
  max-height: none !important;
  overflow: visible !important;
}

.admin-section.operation-workspace-active .detail-panel::after {
  content: "";
  display: block;
  clear: both;
}

.admin-section.operation-workspace-active .detail-panel > .button-row,
.admin-section.operation-workspace-active .detail-panel > .status-box {
  position: static !important;
  inset: auto !important;
  float: none !important;
  clear: both;
  transform: none !important;
}

.operation-back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 24px;
  padding: 0 18px 0 15px;
  border: 1px solid #cfe1da;
  border-radius: 6px;
  background: #f4f9f7;
  color: #064d3d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.operation-back-btn::before {
  content: "\2190";
  margin-right: 9px;
  font-size: 20px;
  line-height: 1;
}

.operation-back-btn:hover {
  border-color: #83bca9;
  background: #eaf5f1;
  transform: translateX(-2px);
}

.operation-back-btn:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.2);
  outline-offset: 2px;
}

.admin-section.operation-workspace-active .detail-panel > .section-head,
.admin-section.operation-workspace-active .detail-panel > .form-grid,
.admin-section.operation-workspace-active .detail-panel > .ticket-context,
.admin-section.operation-workspace-active .detail-panel > .switch-line,
.admin-section.operation-workspace-active .detail-panel > .button-row,
.admin-section.operation-workspace-active .detail-panel > .status-box,
.admin-section.operation-workspace-active .detail-panel > .form-unit-note,
.admin-section.operation-workspace-active .detail-panel > .policy-format-guide,
.admin-section.operation-workspace-active .detail-panel > .policy-preview {
  width: min(100%, 1320px);
  margin-left: auto;
  margin-right: auto;
}

.admin-section.operation-workspace-active .detail-panel > .section-head {
  margin-bottom: 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid #deebe6;
}

.admin-section.operation-workspace-active .detail-panel > .section-head h2 {
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.25;
}

.admin-section.operation-workspace-active .detail-panel .form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px 28px;
}

.admin-section.operation-workspace-active .detail-panel textarea {
  min-height: 168px;
}

@media (max-width: 900px) {
  .admin-section.operation-workspace-active .module-grid.operation-workspace > .detail-panel {
    min-height: calc(100vh - 112px);
    padding: 24px 18px 52px !important;
  }

  .admin-section.operation-workspace-active .detail-panel .form-grid.two-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
.bill-action-history-wrap {
  margin-top: 18px;
}

.bill-action-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1ece8;
}

.bill-action-history-head span {
  color: #82948e;
  font-size: 12px;
}

.bill-action-history {
  display: grid;
}

.bill-action-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8f0ed;
}

.bill-action-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #18b889;
  box-shadow: 0 0 0 4px #e4f7f1;
}

.bill-action-content {
  min-width: 0;
}

.bill-action-content strong {
  display: block;
}

.bill-action-content p {
  margin: 4px 0 0;
  color: #72867f;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.bill-action-content .bill-action-note {
  color: #344c44;
}

.bill-action-state {
  color: #0a8e69;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bill-action-empty {
  padding: 16px 0;
  color: #7b8e88;
}

.bill-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-return-note {
  color: #a43b3b;
}

@media (max-width: 760px) {
  .bill-customer-summary {
    grid-template-columns: 1fr;
  }

  .bill-action-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .bill-action-state {
    grid-column: 2;
  }
}
