/**
 * GT Table — mobile-first shell, red / grey / white theme (no dark mode).
 */

:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --panel-soft: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --line: #d1d5db;
  --border: #d1d5db;
  --primary: #c41e3a;
  --primary-dark: #991b1b;
  --accent: #c41e3a;
  --green: #15803d;
  --red: #c41e3a;
  --yellow: #ca8a04;
  --blue: #374151;
  --gray: #6b7280;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 14px;
  --vm-section-th-bg: #fecaca;
  --vm-section-th-border: #c41e3a;
  --vm-section-th-text: #111827;
  --vm-section-td-bg: #fff5f5;
  --vm-section-td-even-bg: #ffe4e6;
  --vm-section-td-hover-bg: #fecdd3;
  --vm-section-edge: #c41e3a;
  --gt-bottom-nav-h: 58px;
  --gt-footer-total-h: 44px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--gt-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

body.dark {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --panel-soft: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --line: #d1d5db;
  --border: #d1d5db;
}

.visually-hidden,
.gt-camera-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Login —— */
.login-screen {
  background:
    linear-gradient(165deg, rgba(196, 30, 58, 0.12), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.login-card {
  border-color: var(--line);
  border-top: 4px solid var(--primary);
}

.login-submit,
.primary-btn {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
}

.ghost-btn {
  border-color: var(--line);
  color: var(--text);
}

.ghost-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* —— Mobile-first app shell —— */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-sidebar-open-btn {
  display: inline-flex;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 280px);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: 50;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
}

.app-layout.sidebar-mobile-open .app-sidebar {
  transform: translateX(0);
}

.app-sidebar-backdrop {
  display: block;
}

.app-sidebar-collapse-btn {
  display: none;
}

.app-content {
  width: 100%;
  min-width: 0;
  padding: 4px;
  padding-bottom: 0;
}

.topbar {
  position: relative;
  z-index: 100;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, #fff);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  gap: 8px;
  overflow: visible !important;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.topbar-brand h1 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.topbar-meta {
  display: flex;
  width: 100%;
  min-width: 0;
}

.upload-time-pill,
.topbar-meta .upload-time-pill {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a 8%, #fff);
  border: 1px solid color-mix(in srgb, #16a34a 28%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.topbar-menus {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px;
  width: 100%;
}

.topbar-menu {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.topbar-menu-toggle,
.user-menu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topbar-menu-toggle:hover,
.user-menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12) !important;
}

.user-menu-toggle {
  gap: 6px;
  max-width: none !important;
}

.role-pill,
.role-pill-compact {
  background: transparent !important;
  color: var(--primary-dark);
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-caret {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.topbar-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  z-index: 120;
  min-width: 210px;
  max-width: min(92vw, 320px);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16) !important;
  border-radius: 14px !important;
  border: 1px solid var(--line);
  background: #fff;
}

.topbar-menu-panel[hidden] {
  display: none !important;
}

.topbar-menu:nth-child(2) .topbar-menu-panel {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.topbar-menu:nth-child(3) .topbar-menu-panel,
.topbar-menu:last-child .topbar-menu-panel {
  left: auto;
  right: 0;
  transform: none;
}

.topbar,
.topbar-menus,
.topbar-menu {
  overflow: visible !important;
}

.app-sidebar-open-btn {
  flex: 0 0 auto;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

/* —— GT table card —— */
.section-card,
.table-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.section-heading h2 {
  font-size: 1.05rem;
}

.gt-filters-card {
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.gt-filters-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.gt-filters-toolbar input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gt-filters-clear-btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
}

.gt-filter-strip,
.filter-grid.gt-filter-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  grid-template-columns: none !important;
  gap: 6px;
  overflow: visible;
  padding-bottom: 2px;
}

.gt-filter-strip select,
#gtFiltersCard .gt-filter-strip select {
  flex: 1 1 calc(50% - 6px);
  width: auto;
  min-width: calc(50% - 6px);
  max-width: none;
  min-height: 34px;
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

#gtFiltersCard .filter-grid.gt-filter-strip select {
  width: auto;
  min-height: 38px;
  font-size: 13px;
  padding: 6px 28px 6px 8px;
}

.pagination-controls.top-controls,
.resize-controls.vm-table-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: auto;
}

.pagination-controls button,
.resize-controls button,
.vm-tdt-btn {
  flex: 0 0 auto;
  min-height: 32px;
  min-width: 0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 8px;
}

.gt-table-pagination button {
  flex: 0 0 auto;
  min-width: 64px;
}

.operational-table-body {
  max-height: none;
  overflow: visible;
}

#operationalSheetsSection {
  overflow: visible;
  min-height: 0;
  margin-bottom: 18px;
}

#operationalSheet2Card {
  display: block;
  overflow: visible;
  min-height: 0;
}

#operationalSheet2Card .section-heading.compact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

#operationalSheet2Card .section-heading.compact > div:first-child {
  width: 100%;
}

#operationalSheet2Card .section-heading.compact .resize-controls {
  width: 100%;
}

#operationalSheet2Card .gt-filters-card {
  margin: 0 0 8px;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  min-height: 0 !important;
  max-height: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Body.operational-table-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#operationalSheet2Body #gtFiltersCard,
.gt-filters-sticky {
  position: sticky;
  top: 0;
  z-index: 12;
  flex: 0 0 auto;
  margin: 0 0 8px;
  background: var(--panel-soft) !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
}

.gt-table-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex: 0 0 auto;
  padding: 4px 8px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.gt-table-pagination span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.gt-table-pagination button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
}

#operationalSheet2Body.operational-table-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#operationalSheet2Toggle {
  display: none;
}

[data-gt-theme="red-grey-white"] #exportOperationalSheet2,
[data-gt-theme="red-grey-white"] #loadDataBtn2,
[data-gt-theme="red-grey-white"] #operationalSheet2Toggle {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact .eyebrow {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact h2 {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .resize-controls.vm-table-toolbar {
  flex: 0 0 auto !important;
  width: auto !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .resize-controls button,
[data-gt-theme="red-grey-white"] #operationalSheet2Card .vm-tdt-btn,
[data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination button {
  flex: 0 0 auto !important;
  min-height: 30px !important;
  min-width: 0 !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  line-height: 1.2 !important;
}

[data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination {
  padding: 2px 0 4px !important;
  margin: 0 0 4px !important;
  gap: 6px !important;
}

[data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination span {
  font-size: 10px !important;
}

[data-gt-theme="red-grey-white"] .ghost-btn,
[data-gt-theme="red-grey-white"] .pagination-controls button {
  padding: 4px 8px !important;
}

[data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination button {
  min-width: 52px !important;
}

[data-gt-theme="red-grey-white"] .section-card.table-card {
  padding: 4px !important;
}

[data-gt-theme="red-grey-white"] .app-content {
  padding: 4px !important;
  padding-bottom: 0 !important;
}

[data-gt-theme="red-grey-white"] .topbar {
  margin: 0 0 6px !important;
  padding: 8px !important;
  gap: 5px !important;
}

[data-gt-theme="red-grey-white"] .topbar-brand .eyebrow {
  display: none !important;
}

[data-gt-theme="red-grey-white"] .topbar-brand h1 {
  font-size: 0.95rem !important;
}

[data-gt-theme="red-grey-white"] .upload-time-pill {
  padding: 5px 8px !important;
  font-size: 10px !important;
}

[data-gt-theme="red-grey-white"] #gtFiltersCard {
  padding: 4px 5px !important;
  margin: 0 0 3px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact {
  margin-bottom: 2px !important;
  gap: 4px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table td {
  padding: 6px 6px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th {
  min-height: 36px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.app-content main > section + section {
  margin-top: 18px;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection {
  overflow: visible !important;
  min-height: 0 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .table-card {
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
}

#operationalSheetsSection .table-wrap,
#operationalSheetsSection .table-wrapper,
#operationalSheetsSection .gt-table-scroller {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.gt-table-scroller {
  flex: none;
  min-height: auto;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}

.gt-table-scroller .main-table {
  width: max-content;
  min-width: 100%;
}

.gt-hscroll-pane {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}

.gt-table-body-pane,
.gt-table-stack .table-wrap {
  display: block;
  width: max-content;
  min-width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow-x: visible;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  border: none;
  border-radius: 0;
}

.gt-table-stack {
  display: flex;
  flex-direction: column;
  flex: none;
  min-height: auto;
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: #fff;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.gt-fixed-subtotal-bar,
.gt-table-total-bar,
#operationalSheet2Card > .gt-fixed-subtotal-bar,
#operationalSheet2Card > .gt-table-total-bar {
  flex: 0 0 auto;
  width: 100%;
  display: flex !important;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
  min-height: 0;
  border-top: 3px solid var(--primary-dark);
  background: var(--primary) !important;
  box-shadow: 0 -4px 12px rgba(17, 24, 39, 0.12);
  padding: 0;
}

.gt-fixed-subtotal-bar:not(.is-empty),
.gt-table-total-bar:not(.is-empty) {
  display: flex !important;
}

.gt-subtotal-summary {
  display: none !important;
}

.gt-subtotal-table .gt-grand-total-row td,
.gt-subtotal-table .gt-grand-total-cell {
  position: static !important;
  bottom: auto !important;
}

.gt-fixed-subtotal-bar::-webkit-scrollbar,
.gt-table-total-bar::-webkit-scrollbar {
  display: none;
}

.gt-subtotal-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.gt-subtotal-scroll::-webkit-scrollbar {
  display: none;
}

.gt-fixed-subtotal-bar.is-empty,
.gt-table-total-bar.is-empty {
  display: none !important;
}

.gt-subtotal-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
  min-width: 0;
  box-sizing: border-box;
}

.gt-subtotal-summary {
  display: none !important;
}

.gt-subtotal-summary-item {
  white-space: nowrap;
}

.gt-subtotal-summary-item:first-child {
  font-size: 12px;
}

.gt-subtotal-table td,
.gt-subtotal-table .gt-subtotal-cell,
.gt-subtotal-table .gt-grand-total-cell {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  padding: 6px 6px !important;
  text-align: center !important;
  white-space: nowrap;
  vertical-align: middle;
  border: none;
  box-sizing: border-box;
}

.gt-subtotal-table td strong,
.gt-subtotal-table .gt-subtotal-cell strong,
.gt-subtotal-table .gt-grand-total-cell strong {
  color: #fff !important;
  font-weight: 800 !important;
}

.gt-metric-totals-summary {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  min-height: 38px;
  padding: 8px 10px;
  margin: 0 0 6px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--primary) 5%, #fff) 100%);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.gt-metric-totals-summary[hidden] {
  display: none !important;
}

.gt-metric-totals-summary .gt-metric-total-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  white-space: nowrap;
}

.gt-metric-totals-summary .gt-metric-total-chip strong {
  color: var(--primary);
}

.gt-metric-totals-summary .gt-metric-total-chip--count {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
}

.gt-metric-totals-summary .gt-metric-total-chip--count strong {
  color: #fff;
}

.main-table th {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  position: sticky;
  top: 0;
  z-index: 10;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th[data-key],
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th.sticky-col,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.vm-section-highlight,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.vm-section-highlight-start,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.vm-section-highlight-end {
  position: sticky !important;
  top: 0 !important;
  z-index: 12 !important;
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18) !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .th-sort-label,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .th-sort-label span {
  color: #fff !important;
  font-weight: 700;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .column-filter-toggle {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .column-resize-handle,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .column-resize-handle::after {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table td.vm-section-highlight-start,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table td.vm-section-highlight-end {
  border-left: none !important;
  border-right: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.vm-section-highlight-start {
  border-left: 2px solid rgba(255, 255, 255, 0.55) !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.vm-section-highlight-end {
  border-right: 2px solid rgba(255, 255, 255, 0.55) !important;
}

.main-table td {
  font-size: 12px;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot .gt-grand-total-row td,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot .gt-grand-total-cell {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 7 !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-top: 3px solid var(--primary-dark) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  padding: 9px 7px !important;
  text-align: center !important;
  box-shadow: 0 -4px 12px rgba(17, 24, 39, 0.18) !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot .gt-grand-total-row td strong,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot .gt-grand-total-cell strong {
  color: #fff !important;
  font-weight: 800 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-fixed-subtotal-bar,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-table-total-bar {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: visible !important;
  z-index: 39;
  position: relative;
  padding: 0 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-fixed-subtotal-bar.is-empty,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-table-total-bar.is-empty {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-fixed-subtotal-bar:not(.is-empty),
[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-table-total-bar:not(.is-empty) {
  display: flex !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-table .gt-grand-total-row td,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-table .gt-grand-total-cell {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  padding: 6px 6px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-table .gt-grand-total-row td strong,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-table .gt-grand-total-cell strong {
  color: #fff !important;
  font-weight: 800 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot.gt-table-foot {
  display: none;
}

/* —— Photo capture (Expense Tracker style) —— */
.vm-photo-empty,
.vm-photo-add {
  min-height: 52px;
  min-width: 52px;
  border-radius: 12px;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--line));
  background: linear-gradient(180deg, #fff 0%, var(--panel-soft) 100%);
  color: var(--primary-dark);
  font-weight: 800;
}

.vm-photo-empty--upload,
.vm-photo-add--upload,
.vm-photo-pick-btn {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  color: #374151;
}

.vm-photo-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 6px 4px;
  border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 4%, var(--panel));
  cursor: pointer;
  font: inherit;
}

.vm-photo-empty--camera,
.vm-photo-add--camera {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  color: var(--primary-dark);
}

.vm-photo-empty-icon {
  font-size: 1.25rem;
}

.photo-capture-modal {
  z-index: 1600;
  padding: 0;
  place-items: stretch;
}

.photo-capture-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #111827;
  border: none;
}

.photo-capture-head strong {
  color: #fff;
}

.photo-capture-note {
  color: #d1d5db;
}

.photo-capture-video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 16px;
  object-fit: cover;
  background: #000;
}

.photo-capture-actions {
  justify-content: stretch;
  gap: 10px;
}

.photo-capture-actions .primary-btn,
.photo-capture-actions .ghost-btn {
  flex: 1;
  min-height: 52px;
  font-size: 16px;
  border-radius: 12px;
}

.photo-capture-actions .primary-btn {
  background: var(--primary);
}

.photo-capture-actions .ghost-btn {
  background: #374151;
  color: #fff;
  border-color: #4b5563;
}

/* —— Bottom nav (mobile default) —— */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tbody td.sticky-col,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tbody td.sticky-col-edge,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tbody [class*="sticky-col"] {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  border-right: 1px solid var(--line) !important;
  box-shadow: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tbody td.sticky-col-edge::after {
  display: none;
}

/* —— Bottom nav (mobile default) —— */
.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 4px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.1);
}

.app-bottom-nav-btn {
  min-height: 42px;
  padding: 4px 2px;
  border-radius: 8px;
  color: var(--muted);
}

.app-bottom-nav-btn.is-active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, #fff);
}

.app-bottom-nav-label {
  font-size: 10px;
  font-weight: 800;
}

#themeToggle,
.topbar-menu-item#downloadPdf {
  display: none !important;
}

.status-pill {
  border-color: var(--line);
  background: var(--panel-soft);
}

/* —— Desktop enhancement —— */
@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .app-layout {
    flex-direction: row;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
    width: 240px;
    flex-shrink: 0;
  }

  .app-sidebar-open-btn {
    display: none;
  }

  .app-sidebar-collapse-btn {
    display: inline-flex;
  }

  .app-layout.sidebar-collapsed .app-sidebar {
    width: 72px;
  }

  .app-content {
    padding: 16px 18px 0;
  }

  [data-gt-theme="red-grey-white"] .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px 16px !important;
    padding: 14px 18px !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-meta {
    width: auto !important;
  }

  [data-gt-theme="red-grey-white"] .upload-time-pill {
    width: auto !important;
    white-space: nowrap;
  }

  [data-gt-theme="red-grey-white"] .topbar-menus {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu-toggle,
  [data-gt-theme="red-grey-white"] .user-menu-toggle {
    width: auto !important;
    min-width: 96px !important;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #gtFiltersCard .gt-filter-strip {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  #gtFiltersCard .gt-filter-strip select {
    flex: 1 1 140px;
    max-width: none;
    min-width: 120px;
  }

  .app-bottom-nav {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #gtFiltersCard .gt-filter-strip select {
    flex: 1 1 160px;
  }

  .operational-table-body {
    max-height: min(68vh, 720px);
  }
}

/* —— GT mobile layout lock (beats style.css media queries) —— */
@media (max-width: 959px) {
  [data-gt-theme="red-grey-white"] .topbar {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    margin: 0 0 10px !important;
    padding: 12px !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-meta,
  [data-gt-theme="red-grey-white"] .topbar-menus {
    justify-content: stretch !important;
    width: 100% !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menus {
    flex-wrap: nowrap !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu-toggle,
  [data-gt-theme="red-grey-white"] .user-menu-toggle {
    min-height: 36px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  [data-gt-theme="red-grey-white"] .topbar,
  [data-gt-theme="red-grey-white"] .topbar-menus,
  [data-gt-theme="red-grey-white"] .topbar-menu {
    overflow: visible !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    z-index: 140 !important;
    min-width: 210px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18) !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu:nth-child(1) .topbar-menu-panel {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu:nth-child(2) .topbar-menu-panel {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu:nth-child(3) .topbar-menu-panel {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }

  [data-gt-theme="red-grey-white"] .topbar-menu-panel .topbar-menu-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    min-height: 40px;
    border-radius: 10px;
  }

  [data-gt-theme="red-grey-white"] #operationalSheetsSection {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card.table-card {
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 6px !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Body.operational-table-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  [data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination {
    display: flex !important;
    flex: 0 0 auto !important;
    padding: 2px 0 6px !important;
    margin: 0 0 4px !important;
  }

  [data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination span {
    font-size: 11px !important;
  }

  [data-gt-theme="red-grey-white"] #gtFiltersCard .filter-grid.gt-filter-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    overflow: visible !important;
  }

  [data-gt-theme="red-grey-white"] #gtFiltersCard .gt-filter-strip select {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: calc(50% - 4px) !important;
    max-width: none !important;
  }

  [data-gt-theme="red-grey-white"] #loadDataBtn2,
  [data-gt-theme="red-grey-white"] #exportOperationalSheet2,
  [data-gt-theme="red-grey-white"] #operationalSheet2Toggle {
    display: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table {
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--gt-bottom-nav-h) + var(--gt-footer-total-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-shell {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-layout {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-content {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0 !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-content main {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 0;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card.table-card {
    display: block !important;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-content > .topbar {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 6px 8px !important;
    gap: 4px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06) !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .brand-mark {
    width: 32px !important;
    height: 32px !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheetsSection {
    display: block !important;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    gap: 0 !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card .section-heading.compact {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 4px 6px 2px !important;
    gap: 4px !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card .section-heading.compact h2 {
    font-size: 0.88rem !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #gtFiltersCard {
    margin: 0 !important;
    padding: 4px 6px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #gtFiltersCard .gt-filter-strip select {
    min-height: 30px !important;
    padding: 3px 6px !important;
    font-size: 11px !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #gtFiltersCard .gt-filters-toolbar input[type="search"] {
    min-height: 28px !important;
    padding: 4px 6px !important;
    font-size: 11px !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body.operational-table-body,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body.gt-table-scroll-pane {
    flex: none !important;
    min-height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body #gtFiltersCard {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body .section-heading.compact {
    margin: 0 0 4px !important;
    padding: 4px 6px 2px !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card .gt-table-stack {
    flex: none !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    border: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card .gt-table-scroller {
    flex: none !important;
    min-height: auto !important;
    width: 100% !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body .main-table thead th,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body .main-table th[data-key] {
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body .main-table thead th.sticky-col {
    z-index: 21 !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card > .gt-fixed-subtotal-bar:not(.is-empty),
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card > .gt-table-total-bar:not(.is-empty) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--gt-bottom-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex: none !important;
    width: 100% !important;
    min-height: var(--gt-footer-total-h) !important;
    overflow: visible !important;
    z-index: 39 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #gtSubtotalScroll2 {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card .gt-hscroll-pane {
    display: none !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .gt-table-stack > .gt-table-pagination {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-bottom: 1px solid var(--line) !important;
    background: var(--panel-soft) !important;
    position: relative !important;
    z-index: 2 !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card > .gt-fixed-subtotal-bar:not(.is-empty),
  [data-gt-theme="red-grey-white"] #operationalSheet2Card > .gt-table-total-bar:not(.is-empty),
  [data-gt-theme="red-grey-white"] #operationalSheet2Card .gt-table-stack > .gt-fixed-subtotal-bar:not(.is-empty),
  [data-gt-theme="red-grey-white"] #operationalSheet2Card .gt-table-stack > .gt-table-total-bar:not(.is-empty) {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    z-index: 5 !important;
    padding: 0 !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Body #gtFiltersCard {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
    position: static !important;
    top: auto !important;
    z-index: 1 !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact .eyebrow {
    display: none !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact h2 {
    margin: 0 !important;
    font-size: 0.95rem !important;
  }

  [data-gt-theme="red-grey-white"] #gtFiltersCard {
    padding: 6px 8px !important;
    margin: 0 0 6px !important;
  }

  [data-gt-theme="red-grey-white"] #gtFiltersCard .gt-filters-toolbar {
    margin-bottom: 6px !important;
  }

  [data-gt-theme="red-grey-white"] #gtFiltersCard .gt-filter-strip select {
    min-height: 34px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact,
  [data-gt-theme="red-grey-white"] #gtFiltersCard {
    flex: 0 0 auto !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .section-heading.compact {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    grid-template: none !important;
    grid-template-areas: none !important;
    position: static !important;
    z-index: auto !important;
    margin-bottom: 4px !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .resize-controls.vm-table-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  [data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination {
    display: flex !important;
    flex: 0 0 auto !important;
    padding: 2px 0 4px !important;
    margin: 0 0 4px !important;
    gap: 6px !important;
  }

  [data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination span {
    font-size: 10px !important;
  }

  [data-gt-theme="red-grey-white"] #operationalSheet2Card .resize-controls button,
  [data-gt-theme="red-grey-white"] #operationalSheet2Card .vm-tdt-btn,
  [data-gt-theme="red-grey-white"] #gtTablePagination.gt-table-pagination button {
    flex: 0 0 auto !important;
    min-height: 30px !important;
    min-width: 0 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  [data-gt-theme="red-grey-white"] #gtFiltersCard {
    position: static !important;
    display: block !important;
    margin: 0 0 6px !important;
    clear: both !important;
    z-index: auto !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #dataInputCard,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #uploadHistoryCard,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #userManagementPanel,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #systemEnginePanel {
    display: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-upload #operationalSheetsSection {
    display: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-upload #dataInputCard {
    display: block !important;
  }

  [data-gt-theme="red-grey-white"] .app-content main > section + section {
    margin-top: 0 !important;
  }
}

/* GT mobile page scroll — beats style.css fixed table box (operational-visible-rows) */
@media (max-width: 959px) {
  [data-gt-theme="red-grey-white"] html:has(body.gt-panel-table) {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table #dashboardCapture,
  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-shell,
  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-layout,
  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-content,
  [data-gt-theme="red-grey-white"] body.gt-panel-table .app-content main,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheetsSection,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Card.table-card,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheetsSection .table-card {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: none !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .operational-table-body,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheet2Body {
    overflow: visible !important;
    flex: none !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .gt-table-stack,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #gtTableStack2 {
    overflow: visible !important;
    flex: none !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
  }

  [data-gt-theme="red-grey-white"] body.gt-panel-table .gt-table-scroller,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #gtTableScroller2,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheetsSection .table-wrap,
  [data-gt-theme="red-grey-white"] body.gt-panel-table #operationalSheetsSection .table-wrapper {
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
    min-height: auto !important;
    height: auto !important;
    flex: none !important;
  }
}
