*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}body{margin:0;background:#f5f7fb;color:#17243b;font-size:15px}button,input,textarea{font:inherit}button{border:0;background:#2563eb;color:white;padding:11px 16px;border-radius:9px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.94)}button.secondary{background:#edf2f9;color:#28415e}button.danger{background:#fff0f0;color:#b42318}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}.layout{min-height:100vh;display:flex}.sidebar{background:white;border-right:1px solid #e5eaf1;width:255px;flex-shrink:0;padding:27px 17px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:9px;color:#1c4b9d;font-size:17px;padding:3px 8px}.brand small{font-size:11px;color:#8391a5;margin-left:auto}nav{display:grid;gap:5px}nav a{padding:12px 14px;border-radius:10px;color:#53647a;font-weight:550}nav a:hover{background:#f5f8fc}nav a.active{background:#eaf2ff;color:#1d4ed8}.sidebar-bottom{margin-top:auto;display:grid;gap:13px;padding:8px;color:#6b7c90;font-size:12px}.content{flex:1;min-width:0;max-width:1500px;padding:34px 42px}.topbar{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:30px}.topbar h1{font-size:28px;letter-spacing:-.5px;margin:3px 0}.eyebrow{font-size:11px;letter-spacing:1.4px;color:#8b98aa;font-weight:750}.pill{border-radius:99px;background:#e9f8ee;color:#16834a;padding:7px 12px;font-size:12px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}.stat,.card{background:#fff;border:1px solid #e7ebf1;border-radius:14px;box-shadow:0 3px 15px #1a355008}.stat{padding:22px;display:grid;gap:9px}.stat span{color:#718096;font-size:13px}.stat strong{font-size:24px;overflow-wrap:anywhere}.card{padding:26px;margin-bottom:20px}.card h2{font-size:19px;margin:0 0 12px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.card-head h2{margin:0}.muted{color:#708096;line-height:1.55}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}pre{background:#f5f8fc;border:1px solid #e6ebf2;color:#34475d;border-radius:9px;padding:16px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}label{display:grid;gap:8px;font-weight:600;font-size:13px;color:#40516a}input,textarea{background:white;border:1px solid #d6deea;border-radius:9px;padding:12px;color:#17243b;width:100%;outline-color:#2563eb}textarea{min-height:150px;resize:vertical}.inline-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.inline-form label{flex:1;min-width:220px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:15px;border-bottom:1px solid #edf0f5}th{font-size:12px;color:#718096;text-transform:uppercase;letter-spacing:.6px}td{overflow-wrap:anywhere}td code{color:#53647a}.toast{color:#1d4ed8;min-height:25px;margin-top:14px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(440px,100%);padding:34px;background:white;border:1px solid #e7ebf1;border-radius:18px;box-shadow:0 15px 55px #14294a10}.login-card h1{font-size:25px}.login-card form{display:grid;gap:18px}.menu-toggle{display:none}[hidden]{display:none!important}@media(max-width:1050px){.cards{grid-template-columns:repeat(2,1fr)}.content{padding:28px}}@media(max-width:700px){.sidebar{position:fixed;z-index:5;transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 25px #14294a16}.sidebar.open{transform:translateX(0)}.menu-toggle{display:block}.content{padding:20px;width:100%}.topbar h1{font-size:23px}.cards{gap:10px}.stat{padding:15px}.card{padding:18px}.topbar{justify-content:flex-start}.pill{margin-left:auto}.inline-form button{width:100%}}
/* v1.0: consistent, accessible light controls */
:root{color-scheme:light;--border:#dbe3ef;--focus:#2563eb;--surface:#fff}
select{appearance:none;-webkit-appearance:none;font:inherit;color:#1e3352;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23546781' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;border:1px solid var(--border);border-radius:11px;padding:12px 42px 12px 14px;min-height:46px;width:100%;max-width:100%;box-shadow:0 1px 2px #15233c09;transition:border-color .15s,box-shadow .15s}
select:hover,input:hover,textarea:hover{border-color:#a6b9d5}
select:focus-visible,input:focus-visible,textarea:focus-visible,button:focus-visible,nav a:focus-visible{outline:3px solid #bfdbfe;outline-offset:2px;border-color:var(--focus)}
select:disabled{background-color:#f3f6fa;color:#8896aa;cursor:not-allowed}
select:invalid{color:#718096}
select option{background:#fff;color:#1e3352}
input,textarea{border-radius:11px;min-height:46px}
input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#2563eb;cursor:pointer}
.check-label{display:flex;align-items:center;gap:10px;min-width:170px!important;flex:0 1 auto!important;min-height:46px}
.page-intro{margin-bottom:24px}.page-intro h2{font-size:23px;margin:0 0 6px;letter-spacing:-.4px}.page-intro p{margin:0}
.card h3{margin:24px 0 14px;font-size:16px}.card .inline-form{margin-top:12px}
.table-scroll{border:1px solid #e7edf5;border-radius:12px;margin-top:12px}
.table-scroll thead{background:#f8faff}.table-scroll tr:last-child td{border-bottom:0}
#assignmentRows p{padding:10px 14px;border:1px solid #e8edf5;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:12px}
@media(max-width:700px){.inline-form label{min-width:100%}.check-label{min-width:100%!important}}

/* v1.6 Klanten: compacte, toegankelijke tabnavigatie */
.customer-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:6px 3px 13px;margin:0 0 15px;border-bottom:1px solid #e3eaf4}
.customer-tab{flex:0 0 auto;background:transparent;color:#52647e;border:1px solid transparent;border-radius:10px;padding:11px 17px;white-space:nowrap;font-weight:650;transition:background .15s,color .15s}
.customer-tab:hover{background:#eef4fd;filter:none}
.customer-tab.is-active{background:#e8f0ff;color:#1d4ed8;border-color:#cbdfff}
.customer-tab:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.customer-tab-panel[hidden]{display:none!important}
.customer-tab-panel>.card{margin-top:4px}
@media(max-width:700px){.customer-tabs{margin-right:-12px}.customer-tab{padding:10px 13px;font-size:13px}}

/* v1.7 klantzoekfunctie en dossier */
.customer-search{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:12px;margin:12px 0 18px}.customer-search label{grid-column:1/-1}.customer-search input{grid-column:1}.customer-search span{padding-bottom:12px}.dossier-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.dossier-stat{padding:17px;border-radius:12px;background:#f3f7ff;display:grid;gap:6px}.dossier-stat small{color:#65758a}.dossier-stat strong{font-size:18px}.dossier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dossier-section{border:1px solid #e5eaf3;border-radius:12px;padding:20px;min-width:0}.dossier-section h3{margin:0 0 14px}.dossier-section>button{margin-top:15px}.dossier-wide{grid-column:1/-1}.dossier-line{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #edf1f7;padding:9px 0}.dossier-line span{color:#63738a}.dossier-line strong{text-align:right;overflow-wrap:anywhere}.dossier-domain,.dossier-invoice{padding:10px 0;border-bottom:1px solid #edf1f7}.dossier-invoice{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}.dossier-record{padding:8px 0 18px}.dossier-open{margin-right:8px}@media(max-width:800px){.dossier-grid,.dossier-stats{grid-template-columns:1fr}.dossier-wide{grid-column:auto}.customer-search{grid-template-columns:1fr}.customer-search span{padding:0}}

.dossier-feed{display:grid;gap:10px;margin-top:12px}.dossier-feed-item{padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;overflow-wrap:anywhere}.dossier-feed-item small{display:block;color:#64748b;margin-bottom:6px}.dossier-feed-item p{white-space:pre-wrap;margin:0}.dossier-section textarea{width:100%;box-sizing:border-box}

/* v1.9: dossier with a single visible section at a time */
.dossier-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:8px 2px 14px;margin:18px 0 22px;border-bottom:1px solid #e4eaf3}
.dossier-tab{flex:0 0 auto;background:#f7f9fd;color:#52647e;border:1px solid #e3eaf4;border-radius:10px;padding:11px 16px;white-space:nowrap;font-weight:650}
.dossier-tab:hover{background:#edf4ff;filter:none}
.dossier-tab.is-active{background:#e7f0ff;color:#1d4ed8;border-color:#b9d2ff}
.dossier-tab:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.dossier-tab-panel[hidden]{display:none!important}
.dossier-content{min-height:160px}.dossier-tab-panel>.dossier-section{max-width:100%;background:#fff}
@media(max-width:700px){.dossier-tab{padding:10px 12px;font-size:13px}.dossier-tabs{margin-right:-12px}}

/* v2.0: login preferences */
.login-card .remember-login{display:flex;align-items:center;gap:10px;font-weight:500;cursor:pointer}.login-card .remember-login input{width:18px;height:18px;flex:none;accent-color:#2563eb}.login-hint{font-size:12px;line-height:1.5;color:#708096;margin:-8px 0 0}

/* v2.1: all navigation items remain reachable on short desktop screens. */
.sidebar{min-height:0;overflow:hidden;gap:16px}
.sidebar nav{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-right:5px;scrollbar-width:thin}
.sidebar-bottom{flex-shrink:0;margin-top:0}
@media(max-width:700px){.sidebar{height:100dvh;max-height:100dvh}}

/* Websitebeheer v2.4 */
.site-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #dbe3eb;margin:14px 0 20px;padding-bottom:10px}.site-tab{border:1px solid #dbe3eb;border-radius:9px;background:#f3f7fb;color:#344054;padding:10px 14px;cursor:pointer}.site-tab.is-active{background:#e3efff;border-color:#8db9f0;color:#164f96;font-weight:700}.site-tab-panel[hidden],#siteDetails[hidden]{display:none!important}.site-facts{display:grid;grid-template-columns:minmax(110px,180px) 1fr;gap:12px}.site-facts dt{font-weight:700}.site-facts dd{margin:0;overflow-wrap:anywhere}

/* v3.0.1: Edge/Chromium sidebar menu: never stretch navigation rows */
.sidebar nav{align-content:start;grid-auto-rows:max-content;align-items:start}
.sidebar nav a{display:block;min-height:0;height:auto;line-height:1.35;padding:10px 12px;flex-shrink:0}

/* v3.9 website overview */
.site-filterbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:16px 0}.site-filterbar label{flex:1 1 190px}.site-filterbar label:first-child{flex:2 1 260px}.site-filterbar button{min-height:46px}.site-filterbar span{color:#64748b;font-size:13px;padding-bottom:12px}.site-filterbar input[type=search]{width:100%}


/* PhantmboxISP v4.0 — independent visual refresh; no server/API changes */
:root{--ui-bg:#f4f7fc;--ui-surface:#fff;--ui-text:#172b49;--ui-muted:#677992;--ui-line:#e4eaf3;--ui-accent:#2563eb;--ui-soft:#eaf2ff;--ui-shadow:0 8px 28px rgba(29,54,91,.045)}
body{background:var(--ui-bg);color:var(--ui-text);font-family:Inter,'Segoe UI',system-ui,sans-serif;line-height:1.5}
.layout{background:var(--ui-bg)}
.sidebar{width:258px;background:var(--ui-surface);border-right:1px solid var(--ui-line);padding:22px 13px 16px;gap:19px;box-shadow:2px 0 16px #182c4905;z-index:3}
.sidebar .brand{padding:7px 10px 15px;font-size:18px;letter-spacing:-.5px;color:#203653;white-space:nowrap}
.brand-symbol{display:inline-grid;place-items:center;background:linear-gradient(145deg,#4f8bff,#1754d6);color:#fff;border-radius:11px;width:35px;height:35px;font-size:17px;flex:none;box-shadow:0 5px 12px #2563eb29}
.sidebar .brand small{font-size:10px;letter-spacing:.3px;background:#eff4ff;color:#3762a2;border-radius:6px;padding:3px 6px}
.sidebar nav{display:grid;align-content:start;grid-auto-rows:max-content;align-items:start;gap:3px;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:0 3px 4px 0}
.sidebar nav a{display:flex;align-items:center;min-height:39px;height:auto;padding:9px 12px;line-height:1.3;border-radius:9px;color:#566980;font-size:13px;font-weight:600;transition:background .15s,color .15s;white-space:normal}
.sidebar nav a:hover{background:#f1f5fc;color:#1f4a85}
.sidebar nav a.active{background:#e9f1ff;color:#205bd0;box-shadow:inset 3px 0 #3478f6}
.sidebar-bottom{border-top:1px solid var(--ui-line);padding:16px 8px 2px;gap:10px}
.content{max-width:none;width:100%;padding:28px clamp(22px,3vw,52px) 55px}
.topbar{background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:15px;padding:17px 22px;margin-bottom:26px;box-shadow:var(--ui-shadow);min-height:86px}
.topbar h1{font-size:26px;font-weight:750;letter-spacing:-.7px}
.eyebrow{color:#8190a5;letter-spacing:1.5px;font-size:10px}
.topbar-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.theme-toggle{padding:9px 13px!important;white-space:nowrap;font-size:13px;min-height:39px}
.pill{background:#e9f9f1;color:#168252;border:1px solid #c9efdc}
.cards{gap:16px}
.stat,.card{border:1px solid var(--ui-line);border-radius:15px;background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.stat{padding:23px 24px;position:relative;overflow:hidden;gap:6px}
.stat::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#377cf4,#a4c5ff)}
.stat span{font-size:12px;font-weight:650;color:var(--ui-muted)}
.stat strong{font-size:27px;letter-spacing:-.7px;color:var(--ui-text)}
.card{padding:25px 28px;margin-bottom:20px}
.card h2{font-size:18px;letter-spacing:-.25px}
.card-head{padding-bottom:12px;border-bottom:1px solid var(--ui-line)}
.page-intro h2{font-size:23px}
button{background:#2563eb;border-radius:9px;box-shadow:0 2px 5px #2563eb13;transition:filter .15s,transform .15s}
button:hover:not(:disabled){filter:brightness(.96)}
button.secondary{background:#edf3fb;color:#315378;box-shadow:none}
button.danger{background:#fff1f1;color:#b42318;box-shadow:none}
input,textarea,select{border-color:#dce5f0;border-radius:9px;box-shadow:none}
.table-scroll,.table-wrap{max-width:100%;overflow-x:auto;border-radius:11px}
.table-scroll{border:1px solid var(--ui-line)}
table{background:var(--ui-surface)}
th{background:#f7f9fd;color:#63758f;font-size:11px;letter-spacing:.65px}
th,td{padding:13px 15px;border-bottom:1px solid var(--ui-line)}
tbody tr:hover{background:#f8fbff}
.customer-tabs,.dossier-tabs,.site-tabs{border-color:var(--ui-line)}
.customer-tab,.dossier-tab,.site-tab{border-radius:9px;font-size:13px}
.login-wrap{background:radial-gradient(circle at 15% 10%,#e2edff 0,transparent 38%),#f4f7fc}
.login-card{border-radius:20px;box-shadow:0 24px 75px #1b37631b}
.login-card .brand{color:#1f4a88;font-size:20px}
@media(max-width:1050px){.content{padding:22px}.topbar{padding:15px 18px}}
@media(max-width:700px){.sidebar{width:min(285px,85vw);height:100dvh;max-height:100dvh;position:fixed}.content{padding:14px}.topbar{min-height:70px;gap:10px;padding:12px}.topbar h1{font-size:20px}.topbar-actions{gap:6px}.theme-toggle{padding:7px 9px!important}.theme-toggle span{display:none}.cards{gap:10px}.card{padding:18px}.stat{padding:15px}.stat strong{font-size:22px}}
/* Dark mode uses scoped overrides so existing forms and data tables remain legible. */
html[data-theme="dark"]{color-scheme:dark;--ui-bg:#101a2b;--ui-surface:#19263a;--ui-text:#e9f0fa;--ui-muted:#a9b8cc;--ui-line:#314158;--ui-soft:#243b5d;--ui-shadow:0 7px 24px #050b1530}
html[data-theme="dark"] body,html[data-theme="dark"] .layout{background:var(--ui-bg);color:var(--ui-text)}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .stat,html[data-theme="dark"] .card,html[data-theme="dark"] .login-card,html[data-theme="dark"] table,html[data-theme="dark"] .dossier-section,html[data-theme="dark"] .dossier-tab-panel>.dossier-section{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text)}
html[data-theme="dark"] .sidebar .brand,html[data-theme="dark"] .stat strong,html[data-theme="dark"] .topbar h1{color:var(--ui-text)}
html[data-theme="dark"] .sidebar nav a{color:#bac8da}
html[data-theme="dark"] .sidebar nav a:hover{background:#263953;color:#fff}
html[data-theme="dark"] .sidebar nav a.active{background:#253e65;color:#a9c8ff}
html[data-theme="dark"] .muted,html[data-theme="dark"] label,html[data-theme="dark"] .stat span{color:#b1bfd2}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background-color:#142137;color:#e8f0fc;border-color:#3b4e69}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8d9fb7}
html[data-theme="dark"] select option{background:#142137;color:#e8f0fc}
html[data-theme="dark"] th,html[data-theme="dark"] .table-scroll thead{background:#23334a;color:#bac8dc}
html[data-theme="dark"] th,html[data-theme="dark"] td,html[data-theme="dark"] .card-head{border-color:var(--ui-line)}
html[data-theme="dark"] tbody tr:hover{background:#22354d}
html[data-theme="dark"] pre,html[data-theme="dark"] .dossier-feed-item{background:#122035;color:#d9e5f5;border-color:#344660}
html[data-theme="dark"] .dossier-stat{background:#243955}
html[data-theme="dark"] button.secondary,html[data-theme="dark"] .customer-tab,html[data-theme="dark"] .dossier-tab,html[data-theme="dark"] .site-tab{background:#293b55;color:#d8e5f7;border-color:#405474}
html[data-theme="dark"] .customer-tab.is-active,html[data-theme="dark"] .dossier-tab.is-active,html[data-theme="dark"] .site-tab.is-active{background:#294a79;color:#c8ddff;border-color:#5779aa}
html[data-theme="dark"] .pill{background:#173d36;color:#9ce4bf;border-color:#2b6553}
html[data-theme="dark"] .login-wrap{background:radial-gradient(circle at 10% 10%,#20375b 0,transparent 40%),var(--ui-bg)}
html[data-theme="dark"] .brand small{background:#2b4160;color:#b6cff8}
html[data-theme="dark"] .toast{color:#9cc3ff}

/* v4.2: compact FTPS form controls */
.ftp-show-password{display:flex!important;align-items:center;gap:8px;white-space:nowrap}.ftp-show-password input{width:auto!important;margin:0}

/* v5.0 operationeel overzicht */
.warning-row td{background:rgba(225,155,38,.12)}
#opsRows td{font-variant-numeric:tabular-nums}

/* v29 AI chat */
.ai-chat{min-height:220px;max-height:420px;overflow:auto;padding:14px;background:var(--surface,#f6f8fb);border:1px solid #cbd5e1;border-radius:10px;margin:12px 0}.ai-line{padding:10px 13px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;background:#fff;color:#172033}.ai-user{margin-left:12%;background:#dbeafe}.ai-assistant{margin-right:12%}.ai-line strong{display:block;margin-bottom:5px}
