:root {
  --ds-primary: #C62828;
  --ds-primary-rgb: 198, 40, 40;
  --ds-primary-hover: rgb(170, 34, 34);
  --ds-primary-bright: #E53935;
  --ds-primary-soft: #F29A9A;
  --ds-primary-subtle: #FDE6E6;
  --ds-on-primary: #fff;
  --ds-canvas: #fff9f2;
  --ds-backdrop: #F6C9C9;
  --ds-focus-ring: 0 0 0 4px rgba(198, 40, 40, 0.18);
  --ds-accent: #E98C61;
  --ds-accent-soft: #F5A67F;
  --ds-accent-subtle: #FDEEE7;
  --ds-surface: #FFFFFF;
  --ds-surface-muted: #FFF8F8;
  --ds-border: #F1E0E0;
  --ds-border-strong: #E4C6C6;
  --ds-text: #2D2A2E;
  --ds-text-muted: #857B7F;
  --ds-text-subtle: #B8AEB1;
  --ds-on-dark: #FFFFFF;
  --ds-success: #2FB67C;
  --ds-success-subtle: #E3F6EE;
  --ds-warning: #F2A93B;
  --ds-warning-subtle: #FEF3E2;
  --ds-danger: #E5484D;
  --ds-danger-subtle: #FDE8E9;
  --ds-info: #6E6468;
  --ds-info-subtle: #F3EEEF;
  --ds-font-sans: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  --ds-font-arabic: "Noto Kufi Arabic", "Droid Arabic Kufi", Tahoma, sans-serif;
  --ds-text-xs: 12px;
  --ds-text-sm: 13px;
  --ds-text-md: 14px;
  --ds-text-lg: 16px;
  --ds-text-xl: 20px;
  --ds-text-2xl: 24px;
  --ds-text-3xl: 32px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-8: 32px;
  --ds-space-10: 40px;
  --ds-space-12: 48px;
  --ds-radius-xs: 6px;
  --ds-radius-sm: 10px;
  --ds-radius-md: 14px;
  --ds-radius-lg: 20px;
  --ds-radius-xl: 28px;
  --ds-radius-pill: 999px;
  --ds-shadow-rgb: 110, 24, 24;
  --ds-shadow-xs: 0 1px 2px rgba(var(--ds-shadow-rgb), 0.06);
  --ds-shadow-sm: 0 4px 12px rgba(var(--ds-shadow-rgb), 0.07);
  --ds-shadow-md: 0 12px 32px rgba(var(--ds-shadow-rgb), 0.11);
  --ds-shadow-lg: 0 24px 64px rgba(var(--ds-shadow-rgb), 0.16);
  --ds-control-h: 44px;
  --ds-control-h-sm: 36px;
  --ds-control-h-lg: 50px;
  --ds-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ds-duration: 0.18s;
}

[data-ds-theme=blue] {
  --ds-primary: #2684ff;
  --ds-primary-rgb: 38, 132, 255;
  --ds-primary-hover: rgb(33, 114, 219);
  --ds-primary-bright: rgb(64, 147, 255);
  --ds-primary-soft: rgb(157, 200, 255);
  --ds-primary-subtle: rgb(229, 240, 255);
  --ds-on-primary: #fff;
  --ds-canvas: rgb(235, 244, 255);
  --ds-backdrop: rgb(186, 216, 255);
  --ds-focus-ring: 0 0 0 4px rgba(38, 132, 255, 0.18);
}

[data-ds-theme=dark] {
  --ds-primary: #1a1a1a;
  --ds-primary-rgb: 26, 26, 26;
  --ds-primary-hover: rgb(22, 22, 22);
  --ds-primary-bright: rgb(53, 53, 53);
  --ds-primary-soft: rgb(152, 152, 152);
  --ds-primary-subtle: rgb(228, 228, 228);
  --ds-on-primary: #fff;
  --ds-canvas: rgb(234, 234, 234);
  --ds-backdrop: rgb(182, 182, 182);
  --ds-focus-ring: 0 0 0 4px rgba(26, 26, 26, 0.18);
}

[data-ds-theme=green] {
  --ds-primary: #35ab3f;
  --ds-primary-rgb: 53, 171, 63;
  --ds-primary-hover: rgb(46, 147, 54);
  --ds-primary-bright: rgb(77, 181, 86);
  --ds-primary-soft: rgb(164, 217, 169);
  --ds-primary-subtle: rgb(231, 245, 232);
  --ds-on-primary: #fff;
  --ds-canvas: rgb(237, 247, 238);
  --ds-backdrop: rgb(190, 228, 194);
  --ds-focus-ring: 0 0 0 4px rgba(53, 171, 63, 0.18);
}

[data-ds-theme=orange] {
  --ds-primary: #e26810;
  --ds-primary-rgb: 226, 104, 16;
  --ds-primary-hover: rgb(194, 89, 14);
  --ds-primary-bright: rgb(229, 122, 45);
  --ds-primary-soft: rgb(242, 187, 147);
  --ds-primary-subtle: rgb(252, 237, 226);
  --ds-on-primary: #fff;
  --ds-canvas: rgb(252, 241, 233);
  --ds-backdrop: rgb(246, 207, 179);
  --ds-focus-ring: 0 0 0 4px rgba(226, 104, 16, 0.18);
}

.ds {
  margin: 0;
  background-color: var(--ds-canvas);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ds:lang(ar) {
  font-family: var(--ds-font-arabic);
}

:where(.ds) *,
:where(.ds) *::before,
:where(.ds) *::after {
  box-sizing: border-box;
}
:where(.ds) h1, :where(.ds) h2, :where(.ds) h3, :where(.ds) h4, :where(.ds) h5, :where(.ds) h6 {
  margin: 0;
  color: var(--ds-text);
  font-weight: 600;
  line-height: 1.25;
}
:where(.ds) p {
  margin: 0;
}
:where(.ds) a {
  color: var(--ds-primary);
}
:where(.ds) img,
:where(.ds) svg {
  vertical-align: middle;
}
:where(.ds) button,
:where(.ds) input,
:where(.ds) select,
:where(.ds) textarea {
  font: inherit;
}

.ds [hidden] {
  display: none !important;
}

.ds-icon {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-icon--xs {
  width: 12px;
  height: 12px;
}

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

.ds-muted {
  color: var(--ds-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .ds *,
  .ds *::before,
  .ds *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.ds-btn, .ds-auth-page > form:not(.ds-login) input[type=submit],
.ds-auth-page > form:not(.ds-login) button,
.ds-auth-page > div input[type=submit],
.ds-auth-page > div button {
  --btn-bg: var(--ds-primary);
  --btn-bg-hover: var(--ds-primary-hover);
  --btn-fg: var(--ds-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  height: var(--ds-control-h);
  padding: 0 var(--ds-space-6);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-pill);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: var(--ds-text-md);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease), transform var(--ds-duration) var(--ds-ease);
}
.ds-btn:hover, .ds-auth-page > form:not(.ds-login) input[type=submit]:hover,
.ds-auth-page > form:not(.ds-login) button:hover,
.ds-auth-page > div input[type=submit]:hover,
.ds-auth-page > div button:hover {
  background-color: var(--btn-bg-hover);
  color: var(--btn-fg);
  text-decoration: none;
}
.ds-btn:focus, .ds-auth-page > form:not(.ds-login) input[type=submit]:focus,
.ds-auth-page > form:not(.ds-login) button:focus,
.ds-auth-page > div input[type=submit]:focus,
.ds-auth-page > div button:focus {
  outline: none;
}
.ds-btn:focus-visible, .ds-auth-page > form:not(.ds-login) input[type=submit]:focus-visible,
.ds-auth-page > form:not(.ds-login) button:focus-visible,
.ds-auth-page > div input[type=submit]:focus-visible,
.ds-auth-page > div button:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-btn:active, .ds-auth-page > form:not(.ds-login) input[type=submit]:active,
.ds-auth-page > form:not(.ds-login) button:active,
.ds-auth-page > div input[type=submit]:active,
.ds-auth-page > div button:active {
  transform: translateY(1px);
}
.ds-btn:disabled, .ds-auth-page > form:not(.ds-login) input[type=submit]:disabled,
.ds-auth-page > form:not(.ds-login) button:disabled,
.ds-auth-page > div input[type=submit]:disabled,
.ds-auth-page > div button:disabled, .ds-btn.is-disabled, .ds-auth-page > form:not(.ds-login) input.is-disabled[type=submit],
.ds-auth-page > form:not(.ds-login) button.is-disabled,
.ds-auth-page > div input.is-disabled[type=submit],
.ds-auth-page > div button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.ds-btn.is-loading, .ds-auth-page > form:not(.ds-login) input.is-loading[type=submit],
.ds-auth-page > form:not(.ds-login) button.is-loading,
.ds-auth-page > div input.is-loading[type=submit],
.ds-auth-page > div button.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}
.ds-btn.is-loading::after, .ds-auth-page > form:not(.ds-login) input.is-loading[type=submit]::after,
.ds-auth-page > form:not(.ds-login) button.is-loading::after,
.ds-auth-page > div input.is-loading[type=submit]::after,
.ds-auth-page > div button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: ds-spin 0.7s linear infinite;
}

.ds-btn--primary, .ds-auth-page > form:not(.ds-login) input[type=submit],
.ds-auth-page > form:not(.ds-login) button,
.ds-auth-page > div input[type=submit],
.ds-auth-page > div button {
  box-shadow: 0 8px 20px rgba(var(--ds-primary-rgb), 0.28);
}
.ds-btn--primary:focus-visible, .ds-auth-page > form:not(.ds-login) input[type=submit]:focus-visible,
.ds-auth-page > form:not(.ds-login) button:focus-visible,
.ds-auth-page > div input[type=submit]:focus-visible,
.ds-auth-page > div button:focus-visible {
  box-shadow: 0 8px 20px rgba(var(--ds-primary-rgb), 0.28), var(--ds-focus-ring);
}

.ds-btn--soft {
  --btn-bg: var(--ds-primary-subtle);
  --btn-bg-hover: var(--ds-primary-soft);
  --btn-fg: var(--ds-primary);
}

.ds-btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--ds-primary-subtle);
  --btn-fg: var(--ds-primary);
}

.ds-btn--outline {
  --btn-bg: var(--ds-surface);
  --btn-bg-hover: var(--ds-surface-muted);
  --btn-fg: var(--ds-text);
  border-color: var(--ds-border-strong);
}

.ds-btn--accent {
  --btn-bg: var(--ds-accent);
  --btn-bg-hover: #D9784C;
  --btn-fg: #fff;
}

.ds-btn--danger {
  --btn-bg: var(--ds-danger);
  --btn-bg-hover: #CC3A3F;
  --btn-fg: #fff;
}

.ds-btn--sm {
  height: var(--ds-control-h-sm);
  padding: 0 var(--ds-space-4);
  font-size: var(--ds-text-sm);
}

.ds-btn--lg {
  height: var(--ds-control-h-lg);
  padding: 0 var(--ds-space-8);
  font-size: var(--ds-text-lg);
}

.ds-btn--block, .ds-auth-page > form:not(.ds-login) input[type=submit],
.ds-auth-page > form:not(.ds-login) button,
.ds-auth-page > div input[type=submit],
.ds-auth-page > div button {
  display: flex;
  width: 100%;
}

.ds-btn--icon {
  width: var(--ds-control-h);
  padding: 0;
}

.ds-swap > .ds-icon + .ds-icon {
  display: none;
}
.ds-swap.is-on > .ds-icon:first-of-type {
  display: none;
}
.ds-swap.is-on > .ds-icon + .ds-icon {
  display: inline-block;
}

@keyframes ds-spin {
  to {
    transform: rotate(360deg);
  }
}
.ds-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--ds-space-4);
}

.ds-label {
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  font-weight: 500;
}

.ds-help {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}

.ds-input, .ds-auth-page > form:not(.ds-login) input[type=text],
.ds-auth-page > form:not(.ds-login) input[type=email],
.ds-auth-page > form:not(.ds-login) input[type=password],
.ds-auth-page > div input[type=text],
.ds-auth-page > div input[type=email],
.ds-auth-page > div input[type=password], .ds-form .form-control {
  display: block;
  width: 100%;
  height: var(--ds-control-h);
  padding: 0 var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface-muted);
  color: var(--ds-text);
  font-family: inherit;
  font-size: var(--ds-text-md);
  transition: border-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease), background-color var(--ds-duration) var(--ds-ease);
}
.ds-input::placeholder, .ds-auth-page > form:not(.ds-login) input[type=text]::placeholder,
.ds-auth-page > form:not(.ds-login) input[type=email]::placeholder,
.ds-auth-page > form:not(.ds-login) input[type=password]::placeholder,
.ds-auth-page > div input[type=text]::placeholder,
.ds-auth-page > div input[type=email]::placeholder,
.ds-auth-page > div input[type=password]::placeholder, .ds-form .form-control::placeholder {
  color: var(--ds-text-subtle);
}
.ds-input:hover, .ds-auth-page > form:not(.ds-login) input[type=text]:hover,
.ds-auth-page > form:not(.ds-login) input[type=email]:hover,
.ds-auth-page > form:not(.ds-login) input[type=password]:hover,
.ds-auth-page > div input[type=text]:hover,
.ds-auth-page > div input[type=email]:hover,
.ds-auth-page > div input[type=password]:hover, .ds-form .form-control:hover {
  border-color: var(--ds-border-strong);
}
.ds-input:focus, .ds-auth-page > form:not(.ds-login) input[type=text]:focus,
.ds-auth-page > form:not(.ds-login) input[type=email]:focus,
.ds-auth-page > form:not(.ds-login) input[type=password]:focus,
.ds-auth-page > div input[type=text]:focus,
.ds-auth-page > div input[type=email]:focus,
.ds-auth-page > div input[type=password]:focus, .ds-form .form-control:focus {
  border-color: var(--ds-primary);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-focus-ring);
  outline: none;
}
.ds-input:disabled, .ds-auth-page > form:not(.ds-login) input[type=text]:disabled,
.ds-auth-page > form:not(.ds-login) input[type=email]:disabled,
.ds-auth-page > form:not(.ds-login) input[type=password]:disabled,
.ds-auth-page > div input[type=text]:disabled,
.ds-auth-page > div input[type=email]:disabled,
.ds-auth-page > div input[type=password]:disabled, .ds-form .form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.is-invalid > .ds-input, .ds-auth-page > form:not(.ds-login) .is-invalid > input[type=text],
.ds-auth-page > form:not(.ds-login) .is-invalid > input[type=email],
.ds-auth-page > form:not(.ds-login) .is-invalid > input[type=password],
.ds-auth-page > div .is-invalid > input[type=text],
.ds-auth-page > div .is-invalid > input[type=email],
.ds-auth-page > div .is-invalid > input[type=password], .ds-form .is-invalid > .form-control, .ds-input.is-invalid, .ds-auth-page > form:not(.ds-login) input.is-invalid[type=text],
.ds-auth-page > form:not(.ds-login) input.is-invalid[type=email],
.ds-auth-page > form:not(.ds-login) input.is-invalid[type=password],
.ds-auth-page > div input.is-invalid[type=text],
.ds-auth-page > div input.is-invalid[type=email],
.ds-auth-page > div input.is-invalid[type=password], .ds-form .is-invalid.form-control {
  border-color: var(--ds-danger);
}

.ds-textarea {
  height: auto;
  min-height: 96px;
  padding: var(--ds-space-3) var(--ds-space-4);
  line-height: 1.5;
  resize: vertical;
}

.ds-input--sm {
  height: var(--ds-control-h-sm);
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-text-sm);
}

.ds-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.ds-input-group .ds-input, .ds-input-group .ds-auth-page > form:not(.ds-login) input[type=text], .ds-auth-page > form:not(.ds-login) .ds-input-group input[type=text],
.ds-input-group .ds-auth-page > form:not(.ds-login) input[type=email],
.ds-auth-page > form:not(.ds-login) .ds-input-group input[type=email],
.ds-input-group .ds-auth-page > form:not(.ds-login) input[type=password],
.ds-auth-page > form:not(.ds-login) .ds-input-group input[type=password],
.ds-input-group .ds-auth-page > div input[type=text],
.ds-auth-page > div .ds-input-group input[type=text],
.ds-input-group .ds-auth-page > div input[type=email],
.ds-auth-page > div .ds-input-group input[type=email],
.ds-input-group .ds-auth-page > div input[type=password],
.ds-auth-page > div .ds-input-group input[type=password], .ds-input-group .ds-form .form-control, .ds-form .ds-input-group .form-control {
  flex: 1;
  min-width: 0;
}
.ds-input-group > .ds-icon {
  position: absolute;
  inset-inline-start: var(--ds-space-4);
  color: var(--ds-text-subtle);
  pointer-events: none;
  transition: color var(--ds-duration) var(--ds-ease);
}
.ds-input-group > .ds-icon ~ .ds-input, .ds-auth-page > form:not(.ds-login) .ds-input-group > .ds-icon ~ input[type=text],
.ds-auth-page > form:not(.ds-login) .ds-input-group > .ds-icon ~ input[type=email],
.ds-auth-page > form:not(.ds-login) .ds-input-group > .ds-icon ~ input[type=password],
.ds-auth-page > div .ds-input-group > .ds-icon ~ input[type=text],
.ds-auth-page > div .ds-input-group > .ds-icon ~ input[type=email],
.ds-auth-page > div .ds-input-group > .ds-icon ~ input[type=password], .ds-form .ds-input-group > .ds-icon ~ .form-control {
  padding-inline-start: 44px;
}
.ds-input-group:focus-within > .ds-icon {
  color: var(--ds-primary);
}
.ds-input-group.has-action .ds-input, .ds-input-group.has-action .ds-auth-page > form:not(.ds-login) input[type=text], .ds-auth-page > form:not(.ds-login) .ds-input-group.has-action input[type=text],
.ds-input-group.has-action .ds-auth-page > form:not(.ds-login) input[type=email],
.ds-auth-page > form:not(.ds-login) .ds-input-group.has-action input[type=email],
.ds-input-group.has-action .ds-auth-page > form:not(.ds-login) input[type=password],
.ds-auth-page > form:not(.ds-login) .ds-input-group.has-action input[type=password],
.ds-input-group.has-action .ds-auth-page > div input[type=text],
.ds-auth-page > div .ds-input-group.has-action input[type=text],
.ds-input-group.has-action .ds-auth-page > div input[type=email],
.ds-auth-page > div .ds-input-group.has-action input[type=email],
.ds-input-group.has-action .ds-auth-page > div input[type=password],
.ds-auth-page > div .ds-input-group.has-action input[type=password], .ds-input-group.has-action .ds-form .form-control, .ds-form .ds-input-group.has-action .form-control {
  padding-inline-end: 48px;
}

.ds-input-group__action {
  position: absolute;
  inset-inline-end: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-sm);
  background-color: transparent;
  color: var(--ds-text-muted);
  cursor: pointer;
}
.ds-input-group__action:hover {
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
}
.ds-input-group__action:focus {
  outline: none;
}
.ds-input-group__action:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-input-group__action .ds-icon + .ds-icon, .ds-input-group__action.is-on .ds-icon {
  display: none;
}
.ds-input-group__action.is-on .ds-icon + .ds-icon {
  display: inline-block;
}

.ds-card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ds-radius-lg);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-sm);
}

.ds-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-5) var(--ds-space-6) 0;
}

.ds-card__title {
  font-size: var(--ds-text-lg);
  font-weight: 600;
}

.ds-card__subtitle {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}

.ds-card__body {
  padding: var(--ds-space-5) var(--ds-space-6);
}

.ds-alert {
  --alert-fg: var(--ds-info);
  --alert-bg: var(--ds-info-subtle);
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  background-color: var(--alert-bg);
  color: var(--alert-fg);
  font-size: var(--ds-text-sm);
  line-height: 1.45;
}
.ds-alert .ds-icon {
  margin-top: 1px;
}

.ds-alert--danger {
  --alert-fg: var(--ds-danger);
  --alert-bg: var(--ds-danger-subtle);
}

.ds-alert--success {
  --alert-fg: var(--ds-success);
  --alert-bg: var(--ds-success-subtle);
}

.ds-alert--warning {
  --alert-fg: #B87512;
  --alert-bg: var(--ds-warning-subtle);
}

.ds-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  cursor: pointer;
  user-select: none;
}

.ds-form .ds-switch {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0;
  font-weight: 400;
}

.ds-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.ds-switch__track {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-border-strong);
  transition: background-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease);
}
.ds-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: var(--ds-shadow-xs);
  transition: transform var(--ds-duration) var(--ds-ease);
}
.ds-switch__input:checked + .ds-switch__track {
  background-color: var(--ds-primary);
}
.ds-switch__input:checked + .ds-switch__track::after {
  transform: translateX(16px);
}
[dir=rtl] .ds-switch__input:checked + .ds-switch__track::after {
  transform: translateX(-16px);
}
.ds-switch__input:focus-visible + .ds-switch__track {
  box-shadow: var(--ds-focus-ring);
}

.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-surface);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease), border-color var(--ds-duration) var(--ds-ease);
}
.ds-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.ds-chip:hover {
  border-color: var(--ds-primary-soft);
  color: var(--ds-primary);
  text-decoration: none;
}
.ds-chip:focus {
  outline: none;
}
.ds-chip:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-chip.is-active {
  border-color: var(--ds-primary);
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
}

.ds-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-2);
  width: 56px;
  padding: var(--ds-space-3) 0;
  background-color: var(--ds-primary);
}

.ds-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-sm);
  background-color: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background-color var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease);
}
.ds-rail__btn .ds-icon {
  width: 20px;
  height: 20px;
}
.ds-rail__btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ds-rail__btn:focus {
  outline: none;
}
.ds-rail__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}
.ds-rail__btn.is-active {
  background-color: #fff;
  color: var(--ds-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.ds-segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
}

.ds-segmented__item {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 32px;
  padding: 0 var(--ds-space-2);
  border: 0;
  border-radius: var(--ds-radius-pill);
  background-color: transparent;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease);
}
.ds-segmented__item img {
  height: 20px;
}
.ds-segmented__item .ds-icon {
  width: 16px;
  height: 16px;
}
.ds-segmented__item:hover {
  color: var(--ds-text);
}
.ds-segmented__item:focus {
  outline: none;
}
.ds-segmented__item:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-segmented__item.is-active {
  background-color: var(--ds-surface);
  color: var(--ds-primary);
  box-shadow: var(--ds-shadow-xs);
}

.ds-check, .ds-form .checkbox input[type=checkbox],
.ds-form .radio input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--ds-border-strong);
  border-radius: 6px;
  background-color: var(--ds-surface);
  cursor: pointer;
  transition: background-color var(--ds-duration) var(--ds-ease), border-color var(--ds-duration) var(--ds-ease);
}
.ds-check::after, .ds-form .checkbox input[type=checkbox]::after,
.ds-form .radio input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--ds-duration) var(--ds-ease);
}
.ds-check:hover, .ds-form .checkbox input[type=checkbox]:hover,
.ds-form .radio input[type=checkbox]:hover {
  border-color: var(--ds-primary-soft);
}
.ds-check:checked, .ds-form .checkbox input[type=checkbox]:checked,
.ds-form .radio input[type=checkbox]:checked {
  border-color: var(--ds-primary);
  background-color: var(--ds-primary);
}
.ds-check:checked::after, .ds-form .checkbox input[type=checkbox]:checked::after,
.ds-form .radio input[type=checkbox]:checked::after {
  transform: rotate(45deg) scale(1);
}
.ds-check:focus, .ds-form .checkbox input[type=checkbox]:focus,
.ds-form .radio input[type=checkbox]:focus {
  outline: none;
}
.ds-check:focus-visible, .ds-form .checkbox input[type=checkbox]:focus-visible,
.ds-form .radio input[type=checkbox]:focus-visible {
  box-shadow: var(--ds-focus-ring);
}

.ds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.ds-badge .ds-icon {
  margin-inline-end: 4px;
}

.ds-badge--info {
  background-color: var(--ds-info-subtle);
  color: var(--ds-info);
}

.ds-badge--success {
  background-color: var(--ds-success-subtle);
  color: var(--ds-success);
}

.ds-badge--warning {
  background-color: var(--ds-warning-subtle);
  color: #B87512;
}

.ds-badge--danger {
  background-color: var(--ds-danger-subtle);
  color: var(--ds-danger);
}

.ds-badge--accent {
  background-color: var(--ds-accent-subtle);
  color: #C4663B;
}

.ds-avatar {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  overflow: hidden;
}
.ds-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-avatar--sm {
  width: 32px;
  height: 32px;
}

.ds-avatar--lg {
  width: 44px;
  height: 44px;
}

.ds-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--ds-primary-subtle);
  border-top-color: var(--ds-primary);
  border-radius: 50%;
  animation: ds-spin 0.8s linear infinite;
}

.ds-progress {
  position: relative;
  height: 4px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  overflow: hidden;
}
.ds-progress::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  border-radius: inherit;
  background-color: var(--ds-primary);
  animation: ds-progress 1.1s var(--ds-ease) infinite;
}

@keyframes ds-progress {
  to {
    left: 100%;
  }
}
.ds-range {
  --fill: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: var(--ds-radius-pill);
  background: linear-gradient(to right, var(--ds-primary) 0 var(--fill), var(--ds-primary-subtle) var(--fill) 100%);
  cursor: pointer;
}
.ds-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background-color: var(--ds-primary);
  box-shadow: 0 2px 6px rgba(var(--ds-shadow-rgb), 0.3);
}
.ds-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background-color: var(--ds-primary);
  box-shadow: 0 2px 6px rgba(var(--ds-shadow-rgb), 0.3);
}
.ds-range:focus {
  outline: none;
}
.ds-range:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ds-focus-ring);
}

.dropdown-menu.ds-menu {
  min-width: 220px;
  margin-top: var(--ds-space-2);
  padding: 6px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-md);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-sm);
}
.dropdown-menu.ds-menu > li > a,
.dropdown-menu.ds-menu .ds-menu__list > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text);
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-menu.ds-menu > li > a > .ds-icon,
.dropdown-menu.ds-menu .ds-menu__list > li > a > .ds-icon {
  width: 16px;
  height: 16px;
  color: var(--ds-text-muted);
}
.dropdown-menu.ds-menu > li > a > img,
.dropdown-menu.ds-menu .ds-menu__list > li > a > img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.dropdown-menu.ds-menu > li > a:hover, .dropdown-menu.ds-menu > li > a:focus,
.dropdown-menu.ds-menu .ds-menu__list > li > a:hover,
.dropdown-menu.ds-menu .ds-menu__list > li > a:focus {
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  outline: none;
}
.dropdown-menu.ds-menu > li > a:hover > .ds-icon, .dropdown-menu.ds-menu > li > a:focus > .ds-icon,
.dropdown-menu.ds-menu .ds-menu__list > li > a:hover > .ds-icon,
.dropdown-menu.ds-menu .ds-menu__list > li > a:focus > .ds-icon {
  color: inherit;
}
.dropdown-menu.ds-menu > li > a.is-active,
.dropdown-menu.ds-menu .ds-menu__list > li > a.is-active {
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font-weight: 500;
}
.dropdown-menu.ds-menu > li > a.is-danger, .dropdown-menu.ds-menu > li > a.is-danger > .ds-icon,
.dropdown-menu.ds-menu .ds-menu__list > li > a.is-danger,
.dropdown-menu.ds-menu .ds-menu__list > li > a.is-danger > .ds-icon {
  color: var(--ds-danger);
}
.dropdown-menu.ds-menu > li > a.is-danger:hover,
.dropdown-menu.ds-menu .ds-menu__list > li > a.is-danger:hover {
  background-color: var(--ds-danger-subtle);
}

.ds-menu__divider {
  height: 1px;
  margin: 6px 4px;
  background-color: var(--ds-border);
}

.ds-menu__header {
  padding: 8px 12px 4px;
  color: var(--ds-text-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ds-menu__search {
  margin: 0 0 6px;
  padding: 4px;
}
.ds-menu__search .ds-input {
  height: var(--ds-control-h-sm);
}

.ds-menu__list {
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.ds-topbar {
  position: relative;
  z-index: 60;
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--ds-space-4);
  height: 64px;
  padding: 0 var(--ds-space-5);
  border-bottom: 1px solid var(--ds-border);
  background-color: var(--ds-surface);
  box-shadow: 0 2px 10px rgba(var(--ds-shadow-rgb), 0.05);
}

.ds-topbar__brand {
  display: flex;
  flex: none;
  align-items: center;
  max-width: 180px;
  height: 64px;
  color: var(--ds-primary);
  font-size: var(--ds-text-lg);
  font-weight: 600;
  text-decoration: none;
}
.ds-topbar__brand img {
  display: block;
  max-width: 100%;
  max-height: 42px;
}
.ds-topbar__brand:hover, .ds-topbar__brand:focus {
  color: var(--ds-primary);
  text-decoration: none;
}

.ds-topbar__nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.ds-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  height: 40px;
  padding: 0 var(--ds-space-4);
  border: 0;
  border-radius: var(--ds-radius-pill);
  background-color: transparent;
  color: var(--ds-text-muted);
  font-family: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ds-duration) var(--ds-ease), color var(--ds-duration) var(--ds-ease);
}
.ds-topbar__link:hover, .ds-topbar__link:focus {
  background-color: var(--ds-surface-muted);
  color: var(--ds-text);
  text-decoration: none;
}
.ds-topbar__link:focus {
  outline: none;
}
.ds-topbar__link:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-topbar__link.is-active, .ds-topbar__link.is-open {
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
}

.ds-topbar__user {
  flex: none;
  margin-inline-start: auto;
}

.ds-topbar__user-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  height: 44px;
  padding: 0 var(--ds-space-3) 0 4px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-surface);
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  font-weight: 500;
  cursor: pointer;
}
.ds-topbar__user-btn:hover {
  background-color: var(--ds-surface-muted);
}
.ds-topbar__user-btn:focus {
  outline: none;
}
.ds-topbar__user-btn:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-topbar__user-btn > .ds-icon {
  width: 16px;
  height: 16px;
  color: var(--ds-text-muted);
}

.ds-topbar__user-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-sm);
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  cursor: pointer;
}
.ds-topbar__toggle:hover {
  background-color: var(--ds-primary-soft);
}

@media (max-width: 1199.98px) {
  .ds-topbar__link {
    padding: 0 var(--ds-space-3);
  }
}
@media (max-width: 991.98px) {
  .ds-topbar__toggle {
    display: inline-flex;
  }
  .ds-topbar__nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--ds-space-3);
    border-bottom: 1px solid var(--ds-border);
    background-color: var(--ds-surface);
    box-shadow: var(--ds-shadow-md);
  }
  .ds-topbar__nav.is-open {
    display: flex;
  }
  .ds-topbar__link {
    height: 44px;
    border-radius: var(--ds-radius-md);
  }
  .ds-topbar__user-name {
    display: none;
  }
}
.ds-subnav {
  position: relative;
  z-index: 50;
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-5);
  border-bottom: 1px solid var(--ds-border);
  background-color: var(--ds-canvas);
}

.ds-subnav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  height: 32px;
  padding: 0 var(--ds-space-3);
  border: none;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-surface);
  color: var(--ds-text);
  font-size: var(--ds-text-xs);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--ds-shadow-xs);
}
.ds-subnav__link .fa {
  color: var(--ds-primary);
}
.ds-subnav__link:hover, .ds-subnav__link:focus, .ds-subnav__link.is-active {
  background-color: var(--ds-primary);
  color: var(--ds-on-primary);
  text-decoration: none;
}
.ds-subnav__link:hover .fa, .ds-subnav__link:focus .fa, .ds-subnav__link.is-active .fa {
  color: inherit;
}

.ds-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--ds-space-6) var(--ds-space-8) var(--ds-space-10);
}

.ds-page__inner {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  max-width: 1440px;
  margin: 0 auto;
}

.ds-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
}

.ds-page__title {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  font-size: var(--ds-text-2xl);
}

.ds-page__subtitle {
  margin-top: var(--ds-space-1);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-sm);
}

.ds-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}

.ds-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ds-space-4);
}

.ds-stat {
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
  padding: var(--ds-space-5);
}
.ds-stat .ds-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md);
}
.ds-stat .ds-avatar .ds-icon {
  width: 22px;
  height: 22px;
}

.ds-stat__value {
  display: block;
  color: var(--ds-text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.ds-stat__label {
  display: block;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}

.ds-stat--success .ds-avatar {
  background-color: var(--ds-success-subtle);
  color: var(--ds-success);
}

.ds-stat--warning .ds-avatar {
  background-color: var(--ds-warning-subtle);
  color: #B87512;
}

.ds-stat--danger .ds-avatar {
  background-color: var(--ds-danger-subtle);
  color: var(--ds-danger);
}

.ds-stat--neutral .ds-avatar {
  background-color: var(--ds-info-subtle);
  color: var(--ds-info);
}

@media (max-width: 767.98px) {
  .ds-page {
    padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-8);
  }
  .ds-page__title {
    font-size: var(--ds-text-xl);
  }
}
.ds-table-card {
  overflow: hidden;
}

.ds-table-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-5) var(--ds-space-6) 0;
}

.ds-table-card__title {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  font-size: var(--ds-text-lg);
}

.ds-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--ds-text-sm);
}
.ds-table th,
.ds-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ds-border);
  text-align: start;
  vertical-align: middle;
}
.ds-table thead th {
  position: relative;
  background-color: var(--ds-surface-muted);
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
}
.ds-table tbody tr {
  transition: background-color var(--ds-duration) var(--ds-ease);
}
.ds-table tbody tr:hover {
  background-color: var(--ds-surface-muted);
}
.ds-table tbody tr:last-child td {
  border-bottom: 0;
}
.ds-table thead .sorting,
.ds-table thead .sorting_asc,
.ds-table thead .sorting_desc {
  padding-inline-end: 28px;
  cursor: pointer;
}
.ds-table thead .sorting::after,
.ds-table thead .sorting_asc::after,
.ds-table thead .sorting_desc::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  opacity: 0.35;
  transform: rotate(45deg);
}
.ds-table thead .sorting_asc::after {
  margin-top: -1px;
  opacity: 1;
  transform: rotate(-135deg);
}
.ds-table thead .sorting_desc::after {
  opacity: 1;
}
.ds-table thead .sorting_asc,
.ds-table thead .sorting_desc {
  color: var(--ds-primary);
}
.ds-table .dataTables_empty {
  padding: var(--ds-space-8);
  color: var(--ds-text-muted);
  text-align: center;
}
.ds-table .progress {
  height: 6px !important;
  margin-top: 6px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  box-shadow: none;
}
.ds-table .progress-bar {
  border-radius: var(--ds-radius-pill);
  background-image: none;
  box-shadow: none;
}
.ds-table .progress-bar-success {
  background-color: var(--ds-success);
}
.ds-table .progress-bar-warning {
  background-color: var(--ds-warning);
}
.ds-table .progress-bar-danger {
  background-color: var(--ds-danger);
}
.ds-table .row {
  margin: 0;
  color: var(--ds-text-muted);
}
.ds-table .row > [class*=col-] {
  padding: 0;
}
.ds-table .delay-last-month .progress-month,
.ds-table .delay-last-month .progress-month-left {
  height: 8px !important;
  border: 0;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  overflow: hidden;
}
.ds-table .delay-last-month .progress-month .day-m,
.ds-table .delay-last-month .progress-month .day-m-left,
.ds-table .delay-last-month .progress-month-left .day-m,
.ds-table .delay-last-month .progress-month-left .day-m-left {
  height: 8px;
  border-right-color: rgba(255, 255, 255, 0.7);
}
.ds-table .delay-last-month .progress-month-left {
  top: 21px;
  background-color: transparent;
}
.ds-table .delay-last-month .success .day-m-left {
  background-color: var(--ds-success);
}
.ds-table .delay-last-month .warning .day-m-left {
  background-color: var(--ds-warning);
}
.ds-table .delay-last-month .danger .day-m-left {
  background-color: var(--ds-danger);
}

.ds-cell-main {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-width: 160px;
}
.ds-cell-main .ds-avatar {
  width: 36px;
  height: 36px;
}
.ds-cell-main .ds-avatar .ds-icon {
  width: 17px;
  height: 17px;
}

.ds-cell-main__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.ds-cell-main__text b {
  color: var(--ds-text);
  font-weight: 500;
}
.ds-cell-main__text small {
  color: var(--ds-text-muted);
  font-size: 11px;
}

.ds-cell-muted {
  color: var(--ds-text-muted);
  white-space: nowrap;
}

.ds-table .ds-col-actions {
  position: sticky;
  inset-inline-end: 0;
  z-index: 1;
  width: 1%;
  background-color: var(--ds-surface);
  box-shadow: -8px 0 12px -10px rgba(var(--ds-shadow-rgb), 0.25);
}

.ds-table thead .ds-col-actions {
  background-color: var(--ds-surface-muted);
}

.ds-table tbody tr:hover .ds-col-actions {
  background-color: var(--ds-surface-muted);
}

.ds-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.ds-secret {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-text-muted);
  letter-spacing: 0.08em;
}

.ds-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ds-dt-top,
.ds-dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4) var(--ds-space-6);
}

.ds-dt-bottom {
  border-top: 1px solid var(--ds-border);
}

.ds-dt-scroll {
  overflow-x: auto;
}

.ds-table-card .dataTables_wrapper .dataTables_filter,
.ds-table-card .dataTables_wrapper .dataTables_length,
.ds-table-card .dataTables_wrapper .dataTables_info,
.ds-table-card .dataTables_wrapper .dataTables_paginate {
  float: none;
  margin: 0;
  padding: 0;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}
.ds-table-card .dataTables_wrapper .dataTables_filter label,
.ds-table-card .dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  margin: 0;
  font-weight: 400;
}
.ds-table-card .dataTables_wrapper .dataTables_filter input {
  width: 260px;
  height: var(--ds-control-h-sm);
  margin: 0;
  padding: 0 var(--ds-space-4) 0 38px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8AEB1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m21 21-4.6-4.6'/%3E%3C/svg%3E") no-repeat 14px center/16px;
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
}
.ds-table-card .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--ds-primary);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-focus-ring);
  outline: none;
}
.ds-table-card .dataTables_wrapper .dataTables_length select {
  height: var(--ds-control-h-sm);
  padding: 0 28px 0 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857B7F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/14px;
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  appearance: none;
  -webkit-appearance: none;
}
.ds-table-card .dataTables_wrapper .dataTables_paginate {
  display: flex;
  gap: 4px;
}
.ds-table-card .dataTables_wrapper .dataTables_paginate > span {
  display: flex;
  gap: 4px;
}
.ds-table-card .dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-size: var(--ds-text-xs);
  text-decoration: none;
  cursor: pointer;
}
.ds-table-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: var(--ds-primary-soft);
  color: var(--ds-primary);
}
.ds-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  border-color: var(--ds-primary);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}
.ds-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.ds-table-card .dataTables_wrapper .dataTables_paginate .ellipsis {
  padding: 0 4px;
}

.ds-modal {
  font-family: var(--ds-font-sans);
}
.ds-modal .modal-dialog {
  margin-top: 6vh;
}
.ds-modal .modal-content {
  border: 0;
  border-radius: var(--ds-radius-lg);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-lg);
  color: var(--ds-text);
  overflow: hidden;
}
.ds-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-5) var(--ds-space-6) var(--ds-space-2);
  border-bottom: 0;
  background: transparent;
}
.ds-modal .modal-header::before, .ds-modal .modal-header::after {
  display: none;
}
.ds-modal .modal-title,
.ds-modal .legendLabel {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-text-lg);
  font-weight: 600;
}
.ds-modal .legendLabel {
  margin-bottom: var(--ds-space-4);
  padding: 0;
  border: 0;
  background: none;
  text-transform: none;
}
.ds-modal .close {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--ds-surface-muted);
  color: var(--ds-text-muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
}
.ds-modal .close:hover {
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
}
.ds-modal .modal-body {
  padding: var(--ds-space-4) var(--ds-space-6);
}
.ds-modal .ds-modal__close {
  position: absolute;
  top: var(--ds-space-4);
  inset-inline-end: var(--ds-space-4);
  z-index: 2;
}
.ds-modal .modal-body > form > input[type=submit] {
  width: 100%;
  margin-top: var(--ds-space-2);
}
.ds-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4) var(--ds-space-6);
  border-top: 1px solid var(--ds-border);
  background-color: var(--ds-surface-muted);
}
.ds-modal .modal-footer::before, .ds-modal .modal-footer::after {
  display: none;
}

.ds-form .form-group {
  margin-bottom: var(--ds-space-4);
}
.ds-form label,
.ds-form .control-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  font-weight: 500;
}
.ds-form .form-control {
  box-shadow: none;
}
.ds-form select.form-control:not([multiple]),
.ds-form select.ds-input:not([multiple]) {
  padding-inline-end: 40px;
  background: var(--ds-surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857B7F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px;
  appearance: none;
  -webkit-appearance: none;
}
.ds-form textarea.form-control,
.ds-form select[multiple].form-control {
  height: auto;
  min-height: 120px;
  padding: var(--ds-space-3) var(--ds-space-4);
}
.ds-form select[multiple].form-control option {
  padding: 6px 8px;
  border-radius: 6px;
}
.ds-form input[type=file] {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px;
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface-muted);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}
.ds-form input[type=file]::file-selector-button {
  margin-inline-end: var(--ds-space-3);
  padding: 6px 14px;
  border: 0;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font: inherit;
  font-size: var(--ds-text-xs);
  font-weight: 500;
  cursor: pointer;
}
.ds-form .checkbox,
.ds-form .radio {
  margin: 0;
  padding: 0;
}
.ds-form .checkbox label,
.ds-form .radio label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 0;
  font-weight: 400;
}
.ds-form .checkbox input[type=checkbox],
.ds-form .radio input[type=checkbox] {
  position: static;
  margin: 0;
}
.ds-form .help-block {
  margin: 6px 0 0;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}
.ds-form .has-error .form-control {
  border-color: var(--ds-danger);
}
.ds-form .has-error .help-block,
.ds-form .has-error .control-label {
  color: var(--ds-danger);
}
.ds-form .select2-container {
  width: 100% !important;
}
.ds-form .select2-container--default .select2-selection--multiple,
.ds-form .select2-container--default .select2-selection--single {
  min-height: var(--ds-control-h);
  padding: 4px 8px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface-muted);
}
.ds-form .select2-container--default .select2-selection--single {
  position: relative;
}
.ds-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-inline-start: 8px;
  color: var(--ds-text);
  line-height: 34px;
}
.ds-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--ds-text-subtle);
}
.ds-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 10px;
  height: 100%;
}
.ds-form .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--ds-primary);
  box-shadow: var(--ds-focus-ring);
}
.ds-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 4px;
  padding: 2px 8px;
  border: 0;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font-size: var(--ds-text-xs);
}
.ds-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: inherit;
}

.ds-segmented > label {
  display: flex;
  flex: 1;
  margin: 0;
  cursor: pointer;
}
.ds-segmented > label > .ds-segmented__item {
  flex: 1;
}
.ds-segmented > label input:checked + .ds-segmented__item {
  background-color: var(--ds-surface);
  color: var(--ds-primary);
  box-shadow: var(--ds-shadow-xs);
}
.ds-segmented > label input:focus-visible + .ds-segmented__item {
  box-shadow: var(--ds-focus-ring);
}

.ds-btn--icon.ds-btn--sm {
  width: var(--ds-control-h-sm);
  padding: 0;
}

.ds-btn--danger-soft {
  --btn-bg: var(--ds-danger-subtle);
  --btn-bg-hover: #FBD3D5;
  --btn-fg: var(--ds-danger);
}

.ds-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--ds-space-2);
  padding: 0;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
  list-style: none;
}
.ds-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ds-breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border: solid var(--ds-text-subtle);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.ds-breadcrumb a {
  color: var(--ds-text-muted);
  text-decoration: none;
}
.ds-breadcrumb a:hover {
  color: var(--ds-primary);
}
.ds-breadcrumb [aria-current] {
  color: var(--ds-text);
  font-weight: 500;
}

.ds-page__identity {
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
}
.ds-page__identity > .ds-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--ds-radius-md);
  font-size: var(--ds-text-xl);
}

.ds-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
  gap: var(--ds-space-6);
}

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

.ds-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  min-width: 0;
}

.ds-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4) var(--ds-space-6);
  border-top: 1px solid var(--ds-border);
  background-color: var(--ds-surface-muted);
  border-radius: 0 0 var(--ds-radius-lg) var(--ds-radius-lg);
}

.ds-card__header + .ds-card__body {
  padding-top: var(--ds-space-4);
}

.ds-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--ds-space-5);
}
.ds-form-grid > .is-wide,
.ds-form-grid > .ds-field.is-wide {
  grid-column: 1/-1;
}

.ds-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  list-style: none;
}
.ds-tabs > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ds-tabs > li > a:hover, .ds-tabs > li > a:focus {
  color: var(--ds-text);
  text-decoration: none;
  outline: none;
}
.ds-tabs > li > a:focus-visible {
  box-shadow: var(--ds-focus-ring);
}
.ds-tabs > li > a .ds-icon {
  width: 16px;
  height: 16px;
}
.ds-tabs > li.active > a {
  background-color: var(--ds-surface);
  color: var(--ds-primary);
  box-shadow: var(--ds-shadow-xs);
}

.ds-details {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: var(--ds-space-3) var(--ds-space-4);
  margin: 0;
  font-size: var(--ds-text-sm);
}
.ds-details dt {
  color: var(--ds-text-muted);
  font-weight: 400;
}
.ds-details dd {
  margin: 0;
  color: var(--ds-text);
  font-weight: 500;
  word-break: break-word;
}

.ds-check-label,
.ds-form .ds-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  font-weight: 400;
  cursor: pointer;
}

.ds-role {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) 0;
  border-bottom: 1px solid var(--ds-border);
}
.ds-role:first-child {
  padding-top: 0;
}
.ds-role:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ds-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface-muted);
  object-fit: cover;
}

.ds-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-4);
}
.ds-thumbs a {
  display: block;
  width: 120px;
  height: 90px;
  border-radius: var(--ds-radius-sm);
  overflow: hidden;
  box-shadow: var(--ds-shadow-xs);
}
.ds-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-table-scroll {
  max-height: 480px;
  overflow: auto;
}
.ds-table-scroll .ds-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ds-table .ds-input--sm {
  width: 120px;
}

@media (max-width: 991.98px) {
  .ds-layout,
  .ds-layout--even {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767.98px) {
  .ds-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ds-calendar {
  position: relative;
  padding: var(--ds-space-5) var(--ds-space-6) var(--ds-space-6);
}
.ds-calendar .fc {
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-sm);
}
.ds-calendar .fc-toolbar.fc-header-toolbar {
  margin-bottom: var(--ds-space-5);
}
.ds-calendar .fc-toolbar h2 {
  color: var(--ds-text);
  font-size: var(--ds-text-xl);
  font-weight: 600;
  text-transform: capitalize;
}
.ds-calendar .fc-button {
  height: var(--ds-control-h-sm);
  padding: 0 var(--ds-space-4);
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-size: var(--ds-text-xs);
  font-weight: 500;
  text-transform: capitalize;
  box-shadow: none;
}
.ds-calendar .fc-button:hover {
  background: var(--ds-surface-muted);
  color: var(--ds-primary);
}
.ds-calendar .fc-button:focus {
  box-shadow: var(--ds-focus-ring);
  outline: none;
}
.ds-calendar .fc-button:disabled {
  opacity: 0.45;
}
.ds-calendar .fc .fc-button-primary:disabled {
  border-color: var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text-muted);
}
.ds-calendar .fc-button-group > .fc-button:first-child,
.ds-calendar .fc-toolbar > * > :first-child.fc-button {
  border-radius: var(--ds-radius-pill) 0 0 var(--ds-radius-pill);
}
.ds-calendar .fc-button-group > .fc-button:last-child {
  border-radius: 0 var(--ds-radius-pill) var(--ds-radius-pill) 0;
}
.ds-calendar .fc-today-button {
  margin-inline-start: var(--ds-space-2);
  border-radius: var(--ds-radius-pill) !important;
}
.ds-calendar .fc-button-primary:not(:disabled).fc-button-active,
.ds-calendar .fc-button-primary:not(:disabled):active {
  border-color: var(--ds-primary);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}
.ds-calendar .fc-icon {
  font-size: 1.1em;
}
.ds-calendar .fc-unthemed th,
.ds-calendar .fc-unthemed td,
.ds-calendar .fc-unthemed thead,
.ds-calendar .fc-unthemed tbody,
.ds-calendar .fc-unthemed .fc-row,
.ds-calendar .fc-unthemed .fc-content,
.ds-calendar .fc-unthemed .fc-popover,
.ds-calendar .fc-unthemed .fc-list-view,
.ds-calendar .fc-unthemed .fc-list-heading td,
.ds-calendar .fc-unthemed .fc-divider {
  border-color: var(--ds-border);
}
.ds-calendar .fc-view-container {
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}
.ds-calendar .fc-day-header {
  padding: 10px 0;
  background: var(--ds-surface-muted);
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ds-calendar .fc-day-number {
  margin: 4px;
  padding: 2px 7px;
  border-radius: var(--ds-radius-pill);
  color: var(--ds-text);
  font-size: var(--ds-text-xs);
}
.ds-calendar .fc-other-month .fc-day-number {
  color: var(--ds-text-subtle);
}
.ds-calendar .fc-unthemed td.fc-today {
  background: var(--ds-primary-subtle);
}
.ds-calendar .fc-today .fc-day-number {
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}
.ds-calendar .fc-event {
  margin: 1px 4px 2px;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.ds-calendar .fc-event.ds-ev--end {
  background: var(--ds-primary);
  color: var(--ds-on-primary);
}
.ds-calendar .fc-more {
  margin: 2px 6px;
  color: var(--ds-primary);
  font-size: 11px;
  font-weight: 600;
}
.ds-calendar .fc-popover {
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-md);
  overflow: hidden;
}
.ds-calendar .fc-popover .fc-header {
  padding: 6px 10px;
  background: var(--ds-surface-muted);
}
.ds-calendar .fc-list-heading td {
  background: var(--ds-surface-muted) !important;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}
.ds-calendar .fc-list-item:hover td {
  background: var(--ds-surface-muted);
}
.ds-calendar .fc-list-item.ds-ev--end .fc-event-dot {
  background: var(--ds-primary) !important;
}
.ds-calendar .fc-list-item.ds-ev--start .fc-event-dot {
  background: var(--ds-primary-soft) !important;
}

.ds-calendar__loading {
  position: absolute;
  top: var(--ds-space-5);
  inset-inline-end: var(--ds-space-6);
  z-index: 3;
}

.ds-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-4);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}
.ds-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ds-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--ds-primary-subtle);
  box-shadow: inset 0 0 0 1px var(--ds-primary-soft);
}
.ds-legend i.is-end {
  background: var(--ds-primary);
  box-shadow: none;
}

.ds-segmented--links {
  display: inline-flex;
  /* Une barre de liens est plus large que l'ecran sur mobile : la faire defiler
     plutot que de laisser les derniers onglets hors d'atteinte. */
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.ds-segmented--links::-webkit-scrollbar {
  display: none;
}
.ds-segmented--links a.ds-segmented__item {
  flex: none;
  gap: 6px;
  padding: 0 var(--ds-space-4);
  text-decoration: none;
}

.ds-auth-page {
  min-height: 100vh;
  background-color: var(--ds-backdrop);
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.6), transparent 42%), radial-gradient(circle at 88% 86%, rgba(var(--ds-primary-rgb), 0.2), transparent 38%);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.ds-auth-page > form:not(.ds-login),
.ds-auth-page > div {
  width: calc(100% - 32px);
  max-width: 400px;
  margin: 12vh auto 0;
  padding: var(--ds-space-8);
  border-radius: var(--ds-radius-lg);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-lg);
}
.ds-auth-page > form:not(.ds-login) label,
.ds-auth-page > div label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--ds-text-sm);
  font-weight: 500;
}
.ds-auth-page > form:not(.ds-login) div + div,
.ds-auth-page > div div + div {
  margin-top: var(--ds-space-4);
}
.ds-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: var(--ds-space-8) var(--ds-space-4);
}

.ds-login__card {
  width: 100%;
  max-width: 380px;
  padding: var(--ds-space-8);
  border: 0;
  box-shadow: var(--ds-shadow-lg);
  animation: ds-login-in 0.45s var(--ds-ease) both;
}

.ds-login__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--ds-space-6);
}
.ds-login__logo img {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 56px;
}

.ds-login__brand-name {
  margin-bottom: var(--ds-space-6);
  color: var(--ds-primary);
  font-size: var(--ds-text-lg);
  font-weight: 600;
  text-align: center;
}

.ds-login__header {
  margin-bottom: var(--ds-space-6);
  text-align: center;
}

.ds-login__title {
  font-size: 22px;
}

.ds-login__subtitle {
  margin-top: var(--ds-space-1);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-sm);
}

.ds-login__error:not(:empty) {
  margin-bottom: var(--ds-space-4);
}

.ds-login__options {
  margin: var(--ds-space-1) 0 var(--ds-space-6);
}

.ds-login__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-6);
  padding-top: var(--ds-space-5);
  border-top: 1px solid var(--ds-border);
}

.ds-login__langs {
  display: flex;
  justify-content: center;
  gap: var(--ds-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ds-login__langs .ds-chip {
  height: 28px;
  padding: 0 10px 0 6px;
}
.ds-login__langs .ds-chip img {
  width: 16px;
  height: 16px;
}

.ds-login__copy {
  color: var(--ds-text-subtle);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 575.98px) {
  .ds-login__card {
    padding: var(--ds-space-6) var(--ds-space-5);
  }
}
@keyframes ds-login-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lexus-tracker-container .angularjs-container {
  display: flex;
  flex: none;
  min-width: 0;
}

.ds-position {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100%;
  background-color: var(--ds-canvas);
  font-size: var(--ds-text-sm);
}

.ds-panel {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  width: 340px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  border-inline-end: 1px solid var(--ds-border);
  background-color: var(--ds-canvas);
}

.ds-panel__head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-3);
  background-color: var(--ds-canvas);
}

.ds-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  padding: 5px;
}

.ds-panel__row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: 40px;
}

.ds-panel__title {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
  font-size: var(--ds-text-lg);
}
.ds-panel__title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-panel__loading {
  display: flex;
  justify-content: center;
  padding: var(--ds-space-12) 0;
}

.ds-panel .ds-btn--icon {
  width: 36px;
  height: 36px;
  flex: none;
}

.ds-fleet {
  margin: 0;
  padding: 0;
  border-radius: var(--ds-radius-lg);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-sm);
  list-style: none;
  overflow: hidden;
}
.ds-fleet > li + li {
  border-top: 1px solid var(--ds-border);
}

.ds-fleet__empty {
  padding: var(--ds-space-6) var(--ds-space-4);
  color: var(--ds-text-muted);
  text-align: center;
}

.ds-fleet__item {
  display: flex;
  align-items: center;
  transition: background-color var(--ds-duration) var(--ds-ease);
}
.ds-fleet__item:hover {
  background-color: var(--ds-surface-muted);
}

.ds-fleet__link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--ds-space-3);
  min-width: 0;
  padding: 6px 12px 6px 10px;
  border: 0;
  background: none;
  color: var(--ds-text);
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ds-fleet__link:hover, .ds-fleet__link:focus {
  color: var(--ds-text);
  text-decoration: none;
}
.ds-fleet__link:focus {
  outline: none;
}
.ds-fleet__link:focus-visible {
  box-shadow: inset var(--ds-focus-ring);
}
.ds-fleet__link .ds-avatar {
  width: 40px;
  height: 40px;
}

.ds-fleet__link .ds-avatar .ds-fleet__marker {
  position: static;
  width: auto;
  height: 26px;
  object-fit: contain;
}

.ds-fleet__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ds-fleet__name {
  overflow: hidden;
  font-size: var(--ds-text-sm);
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-fleet__name i {
  color: var(--ds-text-muted);
  font-weight: 400;
}

.ds-fleet__badges {
  display: flex;
  gap: 4px;
  min-width: 0;
}
.ds-fleet__badges .ds-badge {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-fleet__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--ds-text-muted);
  font-size: 11px;
  line-height: 1.3;
}
.ds-fleet__meta .is-km {
  color: var(--ds-success);
  font-weight: 500;
}

.ds-fleet__check {
  display: none;
}

.ds-fleet__group {
  width: 100%;
}
.ds-fleet__group > .ds-icon {
  flex: none;
  margin-inline-end: 8px;
  color: var(--ds-text-subtle);
  transition: transform var(--ds-duration) var(--ds-ease);
}
.ds-fleet__group.is-active > .ds-icon {
  color: var(--ds-primary);
  transform: rotate(180deg);
}
.ds-fleet__group .ds-avatar {
  background-color: var(--ds-accent-subtle);
  color: #C4663B;
}
.ds-fleet__group.is-active {
  background-color: var(--ds-primary-subtle);
}
.ds-fleet__group .ds-fleet__meta {
  font-size: var(--ds-text-xs);
}

.ds-fleet__sub {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ds-border);
  background-color: var(--ds-surface-muted);
  list-style: none;
}
.ds-fleet__sub > li + li {
  border-top: 1px solid var(--ds-border);
}
.ds-fleet__sub .ds-fleet__link {
  padding-inline-start: 24px;
}

.ds-fleet__more {
  align-self: center;
}

.ds-detail__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--ds-text-lg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-menu--devices {
  width: 280px;
}
.ds-menu--devices .ds-menu__list > li > a {
  justify-content: space-between;
}
.ds-menu--devices .ds-menu__list > li > a span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-menu--devices .ds-menu__list > li > a img {
  flex: none;
  width: auto;
  height: 24px;
  border-radius: 0;
}

.ds-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-5) var(--ds-space-4) var(--ds-space-4);
}

.ds-gauge {
  position: relative;
  width: 170px;
  height: 150px;
}
.ds-gauge svg {
  display: block;
  width: 170px;
  height: 170px;
}
.ds-gauge circle {
  fill: none;
  stroke-linecap: round;
  stroke-width: 12;
}

.ds-gauge__track {
  stroke: var(--ds-primary-subtle);
}

.ds-gauge__value {
  stroke: var(--ds-primary);
  transition: stroke-dasharray 1s var(--ds-ease);
}

.ds-gauge__label {
  position: absolute;
  top: 46px;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.ds-gauge__label b {
  color: var(--ds-text);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ds-gauge__label span {
  margin-top: 4px;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}

.ds-gauge-card .odometer-widget {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.ds-gauge-card .odometer-widget span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 20px;
  height: 26px;
  margin: 0;
  padding: 0 4px;
  border-radius: 6px;
  background-color: var(--ds-text);
  color: #fff;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: var(--ds-text-sm);
}
.ds-gauge-card .odometer-widget span:last-child {
  background-color: var(--ds-accent);
}

.ds-gauge-card__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}
.ds-gauge-card__time .ds-icon {
  width: 14px;
  height: 14px;
}

.ds-info {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
}

.ds-info__address {
  display: flex;
  gap: var(--ds-space-3);
}
.ds-info__address > .ds-icon {
  margin-top: 2px;
  color: var(--ds-primary);
}
.ds-info__address label {
  display: block;
  margin: 0 0 2px;
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 500;
}
.ds-info__address div > div {
  font-size: var(--ds-text-xs);
  line-height: 1.45;
}

.ds-info__state {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: var(--ds-space-3);
  border-top: 1px solid var(--ds-border);
}
.ds-info__state .icon-state {
  display: inline-flex;
  float: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ds-radius-sm);
  background-color: var(--ds-surface-muted);
}
.ds-info__state .icon-state.marker {
  margin-inline-start: auto;
  background: none;
}
.ds-info__state .event-time {
  float: none;
  height: 34px;
  margin: 0;
  border: 0;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-primary-subtle);
  color: var(--ds-primary);
  font-weight: 500;
  line-height: 34px;
}
.ds-info__state .event-time::after {
  top: 9px;
}

.ds-driver {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
}

.ds-driver__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: var(--ds-text-xs);
}
.ds-driver__text small {
  color: var(--ds-text-subtle);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ds-driver__text b {
  font-size: var(--ds-text-sm);
  font-weight: 500;
}
.ds-driver__text span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ds-text-muted);
}
.ds-driver__text span .ds-icon {
  width: 13px;
  height: 13px;
}

.ds-player {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4);
}

.ds-player__controls {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.ds-player__controls .ds-btn--icon {
  width: 38px;
  height: 38px;
}
.ds-player__controls .ds-btn--icon .ds-icon {
  width: 16px;
  height: 16px;
}
.ds-player__controls .is-active {
  --btn-bg: var(--ds-primary);
  --btn-bg-hover: var(--ds-primary-hover);
  --btn-fg: var(--ds-on-primary);
}

.ds-player__meta {
  display: flex;
  justify-content: space-between;
  color: var(--ds-text-muted);
  font-size: 11px;
}

.ds-periods {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

.ds-period {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-md);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-xs);
  transition: border-color var(--ds-duration) var(--ds-ease);
}
.ds-period:hover {
  border-color: var(--ds-primary-soft);
}
.ds-period.is-active {
  border-color: var(--ds-primary);
}

.ds-period__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--ds-space-3);
  min-width: 0;
  padding: 6px;
  color: var(--ds-text);
  text-decoration: none;
  cursor: pointer;
}
.ds-period__main:hover, .ds-period__main:focus {
  color: var(--ds-text);
  text-decoration: none;
}
.ds-period__main .ds-avatar {
  width: 34px;
  height: 34px;
}
.ds-period__main .ds-avatar .ds-icon {
  width: 16px;
  height: 16px;
}
.ds-period__main.loading .ds-avatar .ds-icon {
  animation: ds-spin 1s linear infinite;
}

.ds-period__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.ds-period__text span {
  color: var(--ds-text-muted);
  font-size: 11px;
}
.ds-period__text b {
  font-size: var(--ds-text-sm);
  font-weight: 500;
}

.ds-history .ds-card {
  padding: var(--ds-space-4);
}
.ds-history .ds-card .ds-label {
  display: block;
  margin-bottom: var(--ds-space-3);
}
.ds-history .ds-card .ds-field {
  margin-bottom: var(--ds-space-3);
}

.ds-history .ui-datepicker {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--ds-text-xs);
}
.ds-history .ui-datepicker .ui-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-bottom: var(--ds-space-2);
  padding: 0;
  border: 0;
  background: none;
}
.ds-history .ui-datepicker .ui-datepicker-title {
  margin: 0;
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  line-height: 36px;
}
.ds-history .ui-datepicker .ui-datepicker-prev,
.ds-history .ui-datepicker .ui-datepicker-next {
  top: 2px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--ds-primary-subtle);
  cursor: pointer;
}
.ds-history .ui-datepicker .ui-datepicker-prev.ui-state-hover,
.ds-history .ui-datepicker .ui-datepicker-next.ui-state-hover {
  top: 2px;
  border: 0;
  background: var(--ds-primary-soft);
}
.ds-history .ui-datepicker .ui-datepicker-prev span,
.ds-history .ui-datepicker .ui-datepicker-next span {
  display: none;
}
.ds-history .ui-datepicker .ui-datepicker-prev::after,
.ds-history .ui-datepicker .ui-datepicker-next::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 13px;
  width: 8px;
  height: 8px;
  border: solid var(--ds-primary);
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
.ds-history .ui-datepicker .ui-datepicker-prev {
  left: 2px;
}
.ds-history .ui-datepicker .ui-datepicker-prev.ui-state-hover {
  left: 2px;
}
.ds-history .ui-datepicker .ui-datepicker-next {
  right: 2px;
}
.ds-history .ui-datepicker .ui-datepicker-next.ui-state-hover {
  right: 2px;
}
.ds-history .ui-datepicker .ui-datepicker-next::after {
  left: 10px;
  transform: rotate(-135deg);
}
.ds-history .ui-datepicker .ui-state-disabled {
  opacity: 0.35;
}
.ds-history .ui-datepicker table {
  margin: 0;
  font-size: var(--ds-text-xs);
}
.ds-history .ui-datepicker th {
  padding: 4px 0;
  color: var(--ds-text-subtle);
  font-weight: 500;
}
.ds-history .ui-datepicker td {
  padding: 2px;
}
.ds-history .ui-datepicker td a,
.ds-history .ui-datepicker td span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ds-text);
  text-align: center;
}
.ds-history .ui-datepicker td a:hover,
.ds-history .ui-datepicker td .ui-state-hover {
  background: var(--ds-primary-subtle);
  color: var(--ds-primary);
}
.ds-history .ui-datepicker td .ui-state-highlight {
  box-shadow: inset 0 0 0 1.5px var(--ds-accent);
  color: var(--ds-accent);
}
.ds-history .ui-datepicker td .ui-state-active {
  background: var(--ds-primary);
  color: #fff;
}

.ds-zones__list {
  margin: 0;
  padding: 0;
  border-radius: var(--ds-radius-lg);
  background-color: var(--ds-surface);
  box-shadow: var(--ds-shadow-sm);
  list-style: none;
  overflow: hidden;
}
.ds-zones__list > li + li {
  border-top: 1px solid var(--ds-border);
}

.ds-zone {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: var(--ds-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ds-zone:hover {
  background-color: var(--ds-surface-muted);
}
.ds-zone:focus {
  outline: none;
}
.ds-zone:focus-visible {
  box-shadow: inset var(--ds-focus-ring);
}
.ds-zone .ds-icon.is-warning {
  color: var(--ds-warning);
}

.ds-zone__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-zone__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ds-border-strong);
}
.is-visible .ds-zone__dot {
  background-color: var(--ds-primary);
  box-shadow: 0 0 0 4px var(--ds-primary-subtle);
}

@media (max-width: 767.98px) {
  .lexus-tracker-container {
    flex-direction: column;
  }
  .lexus-tracker-container .angularjs-container {
    height: 55%;
    min-height: 0;
  }
  .lexus-tracker-container .maps-canvas {
    flex: 1;
    min-height: 0;
  }
  .ds-position {
    flex-direction: column;
  }
  .ds-rail {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: var(--ds-space-2);
  }
  .ds-panel {
    flex: 1;
    width: 100%;
    min-height: 0;
    border-inline-end: 0;
  }
}
/* ===========================================================================
   Fleet dashboard
   Sections, composition bars, bar lists and meters of the fleet overview.
   The state colours are fixed (never themed): a status colour must keep the
   same meaning under every theme, and the set was validated for colour vision
   deficiency in the order it is stacked in (running -> stopped -> silent).
   =========================================================================== */
.ds-dash__section {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
}

.ds-dash__title {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-dash__title .ds-icon {
  width: 16px;
  height: 16px;
}

.ds-dash__title small {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ds-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: var(--ds-space-4);
}

.ds-dash-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.ds-dash-grid--meters {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* A figure we could not read: shown instead of a misleading zero */
.ds-stat.is-unknown .ds-stat__value,
.ds-dash-unknown {
  color: var(--ds-text-subtle);
}

/* --- Composition bar: one row of segments that add up to a whole ---------- */
.ds-bar-stack {
  display: flex;
  gap: 2px;
  height: 16px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-surface-muted);
  overflow: hidden;
}

.ds-bar-stack__seg {
  min-width: 0;
  background-color: var(--ds-border-strong);
  transition: flex-basis var(--ds-duration) var(--ds-ease);
}

.ds-bar-stack__seg:first-child {
  border-radius: var(--ds-radius-pill) 0 0 var(--ds-radius-pill);
}

.ds-bar-stack__seg:last-child {
  border-radius: 0 var(--ds-radius-pill) var(--ds-radius-pill) 0;
}

/* --- Legend: the values are read here, never from colour alone ------------ */
.ds-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-legend__item {
  display: flex;
  align-items: baseline;
  gap: var(--ds-space-2);
  font-size: var(--ds-text-sm);
}

.ds-legend__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ds-border-strong);
}

.ds-legend__label {
  color: var(--ds-text-muted);
}

.ds-legend__value {
  color: var(--ds-text);
  font-weight: 600;
}

.ds-legend__share {
  color: var(--ds-text-subtle);
  font-size: var(--ds-text-xs);
}

/* --- Bar list: compare a magnitude across a handful of named rows --------- */
.ds-barlist {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-barlist__row {
  display: grid;
  grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ds-space-3);
}

.ds-barlist__label {
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-barlist__track {
  display: block;
  height: 12px;
  border-radius: var(--ds-radius-pill);
  background-color: var(--ds-surface-muted);
  overflow: hidden;
}

.ds-barlist__fill {
  /* a span: without this the height and width of an inline box are ignored */
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: var(--ds-radius-pill);
  background-color: #256abf;
  transition: width var(--ds-duration) var(--ds-ease);
}

.ds-barlist__value {
  min-width: 3ch;
  color: var(--ds-text);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.ds-dash-empty {
  padding: var(--ds-space-4) 0;
  color: var(--ds-text-subtle);
  font-size: var(--ds-text-sm);
}

/* --- Meter: a rate against a target, on the design system gauge ----------- */
.ds-gauge--sm {
  width: 140px;
  height: 118px;
}

.ds-gauge--sm svg {
  width: 140px;
  height: 140px;
}

.ds-gauge--sm .ds-gauge__label {
  top: 36px;
}

.ds-gauge--sm .ds-gauge__label b {
  font-size: 26px;
}

.ds-gauge--good .ds-gauge__value {
  stroke: #0ca30c;
}

.ds-gauge--warn .ds-gauge__value {
  stroke: #d98324;
}

.ds-gauge--bad .ds-gauge__value {
  stroke: #d03b3b;
}

.ds-gauge-card__caption {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.ds-gauge-card__detail {
  color: var(--ds-text-subtle);
  font-size: var(--ds-text-xs);
  text-align: center;
}

/* --- Trend charts: the only canvases left on the page -------------------- */
.ds-chart {
  position: relative;
  /* plot + the x axis band, so the card never grows a nested scrollbar */
  height: 280px;
}

.ds-chart canvas {
  max-width: 100%;
}

.ds-chart__empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-4);
  color: var(--ds-text-subtle);
  font-size: var(--ds-text-sm);
  text-align: center;
}

.ds-chart.is-empty .ds-chart__empty {
  display: flex;
}

.ds-chart.is-empty canvas {
  visibility: hidden;
}

/* Refetch holds the previous render instead of flashing a skeleton */
.ds-dash.is-loading .ds-chart,
.ds-dash.is-loading .ds-bar-stack,
.ds-dash.is-loading .ds-barlist,
.ds-dash.is-loading .ds-gauge {
  opacity: 0.55;
  transition: opacity var(--ds-duration) var(--ds-ease);
}

@media (max-width: 767.98px) {
  .ds-dash-grid,
  .ds-dash-grid--wide,
  .ds-dash-grid--meters {
    grid-template-columns: minmax(0, 1fr);
  }
  .ds-chart {
    height: 240px;
  }
  .ds-barlist__row {
    grid-template-columns: minmax(70px, 1fr) minmax(0, 1.2fr) auto;
  }
}
.lexus-tracker-container.is-fleet-state .angularjs-container {
  flex: 1 1 auto;
}
.lexus-tracker-container.is-fleet-state .maps-canvas {
  display: none;
}

.ds-fleet-state {
  background-color: var(--ds-canvas);
}

.ds-fleet-state__loading {
  display: flex;
  justify-content: center;
  padding: var(--ds-space-12) 0;
}

.ds-stat--pick {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease);
}
.ds-stat--pick:hover {
  border-color: var(--ds-border-strong);
}
.ds-stat--pick:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring);
}
.ds-stat--pick.is-active {
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-sm);
}

.ds-filters__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-4) var(--ds-space-5);
}
.ds-filters__body > .ds-input-group {
  flex: 1 1 220px;
  min-width: 180px;
}
.ds-filters__body > .ds-input {
  flex: 0 1 190px;
}
.ds-filters__body > .ds-btn {
  margin-inline-start: auto;
}

.ds-fleet-state .ds-table th,
.ds-fleet-state .ds-table td {
  padding: 8px 14px;
}
.ds-fleet-state .ds-table .ds-cell-main .ds-avatar {
  width: 30px;
  height: 30px;
}
.ds-fleet-state .ds-table .ds-cell-main .ds-avatar img {
  width: 22px;
  height: auto;
}
.ds-fleet-state .ds-table .ds-help {
  display: inline-block;
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.35;
}

.ds-nowrap {
  white-space: nowrap;
}

.ds-signal {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  white-space: nowrap;
}

.ds-signal__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.ds-signal__bars i {
  width: 3px;
  border-radius: 1px;
  background-color: var(--ds-border-strong);
}
.ds-signal__bars i:nth-child(1) {
  height: 5px;
}
.ds-signal__bars i:nth-child(2) {
  height: 8px;
}
.ds-signal__bars i:nth-child(3) {
  height: 11px;
}
.ds-signal__bars i:nth-child(4) {
  height: 14px;
}
.ds-signal__bars i.is-on {
  background-color: var(--ds-success);
}

.ds-signal__label {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
}

.ds-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-5);
  border-top: 1px solid var(--ds-border);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-sm);
}

.ds-pager__controls {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
}
.ds-pager__controls .ds-input {
  width: auto;
}

@media (max-width: 767.98px) {
  .ds-filters__body > .ds-btn {
    margin-inline-start: 0;
  }
}
@media (max-width: 575.98px) {
  .ds-fleet-state .ds-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds-space-2);
  }
  .ds-fleet-state .ds-stat {
    gap: var(--ds-space-3);
    padding: var(--ds-space-3);
  }
  .ds-fleet-state .ds-stat .ds-avatar {
    width: 36px;
    height: 36px;
  }
  .ds-fleet-state .ds-stat__value {
    font-size: var(--ds-text-xl);
  }
}
