@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_Th.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_Rg.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_Bd.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_XBd.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_He.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #e8eee9;
  --surface: #f8faf8;
  --white: #ffffff;
  --ink: #081511;
  --muted: #6f7c77;
  --soft: #edf3ef;
  --line: #dfe7e2;
  --line-strong: #d4dfd8;
  --green: #0a704c;
  --green-deep: #075738;
  --green-soft: #e3f1eb;
  --gold: #bda43b;
  --gold-soft: #fbefc8;
  --shadow: 0 22px 50px rgba(30, 46, 38, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --icon-add: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
  --icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  --icon-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
  --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --icon-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  --icon-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3C/svg%3E");
  --icon-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  font-family: "LINE Seed Sans TH", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 0 0, #f6faf7 0, var(--page) 44%, #dfe7e1 100%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.workspace-shell {
  width: min(1580px, calc(100vw - 64px));
  height: calc(100vh - 32px);
  min-height: 780px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar {
  min-width: 0;
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 28px 22px 26px 18px;
  scrollbar-width: thin;
  scrollbar-color: #8c9290 transparent;
}

.brand-row {
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #f5bc45 0 20%, #0b2017 56%);
  color: #f2b944;
  box-shadow: 0 10px 22px rgba(7, 57, 37, 0.2);
  line-height: 0.9;
}

.brand-logo img,
.profile-avatar img,
.company-logo-preview img,
.login-logo img,
.pr-print-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-logo img,
.profile-avatar img,
.company-logo-preview img,
.login-logo img {
  border-radius: inherit;
}

.brand-logo span {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.brand-logo small {
  display: block;
  font-size: 6px;
  color: #d3d7c8;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
}

.collapse-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  color: var(--green);
  display: grid;
  place-items: center;
}

.collapse-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon-back) center / contain no-repeat;
  mask: var(--icon-back) center / contain no-repeat;
  transition: transform 0.18s ease;
}

.menu-section {
  margin-top: 54px;
}

.menu-section.general {
  margin-top: 40px;
}

.menu-section p {
  margin: 0 0 18px 8px;
  color: #8a9691;
  font-size: 12px;
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: 12px;
}

.nav-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0 8px;
  color: #8a9691;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  user-select: none;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(18, 107, 73, 0.08);
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group.is-collapsed .nav-sublist {
  display: none;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #77837e;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
}

.nav-item.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
}

.nav-item:hover {
  background: #f1f6f2;
  color: var(--green);
}

.nav-item.soft {
  margin-bottom: 8px;
}

.nav-parent {
  grid-template-columns: 26px 1fr 14px;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--icon-chevron-down) center / contain no-repeat;
  mask: var(--icon-chevron-down) center / contain no-repeat;
  transition: transform 0.18s ease;
}

.nav-group.is-collapsed .nav-chevron {
  transform: rotate(-90deg);
}

.nav-sublist {
  display: grid;
  gap: 5px;
  margin: -1px 0 2px 36px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.nav-subitem {
  width: 100%;
  min-height: 31px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #77837e;
  padding: 7px 11px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.nav-subitem:hover,
.nav-subitem.active {
  background: var(--green-soft);
  color: var(--green);
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: currentColor;
  position: relative;
}

.nav-store::before {
  content: "";
  width: 17px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  transform: translateY(2px);
}

.nav-store::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 2px 2px;
  top: 3px;
  background: currentColor;
  opacity: 0.18;
}

.main-panel {
  min-width: 0;
  overflow-y: auto;
  background: linear-gradient(180deg, #fbfcfb 0, #f7f9f7 100%);
}

.topbar {
  height: 78px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.search-box {
  width: min(480px, 42vw);
  height: 44px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0 10px 0 14px;
}

.search-box.is-hidden {
  display: none;
}

.search-box span {
  color: #7e8884;
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.search-icon::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  left: 1px;
  top: 1px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  left: 10px;
  top: 12px;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert.success {
  border-color: rgba(10, 112, 76, 0.2);
  background: #eef8f3;
  color: var(--green);
}

.login-link-action {
  width: max-content;
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 800;
}

.login-link-action:hover,
.login-link-action:focus-visible {
  text-decoration: underline;
}

.password-control {
  position: relative;
}

.field .password-control input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(10, 112, 76, 0.06);
  color: #52645e;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  border-color: rgba(10, 112, 76, 0.18);
  background: #e8f5ee;
  color: var(--green);
  box-shadow: 0 8px 20px rgba(10, 112, 76, 0.12);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(10, 112, 76, 0.16);
  outline-offset: 2px;
}

.password-eye {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-on {
  display: none;
}

.password-toggle.is-visible {
  background: #0a704c;
  border-color: #0a704c;
  color: #fff;
}

.password-toggle.is-visible .password-eye-off {
  display: none;
}

.password-toggle.is-visible .password-eye-on {
  display: block;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile {
  display: grid;
  grid-template-columns: 42px 150px 12px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 24%, #f5b742 0 10%, #051a12 44%, #06100d 100%);
  color: #f0b94c;
  font-weight: 900;
  font-size: 14px;
  overflow: hidden;
}

.profile strong,
.profile span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile strong {
  font-size: 14px;
  color: #748079;
}

.profile span {
  margin-top: 5px;
  color: #7c8782;
  font-size: 11px;
}

.profile-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #7c8782;
  border-bottom: 2px solid #7c8782;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.profile-menu[open] .profile-chevron {
  transform: translateY(3px) rotate(225deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(24, 42, 34, 0.12);
  padding: 7px;
}

.profile-menu-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  text-align: left;
  font-weight: 700;
}

.profile-menu-item:hover {
  background: var(--green-soft);
  color: var(--green);
}

.profile-menu-item.danger {
  color: #a52e2e;
}

.profile-menu-item.danger:hover {
  background: #fff0ee;
  color: #b72d1c;
}

.profile-menu-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-menu-separator {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.content {
  padding: 26px 24px 44px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

h1 {
  margin: 0;
  font-size: clamp(31px, 3.5vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 14px 0 0;
  color: #68756f;
  font-size: 14px;
}

.primary-action {
  min-width: 128px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(10, 112, 76, 0.18);
}

.button-plus,
.button-check {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: var(--icon-add) center / contain no-repeat;
  mask: var(--icon-add) center / contain no-repeat;
}

.button-check {
  -webkit-mask-image: var(--icon-check);
  mask-image: var(--icon-check);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(25, 38, 32, 0.05);
}

.stat-card.featured {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.stat-label {
  color: #63706b;
  font-size: 12px;
  font-weight: 700;
}

.featured .stat-label {
  color: #d8eee4;
}

.stat-value {
  margin-top: 10px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.stat-value.compact {
  font-size: 25px;
  line-height: 1.25;
}

.stat-value.money-stat {
  font-size: 28px;
  line-height: 1.15;
  white-space: nowrap;
}

.stat-note {
  margin-top: 16px;
  color: #697772;
  font-size: 12px;
}

.featured .stat-note {
  color: #d7eee3;
}

.data-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(25, 38, 32, 0.06);
  padding: 20px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-actions-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

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

.bulk-actions .compact-action svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-filter-bar,
.list-filter-bar {
  min-width: min(100%, 680px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-search-filter,
.product-store-filter {
  display: grid;
  gap: 5px;
}

.product-search-filter {
  width: min(360px, 100%);
}

.product-store-filter {
  min-width: 230px;
}

.product-search-filter span,
.product-store-filter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-search-filter input,
.product-store-filter select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 38px 0 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  color: #68746e;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 800;
}

.tab.active {
  color: var(--green);
  border-color: #aad0c0;
  background: #edf8f3;
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #58645f;
  padding: 0 15px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pill-tabs button:hover {
  border-color: #aad0c0;
  background: #f4fbf7;
  color: var(--green);
  box-shadow: 0 8px 18px rgba(20, 102, 70, 0.08);
  transform: translateY(-1px);
}

.pill-tabs button.active {
  border-color: #9fd0bd;
  background: #e8f6ef;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(20, 102, 70, 0.08);
}

.record-count {
  color: #6e7a75;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #7b8782;
  background: #fafcfb;
  font-size: 12px;
  font-weight: 700;
}

.data-table td {
  font-size: 14px;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.compact-check {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.identity-cell {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c6b43c, #0c7049);
  color: #fff;
  font-weight: 900;
}

.avatar-button {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.avatar-button:hover {
  box-shadow: 0 8px 18px rgba(10, 112, 76, 0.22);
  transform: translateY(-1px);
}

.identity-title {
  font-weight: 700;
}

.identity-sub {
  margin-top: 4px;
  color: #7d8884;
  font-size: 11px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--green);
  background: #e4f4ed;
  font-size: 12px;
  font-weight: 700;
}

.pill.green {
  color: #0a704c;
  background: #e4f4ed;
}

.pill.gold {
  color: #8a6800;
  background: var(--gold-soft);
}

.pill.blue {
  color: #1f5f91;
  background: #e4f0fb;
}

.pill.red {
  color: #b42318;
  background: #feeceb;
}

.pill.gray {
  color: #69756f;
  background: #edf1ef;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0a704c;
  background: #e4f4ed;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.green {
  color: #0a704c;
  background: #e4f4ed;
}

.status-pill.gold {
  color: #8a6800;
  background: #fff2c2;
}

.status-pill.blue {
  color: #1f5f91;
  background: #e4f0fb;
}

.status-pill.red {
  color: #b42318;
  background: #feeceb;
}

.status-pill.gray {
  color: #69756f;
  background: #edf1ef;
}

.select-shell {
  min-width: 138px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  padding: 0 12px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.small-action {
  width: 38px;
  height: 38px;
  border: 1px solid #b7d9cd;
  border-radius: 11px;
  background: #e8f6f1;
  color: var(--green);
  position: relative;
  display: grid;
  place-items: center;
}

.small-action.edit::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--icon-edit) center / contain no-repeat;
  mask: var(--icon-edit) center / contain no-repeat;
}

.small-action.danger {
  border-color: #efc7c2;
  background: #fff0ee;
  color: #b72d1c;
}

.small-action.danger::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: var(--icon-x) center / contain no-repeat;
  mask: var(--icon-x) center / contain no-repeat;
}

.small-action.danger::after {
  content: none;
}

.product-list-card {
  position: relative;
  min-height: 52px;
  grid-template-columns: minmax(330px, 1.35fr) minmax(220px, 0.85fr) minmax(82px, 0.28fr) minmax(118px, 0.34fr);
  gap: 12px;
  padding: 8px 12px;
}

.product-list-card.is-selecting {
  grid-template-columns: 28px minmax(330px, 1.35fr) minmax(220px, 0.85fr) minmax(82px, 0.28fr) minmax(118px, 0.34fr);
  cursor: default;
}

.product-list-table {
  display: grid;
  gap: 8px;
}

.product-list-header {
  display: grid;
  grid-template-columns: minmax(330px, 1.35fr) minmax(220px, 0.85fr) minmax(82px, 0.28fr) minmax(118px, 0.34fr);
  gap: 12px;
  padding: 0 13px 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.product-list-table.is-selecting .product-list-header {
  grid-template-columns: 28px minmax(330px, 1.35fr) minmax(220px, 0.85fr) minmax(82px, 0.28fr) minmax(118px, 0.34fr);
}

.product-list-rows {
  gap: 8px;
}

.product-list-card.product-row {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.product-list-card.product-row + .product-list-card.product-row {
  border-top: 1px solid var(--line);
}

.product-list-card.product-row:hover,
.product-list-card.product-row:focus-visible {
  background: #fff;
}

.product-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.product-row-main .avatar {
  width: 30px;
  height: 30px;
  font-size: 10.5px;
}

.product-row-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-row-title h2 {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row-title span {
  flex: 0 0 auto;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 650;
}

.product-row-value {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
}

.product-row-price {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.bulk-select-control {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.bulk-select-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bulk-select-control span {
  width: 14px;
  height: 14px;
  border: 1.5px solid #a8beb5;
  border-radius: 5px;
  background: #fff;
  position: relative;
}

.bulk-select-control input:checked + span {
  border-color: var(--green);
  background: var(--green);
}

.bulk-select-control input:checked + span::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
}

.link-button {
  min-height: 30px;
  border: 1px solid #b7d9cd;
  border-radius: 999px;
  background: #eef8f4;
  color: var(--green);
  padding: 5px 11px;
  font-weight: 700;
}

.link-button:hover,
.link-button[aria-expanded="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.contacts-panel {
  border: 1px solid #cfe1d8;
  border-radius: 14px;
  background: #f7fbf9;
  padding: 14px;
}

.contacts-panel.standalone {
  margin-top: 18px;
}

.contacts-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.contacts-page {
  max-width: 1180px;
}

.store-detail-page {
  max-width: 1180px;
}

.company-profile-page {
  max-width: 1180px;
}

.company-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  padding: 18px;
  margin-bottom: 18px;
}

.company-profile-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 15px;
  align-items: center;
  min-width: 0;
}

.company-logo-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #07130f, #0a704c);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(7, 87, 56, 0.16);
  overflow: hidden;
}

.company-profile-main h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.company-profile-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.company-profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: 300px;
}

.company-profile-meta div {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 12px;
}

.company-profile-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.company-profile-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contacts-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  padding: 16px;
}

.contacts-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.store-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  padding: 18px;
}

.store-profile-main {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.profile-store-avatar {
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.store-profile-main h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.store-profile-main p {
  margin: 5px 0 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.store-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.purchase-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.store-detail-sections {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.detail-section-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  padding: 16px;
}

.detail-section-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.detail-section-title .eyebrow {
  margin-bottom: 5px;
}

.detail-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfc;
  padding: 14px;
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-item span {
  display: block;
  color: #7b8782;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-item strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.contacts-panel-title {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.panel-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.store-documents-panel {
  margin-top: 14px;
}

.store-document-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.store-document-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.store-document-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.store-document-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff4f4;
  color: #b23939;
  font-size: 11px;
  font-weight: 900;
}

.receipt-document-icon {
  background: #e7f6ef;
  color: var(--green);
}

.po-receipts-card {
  grid-column: 1 / -1;
}

.store-document-main {
  min-width: 0;
}

.store-document-main strong,
.store-document-main span,
.store-document-main p {
  display: block;
}

.store-document-main strong {
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.store-document-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.store-document-main span b {
  color: var(--green);
  font-weight: 800;
}

.store-document-main p {
  margin: 5px 0 0;
  color: #58645f;
  font-size: 12px;
}

.store-document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-action {
  min-width: auto;
  white-space: nowrap;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: 13px;
}

.contact-card-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}

.contact-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c6b43c, #0c7049);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.contact-card strong,
.contact-card span {
  display: block;
}

.contact-card strong {
  font-weight: 700;
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.contact-meta div {
  min-width: 0;
}

.contact-meta dt {
  color: #7b8782;
  font-size: 11px;
  font-weight: 700;
}

.contact-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.store-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.22fr);
  gap: 16px;
  align-items: start;
}

.store-form-page {
  max-width: 1180px;
}

.store-form-panel .panel-top {
  align-items: flex-start;
  margin-bottom: 18px;
}

.store-form-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.store-form-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.store-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-form.split-form {
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  padding: 18px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title.inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-title h2 {
  margin: 0 0 7px;
  font-size: 21px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-success-message {
  margin: 16px 0;
  border: 1px solid rgba(18, 107, 73, 0.18);
  border-radius: 14px;
  background: #edf8f2;
  color: var(--green);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.form-actions.full {
  grid-column: 1 / -1;
}

.field span {
  color: #66736d;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdfc;
  color: var(--ink);
  outline: 0;
  padding: 0 12px;
}

.field textarea {
  height: auto;
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa5a0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9ac8b5;
  box-shadow: 0 0 0 4px rgba(10, 112, 76, 0.08);
}

.field .field-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.field .field-hint.warning {
  color: #9a6a12;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.ghost-action {
  min-width: 104px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: #63706b;
  font-weight: 800;
  padding: 0 18px;
}

.store-table {
  min-width: 900px;
}

.contacts-list {
  display: grid;
  gap: 12px;
}

.pr-items-list {
  display: grid;
  gap: 12px;
}

.pr-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1.4fr) minmax(90px, 0.45fr) minmax(100px, 0.5fr);
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: 14px;
}

.pr-item-row .field {
  min-width: 0;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.pr-vat-toggle {
  margin: 4px 0 2px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbf8;
}

.pr-total-options {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(150px, 0.8fr);
  gap: 10px;
  align-items: end;
  margin: 4px 0 12px;
}

.pr-discount-field {
  margin: 4px 0 2px;
}

.pr-other-cost-name-field,
.pr-other-cost-amount-field {
  margin: 4px 0 2px;
}

.po-policy-lock-message {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ead7a8;
  border-radius: 12px;
  background: #fff8e7;
  color: #8a5a00;
  font-weight: 800;
}

.po-policy-lock-message.is-ready {
  border-color: #bfe3cf;
  background: #eef9f3;
  color: var(--green);
}

#po-form input:disabled,
#po-form select:disabled,
#po-form textarea:disabled,
#po-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

#po-form.is-po-policy-locked .pr-items-list,
#po-form.is-po-policy-locked .pr-vat-toggle,
#po-form.is-po-policy-locked .pr-discount-field {
  opacity: 0.58;
}

.pr-note-field {
  grid-column: 1 / span 3;
}

.po-installment-panel {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  grid-template-areas:
    "controls schedule"
    "summary summary";
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #d7e8df;
  border-radius: 12px;
  background: #f7fbf8;
}

.po-installment-controls {
  grid-area: controls;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}

.po-installment-panel.is-no-installment .po-installment-count-field {
  display: none;
}

.po-installment-checks {
  grid-area: schedule;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.po-installment-table {
  display: grid;
  gap: 7px;
  width: 100%;
}

.po-installment-table-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(110px, 0.72fr) minmax(110px, 0.72fr) 112px 36px;
  gap: 8px;
  padding: 0 2px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.po-installment-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(110px, 0.72fr) minmax(110px, 0.72fr) 112px 36px;
  gap: 8px;
  align-items: end;
}

.po-installment-table-head:has(+ .po-installment-row:not(:has(.po-installment-remove))),
.po-installment-row:not(:has(.po-installment-remove)) {
  grid-template-columns: minmax(140px, 1fr) minmax(110px, 0.72fr) minmax(110px, 0.72fr) 112px;
}

.pr-installment-table-head,
.pr-installment-row {
  grid-template-columns: minmax(140px, 1fr) minmax(110px, 0.72fr) minmax(110px, 0.72fr) 36px;
}

.po-installment-row .field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.po-installment-row input {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

.po-installment-add {
  justify-self: start;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.po-installment-remove {
  align-self: end;
}

.installment-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.installment-check:has(input:checked) {
  border-color: #abd9c7;
  background: #e8f7f0;
  color: var(--green);
}

.installment-check input {
  width: 13px;
  height: 13px;
  accent-color: var(--green);
}

.po-installment-summary {
  grid-area: summary;
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 8px;
}

.po-installment-summary div {
  min-width: 0;
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.po-installment-summary span,
.po-installment-summary strong {
  display: block;
}

.po-installment-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.po-installment-summary strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.po-installment-summary div:nth-child(2) strong {
  color: var(--green);
}

.po-installment-summary div:nth-child(3) strong {
  color: #9a6a16;
}

.po-installment-summary.has-installment-difference [data-po-installment-difference] {
  color: #b35f00;
}

.po-payment-cell strong,
.po-payment-cell span {
  display: block;
}

.po-payment-cell span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.pr-item-remove {
  justify-self: end;
}

.pr-items-table td:nth-child(2) strong,
.pr-items-table td:nth-child(2) span {
  display: block;
}

.pr-items-table td:nth-child(2) span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.admin-body .po-detail-items-table {
  min-width: 1080px;
  table-layout: fixed;
}

.admin-body .po-detail-items-table th:nth-child(1),
.admin-body .po-detail-items-table td:nth-child(1) {
  width: 4%;
  text-align: center;
}

.admin-body .po-detail-items-table th:nth-child(2),
.admin-body .po-detail-items-table td:nth-child(2) {
  width: 23%;
}

.admin-body .po-detail-items-table th:nth-child(3),
.admin-body .po-detail-items-table td:nth-child(3),
.admin-body .po-detail-items-table th:nth-child(4),
.admin-body .po-detail-items-table td:nth-child(4) {
  width: 7%;
  text-align: center;
}

.admin-body .po-detail-items-table th:nth-child(5),
.admin-body .po-detail-items-table td:nth-child(5) {
  width: 16%;
}

.admin-body .po-detail-items-table th:nth-child(6),
.admin-body .po-detail-items-table td:nth-child(6) {
  width: 10%;
  text-align: right;
}

.admin-body .po-detail-items-table th:nth-child(7),
.admin-body .po-detail-items-table td:nth-child(7) {
  width: 9%;
  text-align: right;
}

.admin-body .po-detail-items-table th:nth-child(8),
.admin-body .po-detail-items-table td:nth-child(8) {
  width: 10%;
  text-align: right;
}

.admin-body .po-detail-items-table th:nth-child(9),
.admin-body .po-detail-items-table td:nth-child(9) {
  width: 14%;
  text-align: right;
}

.admin-body .po-detail-items-table td:nth-child(n + 6) {
  font-variant-numeric: tabular-nums;
}

.contact-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) 40px;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  padding: 14px;
}

.contact-row .field {
  min-width: 0;
}

.contact-row .field:nth-of-type(5) {
  grid-column: 1 / span 2;
}

.contact-row .field:nth-of-type(6) {
  grid-column: 3 / span 2;
}

.contact-remove {
  grid-column: 5;
  grid-row: 2;
  align-self: end;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  padding: 12px;
  text-align: left;
}

.module-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 22px;
  box-shadow: 0 14px 32px rgba(25, 38, 32, 0.05);
}

.module-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e8f4ef;
  font-weight: 900;
}

.step-item strong {
  display: block;
  margin-bottom: 4px;
}

.step-item span {
  color: var(--muted);
  font-size: 13px;
}

.loading {
  color: var(--muted);
  padding: 26px;
}

@media (max-width: 1100px) {
  .workspace-shell {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .sidebar {
    max-height: 240px;
    padding: 18px;
  }

  .menu-section {
    margin-top: 20px;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .main-panel {
    min-height: 0;
  }

  .topbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-actions-inline,
  .bulk-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .product-filter-bar,
  .list-filter-bar,
  .product-search-filter,
  .product-store-filter {
    width: 100%;
  }

  .product-list-header {
    display: none;
  }

  .product-list-card,
  .product-list-card.is-selecting {
    grid-template-columns: 1fr;
  }

  .product-row-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-row-value {
    white-space: normal;
  }

  .pill-tabs {
    width: 100%;
  }

  .stats-grid,
  .module-board,
  .store-workspace {
    grid-template-columns: 1fr;
  }

  .pr-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pr-note-field {
    grid-column: 1 / -1;
  }

  .po-installment-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "schedule"
      "summary";
  }

  .po-installment-summary {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .po-installment-table-head,
  .po-installment-row {
    grid-template-columns: minmax(130px, 1fr) minmax(100px, 0.75fr) minmax(100px, 0.75fr) auto 36px;
  }

  .pr-installment-table-head,
  .pr-installment-row {
    grid-template-columns: minmax(130px, 1fr) minmax(100px, 0.75fr) minmax(100px, 0.75fr) 36px;
  }

  .pr-item-remove {
    justify-self: start;
  }

  .contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 40px;
  }

  .contact-row .field:nth-of-type(5) {
    grid-column: 1;
  }

  .contact-row .field:nth-of-type(6) {
    grid-column: 2;
  }

  .contact-remove {
    grid-column: 3;
    grid-row: 3;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .contacts-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .contacts-page-actions {
    justify-content: flex-start;
  }

  .detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 700px) {
  .content {
    padding: 22px 16px 34px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .profile {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .store-form {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .contact-row,
  .pr-item-row,
  .pr-total-options {
    grid-template-columns: 1fr;
  }

  .pr-note-field {
    grid-column: 1;
  }

  .contact-row .field:nth-of-type(5),
  .contact-row .field:nth-of-type(6) {
    grid-column: 1;
  }

  .section-title.inline {
    flex-direction: column;
  }

  .contacts-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-remove {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .contact-meta {
    grid-template-columns: 1fr;
  }

  .po-installment-row {
    grid-template-columns: 1fr;
  }

  .po-installment-table-head {
    display: none;
  }

  .po-installment-row .field span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 10px;
  }

  .po-installment-summary {
    grid-template-columns: 1fr;
  }

  .po-installment-remove {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 34 Build Master admin reference skin */
@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("/fonts/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --page: #eef1ef;
  --surface: #f7f8f7;
  --white: #ffffff;
  --ink: #17251f;
  --muted: #77817c;
  --line: #e4e9e6;
  --green: #126b49;
  --green-strong: #07543a;
  --green-deep: #073d2c;
  --green-soft: #e8f4ee;
  --gold: #d9a83e;
  --gold-dark: #9a6a18;
  --danger: #cc4b4b;
  --shadow: 0 18px 54px rgba(24, 42, 34, 0.07);
}

.admin-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(18, 107, 73, 0.08), transparent 28%),
    linear-gradient(145deg, #eef1ef, #e7ebe8);
  color: var(--ink);
  padding: 20px;
  font-family: "LINE Seed Sans TH", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.admin-body .workspace-shell {
  width: min(100%, 1580px);
  height: auto;
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(33, 47, 40, 0.12);
}

.admin-body.is-login .workspace-shell {
  display: block;
  width: min(100%, 1580px);
  min-height: calc(100vh - 40px);
  background: radial-gradient(circle at top left, rgba(18, 107, 73, 0.13), transparent 34%), #f5f8f6;
}

.admin-body.is-login .sidebar,
.admin-body.is-login .topbar {
  display: none;
}

.admin-body.is-login .main-panel {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-body.is-login .content {
  width: min(100%, 520px);
  padding: 0;
}

.login-shell {
  width: 100%;
}

.login-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.login-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a704c, #d2a135);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
}

.login-brand h1 {
  font-size: 30px;
}

.login-brand span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.login-alert {
  border: 1px solid rgba(204, 75, 75, 0.22);
  border-radius: 12px;
  background: #fff4f4;
  color: #a52e2e;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.login-submit {
  width: 100%;
}

.admin-body .login-submit:not(:has(.button-plus)):not(:has(.button-check))::before {
  -webkit-mask-image: var(--icon-chevron-right);
  mask-image: var(--icon-chevron-right);
}

.admin-body .sidebar {
  position: sticky;
  top: 20px;
  z-index: 30;
  height: calc(100vh - 40px);
  overflow: hidden auto;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.admin-body .brand-row {
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 10px;
  margin-bottom: 28px;
}

.admin-body .brand-logo {
  appearance: none;
  cursor: pointer;
  padding: 0;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 107, 73, 0.2);
  border-radius: 14px;
  background: #061b13;
  box-shadow: 0 12px 24px rgba(18, 107, 73, 0.18);
  overflow: hidden;
}

.admin-body .brand-logo:hover {
  transform: translateY(-1px);
}

.admin-body .brand-logo span {
  font-size: 18px;
}

.admin-body .brand-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.admin-body .brand-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.admin-body .collapse-button {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--green);
}

.admin-body .collapse-button:hover {
  border-color: rgba(18, 107, 73, 0.35);
  background: var(--green-soft);
}

.admin-body .menu-section {
  margin-top: 24px;
}

.admin-body .menu-section p {
  margin: 24px 10px 9px;
  color: #9aa39f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.admin-body .nav-list {
  gap: 5px;
}

.admin-body .nav-list .is-menu-hidden {
  display: none;
}

.admin-body .nav-group {
  display: grid;
  gap: 5px;
}

.admin-body .nav-group.is-collapsed .nav-sublist {
  display: none;
}

.admin-body .nav-item {
  min-height: 43px;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #758079;
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-body .nav-parent {
  grid-template-columns: 18px minmax(0, 1fr) 12px;
}

.admin-body .nav-chevron {
  width: 14px;
  height: 14px;
  justify-self: end;
  border: 0;
  transform: none;
  opacity: 0.75;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.admin-body .nav-group.is-collapsed .nav-chevron {
  transform: rotate(-90deg);
}

.admin-body .nav-parent:hover .nav-chevron,
.admin-body .nav-parent.active .nav-chevron {
  opacity: 1;
}

.admin-body .nav-item:hover,
.admin-body .nav-item.active {
  color: var(--green-strong);
  background: var(--green-soft);
  transform: translateX(2px);
}

.admin-body .nav-item.active {
  font-weight: 700;
}

.admin-body .nav-item.active::before {
  left: -16px;
  width: 5px;
  height: 26px;
  border-radius: 0 7px 7px 0;
}

.admin-body .nav-sublist {
  display: grid;
  gap: 4px;
  margin: -1px 0 4px 30px;
  padding-left: 12px;
  border-left: 1px solid rgba(18, 107, 73, 0.14);
}

.admin-body .nav-subitem {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7f8a84;
  padding: 7px 11px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-body .nav-subitem:hover,
.admin-body .nav-subitem.active {
  background: #f1f8f5;
  color: var(--green-strong);
  transform: translateX(2px);
}

.admin-body .nav-subitem.active {
  font-weight: 700;
}

.admin-body .workspace-shell.is-sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.admin-body .workspace-shell.is-sidebar-collapsed .sidebar {
  padding: 24px 12px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .brand-row {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .collapse-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .brand-copy,
.admin-body .workspace-shell.is-sidebar-collapsed .menu-section p,
.admin-body .workspace-shell.is-sidebar-collapsed .nav-section-label span,
.admin-body .workspace-shell.is-sidebar-collapsed .nav-item span,
.admin-body .workspace-shell.is-sidebar-collapsed .nav-chevron,
.admin-body .workspace-shell.is-sidebar-collapsed .nav-sublist {
  display: none;
}

.admin-body .workspace-shell.is-sidebar-collapsed .nav-section-label {
  justify-content: center;
  margin: 12px 0 4px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .nav-section-label::after {
  flex: 0 0 24px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .collapse-button::before {
  transform: rotate(180deg);
}

.admin-body .workspace-shell.is-sidebar-collapsed .menu-section {
  margin-top: 28px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 11px;
}

.admin-body .workspace-shell.is-sidebar-collapsed .nav-item.active::before {
  left: -12px;
}

.admin-body .nav-icon,
.admin-body .search-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-body .nav-icon::before,
.admin-body .nav-icon::after,
.admin-body .search-icon::before,
.admin-body .search-icon::after {
  content: none;
}

.admin-body .main-panel {
  min-width: 0;
  background: var(--surface);
}

.admin-body .topbar {
  min-height: 78px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.admin-body .search-box {
  position: relative;
  width: min(100%, 480px);
  height: 44px;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-body .search-box .search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #7f8984;
  pointer-events: none;
}

.admin-body .search-box input {
  height: 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f3f5f4;
  padding: 0 16px 0 52px;
  font-size: 13px;
}

.admin-body .search-box input:focus {
  border-color: rgba(18, 107, 73, 0.25);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 107, 73, 0.08);
}

.admin-body .topbar-actions {
  justify-content: flex-end;
  gap: 9px;
}

.admin-body .profile {
  min-width: 218px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 10px;
  gap: 10px;
  margin-left: 3px;
  border: 1px solid transparent;
  padding: 5px 8px 5px 5px;
  border-radius: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-body .profile:hover,
.admin-body .profile-menu[open] .profile {
  border-color: var(--line);
  background: #fff;
}

.admin-body .profile-avatar {
  width: 40px;
  height: 40px;
  background: #061b13;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.admin-body .profile strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-body .profile span {
  color: var(--muted);
  font-size: 10px;
}

.admin-body .profile-chevron {
  border-color: var(--muted);
}

.admin-body .profile-dropdown {
  min-width: 210px;
}

.admin-body .content {
  padding: 24px 24px 28px;
}

.admin-body .page-head {
  align-items: flex-end;
  margin-bottom: 22px;
}

.admin-body .eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.admin-body h1 {
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.14;
}

.admin-body h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.admin-body .page-subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-body .primary-action {
  min-height: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(18, 107, 73, 0.17);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-body .primary-action:hover {
  border-color: var(--green-strong);
  background: var(--green-strong);
  transform: translateY(-1px);
}

.admin-body .ghost-action {
  min-height: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd5d0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-body .ghost-action:hover {
  border-color: var(--green);
  color: var(--green);
}

.admin-body .contacts-page-actions .ghost-action[data-action^="back"] {
  border-color: #d7ded9;
  background: #f7faf8;
  color: #40514a;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-po"],
.admin-body .contacts-page-actions .ghost-action[data-action="print-pr"],
.admin-body .contacts-page-actions .ghost-action[data-action="print-sales-document"],
.admin-body .contacts-page-actions .ghost-action[data-action="print-payment-voucher"] {
  border-color: #cfe0f7;
  background: #eef6ff;
  color: #1d5f9f;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-cash-voucher"] {
  border-color: #bfe2d0;
  background: #e9f8ef;
  color: #0a704c;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-withholding-tax"] {
  border-color: #ead492;
  background: #fff7dd;
  color: #8a6400;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-po-payment"] {
  border-color: #d6cef5;
  background: #f4f0ff;
  color: #6446a3;
}

.admin-body .contacts-page-actions .ghost-action[data-action^="back"]:hover {
  border-color: #aab7b0;
  background: #edf2ef;
  color: #24332d;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-po"]:hover,
.admin-body .contacts-page-actions .ghost-action[data-action="print-pr"]:hover,
.admin-body .contacts-page-actions .ghost-action[data-action="print-sales-document"]:hover,
.admin-body .contacts-page-actions .ghost-action[data-action="print-payment-voucher"]:hover {
  border-color: #1d5f9f;
  background: #1d5f9f;
  color: #fff;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-cash-voucher"]:hover {
  border-color: #0a704c;
  background: #0a704c;
  color: #fff;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-withholding-tax"]:hover {
  border-color: #b98500;
  background: #b98500;
  color: #fff;
}

.admin-body .contacts-page-actions .ghost-action[data-action="print-po-payment"]:hover {
  border-color: #6446a3;
  background: #6446a3;
  color: #fff;
}

.admin-body .danger-action {
  min-height: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(204, 75, 75, 0.22);
  border-radius: 999px;
  background: #fff4f4;
  color: #a52e2e;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}

.admin-body .danger-action:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.admin-body .primary-action::before,
.admin-body .ghost-action::before,
.admin-body .danger-action::before,
.admin-body .tab::before,
.admin-body .nav-subitem::before,
.admin-body .compare-search-box button::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: var(--icon-add) center / contain no-repeat;
  mask: var(--icon-add) center / contain no-repeat;
}

.admin-body .primary-action:has(.button-plus)::before,
.admin-body .primary-action:has(.button-check)::before {
  content: none;
}

.admin-body .primary-action:not(:has(.button-plus)):not(:has(.button-check)),
.admin-body .ghost-action,
.admin-body .danger-action,
.admin-body .tab,
.admin-body .nav-subitem,
.admin-body .compare-search-box button {
  gap: 8px;
}

.admin-body .primary-action:not(:has(.button-plus)):not(:has(.button-check))::before {
  -webkit-mask-image: var(--icon-add);
  mask-image: var(--icon-add);
}

.admin-body .primary-action[data-action^="edit"]::before,
.admin-body .ghost-action[data-action^="edit"]::before {
  -webkit-mask-image: var(--icon-edit);
  mask-image: var(--icon-edit);
}

.admin-body .primary-action[data-action^="edit"]:not(:has(.button-plus)):not(:has(.button-check))::before {
  content: "";
}

.admin-body .ghost-action[data-action^="back"]::before,
.admin-body .ghost-action[data-action="dashboard-open"]::before {
  -webkit-mask-image: var(--icon-back);
  mask-image: var(--icon-back);
}

.admin-body .ghost-action[data-action="warehouse-open"]::before {
  -webkit-mask-image: var(--icon-back);
  mask-image: var(--icon-back);
}

.admin-body .ghost-action[data-action^="add"]::before,
.admin-body .ghost-action[data-action^="new"]::before,
.admin-body .ghost-action[data-action="edit-store"][class*="compact-action"]::before {
  -webkit-mask-image: var(--icon-add);
  mask-image: var(--icon-add);
}

.admin-body .ghost-action[data-action^="view"]::before {
  -webkit-mask-image: var(--icon-chevron-right);
  mask-image: var(--icon-chevron-right);
}

.admin-body .ghost-action[data-action^="print"]::before {
  -webkit-mask-image: var(--icon-print);
  mask-image: var(--icon-print);
}

.admin-body .danger-action::before {
  -webkit-mask-image: var(--icon-x);
  mask-image: var(--icon-x);
}

.admin-body .ghost-action:has(> svg)::before,
.admin-body .danger-action:has(> svg)::before {
  content: none;
}

.admin-body .tab::before {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
  border-radius: 999px;
  -webkit-mask: none;
  mask: none;
}

.admin-body .tab[data-action*="filter"]::before {
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-body .nav-subitem::before {
  width: 14px;
  height: 14px;
  color: currentColor;
  opacity: 0.78;
  -webkit-mask-image: var(--icon-chevron-right);
  mask-image: var(--icon-chevron-right);
}


.admin-body .compare-search-box button::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-body .dashboard-action-card {
  position: relative;
}

.admin-body .dashboard-action-card::before {
  content: "";
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--action-soft, #e7f3ed);
  color: var(--action-color, var(--green));
  margin-bottom: 10px;
}

.admin-body .dashboard-action-card::after {
  content: "";
  position: absolute;
  left: 27.5px;
  top: 27.5px;
  width: 15px;
  height: 15px;
  background: var(--action-color, var(--green));
  -webkit-mask: var(--dashboard-card-icon) center / contain no-repeat;
  mask: var(--dashboard-card-icon) center / contain no-repeat;
}

.admin-body .dashboard-action-card.highlighted::before {
  background: rgba(255, 255, 255, 0.92);
}

.admin-body .dashboard-action-card.highlighted::after {
  background: var(--green);
}

.admin-body .dashboard-action-card.store-icon {
  --action-color: #126b49;
  --action-soft: #e7f3ed;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h16l-1.5-5h-13L4 10Z'/%3E%3Cpath d='M5 10v9h14v-9'/%3E%3Cpath d='M9 19v-5h6v5'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.project-icon {
  --action-color: #0f766e;
  --action-soft: #e6f5f3;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-5 7 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3Cpath d='M9 10h6'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.add-icon {
  --action-color: #126b49;
  --action-soft: #e7f3ed;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.product-icon {
  --action-color: #2f6f94;
  --action-soft: #e7f1f6;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 10-4 4 8-10 4-4-8Z'/%3E%3Cpath d='M7 7 3 9l4 8 4-2'/%3E%3Cpath d='m11 15 4 6 6-10'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.compare-icon {
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19V9'/%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M19 19v-7'/%3E%3Cpath d='M3 19h18'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.pr-icon {
  --action-color: #9a6a12;
  --action-soft: #fbf0d9;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.po-icon {
  --action-color: #6d5aa8;
  --action-soft: #eeeafa;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6z'/%3E%3Cpath d='M9 7h6'/%3E%3Cpath d='M9 11h6'/%3E%3Cpath d='M9 15h3'/%3E%3Cpath d='m15 16 1.5 1.5L20 14'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.contractor-icon {
  --action-color: #6f6b2b;
  --action-soft: #f1f0dd;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0-1.4l-1.6-1.6a1 1 0 0 0-1.4 0L4 11v3h3l7.7-7.7Z'/%3E%3Cpath d='M13 5l6 6'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.add-product-icon {
  --action-color: #2f6f94;
  --action-soft: #e7f1f6;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M4 19h16'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.create-pr-icon {
  --action-color: #9a6a12;
  --action-soft: #fbf0d9;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 12v6'/%3E%3Cpath d='M9 15h6'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.create-po-icon {
  --action-color: #6d5aa8;
  --action-soft: #eeeafa;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h3'/%3E%3Cpath d='m13 17 2 2 4-5'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.report-icon {
  --action-color: #1d5f9f;
  --action-soft: #eef6ff;
  --dashboard-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 16v-5'/%3E%3Cpath d='M12 16V8'/%3E%3Cpath d='M16 16v-8'/%3E%3Cpath d='M20 16v-3'/%3E%3C/svg%3E");
}

.admin-body .dashboard-action-card.store-icon {
  --action-card-bg: #f3faf6;
  --action-border: #cfe6da;
  --action-shadow: rgba(18, 107, 73, 0.11);
}

.admin-body .dashboard-action-card.project-icon {
  --action-card-bg: #eef8f6;
  --action-border: #c9e5df;
  --action-shadow: rgba(15, 118, 110, 0.12);
}

.admin-body .dashboard-action-card.product-icon,
.admin-body .dashboard-action-card.add-product-icon {
  --action-card-bg: #f1f8fb;
  --action-border: #cfe3ee;
  --action-shadow: rgba(47, 111, 148, 0.12);
}

.admin-body .dashboard-action-card.contractor-icon {
  --action-card-bg: #faf9eb;
  --action-border: #dedbb5;
  --action-shadow: rgba(111, 107, 43, 0.12);
}

.admin-body .dashboard-action-card.pr-icon,
.admin-body .dashboard-action-card.create-pr-icon {
  --action-card-bg: #fff9eb;
  --action-border: #edd9aa;
  --action-shadow: rgba(154, 106, 18, 0.12);
}

.admin-body .dashboard-action-card.po-icon,
.admin-body .dashboard-action-card.create-po-icon {
  --action-card-bg: #f7f4ff;
  --action-border: #d9d1f0;
  --action-shadow: rgba(109, 90, 168, 0.13);
}

.admin-body .dashboard-action-card.report-icon {
  --action-card-bg: #eef6ff;
  --action-border: #cfe0f7;
  --action-shadow: rgba(29, 95, 159, 0.13);
}

.admin-body .dashboard-list-row {
  gap: 10px;
}

.admin-body .stats-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.admin-body .stat-card {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.admin-body .stat-card.featured {
  border-color: transparent;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
}

.admin-body .stat-label,
.admin-body .stat-note {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .stat-label {
  font-weight: 600;
}

.admin-body .featured .stat-label,
.admin-body .featured .stat-note {
  color: rgba(255, 255, 255, 0.72);
}

.admin-body .stat-value {
  color: var(--green);
  font-size: 38px;
  font-weight: 700;
}

.admin-body .stat-value.money-stat {
  font-size: 26px;
  line-height: 1.15;
}

.admin-body .featured .stat-value {
  color: #fff;
}

.admin-body .data-panel,
.admin-body .module-card,
.admin-body .store-form-page,
.admin-body .company-profile-page,
.admin-body .contacts-page,
.admin-body .store-detail-page {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-body .panel-top {
  margin-bottom: 16px;
}

.admin-body .tab {
  min-height: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 600;
}

.admin-body .tab:hover,
.admin-body .tab.active {
  border-color: rgba(18, 107, 73, 0.24);
  background: var(--green-soft);
  color: var(--green);
}

.admin-body .record-count {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .dashboard-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.admin-body .dashboard-action-card {
  min-height: 132px;
  display: grid;
  grid-template-rows: 34px auto auto auto;
  align-content: stretch;
  gap: 8px;
  border: 1px solid var(--action-border, var(--line));
  border-radius: 18px;
  background: var(--action-card-bg, #fff);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-body .dashboard-action-card:hover,
.admin-body .dashboard-action-card:focus-visible {
  border-color: var(--action-color, rgba(18, 107, 73, 0.24));
  box-shadow: 0 16px 34px var(--action-shadow, rgba(24, 42, 34, 0.08));
  outline: 0;
  transform: translateY(-1px);
}

.admin-body .dashboard-action-card.highlighted {
  border-color: transparent;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  color: #fff;
}

.admin-body .dashboard-action-card span {
  color: var(--action-color, var(--green));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-body .dashboard-action-card.highlighted span,
.admin-body .dashboard-action-card.highlighted small {
  color: rgba(255, 255, 255, 0.72);
}

.admin-body .dashboard-action-card strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-body .dashboard-action-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-body .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-body .dashboard-task-grid {
  align-items: start;
}

.admin-body .dashboard-panel.wide {
  grid-column: 1 / -1;
}

.admin-body .dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-body .dashboard-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.admin-body .dashboard-list {
  display: grid;
  gap: 9px;
}

.admin-body .dashboard-list.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-body .dashboard-list-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
}

.admin-body .dashboard-list-row:hover {
  border-color: rgba(18, 107, 73, 0.22);
  background: #f6fbf8;
}

.admin-body .dashboard-list-row span,
.admin-body .dashboard-list-row strong,
.admin-body .dashboard-list-row small,
.admin-body .dashboard-list-row b {
  min-width: 0;
}

.admin-body .dashboard-list-row strong,
.admin-body .dashboard-list-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .dashboard-list-row strong {
  font-size: 13px;
  font-weight: 700;
}

.admin-body .dashboard-list-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.admin-body .dashboard-list-row b {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-body .dashboard-task-row {
  min-height: 70px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.admin-body .dashboard-task-row b {
  display: flex;
  justify-content: flex-end;
  min-width: 82px;
}

.admin-body .dashboard-task-row .pill {
  font-size: 10px;
}

.admin-body .report-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-body .report-metric {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-radius: 4px;
  padding: 16px 18px 18px;
  border-color: #e7ece9;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 38, 32, 0.055);
}

.admin-body .report-metric::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  width: auto;
  background: #1f8e66;
}

.admin-body .report-metric.featured::before {
  background: #c49a26;
}

.admin-body .report-metric .stat-value.money-stat {
  margin-top: 7px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.admin-body .report-metric.featured .stat-value.money-stat,
.admin-body .report-metric.featured .stat-label,
.admin-body .report-metric.featured .stat-note {
  color: #fff;
}

.admin-body .report-metric .stat-note {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.35;
}

.admin-body .purchase-report-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f5faf7 100%);
}

.admin-body .report-overview-main {
  min-height: 210px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  color: #fff;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.admin-body .report-overview-main .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.admin-body .report-overview-main h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.admin-body .report-overview-main p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.admin-body .report-pay-percent {
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.admin-body .report-overview-main .report-progress {
  background: rgba(255, 255, 255, 0.2);
}

.admin-body .report-overview-main .report-progress i {
  background: var(--gold);
}

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

.admin-body .report-overview-facts article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.admin-body .report-overview-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-body .report-overview-facts strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: -6px 0 12px;
}

.admin-body .report-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-body .report-breadcrumb i {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.admin-body .report-breadcrumb strong {
  color: var(--ink);
  font-weight: 800;
}

.admin-body .report-period-control {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-body .report-breadcrumb + .report-period-control {
  margin-left: auto;
}

.admin-body .report-period-control select,
.admin-body .report-period-control input {
  height: 42px;
  min-width: 142px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 34px 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.admin-body .report-period-control input {
  min-width: 136px;
  padding-right: 12px;
}

.admin-body .report-vendor-control select {
  min-width: 210px;
}

.admin-body .report-toolbar .ghost-action {
  min-height: 42px;
  border-radius: 13px;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  padding: 0 18px;
  box-shadow: 0 12px 26px rgba(10, 112, 76, 0.16);
}

.admin-body .report-toolbar .ghost-action[data-action="print-purchase-report"]::before {
  content: none;
  display: none;
}

.admin-body .report-toolbar .report-clear-filter {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

.admin-body .report-toolbar .report-clear-filter:hover {
  border-color: rgba(180, 70, 70, 0.28);
  background: #fff5f4;
  color: #a52e2e;
}

.admin-body .report-toolbar .report-clear-filter::before {
  content: none;
  display: none;
}

.admin-body .report-toolbar .ghost-action svg {
  width: 16px;
  height: 16px;
  margin-right: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-body .report-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-bottom: 16px;
  border: 1px solid #cbe5db;
  border-radius: 4px;
  background: #edf8f3;
  color: #27664f;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .report-notice span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.admin-body .report-notice span::before {
  content: "i";
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.admin-body .report-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.admin-body .report-summary-strip article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
}

.admin-body .report-summary-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-body .report-summary-strip strong {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}

.admin-body .report-charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-body .report-chart-panel {
  min-width: 0;
  border-radius: 4px;
  padding: 18px 18px 16px;
  border-color: #e7ece9;
  box-shadow: 0 10px 24px rgba(25, 38, 32, 0.055);
}

.admin-body .report-trend-panel {
  min-height: 320px;
}

.admin-body .report-chart-full {
  grid-column: 1 / -1;
}

.admin-body .report-chart-panel .dashboard-panel-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-body .report-chart-panel .dashboard-panel-head h2 {
  font-size: 17px;
  line-height: 1.25;
}

.admin-body .report-bars {
  display: grid;
  gap: 9px;
}

.admin-body .report-bar-legend {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.admin-body .report-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-body .report-bar-legend i,
.admin-body .report-bar-legend em {
  width: 16px;
  height: 7px;
  border-radius: 99px;
}

.admin-body .report-bar-legend i {
  background: #dfe8e3;
}

.admin-body .report-bar-legend em {
  background: var(--green);
}

.admin-body .report-bar-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.4fr) minmax(90px, auto);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #edf2ef;
  padding: 5px 0 8px;
  background: transparent;
}

.admin-body .report-bar-label {
  min-width: 0;
}

.admin-body .report-bar-label strong,
.admin-body .report-bar-label span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .report-bar-label strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.admin-body .report-bar-label span,
.admin-body .report-bar-visual small {
  color: var(--muted);
  font-size: 10px;
}

.admin-body .report-bar-track,
.admin-body .report-progress,
.admin-body .report-split-track {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.admin-body .report-bar-track {
  height: 8px;
}

.admin-body .report-bar-track i,
.admin-body .report-bar-track em,
.admin-body .report-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.admin-body .report-bar-track i {
  background: #dfe8e3;
}

.admin-body .report-bar-track em {
  background: linear-gradient(90deg, var(--green), #159a6e);
}

.admin-body .report-bar-row b {
  color: #9a6a12;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-body .report-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 6px;
}

.admin-body .report-progress i {
  background: var(--green);
}

.admin-body .report-donut-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  align-items: center;
}

.admin-body .report-donut {
  width: 172px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--paid), #e8eee9 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.admin-body .report-donut::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: inherit;
  background: #fff;
}

.admin-body .report-donut span,
.admin-body .report-donut small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.admin-body .report-donut span {
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.admin-body .report-donut small {
  margin-top: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.admin-body .report-donut-facts {
  display: grid;
  width: 100%;
  gap: 8px;
}

.admin-body .report-donut-facts div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 11px;
  background: #fbfdfb;
}

.admin-body .report-donut-facts span,
.admin-body .report-donut-facts strong {
  display: block;
}

.admin-body .report-donut-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.admin-body .report-donut-facts strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-body .report-split-chart {
  width: 100%;
  margin-top: 16px;
}

.admin-body .report-split-track {
  display: flex;
  height: 9px;
  border-radius: 4px;
}

.admin-body .report-split-track i,
.admin-body .report-split-track em {
  display: block;
}

.admin-body .report-split-track i {
  background: var(--green);
}

.admin-body .report-split-track em {
  background: var(--gold);
}

.admin-body .report-split-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.admin-body .report-empty-chart {
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .report-trend-chart {
  position: relative;
  min-height: 244px;
  padding: 18px 10px 0;
}

.admin-body .report-trend-grid {
  position: absolute;
  inset: 18px 10px 48px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.admin-body .report-trend-grid span {
  border-top: 1px solid #edf2ef;
}

.admin-body .report-trend-line {
  position: absolute;
  inset: 18px 10px 48px;
  width: calc(100% - 20px);
  height: calc(100% - 66px);
  overflow: visible;
  pointer-events: none;
}

.admin-body .report-trend-line polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-body .report-trend-bars {
  position: absolute;
  inset: 18px 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 9px;
  align-items: end;
}

.admin-body .report-trend-column {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(150px, 1fr) 28px 16px;
  align-items: end;
  justify-items: center;
  gap: 3px;
}

.admin-body .report-trend-stack {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.admin-body .report-trend-stack i {
  width: min(42px, 76%);
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #1f8e66, var(--green));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.admin-body .report-trend-column strong,
.admin-body .report-trend-column span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.admin-body .report-trend-column strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.admin-body .report-trend-column span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

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

.admin-body .report-filter-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 -4px;
}

.admin-body .report-filter-heading p,
.admin-body .report-filter-heading h2 {
  margin: 0;
}

.admin-body .report-filter-heading h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.admin-body .report-filter-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-body .report-po-table-panel {
  grid-column: 1 / -1;
}

.admin-body .report-panel {
  min-width: 0;
}

.admin-body .report-table-wrap {
  overflow-x: auto;
}

.admin-body .report-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-body .report-table th,
.admin-body .report-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  vertical-align: top;
  font-size: 11px;
}

.admin-body .report-table th {
  color: var(--muted);
  background: #f3f7f5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-body .report-table tbody tr:hover td {
  background: #fbfdfb;
}

.admin-body .report-table th:first-child,
.admin-body .report-table td:first-child {
  text-align: left;
}

.admin-body .report-table td:first-child strong,
.admin-body .report-table td:first-child span {
  display: block;
}

.admin-body .report-table td:first-child strong {
  color: var(--ink);
  font-size: 11px;
}

.admin-body .report-table td:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.admin-body .report-table td:last-child {
  color: #9a6a12;
  font-weight: 800;
}

.admin-body .report-po-table th:nth-child(3),
.admin-body .report-po-table td:nth-child(3),
.admin-body .report-po-table th:nth-child(7),
.admin-body .report-po-table td:nth-child(7) {
  text-align: center;
}

.admin-body .report-po-table td:nth-child(4),
.admin-body .report-po-table td:nth-child(5),
.admin-body .report-po-table td:nth-child(6) {
  font-weight: 800;
}

.admin-body .report-empty-cell {
  color: var(--muted) !important;
  text-align: center !important;
  font-weight: 700;
}

.purchase-report-print-sheet {
  display: none;
}

.purchase-report-print-company {
  margin-bottom: 10px;
}

.purchase-report-print-head {
  margin-bottom: 10px;
}

.purchase-report-print-metrics,
.purchase-report-print-summary {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.purchase-report-print-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.purchase-report-print-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.purchase-report-print-metrics article,
.purchase-report-print-summary article {
  border: 1px solid #d4dfd8;
  background: #f8fbf9;
  padding: 7px 8px;
}

.purchase-report-print-metrics span,
.purchase-report-print-summary span {
  display: block;
  color: #52645a;
  font-size: 8px;
  font-weight: 800;
}

.purchase-report-print-metrics strong,
.purchase-report-print-summary strong {
  display: block;
  margin-top: 3px;
  color: #0a704c;
  font-size: 10px;
  line-height: 1.2;
}

.purchase-report-print-block {
  margin-top: 10px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.purchase-report-print-block h2 {
  margin: 0 0 5px;
  color: #111;
  font-size: 12px;
  line-height: 1.25;
}

.purchase-report-print-table {
  font-size: 8.5px;
}

.purchase-report-print-table th,
.purchase-report-print-table td {
  padding: 5px 6px;
}

.purchase-report-print-table td:first-child,
.purchase-report-print-table th:first-child {
  width: 44%;
}

.purchase-report-print-table td:nth-child(2),
.purchase-report-print-table th:nth-child(2),
.purchase-report-print-table td:nth-child(3),
.purchase-report-print-table th:nth-child(3),
.purchase-report-print-table td:nth-child(4),
.purchase-report-print-table th:nth-child(4) {
  width: 18%;
  text-align: right;
}

.pr-print-info.project-summary-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pr-print-info.project-summary-info div:nth-child(3n) {
  border-right: 1px solid #d4dfd8;
}

.pr-print-info.project-summary-info div:nth-child(2n) {
  border-right: 0;
}

.purchase-report-print-metrics.project-summary-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.purchase-report-print-summary.project-summary-counts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-summary-po-table {
  font-size: 8px;
}

.project-summary-po-table td:first-child,
.project-summary-po-table th:first-child {
  width: 13%;
  text-align: left;
}

.project-summary-po-table td:nth-child(2),
.project-summary-po-table th:nth-child(2) {
  width: 29%;
  text-align: left;
}

.project-summary-po-table td:nth-child(3),
.project-summary-po-table th:nth-child(3),
.project-summary-po-table td:nth-child(4),
.project-summary-po-table th:nth-child(4) {
  width: 11%;
  text-align: center;
}

.project-summary-po-table td:nth-child(5),
.project-summary-po-table th:nth-child(5),
.project-summary-po-table td:nth-child(6),
.project-summary-po-table th:nth-child(6),
.project-summary-po-table td:nth-child(7),
.project-summary-po-table th:nth-child(7) {
  width: 12%;
  text-align: right;
}

.admin-body .dashboard-rank,
.admin-body .avatar.mini {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.admin-body .avatar.mini {
  background: linear-gradient(145deg, var(--gold), var(--green));
  color: #fff;
  flex: 0 0 34px;
}

.admin-body .dashboard-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.admin-body .store-card-list {
  display: grid;
  gap: 10px;
}

.admin-body .store-list-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-body .selectable-list-card.is-selecting:not(.product-list-card) {
  grid-template-columns: 28px minmax(280px, 1.25fr) minmax(320px, 0.9fr);
}

.admin-body .selectable-list-card.is-selecting:not(.product-list-card) .store-card-meta {
  grid-column: 3;
}

.admin-body .store-list-card:hover,
.admin-body .store-list-card:focus-visible {
  border-color: rgba(18, 107, 73, 0.24);
  box-shadow: 0 16px 34px rgba(24, 42, 34, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.admin-body .sales-document-row {
  grid-template-columns: minmax(360px, 1.25fr) minmax(420px, 1fr);
}

.admin-body .sales-document-row .store-card-meta {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.55fr) minmax(110px, 0.45fr);
  align-items: center;
  gap: 14px;
}

.admin-body .sales-document-row .store-card-meta div {
  min-width: 0;
}

.admin-body .sales-document-row .store-card-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.admin-body .sales-document-row .store-card-meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .project-list-card {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(240px, 1.15fr) minmax(320px, 1fr);
}

.admin-body .project-list-card:hover,
.admin-body .project-list-card:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  border-color: rgba(18, 107, 73, 0.3);
}

.admin-body .selectable-list-card.project-list-card.is-selecting {
  grid-template-columns: 28px minmax(240px, 1.15fr) minmax(320px, 1fr);
}

.admin-body .project-card-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.admin-body .project-card-main h2 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-body .project-card-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .project-card-meta {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(112px, 0.85fr) minmax(104px, 0.75fr);
}

.admin-body .project-card-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .project-linked-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-body .project-linked-summary article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-body .project-linked-summary span,
.admin-body .project-linked-summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-body .project-linked-summary strong {
  display: block;
  margin: 4px 0;
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.admin-body .project-dashboard-block {
  margin-top: 18px;
}

.admin-body .project-dashboard-head {
  margin: 0 0 14px;
  padding: 0;
}

.admin-body .project-dashboard-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.admin-body .project-dashboard-stats {
  margin-bottom: 18px;
}

.admin-body .project-report-grid,
.admin-body .project-report-tables {
  margin-top: 0;
}

.admin-body .project-report-tables {
  margin-bottom: 18px;
}

.admin-body .project-folder-summary {
  margin: 18px 0;
  padding: 18px;
}

.admin-body .project-folder-summary .dashboard-panel-head {
  margin-bottom: 14px;
}

.admin-body .project-folder-summary .dashboard-panel-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.admin-body .project-folder-list {
  display: grid;
  gap: 10px;
}

.admin-body .project-folder-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(240px, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #e2ebe6;
  border-radius: 12px;
  background: #fbfdfc;
  padding: 12px 14px;
}

.admin-body .project-folder-row strong,
.admin-body .project-folder-row span {
  display: block;
}

.admin-body .project-folder-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-body .project-folder-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.admin-body .project-folder-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e8f1ec;
}

.admin-body .project-folder-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #1f9b72);
}

.admin-body .project-folder-amounts {
  text-align: right;
}

.admin-body .project-folder-amounts span:first-child {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .admin-body .project-folder-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-body .project-folder-amounts {
    text-align: left;
  }
}

.admin-body .project-document-panel {
  margin-top: 18px;
}

.admin-body .project-detail-page {
  max-width: none;
  padding: 18px;
}

.admin-body .project-detail-page .record-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-body .project-detail-page .record-title-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.admin-body .project-detail-page .record-title-block .avatar {
  width: 48px;
  height: 48px;
  font-size: 14px;
  box-shadow: none;
}

.admin-body .project-detail-page .record-title-block .eyebrow {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-body .project-detail-page .record-title-block h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.admin-body .project-detail-page .record-title-block .pill {
  margin-top: 8px;
}

.admin-body .project-detail-page .record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-body .project-detail-page .record-actions .compact-action {
  min-width: 0;
  height: 38px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .project-audit-page {
  max-width: none;
  padding: 18px;
}

.admin-body .project-audit-page .record-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-body .project-audit-page .record-title-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.admin-body .project-audit-page .record-title-block .avatar {
  width: 48px;
  height: 48px;
  font-size: 14px;
  box-shadow: none;
}

.admin-body .project-audit-page .record-title-block h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
}

.admin-body .project-audit-page .record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-body .project-audit-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-body .project-audit-note {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe6da;
  border-radius: 12px;
  background: #f1faf6;
  color: #31564a;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.45;
}

.admin-body .project-audit-note strong {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
}

.admin-body .project-audit-table-wrap {
  margin-top: 14px;
  border: 1px solid #dfeae5;
  border-radius: 14px;
  background: #fff;
}

.admin-body .project-audit-table {
  min-width: 1080px;
}

.admin-body .project-audit-table th {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-body .project-audit-table td {
  vertical-align: top;
  font-size: 12px;
  font-weight: 650;
}

.admin-body .project-audit-table .project-audit-document-cell {
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-body .project-audit-table .project-audit-document-cell:hover {
  background: #eaf7f1;
  color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}

.admin-body .project-audit-table .project-audit-document-cell:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
  background: #eaf7f1;
}

.admin-body .project-audit-table td:nth-child(4),
.admin-body .project-audit-table td:nth-child(5),
.admin-body .project-audit-table td:nth-child(6),
.admin-body .project-audit-table td:nth-child(7),
.admin-body .project-audit-table td:nth-child(8) {
  text-align: right;
  white-space: nowrap;
}

.admin-body .project-audit-table tr.has-issue {
  background: #fffdf7;
}

.admin-body .project-audit-table .muted-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.admin-body .project-audit-table .amount-warning {
  color: #a96800;
  font-weight: 800;
}

.admin-body .project-wht-page {
  max-width: none;
  padding: 18px;
}

.admin-body .project-wht-page .record-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-body .project-wht-page .record-title-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.admin-body .project-wht-page .record-title-block .avatar {
  width: 48px;
  height: 48px;
  font-size: 14px;
  box-shadow: none;
}

.admin-body .project-wht-page .record-title-block h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
}

.admin-body .project-wht-page .record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-body .project-wht-page .project-wht-print-action {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.admin-body .project-wht-page .project-wht-print-action:hover {
  border-color: #075c3f;
  background: #075c3f;
  color: #fff;
}

.admin-body .project-wht-stats {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-body .project-wht-note {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe6da;
  border-radius: 8px;
  background: #f1faf6;
  color: #31564a;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.45;
}

.admin-body .project-wht-note strong {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
}

.admin-body .project-wht-table-wrap {
  margin-top: 14px;
  border: 1px solid #dfeae5;
  border-radius: 8px;
  background: #fff;
}

.admin-body .project-wht-table {
  min-width: 1120px;
}

.admin-body .project-wht-table th {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-body .project-wht-table td {
  vertical-align: top;
  font-size: 12px;
  font-weight: 650;
}

.admin-body .project-wht-table td:nth-child(5),
.admin-body .project-wht-table td:nth-child(6),
.admin-body .project-wht-table td:nth-child(7),
.admin-body .project-wht-table td:nth-child(8),
.admin-body .project-wht-table tfoot th:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}

.admin-body .project-wht-table .muted-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.admin-body .project-wht-table .project-wht-document-cell {
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-body .project-wht-table .project-wht-document-cell:hover {
  background: #eaf7f1;
  color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}

.admin-body .project-wht-table .project-wht-document-cell:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
  background: #eaf7f1;
}

.admin-body .project-wht-table .project-wht-amount,
.admin-body .project-wht-table tfoot th:nth-child(7) {
  color: #a96800;
  font-weight: 850;
}

.admin-body .project-wht-table tfoot th {
  border-top: 2px solid #b8d3c5;
  background: #f1f8f4;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.project-wht-print-table {
  table-layout: fixed;
  font-size: 7px;
}

.project-wht-print-table th,
.project-wht-print-table td {
  padding: 5px 4px;
  overflow-wrap: anywhere;
}

.project-wht-print-table th:nth-child(n + 6),
.project-wht-print-table td:nth-child(n + 6) {
  text-align: right;
}

.project-wht-print-table tfoot th {
  border-top: 2px solid #99b8a8;
  background: #f1f8f4;
  font-weight: 800;
}

.admin-body .document-link-notice {
  margin: 0 0 18px;
  border: 1px solid #f0cf8d;
  border-radius: 8px;
  background: #fff8e8;
  color: #74510d;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.admin-body .document-link-notice.is-muted {
  border-color: #dce5e1;
  background: #f5f8f7;
  color: var(--muted);
}

.admin-body .backup-retention-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #efc3bf;
  border-left: 4px solid #c73b31;
  border-radius: 8px;
  background: #fff5f4;
  padding: 14px 16px;
}

.admin-body .backup-retention-alert > div {
  display: grid;
  gap: 2px;
}

.admin-body .backup-retention-alert strong {
  color: #8f2720;
  font-size: 14px;
  font-weight: 800;
}

.admin-body .backup-retention-alert span {
  color: #705954;
  font-size: 12px;
}

.admin-body .backup-row.is-expired {
  border-color: #efc3bf;
  background: #fffafa;
}

@media (max-width: 720px) {
  .admin-body .project-wht-page .record-detail-head {
    grid-template-columns: 1fr;
  }

  .admin-body .project-wht-page .record-actions {
    justify-content: stretch;
  }

  .admin-body .project-wht-page .record-actions .compact-action {
    flex: 1 1 180px;
  }

  .admin-body .project-wht-stats {
    grid-template-columns: 1fr;
  }

  .admin-body .project-wht-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-body .backup-retention-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .backup-retention-alert .danger-action {
    width: 100%;
  }
}

.admin-body .dashboard-rank.warn {
  background: #fff5dd;
  color: #a96800;
  font-size: 10px;
}

.admin-body .dashboard-rank.danger {
  background: #fff0ef;
  color: #c2342b;
  font-size: 10px;
}

.admin-body .project-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.admin-body .project-detail-grid > div {
  min-width: 0;
  min-height: 66px;
  border: 1px solid #e2ebe6;
  border-radius: 12px;
  background: #fbfdfc;
  padding: 11px 13px;
}

.admin-body .project-detail-grid > div.full {
  grid-column: span 2;
}

.admin-body .project-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.admin-body .project-detail-page .detail-grid strong {
  display: block;
  margin-top: 5px;
  color: #13231d;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.admin-body .project-dashboard-block .eyebrow,
.admin-body .project-document-panel .eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.admin-body .project-dashboard-block .stat-label,
.admin-body .project-dashboard-block .stat-note,
.admin-body .project-linked-head span,
.admin-body .project-linked-row small {
  font-weight: 500;
}

.admin-body .project-dashboard-block .report-stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.admin-body .project-dashboard-block .report-metric {
  min-height: 94px;
  border-radius: 12px;
  padding: 15px 16px 16px;
  box-shadow: 0 12px 26px rgba(25, 38, 32, 0.045);
}

.admin-body .project-dashboard-block .report-metric .stat-label {
  font-size: 11px;
}

.admin-body .project-dashboard-block .report-metric .stat-value.money-stat {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-body .project-dashboard-block .report-metric .stat-note {
  margin-top: 7px;
  font-size: 10px;
}

.admin-body .project-dashboard-block .report-chart-panel,
.admin-body .project-dashboard-block .report-panel {
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(25, 38, 32, 0.045);
}

.admin-body .project-dashboard-block .report-chart-panel .dashboard-panel-head h2,
.admin-body .project-dashboard-block .report-panel .dashboard-panel-head h2,
.admin-body .project-document-panel .dashboard-panel-head h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-body .project-dashboard-block .report-trend-panel {
  min-height: 292px;
}

.admin-body .project-dashboard-block .report-donut {
  width: 148px;
}

.admin-body .project-dashboard-block .report-donut::before {
  inset: 18px;
}

.admin-body .project-dashboard-block .report-donut span {
  font-size: 28px;
  font-weight: 800;
}

.admin-body .project-dashboard-block .report-donut small,
.admin-body .project-dashboard-block .report-donut-facts span,
.admin-body .project-dashboard-block .report-table th,
.admin-body .project-dashboard-block .report-table td:first-child span {
  font-weight: 500;
}

.admin-body .project-dashboard-block .report-donut-facts strong,
.admin-body .project-dashboard-block .report-table td,
.admin-body .project-dashboard-block .report-table td:first-child strong,
.admin-body .project-dashboard-block .report-bar-label strong,
.admin-body .project-dashboard-block .report-bar-row b {
  font-weight: 700;
}

.admin-body .project-linked-section:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

.admin-body .project-linked-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-body .project-linked-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-body .project-linked-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.admin-body .project-linked-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-body .project-linked-list {
  display: grid;
  gap: 8px;
}

.admin-body .project-linked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(120px, auto);
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-body .project-linked-row:hover,
.admin-body .project-linked-row:focus-visible {
  border-color: rgba(0, 108, 73, 0.28);
  box-shadow: 0 12px 28px rgba(22, 45, 34, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.admin-body .project-linked-row > div {
  min-width: 0;
}

.admin-body .project-linked-row strong,
.admin-body .project-linked-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .project-linked-row strong {
  margin: 2px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-body .project-linked-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.admin-body .project-linked-row b {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.admin-body .project-linked-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
}

.admin-body .page-head h1 {
  font-weight: 700;
}

.admin-body .page-subtitle {
  font-weight: 400;
}

.admin-body .dashboard-panel-head h2,
.admin-body .dashboard-action-card strong,
.admin-body .dashboard-list-row strong,
.admin-body .stat-value,
.admin-body .stat-value.money-stat {
  font-weight: 700;
}

.admin-body .dashboard-action-card span,
.admin-body .stat-label,
.admin-body .record-count,
.admin-body .tab,
.admin-body .report-breadcrumb,
.admin-body .report-period-control,
.admin-body .report-table th,
.admin-body .report-bar-legend {
  font-weight: 600;
}

.admin-body .dashboard-action-card small,
.admin-body .dashboard-list-row small,
.admin-body .stat-note,
.admin-body .report-table td:first-child span,
.admin-body .report-bar-label span,
.admin-body .report-bar-visual small {
  font-weight: 400;
}

.admin-body .report-chart-panel,
.admin-body .report-panel,
.admin-body .report-metric,
.admin-body .dashboard-action-card,
.admin-body .dashboard-list-row,
.admin-body .project-linked-row {
  border-color: #e2ebe6;
}

.admin-body .report-chart-panel,
.admin-body .report-panel,
.admin-body .report-metric {
  box-shadow: 0 12px 28px rgba(25, 38, 32, 0.045);
}

.admin-body .product-list-card {
  min-height: 52px;
  grid-template-columns: minmax(330px, 1.35fr) minmax(220px, 0.85fr) minmax(82px, 0.28fr) minmax(118px, 0.34fr);
  gap: 12px;
  border-radius: 13px;
  padding: 8px 12px;
}

.admin-body .product-list-card.is-selecting {
  grid-template-columns: 28px minmax(330px, 1.35fr) minmax(220px, 0.85fr) minmax(82px, 0.28fr) minmax(118px, 0.34fr);
}

.admin-body .product-list-card.is-selecting:hover {
  transform: none;
}

.admin-body .product-list-card.product-row {
  border: 1px solid var(--line);
  border-radius: 13px;
}

.admin-body .product-list-card.product-row + .product-list-card.product-row {
  border-top: 1px solid var(--line);
}

.admin-body .product-list-card.product-row:hover,
.admin-body .product-list-card.product-row:focus-visible {
  background: #fff;
}

.admin-body .product-list-card .store-card-main {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
}

.admin-body .product-row-main {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
}

.admin-body .product-row-title h2 {
  font-size: 12px;
  font-weight: 650;
}

.admin-body .product-row-title span {
  font-size: 9px;
  font-weight: 650;
}

.admin-body .product-row-value {
  font-size: 11.5px;
  font-weight: 600;
}

.admin-body .product-row-price {
  font-size: 12px;
  font-weight: 750;
}

.admin-body .product-list-card .avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 11px;
}

.admin-body .product-list-card .project-code {
  display: none;
}

.admin-body .product-list-card .store-card-main h2 {
  margin: 2px 0 3px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .product-list-card .store-card-main p {
  display: none;
  font-size: 11px;
}

.admin-body .product-list-card .store-contact-row {
  margin-top: 7px;
}

.admin-body .product-list-card .store-contact-row span {
  font-size: 11px;
}

.admin-body .product-list-card .store-contact-row small {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
}

.admin-body .product-list-card .store-card-meta {
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 8px;
}

.admin-body .product-list-card .store-card-meta strong {
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .store-card-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.admin-body .project-code {
  display: inline-block;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-body .store-card-main h2 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-body .store-card-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .store-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: var(--ink);
}

.admin-body .store-contact-row span {
  font-size: 12px;
  font-weight: 700;
}

.admin-body .store-contact-row small {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .store-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 10px;
  align-items: center;
}

.admin-body .store-card-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.admin-body .store-card-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-body .payment-voucher-row .store-card-meta {
  grid-template-columns: repeat(4, minmax(82px, 1fr));
}

.admin-body .compare-panel-top {
  align-items: flex-start;
}

.admin-body .compare-hint {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.admin-body .compare-search-box {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfc;
  padding: 8px 9px 8px 16px;
}

.admin-body .compare-search-box .search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.admin-body .compare-search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.admin-body .compare-search-box input::placeholder {
  color: #9aa39f;
}

.admin-body .compare-search-box:focus-within {
  border-color: rgba(18, 107, 73, 0.32);
  box-shadow: 0 0 0 4px rgba(18, 107, 73, 0.08);
  background: #fff;
}

.admin-body .compare-search-box button {
  min-width: 86px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .compare-search-box button:hover {
  background: var(--green-strong);
}

.admin-body .compare-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-body .print-compare-action {
  min-height: 36px;
  height: 36px;
  padding: 0 15px;
  font-size: 12px;
}

.admin-body .print-compare-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.print-job-shell .pr-print-sheet,
.print-job-shell .print-compare-sheet {
  color: #111;
  font-size: 10px;
  line-height: 1.35;
}

.print-job-shell .payroll-print-sheet {
  width: 100%;
  font-size: 6px;
  line-height: 1.2;
}

.print-job-shell .payroll-print-title {
  align-items: center;
  margin-bottom: 7px;
}

.print-job-shell .payroll-print-title h2 {
  font-size: 16px;
}

.print-job-shell .payroll-print-title .pr-print-number {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  min-width: 150px;
}

.print-job-shell .payroll-print-title .pr-print-number span,
.print-job-shell .payroll-print-title .pr-print-number strong {
  margin: 0;
  text-align: left;
}

.print-job-shell .payroll-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.print-job-shell .payroll-print-table th,
.print-job-shell .payroll-print-table td {
  overflow-wrap: anywhere;
  border: 0.35px solid #9aa8a1;
  padding: 2.5px 2px;
  color: #111;
  font-size: 5.3px;
  vertical-align: middle;
}

.print-job-shell .payroll-print-table th {
  background: #eef3f0;
  font-weight: 800;
  text-align: center;
}

.print-job-shell .payroll-print-table th:first-child,
.print-job-shell .payroll-print-table td:first-child {
  width: 2.3%;
  text-align: center;
}

.print-job-shell .payroll-print-table th:nth-child(3),
.print-job-shell .payroll-print-table td:nth-child(3),
.print-job-shell .payroll-print-table th:nth-child(4),
.print-job-shell .payroll-print-table td:nth-child(4) {
  width: 5.6%;
}

.print-job-shell .payroll-print-table th:nth-child(6),
.print-job-shell .payroll-print-table td:nth-child(6),
.print-job-shell .payroll-print-table th:nth-child(22),
.print-job-shell .payroll-print-table td:nth-child(22) {
  width: 7.2%;
}

.print-job-shell .payroll-print-table td:nth-child(n+9):nth-child(-n+21),
.print-job-shell .payroll-print-table tfoot th {
  text-align: right;
}

.print-job-shell .payroll-print-income {
  background: #ddf7f3 !important;
  font-weight: 800;
}

.print-job-shell .payroll-print-deduction {
  background: #fbe6e4 !important;
  font-weight: 800;
}

.print-job-shell .payroll-print-net {
  background: #fff1b8 !important;
  font-weight: 900;
}

.print-job-shell .payroll-print-signatures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.print-job-shell .payroll-print-signatures div {
  display: grid;
  gap: 14px;
  text-align: center;
}

.print-job-shell .payroll-print-signatures span {
  color: #52645a;
  font-size: 7px;
}

.print-job-shell .payroll-print-signatures strong {
  font-size: 7px;
  font-weight: 500;
}

.print-job-shell .pr-print-company {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 2px solid #0a704c;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.print-job-shell .pr-print-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #061b13;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex: 0 0 46px;
}

.print-job-shell .pr-print-company h1,
.print-job-shell .pr-print-company p,
.print-job-shell .pr-print-title h2,
.print-job-shell .pr-print-title p {
  margin: 0;
}

.print-job-shell .pr-print-company h1 {
  font-size: 17px;
  line-height: 1.2;
}

.print-job-shell .pr-print-company p {
  margin-top: 2px;
  color: #444;
  font-size: 8px;
}

.print-job-shell .pr-print-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.print-job-shell .pr-print-title p,
.print-job-shell .print-sheet-head p {
  color: #0a704c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-job-shell .pr-print-title h2,
.print-job-shell .print-sheet-head h1 {
  color: #111;
  font-size: 20px;
  line-height: 1.15;
}

.print-job-shell .pr-print-number {
  min-width: 120px;
  border: 1px solid #d4dfd8;
  padding: 7px 9px;
  text-align: right;
}

.print-job-shell .pr-print-number span,
.print-job-shell .pr-print-info span,
.print-job-shell .po-print-meta span,
.print-job-shell .po-print-vendor span,
.print-job-shell .po-print-note span {
  display: block;
  color: #52645a;
  font-size: 8px;
  font-weight: 700;
}

.print-job-shell .pr-print-number strong,
.print-job-shell .pr-print-info strong,
.print-job-shell .po-print-meta strong,
.print-job-shell .po-print-vendor strong,
.print-job-shell .po-print-note strong {
  display: block;
  margin-top: 2px;
  color: #111;
  font-size: 10px;
  line-height: 1.25;
}

.print-job-shell .pr-print-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d4dfd8;
  border-bottom: 0;
  margin-bottom: 10px;
}

.print-job-shell .pr-print-info div,
.print-job-shell .po-print-meta div {
  min-height: 34px;
  border-right: 1px solid #d4dfd8;
  border-bottom: 1px solid #d4dfd8;
  padding: 6px 8px;
}

.print-job-shell .pr-print-info div:nth-child(2n),
.print-job-shell .po-print-meta div:nth-child(4n) {
  border-right: 0;
}

.print-job-shell .po-print-vendor,
.print-job-shell .po-print-note {
  border-left: 3px solid #0a704c;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #f8faf9;
}

.print-job-shell .po-print-vendor p,
.print-job-shell .po-print-vendor h3 {
  margin: 0;
}

.print-job-shell .po-print-vendor p {
  color: #0a704c;
  font-size: 8px;
  font-weight: 800;
}

.print-job-shell .po-print-vendor h3 {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.print-job-shell .po-print-vendor span + span {
  margin-top: 2px;
}

.print-job-shell .po-print-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d4dfd8;
  border-bottom: 0;
  margin-bottom: 8px;
}

.print-job-shell .pr-print-table,
.print-job-shell .print-compare-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.print-job-shell .pr-print-table thead,
.print-job-shell .print-compare-table thead {
  display: table-header-group;
}

.print-job-shell .pr-print-table tr,
.print-job-shell .print-compare-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-job-shell .pr-print-table th,
.print-job-shell .pr-print-table td,
.print-job-shell .print-compare-table th,
.print-job-shell .print-compare-table td {
  border: 1px solid #d4dfd8;
  padding: 5px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.print-job-shell .pr-print-table th {
  background: #0a704c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.print-job-shell .pr-print-table td {
  color: #111;
  font-size: 9px;
}

.print-job-shell .pr-print-table td:first-child,
.print-job-shell .pr-print-table th:first-child {
  width: 24px;
  text-align: center;
}

.print-job-shell .pr-print-table td:nth-child(2),
.print-job-shell .pr-print-table th:nth-child(2) {
  width: 28%;
}

.print-job-shell .pr-print-table td:nth-child(3),
.print-job-shell .pr-print-table th:nth-child(3),
.print-job-shell .pr-print-table td:nth-child(4),
.print-job-shell .pr-print-table th:nth-child(4) {
  width: 8%;
}

.print-job-shell .pr-print-table td:nth-child(5),
.print-job-shell .pr-print-table th:nth-child(5) {
  width: 18%;
}

.print-job-shell .pr-print-table td:nth-child(6),
.print-job-shell .pr-print-table th:nth-child(6),
.print-job-shell .pr-print-table td:nth-child(7),
.print-job-shell .pr-print-table th:nth-child(7),
.print-job-shell .pr-print-table td:nth-child(8),
.print-job-shell .pr-print-table th:nth-child(8) {
  width: 10%;
}

.print-job-shell .pr-print-table td:nth-child(3),
.print-job-shell .pr-print-table td:nth-child(6),
.print-job-shell .pr-print-table td:nth-child(7),
.print-job-shell .pr-print-table td:nth-child(8) {
  text-align: right;
}

.print-job-shell .pr-print-table td strong,
.print-job-shell .pr-print-table td span,
.print-job-shell .print-compare-table td strong,
.print-job-shell .print-compare-table td span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.print-job-shell .pr-print-table td span {
  margin-top: 2px;
  color: #666;
  font-size: 7px;
}

.print-job-shell .pr-print-table .print-item-note {
  color: #0a704c;
  font-weight: 700;
  line-height: 1.35;
}

.print-job-shell .purchase-print-table {
  font-size: 8.1px;
  line-height: 1.22;
}

.print-job-shell .purchase-print-table th,
.print-job-shell .purchase-print-table td {
  padding: 4px;
}

.print-job-shell .purchase-print-table th {
  font-size: 7.5px;
  white-space: nowrap;
}

.print-job-shell .purchase-print-table td {
  font-size: 8.1px;
}

.print-job-shell .purchase-print-table td:nth-child(1),
.print-job-shell .purchase-print-table th:nth-child(1) {
  width: 4%;
  text-align: center;
}

.print-job-shell .purchase-print-table td:nth-child(2),
.print-job-shell .purchase-print-table th:nth-child(2) {
  width: 44%;
}

.print-job-shell .purchase-print-table td:nth-child(3),
.print-job-shell .purchase-print-table th:nth-child(3) {
  width: 8%;
  text-align: right;
}

.print-job-shell .purchase-print-table td:nth-child(4),
.print-job-shell .purchase-print-table th:nth-child(4) {
  width: 8%;
  text-align: center;
}

.print-job-shell .purchase-print-table td:nth-child(5),
.print-job-shell .purchase-print-table th:nth-child(5),
.print-job-shell .purchase-print-table td:nth-child(6),
.print-job-shell .purchase-print-table th:nth-child(6),
.print-job-shell .purchase-print-table td:nth-child(7),
.print-job-shell .purchase-print-table th:nth-child(7) {
  width: 12%;
  text-align: right;
}

.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(1),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(1) {
  width: 5%;
  text-align: center;
}

.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(2),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(2) {
  width: 43%;
}

.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(3),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(3),
.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(4),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(4) {
  width: 10%;
}

.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(4),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(4) {
  text-align: center;
}

.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(5),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(5),
.print-job-shell .sales-print-sheet .purchase-print-table td:nth-child(6),
.print-job-shell .sales-print-sheet .purchase-print-table th:nth-child(6) {
  width: 16%;
  text-align: right;
}

.print-job-shell .purchase-print-table td strong {
  font-size: 8.4px;
  line-height: 1.25;
}

.print-job-shell .purchase-print-table td span {
  margin-top: 1px;
  font-size: 7.1px;
  line-height: 1.22;
}

.print-job-shell .purchase-print-table .print-item-vendor {
  color: #0a704c;
  font-weight: 700;
}

.print-job-shell .pr-print-footer {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-top: 8px;
  min-height: 118px;
}

.print-job-shell .po-print-sheet .pr-print-footer {
  min-height: 112px;
}

.print-job-shell .pr-print-summary {
  width: 190px;
  margin: 8px 0 0 auto;
  border: 1px solid #d4dfd8;
  border-radius: 0;
  overflow: hidden;
}

.print-job-shell .pr-print-summary div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #d4dfd8;
  font-size: 8px;
}

.print-job-shell .pr-print-summary div:last-child {
  border-bottom: 0;
}

.print-job-shell .pr-print-summary span {
  color: #52645a;
}

.print-job-shell .pr-print-summary strong {
  color: #111;
  font-size: 9px;
  white-space: nowrap;
}

.print-job-shell .pr-print-summary .grand-total {
  background: #eef7f2;
  font-weight: 800;
}

.print-job-shell .pr-print-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-job-shell .pr-print-signatures div {
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.print-job-shell .pr-print-signatures div::before {
  content: "";
  display: block;
  width: 100%;
  border-top: 1px solid #333;
  margin-top: auto;
  margin-bottom: 6px;
}

.print-job-shell .pr-print-signatures span {
  align-self: center;
  color: #555;
  font-size: 9px;
}

.print-job-shell .po-payment-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.print-job-shell .print-sheet-head {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border-bottom: 2px solid #0a704c;
  padding-bottom: 10px;
}

.print-job-shell .print-sheet-head h1,
.print-job-shell .print-sheet-head p {
  margin: 0;
}

.print-job-shell .print-sheet-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #444;
  font-size: 10px;
}

.print-job-shell .print-compare-table th {
  background: #e8f3ed;
  color: #0a704c;
  font-size: 10px;
  font-weight: 800;
}

.print-job-shell .print-compare-table td {
  font-size: 9px;
}

.print-job-shell .print-compare-table td:first-child,
.print-job-shell .print-compare-table th:first-child {
  width: 18%;
}

.print-job-shell .print-compare-table td:nth-child(2),
.print-job-shell .print-compare-table th:nth-child(2) {
  width: 42%;
}

.print-job-shell .print-compare-table td:nth-child(3),
.print-job-shell .print-compare-table th:nth-child(3) {
  width: 20%;
}

.print-job-shell .print-compare-table td:nth-child(4),
.print-job-shell .print-compare-table th:nth-child(4) {
  width: 8%;
  text-align: center;
}

.print-job-shell .print-compare-table td:nth-child(5),
.print-job-shell .print-compare-table th:nth-child(5) {
  width: 12%;
  text-align: right;
}

.print-job-shell .print-compare-table td span {
  margin-top: 3px;
  color: #666;
  font-size: 9px;
}

.print-job-shell .print-compare-table .print-material-type {
  width: max-content;
  display: inline-block;
  margin: 0 0 4px;
  border-radius: 5px;
  background: #e8f0ff;
  color: #2563eb;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 800;
}

.print-job-shell .print-price {
  color: #0a704c;
  font-weight: 800;
  text-align: right !important;
  white-space: nowrap;
}

.print-job-shell .print-note {
  margin-top: 10px;
  color: #555;
  font-size: 9px;
}

.print-compare-sheet {
  display: none;
}

.pr-print-sheet {
  display: none;
}

.po-payment-print-sheet .po-payment-table th:nth-child(1),
.po-payment-print-sheet .po-payment-table td:nth-child(1) {
  width: 4%;
  text-align: center;
}

.po-payment-print-sheet .po-payment-table th:nth-child(2),
.po-payment-print-sheet .po-payment-table td:nth-child(2) {
  width: 34%;
}

.po-payment-print-sheet .po-payment-table th:nth-child(3),
.po-payment-print-sheet .po-payment-table td:nth-child(3) {
  width: 14%;
}

.po-payment-print-sheet .po-payment-table th:nth-child(4),
.po-payment-print-sheet .po-payment-table td:nth-child(4),
.po-payment-print-sheet .po-payment-table th:nth-child(5),
.po-payment-print-sheet .po-payment-table td:nth-child(5),
.po-payment-print-sheet .po-payment-table th:nth-child(6),
.po-payment-print-sheet .po-payment-table td:nth-child(6) {
  width: 12%;
  text-align: right;
}

.po-payment-print-sheet .po-payment-table th:nth-child(7),
.po-payment-print-sheet .po-payment-table td:nth-child(7) {
  width: 14%;
}

.po-payment-print-sheet .po-payment-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.withholding-tax-print-sheet {
  color: #111;
  max-width: 190mm;
  padding: 0;
  font-size: 10px;
}

.withholding-party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.withholding-party-grid > div {
  display: grid;
  gap: 4px;
  align-content: start;
}

.withholding-tax-table td strong,
.withholding-tax-table td span {
  display: block;
}

.withholding-tax-table td span {
  margin-top: 3px;
  color: #52645a;
  font-size: 8px;
}

.withholding-tax-summary {
  min-width: 280px;
}

.cash-voucher-print-sheet {
  color: #111;
  max-width: 190mm;
  padding: 0;
  font-size: 10px;
}

.cash-voucher-company {
  margin-bottom: 12px;
}

.cash-voucher-title-row {
  display: grid;
  grid-template-columns: 1fr 52mm;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 10px;
}

.cash-voucher-title-row p,
.cash-voucher-title-row h2,
.cash-voucher-title-row span,
.cash-voucher-party p,
.cash-voucher-party h3,
.cash-voucher-party span,
.cash-voucher-payment-card p,
.cash-voucher-amount-card span,
.cash-voucher-amount-card strong,
.cash-voucher-amount-card em {
  margin: 0;
}

.cash-voucher-title-row p {
  color: #0a704c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cash-voucher-title-row h2 {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.1;
}

.cash-voucher-title-row > div:first-child > span {
  display: block;
  margin-top: 5px;
  color: #52645a;
  font-size: 9px;
}

.cash-voucher-doc-card {
  display: grid;
  border: 1px solid #d4dfd8;
  background: #f7fbf8;
}

.cash-voucher-doc-card div {
  display: grid;
  grid-template-columns: 18mm 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid #d4dfd8;
}

.cash-voucher-doc-card div:last-child {
  border-bottom: 0;
}

.cash-voucher-doc-card span,
.cash-voucher-party-meta span {
  color: #52645a;
  font-size: 8px;
  font-weight: 800;
}

.cash-voucher-doc-card strong,
.cash-voucher-party-meta strong {
  font-size: 10px;
}

.cash-voucher-party {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.cash-voucher-party-main,
.cash-voucher-party-meta {
  border: 1px solid #d4dfd8;
  background: #fff;
}

.cash-voucher-party-main {
  border-left: 3px solid #0a704c;
  padding: 8px 10px;
}

.cash-voucher-party-main p {
  color: #0a704c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cash-voucher-party-main h3 {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.2;
}

.cash-voucher-party-main span {
  display: block;
  margin-top: 5px;
  color: #444;
  font-size: 9px;
  line-height: 1.35;
}

.cash-voucher-party-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.cash-voucher-party-meta div {
  min-height: 34px;
  padding: 6px 8px;
  border-right: 1px solid #d4dfd8;
  border-bottom: 1px solid #d4dfd8;
}

.cash-voucher-party-meta div:nth-child(2n) {
  border-right: 0;
}

.cash-voucher-party-meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cash-voucher-party-meta span,
.cash-voucher-party-meta strong {
  display: block;
}

.cash-voucher-party-meta strong {
  margin-top: 2px;
}

.cash-voucher-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.cash-voucher-table th,
.cash-voucher-table td {
  border: 1px solid #d4dfd8;
  padding: 6px 7px;
}

.cash-voucher-table th {
  background: #0a704c;
  color: #fff;
  font-size: 9px;
}

.cash-voucher-table td {
  vertical-align: top;
}

.cash-voucher-table th:first-child,
.cash-voucher-table td:first-child {
  width: 28px;
  text-align: center;
}

.cash-voucher-table th:last-child,
.cash-voucher-table td:last-child {
  width: 42mm;
  text-align: right;
}

.cash-voucher-table tbody td {
  min-height: 9mm;
}

.cash-voucher-table tfoot td {
  background: #f3f8f5;
  font-weight: 800;
}

.cash-voucher-bottom {
  display: grid;
  grid-template-columns: 1fr 54mm;
  gap: 10px;
  margin-top: 10px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.cash-voucher-payment-card,
.cash-voucher-amount-card {
  border: 1px solid #d4dfd8;
  background: #fff;
  padding: 8px 10px;
}

.cash-voucher-payment-card p {
  color: #0a704c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cash-voucher-payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 6px;
}

.cash-voucher-payment-option {
  display: grid;
  gap: 5px;
}

.cash-voucher-payment-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.cash-voucher-payment-options i {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #0a704c;
  border-radius: 3px;
  color: #0a704c;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.cash-voucher-bank-lines {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr 0.85fr;
  gap: 8px;
  margin: 0 0 0 20px;
  border-left: 2px solid #d4dfd8;
  padding-left: 8px;
}

.cash-voucher-bank-lines div {
  display: grid;
  gap: 3px;
}

.cash-voucher-bank-lines span {
  color: #52645a;
  font-size: 8px;
  font-weight: 700;
}

.cash-voucher-bank-lines b {
  display: block;
  min-height: 14px;
  border-bottom: 1px dotted #999;
}

.cash-voucher-amount-card {
  display: grid;
  align-content: center;
  background: #eef7f2;
}

.cash-voucher-amount-card span {
  color: #0a704c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cash-voucher-amount-card strong {
  margin-top: 4px;
  color: #0a704c;
  font-size: 16px;
  line-height: 1.2;
}

.cash-voucher-amount-card em {
  margin-top: 4px;
  color: #52645a;
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
}

.cash-voucher-tax-summary {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  border-top: 1px solid #cfe0d6;
  padding-top: 6px;
}

.cash-voucher-tax-summary div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.cash-voucher-tax-summary span {
  color: #52645a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.cash-voucher-tax-summary b,
.cash-voucher-tax-summary strong {
  color: #111;
  font-size: 8px;
}

.cash-voucher-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.cash-voucher-signatures div {
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cash-voucher-signatures span,
.cash-voucher-signatures strong {
  display: block;
}

.cash-voucher-signatures span {
  width: 100%;
  border-top: 1px solid #333;
  padding-top: 6px;
  text-align: center;
  color: #555;
  font-size: 9px;
}

.cash-voucher-signatures strong {
  margin-top: 4px;
  color: #666;
  font-size: 8px;
  font-weight: 400;
}

.admin-body .compare-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(18, 107, 73, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 246, 240, 0.96), rgba(255, 255, 255, 0.98));
  padding: 16px 18px;
}

.admin-body .compare-summary span,
.admin-body .compare-store span,
.admin-body .compare-unit span,
.admin-body .compare-price span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.admin-body .compare-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.admin-body .compare-summary p,
.admin-body .compare-store p,
.admin-body .compare-price p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-body .price-compare-list {
  display: grid;
  gap: 8px;
}

.admin-body .price-compare-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(240px, 1.25fr) minmax(150px, 0.75fr) minmax(90px, 0.38fr) minmax(118px, 0.48fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-body .price-compare-card:hover,
.admin-body .price-compare-card:focus-visible {
  border-color: rgba(18, 107, 73, 0.24);
  box-shadow: 0 16px 34px rgba(24, 42, 34, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.admin-body .compare-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.admin-body .compare-product {
  min-width: 0;
}

.admin-body .compare-product h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .compare-product p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-body .compare-store,
.admin-body .compare-unit,
.admin-body .compare-price {
  min-width: 0;
}

.admin-body .compare-store strong,
.admin-body .compare-unit strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .compare-price strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-body .compare-price.muted strong {
  color: var(--muted);
  font-size: 13px;
}

.admin-body .table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-body .data-table,
.admin-body .store-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  background: #fff;
}

.admin-body .data-table th,
.admin-body .data-table td {
  border-color: var(--line);
  padding: 14px;
}

.admin-body .data-table th {
  color: #89928d;
  background: #f8faf9;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.admin-body .data-table tbody tr:hover td {
  background: #fbfcfb;
}

.admin-body .identity-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-body .identity-cell > div {
  min-width: 0;
}

.admin-body .store-table th:nth-child(1),
.admin-body .store-table td:nth-child(1) {
  width: 27%;
}

.admin-body .store-table th:nth-child(2),
.admin-body .store-table td:nth-child(2) {
  width: 14%;
}

.admin-body .store-table th:nth-child(3),
.admin-body .store-table td:nth-child(3) {
  width: 16%;
}

.admin-body .store-table th:nth-child(4),
.admin-body .store-table td:nth-child(4) {
  width: 12%;
}

.admin-body .store-table th:nth-child(5),
.admin-body .store-table td:nth-child(5) {
  width: 10%;
}

.admin-body .store-table th:nth-child(6),
.admin-body .store-table td:nth-child(6) {
  width: 10%;
}

.admin-body .store-table th:nth-child(7),
.admin-body .store-table td:nth-child(7) {
  width: 11%;
}

.admin-body .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: linear-gradient(145deg, var(--gold), var(--green));
  font-size: 14px;
  font-weight: 700;
}

.admin-body .identity-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-body .identity-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .pill {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 700;
}

.admin-body .pill.green {
  background: #e4f4ed;
  color: #0a704c;
}

.admin-body .pill.gold {
  background: #fff4d6;
  color: #8a6800;
}

.admin-body .pill.blue {
  background: #e4f0fb;
  color: #1f5f91;
}

.admin-body .pill.red {
  background: #feeceb;
  color: #b42318;
}

.admin-body .pill.gray {
  background: #eef1ef;
  color: #65716a;
}

.admin-body .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 6px 11px;
  background: #e4f4ed;
  color: #0a704c;
  font-size: 10px;
  font-weight: 700;
}

.admin-body .status-pill.green {
  background: #e4f4ed;
  color: #0a704c;
}

.admin-body .status-pill.gold {
  background: #fff2c2;
  color: #8a6800;
}

.admin-body .status-pill.blue {
  background: #e4f0fb;
  color: #1f5f91;
}

.admin-body .status-pill.red {
  background: #feeceb;
  color: #b42318;
}

.admin-body .status-pill.gray {
  background: #eef1ef;
  color: #65716a;
}

.admin-body .link-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 13px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-body .link-button:hover {
  border-color: rgba(18, 107, 73, 0.24);
  background: var(--green-soft);
  color: var(--green);
}

.admin-body .small-action {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(18, 107, 73, 0.2);
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  flex: 0 0 38px;
}

.admin-body .small-action:hover {
  background: var(--green);
  color: #fff;
}

.admin-body .small-action.danger {
  border-color: rgba(204, 75, 75, 0.2);
  background: #fff4f4;
  color: #a52e2e;
}

.admin-body .small-action.danger:hover {
  background: var(--danger);
  color: #fff;
}

.admin-body .field span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea {
  min-height: 44px;
  border: 1px solid rgba(18, 107, 73, 0.14);
  border-radius: 14px;
  background: #fff;
  padding: 0 13px;
  font-size: 13px;
}

.admin-body .field textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

.admin-body .field input:focus,
.admin-body .field select:focus,
.admin-body .field textarea:focus {
  border-color: rgba(18, 107, 73, 0.32);
  box-shadow: 0 0 0 4px rgba(18, 107, 73, 0.08);
}

.admin-body .form-section,
.admin-body .contacts-panel,
.admin-body .detail-section-card,
.admin-body .contacts-page-head,
.admin-body .store-profile-head,
.admin-body .company-profile-head,
.admin-body .detail-item,
.admin-body .contact-card {
  border-color: var(--line);
  border-radius: 16px;
  background: #f8faf9;
}

.admin-body .detail-section-card {
  padding: 18px;
}

.admin-body .contact-card,
.admin-body .detail-item {
  background: #fff;
}

.admin-body .warehouse-control-bar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(25, 38, 32, 0.045);
}

.admin-body .warehouse-control-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-body .warehouse-control-copy strong,
.admin-body .warehouse-control-copy small {
  display: block;
}

.admin-body .warehouse-control-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.admin-body .warehouse-control-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-body .warehouse-status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #c49a26;
  box-shadow: 0 0 0 5px #fff5d8;
}

.admin-body .warehouse-selector {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr);
  align-items: center;
  gap: 9px;
}

.admin-body .warehouse-selector > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.admin-body .warehouse-selector select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f8;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  opacity: 1;
}

.admin-body .warehouse-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-body .warehouse-stats .report-metric {
  min-height: 116px;
}

.admin-body .warehouse-stats .stat-value.money-stat {
  font-size: 20px;
}

.admin-body .warehouse-workflow {
  margin-bottom: 18px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(25, 38, 32, 0.045);
}

.admin-body .warehouse-workflow-head,
.admin-body .warehouse-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-body .warehouse-workflow-head {
  margin-bottom: 16px;
}

.admin-body .warehouse-workflow-head h2,
.admin-body .warehouse-section-head h2 {
  margin: 0;
}

.admin-body .warehouse-workflow-head > span,
.admin-body .warehouse-section-head > span {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .warehouse-workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #e3e9e6;
  border-bottom: 1px solid #e3e9e6;
}

.admin-body .warehouse-workflow-step {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.admin-body .warehouse-workflow-step:not(:last-child) {
  border-right: 1px solid #e3e9e6;
}

.admin-body .warehouse-workflow-step b {
  color: #b68b1f;
  font-size: 11px;
  font-weight: 700;
}

.admin-body .warehouse-workflow-step span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.admin-body .warehouse-section-head {
  margin: 0 0 12px;
}

.admin-body .warehouse-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-body .warehouse-action {
  --warehouse-action-color: #126b49;
  min-height: 102px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 15px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(25, 38, 32, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-body .warehouse-action:hover,
.admin-body .warehouse-action:focus-visible {
  border-color: color-mix(in srgb, var(--warehouse-action-color) 45%, white);
  box-shadow: 0 14px 30px rgba(25, 38, 32, 0.09);
  outline: 0;
  transform: translateY(-1px);
}

.admin-body .warehouse-action-issue,
.admin-body .warehouse-action-adjust {
  --warehouse-action-color: #9a6a12;
}

.admin-body .warehouse-action-transfer,
.admin-body .warehouse-action-stock-card {
  --warehouse-action-color: #2f6f94;
}

.admin-body .warehouse-action-catalog,
.admin-body .warehouse-action-count {
  --warehouse-action-color: #5c6670;
}

.admin-body .warehouse-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warehouse-action-color) 10%, white);
  color: var(--warehouse-action-color);
}

.admin-body .warehouse-action-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--warehouse-icon) center / contain no-repeat;
  mask: var(--warehouse-icon) center / contain no-repeat;
}

.admin-body .warehouse-action-receive,
.admin-body .warehouse-action-return {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v13H4z'/%3E%3Cpath d='M8 7V4h8v3'/%3E%3Cpath d='M12 10v7'/%3E%3Cpath d='m9 14 3 3 3-3'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-catalog {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M6 7v13h12V7'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-issue {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v13H4z'/%3E%3Cpath d='M8 7V4h8v3'/%3E%3Cpath d='M12 17v-7'/%3E%3Cpath d='m9 13 3-3 3 3'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-transfer {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h13'/%3E%3Cpath d='m15 4 3 3-3 3'/%3E%3Cpath d='M19 17H6'/%3E%3Cpath d='m9 14-3 3 3 3'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-adjust {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 17h4'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='13' cy='17' r='2'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-count {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5H5a2 2 0 0 0-2 2v13h18V7a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='m8 13 2 2 5-5'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-stock-card {
  --warehouse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12h6'/%3E%3Cpath d='M9 16h4'/%3E%3C/svg%3E");
}

.admin-body .warehouse-action-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-body .warehouse-action-copy small {
  color: var(--warehouse-action-color);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-body .warehouse-action-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.admin-body .warehouse-action-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .warehouse-action-arrow {
  width: 16px;
  height: 16px;
  background: var(--warehouse-action-color);
  -webkit-mask: var(--icon-chevron-right) center / contain no-repeat;
  mask: var(--icon-chevron-right) center / contain no-repeat;
}

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

.admin-body .warehouse-panel {
  min-width: 0;
  border-radius: 8px;
}

.admin-body .warehouse-panel-wide {
  grid-column: 1 / -1;
}

.admin-body .warehouse-empty-state {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed #ccd8d2;
  border-radius: 8px;
  background: #f9fbfa;
  text-align: center;
}

.admin-body .warehouse-empty-state strong {
  font-size: 13px;
}

.admin-body .warehouse-empty-state small {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .warehouse-empty-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 3px;
  background: #8aa096;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5H5a2 2 0 0 0-2 2v13h18V7a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5H5a2 2 0 0 0-2 2v13h18V7a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-body .warehouse-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e7e4;
  border-radius: 8px;
}

.admin-body .warehouse-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
}

.admin-body .warehouse-table th,
.admin-body .warehouse-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e7ece9;
  text-align: left;
  font-size: 11px;
}

.admin-body .warehouse-table th {
  background: #f5f8f6;
  color: #6d7b75;
  font-weight: 650;
}

.admin-body .warehouse-table td[colspan] {
  height: 76px;
  color: var(--muted);
  text-align: center;
}

.admin-body .warehouse-prototype-notice {
  min-height: 62px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #eadcae;
  border-radius: 8px;
  background: #fffcf2;
  padding: 12px 15px;
}

.admin-body .warehouse-prototype-notice strong,
.admin-body .warehouse-prototype-notice small {
  display: block;
}

.admin-body .warehouse-prototype-notice strong {
  color: #6f5610;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .warehouse-prototype-notice small {
  margin-top: 2px;
  color: #867344;
  font-size: 11px;
}

.admin-body .warehouse-page-head {
  align-items: center;
}

.admin-body .warehouse-page-actions,
.admin-body .warehouse-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.admin-body .warehouse-catalog-stats,
.admin-body .warehouse-stock-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-body .warehouse-catalog-panel,
.admin-body .warehouse-form-panel,
.admin-body .warehouse-stock-card-panel {
  border-radius: 8px;
}

.admin-body .warehouse-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 200px) minmax(150px, 200px);
  gap: 12px;
  margin-bottom: 14px;
}

.admin-body .warehouse-search-field,
.admin-body .warehouse-compact-field {
  display: grid;
  gap: 6px;
}

.admin-body .warehouse-search-field span,
.admin-body .warehouse-compact-field span {
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}

.admin-body .warehouse-search-field input,
.admin-body .warehouse-compact-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  outline: 0;
}

.admin-body .warehouse-search-field input:focus,
.admin-body .warehouse-compact-field select:focus {
  border-color: rgba(18, 107, 73, 0.32);
  box-shadow: 0 0 0 4px rgba(18, 107, 73, 0.08);
}

.admin-body .warehouse-catalog-table,
.admin-body .warehouse-stock-table {
  min-width: 1040px;
}

.admin-body .warehouse-data-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  border-left: 3px solid #c49a26;
  background: #fffcf3;
  padding: 10px 12px;
}

.admin-body .warehouse-data-policy strong {
  flex: 0 0 auto;
  color: #745a11;
  font-size: 11px;
}

.admin-body .warehouse-data-policy span {
  color: #766b4c;
  font-size: 11px;
  line-height: 1.45;
}

.admin-body .warehouse-form-panel {
  padding: 20px;
}

.admin-body .warehouse-form {
  display: grid;
  gap: 18px;
}

.admin-body .warehouse-form-grid {
  gap: 14px;
}

.admin-body .warehouse-form-grid .field input,
.admin-body .warehouse-form-grid .field select,
.admin-body .warehouse-form-grid .field textarea {
  border-radius: 8px;
  background: #fff;
}

.admin-body .warehouse-form-actions {
  padding-top: 2px;
}

.admin-body .warehouse-document-heading,
.admin-body .warehouse-line-head,
.admin-body .warehouse-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-body .warehouse-document-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-body .warehouse-document-heading h2,
.admin-body .warehouse-line-head h2 {
  margin: 0;
}

.admin-body .warehouse-document-meta {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-body .warehouse-line-section {
  display: grid;
  gap: 12px;
}

.admin-body .warehouse-entry-table {
  min-width: 980px;
}

.admin-body .warehouse-entry-table th:nth-child(1),
.admin-body .warehouse-entry-table td:nth-child(1) {
  width: 42px;
  text-align: center;
}

.admin-body .warehouse-entry-table th:nth-child(2) {
  width: 28%;
}

.admin-body .warehouse-entry-table th:last-child,
.admin-body .warehouse-entry-table td:last-child {
  width: 50px;
  text-align: center;
}

.admin-body .warehouse-entry-table td {
  height: auto;
  padding: 8px;
}

.admin-body .warehouse-entry-table input,
.admin-body .warehouse-entry-table select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dce5e0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
  font-size: 11px;
  outline: 0;
}

.admin-body .warehouse-entry-table input:focus,
.admin-body .warehouse-entry-table select:focus {
  border-color: rgba(18, 107, 73, 0.38);
  box-shadow: 0 0 0 3px rgba(18, 107, 73, 0.07);
}

.admin-body .warehouse-remove-line {
  width: 34px;
  height: 34px;
  border: 1px solid #efd1cd;
  border-radius: 7px;
  background: #fff3f2;
  color: #b42318;
}

.admin-body .warehouse-remove-line::before {
  content: "";
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
  background: currentColor;
  -webkit-mask: var(--icon-x) center / contain no-repeat;
  mask: var(--icon-x) center / contain no-repeat;
}

.admin-body .warehouse-document-footer {
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-body .warehouse-document-footer > div:not(.form-actions) {
  min-width: 112px;
}

.admin-body .warehouse-document-footer span,
.admin-body .warehouse-document-footer strong {
  display: block;
}

.admin-body .warehouse-document-footer span {
  color: var(--muted);
  font-size: 10px;
}

.admin-body .warehouse-document-footer strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.admin-body .warehouse-document-footer .warehouse-form-actions {
  margin-left: auto;
}

.admin-body .warehouse-stock-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.55fr)) auto;
  align-items: end;
  gap: 12px;
}

.admin-body .warehouse-filter-action {
  min-width: 124px;
}

.admin-body .warehouse-filter-action::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.admin-body .warehouse-stock-summary {
  margin-top: 16px;
}

.admin-body .warehouse-stock-table th,
.admin-body .warehouse-stock-table td {
  white-space: nowrap;
}

.admin-body .finance-page-head {
  align-items: center;
}

.admin-body .finance-page-actions,
.admin-body .finance-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.admin-body .ghost-action[data-action="finance-open"]::before {
  -webkit-mask-image: var(--icon-back);
  mask-image: var(--icon-back);
}

.admin-body .finance-prototype-notice {
  min-height: 62px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #f5f9fd;
  padding: 12px 15px;
}

.admin-body .finance-prototype-notice strong,
.admin-body .finance-prototype-notice small {
  display: block;
}

.admin-body .finance-prototype-notice strong {
  color: #2f5878;
  font-size: 12px;
  font-weight: 700;
}

.admin-body .finance-prototype-notice small {
  margin-top: 2px;
  color: #667d90;
  font-size: 11px;
}

.admin-body .finance-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2f6f94;
  box-shadow: 0 0 0 5px #e6f1f7;
}

.admin-body .finance-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-body .finance-stats .report-metric {
  min-height: 116px;
}

.admin-body .finance-stats .stat-value.money-stat {
  font-size: 20px;
}

.admin-body .finance-balance-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 0.65fr));
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(25, 38, 32, 0.045);
}

.admin-body .finance-balance-copy,
.admin-body .finance-balance-item {
  min-width: 0;
  padding: 16px 18px;
}

.admin-body .finance-balance-copy h2 {
  margin: 0 0 4px;
}

.admin-body .finance-balance-copy > span {
  color: var(--muted);
  font-size: 10px;
}

.admin-body .finance-balance-item {
  display: grid;
  align-content: center;
  border-left: 1px solid #e4e9e6;
}

.admin-body .finance-balance-item span,
.admin-body .finance-balance-item strong,
.admin-body .finance-balance-item small {
  display: block;
}

.admin-body .finance-balance-item span,
.admin-body .finance-balance-item small {
  color: var(--muted);
  font-size: 10px;
}

.admin-body .finance-balance-item strong {
  margin: 5px 0;
  color: var(--ink);
  font-size: 18px;
}

.admin-body .finance-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-body .finance-section-head h2 {
  margin: 0;
}

.admin-body .finance-section-head > span {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .finance-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-body .finance-action {
  --finance-action-color: #126b49;
  --finance-icon: var(--icon-chevron-right);
  min-height: 102px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 15px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(25, 38, 32, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-body .finance-action:hover,
.admin-body .finance-action:focus-visible {
  border-color: color-mix(in srgb, var(--finance-action-color) 45%, white);
  box-shadow: 0 14px 30px rgba(25, 38, 32, 0.09);
  outline: 0;
  transform: translateY(-1px);
}

.admin-body .finance-action-payment,
.admin-body .finance-action-reconcile {
  --finance-action-color: #9a6a12;
}

.admin-body .finance-action-accounts,
.admin-body .finance-action-reports {
  --finance-action-color: #2f6f94;
}

.admin-body .finance-action-transfer {
  --finance-action-color: #6d5aa8;
}

.admin-body .finance-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--finance-action-color) 10%, white);
  color: var(--finance-action-color);
}

.admin-body .finance-action-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--finance-icon) center / contain no-repeat;
  mask: var(--finance-icon) center / contain no-repeat;
}

.admin-body .finance-action-receipt {
  --finance-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v14'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M5 14v6h14v-6'/%3E%3C/svg%3E");
}

.admin-body .finance-action-payment {
  --finance-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V7'/%3E%3Cpath d='m7 16 5 5 5-5'/%3E%3Cpath d='M5 10V4h14v6'/%3E%3C/svg%3E");
}

.admin-body .finance-action-accounts {
  --finance-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v12H3z'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E");
}

.admin-body .finance-action-transfer {
  --finance-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h13'/%3E%3Cpath d='m15 4 3 3-3 3'/%3E%3Cpath d='M19 17H6'/%3E%3Cpath d='m9 14-3 3 3 3'/%3E%3C/svg%3E");
}

.admin-body .finance-action-reconcile {
  --finance-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10'/%3E%3Cpath d='M4 12h7'/%3E%3Cpath d='M4 18h6'/%3E%3Cpath d='m14 16 2 2 4-5'/%3E%3C/svg%3E");
}

.admin-body .finance-action-reports {
  --finance-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 16v-5'/%3E%3Cpath d='M12 16V8'/%3E%3Cpath d='M16 16v-8'/%3E%3C/svg%3E");
}

.admin-body .finance-action-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-body .finance-action-copy small {
  color: var(--finance-action-color);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-body .finance-action-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.admin-body .finance-action-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-body .finance-action-arrow {
  width: 16px;
  height: 16px;
  background: var(--finance-action-color);
  -webkit-mask: var(--icon-chevron-right) center / contain no-repeat;
  mask: var(--icon-chevron-right) center / contain no-repeat;
}

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

.admin-body .finance-panel,
.admin-body .finance-form-panel,
.admin-body .finance-reconcile-panel,
.admin-body .finance-report-filter {
  min-width: 0;
  border-radius: 8px;
}

.admin-body .finance-panel-wide {
  grid-column: 1 / -1;
}

.admin-body .finance-empty-state {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed #ccd8d2;
  border-radius: 8px;
  background: #f9fbfa;
  text-align: center;
}

.admin-body .finance-empty-state strong {
  font-size: 13px;
}

.admin-body .finance-empty-state small,
.admin-body .finance-empty-row {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .finance-empty-icon {
  width: 28px;
  height: 28px;
  background: #82988e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v12H3z'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v12H3z'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-body .finance-empty-row {
  min-height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e9e6;
  border-radius: 8px;
  background: #fafcfb;
}

.admin-body .finance-form-panel {
  padding: 20px;
}

.admin-body .finance-document-heading,
.admin-body .finance-line-head,
.admin-body .finance-document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-body .finance-document-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-body .finance-document-heading h2,
.admin-body .finance-line-head h2 {
  margin: 0;
}

.admin-body .finance-form {
  display: grid;
  gap: 18px;
}

.admin-body .finance-form-grid {
  gap: 14px;
}

.admin-body .finance-form-grid .field input,
.admin-body .finance-form-grid .field select,
.admin-body .finance-form-grid .field textarea {
  border-radius: 8px;
  background: #fff;
}

.admin-body .finance-upload-field input[type="file"] {
  min-height: 48px;
  padding: 9px 10px;
}

.admin-body .finance-allocation-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-body .finance-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e7e4;
  border-radius: 8px;
}

.admin-body .finance-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.admin-body .finance-table th,
.admin-body .finance-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e7ece9;
  text-align: left;
  font-size: 11px;
}

.admin-body .finance-table th {
  background: #f5f8f6;
  color: #6d7b75;
  font-weight: 650;
}

.admin-body .finance-table td[colspan] {
  height: 78px;
  color: var(--muted);
  text-align: center;
}

.admin-body .finance-document-footer {
  align-items: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-body .finance-document-footer > div:not(.finance-form-actions) {
  min-width: 108px;
}

.admin-body .finance-document-footer span,
.admin-body .finance-document-footer strong {
  display: block;
}

.admin-body .finance-document-footer span {
  color: var(--muted);
  font-size: 10px;
}

.admin-body .finance-document-footer strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.admin-body .finance-document-footer .finance-form-actions {
  margin-left: auto;
}

.admin-body .finance-account-stats,
.admin-body .finance-reconcile-stats,
.admin-body .finance-report-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-body .finance-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 200px) minmax(150px, 200px);
  gap: 12px;
  margin-bottom: 14px;
}

.admin-body .finance-list-toolbar label {
  display: grid;
  gap: 6px;
}

.admin-body .finance-list-toolbar span {
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
}

.admin-body .finance-list-toolbar input,
.admin-body .finance-list-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
}

.admin-body .finance-account-table,
.admin-body .finance-reconcile-table {
  min-width: 980px;
}

.admin-body .finance-reconcile-filters,
.admin-body .finance-report-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(150px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.admin-body .finance-filter-action {
  min-width: 132px;
}

.admin-body .finance-filter-action::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.admin-body .finance-chart-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #ccd8d2;
  border-radius: 8px;
  background: repeating-linear-gradient(0deg, #fafcfb 0, #fafcfb 37px, #edf2ef 38px);
  text-align: center;
}

.admin-body .finance-chart-empty strong {
  font-size: 13px;
}

.admin-body .finance-chart-empty small {
  color: var(--muted);
  font-size: 11px;
}

.admin-body .payroll-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-body .payroll-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-body .payroll-panel,
.admin-body .payroll-form-panel,
.admin-body .payroll-period-controls,
.admin-body .payroll-sheet-panel {
  min-width: 0;
  border-radius: 8px;
}

.admin-body .payroll-toolbar {
  grid-template-columns: minmax(280px, 520px);
  margin-bottom: 14px;
}

.admin-body .payroll-employee-table {
  min-width: 1040px;
}

.admin-body .payroll-period-table,
.admin-body .payroll-summary-table {
  min-width: 860px;
}

.admin-body .table-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #086a49;
  padding: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}

.admin-body .table-link:hover,
.admin-body .table-link:focus-visible {
  color: #054e38;
  text-decoration: underline;
  outline: 0;
}

.admin-body .table-subtext,
.admin-body .payroll-person-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.admin-body .number-cell {
  text-align: right !important;
  white-space: nowrap;
}

.admin-body .payroll-period-table th:not(:first-child),
.admin-body .payroll-period-table td:not(:first-child),
.admin-body .payroll-summary-table th:not(:first-child),
.admin-body .payroll-summary-table td:not(:first-child) {
  text-align: center !important;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.admin-body .payroll-period-table .payroll-row-actions {
  justify-content: center;
}

.admin-body .payroll-employee-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-body .payroll-period-form {
  display: grid;
  gap: 14px;
}

.admin-body .payroll-period-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 260px));
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.admin-body .payroll-sheet-panel {
  padding: 0;
  overflow: hidden;
}

.admin-body .payroll-table-wrap {
  width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
}

.admin-body .payroll-sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-body .payroll-sheet-table th,
.admin-body .payroll-sheet-table td {
  min-width: 112px;
  padding: 9px 8px;
  border-right: 1px solid #dfe6e2;
  border-bottom: 1px solid #dfe6e2;
  background: #fff;
  color: #24342d;
  font-size: 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-body .payroll-sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f2f6f4;
  color: #5c6f66;
  font-weight: 750;
  text-align: center;
}

.admin-body .payroll-sheet-table th:first-child,
.admin-body .payroll-sheet-table td:first-child {
  min-width: 42px;
  text-align: center;
}

.admin-body .payroll-sheet-table th:nth-child(2),
.admin-body .payroll-sheet-table td:nth-child(2) {
  min-width: 185px;
}

.admin-body .payroll-sheet-table th:nth-child(3),
.admin-body .payroll-sheet-table td:nth-child(3) {
  min-width: 132px;
}

.admin-body .payroll-sheet-table .income-head,
.admin-body .payroll-sheet-table .payroll-total.income,
.admin-body .payroll-sheet-table tfoot [data-payroll-grand="income"] {
  background: #ddf7f3;
  color: #006b61;
  font-weight: 800;
}

.admin-body .payroll-sheet-table .deduction-head,
.admin-body .payroll-sheet-table .payroll-total.deduction,
.admin-body .payroll-sheet-table tfoot [data-payroll-grand="deduction"] {
  background: #fbe6e4;
  color: #96372f;
  font-weight: 800;
}

.admin-body .payroll-sheet-table .net-head,
.admin-body .payroll-sheet-table .payroll-total.net,
.admin-body .payroll-sheet-table tfoot [data-payroll-grand="net"] {
  background: #fff1b8;
  color: #765400;
  font-weight: 850;
}

.admin-body .payroll-money-input,
.admin-body .payroll-bank-input {
  width: 100%;
  min-width: 96px;
  height: 34px;
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font: inherit;
  text-align: right;
}

.admin-body .payroll-bank-input {
  min-width: 170px;
  text-align: left;
}

.admin-body .payroll-money-input:focus,
.admin-body .payroll-bank-input:focus {
  border-color: #12805a;
  outline: 2px solid rgba(18, 128, 90, 0.12);
}

.admin-body .payroll-total {
  text-align: right;
}

.admin-body .payroll-sheet-table tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #f4f7f5;
  text-align: right;
}

.admin-body .payroll-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-body .payroll-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-body .payroll-print-button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-body .payroll-employee-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important;
}

.admin-body .payroll-period-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 15h3M14 15h2'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 15h3M14 15h2'/%3E%3C/svg%3E") !important;
}

.admin-body .content.module-development-mode {
  position: relative;
  isolation: isolate;
}

.admin-body .module-development-mode > :not(.module-development-overlay) {
  filter: blur(4px);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.admin-body .module-development-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(130px, 22vh, 220px) 22px 40px;
  background: rgba(244, 248, 246, 0.42);
  backdrop-filter: blur(1.5px);
}

.admin-body .module-development-message {
  position: sticky;
  top: 104px;
  width: min(520px, 100%);
  border: 1px solid rgba(20, 105, 73, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 28px 30px;
  text-align: center;
  box-shadow: 0 22px 58px rgba(19, 45, 34, 0.17);
}

.admin-body .module-development-message .eyebrow {
  margin: 12px 0 5px;
}

.admin-body .module-development-message h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.admin-body .module-development-message p:last-child {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.admin-body .module-development-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  border-radius: 8px;
  background-color: #e6f2ed;
  background-image: linear-gradient(#13714d, #13714d);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 23px 23px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.1-3.1a6 6 0 0 1-7.9 7.9l-5.7 5.7a2.1 2.1 0 0 1-3-3l5.7-5.7a6 6 0 0 1 7.9-7.9z'/%3E%3C/svg%3E") center / 23px 23px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.1-3.1a6 6 0 0 1-7.9 7.9l-5.7 5.7a2.1 2.1 0 0 1-3-3l5.7-5.7a6 6 0 0 1 7.9-7.9z'/%3E%3C/svg%3E") center / 23px 23px no-repeat;
}

@media (max-width: 1100px) {
  .admin-body {
    padding: 0;
  }

  .admin-body .workspace-shell {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .admin-body .sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .admin-body .topbar {
    grid-template-columns: 1fr;
  }

  .admin-body .project-detail-page .record-detail-head {
    grid-template-columns: 1fr;
  }

  .admin-body .project-detail-page .record-actions {
    justify-content: flex-start;
  }

  .admin-body .project-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .report-toolbar {
    flex-wrap: wrap;
  }

  .admin-body .report-breadcrumb {
    width: 100%;
  }

  .admin-body .report-period-control {
    margin-left: 0;
  }

  .admin-body .store-list-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-body .selectable-list-card.is-selecting:not(.product-list-card) {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .admin-body .selectable-list-card.is-selecting:not(.product-list-card) .store-card-meta {
    grid-column: 2;
  }

  .admin-body .purchase-report-overview,
  .admin-body .report-overview-facts,
  .admin-body .report-stats,
  .admin-body .report-summary-strip,
  .admin-body .report-charts-grid,
  .admin-body .report-grid {
    grid-template-columns: 1fr;
  }

  .admin-body .report-bar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .admin-body .report-bar-row b {
    justify-self: end;
  }

  .admin-body .product-list-card,
  .admin-body .product-list-card.is-selecting {
    grid-template-columns: 1fr;
  }

  .admin-body .dashboard-actions,
  .admin-body .dashboard-grid,
  .admin-body .dashboard-list.two-columns,
  .store-document-form {
    grid-template-columns: 1fr;
  }

  .admin-body .warehouse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .warehouse-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .price-compare-card {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .admin-body .compare-store,
  .admin-body .compare-unit,
  .admin-body .compare-price {
    grid-column: 2 / -1;
  }

  .admin-body .store-card-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .store-document-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .store-document-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .admin-body .warehouse-control-bar,
  .admin-body .warehouse-dashboard-grid,
  .admin-body .warehouse-actions,
  .admin-body .warehouse-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .warehouse-control-bar {
    align-items: stretch;
  }

  .admin-body .warehouse-control-bar > .pill {
    justify-self: start;
  }

  .admin-body .warehouse-workflow-head,
  .admin-body .warehouse-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-body .warehouse-workflow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .warehouse-workflow-step:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #e3e9e6;
  }

  .admin-body .warehouse-action-copy em {
    white-space: normal;
  }

  .admin-body .compare-summary,
  .admin-body .compare-panel-top {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .store-card-meta {
    grid-template-columns: 1fr;
  }

  .admin-body .store-card-main {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-body .price-compare-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .admin-body .project-detail-grid,
  .admin-body .project-linked-row {
    grid-template-columns: 1fr;
  }

  .admin-body .report-filter-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .admin-body .report-filter-heading span {
    white-space: normal;
  }

  .admin-body .project-detail-grid > div.full {
    grid-column: auto;
  }

  .admin-body .project-linked-row b {
    text-align: left;
  }

}

.admin-body .mobile-menu-button,
.admin-body .sidebar-backdrop {
  display: none;
}

.admin-body .mobile-menu-button {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 20px rgba(24, 42, 34, 0.06);
}

.admin-body .mobile-menu-button span,
.admin-body .mobile-menu-button span::before,
.admin-body .mobile-menu-button span::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.admin-body .mobile-menu-button span {
  position: relative;
}

.admin-body .mobile-menu-button span::before,
.admin-body .mobile-menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.admin-body .mobile-menu-button span::before {
  top: -6px;
}

.admin-body .mobile-menu-button span::after {
  top: 6px;
}

@media (max-width: 1100px) {
  .admin-body {
    padding: 0;
  }

  .admin-body .workspace-shell,
  .admin-body .workspace-shell.is-sidebar-collapsed {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .admin-body .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: min(326px, calc(100vw - 54px));
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding: 20px 16px;
    border-right: 1px solid var(--line);
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 26px 0 58px rgba(16, 31, 24, 0.2);
    transform: translateX(0);
    transition: transform 0.22s ease;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .sidebar {
    padding: 20px 16px;
    transform: translateX(calc(-100% - 18px));
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .brand-row {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    justify-items: stretch;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .brand-copy,
  .admin-body .workspace-shell.is-sidebar-collapsed .menu-section p,
  .admin-body .workspace-shell.is-sidebar-collapsed .nav-section-label span,
  .admin-body .workspace-shell.is-sidebar-collapsed .nav-item span,
  .admin-body .workspace-shell.is-sidebar-collapsed .nav-chevron {
    display: block;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-sublist {
    display: grid;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-group.is-collapsed .nav-sublist {
    display: none;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-section-label {
    justify-content: flex-start;
    margin: 12px 0 0 8px;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-section-label::after {
    flex: 1;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .collapse-button::before {
    transform: rotate(180deg);
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-item {
    grid-template-columns: 18px minmax(0, 1fr);
    justify-items: stretch;
    padding: 10px 11px;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-parent {
    grid-template-columns: 18px minmax(0, 1fr) 12px;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .nav-item.active::before {
    left: -16px;
  }

  .admin-body .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    border: 0;
    background: rgba(8, 21, 17, 0.38);
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .admin-body .workspace-shell.is-sidebar-collapsed .sidebar-backdrop {
    pointer-events: none;
    opacity: 0;
  }

  .admin-body .main-panel {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .admin-body .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 68px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
  }

  .admin-body .mobile-menu-button {
    display: inline-flex;
  }

  .admin-body .search-box {
    width: 100%;
    min-width: 0;
  }

  .admin-body .topbar-actions {
    min-width: 0;
    justify-content: flex-end;
  }

  .admin-body .profile {
    min-width: 172px;
    margin-left: 0;
  }

  .admin-body .nav-list {
    grid-template-columns: 1fr;
  }

  .admin-body .nav-item:hover,
  .admin-body .nav-item.active,
  .admin-body .nav-subitem:hover,
  .admin-body .nav-subitem.active {
    transform: none;
  }

  .admin-body .content {
    padding: 20px 18px 28px;
  }
}

@media (max-width: 700px) {
  html,
  .admin-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .admin-body .workspace-shell,
  .admin-body .main-panel,
  .admin-body .content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0;
    overflow-x: hidden;
  }

  .admin-body.is-login .workspace-shell,
  .admin-body.is-login .main-panel,
  .admin-body.is-login .content,
  .admin-body .login-shell,
  .admin-body .login-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .admin-body.is-login .main-panel {
    padding: 16px 12px;
  }

  .admin-body.is-login .content {
    width: min(520px, 78vw) !important;
    max-width: 78vw !important;
  }

  .admin-body .login-card {
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .admin-body .login-brand {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .admin-body .login-brand > div,
  .admin-body .field,
  .admin-body .password-control {
    min-width: 0;
  }

  .admin-body .login-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .admin-body .login-brand h1 {
    font-size: 24px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .admin-body .login-brand span {
    font-size: 12px;
  }

  .admin-body .topbar {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 10px 12px;
  }

  .admin-body .search-box input {
    padding-left: 44px;
    font-size: 12px;
  }

  .admin-body .search-box .search-icon {
    left: 14px;
  }

  .admin-body .profile {
    width: 42px;
    min-width: 42px;
    height: 42px;
    grid-template-columns: 32px;
    gap: 0;
    padding: 4px;
  }

  .admin-body .profile-avatar {
    width: 32px;
    height: 32px;
  }

  .admin-body .profile-copy,
  .admin-body .profile-chevron {
    display: none;
  }

  .admin-body .profile-dropdown {
    position: fixed;
    top: 62px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
  }

  .admin-body .content {
    padding: 16px 12px 24px;
  }

  .admin-body h1 {
    max-width: 100%;
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .admin-body .page-head {
    max-width: 100%;
  }

  .admin-body .page-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-body .stats-grid,
  .admin-body .module-board,
  .admin-body .dashboard-actions,
  .admin-body .dashboard-grid,
  .admin-body .dashboard-list.two-columns {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .stat-card,
  .admin-body .module-card,
  .admin-body .data-panel {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .admin-body .sidebar {
    width: min(310px, calc(100vw - 38px));
    padding: 18px 13px;
  }

  .admin-body .brand-copy strong {
    font-size: 14px;
  }

  .admin-body .brand-copy span {
    font-size: 9px;
  }

  .admin-body .nav-item {
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  .admin-body .stats-grid.warehouse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .warehouse-stats .report-metric:first-child {
    grid-column: 1 / -1;
  }

  .admin-body .warehouse-stats .report-metric {
    min-height: 126px;
    padding: 14px;
  }

  .admin-body .warehouse-stats .report-metric .stat-value.money-stat {
    font-size: 18px;
  }
}

@media (max-width: 1100px) {
  .admin-body .warehouse-list-toolbar,
  .admin-body .warehouse-stock-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .warehouse-search-field,
  .admin-body .warehouse-product-filter {
    grid-column: 1 / -1;
  }

  .admin-body .warehouse-filter-action {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .admin-body .warehouse-page-head,
  .admin-body .warehouse-document-footer,
  .admin-body .warehouse-data-policy {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .warehouse-page-actions,
  .admin-body .warehouse-form-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-body .warehouse-page-actions > button,
  .admin-body .warehouse-form-actions > button {
    flex: 1 1 0;
  }

  .admin-body .warehouse-prototype-notice,
  .admin-body .warehouse-list-toolbar,
  .admin-body .warehouse-stock-filters,
  .admin-body .warehouse-catalog-stats,
  .admin-body .warehouse-stock-summary,
  .admin-body .warehouse-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .warehouse-prototype-notice {
    align-items: start;
  }

  .admin-body .warehouse-prototype-notice > .pill {
    grid-column: 2;
    justify-self: start;
  }

  .admin-body .warehouse-catalog-stats .report-metric:first-child,
  .admin-body .warehouse-stock-summary .report-metric:first-child,
  .admin-body .warehouse-search-field,
  .admin-body .warehouse-product-filter,
  .admin-body .warehouse-form-grid .field.full {
    grid-column: auto;
  }

  .admin-body .warehouse-document-footer .warehouse-form-actions {
    margin-left: 0;
  }

  .admin-body .warehouse-document-footer > div:not(.form-actions) {
    min-width: 0;
  }
}

@media (max-width: 1100px) {
  .admin-body .payroll-stats,
  .admin-body .payroll-actions,
  .admin-body .finance-stats,
  .admin-body .finance-account-stats,
  .admin-body .finance-reconcile-stats,
  .admin-body .finance-report-stats,
  .admin-body .finance-actions,
  .admin-body .finance-balance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .finance-balance-copy {
    grid-column: 1 / -1;
    border-bottom: 1px solid #e4e9e6;
  }

  .admin-body .finance-balance-item:nth-child(2) {
    border-left: 0;
  }

  .admin-body .finance-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .payroll-employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .finance-list-toolbar,
  .admin-body .finance-reconcile-filters,
  .admin-body .finance-report-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .finance-list-toolbar > :first-child,
  .admin-body .finance-reconcile-filters .finance-statement-upload {
    grid-column: 1 / -1;
  }

  .admin-body .finance-filter-action {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .admin-body .payroll-stats,
  .admin-body .payroll-actions,
  .admin-body .payroll-employee-grid,
  .admin-body .payroll-period-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .payroll-employee-grid .field.full {
    grid-column: auto;
  }

  .admin-body .payroll-form-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .payroll-form-footer > button {
    width: 100%;
  }

  .admin-body .finance-page-head,
  .admin-body .finance-section-head,
  .admin-body .finance-document-heading,
  .admin-body .finance-line-head,
  .admin-body .finance-document-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .finance-page-actions,
  .admin-body .finance-form-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-body .finance-page-actions > button,
  .admin-body .finance-form-actions > button {
    flex: 1 1 0;
  }

  .admin-body .finance-prototype-notice {
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
  }

  .admin-body .finance-prototype-notice > .pill {
    grid-column: 2;
    justify-self: start;
  }

  .admin-body .finance-stats,
  .admin-body .finance-account-stats,
  .admin-body .finance-reconcile-stats,
  .admin-body .finance-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body .finance-stats .report-metric:first-child,
  .admin-body .finance-account-stats .report-metric:first-child,
  .admin-body .finance-reconcile-stats .report-metric:first-child,
  .admin-body .finance-report-stats .report-metric:first-child {
    grid-column: 1 / -1;
  }

  .admin-body .finance-actions,
  .admin-body .finance-balance-strip,
  .admin-body .finance-list-toolbar,
  .admin-body .finance-reconcile-filters,
  .admin-body .finance-report-controls,
  .admin-body .finance-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-body .finance-balance-copy,
  .admin-body .finance-list-toolbar > :first-child,
  .admin-body .finance-reconcile-filters .finance-statement-upload,
  .admin-body .finance-form-grid .field.full {
    grid-column: auto;
  }

  .admin-body .finance-balance-item {
    border-top: 1px solid #e4e9e6;
    border-left: 0;
  }

  .admin-body .finance-action {
    min-height: 88px;
  }

  .admin-body .finance-action-copy em {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .admin-body .finance-form-panel {
    padding: 15px;
  }

  .admin-body .finance-document-footer > div:not(.finance-form-actions) {
    min-width: 0;
  }

  .admin-body .finance-document-footer .finance-form-actions {
    margin-left: 0;
  }

  .admin-body .finance-filter-action {
    width: 100%;
    justify-content: center;
  }

  .admin-body .module-development-overlay {
    padding: 96px 14px 30px;
  }

  .admin-body .module-development-message {
    top: 82px;
    padding: 24px 18px;
  }

  .admin-body .module-development-message h2 {
    font-size: 21px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.admin-body {
    background: #fff;
    color: #111;
    font-size: 11px;
  }

  .admin-body .workspace-shell {
    width: auto;
    height: auto;
    min-height: 0;
    display: block;
    margin: 0;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .admin-body .sidebar,
  .admin-body .topbar,
  .admin-body .page-head,
  .admin-body .compare-panel-top,
  .admin-body .compare-search-box,
  .admin-body .compare-summary,
  .admin-body .price-compare-list,
  .admin-body .pr-detail-page {
    display: none !important;
  }

  .admin-body .main-panel,
  .admin-body .content,
  .admin-body .price-compare-panel {
    display: block;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .print-compare-sheet {
    display: block;
  }

  .pr-print-sheet {
    display: block;
    color: #111;
    font-size: 10px;
    width: 100%;
    max-width: 190mm;
  }

  .pr-print-company {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    border-bottom: 2px solid #0a704c;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .pr-print-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: #061b13;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
  }

  .pr-print-company h1,
  .pr-print-company p,
  .pr-print-title h2,
  .pr-print-title p {
    margin: 0;
  }

  .pr-print-company h1 {
    font-size: 17px;
    line-height: 1.2;
  }

  .pr-print-company p {
    margin-top: 2px;
    color: #444;
    font-size: 8px;
  }

  .pr-print-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .pr-print-title p {
    color: #0a704c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .pr-print-title h2 {
    font-size: 20px;
  }

  .pr-print-number {
    min-width: 120px;
    border: 1px solid #d4dfd8;
    padding: 7px 9px;
    text-align: right;
  }

  .pr-print-number span,
  .pr-print-info span {
    display: block;
    color: #666;
    font-size: 9px;
    font-weight: 700;
  }

  .pr-print-number strong,
  .pr-print-info strong {
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  .pr-print-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #d4dfd8;
    border-bottom: 0;
    margin-bottom: 10px;
  }

  .pr-print-info div {
    min-height: 38px;
    border-right: 1px solid #d4dfd8;
    border-bottom: 1px solid #d4dfd8;
    padding: 6px 8px;
  }

  .pr-print-info div:nth-child(2n) {
    border-right: 0;
  }

  .po-print-vendor {
    border-left: 2px solid #0a704c;
    margin-bottom: 7px;
    padding: 3px 0 4px 8px;
  }

  .po-print-vendor p,
  .po-print-vendor h3,
  .po-print-vendor span {
    display: block;
    margin: 0;
  }

  .po-print-vendor p {
    color: #0a704c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .po-print-vendor h3 {
    font-size: 13px;
    line-height: 1.2;
  }

  .po-print-vendor span {
    color: #444;
    font-size: 8px;
    line-height: 1.35;
  }

  .po-print-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #d4dfd8;
    border-right: 0;
    margin-bottom: 8px;
  }

  .po-print-meta div {
    border-right: 1px solid #d4dfd8;
    padding: 4px 7px;
  }

  .po-print-meta span {
    display: block;
    color: #666;
    font-size: 8px;
    font-weight: 700;
  }

  .po-print-meta strong {
    display: block;
    margin-top: 1px;
    font-size: 10px;
  }

  .po-print-note {
    border: 1px solid #d4dfd8;
    margin-bottom: 8px;
    padding: 5px 7px;
  }

  .po-print-note span {
    display: block;
    color: #666;
    font-size: 8px;
    font-weight: 700;
  }

  .po-print-note strong {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.35;
  }

  .pr-print-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .pr-print-table thead {
    display: table-header-group;
  }

  .pr-print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pr-print-table th,
  .pr-print-table td {
    border: 1px solid #d4dfd8;
    padding: 5px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }

  .pr-print-table th {
    background: #0a704c;
    color: #fff;
    font-size: 9px;
  }

  .pr-print-table td {
    font-size: 9px;
  }

  .pr-print-table td:first-child,
  .pr-print-table th:first-child {
    width: 24px;
    text-align: center;
  }

  .pr-print-table td:nth-child(2),
  .pr-print-table th:nth-child(2) {
    width: 28%;
  }

  .pr-print-table td:nth-child(3),
  .pr-print-table th:nth-child(3) {
    width: 8%;
  }

  .pr-print-table td:nth-child(4),
  .pr-print-table th:nth-child(4) {
    width: 8%;
  }

  .pr-print-table td:nth-child(5),
  .pr-print-table th:nth-child(5) {
    width: 18%;
  }

  .pr-print-table td:nth-child(6),
  .pr-print-table th:nth-child(6),
  .pr-print-table td:nth-child(7),
  .pr-print-table th:nth-child(7),
  .pr-print-table td:nth-child(8),
  .pr-print-table th:nth-child(8) {
    width: 10%;
  }

  .pr-print-table td:nth-child(3),
  .pr-print-table td:nth-child(6),
  .pr-print-table td:nth-child(7),
  .pr-print-table td:nth-child(8) {
    text-align: right;
  }

  .pr-print-table td strong,
  .pr-print-table td span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pr-print-table td span {
    margin-top: 2px;
    color: #666;
    font-size: 7px;
  }

  .pr-print-table .print-item-note {
    color: #0a704c;
    font-weight: 700;
    line-height: 1.35;
  }

  .purchase-print-table {
    font-size: 8.1px;
    line-height: 1.22;
  }

  .purchase-print-table th,
  .purchase-print-table td {
    padding: 4px 4px;
  }

  .purchase-print-table th {
    font-size: 7.5px;
    white-space: nowrap;
  }

  .purchase-print-table td {
    font-size: 8.1px;
  }

  .purchase-print-table td:nth-child(1),
  .purchase-print-table th:nth-child(1) {
    width: 4%;
    text-align: center;
  }

  .purchase-print-table td:nth-child(2),
  .purchase-print-table th:nth-child(2) {
    width: 44%;
  }

  .purchase-print-table td:nth-child(3),
  .purchase-print-table th:nth-child(3) {
    width: 8%;
    text-align: right;
  }

  .purchase-print-table td:nth-child(4),
  .purchase-print-table th:nth-child(4) {
    width: 8%;
    text-align: center;
  }

  .purchase-print-table td:nth-child(5),
  .purchase-print-table th:nth-child(5),
  .purchase-print-table td:nth-child(6),
  .purchase-print-table th:nth-child(6),
  .purchase-print-table td:nth-child(7),
  .purchase-print-table th:nth-child(7) {
    width: 12%;
    text-align: right;
  }

  .sales-print-sheet .purchase-print-table td:nth-child(1),
  .sales-print-sheet .purchase-print-table th:nth-child(1) {
    width: 5%;
    text-align: center;
  }

  .sales-print-sheet .purchase-print-table td:nth-child(2),
  .sales-print-sheet .purchase-print-table th:nth-child(2) {
    width: 43%;
  }

  .sales-print-sheet .purchase-print-table td:nth-child(3),
  .sales-print-sheet .purchase-print-table th:nth-child(3) {
    width: 10%;
    text-align: right;
  }

  .sales-print-sheet .purchase-print-table td:nth-child(4),
  .sales-print-sheet .purchase-print-table th:nth-child(4) {
    width: 10%;
    text-align: center;
  }

  .sales-print-sheet .purchase-print-table td:nth-child(5),
  .sales-print-sheet .purchase-print-table th:nth-child(5),
  .sales-print-sheet .purchase-print-table td:nth-child(6),
  .sales-print-sheet .purchase-print-table th:nth-child(6) {
    width: 16%;
    text-align: right;
  }

  .purchase-print-table td strong {
    font-size: 8.4px;
    line-height: 1.25;
  }

  .purchase-print-table td span {
    margin-top: 1px;
    font-size: 7.1px;
    line-height: 1.22;
  }

  .purchase-print-table .print-item-vendor {
    color: #0a704c;
    font-weight: 700;
  }

  .pr-print-summary {
    width: 190px;
    margin: 8px 0 0 auto;
    border: 1px solid #d4dfd8;
    border-radius: 0;
    overflow: hidden;
  }

  .pr-print-footer {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-top: 8px;
    min-height: 118px;
  }

  .po-print-sheet .pr-print-footer {
    min-height: 112px;
  }

  .pr-print-summary div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #d4dfd8;
    font-size: 8px;
  }

  .pr-print-summary div:last-child {
    border-bottom: 0;
  }

  .pr-print-summary span {
    color: #52645a;
  }

  .pr-print-summary strong {
    color: #111;
    font-size: 9px;
    white-space: nowrap;
  }

  .pr-print-summary .grand-total {
    background: #eef7f2;
    font-weight: 800;
  }

  .pr-print-signatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pr-print-signatures div {
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }

  .pr-print-signatures div::before {
    content: "";
    display: block;
    width: 100%;
    border-top: 1px solid #333;
    margin-top: auto;
    margin-bottom: 6px;
  }

  .pr-print-signatures span {
    align-self: center;
    font-size: 9px;
    color: #555;
  }

  .print-sheet-head {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
    border-bottom: 2px solid #0a704c;
    padding-bottom: 10px;
  }

  .print-sheet-head p {
    margin: 0;
    color: #0a704c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-sheet-head h1 {
    margin: 0;
    color: #111;
    font-size: 22px;
    line-height: 1.2;
  }

  .print-sheet-head div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #444;
    font-size: 10px;
  }

  .print-compare-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-compare-table th,
  .print-compare-table td {
    border: 1px solid #cfd8d3;
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
    page-break-inside: avoid;
  }

  .print-compare-table th {
    background: #e8f3ed;
    color: #0a704c;
    font-size: 10px;
    font-weight: 700;
  }

  .print-compare-table td:first-child,
  .print-compare-table th:first-child {
    width: 18%;
  }

  .print-compare-table td:nth-child(2),
  .print-compare-table th:nth-child(2) {
    width: 42%;
  }

  .print-compare-table td:nth-child(3),
  .print-compare-table th:nth-child(3) {
    width: 20%;
  }

  .print-compare-table td:nth-child(4),
  .print-compare-table th:nth-child(4) {
    width: 8%;
    text-align: center;
  }

  .print-compare-table td:nth-child(5),
  .print-compare-table th:nth-child(5) {
    width: 12%;
    text-align: right;
  }

  .print-compare-table td strong,
  .print-compare-table td span {
    display: block;
  }

  .print-compare-table td span {
    margin-top: 3px;
    color: #666;
    font-size: 9px;
  }

  .print-compare-table .print-material-type {
    width: max-content;
    display: inline-block;
    margin: 0 0 4px;
    border-radius: 5px;
    background: #e8f0ff;
    color: #2563eb;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
  }

  .print-price {
    color: #0a704c;
    font-weight: 700;
    text-align: right !important;
    white-space: nowrap;
  }

  .print-note {
    margin-top: 10px;
    color: #555;
    font-size: 9px;
  }
}

.print-job-shell .project-wht-print-table {
  table-layout: fixed;
  font-size: 7px;
}

.print-job-shell .project-wht-print-table th,
.print-job-shell .project-wht-print-table td {
  padding: 4px 3px;
  font-size: 7px;
  line-height: 1.25;
}

.print-job-shell .project-wht-print-table th:nth-child(1),
.print-job-shell .project-wht-print-table td:nth-child(1) {
  width: 4%;
  text-align: center;
}

.print-job-shell .project-wht-print-table th:nth-child(2),
.print-job-shell .project-wht-print-table td:nth-child(2),
.print-job-shell .project-wht-print-table th:nth-child(3),
.print-job-shell .project-wht-print-table td:nth-child(3) {
  width: 12%;
  text-align: left;
}

.print-job-shell .project-wht-print-table th:nth-child(4),
.print-job-shell .project-wht-print-table td:nth-child(4) {
  width: 24%;
  text-align: left;
  word-break: normal;
  overflow-wrap: anywhere;
}

.print-job-shell .project-wht-print-table th:nth-child(5),
.print-job-shell .project-wht-print-table td:nth-child(5) {
  width: 10%;
  text-align: center;
  white-space: nowrap;
}

.print-job-shell .project-wht-print-table th:nth-child(6),
.print-job-shell .project-wht-print-table td:nth-child(6) {
  width: 10%;
  text-align: right;
  white-space: nowrap;
}

.print-job-shell .project-wht-print-table th:nth-child(7),
.print-job-shell .project-wht-print-table td:nth-child(7),
.print-job-shell .project-wht-print-table th:nth-child(8),
.print-job-shell .project-wht-print-table td:nth-child(8) {
  width: 8%;
  text-align: right;
  white-space: nowrap;
}

.print-job-shell .project-wht-print-table th:nth-child(9),
.print-job-shell .project-wht-print-table td:nth-child(9) {
  width: 10%;
  text-align: right;
  white-space: nowrap;
}

.print-job-shell .project-wht-print-table tfoot th {
  width: auto;
  border-top: 2px solid #99b8a8;
  background: #f1f8f4;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

