/* =========================
📌 HEADER
========================= */
.period-table thead {
    background:linear-gradient(to bottom,#ff82c0,#ff4fa8)!important;
    border: none !important;
    font-weight: 600 !important;
}

.period-table thead tr th div span{
    color: #fff !important;
}

/* =========================
📌 CELL BASE STYLE
========================= */
.period-table table.dataTable td {
  padding: 6px 2px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
  font-size: clamp(0.75rem, 1vw, 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
📌 TABLE DESIGN
========================= */
.period-table table.dataTable {
  width: 100% !important;
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  word-wrap: break-word;
  white-space: normal !important;
}

/* ALIGN */
.period-table .text-left { text-align: left!important; }
.period-table .text-center { text-align: center!important; }
.period-table .text-right { text-align: right!important; }

/* =========================
📌 PRICE WRAPPER
========================= */
.period-table .price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  white-space: nowrap;
}
.period-table .price-normal {
  color: #333;
  font-weight: 600;
}
.period-table .price-original {
  color: #999;
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.period-table .price-discount {
  color: #e74c3c;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}

/* =========================
📌 BUTTON STATUS
========================= */
.period-table .btn-status {
  display: inline-block;
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none!important;
  transition: .2s ease-in-out;
  max-width: 200px;
}
.period-table .btn-status.ok { background:#2ecc71; }
.period-table .btn-status.full { background:#e74c3c; }
.period-table .btn-status.wait { background:#f1c40f; color:#222; }
.period-table .btn-status:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* =========================
📌 BADGES
========================= */
.period-table .cell-stack {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  line-height:1.1;
}
.period-table .badge {
  display:inline-block;
  padding:2px 6px;
  border-radius:12px;
  font-size:0.7rem;
  font-weight:600;
  color:#fff;
  text-transform:uppercase;
}
.period-table .badge-green { background:#2ecc71; }
.period-table .badge-blue { background:#3498db; }
.period-table .badge-red { background:#e74c3c; }
.period-table .badge-red-outline { color:#e74c3c; }
.period-table .badge-orange { background:#ff9100; }

.period-table .badge.blink {
  animation: blink 2s infinite ease-in-out;
}
@keyframes blink {
  0%,100% { opacity:1; }
  50% { opacity:.3; }
}

.period-table .badge-group {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:4px;
  margin-top:4px;
  line-height:1.4;
  position:relative;
}

.period-table .badge-group::after {
  content:"";
  position:absolute;
  bottom:0; left:0; right:0;
  height:0.4em;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 90%);
}

.period-table .announce {
  margin:2px;
  color:#ff6600;
  font-weight:600;
}

/* =========================
📱 RESPONSIVE
========================= */
@media (max-width:768px){
  .period-table table.dataTable td,
  .period-table table.dataTable th {
    font-size: 0.9rem;
    padding:6px;
  }
  .period-table .price-original{ font-size:.75rem; }
  .period-table .price-discount{ font-size:.9rem; }
  .period-table .btn-status{ font-size:.8rem;padding:4px 0; }
}
