/* ==========================================================================
   CSS Custom Properties (Variables)
   These replace the SCSS variables from the Enabel Bootstrap theme
   ========================================================================== */

:root {
  /* Enabel Theme Colors */
  --enabel-primary: rgb(0, 125, 165);
  --enabel-secondary: rgb(203, 151, 0);
  --enabel-success: rgb(76, 156, 46);
  --enabel-info: rgb(103, 38, 102);
  --enabel-warning: rgb(230, 83, 0);
  --enabel-danger: rgb(216, 26, 26);
  --enabel-dark: rgb(88, 87, 86);
  --enabel-light: rgb(230, 230, 230);
  --enabel-underline-color: rgba(88, 87, 86, 0.25);

  /* Primary grey variations */
  --enabel-primary-grey: rgb(88, 87, 86);
  --enabel-primary-yellow: rgb(249, 181, 0);
  --enabel-primary-red: rgb(216, 26, 26);

  /* Secondary colors */
  --enabel-secondary-purple: rgb(103, 38, 102);
  --enabel-secondary-blue: rgb(0, 125, 165);
  --enabel-secondary-red: rgb(230, 83, 0);
  --enabel-secondary-yellow: rgb(203, 151, 0);
  --enabel-secondary-green: rgb(76, 156, 46);

  /* Gray scale */
  --enabel-gray-light: rgb(230, 230, 230);
  --enabel-cool-gray1: rgb(217, 216, 214);
  --enabel-cool-gray2: rgb(208, 207, 205);
  --enabel-cool-gray3: rgb(200, 200, 200);
  --enabel-cool-gray4: rgb(187, 187, 187);
  --enabel-cool-gray5: rgb(177, 177, 177);

  /* Lightened colors for logframe borders (10% lighter) */
  --enabel-dark-light: rgb(113, 112, 111);
  --enabel-primary-light: rgb(26, 150, 190);
  --enabel-info-light: rgb(128, 63, 127);
  --enabel-success-light: rgb(101, 181, 71);
  --enabel-secondary-light: rgb(228, 176, 25);
  --enabel-warning-light: rgb(255, 108, 25);

  /* Text colors (5% lighter) */
  --enabel-dark-text: rgb(101, 100, 99);
  --enabel-primary-text: rgb(13, 138, 178);
  --enabel-info-text: rgb(116, 51, 115);
  --enabel-success-text: rgb(89, 169, 59);
  --enabel-secondary-text: rgb(216, 164, 13);
  --enabel-warning-text: rgb(243, 96, 13);
}

/* ==========================================================================
   Contract Status Tooltips (from components/_contract-status.scss)
   ========================================================================== */

.tooltip-primary {
  --bs-tooltip-bg: var(--enabel-primary);
  --bs-tooltip-opacity: 1;
}

.tooltip-secondary {
  --bs-tooltip-bg: var(--enabel-secondary);
  --bs-tooltip-opacity: 1;
}

.tooltip-success {
  --bs-tooltip-bg: var(--enabel-success);
  --bs-tooltip-opacity: 1;
}

.tooltip-danger {
  --bs-tooltip-bg: var(--enabel-danger);
  --bs-tooltip-opacity: 1;
}

.tooltip-warning {
  --bs-tooltip-bg: var(--enabel-warning);
  --bs-tooltip-opacity: 1;
}

.tooltip-info {
  --bs-tooltip-bg: var(--enabel-info);
  --bs-tooltip-opacity: 1;
}

.tooltip-light {
  --bs-tooltip-bg: var(--enabel-light);
  --bs-tooltip-opacity: 1;
}

.tooltip-dark {
  --bs-tooltip-bg: var(--enabel-dark);
  --bs-tooltip-opacity: 1;
}

/* ==========================================================================
   Logframe Styles (from components/_logframe.scss)
   ========================================================================== */

.logframe h5 {
  cursor: pointer;
  margin-top: 0;
}

.logframe .modal-title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.2;
}

/* Logframe base styles (from .callout) */
.logframe-impact,
.logframe-outcome,
.logframe-intermediate-outcome,
.logframe-output,
.logframe-pbl,
.logframe-pbla,
.logframe-activity,
.logframe-subactivity {
  padding: 1.25rem;
  margin-top: 1.25rem;
  border-left-style: solid;
  border-left-width: .3rem;
}

/* Logframe Impact */
.logframe-impact {
  border-left-color: var(--enabel-dark-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-dark);
}

.logframe-impact h5 {
  color: var(--enabel-dark-text);
}

.logframe-btn-impact {
  /* Extends Bootstrap .btn .btn-outline-dark .btn-sm */
}

/* Logframe Outcome */
.logframe-outcome {
  border-left-color: var(--enabel-primary-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-primary);
}

.logframe-outcome h5 {
  color: var(--enabel-primary-text);
}

.logframe-btn-outcome {
  /* Extends Bootstrap .btn .btn-outline-primary .btn-sm */
}

/* Logframe Intermediate Outcome */
.logframe-intermediate-outcome {
  border-left-color: var(--enabel-info-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-info);
}

.logframe-intermediate-outcome h5 {
  color: var(--enabel-info-text);
}

.logframe-btn-intermediate-outcome {
  /* Extends Bootstrap .btn .btn-outline-info .btn-sm */
}

/* Logframe Output */
.logframe-output {
  border-left-color: var(--enabel-success-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-success);
}

.logframe-output h5 {
  color: var(--enabel-success-text);
}

/* Logframe PBL */
.logframe-pbl {
  border-left-color: var(--enabel-info-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-info);
}

.logframe-pbl h5 {
  color: var(--enabel-info-text);
}

/* Logframe PBLA */
.logframe-pbla {
  border-left-color: var(--enabel-secondary-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-secondary);
}

.logframe-pbla h5 {
  color: var(--enabel-secondary-text);
}

.logframe-btn-output {
  /* Extends Bootstrap .btn .btn-outline-success .btn-sm */
}

/* Logframe Activity */
.logframe-activity {
  border-left-color: var(--enabel-secondary-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-secondary);
}

.logframe-activity h5 {
  color: var(--enabel-secondary-text);
}

.logframe-btn-activity {
  /* Extends Bootstrap .btn .btn-outline-secondary .btn-sm */
}

/* Logframe Subactivity */
.logframe-subactivity {
  border-left-color: var(--enabel-warning-light);
  margin-right: 0;
  padding-right: 0;
  color: var(--enabel-warning);
}

.logframe-subactivity h5 {
  color: var(--enabel-warning-text);
}

.logframe-btn-subactivity {
  /* Extends Bootstrap .btn .btn-outline-warning .btn-sm */
}

/* Toggle controls */
.toggle::before {
  font-family: "Font Awesome 7 Free", sans-serif;
  content: "\f078";
  font-weight: 900;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.toggle[aria-expanded="true"]::before {
  transform: rotate(0deg);
}

.toggle[aria-expanded="false"]::before {
  transform: rotate(-90deg);
}

/* Circular Chart */
.circular-chart {
  width: 50px;
  height: 50px;
}

.circle-bg {
  fill: none;
  stroke: #f3f3f3;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: #0c0;
  stroke-width: 2;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.percentage {
  fill: #333;
  font-size: 0.5em;
  text-anchor: middle;
}

.logframe-item-title {
  border-bottom: 1px dotted;
}

/* ==========================================================================
   Custom Styles (from custom.scss)
   ========================================================================== */

/* Form Striped Styles */
.form-striped-columns > :not(caption) > div.form-line > :nth-child(2n),
.form-striped > div.form-line:nth-of-type(even) > * {
  background-color: rgba(0, 0, 0, 5%) !important;
}

.form-striped > div.form-line {
  border-bottom: 1px solid var(--enabel-underline-color) !important;
}

.form-striped > div.form-line > [class^="col-"] {
  padding-top: 0.5rem;
}

.form-striped {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding-top: 0;
}

.form-input-money {
  text-align: right;
}

/* Width utilities */
.w-10 {
  width: 10% !important;
}

.w-15 {
  width: 15% !important;
}

.w-20 {
  width: 20% !important;
}

.w-30 {
  width: 30% !important;
}

.w-40 {
  width: 40% !important;
}

/* Arrow bullet list */
ul.arrow-bullet {
  list-style-type: none;
  padding-left: 0;
  margin-left: 20px;
}

ul.arrow-bullet li::before {
  content: "\f148";
  font-family: "Font Awesome 7 Free", sans-serif;
  transform: rotate(90deg);
  display: inline-block;
  font-weight: 900;
  margin-right: 8px;
  color: #333;
}

/* Disaggregation Container */
.disaggregation-container {
  margin-top: 20px;
}

.disaggregation-container .form-label {
  margin-bottom: 0;
}

.disaggregation-container h5 {
  font-size: 1rem;
  color: var(--enabel-primary);
  margin-bottom: 10px;
  padding-bottom: 5px;
  margin-left: 20px;
  border-bottom: 2px solid var(--enabel-primary);
}

.disaggregation-container .ms-4 {
  margin-left: 20px;
  padding-left: 15px;
  border-left: 2px dashed var(--enabel-primary);
}

.disaggregation-container .mb-3 {
  border-bottom: 1px solid var(--enabel-primary);
  margin-bottom: 10px;
}

.disaggregation-container .mb-3:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.level-1 > .ms-4 > .mb-3,
.level-2 > .ms-4 > .mb-3,
.level-3 > .ms-4 > .mb-3 {
  border-bottom: 2px dashed var(--enabel-primary);
  padding-bottom: 0.5em;
}

.level-1 > .ms-4 > .mb-3:last-child,
.level-2 > .ms-4 > .mb-3:last-child,
.level-3 > .ms-4 > .mb-3:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.level-2 h5::before,
.level-3 h5::before {
  content: "\f148";
  font-family: "Font Awesome 7 Free", sans-serif;
  transform: rotate(90deg);
  display: inline-block;
  font-weight: 900;
  margin-right: 10px;
}

/* Indicator Table Data */
.indicator-table-data-year,
.indicator-table-data-progress {
  text-align: center;
  vertical-align: middle;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  min-width: 15em;
}

.indicator-table-data-baseline {
  text-align: center;
  vertical-align: middle;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  min-width: 5em;
}

.indicator-table-data-target {
  text-align: center;
  vertical-align: middle;
  border-left: 2px solid #000;
  border-right: 1px solid #999;
  min-width: 5em;
}

.indicator-table-data-actual {
  text-align: center;
  vertical-align: middle;
  border-left: 1px solid #999;
  border-right: 2px solid #000;
  min-width: 5em;
}

.indicator-table-data-title {
  min-width: 220px;
  max-width: 350px;
  white-space: normal !important;
  word-break: break-word;
  vertical-align: middle;
}

/* Circle Chart */
.circle-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.circle-chart::before {
  content: "";
  width: 130px;
  height: 130px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
}

.circle-chart span {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Modal Dialog Right */
.modal-dialog-right {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  max-width: 80%;
  min-width: 40%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 1s ease;
}

.modal.fade .modal-dialog-right {
  transform: translateX(0);
}

.modal-dialog-right .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background-color: var(--enabel-light);
}

.modal-dialog-right .modal-body {
  flex: 1;
  overflow-y: auto;
}

/* Disaggregation Card */
.disaggregation-card .form-switch {
  padding-left: 1em;
}

/* Readonly-like style */
.readonly-like {
  background-color: #e9ecef;
  pointer-events: none;
  opacity: 1;
  cursor: not-allowed;
}

/* Indicator Data */
.indicator-data .year-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  font-weight: bold;
}

.indicator-data .table td,
.indicator-data .table th {
  border-left: 1px solid #dee2e6;
}

.indicator-data .table td:first-child,
.indicator-data .table th:first-child {
  border-left: none;
}

.indicator-data .table td:last-child,
.indicator-data .table th:last-child {
  border-left: 2px solid #dee2e6;
}

.indicator-data .table .year-group {
  border-right: 2px solid #dee2e6;
}

.indicator-data .form-control-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.indicator-data .input-group-sm > .form-control,
.indicator-data .input-group-sm > .input-group-text {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.indicator-data .level1 td {
  background-color: #dee2e6;
}

.indicator-data .offset-30 {
  margin-left: 80px;
}

/* Facet Indicator Icon */
.facet-indicator-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.facet-indicator-icon.is-active {
  opacity: 1;
  transform: scale(1);
  color: var(--bs-primary);
}

/* Cursor not allowed */
.cursor-not-allowed {
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* Table Indicator Review */
.table-indicator-review th.orphan,
.table-indicator-review td.orphan {
  background-color: rgba(var(--bs-light-rgb), 1) !important;
}

.table-indicator-review th.new,
.table-indicator-review td.new {
  background-color: var(--bs-success-bg-subtle) !important;
}

/* Map Styles */
.map--index {
  height: 60vh;
}

@media (max-width: 768px) {
  .map--index {
    height: 45vh;
  }
}

.marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.marker-color--primary {
  background-color: var(--bs-blue);
}

.marker-color--secondary {
  background-color: var(--bs-yellow);
}

.marker-color--info {
  background-color: var(--bs-purple);
}

.marker-color--warning {
  background-color: var(--bs-orange);
}

.marker-color--success {
  background-color: var(--bs-green);
}

.marker-color--danger {
  background-color: var(--bs-red);
}

.marker-color--light {
  background-color: var(--bs-gray);
}

.marker-color--dark {
  background-color: var(--bs-black);
}

/* Map selecting mode */
.map--selecting .leaflet-container {
  cursor: crosshair;
}

/* Legend Control */
.legend-control {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  line-height: 1.2;
}

.legend-control__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.legend-control__item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.legend-control__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Notification Styles (from notification.scss)
   ========================================================================== */

.mark-all-as-read {
  margin-top: -10px;
}

.mark-all-as-read a {
  text-decoration: none;
  color: #6c757d;
}

.mark-all-as-read a:hover {
  color: var(--enabel-success);
  text-decoration: none;
}

.notification-dropdown {
  font-size: 0.9rem;
  width: 400px;
  max-height: 60vh;
  border-radius: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.notification-dropdown .list-group {
  border-radius: 0;
}

.notification-dropdown .list-group-item {
  font-size: 0.9rem;
  transition: border-left-color 0.5s ease, color 0.5s ease;
  border-left: none;
  border-right: none;
}

.notification-dropdown .list-group-item.unread {
  border-left: 4px solid var(--enabel-success);
}

.notification-dropdown .list-group-item.unread:hover {
  background-color: rgba(0, 128, 0, 10%);
}

.notification-dropdown .list-group-item.read {
  border-left: 4px solid var(--enabel-light);
  color: #8a9191;
}

.notification-dropdown .list-group-item.read .fi {
  filter: grayscale(100%);
  opacity: 0.5;
}

.notification-dropdown .list-group-item.read:hover {
  background-color: var(--enabel-light);
}

.notification-dropdown .list-group-item .fi {
  width: 1em;
}

.notification-dropdown .list-group-item .ago {
  font-size: 0.8rem;
}

.notification-dropdown .list-group-item.empty-notification {
  border-bottom: none;
}

.notification-dropdown .heading-nav {
  width: 380px;
  margin-left: 25px;
}

.notification-dropdown .notification-links a {
  text-decoration: none;
  margin-left: -20px;
  color: #98a0a4;
}

.notification-dropdown .notification-links a:hover {
  color: var(--enabel-dark);
  text-decoration: none;
}

.notification-dropdown .notification-item {
  padding-right: 1px;
}

.notification-dropdown .notification-item ul.list-unstyled {
  list-style-type: none;
}

.notification-dropdown .notification-item ul.list-unstyled li {
  padding-left: 0;
}

.notification-dropdown .notification-item ul.list-unstyled li i {
  float: left;
}

.notification-dropdown .notification-item ul.list-unstyled li p {
  margin-left: 20px;
  margin-bottom: 0;
}

.red-dot {
  top: 10px;
  right: 22px;
}

@media (min-width: 200px) {
  .animate {
    animation-duration: 0.5s;
    animation-fill-mode: both;
  }
}

@keyframes slide-in {
  0% {
    transform: translateY(1rem);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in {
  animation-name: slide-in;
}

/* ==========================================================================
   Indicator Styles (from indicator.scss)
   ========================================================================== */

/* Common Modal Styles */
.data-entry .modal,
.data-modal .modal {
  background: none;
}

.data-entry .modal .table,
.data-modal .modal .table {
  margin-bottom: 0;
}

.data-entry .modal .table th,
.data-modal .modal .table th {
  background-color: #f8f9fa;
  font-weight: 600;
  vertical-align: middle;
  border-bottom-width: 1px;
}

.data-entry .modal .table td,
.data-entry .modal .table th,
.data-modal .modal .table td,
.data-modal .modal .table th {
  border-left: 1px solid #dee2e6;
}

.data-entry .modal .table td:first-child,
.data-entry .modal .table th:first-child,
.data-modal .modal .table td:first-child,
.data-modal .modal .table th:first-child {
  border-left: none;
}

.data-entry .modal .table td:last-child,
.data-entry .modal .table th:last-child,
.data-modal .modal .table td:last-child,
.data-modal .modal .table th:last-child {
  border-left: 2px solid #dee2e6;
}

.data-entry .modal .form-control-sm,
.data-modal .modal .form-control-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.data-entry .modal .text-end,
.data-modal .modal .text-end {
  text-align: right !important;
}

.data-entry .modal .btn i,
.data-modal .modal .btn i {
  margin-right: 0.25rem;
}

/* Common Blocks Styles */
.data-entry .modal-dialog-right,
.data-modal .modal-dialog-right {
  margin-left: auto;
  margin-right: 0;
  height: 100vh;
  max-width: 600px;
}

.data-entry .modal-content,
.data-modal .modal-content {
  height: 100vh;
  border-radius: 0;
  border-left: 1px solid #dee2e6;
}

.data-entry .year-header,
.data-modal .year-header {
  border-left: 2px solid #dee2e6;
  background-color: #f8f9fa;
  border-bottom-width: 2px !important;
}

.data-entry .year-badge,
.data-modal .year-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  font-weight: bold;
}

.data-entry .year-group,
.data-modal .year-group {
  border-right: 2px solid #dee2e6;
}

.data-entry .bi-chat-text,
.data-modal .bi-chat-text {
  font-size: 0.875rem;
  cursor: help;
}

.data-entry .tooltip .tooltip-inner,
.data-modal .tooltip .tooltip-inner {
  max-width: 300px;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-entry .btn-outline-primary,
.data-modal .btn-outline-primary {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.data-entry .gap-2,
.data-modal .gap-2 {
  gap: 0.5rem !important;
}

.data-entry .value-container,
.data-modal .value-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 60px;
  padding: 0.25rem 0.5rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.data-entry .actual-value,
.data-modal .actual-value {
  font-weight: 500;
}

.data-entry .comment-indicator,
.data-modal .comment-indicator {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  padding: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-entry .comment-indicator i,
.data-modal .comment-indicator i {
  font-size: 0.75rem;
  color: #6c757d;
}

.data-entry .edit-button,
.data-modal .edit-button {
  opacity: 0.5;
  transition: opacity 0.2s ease-in-out;
}

.data-entry .edit-button:hover,
.data-entry tr:hover .edit-button,
.data-modal .edit-button:hover,
.data-modal tr:hover .edit-button {
  opacity: 1;
}

.data-entry .modal-backdrop,
.data-modal .modal-backdrop {
  opacity: 0.25 !important;
}

.data-entry .nav-tabs .nav-link,
.data-modal .nav-tabs .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.data-entry .disaggregated-input,
.data-modal .disaggregated-input {
  text-align: right;
}

.data-entry .modal-subtitle,
.data-modal .modal-subtitle {
  font-size: 1rem;
  color: #495057;
}

.data-entry .section-title,
.data-modal .section-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.data-entry .total-value,
.data-modal .total-value {
  max-width: 120px;
  background-color: #f8f9fa;
  font-weight: bold;
}

.data-entry .total-value[readonly][disabled],
.data-modal .total-value[readonly][disabled] {
  background-color: #f8f9fa !important;
  color: #495057;
}

.data-entry .disaggregation-section,
.data-modal .disaggregation-section {
  border-radius: 0.25rem;
}

.data-entry .comments-section textarea,
.data-modal .comments-section textarea {
  border-color: #dee2e6;
  resize: vertical;
}

.data-entry .comments-section textarea:focus,
.data-modal .comments-section textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.data-entry .modal-title,
.data-modal .modal-title {
  font-size: 1.25rem;
  color: #212529;
}

.data-entry input[readonly],
.data-modal input[readonly] {
  background-color: #f8f9fa !important;
  border-color: #dee2e6;
  cursor: not-allowed;
}

.data-entry input[readonly][disabled],
.data-modal input[readonly][disabled] {
  opacity: 0.8;
}

.data-entry .reference-values,
.data-modal .reference-values {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.data-entry .reference-value-card,
.data-modal .reference-value-card {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
}

.data-entry .reference-value-card .value,
.data-modal .reference-value-card .value {
  font-size: 1.25rem;
  font-weight: 500;
  color: #495057;
}

.data-entry .reference-value-card label,
.data-modal .reference-value-card label {
  font-size: 0.875rem;
  font-weight: 500;
}

.data-entry .aggregated-values,
.data-modal .aggregated-values {
  border-radius: 0.375rem;
  overflow: hidden;
}

.data-entry .aggregated-values .table,
.data-modal .aggregated-values .table {
  margin-bottom: 0;
}

.data-entry .aggregated-values .table td,
.data-entry .aggregated-values .table th,
.data-modal .aggregated-values .table td,
.data-modal .aggregated-values .table th {
  padding: 0.75rem;
  vertical-align: middle;
}

.data-entry .aggregated-values .table-active,
.data-modal .aggregated-values .table-active {
  background-color: #f8f9fa;
}

.data-entry .aggregated-values .total-value,
.data-modal .aggregated-values .total-value {
  background-color: transparent !important;
  border: none;
  padding: 0;
  margin: 0;
  height: auto;
}

.data-entry .aggregated-values .bi,
.data-modal .aggregated-values .bi {
  font-size: 1.1rem;
}

.data-entry .aggregated-values #actualInput,
.data-modal .aggregated-values #actualInput {
  max-width: 120px;
  text-align: right;
  font-weight: bold;
}

.data-entry .aggregated-values #actualInput:focus,
.data-modal .aggregated-values #actualInput:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.data-entry .table-row-indented .empty-cell,
.data-modal .table-row-indented .empty-cell {
  width: 0.5rem;
  border-right: none;
  background-color: #fff;
}

.data-entry .table-row-indented td:not(.empty-cell),
.data-modal .table-row-indented td:not(.empty-cell) {
  border-left: none;
}

/* Data Entry Specific */
.data-entry .table-group-header {
  background-color: #f8f9fa;
}

.data-entry .table-group-header input {
  background-color: #fff;
  font-weight: 500;
}

.data-entry .table-group-header input[readonly][disabled] {
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa !important;
}

/* Data Modal Specific */
.data-modal table thead.table-light {
  --bs-table-bg: #e5e7ea;
}

.data-modal .table-group-header {
  background-color: #f8f9fa;
}

.data-modal .table-group-header td {
  border-top: 2px solid #dee2e6;
}

.data-modal .table-group-header input {
  background-color: #fff;
  font-weight: 500;
}

.data-modal .table-group-header input[readonly] {
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa !important;
}

.data-modal .table-group-header input[readonly][disabled] {
  background-color: #f8f9fa !important;
}
