/* VES Team Booking – Frontend Dashboard Styles */
:root {
  --stb-bg: #ffffff;
  --stb-surface: #ffffff;
  --stb-border: #e6e8ec;
  --stb-text: #1f2937;
  --stb-muted: #6b7280;

  --stb-success: #10b981;
  --stb-success-ink: #065f46;
  --stb-error: #ef4444;
  --stb-error-ink: #7f1d1d;
  --stb-info: #3b82f6;

  --stb-accept: #16a34a;
  --stb-accept-ink: #065f46;
  --stb-decline: #ef4444;
  --stb-decline-ink: #7f1d1d;

  --stb-radius: 14px;
  --stb-shadow: 0 6px 20px rgba(17,24,39,.06);
}

.stb-dashboard{
  background: var(--stb-surface);
  border: 1px solid var(--stb-border);
  border-radius: var(--stb-radius);
  box-shadow: var(--stb-shadow);
  padding: 18px 18px 10px;
  color: var(--stb-text);
}

.stb-dashboard h2{
  margin: 10px 6px 14px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.stb-dashboard .wp-list-table{
  border: 1px solid var(--stb-border);
  border-radius: 12px;
  overflow: hidden;
}

/* Tabellenzellen etwas luftiger */
.stb-dashboard .wp-list-table th,
.stb-dashboard .wp-list-table td{
  padding: 12px 14px;
  vertical-align: middle;
}

.stb-dashboard .wp-list-table thead th{
  background: #f8fafc;
  font-weight: 600;
  color: #111827;
}

/* Kunde + Mail zusammen hübsch */
.stb-dashboard .stb-customer{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stb-dashboard .stb-customer .stb-name{
  font-weight: 600;
}
.stb-dashboard .stb-customer .stb-email{
  color: var(--stb-muted);
  text-decoration: none;
}
.stb-dashboard .stb-customer .stb-email:hover{ text-decoration: underline; }

/* Zeit Badge */
.stb-dashboard .stb-time{
  display: inline-block;
  padding: 4px 8px;
  background: #f1f5f9;
  border: 1px solid var(--stb-border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Aktionsspalte */
.stb-dashboard .column-actions{
  width: 200px;
}

/* Buttons hübscher */
.stb-dashboard .button{
  border-radius: 10px;
  padding: 6px 10px;
  line-height: 1.2;
  border: 1px solid var(--stb-border);
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}

.stb-dashboard .button.stb-accept{
  background: var(--stb-accept);
  border-color: var(--stb-accept);
  color: #fff;
}
.stb-dashboard .button.stb-accept:hover{ filter: brightness(1.05); }
.stb-dashboard .button.stb-accept:active{ transform: translateY(1px); }

.stb-dashboard .button.stb-decline{
  background: #fff;
  color: var(--stb-decline);
  border-color: var(--stb-decline);
}
.stb-dashboard .button.stb-decline:hover{
  background: rgba(239,68,68,.06);
}

/* Assign-Eingabe kompakter */
.stb-dashboard .stb-assign{
  margin-right: 8px;
}
.stb-dashboard .stb-assign .small-text{
  width: 68px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--stb-border);
}

/* Status/Toast */
.stb-dashboard .stb-msg{
  margin: 12px 6px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stb-border);
  background: #f8fafc;
  color: var(--stb-text);
}
.stb-dashboard .stb-msg.is-success{
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.25);
  color: var(--stb-success-ink);
}
.stb-dashboard .stb-msg.is-error{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  color: var(--stb-error-ink);
}
.stb-dashboard .stb-msg.is-info{
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.25);
  color: #1e3a8a;
}

/* Busy-State */
.stb-dashboard .button.is-busy{
  position: relative;
  pointer-events: none;
  opacity: .9;
}
.stb-dashboard .button.is-busy::after{
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  border-top-color: rgba(255,255,255,0);
  animation: stb-spin .7s linear infinite;
}
.stb-dashboard .button.stb-decline.is-busy::after{
  border-color: var(--stb-decline);
  border-top-color: transparent;
}
@keyframes stb-spin { to{ transform: rotate(360deg); } }

/* Sanftes Entfernen bestätigter/abgelehnter Zeilen */
.stb-dashboard .stb-row.fade-out{
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
  opacity: 0;
  transform: translateY(3px);
  background: #fff;
}

/* Mobile: Tabelle scrollbar statt brechen */
@media (max-width: 760px){
  .stb-dashboard{
    padding: 14px 12px 8px;
  }
  .stb-dashboard .wp-list-table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .stb-dashboard .button{
    margin-top: 6px;
  }
}