:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --shadow: 0 18px 55px rgba(2,6,23,.10);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

.muted{ color:var(--muted); }

/* Layout */
.pt-layout{
  display:grid;
  grid-template-columns: 270px 1fr;
  min-height:100vh;
}

/* Sidebar */
.pt-side{
  position:sticky;
  top:0;
  height:100vh;
  background:#0b1220;
  color:#e5e7eb;
  border-right:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
}

.pt-side-top{ padding:18px 16px 12px; }

.pt-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 10px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
}

.pt-logo{
  width:42px; height:42px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(99,102,241,.95));
}

.pt-brand-title{ font-weight:900; letter-spacing:.2px; }
.pt-brand-sub{ font-size:12px; opacity:.85; font-weight:700; }

.pt-usercard{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  display:flex;
  gap:10px;
  align-items:center;
}

.pt-user-avatar{
  width:40px; height:40px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
}

.pt-user-name{ font-weight:900; }
.pt-user-role{ font-size:12px; opacity:.85; font-weight:700; }

.pt-nav{
  padding:8px 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.pt-nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  color:#e5e7eb;
  text-decoration:none;
  font-weight:800;
  opacity:.92;
}
.pt-nav-item i{ width:18px; text-align:center; opacity:.95; }
.pt-nav-item:hover{ background: rgba(255,255,255,.08); }
.pt-nav-item--active{
  background: rgba(59,130,246,.18);
  border:1px solid rgba(59,130,246,.25);
}

.pt-side-bottom{
  margin-top:auto;
  padding:14px 14px 16px;
  border-top:1px solid rgba(255,255,255,.08);
}

.pt-logout{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
}
.pt-logout:hover{ background: rgba(255,255,255,.10); }

.pt-side-foot{ margin-top:10px; font-size:12px; opacity:.75; text-align:center; }

/* Main */
.pt-main{
  padding:18px 22px;
}

.pt-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:14px;
}

.pt-h1{ font-size:22px; font-weight:900; }
.pt-muted{ color:var(--muted); font-weight:800; font-size:12px; margin-top:2px; }

.pt-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pt-select, .pt-input{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  outline:none;
}
.pt-input{ min-width:280px; }

.pt-btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}
.pt-btn--ghost:hover{ background:#f8fafc; }

/* Card + table */
.pt-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.pt-tablewrap{ overflow:auto; }

.pt-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.pt-table thead th{
  text-align:left;
  padding:12px 14px;
  font-size:12px;
  color:#334155;
  font-weight:900;
  background:#f8fafc;
  border-bottom:1px solid var(--line);
}

.pt-table tbody td{
  padding:12px 14px;
  border-bottom:1px solid #f1f5f9;
  vertical-align:middle;
}

.pt-th-right, .pt-td-right{ text-align:right; }
.pt-td-center{ text-align:center; color:var(--muted); font-weight:800; }

.pst-rowtitle{ font-weight:900; color:#0f172a; }
.pst-rowmeta{ color:var(--muted); font-weight:800; font-size:12px; margin-top:3px; }

/* Buttons in rows */
.pst-btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}
.pst-btn--soft{ background:#f8fafc; }
.pst-btn--soft:hover{ background:#eef2ff; }

/* Badges status/prio (re-using your classes) */
.pst-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:900;
  border:1px solid var(--line);
  background:#fff;
}
.pst-badge--ok{ background:#ecfdf5; border-color:#bbf7d0; color:#166534; }
.pst-badge--soft{ background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.pst-badge--warn{ background:#fffbeb; border-color:#fde68a; color:#92400e; }
.pst-badge--danger{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.pst-badge--neutral{ background:#f8fafc; border-color:#e2e8f0; color:#334155; }

/* NEW badge */
.pst-badge-new{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.3px;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
  margin-left:8px;
}
.pst-dot{
  width:8px; height:8px; border-radius:50%;
  background:#3b82f6;
}

/* Responsive */
@media (max-width: 980px){
  .pt-layout{ grid-template-columns: 1fr; }
  .pt-side{ position:relative; height:auto; }
  .pt-input{ min-width: 220px; }
}