/* Merged styles from strings_app.html and strings_history.html */

.table tbody tr .btn-hover, .hover-row .btn-hover {
    opacity: 0.1;
    transition: opacity 0.2s ease;
}

.table tbody tr:hover .btn-hover, .hover-row:hover .btn-hover {
    opacity: 1;
}

.changed {
    outline: 2px solid #ffc107;
}

.auto-expand {
    resize: none;
    overflow: hidden;
    min-height: 38px; /* Bootstrap's default input height */
}

.saving {
    outline: 2px solid #28a745;
}

.error {
    outline: 2px solid #dc3545;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.search-box {
    max-width: 300px;
}

.floating-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 1rem;
    overflow-y: auto;
}

.floating-sidebar.visible {
    right: 0;
}

.empty-key {
    color: #dc3545;
}

.issues-table {
    width: 100%;
    margin-top: 1rem;
}

.issues-table th {
    background-color: #f8f9fa;
}

.btn:disabled {
    cursor: not-allowed;
}

.btn {
    white-space: nowrap;
}

tr:has(*.deleted) {
    display: none;
}

.readonly-textarea {
    background-color: #f8f9fa;
    border: none;
    resize: none;
    width: 100%;
    min-height: 38px;
    color: #212529;
}

.revision-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #eeeeee;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 1rem;
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
    margin-top: 70px;
}

.tenants-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #eeeeee;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 1rem;
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
    margin-top: 70px;
}

.revision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.revision-sidebar h5 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.revision-list li {
    margin-bottom: 0.5rem;
}

.revision-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.revision-link.selected {
    font-weight: bold;
    color: #0056b3;
}

.deleted * {
    text-decoration: line-through;
} 

textarea.form-control
{
    font-size : 85%;
}

span.static-text
{
    color: inherit;
    background-color: inherit;
}

.striped-container .striped-row:nth-of-type(odd) {
    background-color: #f8f9fa; /* Light background for odd rows */
}
  
.striped-container .striped-row:nth-of-type(even) {
    background-color: #e9ecef; /* Slightly darker background for even rows */
}

.tree
{
  summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
  }

  summary::marker {
    display: none; /* Hide default summary arrow */
  }

  summary::before {
    content: '▶'; /* Custom arrow for closed state */
    margin-right: 5px;
    font-family: sans-serif;
    transition: transform 0.2s ease-in-out;
  }

  details[open] > summary::before {
    transform: rotate(90deg);
  }

  .tree-radio {
    display:none;
  }

  .tree-radio + label {
      padding: 2px 5px;
  }

  .tree-radio:checked + label {
    background-color: lightblue;
    border-radius: 3px;
  }

  summary ~ *
  {
      padding-left:26px;
  }

  summary:has(+ div:empty)::before
  {
  	/*content: '';*/
  }
  
  summary:has(+ div:empty)
  {
    cursor: default;
  }
}