:root {
  --green-900: #254d18;
  --green-800: #356e23;
  --green-700: #478f2d;
  --green-600: #5cb338;
  --green-500: #70c94a;
  --green-100: #e9f7e2;
  --green-50: #f4fbf1;
  --ink-950: #10130f;
  --ink-800: #242a22;
  --ink-600: #5e675a;
  --ink-500: #7a8376;
  --line: #e3e8df;
  --surface: #ffffff;
  --canvas: #f4f6f2;
  --warning: #ed9b2d;
  --warning-soft: #fff3db;
  --danger: #d84a4a;
  --danger-soft: #ffeded;
  --blue: #3978d4;
  --blue-soft: #eaf2ff;
  --purple: #7a59c7;
  --purple-soft: #f1edff;
  --shadow-sm: 0 6px 22px rgba(29, 45, 24, 0.06);
  --shadow-md: 0 18px 50px rgba(29, 45, 24, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --sidebar: 258px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 90% -10%, rgba(92, 179, 56, 0.1), transparent 28rem),
    var(--canvas);
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums;
}

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

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgba(92, 179, 56, 0.3);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.sidebar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 35%),
    #11150f;
  box-shadow: -10px 0 32px rgba(16, 19, 15, 0.09);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(92, 179, 56, 0.18);
  overflow: hidden;
}

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

.brand-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.sidebar-label {
  margin: 22px 10px 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  box-shadow: 0 9px 24px rgba(92, 179, 56, 0.22);
}

.nav-item .count {
  margin-right: auto;
  min-width: 23px;
  height: 20px;
  padding: 1px 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 14px;
  font-weight: 900;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.sidebar-user > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.sidebar-user strong {
  font-size: 14px;
}

.sidebar-user span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.logout-mini {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
}

.logout-mini:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.app-main {
  min-height: 100vh;
  margin-right: var(--sidebar);
  padding: 24px 30px 48px;
}

.topbar {
  max-width: 1320px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-brand {
  display: none;
}

.page-heading {
  min-width: 0;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: -0.035em;
}

.page-heading p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.topbar-actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-chip,
.demo-chip {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(92, 179, 56, 0.12);
}

.demo-chip {
  color: #8b5b16;
  border-color: #f0dfbe;
  background: #fff9ed;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-600);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.page-content {
  max-width: 1320px;
  margin: 0 auto;
  animation: fade-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 176px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 24px;
  padding: 27px 30px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 15% 120%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(125deg, #4da82f, #69bf43 55%, #3f8e2a);
  box-shadow: 0 20px 45px rgba(70, 139, 44, 0.18);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -70px;
  top: -110px;
  width: 270px;
  height: 270px;
  border: 35px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 0;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.icon-button:active,
.nav-item:active,
.mobile-nav-item:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: var(--green-600);
  box-shadow: 0 10px 22px rgba(92, 179, 56, 0.22);
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-dark {
  color: #fff;
  background: var(--ink-950);
}

.btn-white {
  color: var(--green-800);
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 74, 15, 0.15);
}

.btn-ghost-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.btn-soft {
  color: var(--green-800);
  background: var(--green-100);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 10px 22px rgba(216, 74, 74, 0.2);
}

.btn-danger:hover {
  background: #bd3636;
}

.btn-compact {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 14px;
}

.btn:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 300px);
}

.hero-progress-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 21px;
  background: rgba(18, 41, 12, 0.18);
  backdrop-filter: blur(14px);
}

.hero-progress-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 750;
}

.hero-progress-card header strong {
  color: #fff;
  direction: ltr;
  font-size: 16px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: #fff;
}

.progress-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.section {
  margin-top: 24px;
}

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

.section-actions,
.banner-actions,
.report-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}

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

.metric-card {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(218, 225, 214, 0.8);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -45px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--metric-soft, var(--green-100));
  opacity: 0.55;
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--metric-color, var(--green-700));
  background: var(--metric-soft, var(--green-100));
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-100);
  direction: ltr;
  font-size: 14px;
  font-weight: 900;
}

.metric-value {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.metric-value strong {
  font-size: 25px;
  line-height: 1;
  direction: ltr;
}

.metric-value span,
.metric-label {
  color: var(--ink-500);
  font-size: 14px;
}

.metric-label {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  display: block;
  font-weight: 700;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.75fr);
  gap: 16px;
}

.panel {
  border: 1px solid rgba(218, 225, 214, 0.82);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 12px;
}

.panel-head h3 {
  margin: 0;
  font-size: 14px;
}

.panel-body {
  padding: 6px 18px 18px;
}

.pipeline {
  display: grid;
  gap: 14px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 118px 1fr 38px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.pipeline-row strong {
  font-size: 14px;
}

.pipeline-row output {
  color: var(--ink-500);
  direction: ltr;
  text-align: left;
  font-size: 14px;
}

.pipeline-bar {
  height: 8px;
  border-radius: 999px;
  background: #eef1ec;
  overflow: hidden;
}

.pipeline-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--green-600));
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-action {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-800);
  background: #fbfcfa;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  transition: 150ms ease;
}

.quick-action:hover {
  border-color: rgba(92, 179, 56, 0.34);
  background: var(--green-50);
  transform: translateY(-2px);
}

.quick-action .metric-icon {
  width: 34px;
  height: 34px;
}

.orders-list {
  display: grid;
  gap: 9px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 0.7fr 0.55fr 0.7fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: 150ms ease;
}

.order-row:hover {
  border-color: rgba(92, 179, 56, 0.34);
  box-shadow: 0 8px 20px rgba(29, 45, 24, 0.05);
}

.customer-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 14px;
  font-weight: 900;
}

.customer-cell strong,
.customer-cell span,
.order-meta strong,
.order-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-cell strong,
.order-meta strong {
  font-size: 14px;
}

.customer-cell span,
.order-meta span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 14px;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--status-color);
  background: var(--status-bg);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.order-status-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.row-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--ink-500);
  background: #f4f6f2;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.search-box {
  min-width: min(330px, 100%);
  flex: 1;
  position: relative;
}

.search-box .icon {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--ink-500);
  transform: translateY(-50%);
}

.search-box input,
.field input,
.field select,
.field textarea,
.filter-select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-950);
  background: #fff;
}

.search-box input {
  padding: 10px 42px 10px 13px;
}

.search-box input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #a0a89d;
}

.filter-select {
  width: auto;
  min-width: 130px;
  padding: 8px 11px;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 700;
}

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

.module-card {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  border-color: #d3dfce;
  box-shadow: 0 13px 30px rgba(29, 45, 24, 0.09);
  transform: translateY(-2px);
}

.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.module-card h3 {
  margin: 12px 0 4px;
  font-size: 14px;
}

.module-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.7;
}

.module-stat {
  color: var(--ink-950);
  direction: ltr;
  font-size: 21px;
  font-weight: 900;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.task-indicator {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: var(--task-color, var(--green-600));
}

.task-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.task-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
}

.task-card time {
  color: var(--ink-500);
  direction: ltr;
  font-size: 14px;
}

.control-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 14px 0;
  padding: 15px 17px;
  border: 1px solid #d8ead0;
  border-radius: 17px;
  background: linear-gradient(135deg, #f7fcf4, #fff);
  box-shadow: var(--shadow-sm);
}

.control-banner-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-800);
  background: var(--green-100);
}

.control-banner strong,
.control-banner p {
  display: block;
}

.control-banner strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.control-banner p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.audit-banner {
  border-color: #eed6d3;
  background: linear-gradient(135deg, #fff8f7, #fff);
}

.audit-banner .control-banner-icon {
  color: #b42318;
  background: #fee4e2;
}

.audit-toolbar {
  margin-top: 12px;
}

.expense-rule-banner {
  border-color: #eadbc8;
  background: linear-gradient(135deg, #fffaf4, #fff);
}

.expense-rule-banner .control-banner-icon {
  color: #9a541d;
  background: #fff0e2;
}

.audit-list {
  display: grid;
  gap: 9px;
}

.audit-record {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: inherit;
  background: #fff;
  text-align: right;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.audit-record:hover {
  border-color: #cbdcc4;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.audit-record.is-closed {
  opacity: 0.72;
  background: #fafbf9;
}

.audit-priority {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--audit-color);
  background: var(--audit-soft);
}

.audit-record-main,
.audit-record-main small,
.audit-meta {
  display: block;
}

.audit-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.audit-title-row strong {
  font-size: 14px;
}

.audit-record-main small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.6;
}

.audit-meta {
  margin-top: 5px;
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 750;
}

.severity-pill,
.verified-pill,
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--severity-color, var(--green-800));
  background: var(--severity-bg, var(--green-100));
  font-size: 11px;
  font-weight: 850;
}

.audit-record time {
  color: var(--ink-500);
  direction: ltr;
  font-size: 12px;
}

.live-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.audit-modal-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fafbf9;
}

.audit-modal-summary h4 {
  margin: 8px 0 2px;
  font-size: 16px;
}

.audit-modal-summary p,
.resolution-note p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.audit-detail-grid {
  margin-top: 12px;
}

.resolution-note {
  margin-top: 12px;
  padding: 13px;
  border-radius: 13px;
  color: var(--green-900);
  background: var(--green-50);
}

.resolution-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.modal-foot-inline {
  margin: 14px -1px -1px;
  padding: 14px 0 0;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.report-toolbar > div strong,
.report-toolbar > div span {
  display: block;
}

.report-toolbar > div strong {
  font-size: 14px;
}

.report-toolbar > div span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 12px;
}

.report-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 800;
}

.report-toolbar .report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.profit-rule-banner {
  margin-bottom: 16px;
}

.verified-pill {
  color: var(--green-800);
  background: var(--green-100);
}

.financial-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.financial-summary-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.financial-summary-grid small,
.financial-summary-grid strong {
  display: block;
}

.financial-summary-grid small {
  color: var(--ink-500);
  font-size: 12px;
}

.financial-summary-grid strong {
  margin-top: 5px;
  font-size: 16px;
}

.report-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  padding: 11px 13px;
  border: 1px solid #f0dfbe;
  border-radius: 13px;
  color: #70501b;
  background: #fff9ed;
  font-size: 13px;
  line-height: 1.7;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 13px;
}

.daily-profit-list {
  display: grid;
  gap: 10px;
}

.daily-profit-row {
  display: grid;
  grid-template-columns: 92px minmax(80px, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1ec;
}

.daily-profit-row:last-child {
  border-bottom: 0;
}

.daily-profit-row time {
  color: var(--ink-600);
  direction: ltr;
  font-size: 12px;
  font-weight: 800;
}

.daily-profit-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1eb;
}

.daily-profit-bar i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--profit-color);
}

.daily-profit-row > span:last-child {
  text-align: left;
}

.daily-profit-row small,
.daily-profit-row strong {
  display: block;
}

.daily-profit-row small {
  color: var(--ink-500);
  font-size: 11px;
}

.daily-profit-row strong {
  margin-top: 2px;
  font-size: 14px;
}

.negative-value {
  color: var(--danger) !important;
}

.quality-score {
  color: var(--green-800);
  direction: ltr;
  font-size: 21px;
}

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

.quality-facts span {
  padding: 10px;
  border-radius: 11px;
  background: #f7f9f6;
  text-align: center;
}

.quality-facts small,
.quality-facts strong {
  display: block;
}

.quality-facts small {
  color: var(--ink-500);
  font-size: 10px;
}

.quality-facts strong {
  margin-top: 3px;
  font-size: 15px;
}

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

.report-section-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-section-card strong,
.report-section-card small {
  display: block;
}

.report-section-card small {
  color: var(--ink-500);
  font-size: 11px;
}

.report-section-card > span:last-child {
  text-align: left;
}

.expense-list {
  display: grid;
  gap: 9px;
}

.expense-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.expense-record.is-voided {
  opacity: 0.68;
  background: #f7f8f6;
}

.expense-record-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #9a541d;
  background: #fff0e2;
}

.expense-record-main {
  min-width: 0;
}

.expense-record-main > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.expense-record-main strong,
.expense-record-main small,
.expense-record-main time,
.expense-record-main p {
  display: block;
}

.expense-record-main strong {
  font-size: 14px;
}

.expense-record-main em {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--status-color);
  background: var(--status-bg);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.expense-record-main small,
.expense-record-main time,
.expense-record-main p {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.expense-record-main p {
  margin-bottom: 0;
  color: #a33b3b;
}

.expense-record-value {
  min-width: 125px;
  text-align: left;
}

.expense-record-value strong,
.expense-record-value small {
  display: block;
}

.expense-record-value strong {
  direction: ltr;
  font-size: 14px;
}

.expense-record-value small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.expense-void {
  color: var(--danger);
  background: var(--danger-soft);
}

.expense-void-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #f1d3d3;
  border-radius: 14px;
  background: #fff8f8;
}

.expense-void-summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--danger);
  background: var(--danger-soft);
}

.expense-void-summary strong,
.expense-void-summary small {
  display: block;
}

.expense-void-summary small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 12px;
}

.notification-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: flex;
  justify-content: flex-start;
  background: rgba(16, 19, 15, 0.34);
  backdrop-filter: blur(3px);
}

.notification-panel {
  width: min(430px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 18px 0 60px rgba(16, 19, 15, 0.2);
  animation: notification-in 190ms ease;
}

@keyframes notification-in {
  from { transform: translateX(-18px); opacity: 0; }
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.notification-head h3,
.notification-head p {
  margin: 0;
}

.notification-head h3 {
  font-size: 17px;
}

.notification-head p {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 12px;
}

.notification-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
}

.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe9db;
  border-radius: 14px;
  color: inherit;
  background: #f8fcf6;
  text-align: right;
}

.notification-item.is-read {
  border-color: var(--line);
  background: #fff;
}

.notification-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--notification-color);
  background: var(--notification-soft);
}

.notification-item strong,
.notification-item small,
.notification-item time {
  display: block;
}

.notification-item strong {
  font-size: 13px;
}

.notification-item small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.notification-item time {
  margin-top: 5px;
  color: var(--ink-500);
  direction: ltr;
  font-size: 10px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(92, 179, 56, 0.12);
}

.notification-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-500);
  text-align: center;
}

.notification-empty strong {
  color: var(--ink-800);
}

.notification-empty span {
  max-width: 270px;
  font-size: 12px;
  line-height: 1.7;
}

.toolbar-copy {
  min-width: 220px;
  flex: 1;
}

.toolbar-copy strong,
.toolbar-copy span,
.panel-head > div > h3,
.panel-head > div > p {
  display: block;
}

.toolbar-copy strong {
  color: var(--ink-900);
  font-size: 14px;
}

.toolbar-copy span,
.panel-head > div > p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
}

.operation-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.operation-card .pipeline-bar {
  margin-top: 16px;
}

.operation-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.operation-facts span {
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--ink-600);
  background: #f3f5f1;
  font-size: 14px;
  font-weight: 750;
}

.operation-open {
  width: 100%;
  margin-top: auto;
  transform: translateY(5px);
}

.empty-operation {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 28px;
  border: 1px dashed #cdd6c8;
  border-radius: var(--radius-md);
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-operation strong {
  color: var(--ink-800);
}

.operation-list {
  display: grid;
  gap: 9px;
}

.operation-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-900);
  background: #fff;
  text-align: right;
  transition: 150ms ease;
}

.module-card,
.order-row,
.operation-row,
.audit-record,
.expense-record {
  content-visibility: auto;
  contain-intrinsic-size: auto 82px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 15px 12px 4px;
}

.load-more {
  min-width: 220px;
  border: 1px solid #d6e7cf;
}

.load-more .icon {
  transform: rotate(90deg);
}

.load-more span {
  color: var(--ink-500);
  font-size: 12px;
}

.snapshot-banner {
  border-color: #cfe0f5;
  background: linear-gradient(135deg, #f4f8ff, #fff 70%);
}

.snapshot-banner .control-banner-icon {
  color: #2868be;
  background: #eaf2ff;
}

.sorter-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.sorter-card {
  min-height: 180px;
}

.aggregation-row {
  grid-template-columns: auto minmax(220px, 1fr) auto minmax(120px, auto);
}

.formula-values {
  min-width: 150px;
  text-align: center;
}

.formula-values small,
.formula-values strong {
  display: block;
}

.formula-values small {
  color: var(--ink-500);
  font-size: 11px;
}

.formula-values strong {
  margin-top: 3px;
  font-size: 13px;
}

.source-occurrences {
  padding: 5px 9px;
  border-radius: 999px;
  color: #5d438f;
  background: #f1edff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.aggregation-stage-metrics {
  margin-top: 24px;
}

.budget-panel .financial-summary-grid {
  padding: 0 18px 18px;
}

button.operation-row:hover {
  border-color: rgba(92, 179, 56, 0.38);
  box-shadow: 0 8px 22px rgba(29, 45, 24, 0.06);
  transform: translateY(-1px);
}

.operation-row-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--row-color, var(--green-700));
  background: #f3f5f1;
  background: color-mix(in srgb, var(--row-color, var(--green-700)) 12%, white);
}

.operation-row-main {
  min-width: 0;
}

.operation-row-main strong,
.operation-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-row-main strong {
  font-size: 14px;
}

.operation-row-main small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 14px;
}

.row-arrow {
  display: grid;
  color: var(--ink-400);
  transform: rotate(180deg);
}

.empty-inline {
  padding: 20px;
  border-radius: 13px;
  color: var(--ink-500);
  background: #f7f9f5;
  text-align: center;
  font-size: 14px;
}

.modal-head p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

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

.detail-summary-grid > span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbf9;
}

.detail-summary-grid small {
  color: var(--ink-500);
  font-size: 14px;
}

.detail-summary-grid strong {
  font-size: 14px;
}

.operation-action-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fafbf9;
}

.operation-action-box.emphasis {
  border-color: #cfe8c5;
  background: var(--green-50);
}

.operation-action-box > div:first-child {
  min-width: 180px;
  flex: 1;
}

.operation-action-box strong {
  font-size: 14px;
}

.operation-action-box p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.6;
}

.inline-action-fields {
  min-width: min(300px, 100%);
  display: flex;
  gap: 7px;
}

.inline-action-fields select {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.linked-orders {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.linked-orders > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.linked-orders h4 {
  margin: 0;
  font-size: 14px;
}

.linked-orders header span {
  color: var(--ink-500);
  font-size: 14px;
}

.compact-list .operation-row {
  padding: 10px 11px;
}

.operation-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inner-foot {
  padding-right: 0;
  padding-left: 0;
  border: 0;
}

.success-receipt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cfe8c5;
  border-radius: 15px;
  color: var(--green-800);
  background: var(--green-50);
}

.success-receipt > .icon {
  flex: 0 0 auto;
}

.success-receipt strong,
.success-receipt span {
  display: block;
}

.success-receipt span {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 14px;
}

.custody-card {
  min-height: 175px;
}

.custody-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.custody-values span {
  padding: 9px;
  border-radius: 11px;
  background: #f5f7f3;
}

.custody-values small,
.custody-values bdi {
  display: block;
}

.custody-values small {
  color: var(--ink-500);
  font-size: 14px;
}

.custody-values bdi {
  margin-top: 5px;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 850;
}

.custody-entry {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.custody-entry time {
  color: var(--ink-500);
  direction: ltr;
  font-size: 14px;
}

.custody-amount {
  color: var(--ink-800);
  font-size: 14px;
  white-space: nowrap;
}

.compact-modules {
  margin-top: 18px;
}

.workflow-row .btn-small {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 11px;
  white-space: nowrap;
}

.record-row time {
  color: var(--ink-500);
  direction: ltr;
  font-size: 14px;
  white-space: nowrap;
}

.record-amount,
.price-stack {
  color: var(--ink-800);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.price-stack small,
.price-stack strong {
  display: block;
}

.price-stack small {
  margin-bottom: 3px;
  color: var(--ink-400);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #cfe8c5;
  border-radius: 14px;
  background: var(--green-50);
  cursor: pointer;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

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

.check-field small {
  margin-top: 3px;
  color: var(--ink-500);
}

.sheet-calculation {
  margin-top: 12px;
}

.form-section-title {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-section-title strong {
  font-size: 14px;
}

.form-section-title span {
  color: var(--ink-500);
  font-size: 12px;
}

.fulfillment-queue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 13px;
}

.queue-card {
  min-height: 158px;
}

.fulfillment-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.row-actions {
  display: flex;
  gap: 6px;
}

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

.transaction-summary > span {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbf9;
}

.transaction-summary small,
.calculation-card small {
  color: var(--ink-500);
  font-size: 14px;
}

.transaction-summary strong {
  font-size: 14px;
}

.calculation-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid #cfe8c5;
  border-radius: 15px;
  color: var(--ink-600);
  background: linear-gradient(145deg, #f6fbf3, #edf8e8);
}

.calculation-card > span {
  font-size: 14px;
  font-weight: 800;
}

.calculation-card output {
  color: var(--green-800);
  direction: ltr;
  font-size: 25px;
  font-weight: 950;
}

.compact-calculation {
  min-height: 86px;
  padding: 11px 13px;
}

.compact-calculation output {
  font-size: 21px;
}

[data-exchange-rate-field].is-fixed-rate {
  opacity: 0.7;
}

[data-exchange-rate-field].is-fixed-rate input {
  background: #f3f5f1;
}

.success-note {
  color: var(--green-800);
  background: var(--green-50);
}

.commerce-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.commerce-strip article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbf9;
}

.commerce-strip .metric-icon {
  flex: 0 0 auto;
}

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

.commerce-strip small,
.commerce-strip span {
  color: var(--ink-500);
  font-size: 14px;
}

.commerce-strip strong {
  margin: 3px 0;
  color: var(--ink-900);
  font-size: 14px;
}

.customer-orders {
  margin-top: 20px;
}

.empty-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 38px;
  text-align: center;
}

.empty-state .metric-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 19px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.empty-state p {
  max-width: 460px;
  margin: 0 auto 17px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.8;
}

.modal-backdrop,
.drawer-backdrop,
.mobile-menu-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 18, 11, 0.58);
  backdrop-filter: blur(4px);
  animation: backdrop-in 160ms ease;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: auto;
  animation: modal-in 190ms ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.modal-body {
  padding: 20px;
}

.modal-compact {
  max-width: 560px;
}

.single-column-form {
  grid-template-columns: 1fr;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  padding: 9px 11px;
  outline: none;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 14px;
}

.readonly-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf7;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.11);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 20px 20px;
}

.toast-stack {
  position: fixed;
  z-index: 200;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink-950);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 750;
  animation: toast-in 220ms ease;
}

.toast-error {
  background: #9f2f2f;
}

.brand-splash,
.session-loading {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink-600);
  background:
    radial-gradient(circle at 50% 35%, rgba(112, 201, 74, 0.15), transparent 17rem),
    linear-gradient(155deg, #ffffff 0%, #f6faf3 55%, #edf6e8 100%);
  overflow: hidden;
}

.brand-splash {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.splash-orbit {
  position: absolute;
  z-index: -1;
  width: min(76vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(92, 179, 56, 0.13);
  border-radius: 50%;
  animation: splash-orbit 9s linear infinite;
}

.splash-orbit::after {
  content: "";
  position: absolute;
  top: 11%;
  right: 13%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 8px rgba(92, 179, 56, 0.08), 0 0 30px rgba(92, 179, 56, 0.38);
}

.splash-orbit-two {
  width: min(94vw, 810px);
  opacity: 0.55;
  animation-direction: reverse;
  animation-duration: 14s;
}

.splash-content {
  width: min(88vw, 510px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: splash-content-in 720ms cubic-bezier(.2,.8,.2,1) both;
}

.splash-logo-stage {
  position: relative;
  width: min(62vw, 285px);
  height: 148px;
  display: grid;
  place-items: center;
}

.splash-logo-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(44, 98, 28, 0.16));
  animation: splash-logo-float 2.8s ease-in-out infinite;
}

.splash-logo-glow {
  position: absolute;
  width: 72%;
  height: 54%;
  border-radius: 50%;
  background: rgba(92, 179, 56, 0.2);
  filter: blur(34px);
  animation: splash-glow 1.8s ease-in-out infinite alternate;
}

.splash-kicker,
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.splash-content h1 {
  margin: 9px 0 5px;
  color: var(--ink-950);
  font-size: clamp(25px, 6vw, 34px);
  letter-spacing: -0.045em;
}

.splash-content p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
}

.splash-progress {
  width: min(220px, 66vw);
  height: 4px;
  margin-top: 27px;
  border-radius: 999px;
  background: rgba(92, 179, 56, 0.13);
  overflow: hidden;
}

.splash-progress i {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  box-shadow: 0 0 12px rgba(92, 179, 56, 0.35);
  animation: splash-progress 1.35s cubic-bezier(.65,0,.35,1) infinite;
}

.splash-content > small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 11px;
}

.session-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
}

.session-loading img {
  width: 170px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(44, 98, 28, 0.13));
}

.session-loading strong { color: var(--ink-800); font-size: 16px; }
.session-loading small { margin-top: -9px; color: var(--ink-500); }

.loading-ring {
  width: 30px;
  height: 30px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: loading-spin 750ms linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes splash-content-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splash-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes splash-glow {
  from { opacity: 0.55; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes splash-orbit {
  to { transform: rotate(360deg); }
}

@keyframes splash-progress {
  from { transform: translateX(135%); }
  to { transform: translateX(-270%); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.departments-home {
  display: grid;
  gap: 26px;
}

.departments-hero {
  position: relative;
  isolation: isolate;
  min-height: 404px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 39px clamp(22px, 5vw, 68px) 35px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% -18%, rgba(139, 224, 97, 0.28), transparent 39%),
    radial-gradient(circle at 8% 115%, rgba(92, 179, 56, 0.23), transparent 33%),
    linear-gradient(145deg, #0f150d 0%, #172414 48%, #23491a 100%);
  box-shadow: 0 26px 70px rgba(22, 43, 16, 0.2);
  overflow: hidden;
}

.departments-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.departments-hero-orbit {
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(148, 225, 111, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.departments-hero-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ee16b;
  box-shadow: 0 0 0 7px rgba(142, 225, 107, 0.08), 0 0 25px rgba(142, 225, 107, 0.35);
}

.departments-hero-orbit.orbit-one {
  top: -185px;
  right: -80px;
  animation: splash-orbit 18s linear infinite;
}

.departments-hero-orbit.orbit-one::after { top: 72%; left: 6%; }

.departments-hero-orbit.orbit-two {
  bottom: -235px;
  left: -75px;
  width: 430px;
  height: 430px;
  animation: splash-orbit 23s linear infinite reverse;
}

.departments-hero-orbit.orbit-two::after { top: 18%; right: 8%; }

.departments-brand-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.departments-logo-wrap {
  position: relative;
  width: 196px;
  height: 96px;
  display: grid;
  place-items: center;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 21px 44px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.departments-logo-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(53, 110, 35, 0.14));
}

.departments-logo-halo {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: rgba(111, 200, 73, 0.18);
  filter: blur(31px);
  animation: splash-glow 2.5s ease-in-out infinite alternate;
}

.departments-system-label {
  margin-top: 18px;
  color: #9fdf83;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.departments-brand-block h2 {
  max-width: 760px;
  margin: 7px 0 5px;
  font-size: clamp(24px, 3vw, 37px);
  line-height: 1.45;
  letter-spacing: -0.045em;
}

.departments-brand-block > p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.daily-motivation {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 15px 21px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(13px);
}

.daily-motivation-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a9e68e;
  font-size: 11px;
  font-weight: 900;
}

.daily-motivation blockquote {
  margin: 5px 0 6px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 850;
  line-height: 1.7;
}

.daily-motivation > small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
}

.daily-motivation > small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8cdb68;
  box-shadow: 0 0 0 4px rgba(140, 219, 104, 0.09);
}

.departments-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}

.departments-heading > div > span {
  color: var(--green-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.departments-heading h3 {
  margin: 2px 0 0;
  font-size: clamp(22px, 3vw, 29px);
  letter-spacing: -0.04em;
}

.departments-heading p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.departments-secure-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.departments-secure-pill .icon { color: var(--green-700); }

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

.department-card {
  position: relative;
  min-width: 0;
  min-height: 373px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(222, 228, 219, 0.94);
  border-radius: 25px;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 0 0, var(--department-soft), transparent 40%),
    #fff;
  box-shadow: 0 14px 36px rgba(28, 43, 23, 0.07);
  text-align: right;
  overflow: hidden;
  animation: department-card-in 430ms cubic-bezier(.2,.8,.2,1) both;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.department-card:nth-child(2) { animation-delay: 65ms; }
.department-card:nth-child(3) { animation-delay: 130ms; }

.department-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--department-accent), transparent);
}

.department-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--department-accent) 34%, #dfe5db);
  box-shadow: 0 24px 50px var(--department-glow);
}

.department-card:active { transform: translateY(-2px) scale(0.99); }

.department-card-shine {
  position: absolute;
  top: -70px;
  left: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--department-soft);
  opacity: 0.68;
  transition: transform 240ms ease;
}

.department-card:hover .department-card-shine { transform: scale(1.15); }

.department-card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.department-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--department-accent);
  background: var(--department-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--department-accent) 12%, transparent);
}

.department-index {
  color: color-mix(in srgb, var(--department-accent) 36%, #cbd3c7);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.department-card-copy {
  position: relative;
  display: block;
  margin-top: 22px;
}

.department-card-copy > strong {
  display: block;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.035em;
}

.department-card-copy > small {
  min-height: 65px;
  display: block;
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.8;
}

.department-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.department-tags i {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--department-accent) 13%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--department-accent) 76%, var(--ink-800));
  background: color-mix(in srgb, var(--department-soft) 76%, #fff);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.department-metrics {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 17px;
}

.department-metrics > span {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #edf0eb;
  border-radius: 13px;
  background: rgba(250, 251, 249, 0.88);
}

.department-metrics bdi,
.department-metrics small {
  display: block;
}

.department-metrics bdi {
  color: var(--department-accent);
  font-size: 16px;
  font-weight: 950;
}

.department-metrics small {
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.4;
}

.department-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0eb;
  color: var(--department-accent);
}

.department-card-footer > strong { font-size: 12px; }

.department-card-footer > i {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--department-soft);
  font-style: normal;
  transition: transform 180ms ease;
}

.department-card:hover .department-card-footer > i { transform: translateX(-3px); }

@keyframes department-card-in {
  from { opacity: 0; transform: translateY(13px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(390px, 0.88fr) minmax(460px, 1.12fr);
  background: linear-gradient(180deg, #fff, #fbfcfa);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5.8vw, 82px);
  animation: login-panel-in 580ms cubic-bezier(.2,.8,.2,1) both;
}

.login-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}

.login-logo {
  width: 142px;
  height: 68px;
  object-fit: contain;
  object-position: right center;
}

.login-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--green-100);
  border-radius: 999px;
  color: var(--green-800);
  background: var(--green-50);
  font-size: 11px;
  font-weight: 850;
}

.login-panel h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.045em;
}

.login-panel > p {
  margin: 0 0 24px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.8;
}

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

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-left: 45px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--ink-500);
  background: transparent;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease;
}

.password-toggle:hover { color: var(--green-700); background: var(--green-50); }

.secured-input { position: relative; }
.secured-input > .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 14px;
  color: var(--ink-500);
  transform: translateY(-50%);
}
.secured-input input { padding-right: 43px; }

.password-policy {
  display: block;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 11px;
}

.login-submit {
  min-height: 52px;
  margin-top: 6px;
  font-size: 14px;
  box-shadow: 0 13px 26px rgba(71, 143, 45, 0.2);
}

.login-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  color: #70501b;
  background: var(--warning-soft);
  font-size: 14px;
  line-height: 1.7;
}

.login-note strong {
  color: #5f4318;
}

.login-note.secure-note {
  color: var(--green-800);
  background: var(--green-50);
}

.login-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 17px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 750;
}

.login-trust-row span { display: inline-flex; align-items: center; gap: 4px; }
.login-trust-row .icon { color: var(--green-700); }

.biometric-consent {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--green-100);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfef9, var(--green-50));
  cursor: pointer;
}

.biometric-consent input { width: 18px; height: 18px; accent-color: var(--green-600); }
.biometric-consent-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--green-700);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.biometric-consent strong,
.biometric-consent small { display: block; }
.biometric-consent strong { color: var(--ink-800); font-size: 12px; }
.biometric-consent small { margin-top: 2px; color: var(--ink-500); font-size: 10px; line-height: 1.5; }

.biometric-login-button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 179, 56, 0.24);
  border-radius: 16px;
  color: var(--ink-800);
  background: linear-gradient(135deg, #fff, var(--green-50));
  text-align: right;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.biometric-login-button:hover { transform: translateY(-1px); border-color: var(--green-500); box-shadow: var(--shadow-md); }
.biometric-login-button:disabled { opacity: 0.68; cursor: wait; }
.fingerprint-button-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--green-700), var(--green-500));
  box-shadow: 0 9px 20px rgba(71, 143, 45, 0.22);
}
.biometric-login-button strong,
.biometric-login-button small { display: block; }
.biometric-login-button strong { font-size: 13px; }
.biometric-login-button small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.biometric-login-button > .icon { color: var(--green-700); transform: rotate(180deg); }

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: var(--ink-500);
  font-size: 10px;
}
.login-divider::before,
.login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid #f2caca;
  border-radius: 12px;
  color: #a12f2f;
  background: var(--danger-soft);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

.login-error .icon {
  margin-top: 1px;
  flex: 0 0 auto;
}

.device-lock-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(112, 201, 74, 0.15), transparent 20rem),
    linear-gradient(155deg, #fefefe, #eef7e9);
  overflow: hidden;
}
.device-lock-orbit {
  position: absolute;
  width: min(92vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(92, 179, 56, 0.13);
  border-radius: 50%;
}
.device-lock-card {
  position: relative;
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(92, 179, 56, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(29, 45, 24, 0.13);
  backdrop-filter: blur(16px);
  text-align: center;
  animation: splash-content-in 480ms cubic-bezier(.2,.8,.2,1) both;
}
.device-lock-card > img { width: 140px; height: 62px; object-fit: contain; margin-bottom: 18px; }
.device-lock-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(145deg, var(--green-700), var(--green-500));
  box-shadow: 0 16px 35px rgba(71, 143, 45, 0.28);
  animation: fingerprint-breathe 1.7s ease-in-out infinite;
}
.device-lock-card h1 { margin: 7px 0 5px; font-size: 26px; }
.device-lock-card > p { margin: 0 0 20px; color: var(--ink-500); font-size: 13px; line-height: 1.7; }
.device-lock-card .login-error { width: 100%; margin-bottom: 10px; text-align: right; }
.biometric-unlock-submit { width: 100%; min-height: 52px; }
.password-fallback-button {
  margin-top: 13px;
  border: 0;
  color: var(--green-800);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}
.device-lock-card > small { display: flex; align-items: center; gap: 5px; margin-top: 22px; color: var(--ink-500); font-size: 9px; }
.biometric-settings-action { width: 100%; margin-top: auto; }

@keyframes login-panel-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fingerprint-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 35px rgba(71, 143, 45, 0.25), 0 0 0 0 rgba(92, 179, 56, 0.13); }
  50% { transform: scale(1.04); box-shadow: 0 18px 38px rgba(71, 143, 45, 0.3), 0 0 0 12px rgba(92, 179, 56, 0); }
}

.access-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.access-summary > span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-600);
  background: #fff;
  font-size: 14px;
}

.access-summary i,
.account-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

.access-summary .account-disabled i,
.account-state.disabled i {
  background: var(--ink-500);
}

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

.user-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr) minmax(115px, 0.45fr) minmax(70px, auto) minmax(90px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.user-identity {
  min-width: 0;
}

.user-identity strong,
.user-identity span {
  display: block;
}

.user-identity strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.user-identity span {
  color: var(--ink-500);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-pill,
.account-state,
.protected-account {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink-600);
  background: #f1f4ef;
  font-size: 14px;
  font-weight: 800;
}

.account-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-state.active {
  color: var(--green-800);
  background: var(--green-100);
}

.protected-account {
  color: var(--ink-500);
  background: transparent;
}

.block-reason {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #f2cccc;
  border-radius: 14px;
  color: #9f3232;
  background: var(--danger-soft);
}

.order-notes h3 {
  white-space: pre-line;
}

.block-reason strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.block-reason p {
  margin: 5px 0 0;
  font-size: 14px;
}

.transition-box {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #cfe8c5;
  border-radius: 16px;
  background: var(--green-50);
}

.transition-box strong {
  font-size: 14px;
}

.transition-box p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.transition-fields {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 8px;
}

.transition-fields select,
.transition-fields input {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  font-size: 14px;
}

.override-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.6;
}

.override-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.permission-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 13px;
  color: var(--ink-500);
  background: #f3f5f1;
  font-size: 14px;
}

.permission-note.full {
  grid-column: 1 / -1;
  margin-top: 0;
}

.permission-note.danger-note {
  color: #b42318;
  background: #fee4e2;
}

.order-history {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.order-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.order-history h4 {
  margin: 0;
  font-size: 14px;
}

.order-history header span,
.history-loading {
  color: var(--ink-500);
  font-size: 14px;
}

.history-loading {
  padding: 12px;
  border-radius: 12px;
  background: #f7f9f5;
}

.history-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.history-entry > i {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 2px var(--green-100);
}

.history-entry strong,
.history-entry span {
  display: block;
}

.history-entry strong {
  font-size: 14px;
}

.history-entry span,
.history-entry time {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 14px;
}

.login-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.15), transparent 22rem),
    linear-gradient(145deg, #1b2d16, #438f2d 52%, #69be43);
  overflow: hidden;
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.login-visual::before {
  width: 520px;
  height: 520px;
}

.login-visual::after {
  width: 690px;
  height: 690px;
}

.visual-brand-watermark {
  position: absolute;
  left: -2vw;
  bottom: -16vh;
  color: rgba(255, 255, 255, 0.045);
  font-size: min(62vw, 680px);
  font-weight: 950;
  line-height: 1;
  transform: rotate(-8deg);
  user-select: none;
}

.visual-card {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
}

.visual-card > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.visual-card h2 {
  margin: 18px 0 10px;
  font-size: clamp(29px, 4vw, 47px);
  line-height: 1.35;
  letter-spacing: -0.055em;
}

.visual-card p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.9;
}

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

.visual-flow div {
  min-height: 100px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.visual-flow strong,
.visual-flow small {
  display: block;
}

.visual-flow strong {
  margin-top: 16px;
  font-size: 14px;
}

.visual-flow small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

.mobile-bottom-nav,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  :root { --sidebar: 224px; }
  .app-main { padding: 22px 22px 45px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-row { grid-template-columns: minmax(170px, 1.2fr) 0.75fr 0.7fr auto; }
  .order-row .hide-medium { display: none; }
  .reports-layout { grid-template-columns: 1fr; }
  .fulfillment-queue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sorter-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .sidebar { display: none; }
  .app-main { margin-right: 0; padding: 16px 16px 96px; }
  .topbar { margin-bottom: 15px; }
  .departments-home { gap: 20px; }
  .departments-hero {
    min-height: 385px;
    padding: 33px 22px 27px;
    border-radius: 27px;
  }
  .departments-logo-wrap { width: 180px; height: 89px; }
  .departments-grid { grid-template-columns: 1fr; gap: 13px; }
  .department-card { min-height: 330px; }
  .department-card-copy > small { min-height: 0; }
  .mobile-brand {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    padding: 7px;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
  .page-heading h1 { font-size: 20px; }
  .page-heading p { display: none; }
  .status-chip { display: none; }
  .hero { grid-template-columns: 1fr; padding: 23px; }
  .hero-visual { width: 100%; justify-self: stretch; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fulfillment-queue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .financial-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aggregation-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .aggregation-row .formula-values { grid-column: 2; text-align: right; }
  .aggregation-row .status-badge { grid-column: 3; grid-row: 1 / span 2; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 80;
    right: 12px;
    left: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 68px;
    display: grid;
    grid-template-columns: repeat(var(--mobile-columns, 5), 1fr);
    gap: 3px;
    padding: 6px;
    border: 1px solid rgba(222, 228, 219, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(24, 36, 20, 0.2);
    backdrop-filter: blur(18px);
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    border: 0;
    border-radius: 16px;
    color: var(--ink-500);
    background: transparent;
    font-size: 14px;
    font-weight: 800;
  }
  .mobile-nav-item .icon { width: 20px; height: 20px; }
  .mobile-nav-item.active { color: var(--green-800); background: var(--green-100); }
  .has-department-dock .app-main { padding-bottom: 154px; }
  .mobile-bottom-nav.department-bottom-nav {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px;
    border-color: rgba(202, 216, 196, 0.92);
    border-radius: 25px;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 245, 0.96));
    box-shadow: 0 20px 50px rgba(25, 48, 18, 0.22), 0 2px 8px rgba(28, 54, 20, 0.08);
  }
  .department-nav-context {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 3px 0 1px;
  }
  .department-nav-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .department-nav-identity > span:last-child { min-width: 0; }
  .department-nav-identity small,
  .department-nav-identity strong { display: block; }
  .department-nav-identity small {
    margin-bottom: 1px;
    color: var(--ink-400);
    font-size: 8px;
    font-weight: 850;
  }
  .department-nav-identity strong {
    overflow: hidden;
    color: var(--green-900);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .department-nav-emblem {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(92, 179, 56, 0.24);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--green-500), var(--green-800));
    box-shadow: 0 7px 16px rgba(63, 142, 39, 0.24);
  }
  .department-nav-home {
    min-height: 31px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #dce8d8;
    border-radius: 11px;
    color: var(--green-800);
    background: #f4faF1;
    font-size: 9px;
    font-weight: 900;
  }
  .department-nav-items {
    display: grid;
    grid-template-columns: repeat(var(--department-columns, 1), minmax(0, 1fr));
    gap: 4px;
  }
  .department-nav-item {
    position: relative;
    min-width: 0;
    min-height: 57px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    padding: 5px 2px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--ink-500);
    background: transparent;
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    transition: transform 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
  }
  .department-nav-icon {
    width: 27px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--green-700);
    background: var(--green-100);
  }
  .department-nav-item.active {
    border-color: rgba(44, 113, 26, 0.14);
    color: #fff;
    background: linear-gradient(145deg, #62b943, #397f25);
    box-shadow: 0 8px 18px rgba(54, 126, 33, 0.27);
  }
  .department-nav-item.active::before {
    position: absolute;
    top: 0;
    right: 24%;
    left: 24%;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: rgba(255, 255, 255, 0.88);
    content: "";
  }
  .department-nav-item.active .department-nav-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }
  .department-nav-item:active,
  .department-nav-home:active { transform: scale(0.96); }
  .mobile-menu-backdrop {
    display: flex;
    align-items: end;
    padding: 12px;
  }
  .mobile-menu-sheet {
    width: 100%;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }
  .mobile-menu-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .mobile-menu-sheet h3 { margin: 0; font-size: 15px; }
  .mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mobile-menu-item {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--ink-600);
    background: #fafbf9;
    font-size: 14px;
    font-weight: 800;
  }
  .login-screen { grid-template-columns: 1fr; }
  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .login-visual { display: none; }
}

@media (max-width: 590px) {
  .login-brand-row { margin-bottom: 18px; }
  .login-logo { width: 124px; height: 58px; }
  .login-security-badge { padding: 6px 8px; font-size: 9px; }
  .login-panel h1 { font-size: 29px; }
  .login-panel > p { margin-bottom: 18px; font-size: 12px; }
  .login-form { gap: 12px; }
  .login-note { margin-top: 14px; padding: 10px 12px; font-size: 11px; }
  .login-trust-row { margin-top: 14px; }
  .device-lock-card { padding: 25px 20px; border-radius: 25px; }
  .splash-logo-stage { height: 125px; }
  .app-main { padding: 13px 12px 94px; }
  .topbar-actions { gap: 6px; }
  .demo-chip { display: none; }
  .departments-hero {
    min-height: 0;
    gap: 20px;
    padding: 27px 15px 18px;
    border-radius: 24px;
  }
  .departments-logo-wrap {
    width: 157px;
    height: 78px;
    padding: 10px 17px;
    border-radius: 21px;
  }
  .departments-system-label { margin-top: 15px; font-size: 10px; }
  .departments-brand-block h2 { margin-top: 6px; font-size: 22px; }
  .departments-brand-block > p { padding: 0 5px; font-size: 11px; }
  .daily-motivation { padding: 12px 13px 11px; border-radius: 17px; }
  .daily-motivation blockquote { margin: 4px 0; font-size: 14px; }
  .departments-heading { align-items: start; }
  .departments-heading h3 { font-size: 22px; }
  .departments-heading p { max-width: 235px; font-size: 11px; }
  .departments-secure-pill { width: 35px; min-height: 35px; justify-content: center; padding: 0; }
  .departments-secure-pill .icon { width: 17px; height: 17px; }
  .departments-secure-pill { font-size: 0; }
  .department-card { min-height: 315px; padding: 18px; border-radius: 21px; }
  .department-icon { width: 51px; height: 51px; border-radius: 16px; }
  .department-index { font-size: 27px; }
  .department-card-copy { margin-top: 16px; }
  .department-card-copy > strong { font-size: 20px; }
  .department-card-copy > small { margin-top: 5px; font-size: 11px; }
  .department-tags { margin-top: 9px; }
  .department-tags i { padding: 4px 7px; font-size: 8px; }
  .department-metrics { padding-top: 13px; }
  .department-metrics > span { padding: 8px; }
  .department-card-footer { margin-top: 11px; padding-top: 11px; }
  .hero { min-height: unset; padding: 21px 19px; border-radius: 22px; }
  .hero p { font-size: 14px; }
  .hero-visual { display: none; }
  .metrics-grid { gap: 9px; }
  .metric-card { min-height: 124px; padding: 14px; }
  .metric-value strong { font-size: 23px; }
  .section { margin-top: 20px; }
  .dashboard-columns { gap: 11px; }
  .panel-head { padding: 15px 14px 10px; }
  .panel-body { padding: 5px 14px 15px; }
  .pipeline-row { grid-template-columns: 92px 1fr 32px; gap: 7px; }
  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
  }
  .order-row .order-meta,
  .order-row .hide-mobile { display: none; }
  .order-row .order-status-cell { grid-column: 1; grid-row: 2; margin-right: 48px; }
  .order-row .row-action { grid-column: 2; grid-row: 1 / span 2; }
  .toolbar { padding: 10px; gap: 8px; }
  .search-box { min-width: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .toolbar > .btn { width: 100%; }
  .sorter-summary-grid { grid-template-columns: 1fr; }
  .aggregation-toolbar .toolbar-copy { width: 100%; }
  .aggregation-row { grid-template-columns: auto minmax(0, 1fr); }
  .aggregation-row .status-badge { grid-column: 2; grid-row: auto; width: fit-content; }
  .aggregation-row .formula-values { grid-column: 2; min-width: 0; }
  .control-banner { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
  .control-banner > .btn,
  .control-banner > .banner-actions,
  .control-banner > .verified-pill { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .banner-actions .btn { flex: 1; }
  .expense-head { align-items: stretch; flex-direction: column; }
  .expense-head .section-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .audit-record { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
  .audit-record time { display: none; }
  .audit-record .row-arrow { grid-column: 3; grid-row: 1; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .report-toolbar .report-actions { align-items: stretch; flex-direction: column-reverse; }
  .report-toolbar .report-actions > .btn { width: 100%; }
  .report-toolbar label { justify-content: space-between; }
  .report-toolbar .filter-select { max-width: 190px; }
  .financial-summary-grid { gap: 7px; }
  .financial-summary-grid article { padding: 11px; }
  .financial-summary-grid strong { font-size: 14px; }
  .daily-profit-row { grid-template-columns: 80px minmax(55px, 1fr) minmax(100px, auto); gap: 7px; }
  .report-section-grid { grid-template-columns: 1fr; }
  .notification-panel { width: 100%; }
  .notification-head { padding: 15px 13px; }
  .notification-head .text-button { font-size: 11px; }
  .page-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 142px; }
  .user-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
  }
  .user-row .role-pill { grid-column: 2; }
  .user-row .account-state { grid-column: 2; }
  .user-row .btn-compact,
  .user-row .protected-account { grid-column: 3; grid-row: 1 / span 3; }
  .transition-fields { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-body { padding: 17px; }
  .toast-stack { right: 12px; left: 12px; bottom: 91px; }
  .toast { min-width: 0; width: 100%; }
  .task-card { grid-template-columns: auto 1fr; }
  .task-card time { display: none; }
  .operation-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px; }
  .operation-row .status-badge { grid-column: 2; width: fit-content; }
  .operation-row .row-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .workflow-row .operation-row-icon { grid-row: 1 / span 3; }
  .workflow-row .btn-small { grid-column: 2 / 4; width: 100%; }
  .fulfillment-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fulfillment-row .custody-amount,
  .fulfillment-row .row-actions { grid-column: 2 / 4; }
  .fulfillment-row .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fulfillment-row .row-actions:empty { display: none; }
  .record-row .record-amount,
  .record-row .price-stack { grid-column: 2; text-align: right; }
  .record-row time { display: none; }
  .expense-record { grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
  .expense-record-value { grid-column: 2; min-width: 0; text-align: right; }
  .expense-record .expense-void { grid-column: 3; grid-row: 1 / span 2; }
  .commerce-strip { grid-template-columns: 1fr; }
  .custody-entry { grid-template-columns: auto minmax(0, 1fr) auto; }
  .custody-entry .custody-amount { grid-column: 2; }
  .custody-entry time { display: none; }
  .detail-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-action-box { align-items: stretch; flex-direction: column; }
  .operation-action-box > div:first-child { min-width: 0; }
  .inline-action-fields { width: 100%; min-width: 0; flex-direction: column; }
  .operation-action-box > .btn { width: 100%; }
  .fulfillment-queue-grid { grid-template-columns: 1fr; }
}

.sidebar-nav-section.purchase-nav-group {
  margin: 12px 0 4px;
  padding: 7px;
  border: 1px solid rgba(112, 201, 74, 0.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(92, 179, 56, 0.13), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.purchase-nav-group .sidebar-label {
  margin: 7px 9px 6px;
  color: #a6e28c;
  font-size: 12px;
  letter-spacing: 0;
}

.purchase-nav-group .nav-item {
  min-height: 43px;
  padding-inline: 10px;
}

.purchase-nav-group .nav-item.active {
  background: linear-gradient(135deg, #67bd42, #397e27);
}

.purchase-module-shell {
  position: relative;
  margin-bottom: 16px;
  border: 1px solid rgba(72, 143, 45, 0.19);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 15%, rgba(124, 220, 82, 0.22), transparent 16rem),
    linear-gradient(128deg, #11180f 0%, #223c1b 54%, #356f24 100%);
  box-shadow: 0 18px 44px rgba(31, 69, 21, 0.16);
  overflow: hidden;
}

.purchase-module-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, 0.06), transparent 62%);
}

.purchase-module-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 17px;
}

.purchase-module-emblem {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: #d7ffc6;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.purchase-module-intro h2 {
  margin: 1px 0 2px;
  font-size: 22px;
}

.purchase-module-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.purchase-module-kicker {
  color: #9fe57e;
  font-size: 11px;
  font-weight: 850;
}

.purchase-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(186, 237, 161, 0.24);
  border-radius: 999px;
  color: #d7ffc6;
  background: rgba(15, 27, 12, 0.36);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.purchase-module-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 0 12px 12px;
}

.purchase-module-tab {
  position: relative;
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.purchase-module-tab:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.purchase-module-tab.active {
  border-color: rgba(215, 255, 198, 0.65);
  color: #203e16;
  background: linear-gradient(135deg, #e7ffdd, #b6ee9e);
  box-shadow: 0 8px 20px rgba(5, 17, 2, 0.2);
}

.purchase-tab-index {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.purchase-module-tab.active .purchase-tab-index {
  color: #fff;
  background: #478f2d;
}

.purchase-module-tab small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 10px;
}

.purchase-module-tab.active small {
  background: rgba(37, 77, 24, 0.12);
}

.purchase-quick-actions {
  position: sticky;
  z-index: 18;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 16px;
  padding: 8px;
  border: 1px solid rgba(72, 143, 45, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(27, 54, 20, 0.11);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

.purchase-quick-actions::-webkit-scrollbar { display: none; }

.purchase-quick-label,
.purchase-quick-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.purchase-quick-label {
  color: #fff;
  background: linear-gradient(135deg, #4b982f, #2e6f20);
}

.purchase-quick-actions button {
  border: 1px solid #dce8d7;
  color: var(--ink-700);
  background: #f8fbf6;
  transition: 150ms ease;
}

.purchase-quick-actions button:hover:not(:disabled),
.purchase-quick-actions button:focus-visible {
  border-color: #9dcc8c;
  color: var(--green-800);
  background: var(--green-50);
  transform: translateY(-1px);
}

.purchase-quick-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.purchase-scope-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-right: auto;
  padding: 3px;
  border: 1px solid #dfe7dc;
  border-radius: 12px;
  background: #f1f4ef;
}

.purchase-scope-switch button {
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  background: transparent;
}

.purchase-scope-switch button.active {
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 3px 10px rgba(44, 106, 29, 0.2);
}

.sheet-ledger-wrap {
  width: 100%;
  max-height: min(67vh, 740px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a9c99d #edf1ea;
}

.sheet-ledger {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  direction: rtl;
  font-size: 12px;
}

.sheet-ledger th,
.sheet-ledger td {
  min-width: 96px;
  padding: 8px 9px;
  border-bottom: 1px solid #edf0eb;
  border-left: 1px solid #f0f2ee;
  color: var(--ink-800);
  background: #fff;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.sheet-ledger th {
  position: sticky;
  z-index: 3;
  top: 0;
  color: #42503e;
  background: #f1f5ef;
  box-shadow: inset 0 -1px #dce4d8;
  font-size: 11px;
  font-weight: 900;
}

.sheet-ledger th:first-child,
.sheet-ledger td:first-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 92px;
  box-shadow: -8px 0 16px rgba(22, 37, 18, 0.045), inset -1px 0 #edf0eb;
}

.sheet-ledger th:first-child {
  z-index: 5;
  background: #e9f0e6;
}

.sheet-ledger tbody tr:nth-child(even) td {
  background: #fbfcfa;
}

.sheet-ledger tbody tr:hover td {
  background: #f5fbf2;
}

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

.sheet-ledger-empty {
  height: 130px;
  color: var(--ink-500) !important;
  text-align: center !important;
}

.ledger-key button,
.ledger-open {
  border: 0;
  color: var(--green-800);
  background: transparent;
  font-weight: 900;
}

.ledger-key button {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-key small {
  display: block;
  max-width: 100%;
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-open {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-100);
}

.ledger-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ledger-actions button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e7d4;
  border-radius: 9px;
  color: var(--green-800);
  background: var(--green-50);
}

.ledger-actions button:hover,
.ledger-actions button:focus-visible {
  border-color: #8fc77c;
  background: #e4f5dd;
}

.ledger-actions button.danger {
  border-color: #f0cece;
  color: #b63636;
  background: #fff2f2;
}

.ledger-actions button.danger:hover,
.ledger-actions button.danger:focus-visible {
  border-color: #df9696;
  background: #ffe5e5;
}

.shipment-number-action {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px dashed #8fc77c;
  border-radius: 10px;
  color: var(--green-800);
  background: var(--green-50);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.shipment-number-action:hover,
.shipment-number-action:focus-visible {
  border-style: solid;
  background: #e4f5dd;
  box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.1);
}

.shipment-number-action.is-linked {
  border-style: solid;
  border-color: #a9c9f7;
  color: #275fae;
  background: #e8f1ff;
}

.shipment-link-summary strong {
  overflow-wrap: anywhere;
}

.shipment-link-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 7px;
}

.shipment-link-flow span {
  padding: 9px 10px;
  border: 1px solid #d9e7d4;
  border-radius: 11px;
  color: var(--ink-600);
  background: #f8fbf6;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.modal-foot-spacer {
  flex: 1;
}

.ledger-state,
.secret-cell {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #4f5a4c;
  background: #edf0eb;
  font-size: 10px;
  font-weight: 850;
}

.ledger-state.success { color: #2f731e; background: #e6f6df; }
.ledger-state.warning { color: #946017; background: #fff1d6; }
.ledger-state.danger { color: #aa3030; background: #ffe9e9; }
.ledger-state.info { color: #275fae; background: #e8f1ff; }
.ledger-state.muted { color: #6d766a; background: #eef0ed; }
.secret-cell { color: #5e4b8c; background: #f1edff; }
.positive-value { color: #347c22 !important; font-weight: 850; }
.negative-value { color: #bd3838 !important; font-weight: 850; }
.urgent-ledger-row td:first-child { box-shadow: inset -3px 0 #ed9b2d, -8px 0 16px rgba(22, 37, 18, 0.045); }

.purchase-metrics-grid,
.purchase-dashboard-metrics {
  margin-bottom: 16px;
}

.purchase-dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.purchase-dashboard-toolbar > div:first-child strong,
.purchase-dashboard-toolbar > div:first-child span {
  display: block;
}

.purchase-dashboard-toolbar > div:first-child strong { font-size: 14px; }
.purchase-dashboard-toolbar > div:first-child span { margin-top: 2px; color: var(--ink-500); font-size: 11px; }

.purchase-date-fields {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.purchase-date-fields label {
  display: grid;
  gap: 4px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 800;
}

.purchase-date-fields input {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-800);
  background: #f9faf8;
  direction: ltr;
}

.purchase-finance-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
  margin-bottom: 16px;
}

.purchase-balance-card,
.purchase-kpi-panel {
  padding: 18px;
  border: 1px solid #dbe7d6;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fff5, #fff);
  box-shadow: var(--shadow-sm);
}

.purchase-balance-card.is-danger {
  border-color: #f2c9c9;
  background: linear-gradient(145deg, #fff6f6, #fff);
}

.purchase-balance-card header,
.purchase-kpi-panel header,
.purchase-card-health,
.purchase-card-health > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.purchase-balance-card header div small,
.purchase-balance-card header div strong,
.purchase-kpi-panel header div small,
.purchase-kpi-panel header div strong {
  display: block;
}

.purchase-balance-card header div small,
.purchase-kpi-panel header div small { color: var(--ink-500); font-size: 10px; }
.purchase-balance-card header div strong,
.purchase-kpi-panel header div strong { margin-top: 2px; font-size: 15px; }

.purchase-balance-card > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.purchase-balance-card > div > span,
.purchase-kpi-list > span {
  padding: 11px;
  border: 1px solid rgba(218, 225, 214, 0.75);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.75);
}

.purchase-balance-card small,
.purchase-kpi-list small { display: block; color: var(--ink-500); font-size: 9px; }
.purchase-balance-card strong,
.purchase-kpi-list strong { display: block; margin-top: 3px; font-size: 13px; }
.purchase-balance-card p { margin: 12px 0 0; color: var(--ink-600); font-size: 11px; }
.purchase-balance-card p .icon { margin-left: 4px; vertical-align: middle; }

.purchase-kpi-panel header { justify-content: space-between; }
.purchase-kpi-panel header > span { color: var(--green-700); }
.purchase-kpi-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }

.purchase-coupon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.purchase-coupon-grid article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfa;
}

.purchase-coupon-grid article > span {
  grid-column: 1 / -1;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 900;
}

.purchase-coupon-grid small { display: block; color: var(--ink-500); font-size: 9px; }
.purchase-coupon-grid strong { display: block; margin-top: 3px; font-size: 12px; }
.purchase-ledger-body { padding: 0; }
.purchase-ledger-body .sheet-ledger-wrap { border: 0; border-radius: 0 0 18px 18px; box-shadow: none; }

.purchase-card-health {
  justify-content: space-between;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid #d9e8d3;
  border-radius: 17px;
  background: #f6fff2;
}

.purchase-card-health.is-danger { border-color: #f1cccc; background: #fff5f5; }
.purchase-card-health strong,
.purchase-card-health small { display: block; }
.purchase-card-health strong { font-size: 13px; }
.purchase-card-health small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }

@media (max-width: 1100px) {
  .purchase-module-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .purchase-finance-grid { grid-template-columns: 1fr; }
  .purchase-coupon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .purchase-module-intro { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .purchase-source-badge { grid-column: 1 / -1; justify-self: start; }
  .purchase-module-tabs { display: none; }
  .purchase-quick-actions { top: 6px; margin-bottom: 12px; }
  .purchase-dashboard-toolbar { align-items: stretch; flex-direction: column; }
  .purchase-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-date-fields input,
  .purchase-date-fields .btn { width: 100%; }
  .purchase-balance-card > div,
  .purchase-kpi-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-ledger-wrap { max-height: 62vh; border-radius: 15px; }
}

@media (max-width: 590px) {
  .mobile-bottom-nav.department-bottom-nav {
    right: 7px;
    left: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
    gap: 4px;
    padding: 5px;
    border-radius: 21px;
  }
  .department-nav-context { min-height: 32px; }
  .department-nav-item { min-height: 53px; font-size: 9px; }
  .department-nav-home { padding-inline: 8px; }
  .purchase-module-intro { gap: 10px; }
  .purchase-module-emblem { width: 43px; height: 43px; border-radius: 14px; }
  .purchase-module-intro h2 { font-size: 18px; }
  .purchase-module-intro p { display: none; }
  .purchase-source-badge { font-size: 9px; }
  .purchase-quick-actions { margin-inline: -2px; padding: 6px; border-radius: 14px; }
  .purchase-quick-label,
  .purchase-quick-actions button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
  .purchase-dashboard-toolbar { padding: 12px; }
  .purchase-date-fields,
  .purchase-balance-card > div,
  .purchase-kpi-list,
  .purchase-coupon-grid { grid-template-columns: 1fr; }
  .purchase-card-health { align-items: stretch; flex-direction: column; }
  .purchase-card-health .verified-pill { align-self: start; }
  .sheet-ledger th,
  .sheet-ledger td { min-width: 84px; padding: 7px; }
  .sheet-ledger th:first-child,
  .sheet-ledger td:first-child { min-width: 80px; }
}

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

/* Spreadsheet workspace: familiar, fast and touch friendly */
.sheet-workbook {
  --sheet-row-gutter: 32px;
  --sheet-key-width: 58px;
  --sheet-row-height: 31px;
  position: relative;
  border: 1px solid #d9e5d5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 69, 21, 0.09);
  overflow: hidden;
}

.sheet-workbook-toolbar {
  min-height: 51px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #dce7d8;
  background: linear-gradient(180deg, #fbfef9, #f4f9f1);
}

.sheet-workbook-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.sheet-workbook-title > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #cfe1c9;
  border-radius: 10px;
  color: #3d8428;
  background: #eaf7e5;
}

.sheet-workbook-title strong,
.sheet-workbook-title small { display: block; }
.sheet-workbook-title strong { color: #2f3d2b; font-size: 12px; }
.sheet-workbook-title small { margin-top: 1px; color: #73806f; font-size: 9px; }

.sheet-workbook-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sheet-tool-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d7e3d3;
  border-radius: 9px;
  color: #50604b;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sheet-tool-button:hover,
.sheet-tool-button:focus-visible {
  border-color: #91c480;
  color: #347422;
  background: #eff9eb;
  transform: translateY(-1px);
}

.sheet-tool-button.is-active {
  border-color: #63aa4b;
  color: #fff;
  background: #478f2d;
}

.sheet-scroll-controls {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dce6d9;
  border-radius: 10px;
  background: #edf3ea;
}

.sheet-scroll-controls .sheet-tool-button {
  width: 30px;
  min-height: 27px;
  padding: 3px;
  border: 0;
  background: transparent;
}

.sheet-scroll-controls .sheet-tool-button:hover,
.sheet-scroll-controls .sheet-tool-button:focus-visible { background: #fff; }

.sheet-row-size-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dce6d9;
  border-radius: 10px;
  background: #edf3ea;
}

.sheet-row-size-controls .sheet-tool-button {
  width: 28px;
  min-height: 27px;
  padding: 3px;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1;
}

.sheet-row-size-value {
  min-width: 42px;
  padding: 0 3px;
  border: 0;
  color: #50604b;
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.sheet-workbook .sheet-ledger-wrap {
  max-height: min(70vh, 780px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-behavior: smooth;
  scrollbar-color: #8dbb7e #edf3ea;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

.sheet-workbook .sheet-ledger-wrap::-webkit-scrollbar { width: 11px; height: 11px; }
.sheet-workbook .sheet-ledger-wrap::-webkit-scrollbar-track { background: #edf3ea; }
.sheet-workbook .sheet-ledger-wrap::-webkit-scrollbar-thumb { border: 2px solid #edf3ea; border-radius: 999px; background: #91bd82; }
.sheet-workbook .sheet-ledger-wrap::-webkit-scrollbar-corner { background: #edf3ea; }

.sheet-workbook .sheet-ledger {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.sheet-workbook .sheet-ledger th,
.sheet-workbook .sheet-ledger td {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  height: var(--sheet-row-height, 38px);
  padding: 6px 8px;
  border-bottom-color: #e7ede4;
  border-left-color: #e9eee7;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 100ms ease, box-shadow 100ms ease;
}

.sheet-workbook .sheet-ledger th {
  z-index: 6;
  height: 46px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #354330;
  background: linear-gradient(180deg, #f6faf4, #eaf2e7);
  box-shadow: inset 0 -1px #d0dfcb;
  vertical-align: bottom;
}

.sheet-column-letter {
  display: block;
  margin-bottom: 3px;
  color: #7f9279;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.sheet-column-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-column-pin {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #809079;
  background: rgba(255, 255, 255, 0.66);
  opacity: 0;
  cursor: pointer;
  transition: opacity 120ms ease, color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.sheet-workbook .sheet-ledger th:hover .sheet-column-pin,
.sheet-column-pin:focus-visible,
.sheet-column-pin.is-active {
  opacity: 1;
}

.sheet-column-pin.is-active {
  border-color: #7fbd69;
  color: #347422;
  background: #e8f6e3;
}

.sheet-key-column .sheet-column-letter { visibility: hidden; }
.sheet-workbook .sheet-ledger td.sheet-key-column.ledger-key small { display: none; }
.sheet-workbook .sheet-ledger td.sheet-key-column.ledger-key button,
.sheet-workbook .sheet-ledger td.sheet-key-column.ledger-key bdi {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-column-resizer {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: -3px;
  width: 7px;
  border-radius: 999px;
  cursor: col-resize;
  touch-action: none;
}

.sheet-column-resizer:hover,
.sheet-column-resizer.is-resizing { background: #69ae52; }

.sheet-workbook .sheet-ledger th { position: sticky; }
.sheet-workbook .sheet-ledger th:first-child,
.sheet-workbook .sheet-ledger td:first-child {
  right: 0;
  width: var(--sheet-row-gutter);
  min-width: var(--sheet-row-gutter);
  max-width: var(--sheet-row-gutter);
  padding-inline: 5px;
  color: #778573;
  background: #eff4ed;
  box-shadow: inset -1px 0 #d9e4d5, -5px 0 12px rgba(28, 51, 21, 0.035);
  text-align: center;
  user-select: none;
}

.sheet-workbook .sheet-ledger th:first-child { z-index: 10; background: #e4eee1; }

.sheet-workbook .sheet-ledger th.is-sheet-pinned,
.sheet-workbook .sheet-ledger td.is-sheet-pinned {
  position: sticky;
  z-index: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: -8px 0 15px rgba(28, 51, 21, 0.055), inset -1px 0 #dde7da;
}

.sheet-workbook .sheet-ledger th.is-sheet-pinned { z-index: 9; background: #e7f0e4; }
.sheet-workbook .sheet-ledger td.is-sheet-pinned { background: #fff; }
.sheet-workbook .sheet-ledger tbody tr:nth-child(even) td:first-child { background: #eaf1e7; }
.sheet-workbook .sheet-ledger tbody tr:nth-child(even) td.is-sheet-pinned { background: #f7faf6; }
.sheet-workbook .sheet-ledger tbody tr:hover td { background: #eff9eb; }
.sheet-workbook .sheet-ledger tbody tr:hover td:first-child { background: #dfeeda; }
.sheet-workbook .sheet-ledger tbody tr:hover td.is-sheet-pinned { background: #e9f6e4; }

.sheet-workbook .sheet-ledger td.sheet-cell-selected {
  position: relative;
  z-index: 5;
  background: #edf8e9 !important;
  box-shadow: inset 0 0 0 2px #5eaa45 !important;
}

.sheet-workbook .sheet-ledger tr.is-basket-selected td { background: #f0faec; }
.sheet-workbook .sheet-ledger tr.is-basket-selected td:first-child,
.sheet-workbook .sheet-ledger tr.is-basket-selected td:nth-child(2),
.sheet-workbook .sheet-ledger tr.is-basket-selected td:nth-child(3) { background: #e3f4dd; }
.sheet-workbook .sheet-ledger tr.is-basket-selected td.is-sheet-pinned { background: #e3f4dd; }
.sheet-workbook .sheet-ledger tr.is-basket-selected td:first-child { box-shadow: inset 4px 0 #58a63f, inset -1px 0 #d9e4d5; }

.sheet-workbook.is-compact .sheet-ledger th,
.sheet-workbook.is-compact .sheet-ledger td {
  height: var(--sheet-row-height, 31px);
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 11px;
}

.sheet-workbook.is-compact .sheet-ledger th { height: 39px; font-size: 10px; }

.sheet-workbook.is-expanded {
  position: fixed;
  z-index: 260;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px));
  left: max(8px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - max(24px, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 14px)));
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(13, 30, 8, 0.34);
}

.sheet-workbook.is-expanded::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgba(13, 25, 10, 0.42);
  backdrop-filter: blur(4px);
}

.sheet-workbook.is-expanded .sheet-workbook-toolbar {
  position: relative;
  z-index: 50;
  top: auto;
  min-height: 94px;
  height: 94px;
  max-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 34px 36px;
  align-content: center;
  gap: 7px;
  flex: 0 0 94px;
  overflow: visible;
  isolation: isolate;
  box-shadow: 0 5px 18px rgba(31, 69, 21, 0.09);
}
.sheet-workbook.is-expanded .sheet-workbook-title {
  min-width: 0;
  justify-self: center;
  margin-left: 0;
  padding-inline: 44px;
  text-align: center;
}
.sheet-workbook.is-expanded .sheet-workbook-actions {
  position: static;
  z-index: 52;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.sheet-workbook.is-expanded .sheet-workbook-actions::-webkit-scrollbar { display: none; }
.sheet-workbook.is-expanded [data-sheet-expand] {
  position: absolute;
  z-index: 55;
  top: 9px;
  left: 9px;
  border-color: #82b873;
  color: #2f7420;
  background: #edf8e9;
}
.sheet-workbook.is-expanded .sheet-ledger-wrap {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 0;
  max-height: none;
  flex: 1 1 0;
}
body:has(.sheet-workbook.is-expanded) { overflow: hidden; }

.division-ledger-row { cursor: pointer; }
.division-ledger-row:focus-visible { outline: 3px solid rgba(92, 179, 56, 0.28); outline-offset: -3px; }
.section-detail-link { color: #397f28; font-weight: 900; text-decoration: underline; text-decoration-color: #b9d9af; text-underline-offset: 3px; }

.shipment-cell-cart {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid #bfd5b8;
  border-radius: 11px;
  color: #315d25;
  background: #fff;
  box-shadow: 0 4px 11px rgba(38, 75, 27, 0.09);
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.shipment-cell-cart:hover,
.shipment-cell-cart:focus-visible { transform: translateY(-1px); border-color: #66ad4f; background: #eff9eb; box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.12); }
.shipment-cell-cart.is-basket-item { border-color: #4f9639; color: #fff; background: #58a63f; }
.shipment-cell-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #ee5b2b;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}
.shipment-cell-cart.is-basket-item .shipment-cell-cart-badge { background: #255f1b; }

.shipment-basket-fab {
  position: fixed;
  z-index: 90;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #172219;
  border-radius: 50%;
  color: #172219;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 38px rgba(20, 34, 18, 0.24), inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.shipment-basket-fab:hover,
.shipment-basket-fab:focus-visible { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(20, 34, 18, 0.29); }
.shipment-basket-fab.has-items { border-color: #397f28; color: #397f28; }
.shipment-basket-fab-count {
  position: absolute;
  top: -7px;
  left: -5px;
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #ed5a2b;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}
.shipment-basket-fab:not(.has-items) .shipment-basket-fab-count { background: #7f8a7b; }

.shipment-basket-drawer-backdrop {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: rgba(15, 25, 13, 0.46);
  backdrop-filter: blur(5px);
}
.shipment-basket-drawer {
  width: min(430px, calc(100vw - 20px));
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0 25px 25px 0;
  background: #fff;
  box-shadow: 20px 0 70px rgba(12, 25, 8, 0.28);
  animation: shipmentDrawerIn 210ms ease-out both;
}
@keyframes shipmentDrawerIn { from { transform: translateX(-28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.shipment-basket-drawer .modal-head { flex: 0 0 auto; padding: 20px 20px 16px; border-bottom: 1px solid #e2eadf; background: linear-gradient(145deg, #f7fcf5, #fff); }
.shipment-basket-title-line { display: flex; align-items: center; gap: 11px; }
.shipment-basket-title-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #4b9634; }
.shipment-basket-drawer-form { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.shipment-basket-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 18px 12px; }
.shipment-basket-drawer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 17px; }
.shipment-basket-drawer-stats span { padding: 10px 9px; border: 1px solid #dce9d8; border-radius: 13px; text-align: center; background: #f7fbf5; }
.shipment-basket-drawer-stats small,
.shipment-basket-drawer-stats strong { display: block; }
.shipment-basket-drawer-stats small { color: #768272; font-size: 9px; }
.shipment-basket-drawer-stats strong { margin-top: 3px; color: #30442a; font-size: 13px; }
.shipment-basket-drawer-stats .basket-total-stat {
  grid-column: 1 / -1;
  border-color: #9dcf8c;
  background: linear-gradient(145deg, #edf9e9, #f8fcf6);
}
.shipment-basket-drawer-stats .basket-total-stat small { color: #3f752f; font-size: 10px; font-weight: 900; }
.shipment-basket-drawer-stats .basket-total-stat strong { color: #2e6f1f; font-size: 19px; }
.shipment-basket-drawer .field input { min-height: 49px; border-width: 1.5px; border-color: #a9c99e; font-size: 14px; font-weight: 850; }
.shipment-basket-drawer .field input:focus { border-color: #4f9639; box-shadow: 0 0 0 4px rgba(79, 150, 57, 0.12); }
.shipment-basket-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 9px; }
.shipment-basket-list-head strong { color: #33462d; font-size: 12px; }
.shipment-basket-list-head span { padding: 4px 8px; border-radius: 999px; color: #397f28; background: #eaf6e6; font-size: 9px; font-weight: 900; }
.basket-section-list { display: grid; gap: 8px; }
.basket-section-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px; border: 1px solid #dbe7d7; border-radius: 14px; background: #fbfdf9; }
.basket-section-open { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 5px 6px; text-align: right; border-radius: 10px; }
.basket-section-open:hover,
.basket-section-open:focus-visible { background: #eef8ea; }
.basket-section-open strong,
.basket-section-open small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-section-open strong { color: #2e4129; font-size: 11px; }
.basket-section-open small { margin-top: 3px; color: #748070; font-size: 9px; }
.basket-section-meta { color: #4e5e49; font-size: 9px; font-weight: 850; white-space: nowrap; }
.basket-remove-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #efcdcd; border-radius: 9px; color: #b33d3d; background: #fff3f3; }
.basket-overflow-note { color: #748070; font-size: 10px; text-align: center; }
.shipment-basket-empty { padding: 34px 20px; border: 1px dashed #ccd9c7; border-radius: 16px; color: #6f7e6a; text-align: center; background: #fafcf9; }
.shipment-basket-empty .icon { width: 30px; height: 30px; margin-bottom: 9px; color: #7aa56c; }
.shipment-basket-empty strong,
.shipment-basket-empty small { display: block; }
.shipment-basket-empty small { margin-top: 5px; line-height: 1.7; }
.shipment-basket-drawer-foot { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe8dc; background: #fff; }
.shipment-basket-upload-button { min-height: 50px; font-size: 13px; box-shadow: 0 9px 22px rgba(66, 139, 45, 0.2); }
.shipment-basket-upload-button small { margin-inline-start: 6px; opacity: 0.8; font-size: 9px; }

.order-full-data-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-detail-modal { width: min(1040px, calc(100vw - 32px)); }
.order-linked-section { border: 1px solid transparent; border-radius: 13px; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.order-linked-section:hover { transform: translateY(-1px); border-color: #c8dfc0; background: #f5fbf2; }
.order-linked-section.is-focused { border-color: #67ac51; background: #eef9ea; box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.11); }
.order-linked-section .operation-row-main small { white-space: normal; line-height: 1.7; }

@media (max-width: 700px) {
  .sheet-workbook-toolbar { min-height: 47px; gap: 5px; padding: 7px; }
  .sheet-workbook-title small { display: none; }
  .sheet-workbook-title > span:first-child { width: 29px; height: 29px; }
  .sheet-tool-button span { display: none; }
  .sheet-tool-button { width: 31px; padding-inline: 5px; }
  .sheet-scroll-controls .sheet-tool-button { width: 27px; }
  .sheet-workbook .sheet-ledger-wrap { max-height: 64vh; }
  .sheet-workbook .sheet-ledger th,
  .sheet-workbook .sheet-ledger td { width: 84px; min-width: 84px; max-width: 84px; padding-inline: 6px; }
  .sheet-workbook .sheet-ledger th:first-child,
  .sheet-workbook .sheet-ledger td:first-child { width: 30px; min-width: 30px; max-width: 30px; padding-inline: 3px; }
  .sheet-workbook.is-expanded {
    top: max(12px, calc(env(safe-area-inset-top) + 7px));
    right: max(5px, env(safe-area-inset-right));
    bottom: max(7px, calc(env(safe-area-inset-bottom) + 4px));
    left: max(5px, env(safe-area-inset-left));
  }
  .sheet-workbook.is-expanded .sheet-workbook-toolbar {
    min-height: 90px;
    height: 90px;
    max-height: 90px;
    grid-template-rows: 31px 35px;
    gap: 6px;
    flex-basis: 90px;
    padding: 7px;
  }
  .sheet-workbook.is-expanded .sheet-workbook-title {
    max-width: 100%;
    padding-inline: 39px;
  }
  .sheet-workbook.is-expanded .sheet-workbook-title strong {
    max-width: 64vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sheet-workbook.is-expanded .sheet-workbook-actions {
    justify-content: flex-start;
    gap: 4px;
    padding-inline: 2px;
  }
  .sheet-workbook.is-expanded [data-sheet-expand] { top: 7px; left: 7px; }
  .sheet-workbook { --sheet-row-gutter: 30px; --sheet-key-width: 54px; border-radius: 16px; }
  .sheet-column-pin { opacity: 0.78; }
  .shipment-basket-fab { left: max(14px, env(safe-area-inset-left)); bottom: calc(78px + env(safe-area-inset-bottom)); width: 64px; height: 64px; }
  .shipment-basket-drawer { width: min(92vw, 410px); border-radius: 0 22px 22px 0; }
  .shipment-basket-drawer .modal-head { padding: 16px 15px 13px; }
  .shipment-basket-drawer-body { padding: 14px 13px 10px; }
  .shipment-basket-drawer-foot { padding-inline: 13px; }
  .order-full-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Premium departments command center */
.departments-home {
  gap: 22px;
}

.departments-hero.departments-hero-premium {
  min-height: 356px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(285px, 0.65fr);
  align-items: stretch;
  justify-content: initial;
  gap: 19px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  text-align: right;
  background:
    radial-gradient(circle at 85% -20%, rgba(140, 225, 104, 0.31), transparent 36%),
    radial-gradient(circle at -5% 118%, rgba(46, 135, 111, 0.24), transparent 36%),
    linear-gradient(138deg, #0b110a 0%, #152313 49%, #214718 100%);
  box-shadow: 0 28px 72px rgba(20, 39, 15, 0.22), inset 0 1px rgba(255, 255, 255, 0.05);
}

.departments-command-main {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 5px 8px 2px;
}

.departments-brand-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.departments-hero-premium .departments-logo-wrap {
  width: 154px;
  height: 75px;
  flex: 0 0 154px;
  padding: 10px 16px;
  border-radius: 20px;
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(255, 255, 255, 0.035);
}

.departments-brand-meta {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.departments-hero-premium .departments-system-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.075em;
}

.departments-live-badge,
.departments-live-panel header > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9eca2;
  font-size: 10px;
  font-weight: 900;
}

.departments-live-badge i,
.departments-live-panel header > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe16c;
  box-shadow: 0 0 0 5px rgba(143, 225, 108, 0.1), 0 0 18px rgba(143, 225, 108, 0.45);
  animation: departments-live-pulse 1.9s ease-in-out infinite;
}

.departments-command-main .departments-brand-block {
  align-items: flex-start;
  margin-top: 21px;
}

.departments-welcome-kicker {
  color: #9edf82;
  font-size: 11px;
  font-weight: 900;
}

.departments-command-main .departments-brand-block h2 {
  max-width: 690px;
  margin: 4px 0 3px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.38;
}

.departments-command-main .departments-brand-block > p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.58);
}

.departments-hero-premium .daily-motivation {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding: 12px 16px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 19px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
}

.daily-motivation-mark {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 230, 142, 0.2);
  border-radius: 16px;
  color: #abe990;
  background: rgba(132, 218, 95, 0.1);
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
}

.departments-hero-premium .daily-motivation blockquote {
  margin: 2px 0 3px;
  font-size: clamp(14px, 1.55vw, 18px);
  text-align: right;
}

.departments-live-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 18px 42px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(18px);
}

.departments-live-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.departments-live-panel time {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 700;
}

.departments-live-title {
  margin-top: 24px;
}

.departments-live-title small,
.departments-live-title strong,
.departments-live-title p {
  display: block;
}

.departments-live-title small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
}

.departments-live-title strong {
  margin-top: 2px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.departments-live-title p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

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

.departments-pulse-grid > span {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(8, 17, 7, 0.18);
}

.departments-pulse-grid strong,
.departments-pulse-grid small {
  display: block;
}

.departments-pulse-grid strong {
  color: #c1efac;
  font-size: 19px;
  font-weight: 950;
}

.departments-pulse-grid small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8.5px;
  font-weight: 750;
}

.departments-pulse-grid .has-alert strong { color: #ffd28a; }

.departments-security-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
}

.departments-security-line .icon { color: #a5e489; }

.department-card.department-card-premium {
  min-height: 390px;
  padding: 21px;
  border-color: color-mix(in srgb, var(--department-accent) 13%, #dfe5dc);
  border-radius: 25px;
  background:
    radial-gradient(circle at 8% -8%, var(--department-soft), transparent 39%),
    linear-gradient(155deg, #fff 40%, color-mix(in srgb, var(--department-soft) 33%, #fff));
  box-shadow: 0 16px 38px rgba(28, 43, 23, 0.075), inset 0 1px #fff;
}

.department-card-premium::before {
  right: 20px;
  left: 20px;
  height: 4px;
}

.department-card-premium::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(145deg, color-mix(in srgb, var(--department-accent) 20%, transparent), transparent 28%) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  content: "";
}

.department-card-watermark {
  position: absolute;
  left: -17px;
  bottom: 54px;
  color: var(--department-accent);
  opacity: 0.04;
  transform: rotate(-9deg);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.2,.8,.2,1);
}

.department-card-watermark .icon { width: 112px; height: 112px; }

.department-card-premium:hover {
  transform: translateY(-7px) scale(1.006);
  box-shadow: 0 26px 58px var(--department-glow), inset 0 1px #fff;
}

.department-card-premium:active {
  transform: translateY(-2px) scale(0.985);
  transition-duration: 90ms;
}

.department-card-premium:hover .department-card-watermark {
  opacity: 0.075;
  transform: rotate(-5deg) scale(1.08);
}

.department-card-premium .department-card-top {
  align-items: flex-start;
  gap: 10px;
}

.department-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.department-card-premium .department-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--department-accent) 14%, transparent), 0 9px 19px color-mix(in srgb, var(--department-accent) 10%, transparent);
}

.department-identity > span:last-child {
  min-width: 0;
}

.department-identity small,
.department-identity strong {
  display: block;
}

.department-identity small {
  color: var(--department-accent);
  font-size: 8px;
  font-weight: 900;
}

.department-identity strong {
  margin-top: 2px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.department-status {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--department-accent) 15%, var(--line));
  border-radius: 999px;
  color: var(--department-accent);
  background: color-mix(in srgb, var(--department-soft) 72%, #fff);
  font-size: 8px;
  font-weight: 900;
}

.department-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent);
}

.department-status.attention {
  border-color: #efd8aa;
  color: #a36713;
  background: #fff8e9;
}

.department-card-premium .department-card-copy {
  margin-top: 17px;
}

.department-card-premium .department-card-copy > small {
  min-height: 48px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.75;
}

.department-card-premium .department-tags {
  min-height: 45px;
  align-content: flex-start;
  margin-top: 8px;
}

.department-card-insights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
}

.department-primary-metric {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--department-accent) 14%, #e9eee7);
  border-radius: 15px;
  background: color-mix(in srgb, var(--department-soft) 62%, #fff);
}

.department-primary-metric small,
.department-primary-metric strong,
.department-primary-metric em {
  display: block;
}

.department-primary-metric small {
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 750;
}

.department-primary-metric strong {
  margin: 1px 0;
  color: var(--department-accent);
  font-size: 24px;
  line-height: 1.2;
}

.department-primary-metric em {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-card-premium .department-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.department-card-premium .department-metrics > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.department-card-premium .department-metrics bdi {
  flex: 0 0 auto;
  font-size: 14px;
}

.department-card-premium .department-metrics small {
  margin: 0;
  font-size: 7.5px;
  text-align: left;
}

.department-card-premium .department-card-footer {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding-top: 12px;
}

.department-card-footer > span small,
.department-card-footer > span strong {
  display: block;
}

.department-card-footer > span small {
  color: var(--ink-500);
  font-size: 7px;
}

.department-card-footer > span strong {
  margin-top: 1px;
  font-size: 11px;
}

@keyframes departments-live-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Main departments — strict logo, quote, cards hierarchy */
.departments-home-clean {
  width: min(1120px, 100%);
  margin-inline: auto;
  gap: 22px;
}

.departments-simple-header {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px clamp(18px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 50% -35%, rgba(92, 179, 56, 0.22), transparent 48%),
    linear-gradient(145deg, #17263a 0%, #0f1a2a 100%);
  box-shadow: 0 24px 58px rgba(15, 26, 42, 0.2), inset 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.departments-simple-header::before,
.departments-simple-header::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.departments-simple-header::before {
  width: 330px;
  height: 330px;
  top: -225px;
  right: -80px;
}

.departments-simple-header::after {
  width: 260px;
  height: 260px;
  bottom: -205px;
  left: -50px;
}

.departments-simple-logo {
  width: 190px;
  height: 92px;
  display: grid;
  place-items: center;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.22), 0 0 0 7px rgba(255, 255, 255, 0.035);
}

.departments-simple-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 11px rgba(51, 103, 36, 0.12));
}

.departments-simple-quote {
  width: min(720px, 100%);
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.departments-quote-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #a6df8d;
  background: rgba(134, 205, 103, 0.11);
}

.departments-simple-quote > div {
  min-width: 0;
}

.departments-simple-quote span {
  display: block;
  color: #a6df8d;
  font-size: 10px;
  font-weight: 900;
}

.departments-simple-quote blockquote {
  margin: 3px 0 0;
  color: #fff;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 850;
  line-height: 1.65;
}

.departments-simple-heading {
  padding-inline: 4px;
  text-align: center;
}

.departments-simple-heading > span {
  color: #3f7d32;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.departments-simple-heading h2 {
  margin: 3px 0 0;
  color: #17263a;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.04em;
}

.departments-simple-heading p {
  margin: 5px 0 0;
  color: #6b7685;
  font-size: 12px;
}

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

.department-simple-card {
  position: relative;
  min-width: 0;
  min-height: 184px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--department-accent) 15%, #dce2e8);
  border-radius: 24px;
  color: #17263a;
  background:
    radial-gradient(circle at 100% 0, var(--department-soft), transparent 46%),
    #fff;
  box-shadow: 0 14px 34px rgba(24, 39, 57, 0.075), inset 0 1px #fff;
  text-align: right;
  overflow: hidden;
  animation: department-simple-card-in 380ms cubic-bezier(.2,.8,.2,1) both;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
  -webkit-tap-highlight-color: transparent;
}

.department-simple-card:nth-child(2) { animation-delay: 55ms; }
.department-simple-card:nth-child(3) { animation-delay: 110ms; }

.department-simple-card::before {
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 20px;
  width: 4px;
  border-radius: 999px 0 0 999px;
  background: var(--department-accent);
  content: "";
}

.department-simple-card:hover,
.department-simple-card:focus-visible {
  border-color: color-mix(in srgb, var(--department-accent) 35%, #dce2e8);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--department-accent) 14%, transparent);
  transform: translateY(-5px);
}

.department-simple-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--department-accent) 22%, transparent);
  outline-offset: 3px;
}

.department-simple-card:active {
  transform: translateY(-1px) scale(0.975);
  transition-duration: 80ms;
}

.department-simple-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--department-accent) 12%, transparent);
  border-radius: 19px;
  color: var(--department-accent);
  background: var(--department-soft);
}

.department-simple-card > strong {
  min-width: 0;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 900;
  line-height: 1.5;
}

.department-simple-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--department-accent);
  background: var(--department-soft);
  transition: transform 170ms ease;
}

.department-simple-arrow .icon {
  transform: rotate(180deg);
}

.department-simple-card:hover .department-simple-arrow,
.department-simple-card:focus-visible .department-simple-arrow {
  transform: translateX(-4px);
}

@keyframes department-simple-card-in {
  from { opacity: 0; transform: translateY(11px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Wasal departments — brand-led team experience */
.departments-home-clean {
  position: relative;
  width: min(1160px, 100%);
  gap: 24px;
  padding: 14px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 7% 5%, rgba(97, 201, 71, 0.12), transparent 29%),
    radial-gradient(circle at 96% 14%, rgba(67, 147, 255, 0.1), transparent 28%),
    radial-gradient(circle at 10% 96%, rgba(155, 108, 240, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(252, 253, 250, 0.97), rgba(247, 249, 253, 0.92));
}

.departments-simple-header {
  min-height: 362px;
  padding: 40px clamp(20px, 5vw, 60px) 34px;
  border-color: rgba(91, 129, 76, 0.14);
  border-radius: 34px;
  color: #2e4434;
  background:
    radial-gradient(circle at 50% -28%, rgba(176, 221, 151, 0.5), transparent 48%),
    radial-gradient(circle at 2% 104%, rgba(194, 229, 217, 0.56), transparent 37%),
    radial-gradient(circle at 102% 82%, rgba(247, 222, 187, 0.58), transparent 38%),
    linear-gradient(142deg, #fbfcf7 0%, #edf7e9 52%, #faf4e9 100%);
  box-shadow: 0 28px 68px rgba(69, 94, 62, 0.14), inset 0 1px rgba(255, 255, 255, 0.78);
}

.departments-hero-toolbar {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.departments-team-status {
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(91, 129, 76, 0.14);
  border-radius: 999px;
  color: #58705d;
  background: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.departments-team-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83d360;
  box-shadow: 0 0 0 5px rgba(131, 211, 96, 0.09), 0 0 17px rgba(131, 211, 96, 0.35);
  animation: departments-team-pulse 2.2s ease-in-out infinite;
}

.departments-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.departments-hero-action {
  position: relative;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(91, 129, 76, 0.14);
  border-radius: 11px;
  color: #5b705f;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.departments-hero-action:hover,
.departments-hero-action:focus-visible {
  color: #3f7d32;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.departments-hero-action:active {
  transform: scale(0.94);
}

.departments-hero-action .notification-count {
  top: -8px;
  left: -8px;
  border-color: #f3f8ef;
}

.departments-simple-header::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(77, 119, 75, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 119, 75, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.departments-simple-header::after {
  width: 360px;
  height: 360px;
  right: -235px;
  bottom: -230px;
  left: auto;
  border-color: rgba(117, 172, 94, 0.13);
  background: radial-gradient(circle, rgba(130, 184, 107, 0.1), transparent 67%);
  box-shadow: 0 0 0 48px rgba(107, 158, 86, 0.025), 0 0 0 96px rgba(107, 158, 86, 0.016);
}

.departments-simple-logo {
  width: 214px;
  height: 103px;
  padding: 14px 22px;
  border-color: rgba(255, 255, 255, 0.95);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 20px 43px rgba(76, 103, 69, 0.16), 0 0 0 8px rgba(255, 255, 255, 0.42);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease;
}

.departments-brand-thread {
  width: 116px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 13px;
  opacity: 0.82;
}

.departments-brand-thread i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #5cb338;
  box-shadow: 0 0 0 3px rgba(92, 179, 56, 0.1);
}

.departments-brand-thread i:nth-of-type(2) {
  background: #5a9b88;
  box-shadow: 0 0 0 3px rgba(90, 155, 136, 0.1);
}

.departments-brand-thread i:nth-of-type(3) {
  background: #b58b5d;
  box-shadow: 0 0 0 3px rgba(181, 139, 93, 0.1);
}

.departments-brand-thread b {
  width: 39px;
  height: 1px;
  background: linear-gradient(90deg, rgba(92, 179, 56, 0.28), rgba(90, 155, 136, 0.3));
}

.departments-brand-thread b:nth-of-type(2) {
  background: linear-gradient(90deg, rgba(90, 155, 136, 0.3), rgba(181, 139, 93, 0.28));
}

.departments-simple-header:hover .departments-simple-logo {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(76, 103, 69, 0.19), 0 0 0 8px rgba(255, 255, 255, 0.52);
}

.departments-simple-quote {
  position: relative;
  isolation: isolate;
  width: min(820px, 100%);
  min-height: 116px;
  gap: 17px;
  margin-top: 12px;
  padding: 16px 19px;
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 23px;
  color: #2f4937;
  background:
    radial-gradient(circle at 12% 28%, rgba(92, 179, 56, 0.2), transparent 34%),
    radial-gradient(circle at 72% 125%, rgba(90, 155, 136, 0.22), transparent 46%),
    radial-gradient(circle at 103% 0%, rgba(181, 139, 93, 0.2), transparent 38%),
    linear-gradient(118deg, rgba(249, 255, 246, 0.96), rgba(227, 245, 220, 0.9) 36%, rgba(225, 244, 239, 0.9) 68%, rgba(255, 244, 226, 0.92));
  background-size: 165% 165%, 155% 155%, 145% 145%, 220% 220%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 18px 42px rgba(69, 104, 59, 0.14), 0 0 0 1px rgba(92, 179, 56, 0.035);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transform: translateZ(0);
  animation: wasal-quote-surface 12s ease-in-out infinite;
}

.departments-simple-quote::before {
  position: absolute;
  z-index: 0;
  width: 72%;
  height: 190%;
  top: -72%;
  right: -20%;
  border-radius: 46%;
  background: conic-gradient(from 35deg, rgba(92, 179, 56, 0.02), rgba(92, 179, 56, 0.18), rgba(90, 155, 136, 0.16), rgba(181, 139, 93, 0.12), rgba(92, 179, 56, 0.02));
  filter: blur(14px);
  content: "";
  animation: wasal-quote-aurora 10s linear infinite;
}

.departments-simple-quote::after {
  position: absolute;
  z-index: 0;
  width: 145%;
  height: 64px;
  right: -22%;
  bottom: -43px;
  border: 10px solid rgba(92, 179, 56, 0.12);
  border-right-color: rgba(90, 155, 136, 0.1);
  border-left-color: rgba(181, 139, 93, 0.09);
  border-radius: 50%;
  box-shadow: 0 -11px 0 rgba(90, 155, 136, 0.055), 0 -22px 0 rgba(181, 139, 93, 0.035);
  content: "";
  animation: wasal-quote-wave 8s ease-in-out infinite alternate;
}

.departments-simple-quote > * {
  position: relative;
  z-index: 1;
}

.departments-quote-icon {
  width: 54px;
  height: 54px;
  border: 1px solid #d1e8c8;
  border-radius: 17px;
  color: #4f8a3b;
  background: rgba(231, 244, 226, 0.92);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82), 0 9px 22px rgba(74, 130, 56, 0.12);
  animation: wasal-quote-sparkle 4.8s ease-in-out infinite;
}

.departments-simple-quote .departments-quote-label {
  display: block;
  color: #477a38;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.035em;
}

.departments-simple-quote blockquote {
  margin: 4px 0 5px;
  color: #2f4937;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 900;
  line-height: 1.62;
  letter-spacing: -0.018em;
}

.departments-quote-message {
  display: inline-block !important;
  color: inherit !important;
  font: inherit;
  will-change: transform, opacity;
  animation: wasal-quote-message 6.4s cubic-bezier(.45, 0, .2, 1) infinite;
}

.departments-simple-quote .departments-quote-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #718074;
}

.departments-quote-values b {
  color: inherit;
  font-size: 8px;
  font-weight: 800;
}

.departments-quote-values i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #79c85a;
  box-shadow: 0 0 0 3px rgba(121, 200, 90, 0.08);
}

@keyframes wasal-quote-surface {
  0%, 100% { background-position: 0% 25%, 100% 80%, 100% 0%, 0% 50%; }
  50% { background-position: 15% 45%, 78% 62%, 84% 18%, 100% 50%; }
}

@keyframes wasal-quote-aurora {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes wasal-quote-wave {
  from { transform: translate3d(5%, 2px, 0) rotate(-1.5deg); }
  to { transform: translate3d(-5%, -5px, 0) rotate(1.5deg); }
}

@keyframes wasal-quote-sparkle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  48% { transform: translateY(-3px) rotate(-5deg) scale(1.055); }
  72% { transform: translateY(-1px) rotate(3deg) scale(1.02); }
}

@keyframes wasal-quote-message {
  0%, 100% { opacity: 0.9; transform: translate3d(0, 0, 0); }
  42% { opacity: 1; transform: translate3d(-5px, -2px, 0); }
  68% { opacity: 0.97; transform: translate3d(2px, 0, 0); }
}

.departments-simple-heading {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-inline: 12px;
}

.departments-simple-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3f7d32;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.departments-simple-heading > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cb338;
  box-shadow: 0 0 0 5px rgba(92, 179, 56, 0.1);
}

.departments-simple-heading h2 {
  margin-top: 4px;
  color: #304338;
  font-size: clamp(25px, 3.2vw, 33px);
  font-weight: 950;
  line-height: 1.4;
}

.departments-simple-heading p {
  margin-top: 5px;
  color: #738078;
  font-size: 13px;
  line-height: 1.7;
}

.departments-heading-signature {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  margin-top: 8px;
}

.departments-heading-signature i {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50%;
  background: #87bf73 !important;
  box-shadow: none !important;
}

.departments-heading-signature i:last-child {
  background: #d1ad83 !important;
}

.departments-heading-signature b {
  width: 43px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a6cf96, #b7d8cf, #dec3a3);
}

.departments-simple-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  grid-template-rows: repeat(2, minmax(184px, 1fr));
  gap: 18px;
}

.department-simple-card {
  isolation: isolate;
  min-height: 184px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  padding: 27px 25px;
  border: 1px solid transparent;
  border-radius: 27px;
  color: var(--department-ink);
  background:
    radial-gradient(circle at 106% -12%, color-mix(in srgb, var(--department-accent) 31%, transparent) 0, transparent 48%) padding-box,
    radial-gradient(circle at -4% 112%, color-mix(in srgb, var(--department-accent-2) 23%, transparent) 0, transparent 44%) padding-box,
    linear-gradient(140deg, color-mix(in srgb, #fff 80%, var(--department-soft)) 4%, color-mix(in srgb, #fff 45%, var(--department-soft)) 54%, color-mix(in srgb, #fff 40%, var(--department-soft-alt)) 100%) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--department-accent) 54%, #fff), color-mix(in srgb, var(--department-accent-2) 35%, #fff) 55%, color-mix(in srgb, var(--department-deep) 42%, #fff)) border-box;
  box-shadow: 0 20px 46px var(--department-glow), 0 7px 18px rgba(24, 38, 52, 0.05), inset 0 1px rgba(255, 255, 255, 0.9);
  transition: transform 210ms cubic-bezier(.2,.8,.2,1), border-color 190ms ease, box-shadow 210ms ease, filter 190ms ease;
}

.department-simple-card:first-child {
  grid-row: 1 / 3;
  min-height: 386px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  justify-items: start;
  padding: 34px;
}

.department-simple-card:first-child .department-simple-icon {
  width: 88px;
  height: 88px;
  border-radius: 27px;
}

.department-simple-card:first-child .department-simple-copy {
  align-content: center;
}

.department-simple-card:first-child .department-simple-copy small {
  font-size: 9px;
}

.department-simple-card:first-child .department-simple-copy strong {
  max-width: 340px;
  font-size: clamp(26px, 3.1vw, 36px);
}

.department-simple-card:first-child .department-simple-copy > span {
  margin-top: 9px;
  font-size: 12px;
}

.department-simple-card:first-child .department-simple-entry {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.department-simple-card:first-child .department-simple-entry > small {
  color: var(--department-deep);
  font-size: 9px;
}

.department-simple-card:first-child .department-simple-arrow {
  width: 53px;
  height: 53px;
  border-radius: 17px;
}

.department-card-watermark {
  position: absolute;
  z-index: 0;
  left: 24px;
  top: 12px;
  color: var(--department-accent-2);
  font-size: 64px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  opacity: 0.075;
  pointer-events: none;
  user-select: none;
}

.department-simple-card:first-child .department-card-watermark {
  left: 25px;
  top: 24px;
  font-size: 128px;
  opacity: 0.085;
}

.department-simple-card > :not(.department-card-watermark) {
  position: relative;
  z-index: 1;
}

.department-simple-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 18px;
  bottom: 14px;
  width: 86px;
  height: 42px;
  pointer-events: none;
  opacity: 0.64;
  background:
    radial-gradient(circle at 8px 30px, var(--department-accent) 0 2px, transparent 3px),
    radial-gradient(circle at 29px 20px, var(--department-accent-2) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 54px 28px, var(--department-accent) 0 2px, transparent 3px),
    radial-gradient(circle at 77px 13px, var(--department-accent-2) 0 1.5px, transparent 2.5px);
  transition: opacity 190ms ease, transform 220ms ease;
}

.department-simple-card::before {
  top: 24px;
  bottom: 24px;
  width: 6px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, var(--department-accent), var(--department-accent-2) 56%, var(--department-deep));
  box-shadow: 0 0 26px color-mix(in srgb, var(--department-accent) 30%, transparent);
}

.department-simple-card:hover,
.department-simple-card:focus-visible {
  border-color: transparent;
  box-shadow: 0 30px 64px var(--department-glow), 0 11px 26px rgba(24, 38, 52, 0.07), inset 0 1px #fff;
  filter: saturate(1.06);
  transform: translateY(-7px) scale(1.006);
}

.department-simple-card:hover::after,
.department-simple-card:focus-visible::after {
  opacity: 0.78;
  transform: translateY(-2px);
}

.department-simple-card:active {
  transform: translateY(-1px) scale(0.972);
}

.department-simple-icon {
  width: 70px;
  height: 70px;
  border-color: rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 27% 17%, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(145deg, var(--department-deep), color-mix(in srgb, var(--department-accent-2) 72%, var(--department-deep)));
  box-shadow: 0 14px 29px var(--department-glow), inset 0 1px rgba(255, 255, 255, 0.36);
  transition: transform 210ms cubic-bezier(.2,.8,.2,1), color 190ms ease;
}

.department-simple-card:hover .department-simple-icon,
.department-simple-card:focus-visible .department-simple-icon {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.department-simple-copy {
  min-width: 0;
  display: grid;
  align-content: center;
}

.department-simple-copy small,
.department-simple-copy strong,
.department-simple-copy > span {
  display: block;
}

.department-simple-copy small {
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--department-accent) 21%, rgba(255, 255, 255, 0.9));
  border-radius: 999px;
  color: var(--department-deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.055em;
}

.department-simple-copy strong {
  margin-top: 3px;
  color: var(--department-ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 950;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.department-simple-copy > span {
  margin-top: 5px;
  color: color-mix(in srgb, var(--department-ink) 62%, #88929a);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.65;
}

.department-simple-entry {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.department-simple-entry > small {
  color: var(--department-deep);
  font-size: 7px;
  font-weight: 850;
  white-space: nowrap;
}

.department-simple-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--department-accent) 18%, transparent);
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(145deg, var(--department-deep), color-mix(in srgb, var(--department-accent-2) 72%, var(--department-deep)));
  box-shadow: 0 11px 23px var(--department-glow), inset 0 1px rgba(255, 255, 255, 0.28);
}

.department-simple-card:hover .department-simple-arrow,
.department-simple-card:focus-visible .department-simple-arrow {
  transform: translateX(-5px);
}

.departments-team-manifesto {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border: 1px solid #dce9d6;
  border-radius: 23px;
  color: #213229;
  background:
    radial-gradient(circle at 100% 0, rgba(92, 179, 56, 0.1), transparent 35%),
    linear-gradient(145deg, #fbfdfa, #f4f8f2);
  box-shadow: 0 12px 29px rgba(39, 65, 32, 0.06), inset 0 1px #fff;
}

.departments-team-manifesto::before {
  content: "";
  position: absolute;
  top: 0;
  right: 9%;
  left: 9%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #80bd68 24%, #8ec7b7 52%, #d2aa7d 78%, transparent);
  opacity: 0.68;
}

.departments-team-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #d5e9cc;
  border-radius: 16px;
  color: #43852f;
  background: #edf7e9;
}

.departments-team-copy {
  min-width: 0;
}

.departments-team-copy small,
.departments-team-copy strong {
  display: block;
}

.departments-team-copy small {
  color: #4d8f37;
  font-size: 8px;
  font-weight: 950;
}

.departments-team-copy strong {
  margin-top: 2px;
  color: #26362d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.7;
}

.departments-team-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.departments-team-values i {
  padding: 6px 9px;
  border: 1px solid #dae7d4;
  border-radius: 999px;
  color: #4f6555;
  background: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

@keyframes departments-team-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Shipment discount performance — mirrors the live Sheet rules */
.shipment-performance-overview {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #d7e5d2;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(92, 179, 56, 0.11), transparent 31%),
    linear-gradient(145deg, #fff, #f7fbf5);
  box-shadow: 0 12px 32px rgba(28, 53, 21, 0.07);
}

.shipment-performance-overview > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shipment-performance-overview > header > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-700);
  font-size: 9px;
  font-weight: 950;
}

.shipment-performance-overview h3 {
  margin: 3px 0 2px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.shipment-performance-overview header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.shipment-performance-source {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #cde3c5;
  border-radius: 999px;
  color: var(--green-800);
  background: #f1faed;
  font-size: 8px;
  font-weight: 900;
}

.shipment-performance-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.shipment-performance-overview-grid article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e1e8de;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.shipment-performance-overview-grid article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 12px;
  color: #3978d4;
  background: #eaf2ff;
}

.shipment-performance-overview-grid .general > span { color: #7456b4; background: #f1edff; }
.shipment-performance-overview-grid .excellent > span { color: #397b2b; background: #b7e1cd; }
.shipment-performance-overview-grid .attention > span { color: #b33d3d; background: #f4c7c3; }
.shipment-performance-overview-grid small,
.shipment-performance-overview-grid strong,
.shipment-performance-overview-grid em { display: block; }
.shipment-performance-overview-grid small { color: var(--ink-500); font-size: 8px; font-weight: 800; }
.shipment-performance-overview-grid strong { margin-top: 1px; font-size: 19px; line-height: 1.25; }
.shipment-performance-overview-grid em { color: var(--ink-500); font-size: 7px; font-style: normal; }

.shipment-performance-overview > footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.6;
}

.shipment-performance-overview > footer span {
  padding: 8px 10px;
  border-radius: 11px;
  background: #f0f4ee;
}

.shipment-ledger .shipment-kpi-column {
  min-width: 108px;
  width: 108px;
  max-width: 108px;
}

.shipment-ledger td.shipment-kpi-column {
  position: static;
}

.shipment-discount-heading {
  color: #fff !important;
  background: linear-gradient(145deg, #315e27, #478f2d) !important;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.17) !important;
  text-align: center !important;
}

.shipment-discount-heading.general {
  background: linear-gradient(145deg, #235e67, #277e8a) !important;
}

.shipment-performance-heading {
  width: 154px !important;
  min-width: 154px !important;
  max-width: 154px !important;
  color: #31542a !important;
  background: #e9f2e6 !important;
}

.shipment-discount-cell {
  text-align: center !important;
}

.shipment-discount-cell small,
.shipment-discount-cell strong {
  display: block;
}

.shipment-discount-cell small {
  margin-bottom: 2px;
  color: inherit;
  opacity: 0.68;
  font-size: 7px;
  font-weight: 850;
}

.shipment-discount-cell strong {
  font-size: 15px;
  font-weight: 950;
}

.shipment-ledger tbody tr:nth-child(odd) td.shipment-discount-cell.neutral {
  background: #dbe5f1 !important;
}

.shipment-ledger tbody tr:nth-child(even) td.shipment-discount-cell.neutral {
  background: #f7f9fc !important;
}

.shipment-discount-cell.excellent,
.shipment-rate-card.excellent {
  color: #214f3a !important;
  background: #b7e1cd !important;
}

.shipment-discount-cell.low,
.shipment-rate-card.low {
  color: #7e2525 !important;
  background: #f4c7c3 !important;
}

.shipment-discount-cell.critical,
.shipment-rate-card.critical {
  color: #fff !important;
  background: #df6666 !important;
  font-weight: 900;
}

.shipment-performance-cell {
  width: 154px !important;
  min-width: 154px !important;
  max-width: 154px !important;
}

.shipment-performance-badge {
  width: 134px;
  min-width: 134px;
  max-width: 134px;
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid #dde5da;
  border-radius: 12px;
  color: #52604e;
  background: #f5f7f4;
}

.shipment-performance-badge > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shipment-performance-badge > span:first-child i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.shipment-performance-badge strong { font-size: 9px; }
.shipment-performance-badge small { color: inherit; opacity: 0.72; font-size: 7px; }
.shipment-performance-badge.excellent { border-color: #8fc9ad; color: #245f45; background: #e8f7ef; }
.shipment-performance-badge.low { border-color: #e7a7a1; color: #913333; background: #fff0ee; }
.shipment-performance-badge.critical { border-color: #cf4a4a; color: #9d2727; background: #ffe3e3; }
.shipment-performance-badge.review { border-color: #ead39f; color: #91601b; background: #fff7e7; }
.shipment-performance-badge.pending { color: #687169; background: #f1f3f0; }

.shipment-performance-progress {
  height: 5px;
  display: block;
  border-radius: 999px;
  background: rgba(52, 70, 46, 0.12);
  overflow: hidden;
}

.shipment-performance-progress > i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: currentColor;
  transition: width 450ms cubic-bezier(.2,.8,.2,1);
}

.shipment-performance-panel {
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid #dce5d8;
  border-radius: 19px;
  background: linear-gradient(145deg, #fbfdf9, #f2f7ef);
}

.shipment-performance-panel > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.shipment-performance-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-800);
  background: var(--green-100);
}

.shipment-performance-panel header small,
.shipment-performance-panel header strong,
.shipment-performance-panel header p { display: block; }
.shipment-performance-panel header small { color: var(--ink-500); font-size: 8px; font-weight: 850; }
.shipment-performance-panel header strong { margin-top: 1px; font-size: 15px; }
.shipment-performance-panel header p { margin: 1px 0 0; color: var(--ink-500); font-size: 8px; }
.shipment-performance-target { padding: 6px 8px; border-radius: 10px; color: var(--green-800); background: #fff; font-size: 8px; font-weight: 850; }

.shipment-rate-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.shipment-rate-card,
.shipment-performance-score {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(50, 70, 45, 0.09);
  border-radius: 13px;
  color: var(--ink-800);
  background: #fff;
}

.shipment-rate-card small,
.shipment-rate-card strong,
.shipment-performance-score small,
.shipment-performance-score strong { display: block; }
.shipment-rate-card small,
.shipment-performance-score small { color: inherit; opacity: 0.68; font-size: 8px; }
.shipment-rate-card strong,
.shipment-performance-score strong { margin-top: 2px; font-size: 17px; }
.shipment-rate-card em { display: block; margin-top: 1px; color: inherit; opacity: 0.55; font-size: 7px; font-style: normal; }
.shipment-performance-score { color: #315f27; background: #edf7e9; }
.shipment-performance-score.excellent { color: #245f45; background: #e3f4eb; }
.shipment-performance-score.low { color: #8d3030; background: #fff0ee; }
.shipment-performance-score.critical { color: #9d2727; background: #ffe3e3; }
.shipment-performance-score.review { color: #8c5d1a; background: #fff6e5; }
.shipment-performance-score.pending { color: #687169; background: #f1f3f0; }
.shipment-performance-score .shipment-performance-progress { margin-top: 7px; }

@media (max-width: 1100px) {
  .departments-hero.departments-hero-premium {
    grid-template-columns: minmax(0, 1.2fr) minmax(255px, 0.8fr);
  }
  .departments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .department-card-premium:last-child { grid-column: 1 / -1; }
  .departments-simple-grid { grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr); }
  .department-simple-card:last-child { grid-column: auto; }
  .department-simple-card { min-height: 184px; }
  .shipment-performance-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .departments-hero.departments-hero-premium {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 26px;
  }
  .departments-live-panel { min-height: 236px; }
  .departments-live-title { margin-top: 15px; }
  .departments-grid { grid-template-columns: 1fr; }
  .department-card-premium:last-child { grid-column: auto; }
  .department-card.department-card-premium { min-height: 350px; }
  .departments-simple-header { min-height: 334px; padding: 34px 22px 30px; border-radius: 29px; }
  .departments-simple-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .department-simple-card:last-child { grid-column: auto; }
  .department-simple-card { min-height: 174px; }
  .department-simple-card:first-child {
    grid-row: auto;
    min-height: 174px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-content: normal;
    justify-items: normal;
    padding: 27px 25px;
  }
  .department-simple-card:first-child .department-simple-icon { width: 70px; height: 70px; border-radius: 22px; }
  .department-simple-card:first-child .department-simple-copy { align-content: center; }
  .department-simple-card:first-child .department-simple-copy small { font-size: 8px; }
  .department-simple-card:first-child .department-simple-copy strong { max-width: none; font-size: clamp(18px, 1.8vw, 22px); }
  .department-simple-card:first-child .department-simple-copy > span { margin-top: 5px; font-size: 10px; }
  .department-simple-card:first-child .department-simple-entry { width: auto; display: grid; }
  .department-simple-card:first-child .department-simple-entry > small { color: var(--department-deep); font-size: 7px; }
  .department-simple-card:first-child .department-simple-arrow { width: 46px; height: 46px; border-radius: 15px; }
  .department-simple-card:first-child .department-card-watermark { left: 24px; top: 12px; font-size: 64px; opacity: 0.07; }
  .departments-team-manifesto { grid-template-columns: auto minmax(0, 1fr); }
  .departments-team-values { grid-column: 1 / -1; justify-content: center; }
  .shipment-performance-overview > footer { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
  .departments-hero.departments-hero-premium { gap: 12px; padding: 14px; border-radius: 23px; }
  .departments-command-main { padding: 2px; }
  .departments-brand-line { gap: 10px; }
  .departments-hero-premium .departments-logo-wrap { width: 126px; height: 62px; flex-basis: 126px; padding: 8px 13px; border-radius: 17px; }
  .departments-live-badge { font-size: 8px; }
  .departments-command-main .departments-brand-block { margin-top: 17px; }
  .departments-command-main .departments-brand-block h2 { font-size: 22px; }
  .departments-command-main .departments-brand-block > p { padding: 0; font-size: 10px; }
  .departments-hero-premium .daily-motivation { min-height: 78px; gap: 10px; padding: 10px; margin-top: 18px; }
  .daily-motivation-mark { width: 39px; height: 39px; border-radius: 13px; font-size: 32px; }
  .departments-hero-premium .daily-motivation blockquote { font-size: 12px; }
  .departments-live-panel { min-height: 220px; padding: 15px; border-radius: 20px; }
  .departments-pulse-grid { gap: 6px; margin-top: 13px; }
  .departments-pulse-grid > span { padding: 9px; border-radius: 12px; }
  .departments-heading p { max-width: 260px; }
  .department-card.department-card-premium { min-height: 340px; padding: 16px; border-radius: 21px; }
  .department-card-premium .department-icon { width: 47px; height: 47px; flex-basis: 47px; }
  .department-identity strong { font-size: 16px; }
  .department-status { padding: 4px 6px; font-size: 7px; }
  .department-card-premium .department-card-copy > small { min-height: 0; }
  .department-card-insights { grid-template-columns: 1fr 0.9fr; }
  .departments-home-clean { gap: 18px; padding: 0; background: transparent; }
  .departments-simple-header { min-height: 308px; padding: 28px 13px 24px; border-radius: 25px; }
  .departments-hero-toolbar { top: 13px; right: 13px; left: 13px; }
  .departments-team-status { min-height: 30px; padding: 5px 9px; font-size: 7px; }
  .departments-hero-action { width: 32px; height: 32px; border-radius: 10px; }
  .departments-simple-logo { width: 164px; height: 80px; padding: 11px 17px; border-radius: 20px; }
  .departments-simple-quote { min-height: 108px; gap: 11px; margin-top: 18px; padding: 13px; border-radius: 18px; }
  .departments-quote-icon { width: 43px; height: 43px; border-radius: 13px; }
  .departments-simple-quote .departments-quote-label { font-size: 8px; }
  .departments-simple-quote blockquote { font-size: 13px; line-height: 1.65; }
  .departments-quote-values { gap: 5px; }
  .departments-quote-values b { font-size: 7px; }
  .departments-simple-heading h2 { font-size: 23px; }
  .departments-simple-heading p { font-size: 11px; }
  .departments-simple-grid { gap: 11px; }
  .department-simple-card { min-height: 156px; gap: 12px; padding: 19px 17px; border-radius: 22px; }
  .department-simple-card:first-child { min-height: 156px; gap: 12px; padding: 19px 17px; }
  .department-simple-card::before { top: 19px; bottom: 19px; width: 5px; }
  .department-simple-icon { width: 57px; height: 57px; border-radius: 17px; }
  .department-simple-card:first-child .department-simple-icon { width: 57px; height: 57px; border-radius: 17px; }
  .department-simple-copy small { font-size: 7px; }
  .department-simple-card:first-child .department-simple-copy small { font-size: 7px; }
  .department-simple-copy strong { font-size: 17px; }
  .department-simple-card:first-child .department-simple-copy strong { font-size: 17px; }
  .department-simple-copy > span { margin-top: 3px; font-size: 9px; }
  .department-simple-card:first-child .department-simple-copy > span { margin-top: 3px; font-size: 9px; }
  .department-simple-entry > small { display: none; }
  .department-simple-arrow { width: 40px; height: 40px; border-radius: 13px; }
  .department-simple-card:first-child .department-simple-arrow { width: 40px; height: 40px; border-radius: 13px; }
  .departments-team-manifesto { gap: 11px; padding: 15px; border-radius: 20px; }
  .departments-team-icon { width: 45px; height: 45px; border-radius: 14px; }
  .departments-team-copy strong { font-size: 10px; }
  .departments-team-values i { padding: 5px 8px; font-size: 7px; }
  .shipment-performance-overview { padding: 14px; border-radius: 18px; }
  .shipment-performance-overview > header { display: block; }
  .shipment-performance-source { display: inline-block; margin-top: 8px; }
  .shipment-performance-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .shipment-performance-overview-grid article { gap: 7px; padding: 9px; }
  .shipment-performance-overview-grid article > span { width: 31px; height: 31px; flex-basis: 31px; border-radius: 10px; }
  .shipment-performance-overview-grid strong { font-size: 15px; }
  .shipment-ledger .shipment-kpi-column { width: 94px; min-width: 94px; max-width: 94px; }
  .shipment-rate-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipment-performance-score { grid-column: 1 / -1; }
  .shipment-performance-panel > header { grid-template-columns: auto minmax(0, 1fr); }
  .shipment-performance-target { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .departments-live-badge i,
  .departments-live-panel header > span i,
  .departments-team-status i { animation: none; }
}
