/* Extra-compact table style */
.table-xs th,
.table-xs td {
  padding: 0.2rem !important;
  font-size: 0.75rem !important;
  vertical-align: middle !important;
  height: 1.5rem; /* fixed height */
}
.table-xs thead th {
    font-weight: bold;
}
/* Override form-control styles in the table to be extra compact */
.table-xs .form-control.invisible-input {
  border: none !important;
  background: transparent;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0.75rem !important;
  /* Remove or adjust line-height if needed */
  /* line-height: 1.2; */
  height: 1.1rem; /* or a fixed height that matches the td */
}

/* Hide arrows for input */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
table#journalTable input[type=number] {
  -moz-appearance: textfield;
  text-align: right
}

/* Right-align footer totals */
table#journalTable tfoot th, table#journalTable tfoot td {
  text-align: right;
}
/* Style for the invisible input:
   No border, background, padding; extends 100% width */

/* Style for the trash icon (clickable) */
table#journalTable .trash-icon {
  cursor: pointer;
  font-size: 1rem;
  display: block;
  text-align: center;
}

/* CSS nth-child selectors for fixed widths and text alignment */
/* Column 1 (Konto) fixed at 80px */
#journalTable th:nth-child(1),
#journalTable td:nth-child(1) {
  //width: 80px;
  //text-align: left;
}
/* Column 2 (Transaktionsinfo) left flexible (no fixed width) */

/* Columns 3 (Debet), 4 (Kredit), and 5 (Kontosaldo) fixed at 100px and right-aligned */
#journalTable th:nth-child(3),
#journalTable th:nth-child(4),
#journalTable th:nth-child(5),
#journalTable td:nth-child(3),
#journalTable td:nth-child(4),
#journalTable td:nth-child(5) {
  //width: 100px;
  //text-align: right;
}
/* Column 6 (trash icon) adjust to content and remain centered */
#journalTable th:nth-child(6),
#journalTable td:nth-child(6) {
  //width: 20px;
  //text-align: left;
}
/* marking rows as deleted */
#journalTable .row-deleted *,#verificationTable .row-deleted * {
  text-decoration: line-through;
}
.dataTables_cliptext {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.invalid-tooltip {
  font-size: 0.6rem; /* Keep the smaller font size */
  padding: 0.25rem 0.5rem; /* Optional: smaller padding */
  top: auto; /* Reset top positioning */
  bottom: -1rem; /* Position it below the input */
  right: -0rem; /* Align it to the right */
}
.wrap {
  white-space: normal !important;
  word-wrap: break-word; 
}

.card-to-toggle {
  /*display: none;*/
}

.fav-icon-muted {
  color: #ccc !important; /* or any subtle grey */
  opacity: 0.5;
  transition: opacity 0.2s;
}
.fav-icon-muted:hover {
  opacity: 1;
}