/* ═══════════════════════════════════════
   Szkolenia Tables – Frontend Styles
   Theme: White & Rose Pink
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --st-pink:        #f4a7b5;
  --st-pink-light:  #fce8ec;
  --st-pink-mid:    #f9d0d8;
  --st-pink-border: #f2bcc6;
  --st-pink-btn:    #e8899a;
  --st-pink-hover:  #fdf1f4;
  --st-text:        #2d2d2d;
  --st-muted:       #a08088;
}

.st-table-wrap {
  font-family: 'DM Sans', sans-serif;
  max-width: 100%;
  margin: 0 auto 2em;
}

/* ── Search ── */
.st-table-search-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  position: relative;
}

.st-search {
  font-family: inherit;
  font-size: 13px;
  border: 1.5px solid var(--st-pink-border);
  border-radius: 6px 0 0 6px;
  padding: 8px 14px;
  outline: none;
  width: 180px;
  color: var(--st-text);
  background: #fff;
  transition: border-color .2s, width .3s;
}

.st-search:focus {
  border-color: var(--st-pink);
  width: 240px;
}

.st-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st-pink);
  color: #fff;
  width: 36px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  pointer-events: none;
}

/* ── Table ── */
.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--st-text);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--st-pink-border);
  box-shadow: 0 4px 18px rgba(232,137,154,.12);
}

/* header row */
.st-table thead tr {
  background: #fff;
  border-bottom: 1.5px solid var(--st-pink-border);
}

.st-table th {
  padding: 15px 18px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--st-text);
}

.st-table th:nth-child(2),
.st-table th:nth-child(3) {
  text-align: right;
}

/* body rows */
.st-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--st-pink-mid);
  vertical-align: middle;
  line-height: 1.5;
}

.st-table tbody tr:last-child td { border-bottom: none; }

.st-table tbody tr:hover td { background: var(--st-pink-hover); }

.st-table td:nth-child(2),
.st-table td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.st-table td:nth-child(2) {
  color: var(--st-muted);
}

.st-table td:nth-child(3) {
  font-weight: 500;
  color: var(--st-text);
}

/* responsive */
@media (max-width: 600px) {
  .st-table th:nth-child(2),
  .st-table td:nth-child(2) { display: none; }
  .st-search { width: 140px; }
  .st-search:focus { width: 180px; }
}
