/* TraxTMS enterprise refresh */

:root {
  --app-bg: #edf3fb;
  --app-bg-deep: #dfe9f7;
  --app-surface: rgba(255, 255, 255, 0.94);
  --app-surface-strong: #ffffff;
  --app-surface-soft: #f7faff;
  --app-border: rgba(11, 25, 47, 0.08);
  --app-border-strong: rgba(11, 25, 47, 0.14);
  --app-text: #0f1e34;
  --app-text-soft: #53647d;
  --app-text-muted: #7f8da3;
  --app-sidebar: #0c1730;
  --app-sidebar-strong: #081123;
  --app-sidebar-text: rgba(236, 243, 255, 0.72);
  --app-sidebar-text-strong: #f5f9ff;
  --app-primary: #155eef;
  --app-primary-strong: #0d47c8;
  --app-primary-soft: rgba(21, 94, 239, 0.1);
  --app-secondary: #14b8a6;
  --app-warning: #f59e0b;
  --app-danger: #ef4444;
  --app-success: #16a34a;
  --app-info: #0ea5e9;
  --app-radius-sm: 10px;
  --app-radius-md: 14px;
  --app-radius-lg: 20px;
  --app-shadow-sm: 0 4px 12px rgba(15, 30, 52, 0.04);
  --app-shadow-md: 0 8px 24px rgba(15, 30, 52, 0.08);
  --app-shadow-lg: 0 16px 48px rgba(8, 17, 35, 0.12);
  --app-grid: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  --sidebar-width: 260px;
  --app-gap: 0.75rem;
  --app-gap-sm: 0.5rem;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--app-text);
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.06), transparent 22%),
    linear-gradient(180deg, var(--app-bg) 0%, #f6f8fc 100%);
}

body.app-shell-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(13, 71, 200, 0.07), transparent 14%),
    radial-gradient(circle at 86% 10%, rgba(20, 184, 166, 0.08), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.07), transparent 18%);
  pointer-events: none;
  z-index: -2;
}

body.app-shell-body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(15, 30, 52, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 30, 52, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
  pointer-events: none;
  z-index: -1;
}

body.public-shell-body {
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, 0.18), transparent 20%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.16), transparent 22%),
    linear-gradient(135deg, #09101e 0%, #10213f 38%, #12345f 72%, #0d274c 100%);
  color: #eef5ff;
}

body.public-shell-body::before,
body.public-shell-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.public-shell-body::before {
  background-image: var(--app-grid);
  background-size: 56px 56px;
  opacity: 0.55;
}

body.public-shell-body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.16), transparent 18%),
    radial-gradient(circle at 80% 16%, rgba(21, 94, 239, 0.18), transparent 16%),
    radial-gradient(circle at 50% 80%, rgba(20, 184, 166, 0.18), transparent 18%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar .app-page-heading__title,
.orders-hero__title,
.kpi-value {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
}

a {
  color: var(--app-primary);
}

a:hover {
  color: var(--app-primary-strong);
}

#wrapper {
  min-height: 100vh;
}

#sidebar-wrapper {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  min-height: 100vh;
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(16, 33, 63, 0.97) 0%, rgba(10, 21, 40, 0.98) 100%),
    radial-gradient(circle at top right, rgba(21, 94, 239, 0.25), transparent 34%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--app-shadow-lg);
  overflow-y: auto;
  z-index: 1040;
}

#page-content-wrapper {
  min-width: 0;
  margin-left: var(--sidebar-width);
  background: transparent;
  transition: margin-left 0.28s ease;
}

body.sb-toggled #sidebar-wrapper {
  transform: translateX(calc(-1 * var(--sidebar-width)));
}

body.sb-toggled #page-content-wrapper {
  margin-left: 0;
}

.sidebar-heading {
  padding: 1.45rem 1.35rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--app-sidebar-text-strong);
}

.app-brand:hover {
  color: #ffffff;
}

.app-brand__mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.22), rgba(20, 184, 166, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(8, 17, 35, 0.24);
}

.app-brand__mark i {
  font-size: 1.4rem;
  color: #f8fbff;
}

.app-brand__title {
  display: block;
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.app-brand__meta {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 243, 255, 0.56);
}

.sidebar-heading__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 243, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-heading__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-secondary), #22c55e);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.sidebar-search-container {
  padding: 1rem 1rem 0.4rem;
}

.sidebar-search-label {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 243, 255, 0.46);
}

.global-search-group {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.global-search-group .input-group-text,
.global-search-group .btn,
.global-search-group .form-control {
  border: none;
  background: transparent;
  color: rgba(245, 249, 255, 0.88);
  box-shadow: none;
}

.global-search-group .input-group-text {
  padding-left: 0.95rem;
  color: rgba(245, 249, 255, 0.6);
}

.global-search-group .form-control::placeholder {
  color: rgba(236, 243, 255, 0.42);
}

.global-search-clear {
  color: rgba(245, 249, 255, 0.55);
}

.global-search-results {
  margin-top: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(7, 17, 33, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.sidebar-nav {
  padding: 0.8rem;
}

.sidebar-divider {
  height: 1px;
  margin: 0.75rem 0.5rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

#sidebar-wrapper .list-group-item {
  border: none;
  background: transparent;
  color: var(--app-sidebar-text);
  border-radius: 16px;
  margin-bottom: 0.2rem;
  padding: 0.8rem 0.95rem;
  font-size: 0.93rem;
  font-weight: 600;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

#sidebar-wrapper .list-group-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(3px);
}

#sidebar-wrapper .list-group-item i {
  color: rgba(236, 243, 255, 0.62);
}

#sidebar-wrapper .list-group-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(21, 94, 239, 0.18), rgba(20, 184, 166, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#sidebar-wrapper .list-group-item.active i {
  color: #ffffff;
}

.sidebar-section-title {
  position: relative;
  padding-right: 2.6rem;
}

.menu-arrow {
  color: rgba(236, 243, 255, 0.42);
}

.collapse .list-group-item {
  margin-left: 0.3rem;
  margin-right: 0.3rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  color: rgba(236, 243, 255, 0.62);
}

.collapse .list-group-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  margin: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--app-primary), #2b7fff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(21, 94, 239, 0.24);
}

.sidebar-user-name {
  color: #ffffff;
  font-weight: 700;
}

.sidebar-user-role {
  color: rgba(236, 243, 255, 0.58);
  font-size: 0.78rem;
}

.navbar.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  margin: 0.65rem 0.65rem 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--app-shadow-sm);
  backdrop-filter: blur(12px);
}

.app-page-heading {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.app-page-heading__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-text-muted);
}

.app-page-heading__title {
  color: var(--app-text);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.app-page-heading__title strong {
  font-weight: 700;
}

.workspace-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.1), rgba(20, 184, 166, 0.1));
  color: var(--app-text-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.workspace-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-secondary), var(--app-primary));
}

#sidebarToggle,
.dark-mode-toggle,
.navbar .dropdown-toggle {
  border-radius: 10px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--app-text);
  transition: all 0.18s ease;
}

#sidebarToggle,
.dark-mode-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar .dropdown-toggle {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

#sidebarToggle:hover,
.dark-mode-toggle:hover,
.navbar .dropdown-toggle:hover {
  background: #ffffff;
  border-color: rgba(21, 94, 239, 0.2);
  box-shadow: 0 12px 30px rgba(21, 94, 239, 0.12);
}

.workspace-canvas {
  padding: 0.85rem 0.85rem 1.25rem;
}

.breadcrumb-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--app-border);
}

.breadcrumb-modern .breadcrumb-item,
.breadcrumb-modern .breadcrumb-item a {
  color: var(--app-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.breadcrumb-modern .breadcrumb-item.active {
  color: var(--app-text);
}

.card,
.chart-card,
.orders-table-card,
.orders-summary-card,
.orders-toolbar,
.orders-filter-strip,
.orders-hero,
.modal-content {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
}

.card:hover,
.orders-summary-card:hover,
.orders-table-card:hover {
  box-shadow: var(--app-shadow-md);
}

.card-header,
.modal-header,
.orders-table-card__header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--app-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 255, 0.92));
}

.card-header h6,
.card-title,
.orders-table-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--app-text);
}

.card-body {
  padding: 0.85rem 1rem;
}

.kpi-card {
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(21, 94, 239, 0.95), rgba(20, 184, 166, 0.9));
}

.kpi-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--app-text-muted);
}

.kpi-value {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--app-text);
}

.btn {
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-primary), #2b7fff);
  box-shadow: 0 8px 16px rgba(21, 94, 239, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger {
  background: rgba(255, 255, 255, 0.72);
  border-width: 1px;
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 10px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.86);
  min-height: 38px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--app-text);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(21, 94, 239, 0.35);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.08);
}

.table-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 240px;
  min-width: 200px;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.table-search-bar i {
  color: var(--app-text-muted);
  font-size: 0.9rem;
}

.table-search-bar .form-control {
  flex: 1 1 auto;
  min-width: 0;
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
}

.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-toolbar__filters,
.page-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-toolbar__filters {
  flex: 1 1 280px;
}

.page-toolbar__actions {
  flex: 1 1 340px;
  justify-content: flex-end;
}

.page-toolbar__actions .btn {
  white-space: nowrap;
}

.table {
  margin-bottom: 0;
  color: var(--app-text);
  font-size: 0.85rem;
}

.table thead th {
  border-bottom: 1px solid var(--app-border);
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-text-muted);
  background: rgba(246, 249, 255, 0.9);
}

.table tbody td {
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
  border-color: rgba(15, 30, 52, 0.05);
}

.table-hover tbody tr {
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.table-hover tbody tr:hover {
  background: rgba(21, 94, 239, 0.04);
}

.badge {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.nav-tabs {
  gap: 0.35rem;
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.12), rgba(20, 184, 166, 0.1));
  border-color: rgba(21, 94, 239, 0.18);
  color: var(--app-text);
}

.filter-pills,
.orders-status-pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-pills .btn,
.orders-status-pill {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--app-text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-pills .btn.active,
.orders-status-pill.is-active {
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.12), rgba(20, 184, 166, 0.1));
  border-color: rgba(21, 94, 239, 0.18);
  color: var(--app-text);
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
}

.empty-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.1), rgba(20, 184, 166, 0.1));
  color: var(--app-primary);
  font-size: 1.55rem;
}

.empty-state h6 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.empty-state p {
  margin: 0;
  color: var(--app-text-soft);
}

.dropdown-menu {
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--app-shadow-md);
  backdrop-filter: blur(18px);
}

.dropdown-item {
  border-radius: 12px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-weight: 600;
}

.dropdown-item:hover {
  background: rgba(21, 94, 239, 0.08);
}

.modal-content {
  overflow: hidden;
}

.modal-footer {
  border-top: 1px solid var(--app-border);
}

.pagination .page-link {
  border: 1px solid var(--app-border);
  color: var(--app-text);
  border-radius: 12px;
  margin: 0 0.15rem;
  background: rgba(255, 255, 255, 0.72);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--app-primary), #2b7fff);
  border-color: transparent;
}

.quick-action-btn,
.dashboard-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #eef5ff;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.quick-action-btn:hover,
.dashboard-action-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(8, 17, 35, 0.24);
}

.dashboard-hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 26%),
    linear-gradient(135deg, #0d1b35 0%, #15325d 52%, #12314d 100%);
  box-shadow: var(--app-shadow-lg);
  color: #eef5ff;
  overflow: hidden;
  position: relative;
}

.dashboard-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(135deg, black 20%, transparent 100%);
  pointer-events: none;
}

.dashboard-hero-panel__copy,
.dashboard-hero-panel__actions {
  position: relative;
  z-index: 1;
}

.dashboard-hero-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-hero-panel__copy h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.dashboard-hero-panel__copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(238, 245, 255, 0.76);
  font-size: 1rem;
  line-height: 1.7;
}

.dashboard-hero-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-content: start;
}

.dashboard-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
}

.dashboard-filter-bar__title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-text-muted);
}

.dashboard-filter-bar__caption {
  display: block;
  margin-top: 0.2rem;
  color: var(--app-text-soft);
}

.dashboard-date-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dashboard-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-text-muted);
}

.dashboard-date-field input {
  min-width: 150px;
}

.dashboard-date-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-shell__story,
.auth-shell__panel {
  position: relative;
  min-height: calc(100vh - 4rem);
}

.auth-shell__story {
  padding: 2.2rem;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(8, 17, 35, 0.88), rgba(17, 37, 70, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--app-shadow-lg);
}

.auth-shell__story::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--app-grid);
  background-size: 56px 56px;
  opacity: 0.45;
}

.auth-shell__story-inner,
.auth-panel {
  position: relative;
  z-index: 1;
}

.auth-shell__story-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth-brand-lockup__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 245, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-lockup__wordmark {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.auth-brand-lockup__icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.26), rgba(20, 184, 166, 0.3));
  color: #ffffff;
  font-size: 1.7rem;
  box-shadow: 0 20px 40px rgba(8, 17, 35, 0.24);
}

.auth-brand-lockup h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: #ffffff;
  letter-spacing: -0.07em;
}

.auth-brand-lockup p {
  margin: 0.85rem 0 0;
  max-width: 560px;
  color: rgba(238, 245, 255, 0.76);
  font-size: 1.02rem;
  line-height: 1.75;
}

.auth-story-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-story-metric {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-story-metric__label {
  display: block;
  color: rgba(238, 245, 255, 0.64);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-story-metric__value {
  display: block;
  margin-top: 0.45rem;
  color: #ffffff;
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.auth-story-metric__meta {
  display: block;
  margin-top: 0.35rem;
  color: rgba(238, 245, 255, 0.62);
  font-size: 0.84rem;
}

.auth-feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(238, 245, 255, 0.72);
}

.auth-feature-list i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.auth-shell__panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 2rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--app-shadow-lg);
  backdrop-filter: blur(22px);
  color: var(--app-text);
}

.auth-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.08);
  color: var(--app-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.auth-panel__lead {
  margin-bottom: 1.4rem;
  color: var(--app-text-soft);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.auth-field label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--app-text-soft);
}

.auth-input-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.05rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.86);
}

.auth-input-group i {
  color: var(--app-text-muted);
}

.auth-input-group .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
}

.auth-password-toggle {
  border: none;
  background: transparent;
  color: var(--app-text-muted);
}

.auth-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.auth-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--app-primary);
  text-decoration: none;
}

.auth-panel__divider {
  height: 1px;
  margin: 0.2rem 0;
  background: linear-gradient(90deg, transparent, rgba(15, 30, 52, 0.12), transparent);
}

.auth-panel__footer {
  color: var(--app-text-soft);
  text-align: center;
  font-size: 0.88rem;
}

.auth-panel__footer a {
  font-weight: 700;
  text-decoration: none;
}

.auth-alert-stack .alert {
  border-radius: 16px;
  border: 1px solid rgba(15, 30, 52, 0.08);
}

.status-badge,
.page-title {
  color: var(--app-text);
}

html[data-bs-theme="dark"] {
  --app-bg: #07111f;
  --app-surface: rgba(10, 19, 35, 0.9);
  --app-surface-strong: #0d1728;
  --app-surface-soft: #0f1d31;
  --app-border: rgba(226, 234, 246, 0.08);
  --app-border-strong: rgba(226, 234, 246, 0.14);
  --app-text: #f2f6fd;
  --app-text-soft: #b9c8dc;
  --app-text-muted: #91a1b8;
}

html[data-bs-theme="dark"] body.app-shell-body {
  background: linear-gradient(180deg, #07111f 0%, #0b1627 100%);
}

html[data-bs-theme="dark"] .navbar.app-topbar,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .orders-table-card,
html[data-bs-theme="dark"] .orders-summary-card,
html[data-bs-theme="dark"] .orders-toolbar,
html[data-bs-theme="dark"] .orders-filter-strip,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .breadcrumb-modern,
html[data-bs-theme="dark"] .table-search-bar,
html[data-bs-theme="dark"] .filter-pills .btn,
html[data-bs-theme="dark"] .orders-status-pill,
html[data-bs-theme="dark"] .nav-tabs .nav-link,
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .auth-panel {
  background: rgba(10, 19, 35, 0.92);
  color: var(--app-text);
}

html[data-bs-theme="dark"] .table thead th {
  background: rgba(15, 29, 49, 0.92);
}

@media (max-width: 1200px) {
  .dashboard-hero-panel {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-shell__story,
  .auth-shell__panel {
    min-height: auto;
  }
}

@media (max-width: 992px) {
  #sidebar-wrapper {
    transform: translateX(calc(-1 * var(--sidebar-width)));
  }

  #page-content-wrapper {
    margin-left: 0;
  }

  body.sb-toggled #sidebar-wrapper {
    transform: translateX(0);
  }

  body.sb-toggled #page-content-wrapper {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .navbar.app-topbar {
    margin: 0.75rem 0.75rem 0;
    border-radius: 18px;
  }

  .workspace-canvas {
    padding: 1rem 0.75rem 1.5rem;
  }

  .dashboard-filter-bar,
  .auth-form__row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-filter-bar,
  .dashboard-date-controls,
  .dashboard-date-actions {
    display: grid;
    width: 100%;
  }

  .dashboard-hero-panel,
  .auth-shell {
    padding: 1rem;
  }

  .page-toolbar__actions {
    justify-content: stretch;
  }

  .page-toolbar__actions .table-search-bar {
    min-width: 100%;
    width: 100%;
  }

  .auth-shell__story,
  .auth-panel {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .auth-story-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-panel__actions {
    grid-template-columns: 1fr;
  }

  .workspace-pill {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM UI ENHANCEMENTS v2.0 - Enterprise TMS Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. ENHANCED STATUS BADGES - Semantic Colors with Glass Effect
   ───────────────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

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

/* Status-specific badge colors */
.badge-pending,
.badge.bg-warning,
[class*="badge"][class*="pending"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1)) !important;
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.25);
}

.badge-in-transit,
.badge.bg-info,
[class*="badge"][class*="transit"],
[class*="badge"][class*="in_transit"] {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.1)) !important;
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.25);
}

.badge-delivered,
.badge.bg-success,
[class*="badge"][class*="delivered"],
[class*="badge"][class*="completed"] {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.15), rgba(74, 222, 128, 0.1)) !important;
  color: #15803d !important;
  border-color: rgba(22, 163, 74, 0.25);
}

.badge-exception,
.badge.bg-danger,
[class*="badge"][class*="exception"],
[class*="badge"][class*="cancelled"],
[class*="badge"][class*="failed"] {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.1)) !important;
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.25);
}

.badge-active,
[class*="badge"][class*="active"] {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(45, 212, 191, 0.1)) !important;
  color: #0f766e !important;
  border-color: rgba(20, 184, 166, 0.25);
}

.badge-draft,
[class*="badge"][class*="draft"],
[class*="badge"][class*="inactive"] {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.12), rgba(148, 163, 184, 0.08)) !important;
  color: #475569 !important;
  border-color: rgba(100, 116, 139, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. ENHANCED FILTER PILLS & TABS - Premium Segmented Control
   ───────────────────────────────────────────────────────────────────────────── */
.filter-pills,
.orders-status-pills,
.nav-pills-custom {
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(246, 249, 255, 0.7));
  border: 1px solid var(--app-border);
  box-shadow: inset 0 1px 2px rgba(15, 30, 52, 0.04);
}

.filter-pills .btn,
.orders-status-pill,
.nav-pills-custom .nav-link {
  position: relative;
  border: none !important;
  background: transparent !important;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pills .btn:hover,
.orders-status-pill:hover,
.nav-pills-custom .nav-link:hover {
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.5) !important;
}

.filter-pills .btn.active,
.orders-status-pill.is-active,
.nav-pills-custom .nav-link.active {
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.95)) !important;
  color: var(--app-text) !important;
  box-shadow: 0 4px 12px rgba(15, 30, 52, 0.08), 0 1px 3px rgba(15, 30, 52, 0.06);
}

.filter-pills .btn.active::after,
.orders-status-pill.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--app-primary), var(--app-secondary));
}

/* Tab count badges */
.filter-pills .btn .badge,
.orders-status-pill .badge {
  margin-left: 0.4rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. ENHANCED KPI CARDS - Premium Metrics Display
   ───────────────────────────────────────────────────────────────────────────── */
.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.95));
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--app-primary), var(--app-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-md);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.kpi-card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--app-primary-soft), rgba(20, 184, 166, 0.08));
  color: var(--app-primary);
  font-size: 1.1rem;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-text-muted);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--app-text);
  line-height: 1.1;
}

.kpi-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.kpi-card__trend--up {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.kpi-card__trend--down {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.kpi-card__trend--neutral {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. ENHANCED DATA TABLES - Premium List View
   ───────────────────────────────────────────────────────────────────────────── */
.table-wrapper,
.orders-table-card,
.data-table-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
}

.table-wrapper__header,
.orders-table-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.95));
  border-bottom: 1px solid var(--app-border);
}

.table {
  margin: 0;
}

.table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(240, 245, 252, 0.95));
  border-bottom: 2px solid var(--app-border);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-text-muted);
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(15, 30, 52, 0.04);
}

.table tbody tr:nth-child(even) {
  background: rgba(246, 249, 255, 0.4);
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(21, 94, 239, 0.04), rgba(20, 184, 166, 0.02));
  transform: scale(1.002);
}

.table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  color: var(--app-text);
}

.table tbody td:first-child {
  font-weight: 600;
}

/* Row action buttons */
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.table tbody tr:hover .table-actions {
  opacity: 1;
}

.table-actions .btn {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Clickable row indicator */
.table-row-link {
  cursor: pointer;
}

.table-row-link:hover td:first-child {
  color: var(--app-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. ENHANCED EMPTY STATES - Engaging Visual Feedback
   ───────────────────────────────────────────────────────────────────────────── */
.empty-state {
  padding: 3.5rem 2rem;
  text-align: center;
}

.empty-state__illustration {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.empty-state__illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-primary-soft), rgba(20, 184, 166, 0.08));
  animation: empty-pulse 3s ease-in-out infinite;
}

.empty-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.12), rgba(20, 184, 166, 0.1));
  color: var(--app-primary);
  font-size: 2rem;
  box-shadow: 0 12px 32px rgba(21, 94, 239, 0.12);
}

.empty-state h6 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--app-text);
}

.empty-state p {
  max-width: 320px;
  margin: 0 auto 1.25rem;
  color: var(--app-text-soft);
  line-height: 1.6;
}

.empty-state .btn {
  margin-top: 0.5rem;
}

@keyframes empty-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.4; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. ENHANCED BUTTONS - Premium Interaction Design
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--app-primary), #2b7fff);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 94, 239, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21, 94, 239, 0.35);
  background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary));
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary,
.btn-outline-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.95));
  border: 1px solid var(--app-border-strong);
  color: var(--app-text);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
  background: #ffffff;
  border-color: var(--app-primary);
  color: var(--app-primary);
  box-shadow: 0 8px 24px rgba(21, 94, 239, 0.12);
}

.btn-success {
  background: linear-gradient(135deg, var(--app-success), #22c55e);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
}

.btn-danger {
  background: linear-gradient(135deg, var(--app-danger), #f87171);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

/* Icon-only buttons */
.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}

.btn-icon-sm {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. LOADING SKELETONS - Smooth Content Placeholders
   ───────────────────────────────────────────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, 
    rgba(246, 249, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(246, 249, 255, 0.8) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 0.5rem;
}

.skeleton-text-sm {
  height: 10px;
  width: 60%;
}

.skeleton-heading {
  height: 24px;
  width: 40%;
  margin-bottom: 1rem;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.skeleton-card {
  height: 120px;
  border-radius: 16px;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. ENHANCED CARDS - Premium Container Design
   ───────────────────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.95));
  border: 1px solid var(--app-border);
  box-shadow: 0 8px 24px rgba(15, 30, 52, 0.04), 0 2px 6px rgba(15, 30, 52, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(90deg, var(--app-primary), var(--app-secondary));
  transition: height 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 30, 52, 0.08), 0 8px 16px rgba(15, 30, 52, 0.04);
}

.card:hover::before {
  height: 3px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(246, 249, 255, 0.9));
  border-bottom: 1px solid var(--app-border);
}

.card-header h5,
.card-header h6 {
  margin: 0;
  font-weight: 700;
  color: var(--app-text);
}

.card-body {
  padding: 1.35rem;
}

.card-footer {
  padding: 1rem 1.35rem;
  background: rgba(246, 249, 255, 0.5);
  border-top: 1px solid var(--app-border);
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. ENHANCED FORMS - Premium Input Design
   ───────────────────────────────────────────────────────────────────────────── */
.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--app-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 252, 255, 0.9));
  color: var(--app-text);
  font-weight: 500;
  transition: all 0.25s ease;
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(21, 94, 239, 0.25);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
  background: #ffffff;
}

.form-control::placeholder {
  color: var(--app-text-muted);
  font-weight: 400;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-text-soft);
  letter-spacing: 0.02em;
}

/* Enhanced search bar */
.table-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  border: 1.5px solid var(--app-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.85));
  transition: all 0.25s ease;
}

.table-search-bar:focus-within {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.08);
  background: #ffffff;
}

.table-search-bar i {
  color: var(--app-text-muted);
  font-size: 1rem;
}

.table-search-bar .form-control {
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
  box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. ENHANCED PAGINATION - Premium Navigation
   ───────────────────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.85));
  color: var(--app-text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
  background: #ffffff;
  border-color: var(--app-primary);
  color: var(--app-primary);
  box-shadow: 0 4px 12px rgba(21, 94, 239, 0.1);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--app-primary), #2b7fff);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(21, 94, 239, 0.3);
}

.pagination .page-item.disabled .page-link {
  background: rgba(246, 249, 255, 0.5);
  color: var(--app-text-muted);
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. ENHANCED ALERTS & NOTIFICATIONS
   ───────────────────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
}

.alert-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
}

.alert-success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(74, 222, 128, 0.05));
  border-color: rgba(22, 163, 74, 0.2);
  color: #15803d;
}

.alert-success .alert-icon {
  background: rgba(22, 163, 74, 0.15);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
  border-color: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.05));
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.alert-info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(56, 189, 248, 0.05));
  border-color: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. PREMIUM DROPDOWN MENUS
   ───────────────────────────────────────────────────────────────────────────── */
.dropdown-menu {
  padding: 0.5rem;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(15, 30, 52, 0.15);
  backdrop-filter: blur(20px);
  animation: dropdown-enter 0.2s ease-out;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--app-text);
  transition: all 0.15s ease;
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--app-text-muted);
  transition: color 0.15s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.08), rgba(20, 184, 166, 0.04));
  color: var(--app-primary);
}

.dropdown-item:hover i {
  color: var(--app-primary);
}

.dropdown-divider {
  margin: 0.4rem 0.5rem;
  border-color: var(--app-border);
}

@keyframes dropdown-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. ENHANCED MODALS - Premium Dialog Design
   ───────────────────────────────────────────────────────────────────────────── */
.modal-content {
  border-radius: 24px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px rgba(15, 30, 52, 0.2);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.95));
  border-bottom: 1px solid var(--app-border);
}

.modal-title {
  font-weight: 700;
  color: var(--app-text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: rgba(246, 249, 255, 0.5);
  border-top: 1px solid var(--app-border);
  gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. ROUTE INDICATOR - Premium Visual Element
   ───────────────────────────────────────────────────────────────────────────── */
.route-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.route-indicator__origin,
.route-indicator__destination {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(246, 249, 255, 0.8);
  font-size: 0.85rem;
}

.route-indicator__arrow {
  display: flex;
  align-items: center;
  color: var(--app-text-muted);
}

.route-indicator__arrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--app-primary), var(--app-secondary));
  border-radius: 2px;
}

.route-indicator__arrow i {
  margin-left: -4px;
  color: var(--app-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. PROGRESS INDICATORS
   ───────────────────────────────────────────────────────────────────────────── */
.progress {
  height: 8px;
  border-radius: 8px;
  background: rgba(246, 249, 255, 0.8);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--app-primary), var(--app-secondary));
  border-radius: 8px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Circular progress */
.progress-circle {
  position: relative;
  width: 64px;
  height: 64px;
}

.progress-circle__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--app-text);
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. MICRO-INTERACTIONS & UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */

/* Smooth transitions for all interactive elements */
a, button, .btn, .card, .table tbody tr, input, select, textarea {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible styling */
:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-md);
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse animation for live indicators */
.pulse {
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(21, 94, 239, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(21, 94, 239, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 94, 239, 0); }
}

/* Fade in animation */
.fade-in {
  animation: fade-in 0.4s ease-out;
}

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

/* Stagger animation for lists */
.stagger-item {
  opacity: 0;
  animation: stagger-in 0.4s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }

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

/* ─────────────────────────────────────────────────────────────────────────────
   17. RESPONSIVE PREMIUM ADJUSTMENTS
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kpi-card {
    padding: 1rem;
  }
  
  .kpi-value {
    font-size: 1.5rem;
  }
  
  .card {
    border-radius: 16px;
  }
  
  .card-header,
  .card-body {
    padding: 1rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.75rem;
  }
  
  .btn {
    padding: 0.55rem 0.9rem;
  }
  
  .empty-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. APPLICATION SHELL ALIGNMENT NORMALIZATION
   Keep the shared shell consistent with the refresh tokens. This is scoped to
   the authenticated application so public/auth pages retain their own layout.
   ───────────────────────────────────────────────────────────────────────────── */
body.app-shell-body {
  overflow-x: hidden;
}

body.app-shell-body #page-content-wrapper {
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

body.app-shell-body .workspace-canvas.container-fluid {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 1.15rem 1.5rem 2rem !important;
}

body.app-shell-body .navbar.app-topbar {
  min-height: 58px;
  margin: 0.65rem 0.85rem 0 !important;
  padding: 0.55rem 0.85rem !important;
}

body.app-shell-body .workspace-canvas > .row,
body.app-shell-body .workspace-canvas > .card,
body.app-shell-body .workspace-canvas > .page-toolbar,
body.app-shell-body .workspace-canvas > .breadcrumb-modern {
  max-width: 100%;
}

body.app-shell-body .page-toolbar {
  align-items: center;
  min-width: 0;
}

body.app-shell-body .page-toolbar__filters,
body.app-shell-body .page-toolbar__actions {
  min-width: 0;
}

body.app-shell-body .page-toolbar__actions .table-search-bar {
  min-width: min(280px, 100%);
}

body.app-shell-body .card-header,
body.app-shell-body .modal-header,
body.app-shell-body .modal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.app-shell-body .card-header > :last-child,
body.app-shell-body .modal-header > :last-child {
  margin-left: auto;
}

body.app-shell-body .card-body {
  min-width: 0;
}

body.app-shell-body .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

body.app-shell-body .table {
  min-width: 680px;
}

body.app-shell-body .table td,
body.app-shell-body .table th {
  vertical-align: middle;
}

body.app-shell-body .form-label {
  line-height: 1.25;
}

body.app-shell-body .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 720px;
  margin: 1rem auto;
}

@media (max-width: 768px) {
  body.app-shell-body .workspace-canvas.container-fluid {
    padding: 0.9rem 0.75rem 1.5rem !important;
  }

  body.app-shell-body .navbar.app-topbar {
    margin: 0.5rem 0.5rem 0 !important;
  }

  body.app-shell-body .page-toolbar,
  body.app-shell-body .page-toolbar__filters,
  body.app-shell-body .page-toolbar__actions {
    width: 100%;
  }

  body.app-shell-body .page-toolbar__actions {
    justify-content: flex-start;
  }

  body.app-shell-body .page-toolbar__actions .table-search-bar {
    flex: 1 1 100%;
    min-width: 100%;
  }

  body.app-shell-body .table {
    min-width: 620px;
  }

  body.app-shell-body .modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }
}

@media (max-width: 576px) {
  body.app-shell-body .navbar.app-topbar {
    min-height: 52px;
    padding: 0.45rem 0.6rem !important;
  }

  body.app-shell-body .app-page-heading__title {
    font-size: 0.95rem;
  }

  body.app-shell-body .navbar .dropdown-toggle {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app-shell-body .card-header,
  body.app-shell-body .card-body {
    padding: 0.85rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   19. SIDEBAR MENU ALIGNMENT
   Keep one compact rhythm for top-level and expanded submenu items.
   ───────────────────────────────────────────────────────────────────────────── */
#sidebar-wrapper .sidebar-nav .list-group-item {
  text-transform: none;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: var(--app-sidebar-text) !important;
  text-align: left;
  vertical-align: middle;
}

#sidebar-wrapper .sidebar-nav .sidebar-menu-toggle,
#sidebar-wrapper .sidebar-nav .sidebar-section-title {
  text-transform: none !important;
}

#sidebar-wrapper .sidebar-nav .collapse .list-group-item {
  text-transform: none !important;
}

@media (min-width: 769px) {
  #sidebar-wrapper {
    overflow-y: hidden;
  }

  #sidebar-wrapper .sidebar-heading {
    padding: 0.85rem 1rem 0.7rem;
  }

  #sidebar-wrapper .app-brand {
    gap: 0.65rem;
  }

  #sidebar-wrapper .app-brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  #sidebar-wrapper .app-brand__mark i {
    font-size: 1.1rem;
  }

  #sidebar-wrapper .app-brand__title {
    font-size: 1rem;
  }

  #sidebar-wrapper .app-brand__meta {
    margin-top: 0.08rem;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  #sidebar-wrapper .sidebar-heading__status {
    margin-top: 0.55rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  #sidebar-wrapper .sidebar-heading__status-dot {
    width: 7px;
    height: 7px;
  }

  #sidebar-wrapper .sidebar-search-container {
    padding: 0.55rem 0.75rem 0.25rem;
  }

  #sidebar-wrapper .sidebar-search-label {
    margin-bottom: 0.25rem;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  #sidebar-wrapper .global-search-group {
    min-height: 28px;
    border-radius: 10px;
  }

  #sidebar-wrapper .global-search-group .form-control,
  #sidebar-wrapper .global-search-group .input-group-text,
  #sidebar-wrapper .global-search-group .btn {
    min-height: 28px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-size: 0.75rem;
  }

  #sidebar-wrapper .sidebar-nav {
    padding: 0.35rem 0.6rem;
    min-height: 0;
  }

  #sidebar-wrapper .sidebar-nav .list-group-item {
    display: flex;
    align-items: center;
    min-height: 23px;
    margin-bottom: 0.08rem;
    padding: 0.22rem 0.55rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-weight: 600;
    line-height: 1.15;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
  }

  #sidebar-wrapper .sidebar-nav .sidebar-nav-item,
  #sidebar-wrapper .sidebar-nav .sidebar-menu-toggle,
  #sidebar-wrapper .sidebar-nav .sidebar-section-title {
    min-height: 23px;
    margin-top: 0 !important;
    margin-bottom: 0.08rem !important;
    padding: 0.22rem 0.55rem !important;
    font-size: 0.76rem !important;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-weight: 600 !important;
    line-height: 1.15;
  }

  #sidebar-wrapper .sidebar-nav .list-group-item i {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    margin-right: 0.35rem !important;
    font-size: 0.9rem;
  }

  #sidebar-wrapper .sidebar-nav .sidebar-section-title {
    padding-right: 0.65rem;
  }

  #sidebar-wrapper .sidebar-nav .sidebar-section-title .menu-arrow {
    flex: 0 0 auto;
    width: auto;
    margin: 0 0 0 auto !important;
  }

  #sidebar-wrapper .sidebar-nav .collapse > .list-group {
    padding: 0.12rem 0;
  }

  #sidebar-wrapper .sidebar-nav .collapse .list-group-item {
    min-height: 22px;
    margin: 0;
    padding: 0.2rem 0.55rem 0.2rem 2.25rem !important;
    border-radius: 8px;
    font-size: 0.76rem !important;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-weight: 600 !important;
  }

  #sidebar-wrapper .collapse,
  #sidebar-wrapper .collapsing {
    transition: height 0.18s ease;
  }

  #sidebar-wrapper .sidebar-divider {
    margin: 0.35rem 0.4rem !important;
  }

  #sidebar-wrapper .sidebar-user {
    gap: 0.6rem;
    padding: 0.6rem;
    margin: 0.45rem 0.6rem;
    border-radius: 12px;
  }

  #sidebar-wrapper .sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  #sidebar-wrapper .sidebar-user-name {
    font-size: 0.78rem;
  }

  #sidebar-wrapper .sidebar-user-role {
    font-size: 0.68rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   20. APPLICATION CONTENT DENSITY
   The refresh enhancements below the original component rules must not expand
   every shared control. Keep the authenticated workspace compact at 100% scale.
   ───────────────────────────────────────────────────────────────────────────── */
body.app-shell-body {
  font-size: 0.875rem;
}

body.app-shell-body .workspace-canvas.container-fluid {
  padding: 0.9rem 1.25rem 1.5rem !important;
}

body.app-shell-body .card-header,
body.app-shell-body .modal-header,
body.app-shell-body .orders-table-card__header {
  min-height: 42px;
  padding: 0.65rem 0.9rem !important;
}

body.app-shell-body .card-body,
body.app-shell-body .modal-body {
  padding: 0.85rem 0.9rem !important;
}

body.app-shell-body .card-footer,
body.app-shell-body .modal-footer {
  padding: 0.65rem 0.9rem !important;
}

body.app-shell-body .btn {
  min-height: 32px;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8rem !important;
  line-height: 1.2;
}

body.app-shell-body .btn-sm {
  min-height: 28px;
  padding: 0.28rem 0.6rem !important;
  font-size: 0.75rem !important;
}

body.app-shell-body .form-control,
body.app-shell-body .form-select,
body.app-shell-body .input-group-text {
  min-height: 34px;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.8rem !important;
  line-height: 1.25;
}

body.app-shell-body .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

body.app-shell-body .table {
  font-size: 0.8rem;
}

body.app-shell-body .table thead th {
  padding: 0.5rem 0.65rem;
  font-size: 0.65rem;
  line-height: 1.2;
}

body.app-shell-body .table tbody td {
  padding: 0.5rem 0.65rem;
  line-height: 1.25;
}

body.app-shell-body .badge {
  padding: 0.25rem 0.45rem;
  font-size: 0.65rem;
}

body.app-shell-body .pagination .page-item .page-link {
  min-width: 32px;
  height: 32px;
  padding: 0 0.55rem;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  body.app-shell-body .workspace-canvas.container-fluid {
    padding: 0.75rem 0.65rem 1.25rem !important;
  }

  body.app-shell-body .card-header,
  body.app-shell-body .modal-header,
  body.app-shell-body .orders-table-card__header {
    min-height: 40px;
    padding: 0.6rem 0.75rem !important;
  }

  body.app-shell-body .card-body,
  body.app-shell-body .modal-body {
    padding: 0.75rem !important;
  }
}