:root {
  --font-family-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --line-height-headers: 1.1;
  --line-height-body: 1.5;
  --font-size-xs: 0.75rem;
  --font-size-s: 0.875rem;
  --font-size-m: 1rem;
  --font-size-l: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xxl: 1.5rem;
  --font-size-xxxl: 2rem;
  --font-size-xxxxl: 2.5rem;
  --color-text-header: #828386;
  --color-text-body: hsl(0, 0%, 75%);
  --color-text-muted: hsl(0, 1%, 44%);
  --space-xxxs: 0.25rem;
  --space-xxs: 0.375rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 2.5rem;
  --space-xxxl: 3rem;
  --space-xxxxl: 4rem;
  --color-primary: #473a92;
  --color-primary-rotate: #584e92;
  --color-primary-bg: #1e1f21;
  --color-secondary: #64748b;
  --color-secondary-rotate: #94a3b8;
  --color-secondary-bg: #f1f5f9;
  --color-tertiary: hsl(49, 89%, 64%);
  --color-glint: hsl(210, 100%, 82%);
  --color-white: hsl(0, 0%, 100%);
  --color-background: #18191B;
  --color-light: hsl(0, 6%, 93%);
  --color-dark: var(--color-text-header);
  --border-radius: 0.375rem;
  --border: solid 2px var(--color-dark);
  --shadow-large: 2px 4px 10px hsl(0 0% 0% / 0.1);
  --shadow-small: 1px 3px 6px hsl(0 0% 0% / 0.1);
  --sidebar-width: 275px;
  --sidebar-width-collapsed: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

* {
  margin: 0;
  padding: 0;
  font-variant: petite-caps;
}

label .checkbox {
  padding: 10px;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  width: max-content;
}

.checkbox-container--row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}
.checkbox-container--row label {
  flex: 1;
}
.checkbox-container--row input[type=checkbox] {
  flex-shrink: 0;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-primary-bg);
  color: var(--color-text-body);
  line-height: var(--line-height-body);
  font-family: var(--font-family-sans);
}

pre {
  font-family: var(--font-family-sans);
}

img,
picture {
  display: block;
  max-width: 100%;
}

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

input,
textarea,
select {
  background-color: var(--color-primary-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-header);
  line-height: var(--line-height-headers);
}

h1 {
  font-size: var(--font-size-xxxl);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-l);
}

a {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 200ms;
}
a:hover, a:focus, a:active {
  color: var(--color-white);
}

.flash {
  padding: 10px;
  margin: 10px;
  text-align: center;
  font-size: var(--font-size-l);
  font-weight: bold;
}

aside {
  background-color: var(--color-primary-bg);
  border-right: 1px solid hsl(var(--border));
  width: var(--sidebar-width);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
}
aside .sidebar {
  width: var(--sidebar-width);
  scrollbar-width: none;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
aside .sidebar--sticky {
  position: sticky;
  top: 0;
}
aside .sidebar {
  /* For Firefox */
  scrollbar-width: none;
  /* For IE and Edge */
  -ms-overflow-style: none;
}
aside .sidebar::-webkit-scrollbar .sidebar::-webkit-scrollbar-button {
  display: none;
  width: 0; /* Ensures no empty space is left */
  height: 0;
}
aside .sidebar--header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
  position: relative;
}
aside .sidebar--header .logo {
  height: 40px;
  margin-bottom: 0.5rem;
}
aside .sidebar--header h1 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}
aside nav {
  flex: 1;
  padding: 1rem 0;
  overflow-x: hidden;
}
aside nav.sidebar--scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 1;
}
aside nav .nav-section {
  margin-bottom: 2rem;
}
aside nav .nav-section:last-child {
  margin-bottom: 0;
}
aside nav .nav-section .nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}
aside nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
aside nav ul li {
  margin: 0;
}
aside nav ul li .nav-link-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 0.5rem 0.125rem 0.5rem;
  border-radius: 0.375rem;
}
aside nav ul li .nav-link-wrapper .nav-link {
  flex: 1;
  margin: 0 !important;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}
aside nav ul li .nav-link-wrapper .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease-in-out;
  border-radius: 0.375rem;
  flex-shrink: 0;
}
aside nav ul li .nav-link-wrapper .nav-dropdown-toggle:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
aside nav ul li .nav-link-wrapper .nav-dropdown-toggle .icon {
  margin: 0;
}
aside nav ul li .nav-link-wrapper .nav-dropdown-toggle .chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease-in-out;
}
aside nav ul li .nav-link-wrapper .nav-dropdown-toggle .chevron.rotate-180 {
  transform: rotate(180deg);
}
aside nav ul li .nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}
aside nav ul li .nav-submenu.hidden {
  display: none;
}
aside nav ul li .nav-submenu li .nav-sublink {
  padding-left: 3rem;
  font-size: 0.8125rem;
}
aside nav ul li a,
aside nav ul li button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 0.375rem;
  margin: 0 0.5rem 0.125rem 0.5rem;
}
aside nav ul li a:hover,
aside nav ul li button:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
aside nav ul li a.active,
aside nav ul li button.active {
  color: var(--color-white);
}
aside nav ul li a.active .icon,
aside nav ul li button.active .icon {
  color: var(--color-white);
}
aside nav ul li a .icon,
aside nav ul li button .icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
aside nav ul li a .sidebar--nav-label,
aside nav ul li button .sidebar--nav-label {
  white-space: nowrap;
}
aside nav.bottom {
  margin-top: 0;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
  flex-shrink: 0;
}
aside nav.bottom .app_version_hash {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 1rem;
}

@media (min-width: 50rem) {
  body.sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed);
  }
  body.sidebar-collapsed aside .sidebar--header h1 {
    display: none;
  }
  body.sidebar-collapsed aside .sidebar--header .logo {
    display: none;
  }
  body.sidebar-collapsed aside .nav-section-title {
    display: none;
  }
  body.sidebar-collapsed aside .sidebar--nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.15s ease, width 0.15s ease;
  }
  body.sidebar-collapsed aside .nav-link .icon,
  body.sidebar-collapsed aside .nav-sublink .icon {
    margin-right: 0;
  }
  body.sidebar-collapsed aside .sidebar--collapse-toggle svg {
    transform: rotate(180deg);
  }
  body.sidebar-collapsed aside .sidebar--collapse-toggle {
    right: 50%;
    transform: translate(50%, -50%);
  }
}
.color-background {
  background-color: var(--color-background);
}

.thumbnail {
  width: 100px;
  height: auto;
}

.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  z-index: 100;
}

/* Add CSS variables for shadcn-like colors */
:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn:hover, .btn:focus, .btn:focus-within, .btn:active {
  transition: filter 250ms, color 200ms;
}
.btn--disabled {
  pointer-events: none;
  opacity: 0.5;
}
.btn--primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn--primary:hover, .btn--primary:focus, .btn--primary:focus-within, .btn--primary:active {
  color: var(--color-dark);
  filter: brightness(150%);
}
.btn--secondary {
  color: var(--color-light);
  background-color: var(--color-primary-bg);
}
.btn--secondary:hover, .btn--secondary:focus, .btn--secondary:focus-within, .btn--secondary:active {
  color: var(--color-dark);
  filter: brightness(150%);
}
.btn--light {
  color: var(--color-light);
  background-color: var(--color-primary-bg);
}
.btn--light:hover, .btn--light:focus, .btn--light:focus-within, .btn--light:active {
  color: var(--color-light);
  filter: brightness(150%);
}
.btn--dark {
  color: var(--color-white);
  border-color: var(--color-dark);
  background-color: var(--color-dark);
}
.btn--dark:hover, .btn--dark:focus, .btn--dark:focus-within, .btn--dark:active {
  color: var(--color-white);
}

.metric-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.metric-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.metric-card__header h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.metric-card__icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}
.metric-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.metric-card__change {
  font-size: 0.75rem;
}
.metric-card__change.positive {
  color: #22c55e;
}
.metric-card__change.negative {
  color: #ef4444;
}

.chart-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.chart-card__header {
  margin-bottom: 1rem;
}
.chart-card__header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem 0;
}
.chart-card__header p {
  margin: 0;
}
.chart-card__content {
  height: 300px;
}

.priority-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.5rem;
}
.priority-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.priority-card__header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  flex: 1;
}
.priority-card__icon--urgent {
  color: #f59e0b;
}
.priority-card__icon--warning {
  color: #ef4444;
}

.priority-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.priority-item:last-child {
  border-bottom: none;
}
.priority-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.priority-item__title {
  font-weight: 500;
  color: hsl(var(--foreground));
}
.priority-item__subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.badge--urgent {
  background-color: #fef3c7;
  color: #92400e;
}
.badge--warning {
  background-color: #fee2e2;
  color: #991b1b;
}

.table-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  margin-top: 1.5rem;
}

.chart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: hsl(var(--muted-foreground));
  padding: 2rem;
}
.chart-empty-state__icon {
  margin-bottom: 1rem;
  opacity: 0.6;
}
.chart-empty-state__icon svg {
  width: 3rem;
  height: 3rem;
}
.chart-empty-state__message {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}
.chart-empty-state__submessage {
  font-size: 0.875rem;
  opacity: 0.8;
}

.chart-card__content {
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-card__content canvas {
  width: 100% !important;
  height: 100% !important;
}

.error-message {
  width: 100%;
  color: white;
  background-color: var(--color-primary-bg);
  padding: var(--space-xs);
  border-radius: var(--border-radius);
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.form__group {
  flex: 1;
}
.form__inline_input {
  max-width: 100%;
  padding: var(--space-xxs) var(--space-xs);
  border: var(--border);
  border-radius: var(--border-radius);
  outline: none;
  transition: box-shadow 250ms;
}
.form__input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: var(--space-xxs) var(--space-xs);
  border: var(--border);
  border-radius: var(--border-radius);
  outline: none;
  transition: box-shadow 250ms;
  background-color: var(--color-primary-bg);
}
.form__input:focus {
  box-shadow: 0 0 0 2px var(--color-glint);
}
.form__input--invalid {
  border-color: red;
}

@media (max-width: 49.99rem) {
  tr.customer {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
  }
  tr.customer td {
    display: block;
    padding: 0;
  }
  tr.customer td:first-child {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.375rem;
  }
}

.nested-form-wrapper {
  display: flex;
  padding-bottom: 10px;
}

.login-field {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.login-field--visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.index-row .actions {
  display: flex;
  justify-content: end;
  gap: var(--space-xs);
  padding: 15px;
}

.turbo-progress-bar {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-rotate));
}

.dropdown-menu--above {
  bottom: 100% !important;
  top: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
  transform-origin: bottom right !important;
}
.dropdown-menu--above.origin-top-left {
  transform-origin: bottom left !important;
}

.dropzone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fafafa;
}
.dropzone:hover {
  border-color: #999;
  background-color: #f5f5f5;
}
.dropzone--active {
  border-color: #2563eb;
  background-color: #eff6ff;
}
.dropzone p {
  margin: 0;
  color: #333;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 50rem) {
  .detail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.detail-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.detail-grid__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.detail-grid__value {
  font-size: 0.9375rem;
  color: var(--color-text-body);
}

.container {
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  flex: 1;
  overflow: hidden;
}

.content-header {
  flex-shrink: 0;
}
.content-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  flex-wrap: wrap;
}
@media (min-width: 50rem) {
  .content-header__row {
    flex-wrap: nowrap;
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }
}
.content-header__title {
  flex-shrink: 0;
}
.content-header__title h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-body);
  line-height: 1.2;
}
.content-header__subtitle {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}
.content-header__search {
  flex: 1;
  display: none;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 50rem) {
  .content-header__search {
    display: flex;
  }
}
.content-header__mobile-search {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background-color: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 25;
  overflow-y: auto;
}
@media (min-width: 50rem) {
  .content-header__mobile-search {
    display: none !important;
  }
}
.content-header__mobile-search.is-open {
  display: block;
}
.content-header__mobile-search .global-search__results {
  position: static;
  margin-top: 0.5rem;
  box-shadow: none;
  border: none;
  max-height: none;
  background-color: transparent;
}
.content-header__mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.content-header__mobile-search-cancel {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.content-header__search-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  position: relative;
  isolation: isolate;
}
.content-header__search-input .icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}
.content-header__search-input input {
  all: unset;
  width: 100%;
  font-size: 0.875rem;
  color: var(--color-text-body);
}
.content-header__search-input input::placeholder {
  color: hsl(var(--muted-foreground));
}
.content-header__search-clear {
  appearance: none;
  border: none;
  background: none;
  font-size: 1.125rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0 0.125rem;
  flex-shrink: 0;
}
.content-header__search-clear:hover {
  color: hsl(var(--foreground));
}
.content-header__search-clear.hidden {
  display: none;
}
.content-header__search-input--searching {
  border-color: transparent !important;
  background: linear-gradient(hsl(var(--muted)), hsl(var(--muted))) padding-box, conic-gradient(from 0deg, #6366f1, #8b5cf6, #3b82f6, #6366f1) border-box;
  animation: search-spin 3s linear infinite, search-glow 2s ease-in-out infinite;
  box-shadow: 0 0 8px 2px rgba(99, 102, 241, 0.3), 0 0 20px 4px rgba(139, 92, 246, 0.15);
  transition: box-shadow 0.5s ease-out;
}
.content-header__search-input--searching .icon {
  animation: search-pulse 1.5s ease-in-out infinite;
  color: #8b5cf6;
}
.content-header__search-input--fading {
  border-color: transparent !important;
  background: linear-gradient(hsl(var(--muted)), hsl(var(--muted))) padding-box, conic-gradient(from 0deg, #6366f1, #8b5cf6, #3b82f6, #6366f1) border-box;
  animation: search-spin 3s linear infinite;
  box-shadow: none;
  transition: box-shadow 0.5s ease-out;
}
@keyframes search-spin {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}
@keyframes search-glow {
  0%, 100% {
    box-shadow: 0 0 4px 1px rgba(99, 102, 241, 0.1), 0 0 10px 2px rgba(139, 92, 246, 0.05);
  }
  50% {
    box-shadow: 0 0 12px 3px rgba(99, 102, 241, 0.5), 0 0 28px 6px rgba(139, 92, 246, 0.25);
  }
}
@keyframes search-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.content-header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.content-header__actions-secondary {
  display: none;
}
@media (min-width: 50rem) {
  .content-header__actions-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}
.content-header__actions-overflow {
  display: flex;
  position: relative;
}
@media (min-width: 50rem) {
  .content-header__actions-overflow {
    display: none;
  }
}
.content-header__bell {
  display: none;
}
@media (min-width: 50rem) {
  .content-header__bell {
    display: flex;
  }
}
.content-header__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.5rem 2rem;
  overflow-x: auto;
}
@media (min-width: 50rem) {
  .content-header__tabs {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }
}
.content-header__tabs .tab {
  margin: 0;
}

.content-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
}
@media (min-width: 50rem) {
  .content-body {
    padding-right: var(--space-m);
    padding-left: var(--space-m);
  }
}
.content-body--flush {
  padding: 0 10px;
}

.table--no-margin {
  margin: 0;
}

.content-header__search-kbd {
  display: none;
  align-items: center;
  gap: 1px;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  font-family: inherit;
  line-height: 1;
}
@media (min-width: 50rem) {
  .content-header__search-kbd {
    display: inline-flex;
  }
}

.content-header__search-kbd-symbol {
  font-size: 0.8rem;
}

.global-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background-color: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

.global-search__group-header {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

.global-search__item {
  display: block;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.1s;
  text-decoration: none;
  overflow: hidden;
}
.global-search__item:hover, .global-search__item--active {
  background-color: hsl(var(--accent));
}

.global-search__item-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.global-search__item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search__item-title mark {
  background: none;
  color: hsl(var(--foreground));
  font-weight: 700;
}

.global-search__item-subtitle {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}
.global-search__item-subtitle mark {
  background: none;
  color: hsl(var(--foreground));
  font-weight: 600;
}

.global-search__empty {
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.global-search__view-all {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  text-align: center;
}
.global-search__view-all:hover {
  color: hsl(var(--foreground));
}

.container-login {
  width: 100%;
}

.hierarchy-list {
  list-style: none; /* Remove default list bullets */
  padding-left: 0; /* Reset default padding */
}

/* Styling for each level of the hierarchy */
.hierarchy-list li {
  margin-bottom: 0.5em; /* Add some space between list items */
}

/* Indentation based on depth (adjust values as needed) */
.hierarchy-list ul {
  list-style: none;
  padding-left: 20px; /* Increase indentation for each level */
}

/* Visual cues for hierarchy (optional) */
.hierarchy-list li::before {
  color: #888; /* Light grey color */
  margin-right: 0.2em;
}

/* Improve readability */
.hierarchy-list a {
  text-decoration: none; /* Remove underlines from links */
  display: inline-block; /* Make the entire area clickable */
  padding: 0.2em 0.5em;
  border-radius: 3px;
}

.hierarchy-list a:hover {
  background-color: #888;
}

/* Example of connecting lines (requires more complex CSS and may need adjustments) */
.hierarchy-list ul li {
  position: relative;
}

/* Vertical line extending from the top */
.hierarchy-list ul li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px; /* Adjust based on indentation */
  height: 100%;
  border-left: 1px dashed #ccc;
}

/* Horizontal line connecting to the text */
.hierarchy-list ul li::after {
  content: "";
  position: absolute;
  top: 1em; /* Adjust vertical alignment */
  left: -10px; /* Adjust based on indentation */
  width: 10px;
  border-top: 1px dashed #ccc;
}

/* First element doesn't need the top vertical line */
.hierarchy-list > li:first-child::before {
  content: none;
}

.header {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  margin-top: var(--space-m);
  margin-bottom: var(--space-l);
  padding: var(--space-m) 0;
  background-color: var(--color-background);
  z-index: 2;
}
@media (min-width: 50rem) {
  .header {
    margin-bottom: var(--space-xl);
  }
}

.sticky {
  position: sticky;
  top: 75px;
  background-color: var(--color-background);
}
@media (min-width: 50rem) {
  .sticky {
    margin-bottom: var(--space-xl);
  }
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
}
table .order {
  position: relative;
  top: 2px;
  margin-left: 0.5rem;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
table .order-desc {
  border-top: 6px solid hsl(var(--muted-foreground));
}
table .order-asc {
  border-bottom: 6px solid hsl(var(--muted-foreground));
}
table .order-none {
  border-top: 3px solid hsl(var(--muted-foreground));
  border-bottom: 3px solid hsl(var(--muted-foreground));
}
table thead {
  background-color: hsl(var(--muted));
  z-index: 2;
}
table thead tr {
  border-bottom: 1px solid hsl(var(--border));
}
table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-bottom: 1px solid hsl(var(--border));
}
table thead th:first-child {
  border-top-left-radius: 0.5rem;
}
table thead th:last-child {
  border-top-right-radius: 0.5rem;
}
table thead th a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
table thead th a:hover {
  color: hsl(var(--foreground));
}
table thead th.hover\:cursor-pointer {
  cursor: pointer;
}
table thead th.hover\:cursor-pointer:hover {
  background-color: hsl(var(--accent));
}
table tbody tr {
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 0.2s ease-in-out;
}
table tbody tr:last-child {
  border-bottom: none;
}
table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}
table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}
table tbody tr:hover {
  background-color: hsl(var(--muted));
}
table tbody tr td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  vertical-align: middle;
}
table tbody tr td a {
  color: hsl(var(--primary));
  text-decoration: none;
}
table tbody tr td a:hover {
  text-decoration: underline;
}
table tbody tr td.order-kind-pills {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.table-scroll-wrapper {
  overflow-x: auto;
}

.table--sticky-header thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table--sticky-header-new-from-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.table--sticky-header-orders thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background-color: hsl(var(--muted));
  border-radius: 0.375rem;
  padding: 0.25rem;
  margin: 1rem;
}
.tab__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
}
.tab__link:hover {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}
.tab__link.active {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.pagination-actions {
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-top: 1rem;
  position: sticky;
  bottom: 0;
  background-color: var(--color-background);
}
@media (min-width: 50rem) {
  .pagination-actions {
    display: flex;
  }
}

.po-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 50rem) {
  .po-form-fields {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}
.po-form-fields__inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
@media (min-width: 50rem) {
  .po-form-fields__inputs {
    flex-direction: row;
    align-items: center;
  }
}
.po-form-fields__inputs .input,
.po-form-fields__inputs .string {
  width: 100%;
}
.po-form-fields__inputs .input input,
.po-form-fields__inputs .string input {
  width: 100%;
}
.po-form-fields__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 49.99rem) {
  .po-form-table thead {
    display: none;
  }
  .po-form-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--border));
  }
  .po-form-table tbody tr td:nth-child(1) {
    width: 100%;
    font-weight: 600;
    padding: 0 0 0.125rem;
  }
  .po-form-table tbody tr td:nth-child(2) {
    display: none;
  }
  .po-form-table tbody tr td:nth-child(3) {
    width: 100%;
    padding: 0 0 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
  }
  .po-form-table tbody tr td:nth-child(4) {
    display: none;
  }
  .po-form-table tbody tr td:nth-child(5),
  .po-form-table tbody tr td:nth-child(6),
  .po-form-table tbody tr td:nth-child(7) {
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  .po-form-table tbody tr td:nth-child(5)::before,
  .po-form-table tbody tr td:nth-child(6)::before,
  .po-form-table tbody tr td:nth-child(7)::before {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
  }
  .po-form-table tbody tr td:nth-child(5) input,
  .po-form-table tbody tr td:nth-child(6) input,
  .po-form-table tbody tr td:nth-child(7) input {
    width: 100%;
    font-size: 0.8125rem;
    box-sizing: border-box;
  }
  .po-form-table tbody tr td:nth-child(5)::before {
    content: "Qty";
  }
  .po-form-table tbody tr td:nth-child(5) {
    margin-right: 0.5rem;
  }
  .po-form-table tbody tr td:nth-child(6)::before {
    content: "Cost Each";
  }
  .po-form-table tbody tr td:nth-child(6) {
    margin-right: 0.5rem;
  }
  .po-form-table tbody tr td:nth-child(7)::before {
    content: "Cost Case";
  }
  .po-form-table tbody tr td:nth-child(8) {
    width: 100%;
    padding: 0.5rem 0 0;
    text-align: right;
    font-weight: 600;
    font-size: 0.8125rem;
  }
  .po-form-table tfoot tr td {
    padding: 1rem;
  }
}

.form__inline_input {
  display: inline-flex;
  height: 2.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}
.form__inline_input::placeholder {
  color: hsl(var(--muted-foreground));
}
.form__inline_input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary)/0.2);
}

:root {
  --ss-primary-color: var(--color-dark);
  --ss-bg-color: var(--color-primary-bg);
  --ss-font-color: var(--color-text-body);
  --ss-font-placeholder-color: #8d8d8d;
  --ss-disabled-color: #dcdee2;
  --ss-highlight-color: #fffb8c;
  --ss-success-color: #00b755;
  --ss-error-color: #dc3545;
  --ss-focus-color: #5897fb;
  --ss-main-height: 40px;
  --ss-content-height: 300px;
  --ss-spacing-l: 7px;
  --ss-spacing-m: 5px;
  --ss-spacing-s: 3px;
  --ss-animation-timing: 0.2s;
  --ss-border-radius: var(--border-radius);
}

@keyframes ss-valueIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes ss-valueOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
.ss-hide {
  display: none !important;
}

.ss-main {
  display: flex;
  flex-direction: row;
  position: relative;
  user-select: none;
  color: var(--ss-font-color);
  min-height: var(--ss-main-height);
  width: 100%;
  padding: var(--ss-spacing-s);
  cursor: pointer;
  border: var(--border);
  border-radius: var(--ss-border-radius);
  background-color: var(--ss-bg-color);
  outline: 0;
  box-sizing: border-box;
  transition: background-color var(--ss-animation-timing);
  overflow: hidden;
}

.ss-main:focus {
  box-shadow: 0 0 5px var(--ss-focus-color);
}

.ss-main.ss-disabled {
  background-color: var(--ss-disabled-color);
  cursor: not-allowed;
}

.ss-main.ss-disabled .ss-values .ss-disabled {
  color: var(--ss-font-color);
}

.ss-main.ss-disabled .ss-values .ss-value .ss-value-delete {
  cursor: not-allowed;
}

.ss-main.ss-open-above {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.ss-main.ss-open-below {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.ss-main .ss-values {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--ss-spacing-m);
  flex: 1 1 100%;
}

.ss-main .ss-values .ss-placeholder {
  display: flex;
  padding: var(--ss-spacing-s) var(--ss-spacing-m) var(--ss-spacing-s) var(--ss-spacing-m);
  margin: auto 0px auto 0px;
  line-height: 1em;
  align-items: center;
  width: 100%;
  color: var(--ss-font-placeholder-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-main .ss-values .ss-max {
  display: flex;
  user-select: none;
  align-items: center;
  width: fit-content;
  font-size: 12px;
  color: var(--ss-bg-color);
  line-height: 1;
  padding: var(--ss-spacing-s) var(--ss-spacing-m);
  background-color: var(--ss-primary-color);
  border-radius: var(--ss-border-radius);
}

.ss-main .ss-values .ss-single {
  display: flex;
  margin: auto 0px auto var(--ss-spacing-s);
}

.ss-main .ss-values .ss-value {
  display: flex;
  user-select: none;
  align-items: center;
  width: fit-content;
  background-color: var(--ss-primary-color);
  border-radius: var(--ss-border-radius);
  animation-name: ss-valueIn;
  animation-duration: var(--ss-animation-timing);
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.ss-main .ss-values .ss-value.ss-value-out {
  animation-name: ss-valueOut;
  animation-duration: var(--ss-animation-timing);
  animation-timing-function: ease-out;
}

.ss-main .ss-values .ss-value .ss-value-text {
  font-size: 12px;
  color: var(--ss-bg-color);
  line-height: 1;
  padding: var(--ss-spacing-s) var(--ss-spacing-m);
}

.ss-main .ss-values .ss-value .ss-value-delete {
  display: flex;
  align-items: center;
  height: var(--ss-spacing-l);
  width: var(--ss-spacing-l);
  padding: var(--ss-spacing-s) var(--ss-spacing-m);
  cursor: pointer;
  border-left: solid 1px var(--ss-bg-color);
  box-sizing: content-box;
}

.ss-main .ss-values .ss-value .ss-value-delete svg {
  height: var(--ss-spacing-l);
  width: var(--ss-spacing-l);
}

.ss-main .ss-values .ss-value .ss-value-delete svg path {
  fill: none;
  stroke: var(--ss-bg-color);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ss-main .ss-deselect {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: auto;
  margin: 0 var(--ss-spacing-m) 0 var(--ss-spacing-m);
}

.ss-main .ss-deselect svg {
  width: 8px;
  height: 8px;
}

.ss-main .ss-deselect svg path {
  fill: none;
  stroke: var(--ss-font-color);
  stroke-width: 20;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ss-main .ss-arrow {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 12px;
  height: 12px;
  margin: auto var(--ss-spacing-m) auto var(--ss-spacing-m);
}

.ss-main .ss-arrow path {
  fill: none;
  stroke: var(--ss-font-color);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition-timing-function: ease-out;
  transition: var(--ss-animation-timing);
}

.ss-content {
  position: absolute;
  display: flex;
  height: auto;
  flex-direction: column;
  width: auto;
  max-height: var(--ss-content-height);
  box-sizing: border-box;
  border: solid 1px var(--ss-border-color);
  background-color: var(--ss-bg-color);
  transition: transform var(--ss-animation-timing), opacity var(--ss-animation-timing);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center top;
  overflow: hidden;
  z-index: 10000;
}

.ss-content.ss-relative {
  position: relative;
  height: 100%;
}

.ss-content.ss-open-above {
  flex-direction: column-reverse;
  opacity: 1;
  transform: scaleY(1);
  transform-origin: center bottom;
  border-top-left-radius: var(--ss-border-radius);
  border-top-right-radius: var(--ss-border-radius);
}

.ss-content.ss-open-below {
  opacity: 1;
  transform: scaleY(1);
  transform-origin: center top;
  border-bottom-left-radius: var(--ss-border-radius);
  border-bottom-right-radius: var(--ss-border-radius);
}

.ss-content .ss-search {
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  padding: var(--ss-spacing-l) var(--ss-spacing-l) var(--ss-spacing-m) var(--ss-spacing-l);
}

.ss-content .ss-search input {
  display: inline-flex;
  font-size: inherit;
  line-height: inherit;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0px;
  padding: var(--ss-spacing-m) var(--ss-spacing-l);
  margin: 0;
  border: 1px solid var(--ss-border-color);
  border-radius: var(--ss-border-radius);
  background-color: var(--ss-bg-color);
  outline: 0;
  text-align: left;
  box-sizing: border-box;
}

.ss-content .ss-search input::placeholder {
  color: var(--ss-font-placeholder-color);
  vertical-align: middle;
}

.ss-content .ss-search input:focus {
  box-shadow: 0 0 5px var(--ss-focus-color);
}

.ss-content .ss-search .ss-addable {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  height: auto;
  margin: 0 0 0 var(--ss-spacing-m);
  border: 1px solid var(--ss-border-color);
  border-radius: var(--ss-border-radius);
}

.ss-content .ss-search .ss-addable svg {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  width: 12px;
  height: 12px;
  margin: auto var(--ss-spacing-m) auto var(--ss-spacing-m);
}

.ss-content .ss-search .ss-addable svg path {
  fill: none;
  stroke: var(--ss-font-color);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ss-content .ss-list {
  flex: 1 1 auto;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.ss-content .ss-list .ss-error {
  color: var(--ss-error-color);
  padding: var(--ss-spacing-l);
}

.ss-content .ss-list .ss-searching {
  color: var(--ss-font-color);
  padding: var(--ss-spacing-l);
}

.ss-content .ss-list .ss-optgroup.ss-close .ss-option {
  display: none !important;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--ss-spacing-m) var(--ss-spacing-l) var(--ss-spacing-m) var(--ss-spacing-l);
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-label-text {
  flex: 1 1 auto;
  font-weight: bold;
  color: var(--ss-font-color);
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label:has(.ss-arrow) {
  cursor: pointer;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions {
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--ss-spacing-m);
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  cursor: pointer;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall:hover {
  opacity: 0.5;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall.ss-selected svg path {
  stroke: var(--ss-error-color);
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall span {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60%;
  text-align: center;
  padding: 0 var(--ss-spacing-s) 0 0;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg {
  flex: 0 1 auto;
  width: 13px;
  height: 13px;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg path {
  fill: none;
  stroke: var(--ss-success-color);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg:first-child {
  stroke-width: 5;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-selectall svg:last-child {
  stroke-width: 11;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-closable {
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  cursor: pointer;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-closable .ss-arrow {
  flex: 1 1 auto;
  width: 10px;
  height: 10px;
}

.ss-content .ss-list .ss-optgroup .ss-optgroup-label .ss-optgroup-actions .ss-closable .ss-arrow path {
  fill: none;
  stroke: var(--ss-font-color);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition-timing-function: ease-out;
  transition: var(--ss-animation-timing);
}

.ss-content .ss-list .ss-optgroup .ss-option {
  padding: var(--ss-spacing-s) var(--ss-spacing-s) var(--ss-spacing-s) calc(var(--ss-spacing-l) * 3);
}

.ss-content .ss-list .ss-option {
  display: flex;
  padding: var(--ss-spacing-m) var(--ss-spacing-l) var(--ss-spacing-m) var(--ss-spacing-l);
  color: var(--ss-font-color);
  cursor: pointer;
  user-select: none;
}

.ss-content .ss-list .ss-option:hover {
  color: var(--ss-bg-color);
  background-color: var(--ss-primary-color);
}

.ss-content .ss-list .ss-option.ss-highlighted, .ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected {
  color: var(--ss-bg-color);
  background-color: var(--ss-primary-color);
}

.ss-content .ss-list .ss-option.ss-disabled {
  cursor: not-allowed;
  background-color: var(--ss-disabled-color);
}

.ss-content .ss-list .ss-option.ss-disabled:hover {
  color: var(--ss-font-color);
}

.ss-content .ss-list .ss-option .ss-search-highlight {
  background-color: var(--ss-highlight-color);
}


.mobile-header {
  display: none;
}
@media (max-width: 49.99rem) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 1rem;
    background-color: var(--color-primary-bg);
    border-bottom: 1px solid hsl(var(--border));
    z-index: 30;
  }
  .mobile-header .mobile-header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-text-body);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease-in-out;
  }
  .mobile-header .mobile-header__toggle:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
  }
  .mobile-header .mobile-header__toggle .icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .mobile-header .mobile-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
  }
  .mobile-header .mobile-header__brand img {
    height: 32px;
    width: auto;
  }
  .mobile-header .mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .mobile-header .mobile-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: var(--border-radius);
  }
  .mobile-header .mobile-header__search-btn:hover {
    color: var(--color-white);
  }
}

aside {
  transition: transform 0.2s ease-in-out, width 0.2s ease-in-out;
  z-index: 100;
}
@media (max-width: 49.99rem) {
  aside {
    transform: translateX(-100%);
  }
  aside.is-open {
    transform: translateX(0);
  }
}

.sidebar--backdrop {
  display: none;
}
@media (max-width: 49.99rem) {
  .sidebar--backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
  }
  .sidebar--backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.sidebar--collapse-toggle {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: var(--border-radius);
}
.sidebar--collapse-toggle:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.sidebar--collapse-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease-in-out;
}
@media (max-width: 49.99rem) {
  .sidebar--collapse-toggle {
    display: none;
  }
}

.container {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  transition: margin-left 0.2s ease-in-out, width 0.2s ease-in-out;
}
@media (max-width: 49.99rem) {
  .container {
    margin-left: 0;
    width: 100%;
    margin-top: 56px;
    padding: 1rem;
  }
}

.mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}
@media (min-width: 50rem) {
  .mobile-cards {
    display: none;
  }
}

.mobile-cards__sentinel {
  display: flex;
  justify-content: center;
  padding: 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 50rem) {
  .mobile-cards__sentinel {
    display: none;
  }
}

.table--desktop-only {
  display: none;
}
@media (min-width: 50rem) {
  .table--desktop-only {
    display: table;
  }
}

.mobile-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--border-radius);
  overflow: hidden;
}
.mobile-card__body {
  padding: 0.75rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-card__body:active {
  background-color: hsl(var(--accent));
}
.mobile-card__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mobile-card__row + .mobile-card__row {
  margin-top: 0.375rem;
}
.mobile-card__row--secondary {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.mobile-card__id {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.mobile-card__customer {
  font-weight: 600;
  font-size: 0.9375rem;
}
.mobile-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.mobile-card__muted {
  color: hsl(var(--muted-foreground));
}
.mobile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid hsl(var(--border));
}
.mobile-card__actions.hidden {
  display: none;
}
.mobile-card__action {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.15s;
}
.mobile-card__action:active {
  background-color: hsl(var(--accent));
}
.mobile-card__action--danger {
  color: hsl(0, 84%, 60%);
  background-color: hsla(0, 84%, 60%, 0.1);
}
.mobile-card__meta {
  display: flex;
  gap: 1rem;
  width: 100%;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.sidebar-tooltip {
  position: fixed;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.375rem 0.375rem 0;
  background-color: hsl(var(--accent));
  border-left: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
  animation: sidebar-tooltip-fade-in 0.1s ease-in-out;
}

@keyframes sidebar-tooltip-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
