.wrapper {
  width: 100%;
  overflow-x: auto;
  max-width: 100%; 
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dcecf2;
  box-shadow: 0 10px 26px rgba(0, 56, 69, 0.08);

  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; //

    thead {
      background: rgba(0, 56, 69, 0.05);

      th {
        text-align: left;
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: #003845;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
      }
    }

    tbody {
      tr {
        transition: all 0.25s ease;

        &:nth-child(even) {
          background: rgba(0, 56, 69, 0.025);
        }

        &:hover {
          background: linear-gradient(
            90deg,
            rgba(0, 193, 139, 0.14),
            rgba(0, 193, 139, 0.05)
          );
          box-shadow: inset 4px 0 0 rgba(0, 193, 139, 0.45);
        }

        td {
          padding: 0.85rem 1rem;
          font-size: 0.85rem;
          color: rgba(0, 56, 69, 0.92);

          white-space: normal; // ✅ allow wrapping
          word-break: break-word; // ✅ break long text
        }
      }
    }
  }

  .empty {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: rgba(0, 56, 69, 0.5);
  }

  /* ------------------- Premium Status Pills ------------------- */
  .status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    border: 1px solid transparent;
    transition: all 0.25s ease;

    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 6px currentColor;
    }

    &--completed {
      color: #2e8b57; // dark green
      background: rgba(46, 139, 87, 0.15);
      border-color: rgba(46, 139, 87, 0.25);
    }

    &--upcoming {
      color: #ff8c00; // orange
      background: rgba(255, 140, 0, 0.12);
      border-color: rgba(255, 140, 0, 0.25);
    }

    &--missed {
      color: #e03131; // red
      background: rgba(224, 49, 49, 0.12);
      border-color: rgba(224, 49, 49, 0.25);
    }

    &--rescheduled {
      color: #1c7ed6; // blue
      background: rgba(28, 126, 214, 0.12);
      border-color: rgba(28, 126, 214, 0.25);
    }

    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  }

  .actions {
    display: flex;
    gap: 0.5rem;

    .actionButton {
      padding: 0.35rem 0.7rem;
      border-radius: 6px;
      border: none;
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;

      &.view {
        background-color: #e6f7ff;
        color: #0050b3;
      }
      &.update {
        background-color: #fffbe6;
        color: #ad8b00;
      }
      &.delete {
        background-color: #fff1f0;
        color: #cf1322;
      }
      &.custom {
        background-color: #f0f0f0;
        color: #003845;
      }

      &:hover {
        opacity: 0.85;
      }
    }
  }
}