:root {
  --bg-from: #f8fafc;
  --bg-via: #eff6ff;
  --bg-to: #eef2ff;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: rgba(229, 231, 235, 0.9);
  --line-soft: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --blue-900: #1b3a6b;
  --blue-800: #2d4d7d;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --indigo-600: #4f46e5;
  --cyan-500: #06b6d4;
  --emerald-500: #10b981;
  --teal-500: #14b8a6;
  --purple-500: #8b5cf6;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --green-600: #16a34a;
  --red-600: #dc2626;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 64, 175, 0.08);
  --shadow-lg: 0 18px 45px rgba(30, 64, 175, 0.14);
  --shadow-xl: 0 25px 70px rgba(30, 64, 175, 0.18);
  --font: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 28px;
  --text-3xl: 32px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
}

* {
  box-sizing: border-box;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 48%, var(--bg-to) 100%);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: rgba(37, 99, 235, 0.86);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.34) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.34);
  background-clip: padding-box;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a:hover {
  color: var(--indigo-600);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

svg {
  display: block;
}

button,
.btn,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.34);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-from), var(--bg-via), var(--bg-to));
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 32px);
  margin: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800) 48%, var(--blue-900));
  box-shadow: 0 25px 70px rgba(27, 58, 107, 0.34);
  backdrop-filter: blur(24px);
}

.sidebar::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 80% 6%, rgba(96, 165, 250, 0.24), transparent 18rem),
    radial-gradient(circle at 12% 92%, rgba(129, 140, 248, 0.2), transparent 16rem);
  pointer-events: none;
}

.brand-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 96px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #6366f1);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
  font-size: 22px;
  font-weight: 900;
}

.brand-title {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-wrap p {
  margin: 2px 0 0;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.sidebar nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
  padding: 24px 12px;
}

.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 16px;
  overflow: hidden;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 700;
  transition: color 260ms ease, background 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.sidebar a::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.2), rgba(129, 140, 248, 0.2));
  opacity: 0;
  transition: opacity 260ms ease;
}

.sidebar a svg {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  padding: 10px;
  border-radius: 12px;
  fill: currentColor;
  background: rgba(255, 255, 255, 0.05);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.sidebar a span {
  position: relative;
  z-index: 1;
}

.sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar a:hover svg {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.sidebar a.active::before {
  opacity: 1;
}

.sidebar a.active::after {
  position: absolute;
  right: 16px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 999px;
  background: #93c5fd;
  box-shadow: 0 0 18px rgba(147, 197, 253, 0.8);
}

.sidebar a.active svg {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.side-logout {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-logout button {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  box-shadow: none;
}

.side-logout button svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  fill: currentColor;
  background: rgba(255, 255, 255, 0.05);
}

.side-logout button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 80px;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(24px);
}

.global-search {
  position: relative;
  flex: 1;
  max-width: 576px;
}

.global-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 20px;
  height: 20px;
  fill: #9ca3af;
  transform: translateY(-50%);
  pointer-events: none;
}

.global-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 48px;
  border: 1px solid rgba(229, 231, 235, 0.62);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  font-size: 15px;
}

.global-search input:focus {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.26);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.notice-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #4b5563;
}

.notice-bell:hover {
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.82);
}

.notice-bell svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.notice-bell span {
  position: absolute;
  top: 7px;
  right: 8px;
  min-width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 999px;
  color: transparent;
  background: linear-gradient(90deg, #ef4444, #ec4899);
  box-shadow: 0 6px 14px rgba(236, 72, 153, 0.3);
}

.avatar-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
}

.avatar-chip:hover {
  background: rgba(255, 255, 255, 0.82);
}

.avatar-chip span {
  display: grid;
  text-align: right;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.avatar-chip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.avatar-chip strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  font-size: 18px;
}

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 32px;
}

.content > * {
  max-width: 1540px;
}

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

.page-head h1 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.welcome-card {
  position: relative;
  margin-bottom: 24px;
  padding: 32px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600) 52%, #7c3aed);
  box-shadow: var(--shadow-xl);
}

.welcome-card::before,
.welcome-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(32px);
  pointer-events: none;
}

.welcome-card::before {
  top: -40px;
  right: -32px;
  width: 256px;
  height: 256px;
  background: rgba(255, 255, 255, 0.12);
}

.welcome-card::after {
  bottom: -70px;
  left: -48px;
  width: 192px;
  height: 192px;
  background: rgba(168, 85, 247, 0.24);
}

.welcome-card h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.welcome-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #dbeafe;
  font-weight: 600;
}

.welcome-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 800;
}

.welcome-card span::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

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

.metric {
  position: relative;
  min-height: 176px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.metric::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  opacity: 0;
  transition: opacity 300ms ease;
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.metric:hover::before {
  opacity: 1;
}

.metric-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.metric-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.metric-icon svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.metric-icon::before {
  content: "$";
  color: #fff;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.metric:nth-child(2) .metric-icon {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}

.metric:nth-child(2) .metric-icon::before {
  content: "↗";
}

.metric:nth-child(3) .metric-icon {
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.22);
}

.metric:nth-child(3) .metric-icon::before {
  content: "%";
}

.metric:nth-child(4) .metric-icon {
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.metric:nth-child(4) .metric-icon::before {
  content: "□";
}

.metric b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 10px;
  color: #16a34a;
  background: #f0fdf4;
  font-size: 12px;
  font-weight: 900;
}

.metric b::before {
  content: "↑";
}

.metric strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.metric span,
.metric em {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric span {
  font-size: 14px;
  font-weight: 700;
}

.metric em {
  margin-top: 4px;
  font-size: 12px;
}

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

.panel {
  margin-bottom: 24px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}

.wide-table {
  overflow-x: auto;
}

.hero-panel {
  min-height: 310px;
}

.panel h2,
.panel h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.panel h2 {
  font-size: 20px;
}

.panel h3 {
  font-size: 18px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title-row h2 {
  margin-bottom: 3px;
}

.panel-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.panel-title-row > span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--blue-600);
  background: #eff6ff;
  font-size: 13px;
  font-weight: 900;
}

.search-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.search-overview article {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82));
  box-shadow: var(--shadow-md);
}

.search-overview article::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(79, 70, 229, 0.08));
}

.search-overview span,
.search-overview em {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.search-overview strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 10px 0 6px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.035em;
  word-break: break-word;
}

.search-result-panel {
  overflow-x: auto;
}

.search-result-panel td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-result-panel .table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--blue-600);
  background: #eff6ff;
  white-space: nowrap;
}

.search-result-panel .table-action:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
}

.search-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.trend-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9fafb, #fff);
}

.trend-svg {
  display: block;
  width: 100%;
  height: 250px;
  overflow: visible;
}

.trend-grid {
  stroke: rgba(229, 231, 235, 0.95);
  stroke-dasharray: 4 7;
}

.trend-area {
  fill: rgba(96, 165, 250, 0.16);
}

.trend-line {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 16px rgba(37, 99, 235, 0.16));
}

.trend-dot {
  fill: #fff;
  stroke: #cbd5e1;
  stroke-width: 2;
}

.trend-dot.is-active {
  fill: #38bdf8;
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.26));
}

.trend-value {
  fill: #1f2937;
  font-size: 12px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  text-anchor: middle;
}

.trend-month {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.progress-hero strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.progress-hero span {
  color: var(--muted);
  font-weight: 700;
}

.progress-track,
.bar-row div {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
}

.progress-track {
  margin: 18px 0 24px;
}

.progress-track i,
.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
}

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

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

.todo-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(90deg, #f9fafb, #fff);
  font-weight: 800;
}

.todo-list a:hover {
  border-color: #93c5fd;
  background: linear-gradient(90deg, #eff6ff, #eef2ff);
  box-shadow: var(--shadow-md);
}

.todo-list span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  font-weight: 900;
}

.order-board {
  padding: 24px;
}

.order-card-list,
.shipment-card-list {
  display: grid;
  gap: 16px;
}

.order-card,
.shipment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(90deg, #f9fafb, #fff);
  transition: border-color 260ms ease, box-shadow 260ms ease, background 260ms ease, transform 260ms ease;
}

.order-card:hover,
.shipment-card:hover {
  border-color: #93c5fd;
  background: linear-gradient(90deg, #eff6ff, #eef2ff);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.order-card {
  padding: 20px;
}

.order-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.order-card-head > strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.order-card-numbers div {
  padding: 14px;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.order-card-numbers em {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.order-card-numbers strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.order-card-numbers .positive {
  color: var(--green-600);
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.order-card-foot div {
  display: flex;
  gap: 8px;
}

.order-card-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  color: var(--blue-600);
  font-weight: 900;
}

.order-card-foot a:hover {
  background: #dbeafe;
}

.shipment-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px;
}

.shipment-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  font-size: 30px;
}

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

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

.shipment-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.shipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.shipment-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.shipment-grid b {
  color: var(--ink-soft);
}

.bar-list {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  align-items: center;
  gap: 14px;
}

.bar-row span {
  color: var(--ink-soft);
  font-weight: 800;
}

.bar-row strong {
  color: var(--ink);
  font-weight: 900;
}

.toolbar,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.toolbar {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}

.toolbar label,
.inline-form label {
  min-width: 180px;
}

label,
.stack-form {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 11px 14px;
  color: var(--ink);
  background: #f9fafb;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

input:focus,
select:focus,
textarea:focus {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.26);
}

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

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue-600);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  font-weight: 800;
  cursor: pointer;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 18px;
  color: var(--ink-soft);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

button:hover,
.btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-700), #4338ca);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

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

.form-grid label,
.stack-form {
  display: grid;
  gap: 6px;
}

.wide {
  grid-column: 1 / -1;
}

.checkline {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.item-row {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 0.7fr 0.8fr auto;
  gap: 12px;
  margin-bottom: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px);
}

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.tabs a:hover {
  color: var(--ink);
  background: #f9fafb;
}

.tabs a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #4b5563;
  background: linear-gradient(90deg, #f3f4f6, #f9fafb);
  font-size: 13px;
  font-weight: 900;
}

td {
  color: var(--ink-soft);
}

tbody tr {
  transition: background 180ms ease;
}

tbody tr:hover {
  background: #eff6ff;
}

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

td a {
  color: var(--blue-900);
  font-weight: 900;
}

td strong {
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 900;
}

.tag::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 999px;
  background: currentColor;
}

.tag-settled,
.tag-paid,
.tag-approved {
  color: #047857;
  background: #d1fae5;
}

.tag-pending_confirm,
.tag-supervisor_pending,
.tag-gm_pending {
  color: #b45309;
  background: #fef3c7;
}

.tag-in_transit,
.tag-draft {
  color: #4b5563;
  background: #f3f4f6;
}

.tag-written_off,
.tag-rejected {
  color: #b91c1c;
  background: #fee2e2;
}

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

.facts span,
.plain-list li {
  padding: 16px;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  color: var(--ink-soft);
  background: #fff;
  font-weight: 700;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-cards article,
.timeline-item {
  position: relative;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(90deg, #f9fafb, #fff);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.contact-cards article:hover,
.timeline-item:hover {
  border-color: #93c5fd;
  background: linear-gradient(90deg, #eff6ff, #eef2ff);
  box-shadow: var(--shadow-md);
}

.contact-cards strong,
.timeline-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 900;
}

.contact-cards span,
.contact-cards em,
.timeline-item span,
.timeline-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.contact-cards b {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 10px;
  width: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(#60a5fa, #818cf8);
}

.timeline-item {
  padding-left: 38px;
}

.timeline-item::before {
  position: absolute;
  top: 22px;
  left: 4px;
  width: 14px;
  height: 14px;
  content: "";
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--blue-600);
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.18);
}

.timeline.compact::before,
.timeline.compact .timeline-item::before {
  display: none;
}

.timeline.compact .timeline-item {
  padding-left: 18px;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.plain-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

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

.alert {
  width: calc(100% - 64px);
  max-width: 1540px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  color: #166534;
  background: #f0fdf4;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.alert-danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.empty {
  padding: 28px !important;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.mini-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 8px;
}

.mini-form input {
  width: 146px;
  margin-top: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.pagination a:hover {
  color: var(--blue-600);
  background: #eff6ff;
}

.pagination a.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
}

.stack-form {
  gap: 12px;
}

.login-body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 12%, rgba(14, 165, 233, 0.26), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(79, 70, 229, 0.24), transparent 24%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 44%, #dbeafe 100%);
}

.login-body::before,
.login-body::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.login-body::before {
  inset: auto auto -190px -170px;
  width: 440px;
  height: 440px;
  background: rgba(37, 99, 235, 0.12);
  filter: blur(10px);
}

.login-body::after {
  top: -160px;
  right: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.32);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1120px, 100%);
  min-height: 640px;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 36px 110px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(28px);
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 54px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9) 58%, rgba(14, 165, 233, 0.74)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26), transparent 28%);
}

.login-visual::before {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), #000 52%);
}

.login-visual > * {
  position: relative;
  z-index: 1;
}

.login-visual h1 {
  width: min(520px, 100%);
  margin: 118px 0 18px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.login-visual p {
  width: min(520px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.login-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.orb-one {
  top: 56px;
  right: 78px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), rgba(14, 165, 233, 0.16) 46%, transparent 72%);
  opacity: 0.75;
}

.orb-two {
  right: -84px;
  bottom: 112px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.login-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.login-visual-grid span {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
}

.login-visual-grid b {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 54px 58px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 78% 14%, rgba(14, 165, 233, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.82);
  box-shadow: none;
  backdrop-filter: blur(24px);
}

.login-card::before {
  position: absolute;
  top: 34px;
  right: 38px;
  width: 122px;
  height: 122px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.06));
  filter: blur(2px);
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card h1 {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.login-card .login-card-head h1 {
  font-size: 34px;
  letter-spacing: -0.035em;
}

.login-card p,
.login-hint {
  color: var(--muted);
  font-weight: 600;
}

.login-card-head {
  margin-bottom: 28px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-mark.compact {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: 1.2px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.login-form label span {
  padding-left: 2px;
}

.login-form input {
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.login-form input:focus {
  border-color: rgba(37, 99, 235, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-form .btn {
  min-height: 56px;
  margin-top: 4px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.26);
}

.login-hint {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.68);
}

.login-hint strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.login-hint span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.login-card .alert {
  width: auto;
  max-width: none;
  margin: 0 0 18px;
}

.dashboard-reference {
  display: grid;
  gap: 24px;
}

.dashboard-reference .welcome-card {
  margin-bottom: 0;
}

.reference-hero {
  min-height: 200px;
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

.hero-eyebrow i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #fde68a 0 24%, transparent 25%),
    conic-gradient(from 45deg, transparent 0 20%, #fde68a 20% 30%, transparent 30% 45%, #fde68a 45% 55%, transparent 55% 70%, #fde68a 70% 80%, transparent 80%);
}

.reference-stat-grid {
  margin-bottom: 0;
}

.reference-stat {
  min-height: 182px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.reference-stat::before {
  display: none;
}

.reference-stat .metric-top {
  margin-bottom: 18px;
}

.reference-stat .metric-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.reference-stat .metric-icon::before {
  content: none !important;
}

.reference-stat .metric-icon::after {
  position: absolute;
  inset: -18px -8px auto auto;
  width: 42px;
  height: 82px;
  content: "";
  background: rgba(255, 255, 255, 0.34);
  filter: blur(10px);
  transform: rotate(30deg);
}

.reference-stat .metric-icon svg {
  width: 29px;
  height: 29px;
}

.reference-stat b {
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 14px;
}

.reference-stat b::before {
  content: none;
}

.reference-stat b.down {
  color: #dc2626;
  background: #fef2f2;
}

.reference-stat b.flat {
  color: #64748b;
  background: #f1f5f9;
}

.reference-stat strong {
  margin-bottom: 3px;
  font-size: 34px;
}

.reference-stat span {
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
}

.stat-revenue .metric-icon {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.stat-revenue .metric-icon::before {
  content: none;
}

.stat-profit .metric-icon {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.stat-profit .metric-icon::before {
  content: none;
}

.stat-rate .metric-icon {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.stat-rate .metric-icon::before {
  content: none;
}

.stat-orders .metric-icon {
  background: linear-gradient(135deg, #f97316, #f43f5e);
}

.stat-orders .metric-icon::before {
  content: none;
}

.reference-panel {
  margin-bottom: 0;
  padding: 26px;
  border-radius: 16px;
}

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

.reference-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.reference-panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.reference-panel-head > span {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--blue-600);
  background: #eff6ff;
  font-weight: 900;
}

.ranking-panel .reference-panel-head > span {
  color: #ea580c;
  background: #fff7ed;
}

.reference-team-list {
  display: grid;
  gap: 20px;
}

.reference-team-row {
  display: grid;
  gap: 10px;
}

.reference-team-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.reference-team-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.22);
}

.reference-team-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.reference-team-top strong {
  color: #334155;
  font-size: 16px;
  font-weight: 700;
}

.reference-team-top b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.reference-team-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3f4f6;
}

.reference-team-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.team-tone-2 .reference-team-icon,
.team-tone-2 .reference-team-bar i {
  background: linear-gradient(90deg, #10b981, #14b8a6);
}

.team-tone-3 .reference-team-icon,
.team-tone-3 .reference-team-bar i {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.team-tone-4 .reference-team-icon,
.team-tone-4 .reference-team-bar i {
  background: linear-gradient(90deg, #f97316, #f43f5e);
}

.team-tone-5 .reference-team-icon,
.team-tone-5 .reference-team-bar i {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.reference-company-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 15px 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
  font-size: 18px;
  font-weight: 900;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f9fafb;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.ranking-card:hover {
  background: #f3f4f6;
}

.ranking-card.is-current {
  border-color: #60a5fa;
  background: linear-gradient(90deg, #eff6ff, #eef2ff);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.rank-medal {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #475569;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 20px;
  font-weight: 900;
}

.rank-1 .rank-medal {
  color: #fff;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-2 .rank-medal {
  color: #fff;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.rank-3 .rank-medal {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.rank-person strong,
.rank-person span,
.rank-value strong,
.rank-value span {
  display: block;
}

.rank-person strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.rank-person span {
  color: var(--muted);
  font-size: 13px;
}

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

.rank-value strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.rank-value span {
  margin-top: 3px;
  color: var(--green-600);
  font-size: 13px;
  font-weight: 900;
}

.rank-value span.down {
  color: #dc2626;
}

.rank-value span.flat {
  color: #64748b;
}

.finance-orders-panel {
  overflow: hidden;
}

.finance-orders-panel .reference-panel-head {
  margin-bottom: 18px;
}

.finance-orders-panel .reference-panel-head .btn {
  flex: 0 0 auto;
  color: var(--ink-soft);
  background: #fff;
}

.finance-orders-panel .reference-panel-head .btn:hover {
  color: var(--blue-600);
  background: #eff6ff;
}

.finance-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  background: #f9fafb;
  padding: 4px;
}

.finance-table {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  font-size: 13px;
}

.finance-table th,
.finance-table td {
  padding: 13px 12px;
  white-space: nowrap;
}

.finance-table th:first-child,
.finance-table td:first-child {
  width: 180px;
}

.finance-table th:nth-child(2),
.finance-table td:nth-child(2) {
  width: 190px;
}

.finance-table td:first-child a,
.finance-table td:nth-child(2) {
  white-space: normal;
  line-height: 1.35;
}

.finance-table th {
  background: #f9fafb;
}

.finance-table .num {
  text-align: right;
}

.finance-table .center {
  text-align: center;
}

.finance-table .profit-cell {
  color: var(--green-600);
  font-weight: 900;
}

.finance-table .tag {
  padding: 4px 9px;
  font-size: 12px;
}

.employee-table {
  min-width: 980px;
}

.employee-table th,
.employee-table td {
  white-space: nowrap;
}

.employee-table td:first-child {
  min-width: 118px;
}

.employee-table .btn {
  min-width: 64px;
  white-space: nowrap;
}

/* Unified typography layer: keeps every module on the same visual rhythm. */
body,
button,
.btn,
input,
select,
textarea {
  font-family: var(--font);
}

h1,
h2,
h3,
h4,
.page-head h1,
.welcome-card h1,
.login-card h1,
.panel h2,
.panel h3,
.reference-panel-head h2 {
  font-weight: var(--weight-bold);
  letter-spacing: -0.012em;
  line-height: 1.28;
}

.page-head h1,
.login-card h1 {
  font-size: var(--text-2xl);
}

.welcome-card h1 {
  font-size: var(--text-3xl);
}

.panel h2,
.reference-panel-head h2 {
  font-size: var(--text-xl);
}

.panel h3 {
  font-size: var(--text-lg);
}

p,
.page-head p,
.panel-title-row p,
.reference-panel-head p,
.login-card p,
.login-hint {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.6;
  letter-spacing: 0;
}

.brand-icon,
.brand-title,
.brand-mark {
  font-weight: var(--weight-heavy);
}

.brand-title {
  font-size: 20px;
  letter-spacing: 0.01em;
}

.brand-wrap p {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.sidebar a,
.side-logout button,
.tabs a,
button,
.btn,
label,
.stack-form,
.toolbar label,
.inline-form label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

.avatar-chip span,
.todo-list a,
.bar-row span,
.order-card-foot,
.order-card-foot a,
.shipment-grid span {
  font-weight: var(--weight-semibold);
}

.avatar-chip em,
.metric span,
.reference-stat span,
.order-card-meta,
.order-card-numbers em,
.shipment-grid span,
td {
  font-weight: var(--weight-medium);
}

.metric b,
.reference-stat b,
.panel-title-row > span,
.reference-panel-head > span,
.tag,
th,
td a,
.pagination a,
.rank-value span {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

.metric strong,
.reference-stat strong,
.progress-hero strong,
.order-card-numbers strong,
.search-overview strong,
.reference-team-top b,
.reference-company-total,
.rank-value strong,
.finance-table .profit-cell {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: var(--weight-bold);
  letter-spacing: -0.012em;
}

.metric strong {
  font-size: 30px;
}

.reference-stat strong {
  font-size: 32px;
}

.progress-hero strong {
  font-size: 38px;
}

.order-card-head > strong,
.shipment-head strong,
.rank-person strong,
.reference-team-top strong,
.rank-medal {
  font-weight: var(--weight-bold);
}

.reference-team-top strong,
.rank-person strong {
  font-size: var(--text-lg);
}

.order-card-head > strong,
.shipment-head strong,
.rank-value strong,
.reference-team-top b,
.reference-company-total {
  font-size: 17px;
}

.metric-icon::before,
.rank-medal {
  font-weight: var(--weight-bold);
}

table,
.finance-table {
  font-size: var(--text-sm);
  line-height: 1.45;
}

.finance-table th,
.finance-table td {
  font-size: 13px;
}

input,
select,
textarea,
.global-search input {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

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

  .login-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  }

  .login-visual,
  .login-card {
    padding: 42px;
  }

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

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

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

@media (max-width: 860px) {
  .app-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .login-body {
    padding: 18px;
    overflow: auto;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .login-visual {
    min-height: 360px;
    padding: 34px;
  }

  .login-visual h1 {
    margin-top: 72px;
    font-size: 34px;
  }

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

  .login-card {
    padding: 34px;
    border-left: 0;
  }

  .sidebar {
    min-height: auto;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 12px;
  }

  .side-logout {
    display: none;
  }

  .main {
    overflow: visible;
  }

  .topbar {
    height: auto;
    min-height: 80px;
    align-items: stretch;
    flex-direction: column;
    padding: 18px 22px;
  }

  .global-search {
    width: 100%;
    max-width: none;
  }

  .user-chip {
    width: 100%;
    justify-content: space-between;
  }

  .content {
    padding: 22px;
    overflow: visible;
  }

  .page-head,
  .welcome-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .search-overview,
  .form-grid,
  .facts,
  .todo-list.large,
  .bar-row,
  .order-card-numbers,
  .shipment-grid,
  .item-row {
    grid-template-columns: 1fr;
  }

  .order-card-main,
  .order-card-foot,
  .shipment-card,
  .shipment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
  }

  .tabs a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
