@import url('/client-sidebar.css?v=1789516900');

:root {
  --client-row-height: 36px;
  --client-gap: 12px;
  --client-panel: var(--color-surface);
  --client-panel-strong: var(--color-surface-solid);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(118, 135, 153, 0.14), transparent 28%),
    linear-gradient(180deg, #e8eef4 0%, #dde5ed 100%);
}

body[data-shell="client"] .shell-header__inner.container {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding-inline: 14px;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 14px;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-y: visible;
}

body[data-shell="client"] .shell-context {
  min-width: 0;
  overflow: hidden;
}

body[data-shell="client"] .shell-nav {
  margin-left: 0;
  min-width: 0;
  justify-self: center;
}

.shipment-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.client-account {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.shipment-notifications__toggle,
.client-account__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.shipment-notifications__toggle:hover,
.shipment-notifications__toggle:focus-visible,
.shipment-notifications__toggle[aria-expanded="true"],
.client-account__toggle:hover,
.client-account__toggle:focus-visible,
.client-account__toggle[aria-expanded="true"] {
  color: var(--color-primary-dark);
}

.shipment-notifications__toggle:focus-visible,
.client-account__toggle:focus-visible {
  outline: none;
}

.shipment-notifications__icon,
.client-account__icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.shipment-notifications__popover,
.client-account__popover {
  position: absolute;
  top: calc(100% + ((var(--shell-header-height) - 40px) / 2) - 1px);
  right: -12px;
  z-index: 80;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-solid);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 180ms ease;
  pointer-events: none;
}

.shipment-notifications__popover {
  top: calc(100% + 3px);
  width: min(360px, calc(100vw - 24px));
}

.shipment-notifications__popover[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.shipment-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--color-line-soft);
}

.shipment-notifications__head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
}

.shipment-notifications__popup-toggle {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.shipment-notifications__popup-toggle[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--color-primary-dark);
}

.shipment-notifications__popup-toggle:hover,
.shipment-notifications__popup-toggle:focus-visible {
  color: var(--color-primary-dark);
  border-color: rgba(37, 99, 235, 0.36);
  outline: none;
}

.shipment-notifications__list {
  display: grid;
  max-height: min(380px, calc(100dvh - 88px));
  overflow-y: auto;
}

.shipment-notifications__empty {
  padding: 16px 14px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.shipment-notifications__item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.shipment-notifications__item + .shipment-notifications__item {
  border-top: 1px solid var(--color-line-soft);
}

.shipment-notifications__title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.shipment-notifications__meta-row {
  display: grid;
  gap: 4px;
}

.shipment-notifications__title {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.shipment-notifications__time {
  color: rgba(15, 23, 42, 0.5);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.shipment-notifications__kind {
  color: rgba(15, 23, 42, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.shipment-notifications__detail {
  color: rgba(15, 23, 42, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.shipment-notifications__item[data-tone="success"] .shipment-notifications__kind {
  color: var(--color-success);
}

.shipment-notifications__item[data-tone="error"] .shipment-notifications__kind {
  color: var(--color-danger);
}

.shipment-notifications__action {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.shipment-notifications__action:hover,
.shipment-notifications__action:focus-visible {
  color: var(--color-primary-dark);
  outline: none;
}

.client-account__popover {
  min-width: 132px;
}

.client-account__popover[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.client-account__menu {
  display: grid;
}

.client-account__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.client-account__menu > :first-child {
  border-top: 0;
}

.client-account__link:hover,
.client-account__link:focus-visible {
  background: rgba(15, 23, 42, 0.04);
  outline: none;
}

body[data-shell="client"] .shell-actions {
  margin-left: 0;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
  justify-self: end;
}

body[data-shell="client"] .shell-menu-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #27272a;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

body[data-shell="client"] .shell-menu-toggle::before {
  display: none;
}

body[data-shell="client"] .shell-menu-toggle:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-shell="client"] .shell-menu-toggle[aria-expanded="true"] {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-shell="client"] .shell-menu-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

body[data-shell="client"] .shell-context__label,
body[data-shell="client"] .shell-context__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  display: block;
  max-width: 100%;
  overflow-x: clip;
}

.sidebar {
  position: fixed;
  top: var(--shell-header-height);
  left: 0;
  height: calc(100vh - var(--shell-header-height));
  z-index: 60;
  visibility: hidden;
  transform: translateX(-100%);
  transition: none;
}

body.client-shell-initialized .sidebar {
  visibility: visible;
}

body.client-shell-ready .sidebar {
  transition: transform 220ms ease;
}

html[data-client-shell-mode="desktop"] body[data-shell="client"] .shell-menu-toggle {
  display: none;
}

html[data-client-shell-mode="desktop"] body.client-shell-initialized .sidebar,
html[data-client-shell-mode="desktop"] body.sidebar-hidden .sidebar {
  transform: translateX(0);
}

html[data-client-shell-mode="desktop"] body.sidebar-hidden .main {
  margin-left: var(--sidebar-width);
}

html[data-client-shell-mode="desktop"] .sidebar-overlay,
html[data-client-shell-mode="desktop"] .sidebar-overlay[aria-hidden="false"] {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 42, 0);
  opacity: 0;
  pointer-events: none;
  border: 0;
  transition: opacity 180ms ease;
  z-index: 55;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 100%;
  overflow-x: clip;
}

.page-hero,
.content-panel,
.summary-card,
.group-card,
.shipment-card,
.payment-card,
.credit-card,
.order-card,
.anomaly-card,
.anomaly-item,
.deviation-item,
.security-card {
  background: var(--client-panel);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.page-hero,
.content-panel,
.summary-card,
.group-card,
.anomaly-card,
.security-card {
  border-radius: 0;
}

.content-panel {
  border-radius: 0;
}

.page-hero {
  padding: 22px 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-hero--hub {
  background: var(--client-panel);
}

.page-hero h1 {
  margin: 6px 0 8px;
  color: var(--color-primary-dark);
  font-size: clamp(28px, 4vw, 38px);
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  color: var(--color-text-muted);
}

.hero-actions,
.toolbar-actions,
.panel-head__actions,
.group-card__links,
.card-actions,
.anomaly-card__meta,
.anomaly-links,
.deviation-links,
.anomaly-form-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hub-summary-grid,
.group-grid {
  display: grid;
  gap: 16px;
}

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

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

.summary-card,
.group-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.summary-card--accent {
  background: linear-gradient(135deg, rgba(20, 94, 216, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.summary-card__label {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-card__value {
  color: var(--color-primary-dark);
  font-size: clamp(24px, 3vw, 32px);
}

.summary-card__meta,
.group-card p,
.panel-head p,
.section-status,
.meta,
.form-status,
.anomaly-form-status,
.anomaly-card__desc,
.empty-state {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.group-card__head,
.panel-head,
.anomaly-card__head,
.shipment-card header,
.payment-card header,
.credit-card header,
.order-card header,
.anomaly-item header,
.deviation-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.group-card__head h1,
.group-card__head h2,
.panel-head h1,
.panel-head h2,
.anomaly-card__head h3,
.security-card h3,
.shipment-card h3,
.payment-card h3,
.credit-card h3,
.order-card h3,
.anomaly-item h4,
.deviation-item h4 {
  margin: 0;
  color: var(--color-primary-dark);
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  background: var(--client-panel);
}

.hub-hero__copy {
  display: grid;
  gap: 12px;
}

.hub-hero__copy > p {
  max-width: 720px;
}

.hub-hero__rail {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.hub-metric {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 0;
  border: 1px solid rgba(20, 94, 216, 0.12);
  background: var(--client-panel);
}

.hub-metric--accent {
  background: var(--client-panel);
}

.hub-metric__label {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.hub-metric__value {
  color: var(--color-primary-dark);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.hub-metric__meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hub-focus-panel,
.hub-shortcuts-panel {
  gap: 16px;
}

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

.hub-focus-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 0;
  border: 1px solid var(--color-border-soft);
  background: var(--client-panel);
}

.hub-focus-card--primary {
  background: var(--client-panel);
}

.hub-focus-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hub-focus-card__head h3 {
  margin: 0;
  color: var(--color-primary-dark);
}

.hub-focus-card__list {
  display: grid;
  gap: 10px;
}

.hub-focus-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 94, 216, 0.08);
  background: var(--client-panel);
}

.hub-focus-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hub-focus-item__title {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.hub-focus-item__meta {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hub-focus-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(20, 94, 216, 0.16);
  background: var(--client-panel);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.hub-shortcut {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(20, 94, 216, 0.1);
  background: var(--client-panel);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hub-shortcut span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.hub-shortcut strong {
  color: var(--color-primary-dark);
  font-size: 15px;
}

.hub-shortcut:hover,
.hub-shortcut:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 94, 216, 0.18);
  box-shadow: none;
  outline: none;
}

.hub-shortcut--primary {
  background: var(--client-panel);
}

body[data-client-page="hub"] .hub-main {
  gap: 0;
}

body[data-client-page="hub"] .hub-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  padding: 24px 22px 22px;
  border: 1px solid var(--color-border-soft);
  background:
    linear-gradient(135deg, rgba(10, 19, 33, 0.96) 0%, rgba(17, 30, 49, 0.95) 44%, rgba(20, 41, 70, 0.92) 100%);
  color: #ffffff;
  overflow: clip;
}

body[data-client-page="hub"] .hub-command::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.24;
  transform: translate3d(-12px, -12px, 0);
  pointer-events: none;
}

body[data-client-page="hub"] .hub-command > * {
  position: relative;
  z-index: 1;
}

body[data-client-page="hub"] .hub-command__copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

body[data-client-page="hub"] .hub-command__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-client-page="hub"] .hub-command h1 {
  margin: 0;
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body[data-client-page="hub"] .hub-command__lede {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.72;
}

body[data-client-page="hub"] .hub-command__actions {
  margin-top: 2px;
}

body[data-client-page="hub"] .hub-command__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

body[data-client-page="hub"] .hub-command__meta-item,
body[data-client-page="hub"] .hub-command__rail-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

body[data-client-page="hub"] .hub-command__meta-item {
  display: grid;
  gap: 8px;
  padding: 14px;
}

body[data-client-page="hub"] .hub-command__meta-label,
body[data-client-page="hub"] .hub-command__rail-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-client-page="hub"] .hub-command__meta-value {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

body[data-client-page="hub"] .hub-command__meta-note,
body[data-client-page="hub"] .hub-command__rail-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

body[data-client-page="hub"] .hub-command__rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

body[data-client-page="hub"] .hub-command__rail-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-client-page="hub"] .hub-command__rail-band span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

body[data-client-page="hub"] .hub-command__rail-panel {
  display: grid;
  gap: 0;
}

body[data-client-page="hub"] .hub-command__rail-block {
  display: grid;
  gap: 8px;
  padding: 16px;
}

body[data-client-page="hub"] .hub-command__rail-block + .hub-command__rail-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-client-page="hub"] .hub-command__rail-title {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body[data-client-page="hub"] .hub-operations-panel,
body[data-client-page="hub"] .hub-entry-panel {
  gap: 18px;
  padding: 20px 22px 22px;
}

body[data-client-page="hub"] .hub-section-head {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body[data-client-page="hub"] .hub-section-head .eyebrow {
  margin-bottom: 6px;
}

body[data-client-page="hub"] .hub-operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-client-page="hub"] .hub-ops-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

body[data-client-page="hub"] .hub-ops-block--primary {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.92) 100%);
}

body[data-client-page="hub"] .hub-ops-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body[data-client-page="hub"] .hub-ops-block__head h3,
body[data-client-page="hub"] .hub-entry-group__head h3 {
  margin: 0;
  color: var(--color-primary-dark);
}

body[data-client-page="hub"] .hub-ops-block__copy {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

body[data-client-page="hub"] .hub-ops-block__count {
  color: var(--color-primary-dark);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

body[data-client-page="hub"] .hub-ops-block__list {
  display: grid;
  gap: 10px;
}

body[data-client-page="hub"] .hub-ops-block__actions {
  padding-top: 2px;
}

body[data-client-page="hub"] .hub-focus-item {
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
}

body[data-client-page="hub"] .hub-focus-item__meta {
  font-size: 12px;
}

body[data-client-page="hub"] .hub-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-client-page="hub"] .hub-entry-group {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

body[data-client-page="hub"] .hub-entry-group__head {
  display: grid;
  gap: 6px;
}

body[data-client-page="hub"] .hub-entry-links {
  display: grid;
  gap: 10px;
}

body[data-client-page="hub"] .hub-entry-link {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-text);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

body[data-client-page="hub"] .hub-entry-links .hub-entry-link:first-child {
  border-top: 0;
  padding-top: 0;
}

body[data-client-page="hub"] .hub-entry-link span {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

body[data-client-page="hub"] .hub-entry-link strong {
  color: var(--color-primary-dark);
  font-size: 15px;
  line-height: 1.35;
}

body[data-client-page="hub"] .hub-entry-link:hover,
body[data-client-page="hub"] .hub-entry-link:focus-visible {
  color: var(--color-primary-dark);
  transform: translateX(2px);
  outline: none;
}

.content-panel {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.page-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid rgba(20, 94, 216, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 8px 0 0;
  min-height: 36px;
}

.field-clear-button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(15, 23, 42, 0.58);
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.field-clear-button[hidden] {
  display: none;
}

.field-clear-button:hover,
.field-clear-button:focus-visible {
  background: rgba(255, 255, 255, 0.8);
  color: rgba(15, 23, 42, 0.78);
  outline: none;
}

.field-clear-button svg {
  display: block;
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.search-box .field-clear-button {
  right: 10px;
}

.compact-filters,
.compact-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 0;
  border: 1px solid rgba(20, 94, 216, 0.08);
  background: rgba(20, 94, 216, 0.04);
}

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

.compact-field {
  min-height: var(--client-row-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 94, 216, 0.08);
}

.compact-field--wide {
  grid-column: span 2;
}

.compact-field__label {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.compact-field input,
.compact-field select,
.compact-field textarea {
  width: 100%;
  min-height: calc(var(--client-row-height) - 4px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
}

.compact-field textarea {
  min-height: 84px;
  padding: 10px 0;
  resize: vertical;
}

.compact-field select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23145ed8' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 18px;
}

.cards-grid,
.anomaly-grid {
  display: grid;
  gap: 14px;
}

.shipment-card,
.payment-card,
.credit-card,
.order-card,
.anomaly-item,
.deviation-item,
.security-card {
  padding: 16px;
  border-radius: 0;
}

.shipment-card .badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge,
.tag,
.status-pill,
.deviation-pill {
  min-height: 28px;
  border-radius: var(--radius-pill);
}

.shipment-card .badge-state.state-draft {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.shipment-card .badge-state.state-pending {
  background: var(--color-warning-strong);
  color: var(--color-warning);
}

.shipment-card .badge-state.state-generated,
.tag.paid,
.form-status.success,
.anomaly-form-status.is-success {
  background: var(--color-success-strong);
  color: var(--color-success);
}

.shipment-card .badge-state.state-error,
.form-status.error,
.anomaly-form-status.is-error,
.status-open {
  background: var(--color-danger-strong);
  color: var(--color-danger);
}

.shipment-card .badge-state.state-cancelled,
.shipment-card .badge-state.state-unknown,
.status-dismissed {
  background: rgba(148, 163, 184, 0.22);
  color: #475569;
}

.status-in_review,
.tag.pending {
  background: var(--color-warning-strong);
  color: var(--color-warning);
}

.status-resolved {
  background: var(--color-success-strong);
  color: var(--color-success);
}

.deviation-pill.diff-over {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.deviation-pill.diff-under {
  background: var(--color-danger-strong);
  color: var(--color-danger);
}

.shipment-card .card-grid,
.payment-card .payment-body,
.credit-card .credit-body,
.order-card .order-body {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-card .payment-body,
.credit-card .credit-body,
.order-card .order-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shipment-card section,
.payment-card section,
.credit-card section,
.order-card section {
  display: grid;
  gap: 4px;
}

.shipment-card section h4,
.payment-card section h4,
.credit-card section h4,
.order-card section h4,
.anomaly-timeline h4 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 14px;
}

.shipment-card section p,
.payment-card section p,
.credit-card section p,
.order-card section p,
.anomaly-item__body p,
.deviation-body p,
.anomaly-timeline p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.payment-card .amount,
.credit-card .amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.credit-card.plus .amount {
  color: #15803d;
}

.credit-card.minus .amount {
  color: #b45309;
}

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

.anomaly-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.anomaly-card--span {
  grid-column: 1 / -1;
}

.anomaly-list,
.anomaly-timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.anomaly-item__body,
.deviation-body {
  display: grid;
  gap: 8px;
}

.anomaly-timeline li {
  position: relative;
  padding-left: 16px;
  border-left: 3px solid rgba(20, 94, 216, 0.18);
}

.anomaly-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 94, 216, 0.14);
}

.security-card {
  display: grid;
  gap: 12px;
}

.empty-state[hidden] {
  display: none;
}

body.client-shell-initialized.sidebar-hidden .sidebar {
  transform: translateX(-100%);
}

body.sidebar-hidden .main {
  margin-left: 0;
}

.sidebar-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

html[data-client-wide-compact="true"] .group-grid {
  grid-template-columns: 1fr;
}

html[data-client-wide-compact="true"] .shipment-card .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-client-shell-mode="mobile"] body[data-shell="client"] .shell-header__inner.container {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 0;
}

html[data-client-shell-mode="mobile"] body[data-shell="client"] .shell-nav {
  position: absolute;
  top: 50%;
  right: 68px;
  transform: translateY(-50%);
  display: inline-flex !important;
  align-items: center;
  justify-self: auto;
  gap: 10px;
  overflow: visible;
}

html[data-client-shell-mode="mobile"] body[data-shell="client"] .shell-nav > a {
  display: none;
}

html[data-client-shell-mode="mobile"] .shipment-notifications__popover,
html[data-client-shell-mode="mobile"] .client-account__popover {
  right: -8px;
}

html[data-client-shell-mode="mobile"] .shipment-notifications__popover {
  width: min(180px, calc(50vw - 12px));
}

html[data-client-shell-mode="mobile"] .sidebar {
  transform: translateX(-100%);
  width: min(82vw, 280px);
  padding-bottom: calc(18px + var(--client-sidebar-mobile-bottom-reserve) + env(safe-area-inset-bottom, 0px));
}

html[data-client-shell-mode="mobile"] body:not(.sidebar-hidden) .sidebar {
  transform: translateX(0);
}

html[data-client-shell-mode="mobile"] body:not(.sidebar-hidden) {
  overflow: hidden;
}

html[data-client-shell-mode="mobile"] .main {
  margin-left: 0;
  padding-inline: 14px;
}

html[data-client-shell-mode="mobile"] .page-hero,
html[data-client-shell-mode="mobile"] .panel-head,
html[data-client-shell-mode="mobile"] .page-toolbar,
html[data-client-shell-mode="mobile"] .shipment-card header,
html[data-client-shell-mode="mobile"] .payment-card header,
html[data-client-shell-mode="mobile"] .credit-card header,
html[data-client-shell-mode="mobile"] .order-card header,
html[data-client-shell-mode="mobile"] .anomaly-item header,
html[data-client-shell-mode="mobile"] .deviation-item header,
html[data-client-shell-mode="mobile"] .anomaly-card__head {
  grid-template-columns: 1fr;
  display: grid;
}

html[data-client-shell-mode="mobile"] .hub-hero,
html[data-client-shell-mode="mobile"] .hub-focus-grid,
html[data-client-shell-mode="mobile"] .hub-shortcuts,
html[data-client-shell-mode="mobile"] .filter-row,
html[data-client-shell-mode="mobile"] .form-row {
  grid-template-columns: 1fr;
}

html[data-client-shell-mode="mobile"] .shipment-card .card-grid,
html[data-client-shell-mode="mobile"] .payment-card .payment-body,
html[data-client-shell-mode="mobile"] .credit-card .credit-body,
html[data-client-shell-mode="mobile"] .order-card .order-body {
  grid-template-columns: 1fr 1fr;
}

html[data-client-narrow="true"] .sidebar {
  padding: 22px 16px calc(22px + var(--client-sidebar-mobile-bottom-reserve) + env(safe-area-inset-bottom, 0px));
}

html[data-client-narrow="true"] .page-hero,
html[data-client-narrow="true"] .content-panel,
html[data-client-narrow="true"] .summary-card,
html[data-client-narrow="true"] .group-card,
html[data-client-narrow="true"] .shipment-card,
html[data-client-narrow="true"] .payment-card,
html[data-client-narrow="true"] .credit-card,
html[data-client-narrow="true"] .order-card,
html[data-client-narrow="true"] .anomaly-card,
html[data-client-narrow="true"] .anomaly-item,
html[data-client-narrow="true"] .deviation-item,
html[data-client-narrow="true"] .security-card {
  border-radius: 0;
}

html[data-client-narrow="true"] .page-hero {
  padding: 18px;
}

html[data-client-narrow="true"] .hub-hero,
html[data-client-narrow="true"] .hub-focus-grid,
html[data-client-narrow="true"] .hub-shortcuts,
html[data-client-narrow="true"] .anomaly-grid,
html[data-client-narrow="true"] .shipment-card .card-grid,
html[data-client-narrow="true"] .payment-card .payment-body,
html[data-client-narrow="true"] .credit-card .credit-body,
html[data-client-narrow="true"] .order-card .order-body,
html[data-client-narrow="true"] .filter-row,
html[data-client-narrow="true"] .form-row {
  grid-template-columns: 1fr;
}

html[data-client-narrow="true"] .compact-field,
html[data-client-narrow="true"] .compact-field--wide {
  grid-column: span 1;
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-operations-grid,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-entry-grid,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__meta,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__rail-band {
  grid-template-columns: 1fr;
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command {
  padding: 18px 18px 16px;
  gap: 16px;
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command h1 {
  max-width: none;
  font-size: clamp(28px, 9vw, 40px);
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__copy,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__rail,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-ops-block,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-entry-group {
  gap: 12px;
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__meta-item,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__rail-block,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-operations-panel,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-entry-panel,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-ops-block,
html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-entry-group {
  padding: 14px;
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-command__rail-title {
  font-size: 18px;
}

html[data-client-shell-mode="mobile"] body[data-client-page="hub"] .hub-ops-block__count {
  font-size: 24px;
}

html[data-client-narrow="true"] body[data-client-page="hub"] .hub-command,
html[data-client-narrow="true"] body[data-client-page="hub"] .hub-operations-grid,
html[data-client-narrow="true"] body[data-client-page="hub"] .hub-entry-grid,
html[data-client-narrow="true"] body[data-client-page="hub"] .hub-command__meta,
html[data-client-narrow="true"] body[data-client-page="hub"] .hub-command__rail-band {
  grid-template-columns: 1fr;
}

html[data-client-narrow="true"] body[data-client-page="hub"] .hub-command,
html[data-client-narrow="true"] body[data-client-page="hub"] .hub-operations-panel,
html[data-client-narrow="true"] body[data-client-page="hub"] .hub-entry-panel {
  padding: 16px;
}
