/* ==========================================================================
   Variables & Utilities
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700&display=swap');

:root {
  /* Primary colors - corporate blues */
  --primary-color: #21428c; /* r33 g66 b140 */
  --primary-color-light: #f4f6fa;

  /* Dashboard section colors */
  --section-color: #f2d16b;
  --section-font-color: darkslategrey;
  --section-background-color: #e7f7ff;

  /* Accent colors - corporate red */
  --accent-color: #b87f70; /* r184 g70 b38 */
  --accent-color-light: rgba(184, 70, 38, 0.2);
  --accent-color01: rgba(184, 70, 38, 0.1);

  /* Neutral colors - corporate grays */
  --neutral-dark: #414042; /* r65 g64 b66 */
  --neutral-light: #a7a9ab; /* r167 g169 b171 */

  /* Background colors */
  --background-color: #4e84ba;
  --background-color-light: rgba(33, 66, 140, 0.03);

  /* Table colors */
  --table-row-color: rgba(33, 66, 140, 0.05);
  --table-row-color-light: rgba(33, 66, 140, 0.02);

  /* Text colors */
  --text-color: #414042;
  --text-color-light: #393939;

  /* Border colors */
  --border-color: #e2e8f0;
  --border-color-dark: #72777d;
  --temp-border: 1px solid red;

  /* Font families */
  --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --logo-font-family: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --headline-font-family: 'Aleo Regular', -apple-system, BlinkMacSystemFont, sans-serif;
  --tagline-font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;

  /* font weights */
  --font-weight-bold: 700;

  /* Transitions and shadows */
  --transition-speed: 0.1s;
  --box-shadow-sm: 0 1px 2px rgba(33, 66, 140, 0.05);
  --box-shadow-md: 0 2px 4px rgba(33, 66, 140, 0.08);
  --box-shadow-lg: 0 4px 6px rgba(33, 66, 140, 0.12);

  /* Additional elements */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #1a3570 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);

  /* Task bar colors */
  --task-bar-color: #c6c6c6;
  --task-bar-color-parent: var(--primary-color);
}

/* Font Weights */
.font-light {
  font-weight: 300;
}
.font-regular {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Utility Classes */
.text-italic {
  font-style: italic;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
  color: purple;
}
.bg-white {
  background-color: #fff;
}
.shadow-sm {
  box-shadow: var(--box-shadow-sm);
}
.shadow-md {
  box-shadow: var(--box-shadow-md);
}
.shadow-lg {
  box-shadow: var(--box-shadow-lg);
}
mark {
  background-color: #ff0;
  color: #000;
}
red {
  color: red;
}

.temp-border {
  border: 1px solid var(--temp-border) !important;
}
.transition {
  transition: all var(--transition-speed) ease;
}
.transition-transform {
  transition: transform var(--transition-speed) ease;
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.border-bottom {
  border-bottom: 2px solid var(--border-color);
}
/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  line-height: 1.6;
}

#narrative {
  font-size: 1rem;
  font-variant-caps: normal;
  line-height: 1.2rem;
  font-style: italic;
  font-weight: normal;
  text-align: left;
  font-family: var(--tagline-font-family);
}

.narrative-text {
  text-align: left;
  font-style: normal;
  font-size: small;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--primary-color-light);
  position: relative;
  transition: margin-left var(--transition-speed) ease;
  overflow: hidden;
}

.page-wrapper-row {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-wrapper-top {
  box-shadow: var(--box-shadow-sm);
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
}

.page-wrapper-middle {
  flex: 1;
  padding: 2rem 0;
  background-color: var(--primary-color-light);
  overflow-y: scroll;
  height: calc(100vh - 120px); /* Adjust based on header height */
}

.container-fluid {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.page-header {
  width: 100%;
}

.page-header-top {
  padding: 0;
  height: 60px;
}

.page-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-logo img {
  height: 70px;
  width: auto;
  transition: transform 0.2s ease;
}

.page-logo img:hover {
  transform: scale(1.02);
}

.nav-bar {
  background: var(--primary-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  font-variant-caps: small-caps;
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-item {
  color: #fdfdfd;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background-color: rgba(243, 248, 244, 0.15);
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-item:hover {
  background-color: rgba(243, 248, 244, 0.2);
  color: #ffffff;
}

.nav-item.active {
  background-color: rgba(243, 248, 244, 0);
  font-weight: 700;
}

.c-subheader {
  background-color: var(--primary-color);
}

/* ==========================================================================
   Side Panel
   ========================================================================== */
.side-panel {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #fbfbfb;
  box-shadow: var(--box-shadow-md);
  border-right: 1px solid var(--border-color);
  transition: left var(--transition-speed) ease;
  z-index: 1000;
}

.side-panel.open {
  left: 0;
}

.side-panel-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.side-panel-content {
  padding: 1rem;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.toggle-sidebar-container {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: 0 0 0 2rem;
}

/* Login Icon Styles */
.login-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem 0 0;
}

.login-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  background-color: transparent;
}

.login-icon:hover {
  color: var(--accent-color);
  background-color: var(--primary-color-light);
  transform: scale(1.1);
}

.login-icon:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Dashboard Components
   ========================================================================== */
.ce-dashboard {
  animation-name: animatetop;
  animation-duration: 1s;
  margin-top: 25px;
  padding-right: 25px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  overflow-y: hidden;
}

.ce-dashboard .ui-tabs .ui-tabs-nav {
  background: transparent;
  border: none;
}

.ce-impact-analysis {
  animation-name: animatetop;
  animation-duration: 1s;
  margin-top: 25px;
  padding-right: 25px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  overflow-y: hidden;
}

.ce-impact-analysis .ce-magic-table-wrapper {
  max-height: 300px;
  overflow: auto;
}
/* ==========================================================================
   Portlets
   ========================================================================== */
.ce-portlet-wrapper {
  padding: 0 25px 25px 25px;
}

.ce-portlet {
  padding: 1.5rem 1rem 1rem 1rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow-lg);
  background: white;
  transition: all 0.3s ease;
  display: flex;
  margin-bottom: 15px;
}

.ce-portlet-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0 1rem;
  margin-bottom: 0.5rem;
}

.ce-portlet-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.ce-portlet-narrative {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-color);
  padding: 1rem 2rem;
}

.ce-portlet-body-content {
  margin-bottom: 1em;
  height: 100%;
  width: 100%;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.ce-magic-table-container {
  border: 1px solid var(--border-color-dark);
  border-radius: 4px;
  background: transparent;
  box-shadow: var(--box-shadow-sm);
  margin: 1rem 0;
}

.ce-magic-table-wrapper {
  background: white;
  height: 100%;
  overflow: visible;
  position: relative;
  border: solid 1px var(--border-color-dark);
}

.ce-magic-table {
  font-size: 0.95rem;
  width: 100%;
  border-collapse: collapse;
}

.ce-magic-table.compact td,
.ce-magic-table.compact th {
  padding: 0.5rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

.ce-magic-table.ultraCompact td,
.ce-magic-table.ultraCompact th {
  padding: 0.1rem !important;
  font-size: 0.75rem;
  line-height: 1 !important;
}

/* Hierarchical List Styles */
.ce-hierarchical-list-wrapper {
  width: 100%;
  background: transparent;
  transition: all 1.3s ease;
}

.ce-hierarchical-list {
  padding: 0;
  margin: 0;
}

.ce-hierarchical-item {
  padding: 8px 12px;
  cursor: pointer;
}

.ce-hierarchical-item:hover {
  background-color: #f5f5f5;
}

.ce-hierarchical-item:last-child {
  border-bottom: none;
}

.ce-hierarchical-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.ce-hierarchical-icon {
  display: inline-block;
  width: 16px;
  text-align: center;
  user-select: none;
}

.ce-hierarchical-description {
  flex: 1;
  padding-left: 4px;
}

.ce-hierarchical-item.compact {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.ce-hierarchical-item.ultraCompact {
  padding: 3px 6px;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* Child container transitions */
.ce-hierarchical-child-container {
  overflow: hidden;
}

.spro-activity {
  color: blue;
}

.spro-s4impact {
  color: red;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
}

.ce-magic-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: var(--box-shadow-sm);
}
.ce-magic-table.compact tr {
  height: 2rem;
}

.ce-magic-table tr:nth-child(odd) {
  background-color: var(--section-background-color);
}

/* Override banded rows when no-banded-rows class is applied */
.ce-magic-table.no-banded-rows tr:nth-child(odd) {
  background-color: transparent;
}

.ce-magic-table.no-banded-rows tr:nth-child(even) {
  background-color: transparent;
}

.ce-magic-table th {
  background: var(--background-color-light);
  padding: 1rem;
  font-weight: 600;
  color: #0b0b0b;
}

.ce-magic-table td {
  vertical-align: top !important;
  padding: 1rem;
  color: var(--text-color);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.ce-magic-table tr {
  background-color: var(--table-row-color-light);
  animation: fadeIn 0.2s ease-out 50ms both;
}

.table-column-separator {
  border-left: 2px solid var(--border-color-dark) !important;
}

tr > #section {
  color: var(--primary-color-light);
  font-weight: var(--font-weight-bold);
  padding: 1rem 2rem 1rem 2rem;
  background-color: var(--primary-color);
}

#section #narrative {
  font-size: 0.8rem;
}

.section-divider {
  height: 10px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  margin: 2rem 0;
  border: none;
}

#footer {
  border-top: 1px dotted var(--neutral-light);
  font-size: 0.7rem;
}

#footer::before {
  content: '\f0a4'; /* Font Awesome hand-pointing-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  margin-right: 5px;
  font-size: 1.2rem;
}

.ce-section {
  border: none;
}

/* ==========================================================================
   Section Headers - Modern Design
   ========================================================================== */
.ce-section-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 100%);
  border-radius: 12px 12px 0 0;
  padding: 1.5rem 2rem;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(33, 66, 140, 0.15);
  position: relative;
  overflow: hidden;
}

.ce-section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ffd23f);
}

.ce-section-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ce-section-header-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.ce-section-header-text {
  flex: 1;
}

.ce-section-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.ce-section-header-narrative {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Alternative: Card-style section header */
.ce-section-header-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-color);
}

.ce-section-header-card .ce-section-header-title {
  color: var(--primary-color);
  text-shadow: none;
}

.ce-section-header-card .ce-section-header-narrative {
  color: var(--text-color);
  text-shadow: none;
}

/* Alternative: Minimal section header */
.ce-section-header-minimal {
  background: transparent;
  border-bottom: 2px solid var(--primary-color);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.ce-section-header-minimal .ce-section-header-title {
  color: var(--primary-color);
  text-shadow: none;
  font-size: 1.5rem;
}

.ce-section-header-minimal .ce-section-header-narrative {
  color: var(--text-color);
  text-shadow: none;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.ce-modal {
  display: flex;
  visibility: hidden;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.ce-modal-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--box-shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color-dark);
  padding: 0.5rem 1rem;
  max-height: 80vh;
  width: fit-content;
  max-width: 90vw;
  overflow: hidden;
}

.ce-modal-content #content {
  padding: 0.1rem;
  height: 100%;
  overflow-y: auto;
}

.ce-modal-content #narrative {
  padding: 0.1rem 0.5rem;
  font-size: smaller;
  max-height: 20%;
  overflow-y: auto;
}

.ce-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  height: 20%;
  border-bottom: 1px solid var(--border-color);
}

.ce-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
}

.ce-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.ce-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.ce-close-modal {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  color: #666;
  transition: color 0.2s;
}

.ce-close-modal:hover {
  color: #333;
}

/* ==========================================================================
   Metrics & Cards
   ========================================================================== */

.ce-metric-wrapper {
  border-right: 1px var(--border-color) solid !important;
  padding: 2rem 0 !important;
  width: 40% !important;
  min-width: 40% !important;
  max-width: 40% !important;
  padding-right: 2rem !important;
  padding-left: 2rem !important;
  box-sizing: border-box !important;
}

.ce-metric-wrapper:first-child {
  padding-top: 2rem !important;
}

.ce-metric-wrapper:last-child {
  padding-bottom: 2rem !important;
}

.ce-metric-wrapper,
.ce-mv-wrapper #title {
  color: rgb(36, 36, 36);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-color);
}

.ce-metric-wrapper,
.ce-mv-wrapper #narrative {
  font-size: 0.8rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mv-content {
  width: 100%;
  flex-direction: column;
  margin: 0.5rem auto;
  gap: 10px;
  display: flex;
  justify-content: space-between;
}

.mv-content #narrative {
  padding-bottom: 0.5rem;
  position: relative;
}

.ce-mv-wrapper {
  width: 60%;
  min-width: 60% !important;
  max-width: 60% !important;
}

.ce-mv-subcomponent {
  border: 1px solid red;
}

.mv-cell tr:nth-child(even) {
  background-color: var(--table-row-color);
}

.mv-cell tr:nth-child(odd) {
  background-color: var(--table-row-color-light);
}

.metric-title {
  font-size: 1.2rem;
}
/* ==========================================================================
   Branding
   ========================================================================== */
hawkeye {
  font-family: var(--logo-font-family);
  font-weight: 700;
  color: var(--primary-color);
}

product {
  font-family: var(--font-family);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Export Button Styles */
.ce-export-container {
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.ce-export-button {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--box-shadow-sm);
  transition: all var(--transition-speed) ease;
}

.ce-export-button:hover {
  background-color: #1a3570;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.ce-export-button i {
  font-size: 1.2rem;
}

/* Table Factory specific styles */
.ce-table-group-header {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: center;
  border: 1px solid var(--border-color) !important;
}

.ce-table-header {
  position: sticky;
  top: 0;
  z-index: 2;
  user-select: none;
}

.ce-table-header-sortable {
  cursor: pointer;
}

.ce-table-header-non-sortable {
  cursor: default;
}

.ce-table-header-align-left {
  text-align: left;
}

.ce-table-header-align-right {
  text-align: right;
}

.ce-table-header-align-center {
  text-align: center;
}

.ce-table-sort-indicator {
  margin-left: 5px;
  opacity: 0.5;
}

.ce-table-sort-indicator.active {
  opacity: 1;
}

.ce-table-cell-numeric {
  text-align: right;
}

.ce-table-cell-drilldown {
  cursor: pointer;
}

.ce-table-cell-auto-width {
  width: auto;
}

.ce-table-cell-boolean {
  text-align: center;
}

/* Table row separator styles */
.ce-table-row-separator-zero-height {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
  font-size: 0;
  background-color: transparent;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.ce-table-row-separator-with-text td {
  text-align: center;
  font-weight: var(--font-weight-bold);
  font-size: medium !important;
  color: var(--accent-color);
  padding: 8px;
  background-color: #f9f9f9;
  border-top: 2px solid #e0e0e0;
}

.ce-table-row-separator-border-top td {
  border-top: 2px solid #580707;
  height: 0;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
  background-color: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

/* Color utility classes */
.red {
  color: #dc3545 !important;
}

.green {
  color: #28a745 !important;
}

.blue {
  color: #007bff !important;
}

.yellow {
  color: #ffc107 !important;
}

.orange {
  color: #fd7e14 !important;
}

.purple {
  color: #6f42c1 !important;
}

.pink {
  color: #e83e8c !important;
}

/* ==========================================================================
   Simple Gantt Chart Styles
   ========================================================================== */

.gantt-wrapper {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-color-dark);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--box-shadow-md);
  overflow: hidden;
}

.simple-gantt-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-family: var(--font-family);
  background: #ffffff;
  table-layout: fixed;
}

.simple-gantt-table th,
.simple-gantt-table td {
  border: 1px solid #dee2e6;
  padding: 2px;
  vertical-align: middle;
}

.simple-gantt-table thead th {
  border-bottom: 1px solid var(--border-color-dark);
}

.task-header {
  width: 200px;
  max-width: 200px;
  background: #f8f9fa;
  font-weight: bold;
  text-align: left;
  color: #495057;
  border-bottom: 2px solid var(--border-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.month-header {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: bold;
  color: #495057;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
}

.week-header {
  background: #f8f9fa;
  font-size: 10px;
  color: #495057;
  min-width: 40px;
  border-bottom: 2px solid var(--border-color);
}

.simple-gantt-table .task-cell {
  text-align: left;
  background: transparent;
  width: 200px;
  max-width: 200px;
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}

.simple-gantt-table .task-cell.parent-task {
  padding: 10px !important;
}

.task-cell .child-task {
  border-right: 1px solid var(--border-color);
}
.timeline-cell {
  background: transparent;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  position: relative;
  border: 1px solid var(--border-color) !important;
  border-collapse: collapse;
  overflow: hidden;
}

.task-name {
  font-weight: bold;
  font-size: 16px;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.task-description {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
  margin-top: 1px;
  text-align: left;
  padding-left: 10px;
  max-width: 100%;
  display: block;
}

.parent-task .task-name {
  font-weight: bold;
  font-size: 14px;
  margin-left: 10px;
  color: #2c3e50;
}

.child-task .task-name {
  font-weight: normal;
  font-size: 12px;
  margin-left: 10px;
  color: #2c3e50;
}
.timeline-cell.parent-task {
  vertical-align: middle !important;
}
.task-bar {
  background: var(--task-bar-color);
  height: 16px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.parent-task .task-bar {
  background: var(--task-bar-color-parent);
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 20px;
}

/* Emphasize vertical gridline at the end of every 4 weeks (header row only) */
.simple-gantt-table thead tr th.week-header:nth-of-type(4n + 1) {
  border-right: 1px solid var(--border-color-dark);
}

/* Command Strip Styles */
.command-strip {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2rem;
}

.command-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.command-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  background-color: transparent;
  color: var(--primary-color);
}

.command-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.command-btn i {
  font-size: 0.875rem;
}

/* Side Panel Info Rows */

.panel-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.info-row {
  overflow: hidden;
  font-size: 0.7rem;
  display: flex;
  padding-left: 0.5rem;
  justify-content: space-evenly;
}
.info-label {
  font-weight: 600;
  max-width: 40%;
  color: var(--text-color);
  flex: 1;
}

.info-value {
  font-weight: 400;
  color: #212529;
  text-align: left;
  flex: 1;
}

.panel-section h4 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.panel-section h2 {
  color: var(--primary-color);
  font-weight: 700;
}

/* Table of Contents Styles */
.toc-container {
  overflow-y: auto;
  overflow-x: hidden;
}

.toc-link {
  display: flex;
  align-items: center;
  padding: 0 0.75rem 0 0;
  text-decoration: none;
  color: var(--text-color);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toc-link:hover {
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
}

.toc-dashboard .toc-link {
  font-weight: 600;
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 0.5rem;
}

.toc-section .toc-link {
  margin-left: 0.25rem;
}

.toc-metric .toc-link {
  font-weight: 400;
  margin-left: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-color-light);
}

.toc-number {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--primary-color);
  min-width: 1.5rem;
}

.toc-arrow {
  margin-right: 0.5rem;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.toc-section:hover .toc-arrow {
  transform: rotate(90deg);
}

.toc-hidden {
  opacity: 0.5;
}

.toc-hidden .toc-link {
  color: var(--text-color-light);
}

.toc-metric-link {
  border-left: 2px solid #e9ecef;
  padding-left: 0.75rem;
}

/* Clickable column styles */
.clickable-column {
  cursor: pointer;
  text-decoration: underline;
  transition: background-color 0.2s ease;
}

.clickable-column:hover {
  background-color: #f0f0f0;
}

.clickable-column:active {
  background-color: #e0e0e0;
}

#spro-tree-container {
  border: 1px solid var(--border-color-dark);
  border-radius: 4px;
  box-shadow: var(--box-shadow-md);
  background: white;
  height: 380px;
  overflow-y: scroll;
}

#visualization {
  max-height: 300px;
  margin: 0 auto;
  overflow: auto;
  min-width: 50%;
  max-width: 100%;
}

/* RicefSearchBar styles */
.ricef-search-bar {
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
}

.search-input-container {
  display: flex;
  gap: 10px;
  width: 80%;
  margin: 0 auto;
  height: 100%;
  align-items: center;
}

.search-input {
  flex: 1;
  height: 50px;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
}

.search-button {
  height: 50px;
  padding: 0 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: #0056b3;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-item h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 18px;
}

.search-result-item p {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}

/* ProductionImpact styles */

.impact-metrics {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.metric-card {
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-card h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
}

.metric-value {
  font-size: 32px;
  font-weight: bold;
  color: #007bff;
  margin: 10px 0;
}

.metric-label {
  font-size: 14px;
  color: #666;
}

.metric-visualization {
  font-size: 18px !important;
  font-weight: bold;
}

.impact-details {
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.impact-details h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.details-content {
  min-height: 100px;
}

.detail-item {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 4px;
}

.loading {
  text-align: center;
  color: #007bff;
  font-style: italic;
  padding: 20px;
}

.error {
  text-align: center;
  color: #dc3545;
  font-weight: bold;
  padding: 20px;
}

/* SummaryReport styles */
.ia-summary-report {
  width: 100%;
  padding: 0 20px 20px 20px;
  width: 100%;
}

.ia-not-applicable {
  text-align: center;
  color: var(--primary-color);
  padding: 20px;
}
.summary-header {
  margin-bottom: 10px;
  text-align: center;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-overview {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.overview-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  min-width: 150px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.overview-card h4 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 14px;
}

.impact-level,
.systems-count,
.risk-level {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent-color);
  margin: 10px 0;
}

.summary-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-section {
  flex: 1;
  min-width: 300px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.findings-list,
.recommendations-list {
  margin: 0;
  padding-left: 20px;
}

.findings-list li,
.recommendations-list li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.4;
}

/* Autocomplete styles */
.autocomplete-dropdown {
  position: absolute;
  font-size: 10px;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.autocomplete-item {
  padding: 5px 5px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.autocomplete-label {
  font-weight: bold;
  font-size: 12px;
  color: #333;
  margin-bottom: 2px;
}

.autocomplete-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #666;
}

.autocomplete-type {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.autocomplete-desc {
  color: #666;
  font-style: italic;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #f8f9fa;
  color: #007bff;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-load-more {
  border-top: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.autocomplete-load-more-btn {
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  color: #007bff;
  font-size: 10px;
  transition: background-color 0.2s ease;
}

.autocomplete-load-more-btn:hover {
  background-color: #e3f2fd;
}

.autocomplete-load-more-btn i {
  margin-right: 4px;
}

.autocomplete-total-count {
  border-top: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  padding: 4px 8px;
  text-align: center;
  font-size: 9px;
  color: #666;
}

.ricef-search-bar {
  position: relative;
}

/* Impact Analysis Section Headers */
.ia-section-header {
  display: flex;
  align-items: center;
  margin: 20px 0 16px 0;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-color);
}

.ia-section-header-sm {
  display: flex;
  align-items: center;
  margin: 20px 0 16px 0;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
}

.ia-section-line {
  flex: 1;
  height: 1px;
  background-color: #ddd;
}

.ia-section-title {
  white-space: nowrap;
}

/* Impact Analysis Object Metadata */
.ia-object-metadata {
  background: white;
  padding: 0px 20px 10px 20px;
}

.ia-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.ia-metadata-item {
  padding: 4px 0;
}

.ia-metadata-item:last-child {
  border-bottom: none;
}

.ia-metadata-item-full {
  grid-column: 1 / -1;
}

.ia-metadata-label {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ia-metadata-value {
  font-size: 11px;
  color: #333;
  font-weight: 500;
  word-break: break-word;
}

/* Convert "Yes" to green checkmark using data attributes */
.ia-metadata-value[data-value='Yes'] {
  color: #28a745;
}

.ia-metadata-value[data-value='Yes']::before {
  content: '✓ ';
  color: #28a745;
  font-weight: bold;
}

/* Convert "No" to red X using data attributes */
.ia-metadata-value[data-value='No'] {
  color: #dc3545;
}

.ia-metadata-value[data-value='No']::before {
  content: '✗ ';
  color: #dc3545;
  font-weight: bold;
}

/* Hide text content, show only icons */
.ia-metadata-value[data-value='Yes'],
.ia-metadata-value[data-value='No'] {
  font-size: 0;
}

.ia-metadata-value[data-value='Yes']::before,
.ia-metadata-value[data-value='No']::before {
  font-size: 14px;
}

.ia-impact-yes {
  color: #dc3545;
}

.ia-impact-no {
  color: #28a745;
}

.ia-metadata-value i {
  margin-right: 6px;
}

.ia-impact-details-section {
  margin: 0 auto;
  font-size: 12px !important;
}

/* Boolean icons for tables */
.boolean-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.boolean-true {
  color: #28a745;
}

.boolean-false {
  color: #dc3545;
}

.boolean-icon i {
  margin-right: 4px;
}

/* Clickable cards */
.clickable-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.clickable-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.session-timeout-dialog {
	position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    padding: 20px;
    font-size: 30px;
}

.session-timeout-dialog button {
	padding: 5px;
	margin: 5px;
}