: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-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.brand-logo-sidebar {
  width: 168px;
  height: 58px;
  padding: 8px 12px;
}

.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;
  transition: opacity 0.16s ease, transform 0.16s ease;
  will-change: opacity, transform;
}

body.is-navigating .content {
  opacity: 0.72;
  transform: translateY(3px);
  cursor: progress;
}

.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;
}

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

.page-head-actions .mini-form {
  margin: 0;
}

.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
  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.has-announcement {
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 0.64fr);
}

.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);
}

.hero-main,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-main {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.hero-focus-card {
  display: grid;
  align-content: center;
  gap: 12px;
  width: min(100%, 430px);
  min-height: 188px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at 88% 16%, rgba(253, 224, 71, 0.18), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.hero-focus-card b {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 900;
}

.hero-focus-card strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.28;
}

.hero-focus-card p {
  margin: 0;
  color: #dbeafe;
  font-size: 14px;
}

.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;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.section-title-row h3 {
  margin: 0 0 4px;
}

.section-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.section-title-row > span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eef6ff;
  font-size: 13px;
  font-weight: 900;
}

.transport-freight-panel > table {
  margin-top: 16px;
}

.transport-freight-panel > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.transport-freight-panel > h3::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-500);
  box-shadow: 0 0 0 7px rgba(66, 133, 244, 0.12);
  content: "";
}

.transport-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: #fff;
}

.transport-detail-table {
  min-width: 1120px;
  border-radius: 0;
  background: #fff;
}

.transport-detail-table th {
  color: #4b5563;
  background: linear-gradient(90deg, #f3f4f6, #f9fafb);
}

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

.transport-detail-table td:first-child,
.transport-detail-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 850;
}

.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: 12px;
}

.orders-page-head {
  margin-bottom: 14px;
}

.orders-page-head h1 {
  font-size: 27px;
}

.order-toolbar {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.order-toolbar label {
  flex: 0 0 138px;
  min-width: 138px;
  font-size: 12px;
}

.order-toolbar input,
.order-toolbar select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.order-toolbar .btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
}

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

.order-card,
.shipment-card {
  position: relative;
  overflow: hidden;
  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, transform 220ms ease;
}

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

.order-card {
  display: grid;
  grid-template-areas:
    "main numbers foot"
    "owner numbers foot";
  grid-template-columns: minmax(320px, 1.55fr) minmax(270px, 1.15fr) minmax(124px, auto);
  gap: 5px 10px;
  align-items: center;
  padding: 8px 10px;
}

.order-card-main {
  grid-area: main;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px 7px;
  min-width: 0;
}

.order-card .tag {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.3;
}

.order-po-link {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 280px);
  overflow: hidden;
  color: #172554;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-po-link:hover {
  color: var(--blue-700);
}

.order-pi-badge {
  display: inline-flex;
  align-items: center;
  max-width: min(280px, 100%);
  min-height: 22px;
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #475569;
  background: rgba(239, 246, 255, 0.8);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.order-card-owner {
  grid-area: owner;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 3px 10px;
  overflow: visible;
}

.order-card-owner span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
  max-width: 100%;
  text-overflow: clip;
  white-space: normal;
}

.order-customer-name {
  overflow: hidden;
  max-width: 100%;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-numbers {
  grid-area: numbers;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.order-card-numbers div {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

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

.order-card-numbers strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.order-card-foot {
  grid-area: foot;
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-card-foot div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.order-card-foot a,
.order-card-foot .btn-danger {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: var(--blue-700);
  background: rgba(239, 246, 255, 0.86);
  font-weight: 900;
}

.order-card-foot .mini-form {
  margin: 0;
}

.order-card-foot .btn-danger {
  border-color: #fecaca;
  color: #dc2626;
  background: rgba(254, 242, 242, 0.88);
  box-shadow: none;
}

.order-card-foot a:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.order-card-foot .btn-danger:hover {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fee2e2;
}

.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;
}

.toolbar.order-toolbar {
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.toolbar.order-toolbar label {
  flex: 0 0 138px;
  min-width: 138px;
  font-size: 12px;
}

.toolbar.order-toolbar input,
.toolbar.order-toolbar select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.toolbar.order-toolbar .btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
}

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;
}

.country-combobox {
  position: relative;
  z-index: 4;
}

.country-combobox.is-open {
  z-index: 40;
}

.combo-control {
  position: relative;
  margin-top: 6px;
}

.combo-control input {
  margin-top: 0;
  padding-right: 48px;
}

.combo-toggle,
.combo-toggle:hover {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.country-combobox.is-open .combo-toggle {
  color: var(--blue-700);
  background: #eff6ff;
}

.country-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.country-options[hidden] {
  display: none;
}

.country-options button {
  justify-content: flex-start;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-soft);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.country-options button[hidden],
.country-empty[hidden] {
  display: none !important;
}

.country-options button:hover,
.country-options button:focus {
  color: var(--blue-800);
  background: #eff6ff;
  box-shadow: none;
  transform: none;
}

.country-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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);
}

.btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.btn-danger:hover {
  border-color: #fca5a5;
  color: #991b1b;
  background: #fee2e2;
}

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

.table-actions .mini-form {
  margin-left: 0;
}

.bulk-pay-panel {
  display: grid;
  gap: 16px;
  margin: 22px 0 28px;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.1);
}

.bulk-pay-head,
.bulk-pay-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bulk-pay-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.bulk-pay-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bulk-pay-head em {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #dbeafe;
  font-style: normal;
  font-weight: 900;
}

.bulk-pay-panel .toolbar {
  margin-bottom: 0;
  box-shadow: none;
}

.bulk-pay-summary {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

.bulk-pay-summary span {
  color: var(--muted);
  font-weight: 900;
}

.bulk-pay-summary strong {
  color: var(--blue-700);
  font-size: 20px;
}

.bulk-pay-summary input:not([type="file"]) {
  min-width: 220px;
}

.bulk-pay-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.bulk-pay-table {
  min-width: 920px;
  margin: 0;
}

.bulk-pay-table th,
.bulk-pay-table td {
  vertical-align: middle;
}

.bulk-pay-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.bulk-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 900;
}

.reimbursement-approval-head {
  align-items: stretch;
}

.approval-head-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.approval-head-stats span {
  padding: 12px 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(219, 234, 254, 0.78);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

#reimbursement-approval,
#expense-reimbursement-approval {
  overflow-x: auto;
}

#reimbursement-approval > table,
#expense-reimbursement-approval > table {
  min-width: 1120px;
}

#reimbursement-approval .inline-form,
#expense-reimbursement-approval .inline-form {
  flex-wrap: wrap;
  align-items: center;
  min-width: 300px;
  margin-bottom: 0;
}

#reimbursement-approval .inline-form input[name="remark"],
#expense-reimbursement-approval .inline-form input[name="remark"] {
  min-width: 150px;
}

#reimbursement-approval .inline-form button,
#expense-reimbursement-approval .inline-form button {
  white-space: nowrap;
}

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

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

.transport-form-panel {
  padding: 28px;
}

.transport-form {
  align-items: start;
  gap: 18px 20px;
}

.transport-form > label:not(.wide) {
  min-height: 92px;
  align-content: start;
  grid-template-rows: 20px 48px auto;
  gap: 8px;
}

.transport-form .field-title {
  display: flex;
  align-items: center;
  min-height: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.transport-form input,
.transport-form select,
.transport-form textarea {
  min-height: 48px;
  margin-top: 0;
  border-color: #dfe7f1;
  background: rgba(249, 250, 252, 0.92);
}

.transport-form textarea {
  min-height: 108px;
}

.transport-form .field-help {
  min-height: 18px;
  margin-top: -2px;
  line-height: 1.45;
}

.transport-form [data-custom-forwarder-field][hidden] {
  display: none !important;
}

.transport-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -2px;
}

.settings-edit-panel {
  display: grid;
  gap: 18px;
}

.settings-edit-form {
  align-items: start;
}

.settings-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.settings-edit-actions .btn,
.settings-edit-actions button {
  min-width: 96px;
}

.settings-edit-actions .btn-primary {
  min-width: 112px;
}

.settings-edit-actions .mini-form {
  margin: 0;
}

.settings-edit-hint {
  margin: -6px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.customer-form {
  display: grid;
  gap: 22px;
  overflow: visible;
  padding: 28px;
}

.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, 0.78);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.form-section-title strong {
  display: block;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.form-section-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px 20px;
  align-items: start;
}

.field-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.field-title {
  display: flex;
  align-items: center;
  min-height: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.split-title {
  justify-content: space-between;
  gap: 12px;
}

.split-title em {
  color: var(--blue-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.field-card input,
.field-card select,
.field-card .combo-control {
  margin-top: 0;
}

.customer-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.customer-toolbar {
  align-items: center;
  justify-content: space-between;
}

.customer-search-field {
  flex: 1 1 420px;
  max-width: 680px;
}

.customer-list-panel {
  padding: 22px;
}

.customer-list-head {
  align-items: flex-start;
}

.customer-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.78), rgba(255, 255, 255, 0.9));
}

.customer-table {
  min-width: 1080px;
  table-layout: fixed;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.customer-table th,
.customer-table td {
  padding: 18px 16px;
}

.customer-table th {
  color: #475569;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  white-space: nowrap;
}

.customer-table th:nth-child(1),
.customer-table td:nth-child(1) {
  width: 280px;
}

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

.customer-table th:nth-child(3),
.customer-table td:nth-child(3) {
  width: 170px;
}

.customer-table th:nth-child(4),
.customer-table td:nth-child(4) {
  width: 160px;
}

.customer-table th:nth-child(5),
.customer-table td:nth-child(5) {
  width: 270px;
}

.customer-table th:nth-child(6),
.customer-table td:nth-child(6) {
  width: 160px;
}

.customer-table th:first-child,
.customer-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 8px 0 18px rgba(15, 23, 42, 0.04);
}

.customer-table th:first-child {
  z-index: 3;
  background: #f8fafc;
}

.customer-table tbody tr {
  transition: background 180ms ease, box-shadow 180ms ease;
}

.customer-table tbody tr:hover td {
  background: #f8fbff;
}

.customer-table tbody tr:hover td:first-child {
  background: #f8fbff;
}

.customer-contact-stack,
.customer-owner-chip,
.customer-order-summary {
  display: grid;
  gap: 7px;
}

.customer-table td.customer-primary-cell {
  display: table-cell;
}

.customer-name,
.customer-contact-stack strong,
.customer-owner-chip strong,
.customer-order-summary strong {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.customer-name {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  word-break: break-word;
}

.customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.customer-meta span,
.customer-contact-stack span,
.customer-owner-chip span,
.customer-order-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.customer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-800);
}

.customer-contact-stack span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-owner-chip {
  display: inline-grid;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 14px;
  background: #eff6ff;
}

.customer-owner-chip strong,
.customer-owner-chip span {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-order-summary strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.customer-assign-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.customer-assign-form select {
  min-width: 0;
  margin-top: 0;
  border-radius: 14px;
  background: #fff;
}

.customer-assign-form button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  white-space: nowrap;
}

.customer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customer-actions .table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-actions .table-action.secondary {
  color: var(--blue-700);
  background: #eff6ff;
  box-shadow: none;
}

.customer-actions .table-action:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-700), #4338ca);
}

.customer-actions .mini-form {
  margin: 0;
}

.customer-actions .btn-danger {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.order-row-actions {
  align-items: center;
}

.order-row-actions .mini-form {
  margin: 0;
}

.order-row-actions .btn-danger {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.form-note {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: var(--blue-900);
  background: #eff6ff;
  font-weight: 800;
}

.field-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.settings-create-form {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(255, 255, 255, 0.96));
}

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

.order-wizard {
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.16), transparent 28rem);
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 34px 36px 28px;
  list-style: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.76));
}

.order-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.order-steps li::after {
  position: absolute;
  top: 19px;
  left: calc(50% + 38px);
  width: calc(100% - 54px);
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #e5e7eb;
}

.order-steps li:last-child::after {
  display: none;
}

.order-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #e5e7eb;
  border-radius: 999px;
  color: #94a3b8;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.order-steps .is-active {
  color: var(--blue-900);
}

.order-steps .is-active span {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  box-shadow: 0 16px 28px rgba(29, 78, 216, 0.22);
}

.order-steps .is-complete {
  color: #64748b;
}

.order-steps .is-complete span {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.order-steps .is-complete::after {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.order-step-panel {
  display: none;
  padding: 18px 36px 34px;
}

.order-step-panel.is-active {
  display: block;
  animation: panelRise 260ms ease both;
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.order-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  color: var(--blue-900);
  background: linear-gradient(90deg, #eff6ff, #f8fafc);
  font-size: 18px;
  font-weight: 900;
}

.order-section-title span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.order-wizard label small {
  display: block;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.order-basic-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}

.order-basic-grid > label {
  grid-column: span 2;
  min-width: 0;
}

.order-basic-grid .order-date-field {
  grid-column: span 3;
}

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

.order-basic-grid input,
.order-basic-grid select,
.order-basic-grid textarea {
  margin-top: 8px;
}

.order-basic-grid .input-action {
  margin-top: 8px;
}

.order-basic-grid .input-action input {
  margin-top: 0;
}

.order-basic-grid .input-action .btn {
  width: 66px;
  min-width: 66px;
  padding-right: 0;
  padding-left: 0;
}

.order-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-new-customer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 900;
}

.order-new-customer-toggle input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--blue-600);
}

.order-customer-lookup {
  position: relative;
  z-index: 6;
}

.order-customer-lookup.is-open {
  z-index: 70;
}

.customer-lookup-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
}

.customer-lookup-results[hidden] {
  display: none;
}

.customer-lookup-option {
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  min-height: auto;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  color: var(--ink-soft);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.customer-lookup-option:hover,
.customer-lookup-option:focus {
  color: var(--blue-800);
  background: #eff6ff;
  box-shadow: none;
  transform: none;
}

.customer-lookup-option strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.customer-lookup-option span,
.customer-lookup-option em,
.customer-lookup-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}

.customer-lookup-empty {
  padding: 10px 12px;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.order-items-table {
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #fff;
}

.order-items-head,
.order-item-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.7fr 0.64fr 0.86fr 1fr 0.95fr 0.55fr;
  gap: 12px;
  align-items: center;
  min-width: 1100px;
  margin: 0;
  padding: 14px 16px;
}

.order-items-head {
  color: #475569;
  background: linear-gradient(90deg, #f8fafc, #f1f5f9);
  font-size: 13px;
  font-weight: 900;
}

.order-item-row {
  border-top: 1px solid #f1f5f9;
}

.order-item-row strong {
  color: var(--blue-900);
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.mini-upload {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #475569;
  background: #f8fafc;
  cursor: pointer;
}

.mini-upload input {
  display: none;
}

.mini-upload a {
  font-weight: 900;
}

.order-total-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f8fafc, #eef2ff);
}

.order-total-strip div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--muted);
  font-weight: 900;
}

.order-total-strip strong {
  color: var(--blue-900);
  font-size: 32px;
  font-weight: 900;
}

.order-cost-grid {
  align-items: start;
  gap: 18px 20px;
}

.order-cost-grid > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  min-height: 88px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.order-cost-grid input,
.order-cost-grid select {
  width: 100%;
  min-height: 46px;
}

.order-cost-grid input[readonly] {
  color: #475569;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  cursor: not-allowed;
}

.order-cost-grid small {
  min-height: 18px;
  color: #94a3b8;
}

.order-checkline {
  justify-content: flex-start;
}

.cost-field-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.order-checkbox-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.order-checkbox-control input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue-600);
}

.profit-preview {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 900;
}

.preview-title::before {
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.profit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.profit-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.profit-grid article::after {
  position: absolute;
  top: -36px;
  right: -28px;
  width: 88px;
  height: 88px;
  content: "";
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
}

.profit-grid span {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.profit-grid strong {
  position: relative;
  z-index: 1;
  color: var(--blue-900);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.income-card,
.rate-card {
  grid-column: span 4;
}

.cost-card {
  grid-column: span 3;
  min-height: 104px;
  background: rgba(255, 255, 255, 0.78);
}

.profit-grid .danger strong {
  color: var(--red-600);
}

.profit-grid .success {
  border-color: rgba(134, 239, 172, 0.9);
  background:
    radial-gradient(circle at 92% 18%, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(135deg, #dcfce7, #f0fdf4);
}

.profit-grid .success strong {
  color: #16a34a;
  font-size: 36px;
}

.gross-card {
  grid-column: span 8;
  min-height: 128px;
}

.rate-result-card {
  grid-column: span 4;
  min-height: 128px;
  border-color: rgba(191, 219, 254, 0.98);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.rate-result-card strong {
  font-size: 36px;
}

.voucher-note,
.ready-alert {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  color: var(--blue-900);
  background: #eff6ff;
  font-weight: 800;
}

.purchase-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.purchase-mode-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px !important;
  padding: 18px 20px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.purchase-mode-card:has(input:checked) {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
}

.purchase-mode-card input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--blue-600);
}

.purchase-mode-card strong,
.purchase-mode-card em {
  display: block;
}

.purchase-mode-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.purchase-mode-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.55;
}

.direct-purchase-note {
  border-color: #bbf7d0;
  color: #166534;
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
}

.ready-alert {
  border-color: #86efac;
  color: #15803d;
  background: #dcfce7;
}

.upload-zone {
  display: grid !important;
  place-items: center;
  gap: 8px !important;
  min-height: 190px;
  padding: 28px;
  border: 2px dashed #dbe3ef;
  border-radius: 20px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.upload-zone input {
  display: none;
}

.upload-zone b {
  font-size: 30px;
}

.upload-zone span {
  font-size: 16px;
  font-weight: 900;
}

.upload-zone strong {
  color: var(--blue-600);
}

.voucher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  margin-top: 16px;
}

.voucher-list > a,
.voucher-list > span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #16a34a;
  background: #f0fdf4;
  font-weight: 800;
}

.attachment-card {
  display: inline-grid !important;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 210px;
  max-width: 320px;
  min-height: 66px;
  padding: 8px 12px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 16px !important;
  color: var(--blue-900) !important;
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

.attachment-card:hover {
  border-color: #60a5fa !important;
  background: linear-gradient(135deg, #dbeafe, #ffffff) !important;
  transform: translateY(-1px);
}

.selected-file-card {
  position: relative;
  display: inline-block !important;
  padding: 0 !important;
  overflow: visible;
}

.selected-file-preview {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px 42px 8px 12px;
  color: inherit;
  text-decoration: none;
}

.selected-file-preview > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.selected-file-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #dc2626;
  background: #fff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.selected-file-remove:hover {
  color: #fff;
  background: #ef4444;
  transform: scale(1.05);
}

.attachment-thumb,
.attachment-file-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.attachment-thumb {
  display: block;
  object-fit: cover;
  background: #e2e8f0;
}

.attachment-file-icon {
  display: grid;
  place-items: center;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 11px;
  font-weight: 950;
}

.attachment-card > span {
  display: grid !important;
  min-width: 0;
  gap: 4px;
  padding: 0 !important;
  border: 0 !important;
  color: inherit !important;
  background: transparent !important;
}

.attachment-card strong,
.attachment-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.attachment-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

td .attachment-card {
  min-width: 136px;
  max-width: 180px;
  min-height: 54px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  box-shadow: none;
}

td .attachment-thumb,
td .attachment-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.payment-slip-list {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.payment-slip-list .attachment-card {
  min-width: 150px;
  max-width: 210px;
}

.order-detail-finance-grid .collection-panel,
.order-detail-finance-grid #order-reimbursement {
  grid-column: 1 / -1;
}

.reimbursement-submit-form {
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.92));
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.08);
}

.reimbursement-submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.reimbursement-submit-btn {
  min-width: 190px;
  min-height: 54px;
  border-radius: 18px;
  padding: 13px 28px;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.reimbursement-submit-btn span {
  display: inline-flex;
  margin-left: 6px;
  font-size: 18px;
  transition: transform 180ms ease;
}

.reimbursement-submit-btn:hover span {
  transform: translateX(4px);
}

.reimbursement-submit-actions em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.reimbursement-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.reimbursement-table {
  min-width: 980px;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.reimbursement-table th,
.reimbursement-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.reimbursement-table th:nth-child(4),
.reimbursement-table td:nth-child(4) {
  min-width: 240px;
  white-space: normal;
}

.reimbursement-table th:nth-child(5),
.reimbursement-table td:nth-child(5),
.reimbursement-table th:nth-child(6),
.reimbursement-table td:nth-child(6) {
  min-width: 168px;
}

.reimbursement-table th:last-child,
.reimbursement-table td:last-child {
  min-width: 150px;
}

.reimbursement-table .approval-flow {
  min-width: 232px;
}

.reimbursement-table .attachment-card {
  min-width: 150px;
  max-width: 190px;
}

@media (max-width: 640px) {
  .reimbursement-submit-form {
    padding: 14px;
  }

  .reimbursement-submit-actions {
    align-items: stretch;
  }

  .reimbursement-submit-btn {
    width: 100%;
  }
}

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

.review-grid article {
  min-height: 78px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
}

.review-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
}

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

.review-grid.slim {
  margin-top: 20px;
}

.review-profit {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 24px;
  border: 2px solid #86efac;
  border-radius: 18px;
  color: #15803d;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
}

.review-profit span,
.review-profit em {
  font-weight: 900;
}

.review-profit strong {
  font-size: 36px;
  font-weight: 900;
}

.review-profit em {
  font-style: normal;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
}

.submit-actions {
  display: inline-flex;
  gap: 12px;
}

.approval-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.approval-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.approval-flow b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: inherit;
  background: rgba(100, 116, 139, 0.12);
  font-size: 11px;
}

.approval-flow .is-done {
  border-color: #bbf7d0;
  color: #16a34a;
  background: #f0fdf4;
}

.approval-flow .is-active {
  border-color: #bfdbfe;
  color: var(--blue-700);
  background: #eff6ff;
}

.approval-flow .is-rejected {
  border-color: #fecaca;
  color: var(--red-600);
  background: #fef2f2;
}

.flow-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.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;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.tab-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #dbeafe;
  font-size: 12px;
  font-weight: 950;
}

.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);
}

.tabs a.active .tab-count {
  color: var(--blue-700);
  background: #fff;
}

.settlement-guide,
.settlement-entry-panel,
.settlement-diagnostics-panel {
  border: 1px solid rgba(59, 130, 246, 0.18);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

.settlement-flow,
.settlement-rules {
  display: grid;
  gap: 14px;
}

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

.settlement-flow article,
.settlement-rules span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.settlement-flow article {
  padding: 18px;
}

.settlement-flow span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.settlement-flow strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.settlement-flow em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
}

.settlement-rules {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.settlement-rules span {
  padding: 14px 16px;
  color: var(--ink-soft);
  font-weight: 850;
}

.settlement-diagnostics-panel {
  margin-top: 22px;
}

.settlement-diagnostics-panel td small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.settlement-diagnostics-panel .table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--blue-700);
  background: #eff6ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

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

.settlement-confirm-form button {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

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;
}

.brand-logo-hero {
  width: 224px;
  height: 72px;
  padding: 9px 14px;
  backdrop-filter: none;
}

.brand-logo-card {
  width: 204px;
  min-height: 66px;
  padding: 9px 14px;
}

.brand-text-card {
  width: auto;
  min-height: auto;
  justify-content: flex-start;
  padding: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.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%);
}

.hero-announcement {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  width: min(100%, 430px);
  min-height: 188px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at 88% 16%, rgba(253, 224, 71, 0.18), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.hero-announcement-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.hero-announcement-head b {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-announcement-head strong {
  overflow: hidden;
  max-width: 260px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-card .hero-announcement p,
.hero-announcement p {
  margin: 0;
  color: #eff6ff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.hero-announcement em {
  display: inline-flex;
  justify-self: start;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-announcement-preview .hero-announcement.preview {
  max-width: none;
  color: var(--ink);
  background:
    linear-gradient(135deg, #1d4ed8, #4f46e5 58%, #7c3aed);
}

.dashboard-announcement-editor textarea {
  min-height: 220px;
}

.reference-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  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;
}

.stat-customers .metric-icon {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

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

.stat-new-customer-total .metric-icon {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.stat-new-customer-total .metric-icon::before {
  content: none;
}

.dashboard-todo-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background:
    radial-gradient(circle at 95% 0%, rgba(59, 130, 246, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
}

.dashboard-todo-panel::before {
  position: absolute;
  inset: auto 26px 0 26px;
  height: 3px;
  content: "";
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600), #8b5cf6);
}

.dashboard-todo-head {
  position: relative;
  z-index: 1;
}

.dashboard-todo-head > span {
  color: #1d4ed8;
  background: #dbeafe;
}

.dashboard-todo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-todo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dashboard-todo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.72);
  background: #fff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.13);
}

.dashboard-todo-card.is-priority {
  border-color: rgba(96, 165, 250, 0.52);
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.dashboard-todo-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.08)),
    #fff;
}

.dashboard-todo-card.is-priority .dashboard-todo-mark {
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.dashboard-todo-mark i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #2563eb;
  background: #dbeafe;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-todo-card.is-priority .dashboard-todo-mark i {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-todo-copy {
  min-width: 0;
}

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

.dashboard-todo-copy strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-todo-copy span {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.dashboard-todo-card b {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
  font-size: 20px;
  font-weight: 900;
}

.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));
  }

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

  .hero-main {
    min-height: auto;
  }

  .hero-side {
    justify-content: stretch;
  }

  .hero-announcement,
  .hero-focus-card {
    width: 100%;
    min-height: auto;
  }

  .dashboard-todo-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));
  }

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

  .income-card,
  .rate-card,
  .cost-card,
  .rate-result-card {
    grid-column: span 3;
  }

  .gross-card {
    grid-column: 1 / -1;
  }

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

  .order-basic-grid > label,
  .order-basic-grid .order-date-field {
    grid-column: span 1;
  }

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

  .order-card {
    grid-template-areas:
      "main main"
      "owner owner"
      "numbers foot";
    grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
  }

  .order-card-numbers,
  .order-card-foot {
    grid-column: auto;
  }

  .order-card-foot {
    align-self: stretch;
    align-content: center;
    justify-items: end;
  }
}

@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;
  }

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

  .hero-announcement em {
    justify-self: start;
  }

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

  .order-basic-grid {
    grid-template-columns: 1fr;
  }

  .order-basic-grid > label,
  .order-basic-grid .order-date-field,
  .order-basic-grid .wide {
    grid-column: 1 / -1;
  }

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

  .order-card {
    grid-template-areas:
      "main"
      "owner"
      "numbers"
      "foot";
    grid-template-columns: 1fr;
  }

  .order-card-numbers,
  .order-card-foot {
    grid-column: auto;
  }

  .order-card-foot {
    justify-items: start;
  }

  .compact-order-card .order-card-numbers {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    overflow-x: auto;
  }

  .compact-order-card .order-card-numbers div {
    padding: 6px 8px;
  }

  .compact-order-card .order-card-foot {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .tabs {
    width: 100%;
  }

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

  .order-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .order-steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .order-steps li::after {
    display: none;
  }

  .order-step-panel {
    padding: 18px 18px 26px;
  }

  .order-total-strip,
  .wizard-actions,
  .submit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profit-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .income-card,
  .rate-card,
  .cost-card,
  .gross-card,
  .rate-result-card {
    grid-column: 1 / -1;
  }
}

@media (min-width: 640px) and (max-width: 860px) {
  .compact-order-card {
    grid-template-areas:
      "main foot"
      "owner foot"
      "numbers numbers";
    grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
  }

  .compact-order-card .order-card-numbers,
  .compact-order-card .order-card-foot {
    grid-column: auto;
  }
}

@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;
  }
}
