/* ── Base Styles ─────────────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f5f5;
  overflow: hidden;
  /* Prevent body scrolling */
}

/* ── Authentication UI Styles ───────────────────────────────────────────── */
.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #007acc;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-badge:hover {
  background: #005a9e;
}

.login-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-button:hover {
  background: #218838;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007acc;
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.75rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.125rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background: #007acc;
  color: white;
}

.btn-primary:hover {
  background: #005a9e;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.close {
  color: #aaa;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: #000;
}

.login-links {
  text-align: center;
  margin-top: 1rem;
}

.login-links a {
  color: #007acc;
  text-decoration: none;
  font-size: 0.875rem;
}

.login-links a:hover {
  text-decoration: underline;
}

.password-requirements {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.password-requirements h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #333;
}

.password-requirements ul {
  margin: 0;
  padding-left: 1.5rem;
}

.password-requirements li {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.admin-context-menu {
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.admin-context-menu .menu-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.admin-context-menu .menu-item:hover {
  background: #f8f9fa;
}

.admin-context-menu .menu-separator {
  height: 1px;
  background: #eee;
  margin: 0.25rem 0;
}

/* ── Fields-Picker Popup ───────────────────────────────────────────────────── */
#fieldsPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  z-index: 10000;
  max-height: 70vh;
  overflow-y: auto;
  width: 300px;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
}

#fieldsPopup h4 {
  margin-top: 0;
}

#fieldsPopup .field-item {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
}

#fieldsPopup .field-item label {
  margin-left: 0.5rem;
  flex: 1;
}

#fieldsPopup .field-buttons {
  margin-top: 0.75rem;
  text-align: right;
}

#fieldsPopup .field-buttons button {
  margin-left: 0.5rem;
}

/* ── Filter Dropdown Styles ───────────────────────────────────────────────── */
.filter-dropdown-btn {
  background: none;
  border: none;
  font-size: 10px;
  color: #666;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: 2px;
}

.filter-dropdown-btn:hover {
  background: #e0e0e0;
}

.filter-dropdown-btn.filter-active {
  color: #0066cc;
  font-weight: bold;
}

.filter-dropdown {
  position: absolute; /* Default positioning */
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999999;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  font-size: 12px;
  border-radius: 4px;
  margin-top: 2px;
}

/* When positioned fixed by JavaScript */
.filter-dropdown[style*="position: fixed"] {
  margin-top: 0;
}

.filter-option {
  padding: 4px 0;
  cursor: pointer;
}

.filter-option:hover {
  background: #f5f5f5;
}

.filter-option label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 4px;
}

.filter-option input[type="checkbox"] {
  margin-right: 6px;
}

.filter-separator {
  height: 1px;
  background: #ddd;
  margin: 6px 0;
}

.filter-apply-btn,
.filter-clear-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 4px 8px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 2px;
  font-size: 11px;
}

.filter-clear-btn {
  background: #666;
}

.filter-apply-btn:hover {
  background: #0052a3;
}

.filter-clear-btn:hover {
  background: #555;
}

/* ── Checkbox Filter Styles ───────────────────────────────────────────────── */
.filter-checkbox {
  margin-left: 4px;
  cursor: pointer;
}

.filter-checkbox.filter-active {
  accent-color: #0066cc;
}

/* ── Filter Status Bar ───────────────────────────────────────────────────── */
.filter-status {
  font-size: 11px;
  color: #666;
  padding: 2px 4px;
  background: #f0f0f0;
  border-radius: 2px;
  margin-left: 8px;
}

/* ── Table Header Positioning ───────────────────────────────────────────────── */
.table-header-cell .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  /* For resize handles and dropdowns */
}

.table-header-cell .header-text {
  flex: 1;
  min-width: 0;
}

.table-header-cell .header-filters {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative; /* Enable absolute positioning for dropdown children */
}

/* ── Form Elements ───────────────────────────────────────────────────────── */
input[type="text"],
input[type="date"],
select {
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0 1px;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.2;
}

input[type="text"] {
  text-align: left;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
#sidebar {
  width: 250px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

#sidebar h2 {
  margin-top: 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

#sidebar li {
  margin-bottom: 0.5rem;
}

#sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ── Main Content ────────────────────────────────────────────────────────── */
#toolbar {
  height: 25px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  overflow: hidden;
}

#checklistContainer {
  height: calc(100vh - 110px);
  /* Full height minus header and toolbar */
  overflow-x: auto !important;
  /* Horizontal scroll for wide tables */
  overflow-y: auto !important;
  /* Vertical scroll for long content */
  padding: 0px 5px 5px 5px;
  /* top=0 for sticky headers, rest=5px for spacing */
  position: relative;
  /* Ensure sticky positioning context */
  background: #f5f5f5;
  /* Remove max-width constraint that prevents scrollbar */
}

/* ── Filter Toolbar ─────────────────────────────────────────────────────── */
.filter-toolbar {
  height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.filter-toolbar-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 10px;
  color: #333;
  height: 18px;
  line-height: 1;
}

.filter-toolbar-icon:hover {
  background: #e9ecef;
  border-color: #0066cc;
}

.filter-toolbar-icon.active {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
}

.filter-toolbar-separator {
  width: 1px;
  height: 16px;
  background: #ddd;
  margin: 0 2px;
}

.filter-status-text {
  color: #666;
  font-size: 9px;
  margin-left: auto;
  padding: 2px 6px;
  background: #f0f0f0;
  border-radius: 8px;
  height: 14px;
  line-height: 10px;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: auto;
  /* Allow table to size based on content */
  min-width: auto;
  /* Don't enforce any minimum width constraints */
  table-layout: auto;
  /* Use auto layout but enforce explicit column widths via JS */
  background: white;
  position: relative;
  /* Ensure sticky context */
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.4rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 50px;
  /* Minimum column width */
  max-width: none;
  /* Allow columns to grow as needed */
}

th {
  background: #f0f0f0;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.4rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Add shadow to separate from content */
  overflow: hidden;
  position: relative;
  /* For resize handle positioning */
}

th.table-header-cell {
  position: sticky !important;
  /* Override any inline styles */
  top: 0;
  z-index: 10;
  background: #f0f0f0 !important;
  /* Ensure solid background */
}

/* ── Column Resize Handles ──────────────────────────────────────────────── */
.resize-handle-col {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  z-index: 15;
  border-right: 2px solid transparent;
  transition: border-color 0.2s;
}

.resize-handle-col:hover {
  border-right-color: #007acc;
  background: rgba(0, 122, 204, 0.1);
}

/* ── Multi-Select Fields ───────────────────────────────────────────────── */
.multi-select-field {
  font-size: 10px;
  line-height: 1.2;
  /* Base styling for multi-select field content - can be overridden by style system */
}

.multi-select-popup {
  font-size: 10px;
  /* Base styling for multi-select popup - can be overridden by style system */
}

.multi-select-popup .checkbox-item {
  font-size: 10px;
  line-height: 1.2;
  /* Individual checkbox items styling - can be overridden by style system */
}

/* ── Collaborators ───────────────────────────────────────────────────────── */
#collaboratorSection {
  margin-top: 1.5rem;
}

#collaboratorList {
  list-style: none;
  padding: 0;
  margin-bottom: 0.5rem;
}

#collaboratorList li {
  padding: 2px 0;
}

/* ── Row & Context Menu Utilities ────────────────────────────────────────── */
.row {
  display: flex;
  gap: 0.5rem;
}

button.dirty {
  border: 2px solid red;
  color: red;
  font-weight: bold;
}

#contextMenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#contextMenu li {
  position: relative;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

#contextMenu li.has-sub::after {
  content: '▶';
  position: absolute;
  right: 10px;
}

#contextMenu li.has-sub>ul {
  position: absolute;
  top: 0;
  left: 100%;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 1001;
  min-width: 150px;
}

#contextMenu li.has-sub:hover>ul {
  display: block;
}

/* ── Selected & Highlighted Rows ──────────────────────────────────────────── */
tr.selected {
  outline: 3px solid #007acc !important;
  background-color: transparent !important;
}

tr.important {
  background: yellow;
  color: red;
  font-weight: bold;
}

.tr-item {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.tr-item:hover {
  background-color: #d3f9d8;
}

.tr-item.selected {
  background-color: #a1c8f6;
}

/* ── Note Modal ───────────────────────────────────────────────────────────── */
.note-popup {
  display: none;
  position: fixed;
  top: 10%;
  left: 10%;
  width: 65vw;
  height: 100vh;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: auto;
  z-index: 10000;
}

.note-header {
  cursor: move;
  padding: 0.5rem;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  user-select: none;
}

.note-body {
  padding: 1rem;
  box-sizing: border-box;
}

/* ── Move Blocked Animation ───────────────────────────────────────────────── */
@keyframes flash {
  0% {
    background: rgba(255, 0, 0, 0.3);
  }

  50% {
    background: transparent;
  }

  100% {
    background: rgba(255, 0, 0, 0.3);
  }
}

.move-blocked {
  animation: flash 0.3s ease-in-out 1;
}

/* ── Print Styles ─────────────────────────────────────────────────────────── */
@media print {
  body {
    background: white;
    color: black;
  }

  #sidebar,
  .controls,
  #contextMenu,
  #viewerModal {
    display: none !important;
  }

  table {
    width: 100%;
    font-size: 12px;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ── Responsive Search Input & Popup ───────────────────────────────────────── */
/* only this once at the bottom of style.css */
#searchContainer {
  position: relative;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 50vh;
  overflow-y: auto;
  min-width: 200px;
  max-width: 80vw;
  z-index: 1000;
}

.search-results li {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.search-results li:hover {
  background: #f0f0f0;
}

/* ── Link Modal ───────────────────────────────────────────────────────────── */
.modal {
  display: block;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input[type="url"],
.form-group input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: inherit;
}

.form-buttons {
  text-align: right;
  margin-top: 20px;
}

.form-buttons button {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.form-buttons button[type="button"]:first-child {
  background-color: #6c757d;
  color: white;
}

.form-buttons button[type="button"]:last-child {
  background-color: #007bff;
  color: white;
}

.form-buttons button:hover {
  opacity: 0.8;
}

/* ── Dialog Styles ──────────────────────────────────────────────────────── */
.dialog-overlay {
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease-out;
}

.dialog {
  animation: slideIn 0.2s ease-out;
  font-family: inherit;
}

.dialog-header {
  background: linear-gradient(135deg, #007acc, #005a9e);
  color: white;
  font-size: 1.1rem;
}

.dialog-content input[type="text"] {
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dialog-content input[type="text"]:focus {
  border-color: #007acc;
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.dialog-footer button {
  font-family: inherit;
  transition: background-color 0.2s, transform 0.1s;
}

.dialog-footer button:hover {
  transform: translateY(-1px);
}

.dialog-footer button:active {
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: scale(0.9) translateY(-20px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

/* Date Filter Styles */
.date-filter-content {
  padding: 8px;
  min-width: 250px;
}

.date-range-inputs {
  margin-bottom: 12px;
}

.date-range-inputs label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  color: #666;
}

.date-range-inputs input[type="date"] {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 11px;
}

/* Text Filter Styles */
.text-filter-content {
  padding: 8px;
  min-width: 220px;
}

.text-search-input {
  margin-bottom: 12px;
}

.text-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 11px;
  box-sizing: border-box;
}

.search-help {
  font-size: 9px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ── RASCI Filter Level Visibility System ──────────────────────────────────── */

/* Level 0: Completely hidden (access control) */
.row-level-0 {
  display: none !important;
}

/* Level 1: Context items - de-emphasized but visible for hierarchy */
.row-level-1 {
  opacity: var(--context-opacity, 0.6);
  background-color: var(--context-bg, #fafafa);
  color: var(--context-color, #666);
  font-size: var(--context-font-size, 0.9em);
}

.row-level-1 .hns-cell {
  color: var(--context-hns-color, #999);
}

/* Level 2: Responsible - Extra emphasized (red accent) */
.row-level-2 {
  background-color: var(--responsible-bg, #fff5f5);
  border-left: var(--responsible-border-width, 4px) solid var(--responsible-border-color, #dc3545);
  font-weight: var(--responsible-font-weight, 600);
  box-shadow: var(--responsible-shadow, 0 1px 3px rgba(220,53,69,0.2));
}

.row-level-2 .hns-cell {
  color: var(--responsible-hns-color, #dc3545);
  font-weight: var(--responsible-hns-weight, 600);
}

.row-level-2 .label-cell {
  color: var(--responsible-label-color, #dc3545);
}

/* Level 3: Accountable - Extra emphasized (purple accent) */
.row-level-3 {
  background-color: var(--accountable-bg, #f8f5ff);
  border-left: var(--accountable-border-width, 4px) solid var(--accountable-border-color, #6f42c1);
  font-weight: var(--accountable-font-weight, 600);
  box-shadow: var(--accountable-shadow, 0 1px 3px rgba(111,66,193,0.2));
}

.row-level-3 .hns-cell {
  color: var(--accountable-hns-color, #6f42c1);
  font-weight: var(--accountable-hns-weight, 600);
}

.row-level-3 .label-cell {
  color: var(--accountable-label-color, #6f42c1);
}

/* Level 4: Support - Normal emphasis (green accent) */
.row-level-4 {
  background-color: var(--support-bg, #f8fff8);
  border-left: var(--support-border-width, 2px) solid var(--support-border-color, #28a745);
  font-weight: var(--support-font-weight, normal);
}

.row-level-4 .hns-cell {
  color: var(--support-hns-color, #28a745);
}

/* Level 5: Consult - Normal emphasis (orange accent) */
.row-level-5 {
  background-color: var(--consult-bg, #fff8f0);
  border-left: var(--consult-border-width, 2px) solid var(--consult-border-color, #fd7e14);
  font-weight: var(--consult-font-weight, normal);
}

.row-level-5 .hns-cell {
  color: var(--consult-hns-color, #fd7e14);
}

/* Level 6: Informed - Normal emphasis (blue accent) */
.row-level-6 {
  background-color: var(--informed-bg, #f0f8ff);
  border-left: var(--informed-border-width, 2px) solid var(--informed-border-color, #007acc);
  font-weight: var(--informed-font-weight, normal);
}

.row-level-6 .hns-cell {
  color: var(--informed-hns-color, #007acc);
}

/* RASCI Name Highlighting in cells */
.mine-highlight-responsible {
  background-color: var(--highlight-responsible-bg, #ffeaa7);
  padding: var(--highlight-padding, 2px 4px);
  border-radius: var(--highlight-radius, 3px);
  font-weight: var(--highlight-responsible-weight, 700);
  color: var(--highlight-responsible-color, #dc3545);
}

.mine-highlight-accountable {
  background-color: var(--highlight-accountable-bg, #e17055);
  padding: var(--highlight-padding, 2px 4px);
  border-radius: var(--highlight-radius, 3px);
  font-weight: var(--highlight-accountable-weight, 700);
  color: var(--highlight-accountable-color, white);
}

.mine-highlight-support {
  background-color: var(--highlight-support-bg, #d4edda);
  padding: var(--highlight-padding, 2px 4px);
  border-radius: var(--highlight-radius, 3px);
  font-weight: var(--highlight-support-weight, 600);
  color: var(--highlight-support-color, #155724);
}

.mine-highlight-consult {
  background-color: var(--highlight-consult-bg, #fff3cd);
  padding: var(--highlight-padding, 2px 4px);
  border-radius: var(--highlight-radius, 3px);
  font-weight: var(--highlight-consult-weight, 600);
  color: var(--highlight-consult-color, #856404);
}

.mine-highlight-informed {
  background-color: var(--highlight-informed-bg, #cce5ff);
  padding: var(--highlight-padding, 2px 4px);
  border-radius: var(--highlight-radius, 3px);
  font-weight: var(--highlight-informed-weight, 600);
  color: var(--highlight-informed-color, #004085);
}

/* Print-specific filter level adjustments */
@media print {
  .row-level-1 {
    opacity: var(--print-context-opacity, 0.7);
    background-color: var(--print-context-bg, transparent);
  }
  
  .row-level-2,
  .row-level-3 {
    border-left-width: var(--print-emphasis-border, 2px);
    box-shadow: none;
    background-color: var(--print-emphasis-bg, transparent);
  }
  
  .row-level-4,
  .row-level-5,
  .row-level-6 {
    border-left-width: var(--print-normal-border, 1px);
    background-color: var(--print-normal-bg, transparent);
  }
}

/* ── End RASCI Filter Levels ─────────────────────────────────────────────── */


