*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#0b0b10;color:#e5e7eb}
    a{color:#93c5fd} .container{max-width:1100px;margin:0 auto;padding:24px}
    .header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
    h1{font-size:24px;margin:0} h2{font-size:18px;margin:0 0 12px}
    .card{background:#111827;border:1px solid #1f2937;border-radius:14px;padding:16px;margin-bottom:16px;box-shadow:0 2px 10px rgba(0,0,0,.3)}
    .card.small{max-width:420px}
    label{display:block;margin-bottom:10px;font-size:14px}
    input[type=text],input[type=url],input[type=password],select{width:100%;padding:10px;border-radius:10px;border:1px solid #374151;background:#0b0f17;color:#e5e7eb}
    button{padding:10px 14px;border:none;border-radius:10px;background:#2563eb;color:white;cursor:pointer} button:hover{opacity:.9}
    .btn{display:inline-block;padding:10px 14px;border-radius:10px;text-decoration:none}
    .btn-green{background:#16a34a;color:white}.btn-green:hover{opacity:.9}
    .btn-edit{background:#334155;color:#e5e7eb}.btn-edit:hover{opacity:.9}
    .link-danger{color:#ef4444;text-decoration:underline}.linklike{background:transparent;border:none;padding:0;margin:0;cursor:pointer;font-weight:600}
    .error{color:#fca5a5;background:#1b0c0c;border:1px solid #7f1d1d;padding:8px;border-radius:10px}
    .forms{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:32px;margin-bottom:24px}
    @media (max-width:900px){.forms{grid-template-columns:1fr}}
    table{width:100%;border-collapse:collapse;background:#0b0f17;border:1px solid #1f2937;border-radius:12px;overflow:hidden}
    th,td{padding:10px;border-bottom:1px solid #1f2937;font-size:14px}
    th{text-align:left;background:#111827} tbody tr:hover{background:#0f1623}
    td input[type=password],td input[type=text]{max-width:260px}
    .footer{margin-top:18px;color:#9ca3af}
    .group{margin-bottom:16px}
    .inline-edit .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0}
    @media (max-width:900px){.inline-edit .grid{grid-template-columns:1fr}}
    /* Status links */
    table th:nth-child(1), table td:nth-child(1){ text-align:center; width:4% }
    .status-dot{ display:inline-block; width:10px; height:10px; border-radius:999px;
      border:2px solid rgba(255,255,255,.12); vertical-align:middle }
    .dot-green{ background:#22c55e }
    .dot-red  { background:#ef4444 }
    .dot-gray { background:#6b7280 }
    /* Kolomposities (Actie = 5e, Link = 6e) */
    table th:nth-child(5), table td:nth-child(5){ text-align:center }
    table th:nth-child(6), table td:nth-child(6){ text-align:right }
    .copyable{cursor:pointer;border-bottom:1px dotted #6b7280}
    .copyable:hover{opacity:.9}
    .toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#111827;color:#e5e7eb;padding:8px 12px;border-radius:10px;border:1px solid #374151;opacity:0;transition:opacity .2s}
    .toast.show{opacity:1}
    .flash{margin:12px 0;padding:10px 12px;border-radius:10px;white-space:pre-wrap;overflow:auto}
    .flash.ok{background:#0d1b12;border:1px solid #14532d;color:#86efac}
    .flash.error{background:#1b0c0c;border:1px solid #7f1d1d;color:#fca5a5}


/* PIN login fallback: 6 vakjes naast elkaar */
.pin-card{max-width:520px;}
.pin-login-block{margin:0 0 16px 0;}
.pin-label{display:block;margin:0 0 10px 0;font-size:15px;font-weight:700;color:#e5e7eb;}
.pin-row{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;width:auto!important;max-width:none!important;}
.pin-row input.pin-digit[type=text],.pin-row input.pin-digit[type=password]{display:inline-block!important;width:54px!important;min-width:54px!important;max-width:54px!important;height:62px!important;flex:0 0 54px!important;padding:0!important;margin:0!important;text-align:center!important;font-size:28px!important;font-weight:800!important;line-height:62px!important;border-radius:12px!important;border:1px solid #374151!important;background:#0b0f17!important;color:#fff!important;box-sizing:border-box!important;}
.pin-row input.pin-digit[type=text]:focus,.pin-row input.pin-digit[type=password]:focus{outline:2px solid #3b82f6!important;outline-offset:2px!important;border-color:#60a5fa!important;}
@media(max-width:480px){.pin-row{gap:7px!important}.pin-row input.pin-digit[type=text],.pin-row input.pin-digit[type=password]{width:42px!important;min-width:42px!important;max-width:42px!important;height:52px!important;flex-basis:42px!important;font-size:24px!important;line-height:52px!important;}}

/* Gecentreerd PIN-scherm */
body.pin-page{
    max-width:none!important;
    min-height:100vh!important;
    margin:0!important;
    padding:24px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.pin-page-inner{
    width:min(100%,560px);
    margin:0 auto;
}
.pin-page-inner h1{
    margin:0 0 8px 0;
}
.pin-page .pin-card{
    width:100%;
    max-width:560px;
    margin:0 auto;
    padding:18px 16px 16px;
}
.pin-page .pin-row{
    justify-content:flex-start!important;
}
@media(max-width:640px){
    body.pin-page{padding:18px!important;align-items:center!important;}
    .pin-page-inner{width:100%;}
}

/* Anti-bot sommetje op PIN-scherm */
.pin-row input.pin-digit[type=text],
.pin-row input.pin-digit[type=password]{
    -webkit-text-security: disc!important;
}
.captcha-block{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    margin:0 0 16px 0!important;
}
.captcha-label{
    display:inline-block!important;
    margin:0!important;
    font-size:15px!important;
    font-weight:700!important;
    color:#e5e7eb!important;
}
.captcha-input{
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:42px!important;
    text-align:center!important;
    font-size:20px!important;
    font-weight:700!important;
}

/* Extra harde centrering login/setup */
body.pin-page{
    width:100vw!important;
    min-width:100vw!important;
    min-height:100vh!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:24px!important;
    margin:0!important;
}
body.pin-page .pin-page-inner{
    width:560px!important;
    max-width:calc(100vw - 48px)!important;
    margin:0!important;
}

/* Bewaking: apart tabblad, bestaande wachtwoordentabel blijft ongewijzigd */
.tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tabs a{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:10px;background:#111827;border:1px solid #1f2937;color:#e5e7eb;text-decoration:none;font-weight:700;font-size:14px}
.tabs a:hover{background:#172033}
.tabs a.active{background:#2563eb;border-color:#3b82f6;color:#fff}
.tabs a.logout{background:#1f2937;color:#cbd5e1}
.tabs a.logout:hover{background:#334155}
.monitor-head code{display:block;white-space:normal;word-break:break-all;background:#0b0f17;border:1px solid #1f2937;border-radius:10px;padding:10px;margin-top:6px;color:#d1d5db}
.monitor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}
textarea{width:100%;padding:10px;border-radius:10px;border:1px solid #374151;background:#0b0f17;color:#e5e7eb;font-family:inherit}
.monitor-item-form{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.monitor-item-form select{width:auto;min-width:120px;padding:8px 10px}
.monitor-item-form .btn{padding:8px 12px}
@media(max-width:900px){.header{align-items:flex-start;gap:12px;flex-direction:column}.monitor-grid{grid-template-columns:1fr}.monitor-item-form{justify-content:flex-start}}

/* Bewaking UX: lijst eerst, instellingen apart */
.monitor-intro{margin:0 0 14px 0;padding:0 2px;color:#d1d5db}
.monitor-intro h2{margin:0 0 6px 0}
.monitor-intro p{margin:0 0 10px 0}
.monitor-group{margin-bottom:22px}
.monitor-table th,.monitor-table td{text-align:left!important;vertical-align:middle}
.monitor-table th:nth-child(1),.monitor-table td:nth-child(1){width:auto;text-align:left!important}
.monitor-table th:nth-child(7),.monitor-table td:nth-child(7){text-align:right!important;min-width:260px}
.monitor-table td:nth-child(2){max-width:360px;word-break:break-all}
.monitor-table td:nth-child(3){white-space:nowrap}
.monitor-table td:nth-child(4),.monitor-table td:nth-child(5){white-space:nowrap}
@media(max-width:900px){.monitor-table{display:block;overflow-x:auto}.monitor-table th:nth-child(7),.monitor-table td:nth-child(7){text-align:left!important}.monitor-item-form{justify-content:flex-start}}


/* Bewaking v3: overzichtelijker tabel */
.monitor-intro{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 14px 0;
    padding:0 2px;
    color:#d1d5db;
}
.monitor-intro h2{margin:0 0 6px 0}
.monitor-intro p{margin:0}
.btn-blue{background:#2563eb!important;color:#fff!important;border-color:#3b82f6!important}
.monitor-table-clean th:nth-child(1), .monitor-table-clean td:nth-child(1){width:120px!important;white-space:nowrap}
.monitor-table-clean th:nth-child(2), .monitor-table-clean td:nth-child(2){width:auto!important;max-width:none!important;word-break:normal!important}
.monitor-table-clean th:nth-child(3), .monitor-table-clean td:nth-child(3){width:180px!important;white-space:nowrap}
.monitor-table-clean th:nth-child(4), .monitor-table-clean td:nth-child(4){width:230px!important;text-align:right!important}
.monitor-table-clean .name-cell a{color:#373737!important;text-decoration:none!important;font-weight:500!important}
.monitor-table-clean .name-cell a:hover{color:#2f5fb3!important;text-decoration:underline!important}
.status-cell{font-weight:700}
.date-cell{color:#cbd5e1}
.muted{color:#6b7280}
.monitor-item-form-stacked{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.monitor-controls{display:flex;gap:8px;justify-content:flex-end}
.monitor-controls select{min-width:105px;width:auto;padding:8px 10px}
.monitor-item-form-stacked .btn{width:100%;max-width:220px}
@media(max-width:900px){
    .monitor-intro{align-items:flex-start;flex-direction:column}
    .monitor-table-clean th:nth-child(4), .monitor-table-clean td:nth-child(4){text-align:left!important}
    .monitor-item-form-stacked{align-items:flex-start}
    .monitor-controls{flex-wrap:wrap;justify-content:flex-start}
}


/* Bewaking v4: problemen bovenaan, logboek apart */
.monitor-intro-compact{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 14px 0;
    padding:0 2px;
}
.monitor-problems{
    border:1px solid rgba(239,68,68,.35);
    border-radius:12px;
    padding:0;
    overflow:hidden;
}
.monitor-problems h2{
    margin:0;
    padding:14px 16px;
    background:rgba(127,29,29,.28);
}
.monitor-ok-box{
    padding:16px;
    border-top:1px solid #1f2937;
    color:#86efac;
    font-weight:700;
}
.problem-row td{
    background:rgba(127,29,29,.16)!important;
}
.monitor-item-form-inline{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}
.monitor-item-form-inline select{
    min-width:105px;
    width:auto;
    padding:8px 10px;
}
.monitor-item-form-inline .btn{
    padding:8px 14px;
}
.monitor-table-clean th:nth-child(1), .monitor-table-clean td:nth-child(1){width:120px!important;white-space:nowrap}
.monitor-table-clean th:nth-child(2), .monitor-table-clean td:nth-child(2){width:auto!important;max-width:none!important;word-break:normal!important}
.monitor-table-clean th:nth-child(3), .monitor-table-clean td:nth-child(3){width:110px!important;white-space:nowrap}
.monitor-table-clean th:nth-child(4), .monitor-table-clean td:nth-child(4){width:180px!important;text-align:left!important;white-space:nowrap}
.monitor-table-clean th:nth-child(5), .monitor-table-clean td:nth-child(5){width:330px!important;text-align:right!important}
.log-table th:nth-child(1), .log-table td:nth-child(1){width:170px;white-space:nowrap}
.log-table th:nth-child(2), .log-table td:nth-child(2){width:170px;white-space:normal;word-break:break-word}
.log-message{white-space:pre-wrap;word-break:break-word}
@media(max-width:900px){
    .monitor-intro-compact{align-items:flex-start;flex-direction:column}
    .monitor-item-form-inline{justify-content:flex-start}
    .monitor-table-clean th:nth-child(5), .monitor-table-clean td:nth-child(5){text-align:left!important}
}

/* Bewaking v5: leesbaar logboek + betere controle-informatie */
.monitor-last-run{margin-top:8px!important;color:#cbd5e1!important;font-size:14px!important}
.log-table{table-layout:fixed!important;width:100%!important}
.log-table th,.log-table td{vertical-align:top!important}
.log-table th:nth-child(1), .log-table td:nth-child(1){width:180px!important;white-space:nowrap!important}
.log-table th:nth-child(2), .log-table td:nth-child(2){width:140px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}
.log-table th:nth-child(3), .log-table td:nth-child(3){width:auto!important}
.log-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.log-card{border:1px solid #1f2937;background:#0b111c;border-radius:12px;padding:12px 14px;overflow:hidden}
.log-card.log-bad{border-color:rgba(239,68,68,.55);background:rgba(127,29,29,.15)}
.log-card.log-warn{border-color:rgba(245,158,11,.45);background:rgba(120,53,15,.12)}
.log-card.log-ok{border-color:rgba(34,197,94,.25)}
.log-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px;color:#cbd5e1;font-size:13px}
.log-date{font-weight:700;color:#e5e7eb}
.log-type{display:inline-flex;align-items:center;border:1px solid #334155;border-radius:999px;padding:3px 8px;background:#111827;color:#dbeafe;max-width:100%;overflow-wrap:anywhere}
.log-message{margin:0!important;white-space:pre-wrap!important;word-break:normal!important;overflow-wrap:anywhere!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.5;color:#e5e7eb;max-width:100%}
@media(max-width:900px){.log-meta{align-items:flex-start;flex-direction:column;gap:6px}.log-card{padding:10px}.log-message{font-size:12px}}

/* Bewaking v9: geen rood vlak als er geen problemen zijn */
.monitor-status-card{
    border:1px solid #1f2937;
    border-radius:12px;
    padding:14px 16px;
    margin:14px 0 18px;
    background:#111827;
}
.monitor-status-good{
    border-color:rgba(34,197,94,.45);
    background:rgba(22,101,52,.14);
}
.monitor-status-bad{
    border-color:rgba(239,68,68,.6);
    background:rgba(127,29,29,.28);
}
.monitor-status-title{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:800;
    font-size:17px;
    color:#f8fafc;
}
.monitor-status-good .monitor-status-title{color:#bbf7d0}
.monitor-status-bad .monitor-status-title{color:#fecaca}
.monitor-status-text{
    margin-top:6px;
    color:#cbd5e1;
}
.monitor-status-counts{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}
.monitor-status-counts span{
    border:1px solid #334155;
    background:#0b111c;
    border-radius:999px;
    padding:5px 10px;
    font-size:13px;
    color:#dbeafe;
}

/* Bewaking v10: één keer opslaan voor alle regels */
.monitor-bulk-form{margin:0}
.monitor-bulk-save{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin:12px 0 14px;
}
.monitor-bulk-save-bottom{
    margin:18px 0 24px;
}
.monitor-bulk-save .btn{
    min-width:220px;
}
.monitor-table .action-cell{
    white-space:nowrap;
}
.monitor-table .action-cell select{
    margin-right:8px;
}
@media(max-width:900px){
    .monitor-bulk-save{justify-content:stretch}
    .monitor-bulk-save .btn{width:100%}
    .monitor-table .action-cell{white-space:normal}
    .monitor-table .action-cell select{margin:4px 0;width:100%}
}

/* MIO uiterlijk v11 */
:root{
    --mio-blue:#4167b1;
    --mio-blue-dark:#18396f;
    --mio-orange:#ff9a1f;
    --mio-green:#74bf45;
    --mio-bg:#f3f7fc;
    --mio-card:#ffffff;
    --mio-border:#d8e4f3;
    --mio-text:#001b44;
    --mio-muted:#44618c;
}
html,body{background:var(--mio-bg)!important;color:var(--mio-text)!important;font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif!important;}
body.container{
    max-width:none!important;
    width:100%!important;
    min-height:100vh!important;
    margin:0!important;
    padding:32px 28px 48px 275px!important;
}
a{color:var(--mio-blue)!important;}
.header.mio-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:240px!important;
    padding:26px 18px!important;
    margin:0!important;
    display:block!important;
    background:#fff!important;
    border-right:1px solid var(--mio-border)!important;
    box-shadow:8px 0 26px rgba(24,57,111,.05)!important;
    z-index:20!important;
}
.mio-brand{margin:0 0 24px!important;padding:0 0 22px!important;border-bottom:1px solid var(--mio-border)!important;line-height:1!important;}
.mio-brand img{display:block;width:190px;max-width:100%;height:auto;}
.tabs{display:flex!important;flex-direction:column!important;gap:10px!important;align-items:stretch!important;}
.tabs a{
    display:flex!important;
    justify-content:flex-start!important;
    align-items:center!important;
    width:100%!important;
    padding:12px 14px!important;
    border:1px solid var(--mio-border)!important;
    border-radius:9px!important;
    background:#fff!important;
    color:var(--mio-text)!important;
    text-decoration:none!important;
    font-weight:800!important;
    box-shadow:none!important;
}
.tabs a:hover{background:#f6f9fe!important;border-color:#b9cff0!important;color:var(--mio-blue)!important;}
.tabs a.active{background:#eef5ff!important;border-color:#a9c7f4!important;color:var(--mio-blue)!important;}
.tabs a.logout{background:#fff!important;color:var(--mio-text)!important;}
h1:not(.mio-brand){font-size:30px!important;color:var(--mio-blue)!important;margin:0 0 12px!important;font-weight:900!important;}
h2{color:var(--mio-text)!important;font-size:20px!important;font-weight:900!important;}
.card,.monitor-status-card,.monitor-problems,.log-card{
    background:var(--mio-card)!important;
    border:1px solid var(--mio-border)!important;
    border-radius:14px!important;
    box-shadow:0 8px 22px rgba(24,57,111,.05)!important;
    color:var(--mio-text)!important;
}
.monitor-intro,.monitor-intro-compact,.monitor-last-run,.monitor-status-text,.footer,.muted{color:var(--mio-muted)!important;}
.flash{border-radius:10px!important;box-shadow:0 6px 18px rgba(24,57,111,.06)!important;}
.flash.ok{background:#ecfdf3!important;border-color:#9be3b5!important;color:#116533!important;}
.flash.error{background:#fff1f1!important;border-color:#f0b4b4!important;color:#9b1c1c!important;}
button,.btn,.btn-blue{
    background:var(--mio-blue)!important;
    color:#fff!important;
    border:1px solid var(--mio-blue)!important;
    border-radius:10px!important;
    font-weight:800!important;
    box-shadow:0 5px 12px rgba(65,103,177,.16)!important;
}
button:hover,.btn:hover{opacity:1!important;filter:brightness(.97);}
.btn-green{background:#18a957!important;border-color:#18a957!important;color:#fff!important;}
.btn-edit{background:#eef5ff!important;border-color:#b9cff0!important;color:var(--mio-blue)!important;}
.link-danger{color:#d93636!important;}
input[type=text],input[type=url],input[type=password],select,textarea{
    background:#fff!important;
    color:var(--mio-text)!important;
    border:1px solid #b9c9dd!important;
    border-radius:9px!important;
}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(65,103,177,.25)!important;border-color:var(--mio-blue)!important;}
table{
    background:#fff!important;
    border:1px solid var(--mio-border)!important;
    border-radius:12px!important;
    box-shadow:0 8px 22px rgba(24,57,111,.04)!important;
}
th{
    background:#f4f8fe!important;
    color:var(--mio-text)!important;
    border-bottom:1px solid var(--mio-border)!important;
}
td{border-bottom:1px solid var(--mio-border)!important;color:var(--mio-text)!important;}
tbody tr:hover{background:#f8fbff!important;}
.copyable{border-bottom:1px dotted #8aa5cf!important;}
.status-dot{border-color:rgba(0,27,68,.12)!important;}
.dot-green{background:#24bf67!important}.dot-red{background:#ef4444!important}.dot-gray{background:#9ca3af!important}
.monitor-status-good{background:#f1fbf4!important;border-color:#9be3b5!important;}
.monitor-status-good .monitor-status-title{color:#116533!important;}
.monitor-status-bad{background:#fff1f1!important;border-color:#f0a8a8!important;}
.monitor-status-bad .monitor-status-title{color:#9b1c1c!important;}
.monitor-status-counts span{background:#fff!important;border-color:#b9cff0!important;color:var(--mio-blue-dark)!important;}
.problem-row td{background:#fff6f6!important;}
.monitor-ok-box{color:#116533!important;border-top:1px solid var(--mio-border)!important;}
.monitor-head code{
    background:#f8fbff!important;
    border-color:var(--mio-border)!important;
    color:var(--mio-text)!important;
}
.log-card.log-ok{border-color:#9be3b5!important;background:#fbfffc!important;}
.log-card.log-bad{border-color:#f0a8a8!important;background:#fff6f6!important;}
.log-card.log-warn{border-color:#ffd99a!important;background:#fffaf0!important;}
.log-date,.log-message{color:var(--mio-text)!important;}
.log-type{background:#eef5ff!important;border-color:#b9cff0!important;color:var(--mio-blue)!important;}
.toast{background:#fff!important;color:var(--mio-text)!important;border:1px solid var(--mio-border)!important;box-shadow:0 8px 22px rgba(24,57,111,.12)!important;}
.pin-page{background:var(--mio-bg)!important;}
.pin-page .pin-card{background:#fff!important;border-color:var(--mio-border)!important;color:var(--mio-text)!important;}
.pin-label,.captcha-label{color:var(--mio-text)!important;}
@media(max-width:860px){
    body.container{padding:18px!important;}
    .header.mio-sidebar{position:static!important;width:100%!important;border-right:none!important;border-bottom:1px solid var(--mio-border)!important;border-radius:14px!important;margin-bottom:18px!important;}
    .mio-brand img{width:150px;}
}


/* MIO login scherm */
.pin-page{
    min-height:100vh!important;
    background:#eef3f9!important;
    color:#001b44!important;
    font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif!important;
}
.mio-login-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:26px 26px 26px 114px;
}
.mio-login-card {
    width: 100% !important;
    max-width: 500px !important;
    background: #fff !important;
    border: 1px solid #d6e0ee !important;
    border-radius: 24px !important;
    padding: 36px 44px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}
.mio-login-logo{margin:0 0 18px;}
.mio-login-logo img{
    display:block;
    width:170px;
    height:auto;
}
.mio-login-card h1{
    margin:0 0 6px!important;
    font-size:30px!important;
    line-height:1.1!important;
    color:#4167b1!important;
    font-weight:850!important;
}
.mio-login-sub{
    margin:0 0 26px!important;
    color:#425b86!important;
    font-size:15px!important;
}
.mio-login-form{
    margin:0;
}
.mio-login-form .pin-login-block{
    margin-bottom:16px;
}
.mio-login-form .pin-label,
.mio-login-form .captcha-label{
    display:block;
    margin:0 0 8px!important;
    color:#001b44!important;
    font-size:14px!important;
    font-weight:800!important;
}
.mio-login-form .pin-row{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:8px;
}
.mio-login-form .pin-digit{
    width:100%!important;
    height:46px!important;
    min-width:0!important;
    padding:0!important;
    border:1px solid #cfe0f4!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#001b44!important;
    text-align:center!important;
    font-size:22px!important;
    font-weight:800!important;
    box-shadow:none!important;
}
.mio-login-form .pin-digit:focus,
.mio-login-form .captcha-input:focus{
    outline:2px solid rgba(0,102,255,.18)!important;
    border-color:#0066ff!important;
}
.mio-login-form .captcha-block{
    display:block;
    margin:2px 0 20px!important;
}
.mio-login-form .captcha-label{
    margin-bottom:8px!important;
}
.mio-login-form .captcha-input{
    width:100%!important;
    max-width:none!important;
    height:46px!important;
    border:1px solid #cfe0f4!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#001b44!important;
    padding:10px 13px!important;
    font-size:18px!important;
    font-weight:700!important;
}
.mio-login-button{
    width:100%!important;
    height:46px!important;
    margin-top:0!important;
    background:#70c648!important;
    border:1px solid #70c648!important;
    border-radius:10px!important;
    color:#fff!important;
    font-weight:850!important;
    box-shadow:none!important;
}
.mio-login-button:hover{filter:brightness(.97)!important;}
.mio-login-card .error{
    background:#fff1f1!important;
    border:1px solid #f0b4b4!important;
    color:#9b1c1c!important;
    margin:0 0 16px!important;
    padding:10px 12px!important;
    border-radius:10px!important;
}
@media(max-width:700px){
    .mio-login-wrap{
        padding:22px;
        align-items:flex-start;
    }
    .mio-login-card{
        width:100%;
        padding:26px 22px;
    }
    .mio-login-logo img{width:150px;}
}


/* MIO login refinement */
body.pin-page{
    background:#eef2f7 !important;
}
.pin-page .pin-card{
    background:#ffffff !important;
    border:1px solid #dbe3ef !important;
    border-radius:24px !important;
    max-width:620px !important;
    padding:28px 34px !important;
    box-shadow:none !important;
}
.pin-row input.pin-digit[type=text],
.pin-row input.pin-digit[type=password]{
    background:#ffffff !important;
    color:#1f2937 !important;
    border:2px solid #d6deea !important;
    width:78px !important;
    min-width:78px !important;
    max-width:78px !important;
    height:64px !important;
    flex-basis:78px !important;
    -webkit-text-security:none !important;
}
.pin-row input.pin-digit[type=text]:focus,
.pin-row input.pin-digit[type=password]:focus{
    border-color:#3b82f6 !important;
    box-shadow:0 0 0 3px rgba(59,130,246,.15) !important;
}
.captcha-input{
    width:250px !important;
    max-width:250px !important;
    background:#fff !important;
    color:#1f2937 !important;
    border:2px solid #d6deea !important;
}


/* REAL MIO LOGIN FIX */
body.pin-page{
 background:#eef2f7 !important;
}
.mio-login-wrap{
 min-height:100vh;
 display:flex;
 align-items:center;
 justify-content:center;
}
.mio-login-card{
 width:560px !important;
 background:#fff !important;
 border:1px solid #d8e0ec !important;
 border-radius:24px !important;
 padding:34px !important;
 color:#24407a !important;
}
.mio-login-logo img{
 max-width:220px !important;
}
.mio-login-card input[type=password],
.mio-login-card input[type=text]{
 background:#fff !important;
 color:#111827 !important;
 border:1px solid #cfd8e6 !important;
}
.mio-login-card .pin-box,
.mio-login-card input.pin,
.mio-login-card .pin-input{
 background:#fff !important;
 color:#111827 !important;
 border:2px solid #cfd8e6 !important;
 width:72px !important;
 height:72px !important;
}
.mio-login-button{
 width:100% !important;
 background:#74c443 !important;
}

/* login compact captcha */
.captcha-input,
input[name="captcha"],
input[name="check"],
input.captcha{
 width:80px !important;
 max-width:80px !important;
 min-width:80px !important;
 display:inline-block !important;
}

/* final captcha inline fix */
.captcha-block{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;}
.captcha-label{margin:0!important;white-space:nowrap!important;}
#captcha_answer.captcha-input{
width:70px!important;min-width:70px!important;max-width:70px!important;
height:40px!important;padding:4px 8px!important;
}

/* compact login */
.login-card,.mio-login-card,.pin-card{max-width:520px!important;padding:24px!important}
.mio-login-logo img,img.logo{max-width:180px!important}
.pin-box,.pin-input,input.pin,input.pin-digit{width:56px!important;height:56px!important}
.captcha-input,input[name*=captcha],input[name*=control]{width:70px!important;max-width:70px!important}
h1,h2.login-title{margin:8px 0!important}

/* v17 drastic shrink */
.mio-login-card{
max-width:380px !important;
width:380px !important;
padding:20px !important;
border-radius:18px !important;
}
.mio-login-logo img{max-width:130px !important;}
.mio-login-sub{font-size:14px !important;margin-bottom:10px !important;}
.mio-login-card h1{font-size:22px !important;margin:6px 0 !important;}
.pin-box,.pin-input,input.pin,input.pin-digit{
width:44px !important;height:44px !important;
}
.mio-login-form{gap:8px !important;}

.mio-login-logo img{max-width:180px !important;height:auto !important;}
.captcha-row,.control-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.captcha-row input,.control-row input{width:70px !important;max-width:70px !important;}


/* v20 final login layout: match PIN-row width, no overflow */
body.pin-page .mio-login-wrap{width:100%!important;}
body.pin-page .mio-login-card{width:100%!important;max-width:500px!important;background:#fff!important;border:1px solid #d6e0ee!important;border-radius:24px!important;padding:36px 44px!important;box-sizing:border-box!important;}
body.pin-page .mio-login-form .pin-row{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:12px!important;width:100%!important;}
body.pin-page .mio-login-form .pin-row input.pin-digit{width:100%!important;max-width:none!important;min-width:0!important;height:62px!important;}
body.pin-page .mio-login-form .captcha-block{display:block!important;width:100%!important;margin:0 0 22px 0!important;}
body.pin-page .mio-login-form .captcha-label{display:block!important;margin:0 0 8px 0!important;}
body.pin-page .mio-login-form #captcha_answer.captcha-input{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:48px!important;}
body.pin-page .mio-login-button{width:100%!important;}


/* v21: verwijderen alleen binnen bewerken */
.edit-actions{
    display:flex;
    gap:8px;
    justify-content:center;
    align-items:center;
    margin-top:18px;
}
.delete-in-edit{
    margin-top:14px;
    text-align:center;
}
.btn-delete{
    background:#ef4444 !important;
    color:#fff !important;
    border:0 !important;
    border-radius:10px !important;
    padding:10px 18px !important;
    font-weight:700 !important;
    cursor:pointer !important;
}
.btn-delete:hover{
    background:#dc2626 !important;
}


.edit-actions{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:wrap !important;
}
.delete-in-edit{
    margin-top:0 !important;
}
.delete-in-edit .btn-delete{
    background:#ef4444 !important;
    color:#fff !important;
}


/* v23: bewerkknoppen netjes naast elkaar */
.edit-actions{
    display:flex !important;
    flex-direction:row !important;
    justify-content:center !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
    margin:22px auto 0 !important;
}
.edit-actions .btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:110px !important;
    max-width:none !important;
    margin:0 !important;
    padding:11px 18px !important;
    border-radius:10px !important;
    font-weight:700 !important;
    text-decoration:none !important;
    line-height:1.2 !important;
}
.edit-actions .btn-green{
    background:#18a957 !important;
    border-color:#18a957 !important;
    color:#fff !important;
}
.edit-actions .btn-cancel{
    background:#4469b6 !important;
    border-color:#4469b6 !important;
    color:#fff !important;
}
.edit-actions .btn-delete{
    background:#ef4444 !important;
    border-color:#ef4444 !important;
    color:#fff !important;
}
.delete-in-edit{
    display:none !important;
}

/* Domeinen/SIDN-module */
.domain-pre{margin:4px 0 0;padding:8px;border-radius:8px;background:#f4f7fb;white-space:pre-wrap;font-size:13px;line-height:1.4;}
.domain-table td{vertical-align:top;}
.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0;}
.domain-intro p{max-width:900px;}

/* Kluis: apart CSV-overzicht met zoeken bovenaan */
.kluis-head{margin-bottom:16px}
.kluis-head h2{margin-top:0}
.kluis-search{max-width:620px;font-size:16px}
.kluis-table td,.kluis-table th{vertical-align:top}
.kluis-table td:nth-child(5){word-break:break-all;text-align:left!important}
.kluis-password{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}
@media(max-width:900px){.kluis-table{display:block;overflow-x:auto}.kluis-search{max-width:none}}

/* Kluis v2: klikbare namen, kopieerbare velden en rustiger opmaak */
.kluis-head.card{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin:0 0 18px 0;
    padding:22px 24px;
    border:1px solid #cfe0f4;
    border-radius:16px;
    background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}
.kluis-head h2{margin:0 0 8px 0;font-size:26px;letter-spacing:-.02em;color:#002b63;}
.kluis-head p{margin:0;max-width:760px;color:#38506c;line-height:1.5;}
.kluis-search-wrap{min-width:360px;font-weight:800;color:#002b63;}
.kluis-search{
    display:block;
    width:100%;
    max-width:none;
    margin-top:7px;
    padding:13px 14px;
    border:1px solid #b9cce4;
    border-radius:12px;
    background:#fff;
    font-size:15px;
    box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.kluis-search:focus{outline:3px solid rgba(40,111,201,.18);border-color:#286fc9;}
.kluis-card{
    background:#fff;
    border:1px solid #cfe0f4;
    border-radius:16px;
    overflow:hidden;
}
.kluis-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;}
.kluis-table th{
    position:sticky;
    top:0;
    z-index:1;
    background:#eef5fc;
    color:#002b63;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.04em;
    padding:14px 16px;
    border-bottom:1px solid #cfe0f4;
}
.kluis-table td{
    padding:13px 16px;
    border-bottom:1px solid #e0ebf7;
    vertical-align:middle;
    text-align:left!important;
}
.kluis-row:nth-child(even){background:#f9fcff;}
.kluis-row:hover{background:#eef7ff;}
.kluis-name-cell strong{display:block;color:#002b63;}
.kluis-name-cell span{display:block;margin-top:4px;font-size:12px;color:#64748b;word-break:break-all;}
.kluis-name-link{display:block;text-decoration:none;}
.kluis-name-link:hover strong{text-decoration:underline;}
.kluis-badge,.kluis-extra{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef5fc;
    color:#1f4f86;
    font-weight:700;
    font-size:12px;
}
.copy-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 10px;
    border:1px solid #c6d8ee;
    border-radius:10px;
    background:#fff;
    color:#001f45;
    cursor:pointer;
    text-align:left;
}
.copy-btn:hover{border-color:#286fc9;background:#f3f8ff;}
.copy-btn.copied{border-color:#18a957;background:#edfdf3;}
.copy-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.copy-label{
    flex:0 0 auto;
    padding:4px 8px;
    border-radius:999px;
    background:#e8f0fb;
    color:#286fc9;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.copy-btn.copied .copy-label{background:#18a957;color:#fff;}
.kluis-password .copy-value{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;}
.copy-toast{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:9999;
    padding:12px 16px;
    border-radius:12px;
    background:#002b63;
    color:#fff;
    font-weight:800;
    opacity:0;
    transform:translateY(10px);
    pointer-events:none;
    transition:opacity .16s ease, transform .16s ease;
}
.copy-toast.show{opacity:1;transform:translateY(0);}
@media(max-width:1000px){
    .kluis-head.card{display:block;}
    .kluis-search-wrap{display:block;min-width:0;margin-top:18px;}
    .kluis-card{overflow-x:auto;}
    .kluis-table{min-width:880px;}
}

/* Kluis v3: gelijk aan Wachtwoorden, geen grote blauwe kopieerknoppen */
.kluis-intro.card{
    margin:0 0 16px 0 !important;
    padding:18px 20px !important;
    border:1px solid #cfe0f4 !important;
    border-radius:12px !important;
    background:#fff !important;
}
.kluis-intro h2{
    margin:0 0 10px 0 !important;
    font-size:22px !important;
    color:#002b63 !important;
}
.kluis-intro p{
    margin:0 0 16px 0 !important;
    max-width:none !important;
}
.kluis-search-label{
    display:block !important;
    max-width:520px !important;
    color:#002b63 !important;
}
.kluis-search{
    display:block !important;
    width:100% !important;
    max-width:520px !important;
    height:40px !important;
    margin-top:6px !important;
    padding:8px 10px !important;
    border:1px solid #b9cce4 !important;
    border-radius:6px !important;
    background:#fff !important;
    font-size:14px !important;
    box-shadow:none !important;
}
.kluis-search:focus{
    outline:2px solid rgba(68,105,182,.18) !important;
    border-color:#4469b6 !important;
}
.kluis-group table.kluis-table{
    width:100% !important;
    border-collapse:collapse !important;
    border-spacing:0 !important;
    background:#fff !important;
}
.kluis-group .kluis-table th,
.kluis-group .kluis-table td{
    text-align:left !important;
    vertical-align:middle !important;
}
.kluis-group .kluis-table th{
    padding:12px 14px !important;
    background:#eef5fc !important;
    color:#002b63 !important;
    font-size:14px !important;
    text-transform:none !important;
    letter-spacing:0 !important;
    border-bottom:1px solid #cfe0f4 !important;
}
.kluis-group .kluis-table td{
    padding:11px 14px !important;
    border-bottom:1px solid #d9e7f6 !important;
}
.kluis-name strong{
    display:block !important;
    margin:0 0 3px 0 !important;
}
.kluis-main-link{
    display:block !important;
    color:#245fba !important;
    text-decoration:underline !important;
    text-underline-offset:2px !important;
}
.kluis-url{
    display:block !important;
    margin-top:2px !important;
    color:#64748b !important;
    font-size:12px !important;
    line-height:1.25 !important;
    word-break:break-all !important;
}
.kluis-copy{
    display:inline-block !important;
    max-width:100% !important;
    padding:0 !important;
    border:0 !important;
    border-bottom:1px dotted #4469b6 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#002b63 !important;
    cursor:pointer !important;
    font-weight:600 !important;
    line-height:1.35 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}
.kluis-copy:hover{
    color:#245fba !important;
}
.kluis-copy.copied{
    color:#18a957 !important;
    border-bottom-color:#18a957 !important;
}
.kluis-password{
    font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}
.kluis-open.btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:92px !important;
    padding:8px 12px !important;
    border-radius:8px !important;
    line-height:1.1 !important;
    text-align:center !important;
    white-space:nowrap !important;
}
.copy-toast{
    position:fixed !important;
    right:24px !important;
    bottom:24px !important;
    z-index:9999 !important;
    padding:10px 14px !important;
    border-radius:10px !important;
    background:#002b63 !important;
    color:#fff !important;
    font-weight:800 !important;
    opacity:0;
    transform:translateY(10px);
    pointer-events:none;
    transition:opacity .16s ease, transform .16s ease;
}
.copy-toast.show{opacity:1 !important;transform:translateY(0) !important;}
@media(max-width:1000px){
    .kluis-group{overflow-x:auto !important;}
    .kluis-group .kluis-table{min-width:900px !important;}
}


/* Kluis v4: links strak uitlijnen + zoekveld netjes gestyled */
.kluis-intro.card{
    padding:20px 22px !important;
}
.kluis-search-label{
    max-width:640px !important;
    margin-bottom:0 !important;
    font-weight:700 !important;
}
.kluis-search-wrap{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    max-width:640px !important;
    height:44px !important;
    margin-top:8px !important;
    border:1px solid #b9cce4 !important;
    border-radius:10px !important;
    background:#fff !important;
    overflow:hidden !important;
    box-shadow:0 1px 2px rgba(0,43,99,.05) !important;
}
.kluis-search-icon{
    flex:0 0 42px !important;
    width:42px !important;
    height:42px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#4469b6 !important;
    font-weight:900 !important;
    font-size:20px !important;
}
input.kluis-search[type=search]{
    width:100% !important;
    max-width:none !important;
    height:42px !important;
    margin:0 !important;
    padding:0 13px 0 0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    color:#002b63 !important;
    font-size:15px !important;
    line-height:42px !important;
    box-shadow:none !important;
    outline:0 !important;
}
.kluis-search-wrap:focus-within{
    border-color:#4469b6 !important;
    box-shadow:0 0 0 3px rgba(68,105,182,.16) !important;
}
.kluis-group .kluis-table{
    table-layout:fixed !important;
}
.kluis-group .kluis-table th,
.kluis-group .kluis-table td{
    text-align:left !important;
}
.kluis-group .kluis-table th:nth-child(1),
.kluis-group .kluis-table td:nth-child(1){
    text-align:left !important;
    width:32% !important;
    padding-left:18px !important;
}
.kluis-group .kluis-table th:nth-child(2),
.kluis-group .kluis-table td:nth-child(2){width:18% !important;}
.kluis-group .kluis-table th:nth-child(3),
.kluis-group .kluis-table td:nth-child(3){width:22% !important;}
.kluis-group .kluis-table th:nth-child(4),
.kluis-group .kluis-table td:nth-child(4){width:20% !important;}
.kluis-group .kluis-table th:nth-child(5),
.kluis-group .kluis-table td:nth-child(5){
    width:8% !important;
    text-align:right !important;
    padding-right:16px !important;
}
.kluis-name{
    text-align:left !important;
}
.kluis-name strong{
    display:inline !important;
    margin:0 !important;
}
.kluis-main-link{
    display:inline-block !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    color:#245fba !important;
    font-weight:700 !important;
}
.kluis-copy{
    max-width:100% !important;
    display:inline-block !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}
.kluis-open.btn{
    min-width:0 !important;
    padding:7px 10px !important;
    border-radius:7px !important;
    font-size:13px !important;
}
@media(max-width:1000px){
    .kluis-group .kluis-table{min-width:980px !important;}
}

/* Kluis v5: ABC sortering in PHP, eerste kolom links, zoekveld volledige app-stijl */
.kluis-intro.card{
    padding:20px 22px 22px !important;
}
.kluis-intro.card h2{
    margin:0 0 12px 0 !important;
}
.kluis-intro.card p{
    margin:0 0 18px 0 !important;
}
.kluis-search-block{
    display:block !important;
    width:100% !important;
    max-width:680px !important;
    margin:0 !important;
}
.kluis-search-label{
    display:block !important;
    width:auto !important;
    margin:0 0 7px 0 !important;
    padding:0 !important;
    color:#002b63 !important;
    font-size:14px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
}
.kluis-search-wrap{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    max-width:680px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid #c7d8ee !important;
    border-radius:10px !important;
    background:#ffffff !important;
    box-shadow:0 1px 2px rgba(0,43,99,.06) !important;
    overflow:hidden !important;
}
.kluis-search-icon{
    flex:0 0 42px !important;
    width:42px !important;
    height:42px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#4469b6 !important;
    font-size:19px !important;
    font-weight:900 !important;
    line-height:1 !important;
}
input#kluisSearch.kluis-search,
input#kluisSearch.kluis-search[type=search]{
    appearance:none !important;
    -webkit-appearance:none !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:42px !important;
    margin:0 !important;
    padding:0 14px 0 0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#ffffff !important;
    color:#002b63 !important;
    font-size:15px !important;
    font-weight:500 !important;
    line-height:42px !important;
    box-shadow:none !important;
    outline:none !important;
}
input#kluisSearch.kluis-search::placeholder{
    color:#6b7f99 !important;
    opacity:1 !important;
}
.kluis-search-wrap:focus-within{
    border-color:#4469b6 !important;
    box-shadow:0 0 0 3px rgba(68,105,182,.16) !important;
}
.kluis-group table.kluis-table,
table.kluis-table{
    width:100% !important;
    table-layout:fixed !important;
}
.kluis-group table.kluis-table th,
.kluis-group table.kluis-table td,
table.kluis-table th,
table.kluis-table td{
    text-align:left !important;
    vertical-align:middle !important;
}
.kluis-group table.kluis-table th:first-child,
.kluis-group table.kluis-table td:first-child,
table.kluis-table th:first-child,
table.kluis-table td:first-child,
.kluis-col-name,
.kluis-name{
    text-align:left !important;
    width:32% !important;
    padding-left:18px !important;
}
.kluis-group table.kluis-table th:nth-child(5),
.kluis-group table.kluis-table td:nth-child(5),
table.kluis-table th:nth-child(5),
table.kluis-table td:nth-child(5){
    text-align:right !important;
    padding-right:16px !important;
}
.kluis-main-link{
    display:inline-block !important;
    max-width:100% !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

/* Kluis v6: items kunnen bewerken */
.kluis-col-edit,
.kluis-table th:nth-child(6),
.kluis-table td:nth-child(6){
    width:120px !important;
    text-align:right !important;
    padding-right:16px !important;
}
.kluis-edit-toggle{
    background:#eef4ff !important;
    color:#002b63 !important;
    border:1px solid #c7d8ee !important;
    padding:8px 12px !important;
    border-radius:9px !important;
    font-size:13px !important;
    font-weight:800 !important;
    cursor:pointer !important;
}
.kluis-edit-toggle:hover{
    background:#dfeaff !important;
}
.kluis-edit-row td{
    padding:0 18px 18px 18px !important;
    background:#f6f9fe !important;
    border-top:0 !important;
}
.kluis-edit-form{
    margin:0 !important;
    padding:18px !important;
    border:1px solid #c7d8ee !important;
    border-radius:12px !important;
    background:#ffffff !important;
    box-shadow:0 1px 3px rgba(0,43,99,.06) !important;
}
.kluis-edit-grid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(180px, 1fr)) !important;
    gap:14px 16px !important;
}
.kluis-edit-grid label{
    display:block !important;
    color:#002b63 !important;
    font-size:13px !important;
    font-weight:800 !important;
}
.kluis-edit-grid input{
    display:block !important;
    width:100% !important;
    box-sizing:border-box !important;
    margin-top:6px !important;
    padding:11px 12px !important;
    border:1px solid #c7d8ee !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#002b63 !important;
    font-size:14px !important;
    font-weight:500 !important;
    outline:none !important;
}
.kluis-edit-grid input:focus{
    border-color:#4469b6 !important;
    box-shadow:0 0 0 3px rgba(68,105,182,.16) !important;
}
.kluis-edit-actions{
    display:flex !important;
    gap:10px !important;
    justify-content:flex-end !important;
    margin-top:16px !important;
}
.kluis-edit-cancel{
    background:#eef4ff !important;
    color:#002b63 !important;
    border:1px solid #c7d8ee !important;
}
@media (max-width:900px){
    .kluis-edit-grid{grid-template-columns:1fr !important;}
}

/* Kluis v7: 20 per pagina met bladerfunctie onderaan */
.kluis-list-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    margin:0 0 12px 0 !important;
}
.kluis-list-head h2{
    margin:0 !important;
}
.kluis-count{
    color:#5f718a !important;
    font-size:14px !important;
    font-weight:700 !important;
    white-space:nowrap !important;
}
.kluis-pager{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    padding:16px 0 0 0;
}
.kluis-page-btn{
    min-width:38px;
    height:36px;
    padding:0 12px;
    border:1px solid #c7d8ee;
    border-radius:9px;
    background:#fff;
    color:#002b63;
    font-weight:800;
    cursor:pointer;
}
.kluis-page-btn:hover:not(:disabled){
    background:#eef4ff;
    border-color:#4469b6;
}
.kluis-page-btn.active{
    background:#4469b6;
    border-color:#4469b6;
    color:#fff;
}
.kluis-page-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
}
@media(max-width:700px){
    .kluis-list-head{display:block !important;}
    .kluis-count{margin-top:6px !important;}
    .kluis-pager{justify-content:flex-start;flex-wrap:wrap;}
}
