:root{--blue:#0b5cab;--light:#eef6ff;--line:#d7e3f2;--text:#111827}
body{font-family:Arial,Helvetica,sans-serif;margin:0;background:#f3f6fb;color:var(--text)}
.wrap{max-width:1180px;margin:20px auto;padding:12px}
.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:0 3px 12px rgba(0,0,0,.08)}
h1,h2,h3{color:var(--blue)} h1{margin:0 0 8px}
.tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.tabs button{background:#e5e7eb}.tabs button.active{background:var(--blue);color:white}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
label{display:block;font-size:12px;font-weight:bold;margin-bottom:4px}
input,select,textarea{width:100%;padding:8px;border:1px solid #cbd5e1;border-radius:7px;font-size:14px}
button{border:0;border-radius:8px;padding:10px 14px;margin-top:8px;font-weight:bold;cursor:pointer}
.primary{background:var(--blue);color:white}.secondary{background:#e5e7eb}.danger{background:#fee2e2;color:#991b1b}
.row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1.4fr 2fr auto;gap:7px;align-items:end;margin-bottom:7px}.rate-edit-row{display:grid;grid-template-columns:2fr 1fr auto;gap:8px;align-items:end;margin-bottom:8px}
.invoice{width:210mm;min-height:297mm;background:white;margin:0 auto;padding:12mm;box-shadow:0 4px 22px rgba(0,0,0,.15)}
.top{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid var(--blue);padding-bottom:18px}
.brand{display:flex;gap:18px;align-items:center}.brand-logo{max-width:95px;max-height:95px;object-fit:contain}.brand h1{margin:0;font-size:34px}.brand p{margin:5px 0 0;color:#475569}
.company{text-align:right;font-size:14px;line-height:1.55}
.title{display:flex;justify-content:space-between;margin:18px 0 14px}.title h2{margin:0;font-size:34px;color:var(--blue)}
.meta table{border-collapse:collapse}.meta td{padding:5px 0 5px 24px;font-size:14px}.meta td:first-child{color:var(--blue);font-weight:bold}
.customer{line-height:1.5;font-size:15px}.customer strong{color:var(--blue)}
.items{width:100%;border-collapse:collapse;margin-top:10px;font-size:12.5px}.items th{background:var(--blue);color:white;padding:6px;text-align:left}.items td{border-bottom:1px solid var(--line);padding:5px}.num{text-align:right}
.summary{display:flex;justify-content:space-between;gap:18px;margin-top:14px}.vat{width:50%;font-size:13px;line-height:1.5}.vat strong{color:var(--blue)}
.totals{width:42%}.totals table{width:100%;border-collapse:collapse}.totals td{padding:8px;border-bottom:1px solid var(--line)}.totals td:last-child{text-align:right}.grand td{background:var(--blue);color:white;font-size:17px;font-weight:bold}
.paymentbox{margin-top:14px;border:2px solid var(--blue);border-radius:10px;padding:10px 12px;background:var(--light);font-size:12.5px;line-height:1.25}.paymentbox h3{margin:0 0 5px;color:var(--blue);font-size:15px}
.footer{margin-top:10px;text-align:center;font-size:10px;color:#64748b}.note{font-size:12px;color:#64748b}.hidden{display:none}.history-actions{display:flex;gap:6px;flex-wrap:wrap}.history-table{width:100%;border-collapse:collapse;margin-top:12px}.history-table th{background:var(--blue);color:white;text-align:left;padding:8px}.history-table td{border-bottom:1px solid var(--line);padding:8px}.pro-lock{background:#fff4e5;border:1px solid #f59e0b;padding:14px;border-radius:10px;margin-top:10px}
@media print{body{background:white}.no-print{display:none}.wrap{margin:0;padding:0;max-width:none}.invoice{box-shadow:none;margin:0;width:auto;min-height:auto;padding:10mm}.top{padding-bottom:10px}.title{margin:12px 0 10px}.brand h1{font-size:30px}.title h2{font-size:30px}}

/* FactuurPro 3.0 Dashboard */
.dashboard-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}
.dashboard-heading h2{margin:0 0 4px}
.dashboard-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:16px 0 20px;
}
.dashboard-card{
  background:linear-gradient(145deg,#ffffff,#f3f7fc);
  border:1px solid #d7e2ef;
  border-radius:14px;
  padding:18px;
  box-shadow:0 5px 14px rgba(26,54,93,.08);
}
.dashboard-card span{
  display:block;
  color:#53657a;
  font-size:13px;
  margin-bottom:8px;
}
.dashboard-card strong{
  display:block;
  color:#0b5cab;
  font-size:26px;
  line-height:1.1;
}
.dashboard-details{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);
  gap:16px;
}
.dashboard-section{
  background:#fff;
  border:1px solid #d7e2ef;
  border-radius:14px;
  padding:18px;
}
.dashboard-section h3{margin-top:0}
.dashboard-list{
  display:grid;
  gap:12px;
}
.dashboard-list div{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-bottom:10px;
  border-bottom:1px solid #edf1f6;
}
.dashboard-list div:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.dashboard-list span{color:#53657a}
.dashboard-list strong{text-align:right}
.dashboard-chart{
  display:grid;
  gap:10px;
}
.dashboard-chart-row{
  display:grid;
  grid-template-columns:36px minmax(80px,1fr) 95px;
  align-items:center;
  gap:10px;
  font-size:13px;
}
.dashboard-chart-track{
  height:12px;
  overflow:hidden;
  background:#edf2f8;
  border-radius:999px;
}
.dashboard-chart-bar{
  height:100%;
  background:linear-gradient(90deg,#0b5cab,#3188df);
  border-radius:999px;
  transition:width .3s ease;
}
.dashboard-chart-row strong{
  text-align:right;
  font-size:12px;
}
.dashboard-empty{
  margin-top:16px;
  padding:14px;
  border:1px dashed #9db2c9;
  border-radius:10px;
  background:#f8fbff;
}
@media(max-width:850px){
  .dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-details{grid-template-columns:1fr}
}
@media(max-width:560px){
  .dashboard-heading{display:block}
  .dashboard-heading button{margin-top:10px}
  .dashboard-cards{grid-template-columns:1fr}
  .dashboard-chart-row{grid-template-columns:32px minmax(70px,1fr) 82px}
}

/* FactuurPro 3.1 Home */
.home-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  padding:24px;
  margin-bottom:18px;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(135deg,#0b5cab,#287fcf);
  box-shadow:0 10px 24px rgba(11,92,171,.20);
}
.home-eyebrow{
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
  opacity:.88;
}
.home-hero h2{
  margin:0 0 8px;
  font-size:30px;
}
.home-subtitle{
  margin:0;
  max-width:600px;
  opacity:.9;
}
.home-version{
  min-width:150px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:14px;
  background:rgba(255,255,255,.12);
  text-align:right;
}
.home-version span,
.home-version small{
  display:block;
}
.home-version strong{
  display:block;
  margin:3px 0;
  font-size:24px;
}
.home-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.home-action{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:88px;
  padding:16px;
  border:1px solid #d7e2ef;
  border-radius:14px;
  background:#fff;
  color:#1d2d3d;
  text-align:left;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(26,54,93,.07);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.home-action:hover{
  transform:translateY(-2px);
  border-color:#9dbfe1;
  box-shadow:0 8px 18px rgba(26,54,93,.12);
}
.home-action-primary{
  color:#fff;
  border-color:#0b5cab;
  background:linear-gradient(135deg,#0b5cab,#287fcf);
}
.home-action-icon{
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  border-radius:12px;
  background:#eef6ff;
  color:#0b5cab;
  font-size:23px;
  font-weight:700;
}
.home-action-primary .home-action-icon{
  color:#fff;
  background:rgba(255,255,255,.18);
}
.home-action strong,
.home-action small{
  display:block;
}
.home-action strong{
  margin-bottom:4px;
  font-size:15px;
}
.home-action small{
  color:#62758a;
  font-weight:400;
}
.home-action-primary small{
  color:rgba(255,255,255,.82);
}
.home-overview{
  padding:20px;
  border:1px solid #d7e2ef;
  border-radius:16px;
  background:#f9fbfd;
}
.home-overview-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:15px;
}
.home-overview-header h3{
  margin:0 0 4px;
}
.home-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.home-stat{
  padding:16px;
  border:1px solid #e0e8f1;
  border-radius:12px;
  background:#fff;
}
.home-stat span{
  display:block;
  margin-bottom:7px;
  color:#62758a;
  font-size:13px;
}
.home-stat strong{
  display:block;
  color:#0b5cab;
  font-size:21px;
}
.home-starter{
  padding:18px;
  border:1px solid #b9d2eb;
  border-radius:12px;
  background:#eef6ff;
}
.home-starter p{
  margin:7px 0 12px;
}
@media(max-width:850px){
  .home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .home-hero{display:block;padding:20px}
  .home-hero h2{font-size:25px}
  .home-version{margin-top:16px;text-align:left}
  .home-actions{grid-template-columns:1fr}
  .home-overview-header{display:block}
  .home-overview-header button{margin-top:10px}
  .home-summary{grid-template-columns:1fr}
}

/* =========================================================
   FactuurPro 3.2.0 - Professionele interface
   ========================================================= */

:root{
  --fp-sidebar-width:248px;
  --fp-sidebar:#122033;
  --fp-sidebar-soft:#1b2d44;
  --fp-accent:#0b5cab;
  --fp-accent-soft:#eaf4ff;
  --fp-border:#d8e1eb;
  --fp-bg:#eef3f8;
  --fp-text:#203040;
  --fp-muted:#6b7c8f;
  --fp-card:#ffffff;
}

body.modern-ui{
  margin:0;
  min-height:100vh;
  background:var(--fp-bg);
  color:var(--fp-text);
}

.app-shell{
  min-height:100vh;
  display:flex;
}

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:30;
  width:var(--fp-sidebar-width);
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,var(--fp-sidebar),#0d1827);
  color:#fff;
  box-shadow:8px 0 24px rgba(17,31,48,.12);
}

.sidebar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:22px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-logo{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:linear-gradient(135deg,#1e88e5,#0b5cab);
  font-weight:800;
  letter-spacing:.5px;
  box-shadow:0 7px 18px rgba(0,0,0,.18);
}

.sidebar-brand strong,
.sidebar-brand small{
  display:block;
}

.sidebar-brand strong{
  font-size:15px;
}

.sidebar-brand small{
  margin-top:2px;
  color:#9fb0c3;
  font-size:11px;
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 12px;
  overflow:auto;
}

.sidebar-nav button{
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#c7d2df;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}

.sidebar-nav button:hover{
  background:rgba(255,255,255,.07);
  color:#fff;
  transform:translateX(2px);
}

.sidebar-nav button.active{
  background:linear-gradient(135deg,#1f6db6,#155c9c);
  color:#fff;
  box-shadow:0 7px 16px rgba(0,0,0,.16);
}

.sidebar-nav button span{
  width:24px;
  text-align:center;
  font-size:17px;
}

.sidebar-nav button em{
  margin-left:auto;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#dce9f6;
  font-size:10px;
  font-style:normal;
}

.sidebar-footer{
  margin-top:auto;
  padding:14px 14px 18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.sidebar-license{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px;
  border-radius:11px;
  background:rgba(255,255,255,.05);
}

.status-dot{
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-radius:50%;
  background:#e7a33c;
  box-shadow:0 0 0 4px rgba(231,163,60,.12);
}

.status-dot.active{
  background:#36c275;
  box-shadow:0 0 0 4px rgba(54,194,117,.12);
}

.sidebar-license strong,
.sidebar-license small{
  display:block;
}

.sidebar-license strong{
  font-size:12px;
}

.sidebar-license small{
  margin-top:2px;
  color:#9fb0c3;
  font-size:10px;
}

.main-column{
  width:calc(100% - var(--fp-sidebar-width));
  min-height:100vh;
  margin-left:var(--fp-sidebar-width);
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:16px;
  min-height:78px;
  padding:0 28px;
  border-bottom:1px solid var(--fp-border);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
}

.topbar h1{
  margin:0;
  font-size:22px;
}

.topbar p{
  margin:3px 0 0;
  color:var(--fp-muted);
  font-size:12px;
}

.topbar-actions{
  margin-left:auto;
}

.sidebar-toggle{
  display:none;
  width:40px;
  height:40px;
  border:1px solid var(--fp-border);
  border-radius:10px;
  background:#fff;
  font-size:19px;
  cursor:pointer;
}

.compact{
  padding:9px 13px !important;
}

.app-content{
  padding:24px;
}

.app-content > div[id$="Panel"]{
  max-width:1400px;
  margin:0 auto 24px;
}

.modern-ui .tabs{
  display:none !important;
}

.modern-ui .card,
.modern-ui .panel,
.modern-ui .dashboard-section,
.modern-ui .home-overview,
.modern-ui .invoice{
  border-color:var(--fp-border);
  box-shadow:0 6px 18px rgba(28,49,73,.06);
}

.modern-ui button{
  border-radius:9px;
}

.modern-ui input,
.modern-ui select,
.modern-ui textarea{
  border-radius:8px;
}

@media(max-width:900px){
  .sidebar{
    transform:translateX(-100%);
    transition:transform .22s ease;
  }

  body.sidebar-open .sidebar{
    transform:translateX(0);
  }

  .main-column{
    width:100%;
    margin-left:0;
  }

  .sidebar-toggle{
    display:inline-grid;
    place-items:center;
  }

  body.sidebar-open::after{
    content:"";
    position:fixed;
    inset:0;
    z-index:25;
    background:rgba(5,14,24,.42);
  }
}

@media(max-width:600px){
  .topbar{
    min-height:70px;
    padding:0 14px;
  }

  .topbar h1{
    font-size:18px;
  }

  .topbar p{
    display:none;
  }

  .topbar-actions .secondary{
    font-size:0;
    width:40px;
    height:40px;
    padding:0 !important;
  }

  .topbar-actions .secondary::before{
    content:"+";
    font-size:23px;
  }

  .app-content{
    padding:14px;
  }
}

/* =========================================================
   FactuurPro 3.2.1 - Breedte- en overflowcorrectie
   ========================================================= */

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

.app-shell,
.main-column,
.app-content{
  min-width:0;
  max-width:100%;
}

.main-column{
  box-sizing:border-box;
  overflow-x:hidden;
}

.app-content{
  box-sizing:border-box;
  width:100%;
}

.app-content > div[id$="Panel"]{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
}

.home-hero,
.home-actions,
.home-overview,
.home-summary,
.dashboard-cards,
.dashboard-details,
.dashboard-section,
.dashboard-chart,
.card,
.panel{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.home-actions,
.home-summary,
.dashboard-cards,
.dashboard-details{
  width:100%;
}

.home-action,
.home-stat,
.dashboard-card,
.dashboard-section{
  min-width:0;
}

.home-action span,
.home-stat span,
.dashboard-card span,
.dashboard-list span,
.dashboard-list strong{
  overflow-wrap:anywhere;
}

.invoice{
  box-sizing:border-box;
  max-width:100%;
  overflow-x:auto;
}

table{
  max-width:100%;
}

input,
select,
textarea{
  max-width:100%;
  box-sizing:border-box;
}

@media(max-width:1180px){
  .home-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .home-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .dashboard-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .dashboard-details{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .home-actions,
  .home-summary,
  .dashboard-cards{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   FactuurPro 3.2.2 - Layout-herstel
   ========================================================= */

/* De oude centrale container mag de nieuwe applicatie niet meer begrenzen. */
.modern-ui .wrap{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

.modern-ui .wrap > .panel{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

/* Oude kop en licentieblokken worden vervangen door de zijbalkstatus. */
.modern-ui #starterBanner,
.modern-ui #licenseBox,
.modern-ui .wrap > .panel > h1,
.modern-ui .wrap > .panel > h1 + .note{
  display:none !important;
}

/* De app begint nu echt bovenaan het scherm. */
.modern-ui .app-shell{
  width:100%;
  min-height:100vh;
}

/* Factuurscherm: invoer bovenaan, voorbeeld eronder en volledig binnen beeld. */
.modern-ui #invoicePanel.invoice-workspace{
  display:block;
  width:100%;
  max-width:1180px;
}

.modern-ui #invoicePanel.invoice-workspace.hidden{
  display:none;
}

.modern-ui #invoicePanel .grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.modern-ui #invoicePreview{
  width:100%;
  max-width:100%;
  min-height:auto;
  margin:26px auto 0;
  padding:clamp(18px,3vw,44px);
  overflow:visible;
  box-sizing:border-box;
}

/* Tabellen en factuurkop mogen niet buiten het voorbeeld steken. */
.modern-ui #invoicePreview .top,
.modern-ui #invoicePreview .title,
.modern-ui #invoicePreview .summary{
  min-width:0;
  max-width:100%;
}

.modern-ui #invoicePreview .items{
  table-layout:fixed;
}

.modern-ui #invoicePreview .items th,
.modern-ui #invoicePreview .items td{
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Op kleinere laptops worden de invoervelden eerder verdeeld. */
@media(max-width:1250px){
  .modern-ui #invoicePanel .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .modern-ui .row{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .modern-ui .row > *{
    min-width:0;
  }
}

@media(max-width:760px){
  .modern-ui #invoicePanel .grid,
  .modern-ui .row{
    grid-template-columns:1fr;
  }

  .modern-ui #invoicePreview{
    padding:16px;
  }

  .modern-ui #invoicePreview .top,
  .modern-ui #invoicePreview .title,
  .modern-ui #invoicePreview .summary{
    display:block;
  }

  .modern-ui #invoicePreview .company{
    margin-top:16px;
    text-align:left;
  }

  .modern-ui #invoicePreview .meta{
    margin-top:18px;
  }

  .modern-ui #invoicePreview .meta td{
    padding-left:8px;
  }

  .modern-ui #invoicePreview .vat,
  .modern-ui #invoicePreview .totals{
    width:100%;
  }

  .modern-ui #invoicePreview .totals{
    margin-top:14px;
  }
}

/* Afdrukken blijft A4 en zonder zijbalk. */
@media print{
  .sidebar,
  .topbar{
    display:none !important;
  }

  .main-column{
    width:100% !important;
    margin:0 !important;
  }

  .app-content{
    padding:0 !important;
  }

  #invoicePanel > :not(#invoicePreview){
    display:none !important;
  }

  #invoicePreview{
    display:block !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:10mm !important;
    overflow:visible !important;
    box-shadow:none !important;
  }
}

/* =========================================================
   FactuurPro 3.3.0 - Openstaande facturen
   ========================================================= */

.invoice-status-cell{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.invoice-status-cell select{
  width:auto;
  min-width:105px;
  padding:6px 8px;
  font-size:12px;
}

.invoice-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.status-sent{
  color:#175b91;
  background:#e6f2fc;
  border:1px solid #b9d8ef;
}

.status-paid{
  color:#17633a;
  background:#e5f7ed;
  border:1px solid #afe0c2;
}

.status-overdue{
  color:#a52c2c;
  background:#fff0f0;
  border:1px solid #f0baba;
}

.dashboard-card-open strong{
  color:#c06b00;
}

.dashboard-card-overdue strong{
  color:#ba3131;
}

.dashboard-open-section{
  margin-top:18px;
}

.dashboard-open-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.dashboard-open-header h3{
  margin:0 0 4px;
}

.dashboard-table-wrap{
  width:100%;
  overflow-x:auto;
}

.dashboard-open-table{
  min-width:650px;
}

.history-row-actions{
  white-space:nowrap;
}

.home-stat-open strong{
  color:#c06b00;
}

@media(max-width:760px){
  .dashboard-open-header{
    display:block;
  }

  .dashboard-open-header button{
    margin-top:10px;
  }
}

/* =========================================================
   FactuurPro 3.4.0 - Ontwikkelmodus
   ========================================================= */

.developer-settings{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #dfe5ec;
}

.developer-toggle-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px;
  border:1px solid #dfe5ec;
  border-radius:12px;
  background:#f8fafc;
}

.developer-toggle-row h3{
  margin:0 0 4px;
}

.switch{
  position:relative;
  display:inline-block;
  width:54px;
  height:30px;
  flex:0 0 auto;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.switch-slider{
  position:absolute;
  inset:0;
  cursor:pointer;
  border-radius:999px;
  background:#bec8d3;
  transition:.2s;
}

.switch-slider::before{
  content:"";
  position:absolute;
  width:22px;
  height:22px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.2);
  transition:.2s;
}

.switch input:checked + .switch-slider{
  background:#235fa4;
}

.switch input:checked + .switch-slider::before{
  transform:translateX(24px);
}

.developer-tools{
  margin-top:16px;
  padding:18px;
  border:1px solid #b9cce2;
  border-radius:12px;
  background:#f3f8fe;
}

.developer-badge{
  display:inline-block;
  margin-bottom:14px;
  padding:6px 10px;
  border-radius:999px;
  background:#193f6b;
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.developer-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.developer-card{
  padding:14px;
  border:1px solid #d5e2ef;
  border-radius:10px;
  background:#fff;
}

.developer-card span{
  display:block;
  margin-bottom:5px;
  color:#637083;
  font-size:12px;
}

.developer-card strong{
  font-size:18px;
}

.developer-detail{
  margin-top:16px;
}

.developer-detail h4{
  margin:0 0 10px;
}

.developer-module-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.developer-module-list span{
  padding:5px 9px;
  border-radius:6px;
  background:#e4edf7;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;
}

.developer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 12px;
}

.developer-output{
  width:100%;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;
  line-height:1.5;
  background:#101820;
  color:#d9e6f2;
}

body.developer-mode .sidebar-footer::before{
  content:"DEV";
  display:inline-block;
  margin-bottom:8px;
  padding:4px 8px;
  border-radius:999px;
  background:#193f6b;
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

@media(max-width:760px){
  .developer-grid{
    grid-template-columns:1fr;
  }

  .developer-toggle-row{
    align-items:flex-start;
  }
}



/* =========================================================
   FactuurPro 3.5.0 - Licentierollen
   ========================================================= */

.license-role-badge{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  vertical-align:middle;
}

.license-role-badge[data-role="user"]{
  color:#27516f;
  background:#e6f1f8;
}

.license-role-badge[data-role="reseller"]{
  color:#765000;
  background:#fff2cc;
}

.license-role-badge[data-role="admin"]{
  color:#fff;
  background:#193f6b;
}

.developer-edition-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px;
  border:1px solid #b9cce2;
  border-radius:12px;
  background:#eef5fd;
}

.developer-edition-header h3{margin:0 0 4px;}

.developer-edition-label{
  padding:7px 11px;
  border-radius:999px;
  background:#193f6b;
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}

.developer-license-admin{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:18px 0 4px;
  padding:16px;
  border:1px solid #cad9e8;
  border-radius:10px;
  background:#fff;
}

.developer-license-admin h4{margin:0 0 4px;}

body:not(.role-admin) .role-admin-only{
  display:none !important;
}

@media(max-width:760px){
  .developer-edition-header,
  .developer-license-admin{display:block;}

  .developer-edition-label,
  .developer-license-admin button{margin-top:10px;}
}


.license-settings-card{
  margin:0 0 24px;
  padding:20px;
  border:1px solid #d7e2ef;
  border-radius:14px;
  background:#f8fbff;
}
.license-settings-card h3{margin-top:0}
.license-settings-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.license-settings-row input{
  flex:1 1 320px;
  min-width:240px;
}


/* Licentiepagina */
.license-page-card{padding:28px;border:1px solid #d7e2ef;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(15,40,70,.07)}
.license-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.license-page-heading h2{margin:4px 0 6px;font-size:30px}.license-page-heading p{margin:0;color:#607086}
.license-page-kicker{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#0b5cab}
.license-page-badge{padding:8px 14px;border-radius:999px;background:#eef2f6;color:#556273;font-weight:800}.license-page-badge.active{background:#e7f7ed;color:#187340}
.license-page-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
.license-page-details>div{padding:18px;border:1px solid #e3eaf2;border-radius:14px;background:#f8fbff;min-width:0}.license-page-details span{display:block;font-size:12px;color:#6c7a8e;margin-bottom:7px}.license-page-details strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.license-page-activation{padding:20px;border:1px solid #dfe7f0;border-radius:14px}.license-page-activation label{display:block;font-weight:700;margin-bottom:8px}
.license-page-deactivate{margin-top:20px;padding:18px 20px;border:1px solid #f0c7c7;border-radius:14px;background:#fff8f8;display:flex;align-items:center;justify-content:space-between;gap:18px}.license-page-deactivate h3{margin:0 0 5px}.license-page-deactivate p{margin:0;color:#6c5c5c}
@media(max-width:850px){.license-page-details{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.license-page-heading,.license-page-deactivate{display:block}.license-page-badge,.license-page-deactivate button{display:inline-block;margin-top:14px}.license-page-details{grid-template-columns:1fr}}
