/* =========================================================
   Google Font
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

/* =========================================================
   Root & Reset
========================================================= */
:root{
  --bg:#ffffff;
  --text:#111;
  --muted:rgba(0,0,0,.65);
  --border:rgba(0,0,0,.10);
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:16px;
  --pad:16px;
  --max:1400px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden; /* 🔥 voorkomt horizontale scroll */
  font-family:"Barlow", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}

/* =========================================================
   Containers
========================================================= */

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(14px, 2vw, 24px);
}

/* ❌ 100vw removed (was oorzaak horizontale scroll) */
.bsw-detail-page{
  width:100%;
  margin:0;
}

.bsw-detail-wrap{
  max-width:1450px;
  width:100%;
  margin:0 auto;
  padding:0 16px;
}

/* =========================================================
   Typography
========================================================= */

h1{
  font-size:clamp(22px, 2.2vw, 32px);
  margin:0 0 10px;
}

h2{
  font-size:clamp(18px, 1.8vw, 24px);
  margin:22px 0 10px;
}

p{
  margin:0 0 12px;
}

.muted{
  color:var(--muted);
}

/* =========================================================
   Cards
========================================================= */

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:clamp(14px, 2vw, 20px);
  box-shadow:var(--shadow);
  margin:14px 0;
}

.card-error{
  border-color:rgba(255,0,0,.18);
}

/* =========================================================
   Forms
========================================================= */

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:12px 0;
}

label{
  font-weight:600;
  font-size:14px;
}

input,
textarea,
select{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  font-size:16px;
  outline:none;
}

textarea{
  resize:vertical;
  min-height:140px;
}

/* =========================================================
   Grid
========================================================= */

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media (min-width:780px){
  .grid-2{grid-template-columns:1fr 1fr;}
  .grid-3{grid-template-columns:repeat(3,1fr);}
}

/* =========================================================
   Buttons
========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background:#111;
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
  transition:all .15s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn.secondary{
  background:#fff;
  color:#111;
}

/* =========================================================
   Tables (Responsive Correct)
========================================================= */

.table-wrap{
  overflow:auto;
  border-radius:var(--radius);
  border:1px solid var(--border);
  max-width:100%;
}

.table{
  width:100%;
  border-collapse:collapse;
  min-width:760px; /* mag blijven, scrollt binnen wrapper */
}

.table th,
.table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}

.table th{
  background:rgba(0,0,0,.03);
  font-weight:700;
}

/* =========================================================
   Tool Layout
========================================================= */

.tool-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:24px 16px;
}

.inline{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.inline input{
  flex:1;
  min-width:220px;
}

.kv{
  display:flex;
  gap:12px;
  justify-content:space-between;
  border-bottom:1px dashed rgba(0,0,0,.10);
  padding:8px 0;
}

.kv span{
  color:rgba(0,0,0,.58);
}

/* =========================================================
   Responsive Fixes
========================================================= */

@media(max-width:720px){
  .grid{grid-template-columns:1fr;}
}
