/* =========================================
   COLORS (YOUR SYSTEM)
========================================= */

$primary: #5e3817;
$primary-soft: rgba(122, 75, 32, 0.08);
$primary-border: rgba(122, 75, 32, 0.2);

$text-dark: #1a1a1a;
$text-light: #6b6b6b;

$border: rgba(0, 0, 0, 0.06);

/* =========================================
   WRAPPER
========================================= */

.wrapper {
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
  border-radius: 12px;
  background: #ffffff;

  border: none;
  box-shadow: none;

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

    /* =========================================
       HEADER
    ========================================= */

    thead {
      background: $primary-soft;

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

    /* =========================================
       BODY
    ========================================= */

    tbody {
      tr {
        transition: all 0.2s ease;

        &:nth-child(even) {
          background: rgba(122, 75, 32, 0.03);
        }

        // &:hover {
        //   background: $primary-soft;
        // }

        td {
          padding: 0.85rem 1rem;
          font-size: 0.85rem;
          color: $text-dark;

          white-space: normal;
          word-break: break-word;
        }
      }
    }
  }

  /* =========================================
     EMPTY
  ========================================= */

  .empty {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: $text-light;
  }

  /* =========================================
     STATUS PILLS (UPGRADED PREMIUM)
  ========================================= */
  .status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.35rem 0.7rem;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;

    border: 1px solid transparent;

    backdrop-filter: blur(4px);

    transition: all 0.2s ease;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 2px 6px rgba(0, 0, 0, 0.04);

    /* ================= DOT ================= */
    .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
      flex-shrink: 0;
    }

    /* ================= HOVER (SUBTLE) ================= */
    &:hover {
      transform: translateY(-1px);
      box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= COMPLETED (SOFT GREEN) ================= */
    &--completed {
      color: #2f7d4f;
      background: linear-gradient(
        180deg,
        rgba(47, 125, 79, 0.16),
        rgba(47, 125, 79, 0.08)
      );
      border-color: rgba(47, 125, 79, 0.28);

      box-shadow:
        0 4px 10px rgba(47, 125, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    &--Approved {
      color: #2f7d4f;
      background: linear-gradient(
        180deg,
        rgba(47, 125, 79, 0.16),
        rgba(47, 125, 79, 0.08)
      );
      border-color: rgba(47, 125, 79, 0.28);

      box-shadow:
        0 4px 10px rgba(47, 125, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    &--Paid {
      color: #2f7d4f;
      background: linear-gradient(
        180deg,
        rgba(47, 125, 79, 0.16),
        rgba(47, 125, 79, 0.08)
      );
      border-color: rgba(47, 125, 79, 0.28);

      box-shadow:
        0 4px 10px rgba(47, 125, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= UPCOMING (WARM AMBER) ================= */
    &--upcoming {
      color: #9a6b1f;
      background: linear-gradient(
        180deg,
        rgba(154, 107, 31, 0.16),
        rgba(154, 107, 31, 0.08)
      );
      border-color: rgba(154, 107, 31, 0.28);

      box-shadow:
        0 4px 10px rgba(154, 107, 31, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= PENDING (SLIGHTLY LIGHTER AMBER) ================= */
   &--pending {
    color: #9f2a2a; 
    background: linear-gradient(
      180deg,
      rgba(159, 42, 42, 0.16),
      rgba(159, 42, 42, 0.08)
    );

    border-color: rgba(159, 42, 42, 0.3);

    box-shadow:
      0 4px 12px rgba(159, 42, 42, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }


    /* ================= PARTIAL ================= */
   &--Partial {
    color: #9a6b1f;
      background: linear-gradient(
        180deg,
        rgba(154, 107, 31, 0.16),
        rgba(154, 107, 31, 0.08)
      );
      border-color: rgba(154, 107, 31, 0.28);

      box-shadow:
        0 4px 10px rgba(154, 107, 31, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

     /* ================= PARTIAL ================= */
   &--Pending {
    color: #9f2a2a; 
    background: linear-gradient(
      180deg,
      rgba(159, 42, 42, 0.16),
      rgba(159, 42, 42, 0.08)
    );

    border-color: rgba(159, 42, 42, 0.3);

    box-shadow:
      0 4px 12px rgba(159, 42, 42, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= ASSIGNED (BRAND BROWN-GOLD) ================= */
    &--assigned {
      color: #7a4b20;
      background: linear-gradient(
        180deg,
        rgba(122, 75, 32, 0.18),
        rgba(122, 75, 32, 0.08)
      );
      border-color: rgba(122, 75, 32, 0.32);

      box-shadow:
        0 4px 12px rgba(122, 75, 32, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= RESCHEDULED (NEUTRAL EARTH) ================= */
    &--rescheduled {
      color: #5b4bb7; 

      background: linear-gradient(
        180deg,
        rgba(91, 75, 183, 0.16),
        rgba(91, 75, 183, 0.08)
      );

      border-color: rgba(91, 75, 183, 0.28);

      box-shadow:
        0 4px 12px rgba(91, 75, 183, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= MISSED (SOFT RED) ================= */
    &--missed {
      color: #a63d3d;
      background: linear-gradient(
        180deg,
        rgba(166, 61, 61, 0.16),
        rgba(166, 61, 61, 0.08)
      );
      border-color: rgba(166, 61, 61, 0.28);

      box-shadow:
        0 4px 10px rgba(166, 61, 61, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    /* ================= CANCELLED (STRONG RED) ================= */
    &--cancelled {
      color: #7f1d1d;
      background: linear-gradient(
        180deg,
        rgba(220, 38, 38, 0.18),
        rgba(220, 38, 38, 0.08)
      );
      border-color: rgba(220, 38, 38, 0.32);

      box-shadow:
        0 4px 12px rgba(220, 38, 38, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
  }

  /* =========================================
     ACTION BUTTONS (PREMIUM MINIMAL)
  ========================================= */

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

    .actionButton {
      padding: 0.35rem 0.65rem;
      border-radius: 8px;
      border: none;
      font-size: 0.75rem;
      font-weight: 600;

      cursor: pointer;
      transition: all 0.2s ease;

      /* View */
      &.view {
        background: rgba(122, 75, 32, 0.1);
        color: $primary;
      }

      /* Update */
      &.update {
        background: rgba(122, 75, 32, 0.08);
        color: #7a4b20;
      }

      /* Delete */
      &.delete {
        background: rgba(160, 60, 60, 0.1);
        color: #8c2f2f;
      }

      /* Custom */
      &.custom {
        color: #2f7d4f;
        background: linear-gradient(
        180deg,
        rgba(47, 125, 79, 0.16),
        rgba(47, 125, 79, 0.08)
      );
      }

      &:hover {
        transform: translateY(-1px);
        opacity: 0.9;
      }

      &:active {
        transform: scale(0.96);
      }
    }
  }
}


