/* ==========================================================================
   Tables
   ========================================================================== */

.mw-table-wrap { overflow-x: auto; }

table.mw-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

table.mw-table thead th {
  background: var(--body-bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.mw-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

table.mw-table tbody tr:last-child td { border-bottom: none; }
table.mw-table tbody tr:hover { background: var(--body-bg); }

table.mw-table .cell-title { font-weight: 600; color: var(--secondary); }
table.mw-table .cell-sub { font-size: 0.75rem; color: var(--muted); }

.table-actions { display: flex; gap: 6px; }

.mw-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.mw-filter-bar .form-select, .mw-filter-bar .form-control { font-size: 0.82rem; padding: 8px 12px; }
.mw-filter-bar .search-box { position: relative; flex: 1; min-width: 220px; }
.mw-filter-bar .search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.8rem; }
.mw-filter-bar .search-box input { padding-left: 34px; padding-right: 30px; }
.mw-filter-bar .search-box .clear-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--muted); font-size: 0.75rem;
  display: none;
}
.mw-filter-bar .search-box.has-value .clear-btn { display: block; }

.progress-mini { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; width: 70px; }
.progress-mini > div { height: 100%; background: var(--success); }
