@charset "UTF-8";
/*
* Main SCSS Entry Point
* This file uses Sass's @use rule to import and bundle all component 
* stylesheets into a single output file. 
*/
/* Page-specific overrides for the admin layout  */
body, html {
  height: 100%;
}

.admin-container {
  display: flex;
  height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background-color: #f4f4f4;
  padding: 20px;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 1.5em;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  margin-bottom: 5px;
}

.sidebar-menu li a:hover {
  background-color: #e2e2e2;
}

.admin-content {
  flex-grow: 1;
  padding: 40px;
}

/* Responsive Admin Layout */
@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
    height: auto;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
  }
  .admin-content {
    padding: 20px;
  }
}
.header {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}
.header .header-left-items {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  padding-right: 75px; /* Space for the absolute positioned icon  */
}
.header .app-branding {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-left: 5px;
  white-space: normal;
  line-height: 1.2;
  margin-top: 5px;
}
.header .header-actions {
  position: absolute;
  top: 0;
  right: 5px;
  padding: 10px;
  z-index: 10;
  text-align: right;
}
.header .header-actions a, .header .header-actions button {
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 5px;
}

.footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  color: #666;
  border-top: 1px solid #eee;
}

/* Search Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-button:hover, .close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .featured-image,
  .details-record-image,
  .card-image,
  .card-content img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  .featured-image img,
  .details-record-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  /* Mobile Modal Adjustments */
  .modal-content {
    width: 90%;
  }
  .close-button {
    color: #000; /* Darker for better visibility */
    font-size: 2rem; /* Reduced size to fit better */
    right: 10px;
    top: 5px;
    line-height: 1;
  }
}
/* === Card Grid Styles === */
.card-container {
  display: grid;
  /* Use the CSS variable set in the HTML, with a fallback */
  grid-template-columns: repeat(var(--grid-columns, 5), 1fr);
  gap: 20px;
  padding: 20px;
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Card Grid */
@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}
.card-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #333;
}

.card-content p {
  margin: 5px 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.checkbox-group {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
}

.add-record-container {
  padding: 40px;
}

/* Styles for dropdown in the header */
.header-left-items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-dropdown .form-control {
  max-width: 250px; /* Keep the dropdown from being too wide */
}

.header-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555;
}

.header-button button {
  height: 38px; /* Match form control height */
  align-self: center;
}

/* Styles for Add Record page header */
.add-record-identifier {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-icon {
  font-size: 2.5rem;
  font-weight: 300;
  color: #888;
  line-height: 1;
}

/* Styles for drag and drop */
.drag-handle {
  cursor: grab;
  padding-right: 10px;
}

.dragging {
  opacity: 0.5;
}

/* Styles for editor field toggles */
.editor-toggle {
  padding-top: 38px;
}

.editor-label {
  cursor: pointer;
}

/* Styles for public field toggles */
.public-toggle {
  padding-top: 38px;
}

.public-label {
  cursor: pointer;
}

/* Styles for multi-control form rows */
.with-controls {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.mandatory-toggle {
  padding-top: 38px; /* Align with the input box */
}

.mandatory-label {
  cursor: pointer;
}

.slug-source-toggle {
  padding-top: 38px;
}

.field-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column; /* Stack label above input */
}

.generate-slug-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-top: 8px; /* Add some space below the input */
  align-self: flex-start; /* Align to the start of the container */
}

.form-lock-controls {
  display: flex;
  gap: 30px;
  padding: 0.5rem 0 1rem 0;
  border-bottom: 1px solid #eee;
}

.lock-control-header {
  padding-top: 0; /* Override the padding for header row */
  height: 20px; /* Give it some height to align vertically */
}

.is-mandatory > .field-container > label::after,
.with-controls.is-mandatory .field-container label::after {
  content: " *";
  color: #d9534f; /* Red to indicate mandatory */
  font-weight: bold;
}

.table-controls .form-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.is-greyed-out {
  opacity: 0.5;
  background-color: #f9f9f9;
}

/* Styles for Header Search Bar */
.header-search {
  display: flex;
  justify-content: flex-end;
}

.search-input {
  max-width: 180px; /* Adjust width as needed */
  height: 30px; /* Smaller height for the header */
  font-size: 0.9em;
}

/* Styles for Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Styles for GridStack Layout Editor */
.grid-stack-item-content {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  text-align: center;
  font-weight: bold;
  overflow: hidden;
}

/* === Path Stack Styles (Deployment) === */
.path-stack {
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  max-width: 600px;
}

.path-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}
.path-item:last-child {
  border-bottom: none;
}

.delete-source-btn {
  color: #dc3545;
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px;
}
.delete-source-btn:hover {
  color: #a71d2a;
}

/* === Deployment Report Styles === */
.report-item {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.report-stats {
  list-style: none;
  padding: 0;
  font-size: 0.9em;
  margin-top: 5px;
}

.stat-deleted {
  color: #dc3545;
}

.stat-copied {
  color: #28a745;
}

.stat-preserved {
  color: #007bff;
}

.stat-errors {
  color: red;
  font-weight: bold;
}

.error-detail {
  color: red;
  font-size: 0.8em;
  margin-left: 10px;
}

/* === Deployment Preview Tree === */
.preview-tree {
  list-style: none;
  padding-left: 20px;
}

.preview-item {
  padding: 2px 0;
}
.preview-item.ignored {
  color: #aaa;
  /* text-decoration: line-through; */
}

.delete-target-btn {
  color: #dc3545;
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px;
}
.delete-target-btn:hover {
  color: #a71d2a;
}

/* Styles for the special panel layout, mirroring the admin panel */
.special-container {
  display: flex;
  height: 100vh;
}

.special-sidebar {
  width: 250px;
  background-color: #f4f4f4;
  padding: 20px;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
}

.special-content {
  flex-grow: 1;
  padding: 40px;
}

/* Responsive Special Layout */
@media (max-width: 768px) {
  .special-container {
    flex-direction: column;
    height: auto;
  }
  .special-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
  }
  .special-content {
    padding: 20px;
  }
}
/* === Data Table Styles === */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap; /* Prevents text from wrapping */
}

th, td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

thead th {
  background-color: #f7f7f7;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

tbody tr:hover {
  background-color: #f0f0f0;
}

/* Styles for column management UI */
.th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.col-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0 4px;
  color: #888;
}

.col-actions button:hover {
  color: #333;
}

/* Styles for sortable headers */
.sort-link {
  text-decoration: none;
  color: inherit;
}

.sort-indicator {
  color: #007bff;
}

/* Styles for row selection */
.row-selector {
  width: 1%;
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
}

/* Styles for the floating action bar */
.floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
}

.floating-bar button {
  background-color: #d9534f; /* A shade of red */
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.floating-bar button:hover {
  background-color: #c9302c;
}

/* Styles for the confirmation modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
}

.modal-content h2 {
  margin-top: 0;
}

.delete-summary {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  margin: 20px 0;
  background-color: #f9f9f9;
}

.summary-table {
  width: 100%;
  font-size: 0.9em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.btn-secondary {
  background-color: #eee;
  border: 1px solid #ccc;
  color: #333;
}

.btn-danger {
  background-color: #d9534f;
  color: white;
}

/* Styles for ID Management column highlighting */
.col-target {
  background-color: #e6f7ff !important; /* Light blue */
  font-weight: bold;
}

.col-source {
  background-color: #fffbe6 !important; /* Light yellow */
}

/* Styles for ID Management page */
.id-management-actions {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.row-duplicate {
  background-color: #ffe6e6 !important; /* Pinkish red */
}

/* === Pagination Styles === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  gap: 1.5rem;
  font-family: sans-serif;
}

.page-link {
  text-decoration: none;
  color: #007bff;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.page-link:hover {
  background-color: #e9ecef;
}

.page-current {
  color: #495057;
  font-weight: bold;
}

.page-link.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.page-link-ellipsis {
  padding: 8px 0;
}

/* === Sticky Header for Details Page === */
.details-page-header {
  position: sticky;
  top: 0;
  z-index: 1020; /* Ensure it's above other content */
  background-color: #ffffff;
  padding: 5px 20px; /* Reduced vertical padding */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Add a subtle shadow */
}

.details-page-header .header-title {
  font-size: 1.2rem; /* Smaller font size for "Back to List" */
}

.details-page-header .header-icon {
  font-size: 1.5rem; /* Slightly smaller icons */
}

.details-page-header .user-profile img {
  width: 32px; /* Smaller profile picture */
}

/* === Record Details Page Layout === */
.details-container {
  width: 70%;
  margin: 2rem auto; /* 15% margin on each side is achieved by 70% width and auto margin */
}

.details-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.details-content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5%; /* Creates space between the 25% and 45% columns */
}

.details-column-small {
  flex: 0 0 25%; /* Takes up 25% of the parent width */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.details-column-large {
  flex: 0 0 65%; /* Takes up the remaining space */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-field {
  line-height: 1.6;
}

.details-label {
  font-weight: bold;
  display: block;
  color: #555;
}

.details-youtube-container {
  margin-top: 3rem;
  width: 100%; /* Spans the full 70% width of its parent, which has the 15% margins */
  display: flex;
  justify-content: center;
}

/* Ensure the youtube container spans the full width when inside the grid */
.details-content-grid .details-youtube-container {
  flex-basis: 100%;
  margin-top: 1rem; /* Adjust top margin for when it's inside the grid */
}

/* Responsive YouTube Embed Container */
.youtube-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Styles for the main image on the details page */
.details-record-image {
  max-width: 100%;
  border-radius: 8px;
}

/* Styles for the public view toggle on the details page */
.details-public-view-toggle {
  padding-top: 1rem;
}

/* === Debug Panel Styles === */
.debug-footer {
  background-color: #222;
  color: #eee;
  padding: 20px;
  margin-top: 40px;
  font-family: monospace;
  font-size: 14px;
}

.debug-footer h3 {
  color: #00ffdd;
  cursor: pointer;
  user-select: none;
}

.debug-content {
  background-color: #333;
  border: 1px solid #444;
  padding: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 800px;
  overflow-y: auto;
  display: none; /* Hidden by default */
}

.debug-content table {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid #555;
}

.debug-content thead {
  background-color: #444;
}

.debug-content th, .debug-content td {
  padding: 8px;
  border-bottom: 1px solid #555;
  text-align: left;
}

/* === Details Page Navigation Footer === */
.details-navigation {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

.nav-link {
  padding: 0 1rem;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.nav-link.disabled {
  color: #ccc;
  pointer-events: none;
}

/* Responsive Details Page */
@media (max-width: 992px) {
  .details-container {
    width: 90%;
    margin: 1rem auto;
  }
  .details-content-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .details-column-small,
  .details-column-large {
    flex: 0 0 100%;
  }
}
/* _assign_keys.scss */
.assign-keys-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.worksheets-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px; /* Space for scrollbar */
  align-items: flex-start;
}

.worksheet-card {
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 8px;
  min-width: 250px;
  max-width: 300px;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.worksheet-header {
  background: #1f1f1f;
  padding: 15px;
  border-bottom: 1px solid #444;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  color: #eee;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.worksheet-fields {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-item {
  padding: 10px 15px;
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 4px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.field-item:hover {
  background: #4a4a4a;
  border-color: #777;
}

.field-item.selected {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Color Coding for Matches */
/* We define a set of distinct colors for different key groups */
.match-group-0 {
  background-color: #FF5252 !important;
  color: white !important;
  border-color: #FF5252 !important;
}

.match-group-1 {
  background-color: #448AFF !important;
  color: white !important;
  border-color: #448AFF !important;
}

.match-group-2 {
  background-color: #69F0AE !important;
  color: black !important;
  border-color: #69F0AE !important;
}

.match-group-3 {
  background-color: #E040FB !important;
  color: white !important;
  border-color: #E040FB !important;
}

.match-group-4 {
  background-color: #FFAB40 !important;
  color: black !important;
  border-color: #FFAB40 !important;
}

.match-group-5 {
  background-color: #536DFE !important;
  color: white !important;
  border-color: #536DFE !important;
}

.match-group-6 {
  background-color: #FFD740 !important;
  color: black !important;
  border-color: #FFD740 !important;
}

.match-group-7 {
  background-color: #18FFFF !important;
  color: black !important;
  border-color: #18FFFF !important;
}

.match-group-8 {
  background-color: #FF6E40 !important;
  color: black !important;
  border-color: #FF6E40 !important;
}

.match-group-9 {
  background-color: #B2FF59 !important;
  color: black !important;
  border-color: #B2FF59 !important;
}

/* Add a small indicator dot or icon for matched fields */
.field-item[class*=match-group-]::after {
  content: "🔗";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.instructions {
  background: #222;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #448AFF;
  color: #ccc;
  margin-bottom: 10px;
}

.action-bar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: flex-end;
}

.btn-save {
  padding: 10px 30px;
  font-size: 1.1em;
}

/* Styles for the Record Details page */
.debug-footer {
  background-color: #222;
  color: #eee;
  padding: 20px;
  margin-top: 40px;
  font-family: monospace;
  font-size: 14px;
}

.debug-footer h3 {
  color: #00ffdd;
  cursor: pointer;
  user-select: none;
}

.debug-content {
  background-color: #333;
  border: 1px solid #444;
  padding: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 500px;
  overflow-y: auto;
  display: none; /* Hidden by default */
}

.related-records-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #444;
}

.related-records-section h2 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #ccc;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

/* --- Mini-Card View Styling --- */
.related-records-section .card-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-records-section .card {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-records-section .card:hover {
  transform: translateY(-2px);
  border-color: #999;
}

.related-records-section .card > a {
  display: flex; /* Two-column layout */
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 100px;
}

.related-records-section .card-image-col {
  flex: 0 0 35%; /* Image takes 35% of width */
  position: relative;
  background-color: #000;
}

.related-records-section .card-image,
.related-records-section .card-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.related-records-section .card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.8rem;
}

.related-records-section .card-content-col {
  flex: 1; /* Content takes remaining space */
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.related-records-section .card-content-col p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #333;
}

.related-records-section .card-content-col strong {
  color: #000;
}

/* --- Header Action Buttons --- */
.header-link-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-right: 15px;
}

.add-record-identifier {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  transition: background-color 0.2s;
}

.header-link-button:hover .add-record-identifier {
  background-color: #e0e0e0;
}

.add-icon {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
}

.add-text {
  font-weight: bold;
  font-size: 0.9rem;
}

/* User profile image in header */
.header-actions .user-profile img {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  object-fit: cover; /* Prevents image from being squished */
  vertical-align: middle; /* Aligns image nicely with other icons */
}

/* Styles for Add/Edit Record Page */
.alert-floating {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.modal-content-wide {
  max-width: 90vw;
}

.saved-layouts-section {
  margin-top: 2rem;
}

.settings-report-textarea {
  width: 100%;
  height: 200px;
  font-family: monospace;
  white-space: pre;
}

body {
  font-family: sans-serif;
}

/* Hamburger Button Styling */
.hamburger-btn {
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  line-height: 1;
}

/* Navigation Menu Container */
.nav-links {
  display: none; /* Hidden by default */
  flex-direction: column; /* Stacked vertical order */
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  width: 200px;
  position: absolute;
  top: 60px; /* Adjust based on button position */
  left: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  /* Class to show the menu */
}
.nav-links.active {
  display: flex;
}
.nav-links {
  /* Link Styling */
}
.nav-links a {
  text-decoration: none;
  color: #333;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
}
.nav-links a:last-child {
  border-bottom: none;
}
.nav-links a:hover {
  background-color: #e9e9e9;
}

/*# sourceMappingURL=main.css.map */
