/* Hourwise UI skin (drop-in) */
/* Primary: #ff7a00  | Dark: #0b0f16 */

:root{
  --hw-bg0:#0b0f16;
  --hw-bg1:#0f1724;
  /* Cards should be opaque because the background is a gradient */
  --hw-card:#14161a;
  --hw-border:rgba(255,255,255,.10);
  --hw-text:rgba(255,255,255,.92);
  --hw-muted:rgba(255,255,255,.72);
  --hw-accent:#ff7a00;
  --hw-accent2:#ffb24d;
  --hw-shadow:0 10px 30px rgba(0,0,0,.35);
}

html,body{height:100%;}
body{
  margin:0;
  color:var(--hw-text);
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(255,122,0,.18), transparent 60%),
    radial-gradient(900px 600px at 88% 18%, rgba(255,178,77,.10), transparent 55%),
    linear-gradient(180deg, var(--hw-bg1), var(--hw-bg0));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Sommige screens (zoals 'Weekstaten' overzicht) ogen rustiger zonder de warme/oranje gloed.
   Dit voorkomt ook het "bruin -> zwart" effect tijdens scrollen. */
body.page-uren_overzicht-php{
  background: var(--hw-bg0) !important;
}

/* Subtle watermark */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:url("/assets/hourwise-watermark.png");
  background-repeat:no-repeat;
  background-position: 92% 68%;
  background-size: min(900px, 70vw);
  opacity:.06;
  filter: blur(.2px);
  z-index:0;
}

/* Keep all your existing content above the watermark */
body > *{ position:relative; z-index:1; }

/* Top nav (your menu links at the top) */
a{ color:var(--hw-accent2); text-decoration:none; }
a:hover{ color:var(--hw-accent); text-decoration:underline; }

.hw-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid var(--hw-border);
  background:rgba(0,0,0,.20);
  backdrop-filter: blur(10px);
}

.hw-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.4px;
}
.hw-brand img{ width:48px; height:auto; display:block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.hw-brand span{ color:var(--hw-accent); }
.hw-brand small{ font-weight:700; color:var(--hw-muted); }

.hw-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-weight:650;
}
.hw-nav a{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
  color:var(--hw-muted);
}
.hw-nav a:hover{
  border-color:var(--hw-border);
  background:rgba(255,255,255,.03);
  color:var(--hw-text);
}

/* Page container
   Default: keep pages nicely centered on wide screens (less "kilometers" between columns).
   Individual pages can override max-width below if they truly need more room.
*/
.hw-container{
  max-width: 1320px;
  width: calc(100% - 48px);
  margin: 18px auto 0 auto;
  padding: 0 24px 40px;
}
@media (max-width:900px){
  .hw-container{ width: calc(100% - 24px); margin: 18px 12px 0 12px; padding: 0 12px 28px; }
}

/* === Wide pages: give a bit more room so tables don't feel cramped === */
body.page-weekstaat-php .hw-container,
body.page-weekstaat_view-php .hw-container{
  max-width: 1680px;
}

/* === Operational pages: tighter "working" width (admin + operations) === */
body.page-marge_overzicht-php .hw-container,
body.page-uren_overzicht-php .hw-container,
body.page-dagstaten-php .hw-container,
body.page-profiel-php .hw-container,
body.page-compliance-php .hw-container{
  max-width: 1240px;
}

/* Make the key tables slightly tighter on desktop for these pages */
@media (min-width: 901px){
  body.page-marge_overzicht-php table,
  body.page-uren_overzicht-php table,
  body.page-dagstaten-php table,
  body.page-compliance-php table,
  body.page-weekstaat-php table{
    border-spacing: 0 8px;
  }
  body.page-marge_overzicht-php th, body.page-marge_overzicht-php td,
  body.page-uren_overzicht-php th, body.page-uren_overzicht-php td,
  body.page-dagstaten-php th, body.page-dagstaten-php td,
  body.page-compliance-php th, body.page-compliance-php td,
  body.page-weekstaat-php th, body.page-weekstaat-php td{
    padding: 0 8px !important;
  }
}

/* Headings */
h1,h2,h3{ margin: 0 0 12px; }
h1{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .2px;
}
h1 em{ color:var(--hw-accent); font-style:normal; }

/* Cards / blocks */
.hw-card{
  background:var(--hw-card);
  border:1px solid var(--hw-border);
  border-radius:16px;
  box-shadow: var(--hw-shadow);
  padding:14px 14px;
  margin:14px 0;
}

/* Tables / form rows (your weekstaat uses inputs) */
table{ border-collapse:separate; border-spacing:0 10px; width:100%; }
th{color:var(--hw-muted); font-weight:800; text-transform:none; font-size:13px; text-align:left; padding:0 10px; }
td{vertical-align:middle; padding:0 10px; }

input, select, textarea, button{
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:var(--hw-text);
  padding:8px 10px;
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color:rgba(255,122,0,.55);
  box-shadow: 0 0 0 3px rgba(255,122,0,.15);
}
button, input[type="submit"]{
  background: linear-gradient(180deg, rgba(255,122,0,.95), rgba(255,122,0,.78));
  border-color: rgba(255,122,0,.55);
  color:#0b0f16;
  font-weight:900;
  cursor:pointer;
}
button:hover, input[type="submit"]:hover{ filter:brightness(1.05); }

.hw-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--hw-border);
  background:rgba(0,0,0,.20);
  color:var(--hw-muted);
}

/* Accent variant for primary links (e.g. Weekstaat uploaden) */
.hw-pill-yellow{
  background: linear-gradient(180deg, rgba(255, 210, 77, .95), rgba(255, 176, 0, .85));
  border-color: rgba(255, 176, 0, .65);
  color:#0b0f16;
  font-weight:900;
}
.hw-pill-yellow:hover{ filter:brightness(1.05); }

/* Warnings/errors nicer (optional: wrap in div class hw-alert) */
.hw-alert{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,122,0,.35);
  background: rgba(255,122,0,.08);
  color: var(--hw-text);
  margin: 12px 0;
}

/* Responsive tweaks */
@media (max-width: 900px){
  .hw-topbar{ flex-direction:column; align-items:flex-start; }
  table{ display:block; overflow-x:auto; }
}

/* Login page polish */
.login-body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
}

.login-card{
  width:min(420px, 92vw);
  padding:18px 18px 16px;
}

.login-card h1{
  margin: 0 0 14px !important;
  font-size: 30px;
  font-weight: 900;
}

.login-card .field label{
  display:block;
  font-weight:800;
  color: var(--hw-muted);
  margin-bottom:6px;
}

.login-card .field{
  margin-bottom:12px;
}

.login-card button{
  width:100%;
  padding:10px 12px;
  margin-top:8px;
}


/* Financieel overzicht (weekstaat) */
.hw-financial{ padding:14px 16px; }
.hw-financial b{ color: var(--hw-text); }
.hw-financial .muted{ color: var(--hw-muted); }


/* Weekstaat table should not force horizontal scroll on big screens */
.weekstaat-table{ width:100%; }

/* Left align tweak */
.hw-container h1{margin-top:8px;}
.hw-container .hw-subtitle{margin-top:6px;}


/* --- Gebruikersbeheer: kolommen strak houden (labels boven inputs) --- */
.hw-tablewrap{ width:100%; overflow-x:auto; padding-bottom:6px; }
.gb-table{ table-layout:fixed; min-width:980px; }
.gb-table th, .gb-table td{ padding: 6px 10px; }
/* Gebruikersbeheer: maak rijen rustiger (tegel-look) zonder extra rommel */
body.page-gebruikersbeheer-php .gb-table{
  border-collapse: separate;
  border-spacing: 0 6px;
}
body.page-gebruikersbeheer-php .gb-table tbody tr td{
  background: rgba(255,255,255,0.03);
}
body.page-gebruikersbeheer-php .gb-table tbody tr td:first-child{
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
body.page-gebruikersbeheer-php .gb-table tbody tr td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}


/* === Admin pages: keep everything tighter on wide screens === */
body.page-gebruikersbeheer-php .hw-container,
body.page-klantenbeheer-php .hw-container,
body.page-vestigingenbeheer-php .hw-container,
body.page-werkbussenbeheer-php .hw-container{
  max-width: 1240px;
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px){
  body.page-gebruikersbeheer-php .hw-container,
  body.page-klantenbeheer-php .hw-container,
  body.page-vestigingenbeheer-php .hw-container,
  body.page-werkbussenbeheer-php .hw-container{
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* Reduce row spacing for admin maintenance tables */
body.page-gebruikersbeheer-php table.tabel,
body.page-klantenbeheer-php table.tabel,
body.page-vestigingenbeheer-php table.tabel,
body.page-werkbussenbeheer-php table.tabel{
  border-spacing: 0 6px;
}

/* Gebruikersbeheer: allow columns to pack tighter */
body.page-gebruikersbeheer-php .gb-table{
  table-layout: auto;
  min-width: 0;
}
body.page-gebruikersbeheer-php .gb-table th,
body.page-gebruikersbeheer-php .gb-table td{
  padding: 6px 8px;
}

/* Actions column: consistent button sizes */
body.page-gebruikersbeheer-php .gb-actions{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
body.page-gebruikersbeheer-php .gb-actions form{ display:inline; margin:0; }
body.page-gebruikersbeheer-php .gb-actions .btn{ line-height: 1; }
body.page-gebruikersbeheer-php .gb-actionform,
body.page-gebruikersbeheer-php .gb-actionlink{ margin-top:0; }

/* Klanten/Vestigingen/Werkbussen: keep action buttons close */
body.page-klantenbeheer-php td:last-child,
body.page-vestigingenbeheer-php td:last-child,
body.page-werkbussenbeheer-php td:last-child{ white-space: nowrap; }
.gb-rowform{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap; /* voorkomt 'zwevende' inputs onder verkeerde header */
}
.gb-rowform input, .gb-rowform select{
  min-width:0;
  width:100%;
}
.gb-input{ width:100%; min-width:0; }
.gb-actionform{ display:inline-block; margin-top:6px; }
.gb-actionlink{ display:inline-block; margin-top:6px; }

/* --- Dashboard tiles --- */
.hw-tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin-bottom:12px;
}
.tile-title{ color:var(--hw-muted); font-weight:800; font-size:13px; text-transform:none; }
.tile-kpi{ font-size:34px; font-weight:900; letter-spacing:.5px; margin-top:6px; }
.tile-sub{ color:var(--hw-muted); font-size:12px; margin-top:4px; }

/* --- Dashboard banners (overzichtelijker dan losse kaders) --- */
.hw-banner-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
  margin-bottom:12px;
}
.hw-banner{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  text-decoration:none;
  color:inherit;
  transition:transform .12s ease, border-color .12s ease;
}
.hw-banner:hover{ transform:translateY(-1px); border-color:rgba(255,255,255,.24); }
.hw-banner-kpi{ font-size:36px; font-weight:950; min-width:56px; text-align:left; }
.hw-banner-title{ font-weight:900; letter-spacing:.2px; }
.hw-banner-sub{ font-size:12px; color:var(--hw-muted); margin-top:2px; }
.hw-banner-text{ flex:1; min-width:0; }
.hw-banner-cta{ font-weight:800; opacity:.9; }

.hw-banner.danger{ background:linear-gradient(135deg, rgba(231,76,60,.22), rgba(255,255,255,.04)); border-color:rgba(231,76,60,.25); }
.hw-banner.warn{   background:linear-gradient(135deg, rgba(241,196,15,.18), rgba(255,255,255,.04)); border-color:rgba(241,196,15,.22); }
.hw-banner.info{   background:linear-gradient(135deg, rgba(52,152,219,.18), rgba(255,255,255,.04)); border-color:rgba(52,152,219,.22); }

/* --- Dashboard layout panels --- */
.hw-dashboard-grid{
  display:grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap:12px;
  align-items:start;
  margin-bottom:12px;
}
@media (max-width: 920px){
  .hw-dashboard-grid{ grid-template-columns:1fr; }
  .hw-dashboard-subgrid{ grid-template-columns:1fr !important; }
}

.hw-panel{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:14px 16px;
  box-shadow:0 8px 24px rgba(0,0,0,.26);
}
.hw-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.hw-panel-actions{ display:flex; gap:8px; flex-wrap:wrap; }

.hw-notice{
  border:1px solid rgba(255,255,255,.10);
  background:var(--hw-card);
  border-radius:14px;
  padding:10px 12px;
}


/* Buttons (global) */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background:#ff8a00;
  color:#111;
  font-weight:700;
  text-decoration:none;
  border:0;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}
.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform:translateY(1px); }


/* === Mobile-first additions for ZZP === */
/* Show per-cell labels only on small screens */
.hw-fieldlabel{display:none;font-size:12px;font-weight:800;letter-spacing:.2px;color:var(--hw-muted);margin:0 0 4px;}

@media (max-width: 720px){
  /* Container: no sideways scroll */
  .hw-container{width:calc(100% - 20px) !important; margin:12px 0 0 10px !important; padding:0 0 24px 0 !important;}

  /* Topbar: compact + nav becomes swipeable */
  .hw-topbar{padding:12px 12px;}
  .hw-brand img{width:42px;}
  .hw-nav{flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; gap:8px; width:100%; padding-bottom:6px;}
  .hw-nav a{white-space:nowrap; padding:8px 10px;}
  .hw-nav::-webkit-scrollbar{height:6px;}

  /* Weekstaat: turn each row into a card */
  table.tabel{display:block; border-spacing:0; }
  table.tabel thead{display:none;}
  table.tabel tbody{display:block;}
  table.tabel tr.wk-row{
    display:block;
    background:var(--hw-card);
    border:1px solid var(--hw-border);
    border-radius:16px;
    box-shadow: var(--hw-shadow);
    padding:12px;
    margin:12px 0;
  }

  /* Vaste dag-header boven elke card (blijft even plakken tijdens scroll) */
  table.tabel tr.wk-row::before{
    content: attr(data-daytitle);
    display:block;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -12px -12px 10px -12px; /* header strak tegen de card */
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    border-radius: 16px 16px 0 0;
    background: var(--hw-card);
    font-weight: 950;
    letter-spacing: .2px;
  }

  table.tabel td{display:block; padding:6px 0 !important;}
  .hw-fieldlabel{display:block;}

  /* Inputs: full width, thumb-friendly */
  input, select, textarea{width:100%; box-sizing:border-box; padding:10px 12px;}
  input[type=number]{max-width:100%;}
  button, input[type=submit]{width:100%; padding:12px 14px;}

  /* Pills (Upload/Bekijk) stack nicely */
  .hw-pill{width:auto; margin:4px 6px 0 0;}

  /* Totals look like a label/value pair */
  .totaal-uren{font-weight:900;}
}

/* === Generic mobile cards for other ZZP tables === */
@media (max-width: 720px){
  table.hw-mobile-cards{display:block;}
  table.hw-mobile-cards thead{display:none;}
  table.hw-mobile-cards tbody{display:block;}
  table.hw-mobile-cards tr{display:block; background:var(--hw-card); border:1px solid var(--hw-border); border-radius:16px; box-shadow:var(--hw-shadow); padding:12px; margin:12px 0;}
  table.hw-mobile-cards td{display:flex; gap:10px; align-items:flex-start; padding:6px 0 !important;}
  table.hw-mobile-cards td::before{content:attr(data-label); flex:0 0 42%; max-width:42%; color:var(--hw-muted); font-weight:850; font-size:12px; letter-spacing:.2px;}
  table.hw-mobile-cards td > *{flex:1; min-width:0;}
}

/* Theme overrides for inline boxes */
#wk-totals{border-color:var(--hw-border) !important; background:var(--hw-card) !important; color:var(--hw-text) !important;}
#wk-totals b{color:var(--hw-text) !important;}
#wk-totals span{font-weight:900;}
.notice{border-color:var(--hw-border) !important; background:var(--hw-card) !important; color:var(--hw-text) !important;}

/* Actions (weekstaat) */
.hw-actions-bar{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:12px;}
.hw-actions-bar .btn-secondary{background:transparent;border:1px solid var(--hw-border);color:var(--hw-text);box-shadow:none;}
.hw-actions-bar .btn-secondary:hover{filter:brightness(1.08);}

@media (max-width: 720px){
  .hw-actions-bar{flex-direction:column;align-items:stretch;gap:12px;}
  .hw-actions-bar button{margin:0 !important;}
}


/* Patch UI-01D: ZZP tarieven indicatie (algemeen) leesbaar in dark theme */
.zzp-tarieven-indicatie,
.zzp-tarieven-indicatie * {
  color: #d4af37 !important;
  font-weight: 600;
}



/* Weekstaten admin - overzichtelijker + mobiel */
.ws-admin-toolbar{display:flex;justify-content:flex-start;margin:10px 0 14px 0;}
.ws-admin-search{
  width:min(520px,100%);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--hw-border);
  background:rgba(0,0,0,.25);
  color:var(--hw-text);
  outline:none;
}
.ws-admin-search::placeholder{color:rgba(255,255,255,.55);}
.hw-table-scroll{overflow:auto;max-width:100%;}
.ws-admin-table{width:100%;border-collapse:collapse;}
.ws-admin-user{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:320px;}
.ws-admin-name{font-weight:800;}
.ws-admin-email{color:var(--hw-muted);font-size:.92em;word-break:break-all;}
.ws-admin-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.ws-admin-link{
  display:inline-block;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--hw-border);
  color:var(--hw-text);
  text-decoration:none;
  background:rgba(0,0,0,.18);
}
.ws-admin-link:hover{filter:brightness(1.08);}
.ws-admin-link-primary{border-color:rgba(255,122,0,.45); box-shadow:0 0 0 2px rgba(255,122,0,.10) inset;}
.ws-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--hw-border);
  background:rgba(255,255,255,.06);
  color:var(--hw-text);
  font-weight:700;
  text-transform:lowercase;
}
.ws-badge-empty{opacity:.7;}
.ws-badge-concept{border-color:rgba(255,122,0,.35);}
.ws-badge-definitief, .ws-badge-approved, .ws-badge-goedgekeurd{border-color:rgba(70, 200, 120, .35);}

/* Gebruikersbeheer: nieuw/incompleet badges */
.ws-badge-new{border-color:rgba(212, 175, 55, .55); box-shadow:0 0 0 2px rgba(212,175,55,.12) inset;}
.ws-badge-incomplete{border-color:rgba(255,122,0,.50); box-shadow:0 0 0 2px rgba(255,122,0,.12) inset;}
.ws-badge-ok{border-color:rgba(70, 200, 120, .45); box-shadow:0 0 0 2px rgba(70,200,120,.10) inset;}

@media (max-width: 900px){
  .ws-admin-user{flex-direction:column;align-items:flex-start;}
  .ws-admin-actions{justify-content:flex-start;}
}

@media (max-width: 720px){
  /* Tabel -> cards */
  .ws-admin-table thead{display:none;}
  .ws-admin-table, .ws-admin-table tbody, .ws-admin-table tr, .ws-admin-table td{display:block;width:100%;}
  .ws-admin-table tr{
    margin:12px 0;
    border:1px solid var(--hw-border);
    border-radius:16px;
    padding:12px;
    background:rgba(0,0,0,.18);
  }
  .ws-admin-table td{padding:8px 0;border:none;}
  .ws-admin-user{min-width:0;}
}



/* --- Gebruikersbeheer: minder rommelig --- */
.gb-name-link{
  display:inline-block;
  padding:6px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-decoration:none;
  color:inherit;
}
.gb-name-link:hover{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}
.gb-email{ opacity:.9; }
.gb-dot{
  display:inline-block;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  border:1px solid rgba(255,255,255,.12);
  opacity:.9;
  vertical-align:middle;
}
.gb-dot-new{
  background:rgba(255,215,0,.10);
}
.gb-dot-warn{
  background:rgba(255,140,0,.10);
}

/* ================================
   FIX: witte vakjes factuur (ZZP)
   Alleen styling – geen PHP/HTML
   ================================ */
label[style*="background:#fff"][style*="border-radius:10px"] {
    background: #1c2330 !important;
    border: 1px solid #2b3446 !important;
    color: #ffffff !important;
}

label[style*="background:#fff"] input[type="checkbox"] {
    accent-color: #f28c00;
}

label[style*="background:#fff"] input[type="email"] {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
}

label[style*="background:#fff"] input[type="email"]::placeholder {
    color: #7f8aa3;
}

label[style*="background:#fff"]:focus-within {
    border-color: #f28c00 !important;
    box-shadow: 0 0 0 1px rgba(242,140,0,0.35);
}

/* =============================
   Invoices dashboard (compact)
   ============================= */

.hw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,165,0,0.35);
  background:rgba(255,165,0,0.12);
  color:var(--hw-text);
  cursor:pointer;
  font-weight:800;
}
.hw-btn:hover{ background:rgba(255,165,0,0.18); }

.hw-btn-mini{
  padding:7px 10px;
  border-radius:10px;
  font-size:12px;
  line-height:1;
}

.hw-btn-ghost{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.12);
}
.hw-btn-ghost:hover{ background:rgba(255,255,255,.08); }

.hw-btn-danger{
  border-color:rgba(255,80,80,.35);
  background:rgba(255,80,80,.12);
}
.hw-btn-danger:hover{ background:rgba(255,80,80,.18); }

.hw-inv-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:end;
  justify-content:space-between;
  margin: 10px 0 14px;
}
.hw-inv-toolbar .hw-inv-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:end;
}
.hw-inv-field{ display:flex; flex-direction:column; gap:6px; }
.hw-inv-field label{ font-size:12px; color:var(--hw-muted); font-weight:800; }
.hw-inv-field input[type="text"]{ min-width: 240px; }

.hw-inv-summary{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.hw-inv-chip{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--hw-border);
  background:rgba(0,0,0,.20);
  color:var(--hw-muted);
  font-weight:800;
}
.hw-inv-chip strong{ color:var(--hw-text); }

.hw-inv-list{ display:flex; flex-direction:column; gap:10px; }

.hw-inv-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--hw-border);
  background:rgba(0,0,0,.18);
}

.hw-inv-left{ min-width: 0; display:flex; flex-direction:column; gap:6px; }
.hw-inv-title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-weight:900;
}
.hw-inv-title a{ color:var(--hw-text); }
.hw-inv-title a:hover{ color:var(--hw-accent2); text-decoration:none; }

.hw-inv-meta{ display:flex; flex-wrap:wrap; gap:10px; color:var(--hw-muted); font-weight:700; font-size:13px; }

.hw-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid var(--hw-border);
  background:rgba(255,255,255,.05);
  font-size:12px;
  font-weight:900;
  color:var(--hw-muted);
}
.hw-badge.concept{ border-color: rgba(255,178,77,.30); color: rgba(255,178,77,.95); }
.hw-badge.verzonden{ border-color: rgba(100,200,255,.25); color: rgba(140,220,255,.95); }
.hw-badge.betaald{ border-color: rgba(120,255,160,.22); color: rgba(150,255,190,.95); }

.hw-inv-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.hw-inv-amount{ font-weight:1000; white-space:nowrap; }

.hw-inline{ display:inline-flex; gap:8px; align-items:center; }

details.hw-inv-details > summary{
  cursor:pointer;
  list-style:none;
}
details.hw-inv-details > summary::-webkit-details-marker{ display:none; }

@media (max-width: 900px){
  .hw-inv-row{ align-items:flex-start; }
  .hw-inv-right{ width:100%; justify-content:flex-start; }
  .hw-inv-field input[type="text"]{ min-width: 180px; width: 100%; }
}
