.dsz-card {
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  box-shadow: var(--box-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

body {
  --primary-transparent: var(--dsz-primary-tint-light, #eff6ff);
  --menu-item-active-bg: var(--dsz-primary-tint-light, #eff6ff);
  --menu-item-active-color: var(--primary, #2563eb);
  --menu-item-hover-color: var(--primary, #2563eb);
  --menu-active-color: var(--primary, #2563eb);
  --submenu-active-color: var(--primary, #2563eb);
  --dsz-surface: #fff;
  --dsz-surface-subtle: #f8fafc;
  --dsz-surface-muted: #f1f5f9;
  --dsz-heading: #111827;
  --secondary-color: #6b7280;
  --dsz-brand-accent-soft: color-mix(in srgb, var(--dsz-brand-accent, #4f46e5) 11%, white);
  --dsz-brand-accent-border: color-mix(in srgb, var(--dsz-brand-accent, #4f46e5) 30%, transparent);
}

:root[data-bs-theme="dark"] body {
  --dsz-primary-dark-foreground: color-mix(in srgb, var(--primary, #2563eb) 20%, #eef4ff);
  --dsz-primary-dark-surface: color-mix(in srgb, var(--primary, #2563eb) 45%, #132a55);
  --dsz-primary-dark-solid: color-mix(in srgb, var(--primary, #2563eb) 55%, #2563eb);
  --dsz-primary-tint-light: var(--dsz-primary-dark-surface) !important;
  --primary-transparent: var(--dsz-primary-dark-surface);
  --menu-item-active-bg: var(--dsz-primary-dark-surface);
  --menu-item-hover-bg: var(--dsz-primary-dark-surface);
  --menu-item-active-color: var(--dsz-primary-dark-foreground);
  --menu-item-hover-color: var(--dsz-primary-dark-foreground);
  --menu-active-color: var(--dsz-primary-dark-foreground);
  --submenu-active-color: var(--dsz-primary-dark-foreground);
  --dsz-surface: #08081a;
  --dsz-surface-subtle: #0c0c20;
  --dsz-surface-muted: #11142e;
  --dsz-heading: #d9dcff;
  --secondary-color: #97aac1;
  --bs-link-color: var(--dsz-primary-dark-foreground);
  --bs-link-hover-color: #fff;
  --dsz-brand-accent-soft: color-mix(in srgb, var(--dsz-brand-accent, #4f46e5) 18%, #0f172a);
  --dsz-brand-accent-border: color-mix(in srgb, var(--dsz-brand-accent, #4f46e5) 48%, transparent);
}

:root[data-bs-theme="dark"] {
  color-scheme: dark;
}

:root[data-bs-theme="dark"] .page-wrapper .btn-primary {
  border-color: var(--dsz-primary-dark-solid);
  background: var(--dsz-primary-dark-solid);
  color: #fff;
}

:root[data-bs-theme="dark"] .page-wrapper .btn-primary:hover,
:root[data-bs-theme="dark"] .page-wrapper .btn-primary:focus-visible {
  border-color: color-mix(in srgb, var(--dsz-primary-dark-solid) 78%, white);
  background: color-mix(in srgb, var(--dsz-primary-dark-solid) 82%, white);
  color: #fff;
}

:root[data-bs-theme="dark"] .page-wrapper .btn-outline-primary {
  border-color: var(--dsz-primary-dark-solid);
  color: var(--dsz-primary-dark-foreground);
}

:root[data-bs-theme="dark"] .page-wrapper .btn-outline-primary:hover,
:root[data-bs-theme="dark"] .page-wrapper .btn-outline-primary:focus-visible {
  border-color: var(--dsz-primary-dark-solid);
  background: var(--dsz-primary-dark-solid);
  color: #fff;
}

:root[data-bs-theme="dark"] .page-wrapper .text-primary {
  color: var(--dsz-primary-dark-foreground) !important;
}

:root[data-bs-theme="dark"] .page-wrapper .bg-primary {
  background-color: var(--dsz-primary-dark-solid) !important;
}

.dsz-stat {
  min-height: 116px;
}

.dsz-table td,
.dsz-table th {
  vertical-align: middle;
}

.dsz-form-shell {
  align-items: flex-start;
}

.page-wrapper .form-check:not(.form-switch) {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 24px;
  padding-left: 0;
}

.page-wrapper .form-check:not(.form-switch) > .form-check-input,
.page-wrapper .form-check:not(.form-switch) > input[type="checkbox"],
.page-wrapper .form-check:not(.form-switch) > input[type="radio"] {
  float: none;
  flex: 0 0 auto;
  margin: 0;
}

.page-wrapper .form-check:not(.form-switch) > .form-check-label {
  margin: 0;
  line-height: 1.35;
}

.dsz-form-intro {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--dsz-surface) 0%, var(--dsz-surface-subtle) 100%);
}

.dsz-form-intro .dsz-eyebrow,
.dsz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dsz-brand-accent, #4f46e5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dsz-form-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dsz-form-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--body-color, #4b5563);
  font-size: 13px;
  line-height: 1.35;
}

.dsz-form-step-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
  font-size: 12px;
  font-weight: 800;
}

.dsz-required-marker {
  color: var(--danger, #ef4444);
  font-weight: 800;
}

.dsz-field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dsz-field-has-error .form-control,
.dsz-field-has-error .form-select {
  border-color: var(--danger, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.dsz-field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: var(--danger, #ef4444);
  font-size: 13px;
  line-height: 1.3;
}

.dsz-field-error i {
  margin-top: 1px;
  flex: 0 0 auto;
}

.dsz-form-errors {
  border-color: rgba(239, 68, 68, 0.24);
  background: #fef2f2;
  color: #991b1b;
}

:root[data-bs-theme="dark"] .dsz-form-errors {
  border-color: color-mix(in srgb, var(--danger, #ef4444) 42%, transparent);
  background: var(--danger-transparent, #2c0b0e);
  color: #fca5a5;
}

.dsz-form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--dsz-heading, #111827);
  font-size: 14px;
  font-weight: 800;
}

.dsz-form-section-title::before {
  content: "";
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: var(--dsz-brand-accent, #4f46e5);
}

.dsz-empty-state {
  padding: 28px 18px;
  text-align: center;
  color: var(--secondary-color, #6b7280);
}

.dsz-empty-state i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
  font-size: 22px;
}

.dsz-attachment-card,
.dsz-upload-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  background: var(--dsz-surface, #fff);
}

.dsz-attachment-card.is-empty {
  grid-template-columns: 48px minmax(0, 1fr);
  background: var(--dsz-surface-subtle, #f8fafc);
}

.dsz-attachment-card-compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 8px;
}

.dsz-attachment-card-compact.is-empty {
  grid-template-columns: 42px minmax(0, 1fr);
}

.dsz-attachment-preview,
.dsz-upload-preview-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--dsz-surface-muted, #f1f5f9);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
  font-size: 24px;
}

.dsz-attachment-card-compact .dsz-attachment-preview {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.dsz-attachment-card.is-empty .dsz-attachment-preview {
  width: 48px;
  height: 48px;
  color: #94a3b8;
}

.dsz-attachment-preview img,
.dsz-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dsz-attachment-body,
.dsz-upload-preview-body {
  min-width: 0;
}

.dsz-attachment-label,
.dsz-upload-preview-label {
  color: var(--dsz-heading, #111827);
  font-size: 13px;
  font-weight: 800;
}

.dsz-attachment-name,
.dsz-upload-preview-name {
  overflow: hidden;
  color: #475569;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsz-attachment-meta,
.dsz-upload-preview-meta {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.dsz-upload-preview {
  margin-top: 8px;
  grid-template-columns: 48px minmax(0, 1fr);
  background: var(--dsz-surface-subtle, #f8fafc);
}

.dsz-upload-preview-icon {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.dsz-confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 22px;
}

:root[data-bs-theme="dark"] .dsz-confirm-icon {
  background: var(--warning-transparent, #332701);
  color: #fbbf24;
}

@media (max-width: 575.98px) {
  .dsz-attachment-card,
  .dsz-upload-preview {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .dsz-attachment-preview {
    width: 48px;
    height: 48px;
  }

  .dsz-attachment-action {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

.dsz-filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.dsz-filter-form .form-label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-color, #6b7280);
}

.dsz-filter-form .form-control,
.dsz-filter-form .form-select {
  min-width: 136px;
  width: clamp(136px, 13vw, 190px);
  max-width: 100%;
}

.dsz-filter-form input[type="search"],
.dsz-filter-form input[name="search"],
.dsz-filter-form .dsz-filter-search {
  min-width: 190px;
  width: clamp(190px, 20vw, 280px);
}

.dsz-filter-form input[type="date"] {
  min-width: 138px;
  width: 148px;
}

.dsz-filter-form .btn {
  white-space: nowrap;
}

.dsz-filter-form-grid {
  width: 100%;
}

@media (min-width: 768px) {
  .dsz-filter-form-grid.row {
    display: flex;
    align-items: flex-end;
  }

  .dsz-filter-form-grid.row > [class*="col"] {
    flex: 0 0 auto;
    width: auto;
    min-width: 142px;
    max-width: 220px;
  }

  .dsz-filter-form-grid.row > .col-auto {
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .dsz-filter-form {
    align-items: stretch;
  }

  .dsz-filter-form .form-control,
  .dsz-filter-form .form-select,
  .dsz-filter-form input[type="search"],
  .dsz-filter-form input[name="search"],
  .dsz-filter-form input[type="date"],
  .dsz-filter-form .btn {
    width: 100%;
  }
}

.dsz-field-map {
  position: relative;
  width: 100%;
  height: min(58vh, 560px);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: #eef2f7;
}

.dsz-field-map.leaflet-container,
.dsz-field-map .leaflet-container {
  width: 100%;
  height: 100%;
}

.dsz-field-map-compact {
  height: min(46vh, 420px);
  min-height: 320px;
}

.dsz-map-employee-label {
  padding: 4px 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.dsz-map-employee-label::before {
  border-top-color: rgba(255, 255, 255, 0.96) !important;
}

.dsz-map-status-icon {
  border: 0;
  background: transparent;
  pointer-events: none !important;
}

.dsz-map-status-dot {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.dsz-map-scroll-toggle {
  min-width: 132px;
}

.dsz-map-status-dot.healthy {
  background: #10b981;
}

.dsz-map-status-dot.watch {
  background: #f59e0b;
}

.dsz-map-status-dot.risk {
  background: #ef4444;
}

.dsz-map-empty {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 500;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--secondary-color, #6b7280);
  font-size: 13px;
  box-shadow: var(--box-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.dsz-map-legend {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: var(--box-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.dsz-map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.dsz-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.dsz-map-legend .healthy {
  background: #10b981;
}

.dsz-map-legend .watch {
  background: #f59e0b;
}

.dsz-map-legend .risk {
  background: #ef4444;
}

:root[data-bs-theme="dark"] .dsz-field-map {
  background: var(--dsz-surface-muted);
}

:root[data-bs-theme="dark"] .dsz-field-map .leaflet-tile-pane {
  filter: brightness(.62) invert(1) contrast(2.5) hue-rotate(195deg) saturate(.35) brightness(.72);
}

:root[data-bs-theme="dark"] .dsz-map-employee-label,
:root[data-bs-theme="dark"] .dsz-map-empty,
:root[data-bs-theme="dark"] .dsz-map-legend,
:root[data-bs-theme="dark"] .leaflet-control-layers,
:root[data-bs-theme="dark"] .leaflet-bar a,
:root[data-bs-theme="dark"] .leaflet-popup-content-wrapper {
  border-color: var(--border-color);
  background: color-mix(in srgb, var(--dsz-surface, #08081a) 94%, transparent);
  color: var(--gray-900);
}

:root[data-bs-theme="dark"] .dsz-map-employee-label::before {
  border-top-color: var(--dsz-surface, #08081a) !important;
}

:root[data-bs-theme="dark"] .leaflet-bar a:hover,
:root[data-bs-theme="dark"] .leaflet-control-layers label:hover {
  background: var(--dsz-surface-muted);
  color: var(--dsz-primary-dark-foreground);
}

:root[data-bs-theme="dark"] .leaflet-popup-tip {
  background: var(--dsz-surface, #08081a);
}

:root[data-bs-theme="dark"] .leaflet-control-attribution {
  background: color-mix(in srgb, var(--dsz-surface, #08081a) 82%, transparent);
  color: var(--body-color);
}

.dsz-map-legend-route i {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0f766e);
}

.dsz-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.dsz-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}

.dsz-timeline-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: -14px;
  width: 1px;
  background: var(--border-color, #e5e7eb);
}

.dsz-timeline-item:last-child::before {
  display: none;
}

.dsz-timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 50%;
  background: var(--dsz-surface, #fff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

.dsz-timeline-body {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: var(--dsz-surface, #fff);
}

.dsz-map-legend .risk {
  background: #ef4444;
}

.dsz-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dsz-live-status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dsz-live-status.is-refreshing .dsz-live-status-label i {
  animation: dsz-live-spin 0.9s linear infinite;
}

.dsz-live-status.is-error {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

:root[data-bs-theme="dark"] .dsz-live-status.is-error {
  border-color: color-mix(in srgb, var(--danger, #ef4444) 42%, transparent) !important;
  background: var(--danger-transparent, #2c0b0e) !important;
  color: #fca5a5 !important;
}

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

.dsz-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--light, #f8f9fa);
  color: var(--body-color, #4b5563);
}

.dsz-status.pending,
.dsz-status.pending_approval {
  background: var(--warning-transparent, #fff7ed);
  color: var(--warning, #f59e0b);
}

.dsz-status.approved,
.dsz-status.present,
.dsz-status.completed,
.dsz-status.delivered,
.dsz-status.won,
.dsz-status.done,
.dsz-status.connected,
.dsz-status.acked,
.dsz-status.applied,
.dsz-status.replayed {
  background: var(--success-transparent, #ecfdf5);
  color: var(--success, #10b981);
}

.dsz-status.rejected,
.dsz-status.suspended,
.dsz-status.revoked,
.dsz-status.cancelled,
.dsz-status.failed,
.dsz-status.lost,
.dsz-status.missed,
.dsz-status.urgent {
  background: var(--danger-transparent, #fef2f2);
  color: var(--danger, #ef4444);
}

.dsz-status.open,
.dsz-status.prospect,
.dsz-status.planned,
.dsz-status.normal,
.dsz-status.callback,
.dsz-status.confirmed,
.dsz-status.received,
.dsz-status.sent {
  background: var(--primary-transparent, #eff6ff);
  color: var(--primary, #2563eb);
}

:root[data-bs-theme="dark"] .dsz-status.open,
:root[data-bs-theme="dark"] .dsz-status.prospect,
:root[data-bs-theme="dark"] .dsz-status.planned,
:root[data-bs-theme="dark"] .dsz-status.normal,
:root[data-bs-theme="dark"] .dsz-status.callback,
:root[data-bs-theme="dark"] .dsz-status.confirmed,
:root[data-bs-theme="dark"] .dsz-status.received,
:root[data-bs-theme="dark"] .dsz-status.sent {
  color: var(--dsz-primary-dark-foreground);
}

.dsz-status.high,
.dsz-status.active,
.dsz-status.dispatched,
.dsz-status.conflict,
.dsz-status.partial {
  background: var(--warning-transparent, #fff7ed);
  color: var(--warning, #f59e0b);
}

.dsz-status.queued {
  background: var(--warning-transparent, #fff7ed);
  color: var(--warning, #f59e0b);
}

.dsz-sync-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

.dsz-json-preview {
  max-width: 360px;
  max-height: 180px;
  margin: 4px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: var(--dsz-surface-subtle, #f8fafc);
  color: var(--dsz-heading, #111827);
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.dsz-sync-batch {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  padding: 10px;
  background: var(--dsz-surface, #fff);
}

.dsz-sync-progress {
  height: 6px;
  background: var(--light, #f3f4f6);
}

.logo img,
.sidebar-logo img {
  max-height: 36px;
}

.dsz-application-logo {
  display: block;
  width: auto;
  max-width: 168px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}

.dsz-application-logo-surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.dsz-application-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}

/* Give the full application brand the complete usable sidebar header width. */
.sidebar .sidebar-logo {
  display: flex;
  align-items: center;
  padding-inline: 8px;
}

.sidebar .sidebar-logo > div {
  width: 100%;
  min-width: 0;
}

.sidebar .sidebar-logo .logo-normal,
.sidebar .sidebar-logo .dark-logo {
  width: 100%;
  height: calc(var(--topbar-height) - 4px);
  overflow: hidden;
  padding-block: 12px;
  box-sizing: border-box;
  line-height: normal;
  text-align: left;
  padding-left: 12px;
  padding-right: 12px;
}

.sidebar .sidebar-logo .dsz-application-logo {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

/* The supplied horizontal logo has generous whitespace in its source canvas. */
.sidebar .sidebar-logo .logo-normal .dsz-application-logo,
.sidebar .sidebar-logo .dark-logo .dsz-application-logo {
  transform: scale(1.24);
  transform-origin: left center;
  object-position: left center;
}

.sidebar .sidebar-logo .dark-logo .dsz-application-logo {
  margin-left: 0;
  margin-right: auto;
  object-position: left center;
}

.sidebar .sidebar-logo .dsz-application-logo-surface {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 3px 6px;
  box-sizing: border-box;
  justify-content: flex-start;
}

.sidebar .sidebar-logo .logo-small .dsz-application-mark {
  margin: 0 auto;
}

.dsz-login-brand-logo {
  display: block;
  width: auto;
  max-width: min(230px, 80vw);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.dsz-login-brand-panel {
  background: linear-gradient(145deg, var(--primary, #2563eb), var(--dsz-brand-accent, #4f46e5));
}

.sidebar .sidebar-menu > ul > li.dsz-sidebar-group {
  margin-bottom: 8px;
}

.sidebar .sidebar-menu .dsz-sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--menu-title-color, #707070);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar .sidebar-menu .dsz-sidebar-group-toggle:hover,
.sidebar .sidebar-menu .dsz-sidebar-group-toggle:focus-visible {
  background: var(--light, #f8f9fa);
  color: var(--primary, #2563eb);
  outline: 0;
}

.sidebar .sidebar-menu .dsz-sidebar-group-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar .sidebar-menu .dsz-sidebar-group-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .sidebar-menu .dsz-sidebar-group-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 7px;
}

.sidebar .sidebar-menu .dsz-sidebar-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.sidebar .sidebar-menu .dsz-sidebar-group.is-open > .dsz-sidebar-group-toggle {
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

.sidebar .sidebar-menu .dsz-sidebar-group.is-open .dsz-sidebar-group-chevron {
  transform: rotate(90deg);
  background: transparent;
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

:root[data-bs-theme="dark"] .sidebar .sidebar-menu .dsz-sidebar-group-menu > li.active > a.dsz-sidebar-link {
  background: var(--dsz-primary-dark-surface);
  color: var(--dsz-primary-dark-foreground);
}

:root[data-bs-theme="dark"] .sidebar .sidebar-menu .dsz-sidebar-group-menu > li.active > a.dsz-sidebar-link i {
  background: var(--dsz-primary-dark-solid);
  color: #fff;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu {
  overflow: hidden;
  transform-origin: top;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 0;
  padding: 0 0 4px 0;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu[hidden] {
  display: none !important;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu li {
  margin-bottom: 0;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu a.dsz-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 10px;
  line-height: 1;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu a.dsz-sidebar-link i {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 7px;
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu a.dsz-sidebar-link i::before {
  display: block;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.sidebar .sidebar-menu .dsz-sidebar-group-menu a.dsz-sidebar-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  line-height: 1.2;
}

body.mini-sidebar:not(.expand-menu) .sidebar .dsz-sidebar-group-main {
  display: none;
}

body.mini-sidebar:not(.expand-menu) .sidebar .dsz-sidebar-group-meta {
  gap: 0;
}

body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu .dsz-sidebar-group-toggle {
  justify-content: center;
  padding-inline: 4px;
}

.page-wrapper .content {
  min-height: calc(100vh - 126px);
}

.page-wrapper .dsz-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
}

.page-wrapper .dsz-pagination .page-link {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: .35rem .65rem;
  border-radius: 6px !important;
}

.page-wrapper .dsz-pagination-actions .btn {
  min-width: 32px;
  border-radius: 6px;
}

.dsz-device-action-cell {
  min-width: 156px;
  white-space: nowrap;
}

.dsz-policy-tags-field .select2-container {
  width: 100% !important;
}

.dsz-policy-mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  background: var(--light, #f8fafc);
}

.dsz-policy-mode-switch .form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  white-space: nowrap;
}

.dsz-policy-mode-switch .form-switch .form-check-input {
  float: none;
  width: 2.6rem;
  margin: 0;
}

@media (max-width: 575.98px) {
  .dsz-policy-mode-switch {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dsz-select2-field {
  min-width: 0;
}

.dsz-select2-field .select2-container {
  width: 100% !important;
  max-width: 100%;
}

.dsz-select2-field .select2-container--default .select2-selection--multiple,
.dsz-select2-field .select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: var(--white, #fff);
}

.dsz-select2-field .select2-container--default .select2-selection--multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5px 10px;
  box-sizing: border-box;
}

.dsz-select2-field .select2-container--default.select2-container--focus .select2-selection--multiple,
.dsz-select2-field .select2-container--default.select2-container--open .select2-selection--multiple,
.dsz-select2-field .select2-container--default.select2-container--focus .select2-selection--single,
.dsz-select2-field .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.dsz-select2-field .select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: 0;
  border-radius: 999px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--primary, #2563eb);
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0;
  padding: 4px 8px 4px 22px;
}

.dsz-select2-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border: 0;
  color: var(--primary, #2563eb);
  padding: 4px 5px;
}

.dsz-select2-field .select2-container--default .select2-search--inline .select2-search__field {
  display: block;
  width: 100% !important;
  height: 30px !important;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 30px;
  text-align: left;
  box-sizing: border-box;
  font-family: inherit;
  resize: none;
}

.dsz-select2-field .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  flex: 0 1 auto;
  width: auto;
  min-height: 30px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.dsz-select2-field .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty {
  display: none !important;
}

.dsz-select2-field .select2-container--default .select2-selection--multiple .select2-search--inline {
  display: flex;
  float: none;
  flex: 1 1 120px;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.dsz-select2-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding-left: 12px;
}

.dsz-select2-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 8px;
}

@media (max-width: 767.98px) {
  .dsz-select2-field .select2-container,
  .dsz-select2-field .select2-dropdown {
    width: 100% !important;
  }
}

.dsz-policy-tags-field .select2-container--default .select2-selection--multiple {
  min-height: 48px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 5px 10px;
  background: var(--white, #fff);
}

.dsz-policy-tags-field .select2-container--default.select2-container--focus .select2-selection--multiple,
.dsz-policy-tags-field .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.dsz-policy-tags-field .select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: 0;
  border-radius: 999px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--primary, #2563eb);
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  padding: 4px 8px 4px 22px;
}

.dsz-policy-tags-field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border: 0;
  color: var(--primary, #2563eb);
  padding: 4px 5px;
}

.dsz-policy-tags-field .select2-container--default .select2-search--inline .select2-search__field {
  height: 30px !important;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 30px;
  text-align: left;
  font-family: inherit;
}

.dsz-policy-tags-field .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 30px;
}

.dsz-policy-tags-field .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty {
  display: none !important;
}

.dsz-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.dsz-screenshot-card {
  overflow: hidden;
}

.dsz-screenshot-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #111827;
  cursor: zoom-in;
}

.dsz-screenshot-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #111827;
}

.dsz-screenshot-stage {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  padding: 20px;
}

.dsz-screenshot-full {
  max-width: 100%;
  max-height: calc(100vh - 113px);
  object-fit: contain;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.dsz-screenshot-details {
  max-height: calc(100vh - 73px);
  overflow-y: auto;
  background: var(--white, #fff);
}

.dsz-meta-list {
  display: grid;
  grid-template-columns: minmax(96px, 34%) 1fr;
  gap: 8px 12px;
  margin: 0;
}

.dsz-meta-list dt {
  color: var(--secondary-color, #6b7280);
  font-weight: 600;
  font-size: 12px;
}

.dsz-meta-list dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.dsz-usage-mix-cell {
  min-width: 210px;
}

.dsz-usage-mix {
  display: flex;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 6px;
  background: #e5e7eb;
}

.dsz-usage-segment {
  display: block;
  min-width: 0;
  height: 100%;
}

.dsz-usage-segment.productive {
  background: #10b981;
}

.dsz-usage-segment.neutral {
  background: #94a3b8;
}

.dsz-usage-segment.off-task {
  background: #ef4444;
}

.dsz-top-app-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.dsz-top-app-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dsz-app-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #e5e7eb;
}

.dsz-app-bar span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #2563eb;
}

.dsz-package-cell {
  max-width: 240px;
}

.dsz-window-cell {
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
}

.min-w-0 {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .dsz-screenshot-stage {
    min-height: 58vh;
  }

  .dsz-screenshot-details {
    max-height: none;
  }
}

.dsz-shell-search .form-control {
  width: min(36vw, 440px);
  min-width: 280px;
  padding-right: 42px;
}

.navbar-header .dsz-shell-search .header-search-icon {
  right: 10px;
  width: 20px;
  height: 20px;
  line-height: 1;
}

.navbar-header .topbar-menu .header-item .topbar-link.dsz-user-trigger {
  width: auto;
  min-width: 92px;
  max-width: 190px;
  gap: 7px;
  padding: 5px 10px 5px 12px;
}

.dsz-user-trigger-name {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-header .topbar-menu .header-item .topbar-link .dsz-user-trigger-chevron {
  flex: 0 0 auto;
  font-size: 14px;
}

@media (max-width: 575.98px) {
  .navbar-header .topbar-menu .header-item .topbar-link.dsz-user-trigger {
    min-width: 72px;
    max-width: 112px;
  }
}

.dsz-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: linear-gradient(
    135deg,
    var(--white, #fff) 0%,
    var(--primary-transparent, #eff6ff) 54%,
    var(--dsz-brand-accent-soft, #eef8eb) 100%
  );
}

.dsz-home-hero h2 {
  margin: 6px 0;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.dsz-home-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--secondary-color, #6b7280);
}

.dsz-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--dsz-brand-accent, #4f46e5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dsz-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dsz-desktop-periods {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dsz-desktop-periods input[type="date"] {
  min-width: 148px;
}

.dsz-performance-stack {
  display: grid;
  gap: 16px;
}

.dsz-performance-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.dsz-performance-progress {
  height: 9px;
  background: var(--light-900, #f1f3f5);
}

.dsz-desktop-shot,
.dsz-desktop-shot-empty {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
  background: var(--light-900, #f1f3f5);
}

.dsz-desktop-shot-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--secondary-color, #6b7280);
  font-size: 12px;
}

.dsz-desktop-shot-empty i {
  font-size: 24px;
}

.dsz-app-activity-list {
  display: grid;
}

.dsz-app-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.dsz-app-activity-row:last-child {
  border-bottom: 0;
}

@media (max-width: 767.98px) {
  .dsz-desktop-periods {
    width: 100%;
    align-items: stretch;
  }

  .dsz-desktop-periods form {
    flex-wrap: wrap;
  }

  .dsz-desktop-periods input[type="date"] {
    flex: 1 1 135px;
    min-width: 0;
  }
}

.dsz-stat-link {
  min-height: 126px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.dsz-stat-link:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 38%, transparent);
  color: inherit;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.dsz-stat-brand-accent {
  border-color: var(--dsz-brand-accent-border, rgba(59, 155, 32, 0.28));
  background: linear-gradient(145deg, var(--white, #fff), var(--dsz-brand-accent-soft, #eef8eb));
}

.dsz-stat-brand-accent .h3,
.dsz-stat-brand-accent .btn-light {
  color: var(--dsz-brand-accent, #4f46e5);
}

.dsz-stat-brand-accent .btn-light {
  border-color: var(--dsz-brand-accent-border, rgba(59, 155, 32, 0.28));
  background: var(--dsz-brand-accent-soft, #eef8eb);
}

.dsz-stat-brand-accent:hover {
  border-color: var(--dsz-brand-accent, #4f46e5);
}

.dsz-queue-list,
.dsz-search-results {
  display: grid;
  gap: 10px;
}

.dsz-queue-item,
.dsz-search-result {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  background: var(--white, #fff);
}

.dsz-queue-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.dsz-search-result {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dsz-queue-item:hover,
.dsz-search-result:hover,
.dsz-action-link:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 38%, transparent);
  color: inherit;
}

.dsz-queue-main,
.dsz-search-result span:first-child {
  display: grid;
  min-width: 0;
}

.dsz-queue-main > .fw-semibold,
.dsz-action-link > strong {
  color: var(--heading-color, #111827);
}

.dsz-search-result small,
.dsz-action-link small {
  overflow: hidden;
  color: var(--secondary-color, #6b7280);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsz-queue-value {
  max-width: 180px;
  color: var(--heading-color, #111827);
  font-weight: 700;
  text-align: right;
}

.dsz-queue-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 5px;
  background: var(--dsz-surface-subtle, #f8fafc);
  color: #475569;
}

.dsz-queue-success {
  background: #ecfdf5;
  color: #059669;
}

.dsz-queue-warning {
  background: #fff7ed;
  color: #d97706;
}

.dsz-queue-danger {
  background: #fef2f2;
  color: #dc2626;
}

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

.dsz-action-link {
  display: grid;
  gap: 5px;
  min-height: 106px;
  padding: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  background: var(--white, #fff);
}

.dsz-action-link span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 5px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

:root[data-bs-theme="dark"] .dsz-queue-item,
:root[data-bs-theme="dark"] .dsz-search-result,
:root[data-bs-theme="dark"] .dsz-action-link {
  border-color: color-mix(in srgb, var(--border-color, #161641) 68%, #64748b);
  background: var(--light, #0c0c20);
}

:root[data-bs-theme="dark"] .dsz-queue-item:hover,
:root[data-bs-theme="dark"] .dsz-search-result:hover,
:root[data-bs-theme="dark"] .dsz-action-link:hover {
  border-color: var(--dsz-primary-dark-solid);
  background: color-mix(in srgb, var(--light, #0c0c20) 88%, var(--dsz-primary-dark-solid));
}

:root[data-bs-theme="dark"] .dsz-action-link span {
  background: var(--dsz-primary-dark-surface);
  color: var(--dsz-primary-dark-foreground);
}

:root[data-bs-theme="dark"] .dsz-queue-icon:not(.dsz-queue-success):not(.dsz-queue-warning):not(.dsz-queue-danger) {
  background: var(--dsz-primary-dark-surface);
  color: var(--dsz-primary-dark-foreground);
}

:root[data-bs-theme="dark"] .dsz-queue-success {
  background: var(--success-transparent, #051b11);
  color: #6ee7b7;
}

:root[data-bs-theme="dark"] .dsz-queue-warning {
  background: var(--warning-transparent, #332701);
  color: #fbbf24;
}

:root[data-bs-theme="dark"] .dsz-queue-danger {
  background: var(--danger-transparent, #2c0b0e);
  color: #fca5a5;
}

.dsz-workflow-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  background: linear-gradient(135deg, var(--dsz-surface-subtle), var(--primary-transparent));
}

.dsz-workflow-hero h2 {
  margin: 6px 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.dsz-workflow-hero p {
  margin: 0;
  color: var(--secondary-color, #6b7280);
}

.dsz-period-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dsz-workflow-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 120px;
  color: inherit;
  text-decoration: none;
}

.dsz-workflow-summary small,
.dsz-workflow-summary em {
  display: block;
  overflow: hidden;
  color: var(--secondary-color, #6b7280);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsz-workflow-summary strong {
  display: block;
  margin: 3px 0;
  color: var(--heading-color, #111827);
  font-size: 24px;
  line-height: 1.1;
}

.dsz-next-action {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 30%, transparent);
}

.dsz-section-icon,
.dsz-workflow-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 5px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

.dsz-section-icon {
  width: 38px;
  height: 38px;
}

.dsz-workflow-success {
  background: var(--success-transparent, #ecfdf5);
  color: var(--success, #059669);
}

.dsz-workflow-warning {
  background: var(--warning-transparent, #fff7ed);
  color: var(--warning, #d97706);
}

.dsz-workflow-danger {
  background: var(--danger-transparent, #fef2f2);
  color: var(--danger, #dc2626);
}

.dsz-workflow-neutral {
  background: var(--primary-transparent, #eff6ff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

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

.dsz-workflow-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  background: var(--dsz-surface, #fff);
}

.dsz-workflow-item:hover,
.dsz-workflow-summary:hover {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 38%, transparent);
  color: inherit;
}

.dsz-workflow-item strong,
.dsz-workflow-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsz-workflow-item strong {
  color: var(--dsz-heading, #111827);
}

.dsz-workflow-item small {
  color: var(--secondary-color, #6b7280);
}

.dsz-workflow-value {
  max-width: 120px;
  color: var(--heading-color, #111827);
  font-weight: 700;
  text-align: right;
}

.dsz-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dsz-tab-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  background: var(--white, #fff);
}

.dsz-tab-strip a.active {
  border-color: var(--primary, #2563eb);
  background: var(--primary-transparent, #eff6ff);
  color: var(--primary, #2563eb);
  font-weight: 700;
}

.dsz-tab-strip span {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--light, #f1f5f9);
  color: var(--body-color, #475569);
  font-size: 12px;
}

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

.dsz-impact-list div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 5px;
}

.dsz-impact-list span {
  color: var(--secondary-color, #6b7280);
  font-size: 12px;
}

.dsz-attendance-calendar-wrap {
  max-height: 72vh;
}

.dsz-attendance-calendar {
  min-width: 1120px;
}

.dsz-attendance-calendar th,
.dsz-attendance-calendar td {
  min-width: 38px;
  padding: 6px;
  text-align: center;
}

.dsz-attendance-calendar th small {
  display: block;
  color: var(--secondary-color, #6b7280);
  font-size: 11px;
  font-weight: 400;
}

.dsz-calendar-employee {
  left: 0;
  min-width: 180px !important;
  position: sticky;
  z-index: 2;
  text-align: left !important;
  background: var(--dsz-surface, #fff);
}

.dsz-day-cell {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 5px;
  color: #475569;
  text-decoration: none;
  background: var(--dsz-surface-subtle, #f8fafc);
  font-size: 12px;
  font-weight: 700;
}

.dsz-day-cell:hover {
  color: inherit;
  outline: 2px solid rgba(37, 99, 235, 0.22);
}

.dsz-day-cell.present,
.dsz-day-cell.regularized {
  background: var(--success-transparent, #ecfdf5);
  color: var(--success, #047857);
}

.dsz-day-cell.late,
.dsz-day-cell.pending_approval,
.dsz-day-cell.pending {
  background: var(--warning-transparent, #fff7ed);
  color: var(--warning, #b45309);
}

.dsz-day-cell.leave {
  background: var(--primary-transparent, #eff6ff);
  color: var(--menu-item-active-color, var(--primary, #2563eb));
}

.dsz-day-cell.outdoor_duty {
  background: var(--teal-transparent, #f0fdfa);
  color: var(--teal, #0f766e);
}

.dsz-day-cell.absent {
  background: var(--danger-transparent, #fef2f2);
  color: var(--danger, #b91c1c);
}

.dsz-day-cell.upcoming {
  background: var(--dsz-surface-subtle, #f8fafc);
  color: #cbd5e1;
}

.dsz-attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--secondary-color, #6b7280);
  font-size: 12px;
}

.dsz-attendance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dsz-attendance-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.dsz-attendance-legend .present {
  background: #047857;
}

.dsz-attendance-legend .late,
.dsz-attendance-legend .pending {
  background: #d97706;
}

.dsz-attendance-legend .leave {
  background: #2563eb;
}

.dsz-attendance-legend .outdoor {
  background: #0f766e;
}

.dsz-attendance-legend .absent {
  background: #dc2626;
}

@media (max-width: 991.98px) {
  .dsz-home-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dsz-home-hero-actions {
    justify-content: flex-start;
  }

  .dsz-workflow-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dsz-period-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .dsz-action-grid {
    grid-template-columns: 1fr;
  }

  .dsz-queue-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .dsz-queue-value {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .dsz-next-action .d-flex {
    align-items: stretch !important;
    flex-direction: column;
  }

  .dsz-workflow-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .dsz-workflow-value {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }
}

/* Settings workspace */
.dsz-settings-intro {
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--primary, #2563eb) 15%, transparent), transparent 34%),
    linear-gradient(135deg, var(--dsz-surface, #fff), var(--dsz-surface-subtle, #f8fbff));
}

.dsz-settings-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: var(--menu-item-active-color, var(--primary, #2563eb));
  background: var(--primary-transparent, #eff6ff);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dsz-settings-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.dsz-settings-nav {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: var(--white, #fff);
  box-shadow: var(--box-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.dsz-settings-nav-label {
  padding: 5px 9px 8px;
  color: var(--secondary-color, #64748b);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dsz-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--body-color, #475569);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.dsz-settings-nav-item i {
  flex: 0 0 auto;
  font-size: 18px;
}

.dsz-settings-nav-item:hover {
  color: var(--primary, #2563eb);
  background: var(--primary-transparent, #eff6ff);
  transform: translateX(2px);
}

.dsz-settings-nav-item.active {
  color: #fff;
  background: var(--primary, #2563eb);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}

.dsz-settings-nav-item:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.dsz-settings-content {
  min-width: 0;
}

.dsz-settings-layout.is-settings-enhanced .dsz-settings-panel:not(.is-active) {
  display: none;
}

.dsz-settings-panel.is-active {
  animation: dsz-settings-panel-in 180ms ease-out;
}

.dsz-settings-panel .dsz-card {
  overflow: hidden;
}

.dsz-settings-panel form.border.rounded,
.dsz-settings-panel > .row > div > .dsz-card > .border.rounded {
  border-color: var(--border-color, #e5e7eb) !important;
  background: var(--light-100, #fafbfc);
}

.dsz-role-card {
  overflow: hidden;
}

.dsz-role-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

.dsz-role-summary::-webkit-details-marker {
  display: none;
}

.dsz-role-summary:hover,
.dsz-role-summary:focus-visible {
  background: var(--primary-transparent, #eff6ff);
  outline: 0;
}

.dsz-role-summary-main,
.dsz-role-summary-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.dsz-role-summary-main strong,
.dsz-role-summary-main small {
  display: block;
}

.dsz-role-summary-main small,
.dsz-role-permission-count {
  color: var(--body-color, #64748b);
  font-size: 12px;
}

.dsz-role-summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  background: var(--primary-transparent, #eff6ff);
  color: var(--primary, #2563eb);
  font-size: 17px;
}

.dsz-role-summary-chevron {
  color: var(--body-color, #64748b);
  transition: transform 160ms ease;
}

.dsz-role-details[open] .dsz-role-summary-chevron {
  transform: rotate(180deg);
}

.dsz-role-details.is-closing .dsz-role-summary-chevron {
  transform: rotate(0deg);
}

.dsz-role-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

@media (max-width: 767.98px) {
  .dsz-role-summary {
    align-items: flex-start;
  }

  .dsz-role-summary-meta {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .dsz-role-permission-count {
    display: none;
  }
}

@keyframes dsz-settings-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .dsz-settings-layout {
    grid-template-columns: 1fr;
  }

  .dsz-settings-nav {
    position: sticky;
    top: 64px;
    z-index: 10;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  .dsz-settings-nav::-webkit-scrollbar {
    display: none;
  }

  .dsz-settings-nav-label {
    display: none;
  }

  .dsz-settings-nav-item {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding-inline: 11px;
  }

  .dsz-settings-nav-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsz-settings-nav-item,
  .dsz-settings-panel.is-active {
    animation: none;
    transition: none;
  }
}

.dsz-mini-stacked { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: var(--bs-light); }
.dsz-rtr-card { overflow: hidden; cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.dsz-rtr-card:hover, .dsz-rtr-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.14); outline: none; }
.dsz-rtr-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0f172a; }
.dsz-rtr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.dsz-rtr-card:hover .dsz-rtr-media img { transform: scale(1.035); }
.dsz-rtr-overlay { position: absolute; inset: auto 0 0; display: grid; color: #fff; padding: 2.5rem .85rem .75rem; background: linear-gradient(transparent, rgba(2,6,23,.9)); opacity: 0; transition: opacity .2s ease; }
.dsz-rtr-card:hover .dsz-rtr-overlay, .dsz-rtr-card:focus-visible .dsz-rtr-overlay { opacity: 1; }
.dsz-rtr-overlay span { font-size: .75rem; opacity: .8; }
.dsz-rtr-placeholder { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; align-content: center; gap: .5rem; color: #cbd5e1; background: linear-gradient(135deg,#0f172a,#334155); text-align: center; padding: 1rem; }
.dsz-rtr-placeholder i { font-size: 2rem; }
.dsz-rtr-controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dsz-rtr-controls .btn i {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1;
}
.dsz-rtr-table-only { display: none; }
.dsz-rtr-results[data-view="table"] { display: block; }
.dsz-rtr-results[data-view="table"] .dsz-rtr-item { width: 100%; margin-bottom: .6rem; }
.dsz-rtr-results[data-view="table"] .dsz-rtr-card { display: grid; grid-template-columns: 210px 1fr; }
.dsz-rtr-results[data-view="table"] .dsz-rtr-media { aspect-ratio: 16 / 9; }
.dsz-rtr-results[data-view="table"] .dsz-rtr-table-only { display: block; }
body.dsz-rtr-open { overflow: hidden; }
.dsz-rtr-viewer { position: fixed; inset: 0; z-index: 1090; }
.dsz-rtr-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.86); opacity: 0; transition: opacity .22s ease; }
.dsz-rtr-dialog { --rtr-x: 0px; --rtr-y: 0px; --rtr-scale: .3; position: absolute; inset: 5vh 4vw; display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); overflow: hidden; border-radius: 16px; background: var(--bs-body-bg); box-shadow: 0 30px 90px rgba(0,0,0,.5); transform: translate(var(--rtr-x),var(--rtr-y)) scale(var(--rtr-scale)); opacity: .35; transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.dsz-rtr-viewer.is-open .dsz-rtr-backdrop { opacity: 1; }
.dsz-rtr-viewer.is-open .dsz-rtr-dialog { transform: translate(0,0) scale(1); opacity: 1; }
.dsz-rtr-view-media { display: grid; place-items: center; min-width: 0; background: #020617; }
.dsz-rtr-view-media img { width: 100%; height: 100%; object-fit: contain; }
.dsz-rtr-view-details { padding: 1.4rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.25rem; }
.dsz-rtr-details { display: grid; gap: .75rem; margin: 0; }
.dsz-rtr-details div { border-bottom: 1px solid var(--bs-border-color); padding-bottom: .55rem; }
.dsz-rtr-details dt { color: var(--bs-secondary-color); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.dsz-rtr-details dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.dsz-rtr-close, .dsz-rtr-arrow { position: absolute; z-index: 2; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,23,42,.82); color: #fff; }
.dsz-rtr-close { top: 12px; right: 12px; }
.dsz-rtr-arrow { top: 50%; transform: translateY(-50%); }
.dsz-rtr-arrow.is-prev { left: 12px; }
.dsz-rtr-arrow.is-next { right: 372px; }
@media (max-width: 991.98px) { .dsz-rtr-dialog { inset: 2vh 2vw; grid-template-columns: 1fr; grid-template-rows: minmax(40vh,1fr) minmax(220px,40vh); } .dsz-rtr-arrow.is-next { right: 12px; } }
@media (max-width: 575.98px) { .dsz-rtr-results[data-view="table"] .dsz-rtr-card { grid-template-columns: 120px 1fr; } .dsz-rtr-dialog { inset: 0; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .dsz-rtr-card, .dsz-rtr-media img, .dsz-rtr-backdrop, .dsz-rtr-dialog { transition: none; } }

.dsz-clickable-row { cursor: pointer; }
.dsz-clickable-row:hover { background: var(--dsz-primary-tint-light); }
.dsz-schedule-calendar-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
.dsz-schedule-calendar-main { min-width: 0; }
.dsz-schedule-editor { position: sticky; top: 88px; min-width: 0; }
.dsz-holiday-weekdays, .dsz-holiday-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.dsz-holiday-weekdays { color: var(--bs-secondary-color); font-size: .72rem; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.dsz-holiday-weekdays span { padding: .5rem; }
.dsz-holiday-grid { border-top: 1px solid var(--bs-border-color); border-left: 1px solid var(--bs-border-color); }
.dsz-holiday-grid.is-fullcalendar { display: block; border: 0; }
.dsz-holiday-grid.is-fullcalendar .fc { --fc-page-bg-color: var(--dsz-surface); --fc-neutral-bg-color: var(--dsz-surface-subtle); --fc-neutral-text-color: var(--bs-secondary-color); --fc-border-color: var(--bs-border-color); --fc-button-bg-color: var(--primary); --fc-button-border-color: var(--primary); --fc-event-bg-color: var(--dsz-primary-tint-light); --fc-event-border-color: var(--primary); --fc-event-text-color: var(--bs-body-color); --fc-today-bg-color: color-mix(in srgb, var(--primary) 12%, transparent); --fc-list-event-hover-bg-color: var(--dsz-surface-muted); }
.dsz-holiday-grid.is-fullcalendar .fc-daygrid-day { transition: background .18s ease, transform .18s ease; }
.dsz-holiday-grid.is-fullcalendar .fc-daygrid-day:hover { background: var(--dsz-primary-tint-light); }
.dsz-holiday-grid.is-fullcalendar .fc-event { border-left-width: 3px; cursor: pointer; }
.dsz-holiday-day { min-height: 118px; padding: .4rem; border-right: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); transition: background .18s ease, transform .18s ease; }
.dsz-holiday-day:hover { position: relative; z-index: 1; background: var(--dsz-primary-tint-light); box-shadow: 0 8px 18px rgba(15,23,42,.08); transform: translateY(-1px); }
.dsz-holiday-day.is-outside { opacity: .45; }
.dsz-holiday-day > button { border: 0; border-radius: 50%; width: 28px; height: 28px; background: transparent; color: inherit; font-size: .78rem; }
.dsz-holiday-day > button:hover, .dsz-holiday-day > button:focus-visible { color: #fff; background: var(--primary); }
.dsz-calendar-event { display: grid; gap: 1px; margin-top: .25rem; padding: .35rem .45rem; border-left: 3px solid var(--primary); border-radius: 4px; background: var(--dsz-primary-tint-light); color: inherit; font-size: .7rem; overflow: hidden; }
.dsz-calendar-event strong, .dsz-calendar-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsz-calendar-event small { color: var(--bs-secondary-color); }
.dsz-calendar-loading { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; color: var(--bs-secondary-color); }
@media (max-width: 767.98px) { .dsz-holiday-day { min-height: 74px; padding: .2rem; } .dsz-calendar-event small { display: none; } .dsz-calendar-event { font-size: .6rem; padding: .25rem; } }
@media (max-width: 1199.98px) { .dsz-schedule-calendar-layout { grid-template-columns: 1fr; } .dsz-schedule-editor { position: static; } }
@media (prefers-reduced-motion: reduce) { .dsz-holiday-day { transition: none; } }

.dsz-sticky-editor { position: sticky; top: 88px; }
.dsz-classification-accordion { border: 1px solid var(--bs-border-color); border-radius: .65rem; overflow: hidden; }
.dsz-classification-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--bs-border-color); }
.dsz-classification-accordion .accordion-item:last-child { border-bottom: 0; }
.dsz-classification-accordion .accordion-button { gap: .75rem; box-shadow: none; }
.dsz-classification-accordion .accordion-button:not(.collapsed) { color: var(--primary); background: var(--dsz-primary-tint-light); }
.dsz-classification-categories { display: grid; gap: .8rem; background: var(--bs-body-bg); }
.dsz-classification-category { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: .55rem; }
.dsz-classification-category-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.dsz-keyword-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: .8rem; }
.dsz-keyword-pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: .3rem .35rem .3rem .7rem; border: 1px solid var(--bs-border-color); border-radius: 999px; background: var(--bs-body-bg); color: var(--bs-body-color); font-size: .82rem; font-weight: 600; }
.dsz-keyword-pill.is-inactive { opacity: .55; }
.dsz-keyword-pill form { display: inline-flex; margin: 0; }
.dsz-keyword-pill button { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--bs-secondary-color); }
.dsz-keyword-pill button:hover, .dsz-keyword-pill button:focus-visible { background: rgba(239,68,68,.12); color: #dc2626; }
.dsz-category-badge { color: var(--bs-body-color); background: var(--bs-tertiary-bg); }
.dsz-category-productive { color: #087443; background: rgba(16,185,129,.14); }
.dsz-category-unproductive { color: #a64b00; background: rgba(245,158,11,.16); }
.dsz-category-critical { color: #b42318; background: rgba(239,68,68,.14); }
.dsz-category-neutral { color: #475569; background: rgba(100,116,139,.14); }
.dsz-category-idle { color: #5b21b6; background: rgba(139,92,246,.14); }
:root[data-bs-theme="dark"] .dsz-category-productive { color: #6ee7b7; }
:root[data-bs-theme="dark"] .dsz-category-unproductive { color: #fbbf24; }
:root[data-bs-theme="dark"] .dsz-category-critical { color: #fca5a5; }
:root[data-bs-theme="dark"] .dsz-category-neutral { color: #cbd5e1; }
:root[data-bs-theme="dark"] .dsz-category-idle { color: #c4b5fd; }
@media (max-width: 1199.98px) { .dsz-sticky-editor { position: static; } }

.dsz-workspace-switch {
  display: inline-grid;
  grid-template-columns: 48px 36px 48px;
  align-items: center;
  justify-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 999px;
  background: var(--white, #fff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  white-space: nowrap;
}

.dsz-workspace-switch .form-switch {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-left: 0;
}

.dsz-workspace-switch .form-check-input {
  width: 2.25rem;
  height: 1.2rem;
  margin: 0;
  cursor: pointer;
}

.dsz-workspace-label {
  display: block;
  width: 100%;
  color: var(--body-color, #64748b);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: color 150ms ease;
}

.dsz-workspace-label.is-active {
  color: var(--primary, #2563eb);
}

.dsz-color-mode-menu {
  min-width: 164px;
}

.dsz-color-mode-menu .dropdown-item {
  min-height: 38px;
  border-radius: 5px;
}

.dsz-color-mode-menu .dropdown-item:not(.active) .dsz-color-mode-check {
  visibility: hidden;
}

[data-workspace-menu][hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  .dsz-workspace-switch {
    gap: 5px;
    padding-inline: 7px;
  }

  .dsz-workspace-label {
    font-size: 10px;
  }
}
/* Desktop workspace: original DeskStream flow adapted to the current shell. */
#sidebar-menu {
  min-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
}

#sidebar-menu > ul.dsz-sidebar-common-footer {
  margin-top: auto;
  padding: .5rem 0 .25rem;
  border-top: 1px solid var(--bs-border-color);
}

.dsz-sidebar-common-footer[hidden] { display: none !important; }

.sidebar .sidebar-menu .dsz-sidebar-common-footer > .dsz-sidebar-common-group {
  margin: 0;
}

.sidebar .sidebar-menu .dsz-sidebar-common-footer .dsz-sidebar-group-menu {
  margin-top: 0;
  padding-bottom: 0;
}

.dsz-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.dsz-table-actions form {
  display: inline-flex;
  margin: 0;
}

.dsz-table-actions .btn-sm {
  min-height: 32px;
  padding: 5px 10px;
  line-height: 1.15;
}

.dsz-preference-grid > [class*="col-"] {
  display: flex;
}

.dsz-preference-option {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: .55rem .7rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  cursor: pointer;
}

.dsz-preference-option .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0;
}

.dsz-preference-option:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--bs-border-color));
  background: var(--dsz-primary-tint-light);
}

@keyframes dszDesktopShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.dsz-shimmer-card span,
.dsz-shimmer-card strong,
.dsz-shimmer-card small,
.dsz-leaderboard-shimmer span,
.dsz-score-shimmer span,
.dsz-screenshot-shimmer .dsz-card span,
.dsz-screenshot-shimmer .dsz-card small,
.dsz-shimmer-circle,
.dsz-shimmer-lines {
  display: block;
  border-radius: 8px;
  background: linear-gradient(110deg, var(--bs-light) 8%, var(--dsz-primary-tint-light) 18%, var(--bs-light) 33%);
  background-size: 220% 100%;
  animation: dszDesktopShimmer 1.5s ease-in-out infinite;
}
.dsz-shimmer-card span { width: 58%; height: 12px; }
.dsz-shimmer-card strong { width: 38%; height: 28px; margin: 12px 0; }
.dsz-shimmer-card small { width: 78%; height: 10px; }
.dsz-chart-shimmer { display: flex; align-items: center; justify-content: center; gap: 2rem; min-height: 260px; }
.dsz-shimmer-circle { width: 190px; height: 190px; border-radius: 50%; }
.dsz-shimmer-lines { width: min(260px, 42%); height: 150px; }
.dsz-leaderboard-shimmer { display: grid; gap: .75rem; }
.dsz-leaderboard-shimmer span { height: 62px; }
.dsz-score-shimmer { min-height: 360px; display: flex; align-items: flex-end; justify-content: space-around; gap: 1rem; padding: 2rem 3rem 1rem; }
.dsz-score-shimmer span { width: min(54px, 12%); height: 58%; border-radius: .4rem .4rem 0 0; }
.dsz-score-shimmer span:nth-child(2) { height: 82%; }
.dsz-score-shimmer span:nth-child(3) { height: 68%; }
.dsz-score-shimmer span:nth-child(4) { height: 91%; }
.dsz-score-shimmer span:nth-child(5) { height: 74%; }
.dsz-screenshot-shimmer .dsz-card span { height: 145px; }
.dsz-screenshot-shimmer .dsz-card small { height: 30px; margin-top: 12px; }

.dsz-availability-pill { padding: .5rem .75rem; border-radius: 999px; background: var(--bs-light); font-size: .78rem; }
.dsz-availability-pill.is-present { color: #15803d; background: rgba(34,197,94,.12); }
.dsz-availability-pill.is-absent { color: #b91c1c; background: rgba(239,68,68,.12); }
.dsz-availability-pill.is-leave { color: #a16207; background: rgba(245,158,11,.14); }
.dsz-availability-pill.is-holiday { color: var(--primary); background: var(--dsz-primary-tint-light); }

:root[data-bs-theme="dark"] .dsz-availability-pill.is-present { color: #86efac; }
:root[data-bs-theme="dark"] .dsz-availability-pill.is-absent { color: #fca5a5; }
:root[data-bs-theme="dark"] .dsz-availability-pill.is-leave { color: #fcd34d; }
:root[data-bs-theme="dark"] .dsz-availability-pill.is-holiday { color: var(--dsz-primary-dark-foreground); }

.dsz-performance-visual { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; align-items: center; gap: 2rem; min-height: 260px; }
.dsz-chart-canvas { width: 220px; height: 220px; position: relative; margin: auto; }
.dsz-chart-canvas canvas { width: 100% !important; height: 100% !important; }
.dsz-donut { width: 220px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: auto; position: relative; }
.dsz-donut::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--bs-body-bg); box-shadow: 0 0 0 1px var(--bs-border-color); }
.dsz-donut > div { position: relative; z-index: 1; text-align: center; display: grid; }
.dsz-donut strong { font-size: 1.7rem; line-height: 1; }
.dsz-donut span { color: var(--bs-secondary-color); font-size: .75rem; }
.dsz-performance-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.dsz-performance-legend-row { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; gap: .65rem; min-width: 0; color: inherit; padding: .45rem; border-radius: 8px; }
.dsz-performance-legend-row:hover { background: var(--dsz-primary-tint-light); }
.dsz-performance-legend-row small { display: block; color: var(--bs-secondary-color); }
.dsz-performance-dot { width: 9px; height: 9px; border-radius: 50%; }

.dsz-desktop-podium { display: grid; gap: .65rem; }
.dsz-podium-person { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: .75rem; align-items: center; text-align: left; border: 1px solid var(--bs-border-color); background: transparent; color: inherit; border-radius: 12px; padding: .75rem; transition: transform .18s ease, border-color .18s ease; }
.dsz-podium-person:hover { transform: translateY(-2px); border-color: var(--primary); }
.dsz-podium-person span:nth-child(2) { display: grid; min-width: 0; }
.dsz-podium-person small { color: var(--bs-secondary-color); }
.dsz-podium-rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--dsz-primary-tint-light); color: var(--primary); font-weight: 800; }

.dsz-score-breakdown { display: grid; gap: .5rem; }
.dsz-score-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.dsz-score-header > :first-child { flex: 1 1 280px; min-width: 240px; }
.dsz-score-controls { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.dsz-score-controls .form-select { width: auto; min-width: 0; }
.dsz-score-controls .is-sort { width: 155px; }
.dsz-score-controls .is-filter { width: 178px; }
.dsz-score-controls .is-limit { width: 92px; }
.dsz-score-pin-control { display: flex; align-items: stretch; gap: .4rem; }
.dsz-score-pin-control .form-select { width: 158px; }
.dsz-score-pin-control .btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; white-space: nowrap; }
.dsz-score-row { display: grid; grid-template-columns: 30px minmax(140px, 220px) 1fr 70px; gap: .75rem; align-items: center; min-height: 44px; }
.dsz-score-pin, .dsz-score-person { border: 0; background: transparent; color: inherit; }
.dsz-score-pin { color: var(--bs-secondary-color); }
.dsz-score-pin.is-pinned { color: var(--primary); }
.dsz-score-person { display: grid; text-align: left; min-width: 0; }
.dsz-score-person small { color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; }
.dsz-score-bar { height: 18px; display: flex; overflow: hidden; border-radius: 999px; background: var(--bs-light); }
.dsz-score-bar span { min-width: 0; }
.dsz-score-value { text-align: right; }
.dsz-score-chart-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding: .25rem 0 .5rem; }
.dsz-score-chart-frame { height: 390px; }
.dsz-score-pins { display: flex; flex-wrap: wrap; gap: .45rem; }
.dsz-score-pin-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border: 1px solid var(--bs-border-color); border-radius: 999px; color: var(--bs-body-color); background: var(--dsz-surface-subtle); font-size: .75rem; font-weight: 700; }
.dsz-score-pin-chip > i { color: var(--primary); }
.dsz-score-pin-chip button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; }
.dsz-score-pin-chip button:hover, .dsz-score-pin-chip button:focus-visible { color: #fff; background: var(--primary); outline: none; }

@media (max-width: 767.98px) {
  .dsz-performance-visual { grid-template-columns: 1fr; }
  .dsz-score-header { display: grid; }
  .dsz-score-header > :first-child { min-width: 0; }
  .dsz-score-controls { justify-content: flex-start; }
  .dsz-score-row { grid-template-columns: 28px 1fr 60px; }
  .dsz-score-bar { grid-column: 2 / -1; }
  .dsz-score-chart-frame { height: 350px; }
  .dsz-score-shimmer { min-height: 330px; padding-inline: 1rem; }
}

@media (max-width: 479.98px) {
  .dsz-performance-legend { grid-template-columns: 1fr; }
  .dsz-score-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .dsz-score-controls .form-select { width: 100%; }
  .dsz-score-pin-control { grid-column: 1 / -1; }
  .dsz-score-pin-control .form-select { flex: 1 1 auto; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dsz-shimmer-card *, .dsz-leaderboard-shimmer span, .dsz-score-shimmer span,
  .dsz-screenshot-shimmer .dsz-card *, .dsz-shimmer-circle, .dsz-shimmer-lines { animation: none !important; }
  .dsz-podium-person { transition: none; }
}
