/*
 * This file contains styles for tables.
 */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

table {
    border-collapse: collapse;
    max-width: 800px;
    width: 100%;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

th {
    cursor: pointer;
    position: relative;
}

/*
 * Default colors that will be overridden by Colourability
 */
thead tr {
    background-color: #f0f0f0;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

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

.sort-indicator {
    display: inline-block;
    height: 12px;
    margin-left: 5px;
    position: relative;
    top: 1px;
    width: 12px;
}

.sort-indicator::before,
.sort-indicator::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    content: '';
    height: 0;
    opacity: 0.3;
    position: absolute;
    right: 0;
    width: 0;
}

.sort-indicator::before {
    border-bottom: 5px solid #666;
    top: 0;
}

.sort-indicator::after {
    border-top: 5px solid #666;
    bottom: 0;
}

.sort-indicator.asc::before {
    opacity: 1;
}

.sort-indicator.desc::after {
    opacity: 1;
}

.header-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.centered {
    text-align: center;
}

.row-view {
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding: 15px;
}

.field-container {
    align-items: center;
    display: flex;
}

.field-label {
    font-weight: bold;
    margin-right: 5px;
}

.value-cell {
    display: inline-block;
}




.controls {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.operation-buttons button {
  margin-right: 8px;
  padding: 6px 12px;
}

.status-container {
  position: fixed;
  top: 10px;
  right: 10px;
  max-width: 300px;
  z-index: 1000;
}

.status-message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  position: relative;
}

.info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s;
}

.dismiss-button {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
}

#offline-mode {
  margin-right: 10px;
}










