/* ===== FLASH MESSAGES ===== */
.flash-container {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  
  .flash-container .alert {
    pointer-events: auto;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* ===== TABLE BASE STYLES ===== */
  table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
  }
  
  th,
  td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    padding: 0.5rem 0.75rem;
  }
  
  /* ===== SORT ICONS ===== */
  th {
    position: relative;
    user-select: none;
  }
  
  .sort-icon {
    position: absolute;
    right: 8px;
    font-size: 0.8em;
    opacity: 0.5;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .sort-icon::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0dc"; /* fa-sort */
  }
  
  th.sorted-asc .sort-icon::before {
    content: "\f0de"; /* fa-sort-up */
    opacity: 0.9;
  }
  
  th.sorted-desc .sort-icon::before {
    content: "\f0dd"; /* fa-sort-down */
    opacity: 0.9;
  }
  
  /* ===== PAGINATION ===== */
  #pagination button {
    margin: 0 3px;
  }
  
  /* ===== TOOLTIP ON OVERFLOW ===== */
  td {
    position: relative;
  }
  
  td:hover::after {
    content: attr(data-fulltext);
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: normal;
    max-width: 300px;
    z-index: 10;
    top: 100%;
    left: 0;
    transform: translateY(2px);
    font-size: 0.85em;
  }
  
  /* ===== MOBILE VIEW ===== */
  @media (max-width: 768px) {
    table {
      border: 0;
    }
  
    thead {
      display: none;
    }
  
    tbody,
    tr,
    td {
      display: block;
      width: 100%;
    }
  
    tr {
      margin-bottom: 1rem;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      background: #fff;
      padding: 0.5rem 0.75rem;
    }
  
    td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: none;
      border-bottom: 1px solid #f0f0f0;
      padding: 0.5rem 0;
      white-space: normal;
    }
  
    td:last-child {
      border-bottom: none;
    }
  
    td::before {
      content: attr(data-label);
      font-weight: 600;
      color: #666;
      flex-basis: 40%;
      text-align: left;
      padding-right: 8px;
    }
  
    td > * {
      flex-basis: 60%;
      text-align: right;
    }
  
    /* Remove tooltip popups on mobile */
    td:hover::after {
      display: none;
    }
  
    /* Action buttons alignment */
    td:last-child {
      justify-content: flex-end;
    }
  
    td:last-child::before {
      content: none;
    }
  }
  
  /* ===== WINDY MODAL ===== */
  .windy-modal {
    max-width: 95vw;
    height: 90vh;
  }
  
  .windy-modal .modal-content {
    height: 100%;
  }
  
  /* ===== WINDY MODAL - MOBILE ===== */
  @media (max-width: 768px) {
    .windy-modal {
      width: 100vw !important;
      max-width: 100vw !important;
      height: 100vh !important;
      margin: 0;
    }
  
    .windy-modal .modal-content {
      height: 100vh;
      border-radius: 0;
    }
  
    .windy-modal .modal-header {
      padding: 0.75rem 1rem;
    }
  
    .windy-modal .modal-body {
      padding: 0;
    }
  }

  .windy-fullscreen {
    background: #000;
    border: none;
    border-radius: 0;
}

#windy-data {
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
}

#windy {
    height: 100%;
    width: 100%;
}

#windy-close {
    position: absolute;
    z-index: 99999;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    text-shadow: 0 0 6px black;
}

  