/* GB Asset Management — UI layer on top of Flux tokens */

/* Hand (pointer) cursor on interactive controls site-wide */
button:not(:disabled):not([aria-disabled="true"]),
input[type="submit"]:not(:disabled),
input[type="button"]:not(:disabled),
input[type="reset"]:not(:disabled) {
  cursor: pointer;
}
button:disabled,
button[disabled],
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
  cursor: not-allowed;
}

#main-content{
    padding: 30px !important;
}
.gb-page-list {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.gb-pagination-wrap {
  margin-top: 1rem;
}

.gb-fa { width: 1.1em; display: inline-flex; justify-content: center; }
.gb-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}
.gb-sidebar-link .gb-nav-ico {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
}
.gb-sidebar-section {
  margin-top: 0.35rem;
  padding: 0.35rem 0.75rem 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* App sidebar — white panel */
.gb-app-sidebar {
  position: relative;
  z-index: 20;
  background: #ffffff;
  color: rgb(51 65 85);
  border-right: 1px solid rgb(0 0 0 / 0.08);
  box-shadow: none;
}
.gb-app-sidebar__brand {
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
}
.gb-app-sidebar__footer {
  border-top: 1px solid rgb(0 0 0 / 0.08);
}
.gb-app-sidebar .gb-sidebar-section {
  color: rgb(100 116 139);
}
.gb-app-sidebar .gb-sidebar-link {
  color: rgb(51 65 85);
  transition: background 0.12s ease, color 0.12s ease;
}
.gb-app-sidebar .gb-sidebar-link:hover {
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}
.gb-app-sidebar .gb-sidebar-link:hover .gb-nav-ico {
  opacity: 1;
  color: rgb(37 99 235);
}
.gb-app-sidebar .gb-sidebar-link--active {
  background: rgb(219 234 254);
  color: rgb(29 78 216);
  font-weight: 600;
}
.gb-app-sidebar .gb-sidebar-link--active .gb-nav-ico {
  opacity: 1;
  color: rgb(37 99 235);
}
.gb-app-sidebar button.gb-sidebar-link:hover {
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}
.gb-app-sidebar button.gb-sidebar-link:hover .gb-nav-ico {
  opacity: 1;
  color: rgb(37 99 235);
}

/* Dashboard — vertical rhythm between rows */
.gb-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 640px) {
  .gb-dashboard {
    gap: 2.75rem;
  }
}
@media (min-width: 1024px) {
  .gb-dashboard {
    gap: 3rem;
  }
}

/* Shared elevated surface (stats, charts, header, shortcuts) */
.gb-stat-card,
.gb-chart-card,
.gb-dashboard-header,
.gb-dashboard-shortcuts {
  border-radius: 0.75rem;
  border: 1px solid rgb(0 0 0 / 0.08);
  background: #ffffff;
  box-shadow: none;
}

.gb-dashboard-header {
  padding: 1.35rem 1.5rem;
}
.gb-dashboard-header .gb-toolbar {
  margin-bottom: 0;
}
.gb-dashboard-header .text-muted-foreground {
  color: rgb(100 116 139);
}
.gb-dashboard-header .font-medium.text-foreground {
  color: rgb(15 23 42);
}

.gb-dashboard-shortcuts {
  padding: 1.35rem 1.5rem;
}
.gb-dashboard-shortcuts h2 {
  color: rgb(15 23 42);
}
.gb-dashboard-shortcuts .text-primary {
  color: rgb(37 99 235);
}

.gb-shortcut-tile {
  border-radius: 0.65rem !important;
  border: 1px solid rgb(0 0 0 / 0.07) !important;
  background: rgb(248 250 252) !important;
  box-shadow: none !important;
  transition: background 0.15s ease;
}
.gb-shortcut-tile:hover {
  background: rgb(241 245 249) !important;
  box-shadow: none !important;
}

/* Stat / widget cards (dashboard) */
.gb-stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.5rem;
}
.gb-stat-card .gb-stat-ico {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.35rem;
  opacity: 0.4;
  color: rgb(37 99 235);
}
.gb-stat-card .gb-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}
.gb-stat-card .gb-stat-value {
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: rgb(15 23 42);
}
/* Keep profile/context copy readable on white cards in dark UI */
.gb-stat-card .text-muted-foreground {
  color: rgb(100 116 139);
}
.gb-stat-card .font-semibold {
  color: rgb(15 23 42);
}

/* Toolbar */
.gb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.gb-toolbar h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gb-toolbar .gb-title-icon {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 1rem;
}
.gb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: background 0.15s ease;
  cursor: pointer;
}
.gb-btn:disabled,
.gb-btn[disabled],
.gb-btn[aria-disabled="true"] {
  cursor: not-allowed;
}
.gb-btn:hover {
  background: hsl(var(--muted) / 0.35);
}
.gb-btn-primary {
  border-color: rgb(99 102 241 / 0.35);
  background: rgb(238 242 255);
  color: rgb(67 56 202);
}
.gb-btn-primary:hover {
  border-color: rgb(79 70 229 / 0.45);
  background: rgb(224 231 255);
  color: rgb(55 48 163);
}

/* Semantic actions: add (success), edit (warning), delete (danger) */
.gb-btn-success {
  border-color: rgb(34 197 94 / 0.32);
  background: rgb(240 253 244);
  color: rgb(22 101 52);
}
.gb-btn-success:hover {
  border-color: rgb(34 197 94 / 0.45);
  background: rgb(220 252 231);
  color: rgb(21 128 61);
}
.gb-btn-warning {
  border-color: rgb(245 158 11 / 0.35);
  background: rgb(255 251 235);
  color: rgb(146 64 14);
}
.gb-btn-warning:hover {
  border-color: rgb(245 158 11 / 0.48);
  background: rgb(254 243 199);
  color: rgb(120 53 15);
}
.gb-btn-danger {
  border-color: rgb(248 113 113 / 0.35);
  background: rgb(254 242 242);
  color: rgb(153 27 27);
}
.gb-btn-danger:hover {
  border-color: rgb(248 113 113 / 0.48);
  background: rgb(254 226 226);
  color: rgb(127 29 29);
}
.gb-btn-info {
  border-color: rgb(56 189 248 / 0.35);
  background: rgb(240 249 255);
  color: rgb(3 105 161);
}
.gb-btn-info:hover {
  border-color: rgb(56 189 248 / 0.48);
  background: rgb(224 242 254);
  color: rgb(7 89 133);
}
.gb-btn-secondary {
  border-color: rgb(148 163 184 / 0.35);
  background: #f8fafc;
  color: rgb(30 41 59);
}
.gb-btn-secondary:hover {
  border-color: rgb(148 163 184 / 0.45);
  background: rgb(241 245 249);
  color: rgb(15 23 42);
}
.gb-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  border-radius: 0.25rem;
  gap: 0.35rem;
}
.gb-btn-square {
  border-radius: 0.25rem;
}

/* Row actions in tables (edit / delete / links) */
.gb-table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
}

/* Page toolbar: primary actions on the right */
.gb-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Native dialog — delete confirmation */
.gb-confirm-dialog {
  max-width: min(26rem, calc(100vw - 2rem));
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25),
    0 0 0 1px rgb(0 0 0 / 0.06);
}
.gb-confirm-dialog::backdrop {
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(2px);
}
.gb-confirm-dialog__panel {
  padding: 1.35rem 1.5rem;
}
.gb-confirm-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}
.gb-confirm-dialog__body {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
.gb-confirm-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid hsl(var(--border));
}

/* SweetAlert2 toast — multi-line validation summary */
.gb-swal-error-list {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: left;
}
.gb-swal-error-list li + li {
  margin-top: 0.2rem;
}

/* Table shell (same depth as dashboard elevated surfaces) */
.gb-table-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: none;
}

/* DataTables injects wrapper + layout rows; avoid clipping bottom paging/search chrome */
.gb-table-card.gb-dt-shell {
  overflow: visible;
}

/* Theme-aware panels / forms */
.gb-elevated-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: none;
}
.gb-table-card .gb-table-scroll {
  overflow-x: auto;
}

/* DataTables 2 inside theme */
.dt-container {
  padding: 0.75rem 1rem 1rem;
}
.dt-container .dt-input,
.dt-container .dt-search input {
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.dt-container .dt-layout-row {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}
.dt-container table.dataTable thead th {
  border-bottom: 1px solid hsl(var(--border)) !important;
  background: hsl(var(--muted) / 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}
.dt-container table.dataTable tbody td {
  border-color: hsl(var(--border) / 0.6) !important;
}

/* Summary stats above rich DataTables */
.gb-dt-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  margin-bottom: 1.25rem;
}
.gb-dt-stat {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(0 0 0 / 0.08);
  background: #ffffff;
  box-shadow: none;
}
.gb-dt-stat__icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 1rem;
}
.gb-dt-stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.gb-dt-stat__value {
  margin-top: 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: hsl(var(--foreground));
}
.gb-dt-stat__hint {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.35;
}

.gb-dt-shell .dt-container {
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid rgb(0 0 0 / 0.06);
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
.gb-dt-shell .dt-layout-row {
  margin-bottom: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* Full-width toolbar row: keep length + search + buttons visible (flex; search grows). */
.gb-dt-shell .dt-layout-full {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: 100% !important;
}
.gb-dt-shell .dt-layout-full .dt-length,
.gb-dt-shell .dt-layout-full .dt-search,
.gb-dt-shell .dt-layout-full .dt-buttons {
  margin: 0 !important;
}
.gb-dt-shell .dt-layout-full .dt-search {
  flex: 1 1 14rem;
  min-width: 12rem;
}
.gb-dt-shell .dt-layout-full .dt-search input {
  width: 100%;
  max-width: 24rem;
  box-sizing: border-box;
  border-radius: 0.6rem !important;
  border-color: rgb(148 163 184 / 0.35) !important;
  background: #f8fafc !important;
  min-height: 2.35rem;
}

/* Compact semantic badges for status/active cells in tables. */
.gb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
  white-space: nowrap;
}
.gb-badge-success {
  background: rgb(22 163 74 / 0.12);
  border-color: rgb(22 163 74 / 0.3);
  color: rgb(21 128 61);
}
.gb-badge-warning {
  background: rgb(217 119 6 / 0.12);
  border-color: rgb(217 119 6 / 0.3);
  color: rgb(180 83 9);
}
.gb-badge-danger {
  background: rgb(220 38 38 / 0.12);
  border-color: rgb(220 38 38 / 0.3);
  color: rgb(185 28 28);
}
.gb-badge-info {
  background: hsl(var(--primary) / 0.12);
  border-color: hsl(var(--primary) / 0.28);
  color: hsl(var(--primary));
}

/* Force row action anchors in DataTables to render as buttons. */
.gb-dt-shell table.dataTable tbody td a.gb-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 0.6rem !important;
  border: 1px solid rgb(148 163 184 / 0.35) !important;
  background: #f8fafc !important;
  color: rgb(30 41 59) !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  transition: all 0.16s ease !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-primary {
  border-color: rgb(99 102 241 / 0.35) !important;
  background: rgb(238 242 255) !important;
  color: rgb(67 56 202) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-primary:hover {
  border-color: rgb(79 70 229 / 0.45) !important;
  background: rgb(224 231 255) !important;
  color: rgb(55 48 163) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-open {
  border-color: rgb(99 102 241 / 0.35) !important;
  background: rgb(238 242 255) !important;
  color: rgb(67 56 202) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-open:hover {
  border-color: rgb(79 70 229 / 0.45) !important;
  background: rgb(224 231 255) !important;
  color: rgb(55 48 163) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-secondary {
  border-color: rgb(148 163 184 / 0.35) !important;
  background: #f8fafc !important;
  color: rgb(30 41 59) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-success {
  border-color: rgb(34 197 94 / 0.32) !important;
  background: rgb(240 253 244) !important;
  color: rgb(22 101 52) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-warning {
  border-color: rgb(245 158 11 / 0.35) !important;
  background: rgb(255 251 235) !important;
  color: rgb(146 64 14) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn.gb-btn-danger {
  border-color: rgb(248 113 113 / 0.35) !important;
  background: rgb(254 242 242) !important;
  color: rgb(153 27 27) !important;
}
.gb-dt-shell table.dataTable tbody td a.gb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgb(15 23 42 / 0.12);
}

.gb-dt-shell table.dataTable tbody td.gb-dt-actions-cell {
  white-space: nowrap;
}
.gb-dt-shell table.dataTable tbody td.gb-dt-actions-cell .gb-btn + .gb-btn {
  margin-left: 0.4rem;
}
/* Per-column filter row: second thead row, above body (orderCellsTop keeps sort on label row). */
.gb-dt-shell table.dataTable > thead > tr.gb-dt-col-filters > th {
  padding: 0.5rem 0.65rem;
  vertical-align: middle;
  border-bottom: 1px solid hsl(var(--border));
  background: #ffffff;
  font-weight: 500;
  cursor: default;
}
.gb-dt-shell table.dataTable > thead > tr.gb-dt-col-filters > th .dt-column-order {
  display: none !important;
}
.gb-dt-shell table.dataTable > thead > tr.gb-dt-col-filters input.gb-dt-col-filter {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}
.gb-dt-shell .dt-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.gb-dt-shell .dt-button {
  border-radius: 0.6rem !important;
  border: 1px solid rgb(148 163 184 / 0.25) !important;
  background: #f8fafc !important;
  color: hsl(var(--foreground)) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 0.78rem !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition:
    background 0.12s ease,
    border-color 0.12s ease !important;
}
.gb-dt-shell .dt-button.disabled {
  cursor: not-allowed !important;
}
.gb-dt-shell .dt-button:hover:not(.disabled) {
  background: rgb(241 245 249) !important;
  border-color: rgb(148 163 184 / 0.45) !important;
}
.gb-dt-shell .dt-paging .dt-paging-button {
  border-radius: 0.4rem !important;
  cursor: pointer !important;
}
.gb-dt-shell .dt-paging .dt-paging-button.disabled,
.gb-dt-shell .dt-paging .dt-paging-button.current {
  cursor: default !important;
}
.gb-dt-shell .dt-length select {
  border-radius: 0.5rem !important;
  padding: 0.35rem 2rem 0.35rem 0.6rem !important;
}

.gb-procurement-page,
.gb-datatable-page {
  max-width: 92rem;
  margin-inline: auto;
}

/* Pagination (Laravel gb view) */
.gb-pagination {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.gb-pagination__meta {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.gb-pagination__nav {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  background: hsl(var(--card));
}
.gb-pagination__nav a,
.gb-pagination__nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  border-right: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  text-decoration: none;
}
.gb-pagination__nav > *:last-child {
  border-right: 0;
}
.gb-pagination__nav a {
  cursor: pointer;
}
.gb-pagination__nav a:hover {
  background: hsl(var(--muted) / 0.35);
}
.gb-pagination__nav span[aria-disabled="true"],
.gb-pagination__nav span.cursor-not-allowed {
  color: hsl(var(--muted-foreground));
  opacity: 0.45;
  cursor: not-allowed;
}
.gb-pagination__nav span[aria-current="page"] span {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}

/* Chart card (uses same elevated surface as .gb-stat-card) */
.gb-chart-card {
  padding: 1.25rem 1.4rem 1.5rem;
}
.gb-chart-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(100 116 139);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gb-chart-card h3 .text-primary,
.gb-chart-card h3 i {
  color: rgb(37 99 235);
}

/* Reports index list */
.gb-report-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.gb-report-row .gb-report-ico {
  margin-top: 0.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Demand note show — elevated surfaces & workflow timeline */
.gb-demand-show .gb-demand-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.gb-demand-show .gb-demand-hero {
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(
    125deg,
    hsl(var(--muted) / 0.5) 0%,
    hsl(var(--card)) 45%,
    hsl(var(--primary) / 0.07) 100%
  );
  padding: 1.5rem 1.65rem;
}
@media (min-width: 640px) {
  .gb-demand-show .gb-demand-hero {
    padding: 1.85rem 2.1rem;
  }
}
.gb-demand-timeline {
  position: relative;
  padding-left: 0.25rem;
}
.gb-demand-timeline__rail {
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    hsl(var(--primary) / 0.4) 0%,
    hsl(var(--border)) 35%,
    hsl(var(--border)) 100%
  );
}
.gb-demand-timeline__dot {
  box-shadow: 0 0 0 4px hsl(var(--background));
}
#main-content .gb-demand-show .gb-demand-timeline-entry {
  box-shadow:
    0 2px 8px -2px rgb(15 23 42 / 0.06),
    0 1px 3px -1px rgb(15 23 42 / 0.04) !important;
}
.dark #main-content .gb-demand-show .gb-demand-timeline-entry {
  box-shadow:
    0 2px 8px -2px rgb(0 0 0 / 0.2),
    0 1px 3px -1px rgb(0 0 0 / 0.12) !important;
}
.gb-demand-show .gb-demand-actions-panel {
  border-radius: 1rem;
  border: 1px dashed hsl(var(--primary) / 0.35);
  background: linear-gradient(
    160deg,
    hsl(var(--primary) / 0.06) 0%,
    hsl(var(--muted) / 0.2) 55%,
    hsl(var(--card)) 100%
  );
  padding: 1.5rem 1.65rem;
}
@media (min-width: 640px) {
  .gb-demand-show .gb-demand-actions-panel {
    padding: 1.75rem 2rem;
  }
}

/* Flat main column: remove Tailwind shadow-sm from cards/forms inside #main-content */
#main-content .shadow-sm {
  box-shadow: none !important;
}
/* Demand show: restore card depth (beats #main-content .shadow-sm when both apply) */
#main-content .gb-demand-show .gb-demand-card {
  box-shadow:
    0 4px 6px -1px rgb(15 23 42 / 0.05),
    0 2px 4px -2px rgb(15 23 42 / 0.04) !important;
}
.dark #main-content .gb-demand-show .gb-demand-card {
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.2),
    0 2px 4px -2px rgb(0 0 0 / 0.12) !important;
}

@media print {
  aside,
  .gb-pagination,
  .dt-search,
  .dt-layout-row:first-child {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .gb-table-card,
  .overflow-hidden.rounded-xl {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  main {
    padding: 0.5rem !important;
  }
}
