/* Atheneum Portaal — nieuwe huisstijl, naast de bestaande LVS-stijlen */
:root{
  --portal-navy:#102B4C;
  --portal-navy-deep:#0B2543;
  --portal-magenta:#C8004B;
  --portal-aqua:#BFE7E8;
  --portal-aqua-soft:#E5F6F6;
  --portal-ink:#15304F;
  --portal-slate:#64748B;
  --portal-border:#E4EAF0;
  --portal-surface:#F5F8FA;
}
body.portal-body{background:var(--portal-surface);color:var(--portal-ink)}
.app.portal-app,.app.portal-public{max-width:none;width:100%;min-height:100vh;margin:0}
.portal-app{display:flex;flex-direction:column}
.portal-topbar{
  background:var(--portal-navy-deep);color:white;display:flex;align-items:center;
  justify-content:space-between;gap:20px;min-height:82px;padding:14px clamp(18px,3vw,48px);
  border-bottom:3px solid var(--portal-magenta);
}
.portal-brand{display:flex;align-items:center;gap:20px;text-decoration:none;color:#fff;min-width:0}
.portal-brand-logo{height:47px;max-width:195px;width:auto;object-fit:contain;background:white;border-radius:8px;padding:4px}
.portal-brand-divider{width:1px;height:35px;background:rgba(255,255,255,.3)}
.portal-brand-title{font-weight:750;font-size:clamp(1rem,1.8vw,1.4rem);white-space:nowrap}
.portal-account{display:flex;align-items:center;gap:12px}
.portal-account-avatar{width:38px;height:38px;flex:none;border-radius:50%;display:grid;place-items:center;background:#BCDCDD;color:var(--portal-navy);font-weight:800}
.portal-account-copy{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.portal-account-copy strong{font-size:.91rem;color:white;white-space:nowrap}
.portal-account-copy small{color:#D3E4EC;font-size:.78rem}
.portal-logout{margin-left:14px;border:1px solid rgba(255,255,255,.42);padding:9px 13px;border-radius:9px;color:white;text-decoration:none;font-size:.87rem;font-weight:600}
.portal-logout:hover,.portal-logout:focus-visible{background:rgba(255,255,255,.13)}
.portal-workspace{display:grid;grid-template-columns:245px minmax(0,1fr);flex:1;min-height:calc(100vh - 82px)}
.portal-sidebar{
  background:white;border-right:1px solid var(--portal-border);padding:34px 16px 24px;
  display:flex;flex-direction:column;gap:10px;min-width:0;
}
.portal-sidebar-label{display:block;padding:0 14px;color:#7D8DA0;font-weight:750;letter-spacing:.11em;font-size:.67rem;margin-bottom:5px}
.portal-sidebar-label-secondary{margin-top:24px}
.portal-nav{display:flex;flex-direction:column;gap:5px}
.portal-nav-link{
  display:flex;align-items:center;gap:12px;min-height:44px;padding:11px 12px;
  color:var(--portal-ink);text-decoration:none;border-radius:10px;font-size:.93rem;font-weight:650;
}
.portal-nav-link:hover:not(.is-disabled){background:#EEF5F7}
.portal-nav-link.is-current{background:var(--portal-aqua-soft);color:#0A4257}
.portal-nav-link.is-disabled{color:#9CA9B7;background:transparent;font-weight:550;cursor:not-allowed}
.portal-nav-icon{display:inline-flex;justify-content:center;width:24px;font-size:1.5rem;line-height:1;font-weight:600}
.portal-nav-lock{margin-left:auto;color:#94A3B8;font-size:1rem}
.portal-sidebar-foot{margin-top:auto;padding:20px 14px 0;border-top:1px solid var(--portal-border);font-weight:700;font-size:.78rem;color:#566B81;line-height:1.6}
.portal-sidebar-foot span{font-weight:450}
.portal-content{padding:clamp(20px,3.3vw,48px);min-width:0}
.portal-content .screen{padding:0;max-width:1150px}
.portal-content .screen > .card{max-width:1100px}
.portal-dashboard{max-width:1280px;margin:auto}
.portal-dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 35px}
.portal-dashboard-intro h1,.portal-login h1{color:var(--portal-navy-deep);letter-spacing:-.035em}
.portal-dashboard-intro h1{font-size:clamp(1.8rem,3vw,2.65rem);margin:4px 0 12px}
.portal-dashboard-intro p:not(.portal-eyebrow){margin:0;color:#60758B;max-width:670px;line-height:1.7}
.portal-eyebrow{color:var(--portal-magenta);font-size:.72rem;letter-spacing:.14em;font-weight:800;margin:0}
.portal-intro-art{width:300px;height:135px;flex:none;display:flex;justify-content:flex-end;align-items:flex-end;overflow:hidden;opacity:.82}
.portal-mini-building{width:240px;height:94px;border:2px solid #7CCED1;border-bottom:5px solid #7CCED1;transform:skewY(-6deg);background:repeating-linear-gradient(90deg,transparent 0 21px,#7CCED1 22px 24px,transparent 25px 42px),repeating-linear-gradient(0deg,transparent 0 25px,#7CCED1 26px 28px,transparent 29px 55px);border-radius:2px}
.portal-section-title{font-size:1.16rem;color:var(--portal-navy);margin:0 0 17px}
.portal-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.portal-module{
  min-height:225px;display:flex;flex-direction:column;align-items:flex-start;gap:13px;
  background:#fff;border:1px solid var(--portal-border);border-radius:17px;padding:23px 19px;
  text-decoration:none;color:var(--portal-ink);position:relative;box-shadow:0 4px 13px rgba(23,45,72,.035);
}
.portal-module strong{font-size:1.15rem;color:var(--portal-navy)}
.portal-module > span:not(.portal-module-icon):not(.portal-module-status):not(.portal-module-footer){font-size:.87rem;line-height:1.55;color:#64768A}
.portal-module-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:12px;background:var(--portal-aqua-soft);color:#138B98;font-size:1.9rem}
.portal-module-active{border-color:#A2DDE0;box-shadow:0 5px 18px rgba(18,112,125,.1)}
.portal-module-active:hover{box-shadow:0 10px 24px rgba(18,112,125,.15);transform:translateY(-2px)}
.portal-module-active:focus-visible{outline:3px solid var(--portal-magenta);outline-offset:3px}
.portal-module-footer{margin-top:auto;display:flex;width:100%;align-items:center;justify-content:space-between;color:#0B7680;font-size:.8rem;font-weight:750}
.portal-module-footer span{font-size:1.35rem}
.portal-module-disabled{background:#F0F3F6;box-shadow:none;border-color:#E5EAF0;color:#8391A1}
.portal-module-disabled .portal-module-icon{background:#E4E9EE;color:#8493A4}
.portal-module-disabled strong{color:#5E7084}
.portal-module-status{position:absolute;right:15px;top:18px;font-size:.65rem;font-weight:700;color:#75869A;background:#E0E6EC;border-radius:99px;padding:5px 8px}
.portal-information{margin-top:26px;border-top:1px solid var(--portal-border);padding:18px 4px;display:flex;gap:18px;align-items:baseline;color:#66788C;font-size:.89rem;line-height:1.6}
.portal-information strong{color:var(--portal-navy);white-space:nowrap}
.portal-alert{margin:18px auto;padding:14px 18px;border:1px solid #F4B2C5;background:#FFF1F4;color:#922042;border-radius:12px;max-width:1100px}
.portal-alert p{margin:5px 0 0}
.portal-public{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:clamp(16px,2vw,30px)}
.portal-login{width:100%;max-width:1390px;min-height:580px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);overflow:hidden;border-radius:23px;background:white;box-shadow:0 18px 48px rgba(20,44,68,.09);border:1px solid #E6ECF1}
.portal-login-panel{padding:clamp(30px,5vw,80px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.portal-login-logo{width:330px;max-width:100%;height:auto;max-height:110px;object-fit:contain;object-position:left}
.portal-accent-line{width:52px;height:4px;background:var(--portal-magenta);margin:36px 0 22px;border-radius:5px}
.portal-login h1{font-size:clamp(2.3rem,4.2vw,4rem);line-height:1.08;margin:12px 0 18px}
.portal-login-lead{font-size:clamp(1rem,1.5vw,1.18rem);line-height:1.7;color:#667B8E;max-width:500px;margin:0 0 36px}
.portal-login-cta{display:flex;gap:17px;align-items:center;justify-content:space-between;background:var(--portal-magenta);color:white;border-radius:11px;padding:13px 20px;font-size:1rem;font-weight:750;text-decoration:none;min-height:58px;width:min(100%,430px);box-shadow:0 6px 15px rgba(200,0,75,.13)}
.portal-login-cta:hover,.portal-login-cta:focus-visible{background:#AC0042}
.portal-smartschool-mark{font-size:1.7rem;font-weight:850;border-right:1px solid rgba(255,255,255,.4);padding-right:13px}
.portal-login-help{background:#F3F6F8;border-radius:11px;padding:16px 18px;color:#536A80;line-height:1.6;width:min(100%,430px);font-size:.87rem;margin:16px 0 0}
.portal-login-art{background:linear-gradient(140deg,#D7EFF0 0%,#A8DCE0 40%,#5B9FB2 100%);position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;isolation:isolate}
.portal-login-art:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-150px;top:-170px;background:var(--portal-magenta)}
.portal-login-art:after{content:"";position:absolute;width:510px;height:260px;left:-40px;bottom:-150px;background:#DDF5F2;border-radius:50%;transform:rotate(-16deg)}
.portal-art-orbit{position:absolute;border:2px solid rgba(255,255,255,.45);border-radius:50%;width:540px;height:540px;top:3%;left:14%}
.portal-art-orbit-two{width:360px;height:360px;top:20%;left:25%}
.portal-art-building{position:absolute;left:14%;right:13%;bottom:22%;height:210px;border:4px solid rgba(255,255,255,.9);background:linear-gradient(90deg,rgba(16,43,76,.05),rgba(16,43,76,.22));transform:skewY(-4deg);z-index:2;box-shadow:18px 18px 0 rgba(16,43,76,.12)}
.portal-art-roof{position:absolute;left:-15px;right:-15px;top:-23px;height:18px;background:rgba(255,255,255,.86)}
.portal-art-windows{position:absolute;inset:20px;background:repeating-linear-gradient(90deg,transparent 0 14%,rgba(255,255,255,.86) 14% 15%,transparent 15% 29%),repeating-linear-gradient(0deg,transparent 0 47%,rgba(255,255,255,.86) 47% 49%,transparent 49% 100%)}
.portal-art-label{position:absolute;z-index:3;left:12%;right:12%;bottom:8%;color:var(--portal-navy);font-weight:750;font-size:1.15rem;text-align:center}
.portal-public-footer{text-align:center;font-size:.79rem;color:#7C8C9C;margin:18px 0 0}
@media(max-width:1200px){
 .portal-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .portal-module{min-height:200px}
}
@media(max-width:800px){
 .portal-topbar{min-height:70px;padding:11px 18px;flex-wrap:wrap}
 .portal-brand-logo{height:38px}
 .portal-brand-divider{height:25px}
 .portal-account-copy{display:none}
 .portal-logout{margin-left:0}
 .portal-workspace{display:block}
 .portal-sidebar{padding:12px 16px;border-right:0;border-bottom:1px solid var(--portal-border)}
 .portal-sidebar-label,.portal-sidebar-foot{display:none}
 .portal-nav{display:flex;flex-direction:row;overflow:auto;gap:7px}
 .portal-nav-link{white-space:nowrap;min-height:40px;padding:9px 12px;font-size:.85rem}
 .portal-nav-link.is-disabled{background:#F1F4F6}
 .portal-content{padding:22px 16px}
 .portal-intro-art{display:none}
 .portal-login{grid-template-columns:1fr;min-height:0}
 .portal-login-panel{padding:38px 30px}
 .portal-login-art{min-height:180px}
 .portal-art-building{height:110px;bottom:27%}
 .portal-art-label{bottom:10%;font-size:.9rem}
}
@media(max-width:530px){
 .portal-brand{gap:9px}.portal-brand-title{font-size:.98rem}.portal-brand-logo{max-width:110px;height:32px}
 .portal-module-grid{grid-template-columns:1fr}
 .portal-module{min-height:175px}
 .portal-dashboard-intro h1{font-size:1.85rem}
 .portal-information{flex-direction:column;gap:5px}
 .portal-login-panel{padding:32px 23px}
 .portal-login h1{font-size:2.2rem}
 .portal-login-art{min-height:140px}
 .portal-art-building{bottom:32%;height:80px}
}


/* Platformlogo voor de bovenbalk en het dashboard; login gebruikt de originele opmaak. */
.portal-brand-platform{display:inline-flex;align-items:center;gap:10px;min-width:0}
.portal-brand-mark{display:block;width:46px;height:40px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}
.portal-dashboard-brand{width:235px;height:147px;flex:none;display:flex;align-items:center;justify-content:center;background:rgba(231,247,248,.7);border:1px solid #DAECEE;border-radius:20px}
.portal-dashboard-brand-image{display:block;width:205px;max-height:130px;object-fit:contain}
@media(max-width:900px){
 .portal-dashboard-brand{width:145px;height:105px}
 .portal-dashboard-brand-image{width:130px;max-height:95px}
}
@media(max-width:800px){
 .portal-brand-mark{width:36px;height:34px}
 .portal-brand-platform{gap:7px}
}
@media(max-width:530px){
 .portal-brand-mark{width:32px;height:30px}
 .portal-brand-title{font-size:.9rem}
 .portal-dashboard-brand{display:none}
}


/* Bibliotheek: module-startpagina, acties volgen in een latere fase. */
.portal-library{max-width:1280px;margin:0 auto}
.portal-library-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:30px}
.portal-library-heading h1{font-size:clamp(1.8rem,3vw,2.55rem);letter-spacing:-.035em;color:var(--portal-navy-deep);margin:5px 0 11px}
.portal-library-heading p:not(.portal-eyebrow){color:#60758B;line-height:1.65;margin:0;max-width:720px}
.portal-library-status{flex:none;border-radius:99px;background:var(--portal-aqua-soft);border:1px solid #C4E5E8;color:#0B7180;padding:8px 13px;font-weight:700;font-size:.76rem}
.portal-library-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.portal-library-feature{background:#fff;border:1px solid var(--portal-border);border-radius:16px;padding:22px;min-height:205px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 4px 13px rgba(23,45,72,.035)}
.portal-library-feature-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:11px;background:var(--portal-aqua-soft);color:#148A97;font-size:1.5rem;line-height:1}
.portal-library-feature h2{font-size:1.03rem;color:var(--portal-navy);margin:15px 0 8px}
.portal-library-feature p{font-size:.87rem;color:#64768A;line-height:1.55;margin:0 0 16px}
.portal-library-feature-state{margin-top:auto;color:#8190A1;font-size:.74rem;font-weight:700}
.portal-library-notice{font-size:.84rem;color:#7D8B9D;margin:22px 0}
@media(max-width:1050px){.portal-library-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.portal-library-feature-grid{grid-template-columns:1fr}.portal-library-heading{flex-direction:column;gap:13px}.portal-library-feature{min-height:0}}


/* Bibliotheek: boekencatalogus, formulieren en fysieke exemplaren */
a.portal-library-feature-active{text-decoration:none;color:inherit;border-color:#A2DDE0;box-shadow:0 5px 18px rgba(18,112,125,.1)}
a.portal-library-feature-active:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(18,112,125,.15)}
a.portal-library-feature-active:focus-visible{outline:3px solid var(--portal-magenta);outline-offset:3px}
.portal-library-feature-active .portal-library-feature-state{color:#087884}
.library-page{max-width:1220px;margin:0 auto}
.library-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:26px}
.library-page-head h1{color:var(--portal-navy-deep);font-size:clamp(1.8rem,3vw,2.5rem);margin:6px 0 10px;letter-spacing:-.025em}
.library-page-head p:not(.portal-eyebrow){color:#687B8D;line-height:1.6;margin:0}
.library-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 16px;border-radius:10px;border:1px solid transparent;text-decoration:none;font-weight:700;font-size:.88rem;white-space:nowrap;cursor:pointer;font-family:inherit}
.library-button:disabled{opacity:.6;cursor:wait}
.library-button-primary{background:var(--portal-magenta);color:white}
.library-button-primary:hover,.library-button-primary:focus-visible{background:#AD0041;color:white}
.library-button-secondary{background:white;color:var(--portal-navy);border-color:#D7E1EA}
.library-button-secondary:hover,.library-button-secondary:focus-visible{background:#EDF5F8}
.library-button:focus-visible,.library-page input:focus-visible,.library-page select:focus-visible,.library-page textarea:focus-visible{outline:3px solid #83CFD2;outline-offset:2px}
.library-search,.library-form-card{background:white;border:1px solid var(--portal-border);border-radius:16px;padding:23px;margin-bottom:22px}
.library-search label,.library-field label{display:block;color:var(--portal-navy);font-size:.86rem;font-weight:750;margin:0 0 8px}
.library-search-row,.library-isbn-row{display:flex;gap:12px;align-items:flex-end}
.library-search-row input{flex:1;min-width:0}
.library-page input:not([type="checkbox"]):not([type="radio"]),.library-page select,.library-page textarea{font:inherit;box-sizing:border-box;min-height:43px;width:100%;border:1px solid #CFDCE7;border-radius:9px;padding:10px 12px;background:white;color:var(--portal-ink)}
.library-page textarea{min-height:78px;resize:vertical}
.library-list{border:1px solid var(--portal-border);border-radius:16px;background:white;overflow:hidden}
.library-list-item{display:flex;align-items:center;gap:18px;padding:14px 20px;border-bottom:1px solid #EDF1F5;text-decoration:none;color:var(--portal-ink);transition:background .15s}
.library-list-item:last-child{border-bottom:0}
.library-list-item:hover,.library-list-item:focus-visible{background:#F1FAFA}
.library-cover{flex:none;width:52px;height:70px;background:#EDF4F7;border-radius:7px;display:grid;place-items:center;color:#6D9BA5;font-size:2rem;overflow:hidden}
.library-cover img,.library-detail-cover img{width:100%;height:100%;object-fit:contain}
.library-list-info{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.library-list-info strong{font-size:1rem;color:var(--portal-navy)}
.library-list-info span,.library-list-info small{font-size:.82rem;color:#63788E}
.library-stock{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:82px}
.library-stock strong{color:#0B727B}.library-stock small{font-size:.7rem;color:#74859A}
.library-arrow{font-size:1.4rem;color:#6B8998}
.library-empty{text-align:center;padding:60px 20px;color:#687B8D}
.library-empty strong{display:block;color:var(--portal-navy);margin-bottom:8px;font-size:1.12rem}
.library-empty p{margin:0}
.library-pagination{padding-top:18px}
.library-form-card h2{font-size:1.16rem;color:var(--portal-navy);margin:0 0 17px}
.library-form-card>p{color:#6F8294;line-height:1.6;margin:-6px 0 20px;font-size:.88rem}
.library-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}
.library-field{min-width:0}
.library-wide{grid-column:1/-1}
.library-isbn-row{margin-bottom:4px}
.library-isbn-row .library-field{flex:1}
.library-help{color:#75869A;font-size:.82rem;margin:10px 0 22px;line-height:1.5}
.library-cover-preview{margin-top:20px;width:100px;height:135px}
.library-cover-preview img{width:100%;height:100%;object-fit:contain;border-radius:7px;border:1px solid #E1EAF1}
.library-form-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0}
.library-errors,.library-message{padding:14px 18px;border-radius:10px;margin-bottom:20px;line-height:1.6}
.library-errors{background:#FFF0F4;border:1px solid #F1BACD;color:#8F2547}
.library-errors ul{margin:7px 0 0;padding-left:20px}
.library-message{background:#EEF9F4;border:1px solid #C3E9D6;color:#21654A}
.library-detail-card{display:flex;gap:28px;background:#fff;border:1px solid var(--portal-border);border-radius:16px;padding:24px;margin-bottom:22px}
.library-detail-cover{flex:none;width:165px;height:220px;background:#EDF4F7;border-radius:9px;overflow:hidden;display:grid;place-items:center;font-size:5rem;color:#6D9BA5}
.library-detail-data{flex:1;min-width:0}
.library-detail-data h2{margin:0 0 15px;color:var(--portal-navy);font-size:1.05rem}
.library-detail-data dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:0}
.library-detail-data dt{color:#708398;font-size:.76rem;font-weight:700;margin-bottom:3px}
.library-detail-data dd{color:var(--portal-ink);margin:0;overflow-wrap:anywhere}
.library-description{white-space:pre-wrap;line-height:1.65;color:#5B6F84;margin:17px 0 0}
.library-table-wrap{overflow-x:auto}
.library-table{width:100%;border-collapse:collapse;font-size:.87rem;text-align:left}
.library-table th,.library-table td{padding:12px 10px;border-bottom:1px solid #E8EEF3;vertical-align:top}
.library-table th{font-size:.77rem;color:#71869A;text-transform:uppercase;letter-spacing:.04em}
.library-table tbody tr:last-child td{border-bottom:0}
.library-pill{background:#E8F6F4;color:#0A757B;padding:5px 9px;border-radius:99px;font-size:.78rem;font-weight:700}
@media(max-width:760px){
 .library-page-head{flex-direction:column;gap:16px}
 .library-form-grid,.library-detail-data dl{grid-template-columns:1fr}
 .library-isbn-row{flex-direction:column;align-items:stretch}
 .library-detail-card{flex-direction:column}
 .library-detail-cover{width:125px;height:165px}
}
@media(max-width:530px){
 .library-search-row{flex-wrap:wrap}
 .library-search-row input{flex-basis:100%}
 .library-list-item{padding:12px;gap:10px}
 .library-stock{min-width:60px}
 .library-arrow{display:none}
 .library-search,.library-form-card{padding:17px}
}


/* Bibliotheek: boeken op naam zoeken in Open Library. */
.library-name-lookup{margin:23px 0 24px;padding:20px;background:#F7FAFB;border:1px solid #E2EBF0;border-radius:13px}
.library-name-lookup h3{font-size:1rem;color:var(--portal-navy);margin:0 0 16px}
.library-name-search-row{display:flex;gap:11px;align-items:flex-end}
.library-name-search-row .library-field:first-child{width:150px;flex:none}
.library-name-search-input{flex:1}
.library-name-search-row>.library-button{flex:none}
.library-name-results{display:grid;gap:8px;max-height:410px;overflow-y:auto;margin:8px 0 15px}
.library-name-result{width:100%;display:flex;align-items:center;gap:14px;padding:10px 13px;text-align:left;border:1px solid #DCE8EE;border-radius:10px;background:white;color:var(--portal-ink);cursor:pointer;font-family:inherit}
.library-name-result:hover,.library-name-result:focus-visible{background:#EAF7F8;border-color:#A1D6D9}
.library-name-result-cover{width:44px;height:58px;flex:none;background:#EAF3F5;display:grid;place-items:center;overflow:hidden;border-radius:5px;font-size:1.5rem;color:#7B9DA5}
.library-name-result-cover img{width:100%;height:100%;object-fit:contain}
.library-name-result-info{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.library-name-result-info strong{font-size:.9rem;line-height:1.3}
.library-name-result-info small{font-size:.77rem;color:#6F8294}
.library-name-result-select{font-size:.77rem;font-weight:750;color:#007780;white-space:nowrap}
@media(max-width:760px){.library-name-search-row{flex-wrap:wrap}.library-name-search-input{flex:1;min-width:160px}}
@media(max-width:530px){.library-name-lookup{padding:15px}.library-name-search-row .library-field:first-child{width:100%}.library-name-search-input{width:100%;flex-basis:100%}.library-name-result-select{display:none}}


/* Bibliotheek: aparte editiekeuze met Nederlandse uitgaven eerst. */
.library-edition-panel{padding:18px;margin:14px 0 18px;border:1px solid #C7E0E5;border-radius:13px;background:#fff}
.library-edition-panel[hidden],.library-name-results[hidden]{display:none!important}
.library-edition-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.library-edition-head h4{margin:0;color:var(--portal-navy);font-size:1.03rem}
.library-edition-head .library-help{margin:6px 0}
.library-edition-filter{max-width:260px;margin-bottom:14px}
.library-edition-results{display:grid;gap:10px;max-height:540px;overflow-y:auto}
.library-edition-item{display:flex;align-items:center;gap:15px;padding:12px;border:1px solid #DFE9EE;border-radius:11px}
.library-edition-cover{width:62px;height:85px;flex:none;display:grid;place-items:center;background:#EAF3F5;border-radius:6px;overflow:hidden;color:#7B9DA5}
.library-edition-cover img{width:100%;height:100%;object-fit:contain}
.library-edition-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}
.library-edition-info strong{font-size:.92rem;color:var(--portal-navy)}
.library-edition-info small{font-size:.79rem;color:#61788D;line-height:1.55}
.library-edition-navigation{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}
.library-edition-navigation span{font-size:.8rem;color:#61788D}
.library-cover-preview{width:auto;height:auto;display:flex;align-items:flex-start;gap:14px}
.library-cover-preview[hidden]{display:none!important}
.library-cover-preview img{width:100px;height:135px}
.library-cover-preview .library-button{white-space:normal}
@media(max-width:760px){.library-edition-head{flex-direction:column}.library-edition-item{flex-wrap:wrap}.library-edition-item .library-button{margin-left:77px}.library-edition-navigation{flex-wrap:wrap}}


/* Portaal: contextgevoelige subnavigatie voor de actieve module. */
.portal-nav-module{display:flex;flex-direction:column;gap:3px;min-width:0}
.portal-nav-submenu{display:flex;flex-direction:column;gap:3px;margin:2px 0 9px 24px;padding:2px 0 2px 11px;border-left:2px solid #DCE8ED}
.portal-nav-subitem{display:flex;align-items:center;min-height:35px;padding:8px 11px;border-radius:8px;color:#65778B;font-size:.82rem;font-weight:580;line-height:1.3;text-decoration:none}
.portal-nav-subitem:hover,.portal-nav-subitem:focus-visible{background:#EEF5F7;color:#0A4257}
.portal-nav-subitem.is-active{background:#EAF6F7;color:#087985;font-weight:750}
.portal-nav-subitem:focus-visible{outline:2px solid #75C6CC;outline-offset:2px}
@media(max-width:1000px){
 .portal-nav-module{flex:none}
 .portal-nav-submenu{margin:2px 0 4px 15px;padding-left:7px}
 .portal-nav-subitem{white-space:nowrap;font-size:.78rem;padding:7px 9px}
}

/* Acties voor een afzonderlijk fysiek exemplaar. */
.library-copy-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.library-copy-actions form{margin:0}
.library-copy-actions .library-help{margin:0;max-width:220px}

/* Dashboard: compact, responsive statistics inside the application tiles. */
.portal-module-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin:4px 0 8px}
.portal-module .portal-module-stat{display:flex;flex-direction:column;gap:4px;min-width:0;border:1px solid #E5EDF1;border-radius:10px;padding:10px;background:#F7FAFB}
.portal-module .portal-module-stat span{font-size:.73rem;line-height:1.3;color:#617489}
.portal-module .portal-module-stat strong{font-size:1.42rem;line-height:1.15;color:var(--portal-navy);font-variant-numeric:tabular-nums}
.portal-module .portal-module-alert{display:block;width:100%;padding:8px 10px;border-radius:9px;font-size:.76rem;font-weight:700;line-height:1.4}
.portal-module .portal-module-alert-danger{color:#A52A34;background:#FFF0F0;border:1px solid #F1C1C4}
.portal-module .portal-module-alert-warning{color:#91601B;background:#FFF7E7;border:1px solid #F1D9A6}
.portal-module .portal-module-hint{font-size:.72rem;color:#77889A;line-height:1.4}
@media(max-width:640px){.portal-module-stats{gap:7px}.portal-module .portal-module-stat{padding:9px}}

/* Uitleenmodule: overzicht, uitzonderingen en leerlingzoekresultaten. */
.library-loan-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.library-loan-stat{display:flex;flex-direction:column;gap:7px;padding:17px;border:1px solid #DCE8EB;border-radius:14px;background:#F8FBFC;text-decoration:none;color:#2A4059}
.library-loan-stat>span{font-size:.83rem}.library-loan-stat strong{font-size:1.65rem;color:#143A54;font-variant-numeric:tabular-nums}
.library-loan-stat-alert{background:#FFF1F2;border-color:#F1B8BE}.library-loan-stat-alert strong{color:#B4232F}
.library-loan-overdue{display:inline-flex;background:#FFE8EA;color:#A71F2F;border:1px solid #F4B8BC;padding:5px 9px;border-radius:8px;font-size:.78rem;font-weight:800}
.library-loan-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:13px;margin-bottom:18px}
.library-loan-filters .library-field{flex:1 1 190px}
.library-loan-results{display:grid;gap:5px;max-height:240px;overflow-y:auto}
.library-loan-result{background:#F6FAFB;border:1px solid #D5E9EC;text-align:left;border-radius:8px;padding:10px 12px;cursor:pointer;color:#163A53}
.library-loan-result:hover,.library-loan-result:focus-visible{background:#DDF4F4}
@media(max-width:640px){.library-loan-stats{grid-template-columns:1fr}.library-loan-filters{display:grid}}

/* Centraal rollen- en rechtenbeheer */
.portal-permission-group{margin:18px 0;padding:15px 17px;border:1px solid #dce6eb;border-radius:12px}
.portal-permission-group legend{padding:0 8px;font-weight:750;color:#19394d}
.portal-permission-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-permission-option{display:flex;align-items:start;gap:9px;cursor:pointer;font-size:.94rem}
.portal-permission-option input{accent-color:#176f8b;margin-top:3px;width:17px;height:17px;flex-shrink:0}
.portal-user-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1.2fr) minmax(115px,.75fr) auto;gap:8px;align-items:center}
.portal-user-row input,.portal-user-row select{width:100%;min-width:0;border-radius:8px;border:1px solid #ccdce5;padding:9px}
@media(max-width:750px){.portal-permission-list{grid-template-columns:1fr}.portal-user-row{grid-template-columns:1fr}}


/* Rollen en rechten: compacte, toegankelijke accordeons in de portaalstijl. */
.portal-roles-page{max-width:1320px}
.portal-roles-intro{display:flex;align-items:center;gap:13px;padding:15px 18px;border:1px solid #dce8ef;border-radius:13px;background:#f7fafc;margin:0 0 19px;color:#536a82}
.portal-roles-intro p{margin:0;font-size:.91rem;line-height:1.55}
.portal-roles-intro strong{color:#18364f}
.portal-roles-intro-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;background:#deefeb;color:#167765;border-radius:9px;font-weight:800}
.portal-roles-accordion{display:grid;gap:11px}
.portal-role-panel{background:#fff;border:1px solid #dce6ed;border-radius:15px;overflow:hidden;box-shadow:0 2px 8px rgba(19,47,68,.035)}
.portal-role-panel[open]{border-color:#c4d7e3;box-shadow:0 7px 22px rgba(19,47,68,.065)}
.portal-role-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;padding:17px 21px;user-select:none;transition:background .16s ease}
.portal-role-summary::-webkit-details-marker,.portal-permission-module-summary::-webkit-details-marker{display:none}
.portal-role-summary:hover,.portal-role-summary:focus-visible{background:#f7fafc}
.portal-role-summary:focus-visible,.portal-permission-module-summary:focus-visible{outline:2px solid #3389a4;outline-offset:-3px}
.portal-role-identity{display:flex;align-items:center;gap:14px;min-width:0}
.portal-role-avatar{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#eaf2f7;color:#174766;font-size:.83rem;font-weight:800;letter-spacing:.02em}
.portal-role-panel-ict .portal-role-avatar{background:#e8f1fc;color:#185ca5}
.portal-role-name{display:flex;flex-direction:column;gap:3px;color:#173650;font-weight:750;font-size:1rem;line-height:1.28}
.portal-role-name small{font-size:.79rem;font-weight:450;color:#6c8191}
.portal-role-summary-end{display:flex;align-items:center;gap:17px;flex:none}
.portal-role-count{display:inline-flex;padding:7px 11px;border:1px solid #e0e8ee;background:#f5f8fa;border-radius:100px;color:#557083;font-weight:650;font-size:.78rem;font-variant-numeric:tabular-nums}
.portal-role-count-full{background:#e8f5ee;border-color:#cee8da;color:#247455}
.portal-role-chevron{display:block;flex:0 0 10px;width:10px;height:10px;border-right:2px solid #8093a2;border-bottom:2px solid #8093a2;transform:rotate(45deg);transition:transform .18s ease}
.portal-role-panel[open]>.portal-role-summary .portal-role-chevron,.portal-permission-module[open]>.portal-permission-module-summary .portal-role-chevron{transform:rotate(225deg)}
.portal-role-content{padding:19px 21px 22px;border-top:1px solid #edf1f4}
.portal-role-content>p{margin:0;color:#596e80;line-height:1.6}
.portal-role-content-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.portal-role-content-head p{margin:0;color:#63798b;font-size:.87rem;line-height:1.5}
.portal-role-unsaved{color:#995a13;background:#fff5e5;border:1px solid #f0dbb2;border-radius:100px;padding:5px 9px;font-weight:650;font-size:.73rem}
.portal-role-unsaved[hidden]{display:none}
.portal-permission-modules{display:grid;gap:9px}
.portal-permission-module{border:1px solid #e0e9ef;border-radius:11px;background:#fff;overflow:hidden}
.portal-permission-module[open]{border-color:#ccdce7}
.portal-permission-module-summary{list-style:none;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 16px;cursor:pointer;background:#f9fbfc}
.portal-permission-module-summary:hover{background:#f0f6f9}
.portal-permission-module-name{font-size:.91rem;font-weight:750;color:#24455d}
.portal-permission-module-side{display:flex;align-items:center;gap:19px;color:#758898;font-size:.79rem;font-variant-numeric:tabular-nums}
.portal-permission-module-body{padding:15px 17px;border-top:1px solid #e6edf2}
.portal-permission-modules .portal-permission-list{gap:12px 20px}
.portal-permission-modules .portal-permission-option{align-items:center;background:#fff;border-radius:7px;padding:5px 3px;color:#29465b;font-size:.86rem;line-height:1.45}
.portal-permission-modules .portal-permission-option:hover{background:#f5f9fb}
.portal-permission-modules .portal-permission-option input{margin-top:0}
.portal-role-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;flex-wrap:wrap}
.portal-role-help{font-size:.8rem;color:#71869a}
@media(max-width:650px){
 .portal-role-summary{padding:14px}
 .portal-role-content{padding:15px}
 .portal-role-avatar{flex-basis:36px;height:36px}
 .portal-role-identity{gap:10px}
 .portal-role-name{font-size:.91rem}
 .portal-role-count{font-size:.7rem;padding:6px 8px}
 .portal-role-summary-end{gap:11px}
 .portal-role-content-head{align-items:flex-start;flex-direction:column}
 .portal-role-actions .library-button{width:100%}
}


/* Gebruikersbeheer en Smartschool-test: rustigere typografie, correcte formulierruimte. */
.portal-users-page .library-form-card{padding:25px 28px}
.portal-users-page .library-form-card>h2{margin:0 0 8px}
.portal-users-card-intro{font-size:.9rem;line-height:1.55;color:#64788c;margin:0 0 22px}
.portal-users-assign-form{display:grid;grid-template-columns:minmax(220px,1.55fr) minmax(180px,1fr) auto;gap:18px;align-items:end}
.portal-users-page .portal-users-assign-form .library-field,
.portal-test-message-page .portal-test-message-form .library-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0}
.portal-users-page .portal-users-assign-form .library-field label,
.portal-test-message-page .portal-test-message-form .library-field label{font-size:.86rem;font-weight:700;color:#29465d;line-height:1.4;margin:0}
.portal-users-page .portal-users-assign-form input,
.portal-users-page .portal-users-assign-form select,
.portal-users-page .portal-user-role-form select,
.portal-test-message-page .portal-test-message-form input:not([type=checkbox]),
.portal-test-message-page .portal-test-message-form textarea{
    box-sizing:border-box;width:100%;min-width:0;height:45px;padding:10px 14px;
    font-size:.92rem;line-height:1.5;color:#1b3851;background:#fff;border:1px solid #cbdbe5;
    border-radius:9px;outline:none
}
.portal-test-message-page .portal-test-message-form textarea{height:auto;min-height:170px;resize:vertical;line-height:1.6;padding:13px 15px}
.portal-users-page .portal-users-assign-form input:focus,
.portal-users-page .portal-users-assign-form select:focus,
.portal-users-page .portal-user-role-form select:focus,
.portal-test-message-page .portal-test-message-form input:focus,
.portal-test-message-page .portal-test-message-form textarea:focus{border-color:#2683a1;box-shadow:0 0 0 3px rgba(38,131,161,.11)}
.portal-users-assign-action{display:flex;align-items:end}
.portal-users-assign-action .library-button{min-height:45px;white-space:nowrap}
.portal-users-note{display:flex;align-items:flex-start;gap:12px;margin-top:20px;padding:13px 16px;background:#f4f8fb;border:1px solid #dfebf2;border-radius:10px}
.portal-users-note>span{flex:0 0 23px;display:grid;place-items:center;height:23px;border-radius:100%;background:#e2edf5;color:#275a7a;font-weight:800;font-size:.78rem}
.portal-users-note p{margin:0;color:#526e82;font-size:.84rem;line-height:1.6}
.portal-users-note strong{color:#2e526e}
.portal-users-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}
.portal-users-table-heading h2{margin:0 0 4px}
.portal-users-table-heading p{margin:0;font-size:.83rem;color:#708597}
.portal-users-total{white-space:nowrap;color:#527086;background:#eff5f8;border:1px solid #dce8ee;padding:7px 10px;border-radius:100px;font-size:.78rem;font-weight:700}
.portal-users-page .portal-user-role-form{display:flex;align-items:center;gap:8px}
.portal-users-page .portal-user-role-form select{min-width:165px;max-width:260px}
.portal-users-page .portal-user-role-form .library-button{white-space:nowrap;flex-shrink:0}
.portal-users-pagination{margin-top:19px}
.portal-test-message-form{display:grid;gap:24px}
.portal-test-message-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.portal-test-message-form .library-help{font-size:.8rem;line-height:1.5;margin:0;color:#718598}
.portal-test-message-warning{margin:0 0 22px;background:#fffaf0;border-color:#f3deb2}
.portal-test-message-warning>span{background:#fce8bc;color:#956012}
.portal-test-message-consent{display:flex;align-items:flex-start;gap:12px;font-size:.88rem;line-height:1.55;color:#355069;cursor:pointer}
.portal-test-message-consent input{width:17px;height:17px;flex:none;margin:3px 0 0;accent-color:#227a94}
@media(max-width:900px){.portal-users-assign-form{grid-template-columns:1fr 1fr}.portal-users-assign-action{grid-column:1/-1}}
@media(max-width:650px){.portal-users-page .library-form-card{padding:17px}.portal-users-assign-form,.portal-test-message-two-col{grid-template-columns:1fr}.portal-users-assign-action{grid-column:auto}.portal-users-table-heading{align-items:flex-start;flex-direction:column}}

/* Toegang tot het portaal rechtstreeks vanuit bestaande users.allowed_login. */
.portal-login-toggle-form{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.portal-login-toggle-form .library-button{white-space:nowrap}
.portal-login-status{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;font-size:.76rem;font-weight:700;border-radius:99px}
.portal-login-status-yes{color:#22644c;background:#e7f5ec;border:1px solid #c5e5d1}
.portal-login-status-no{color:#9c3443;background:#fff0f2;border:1px solid #f3c9cf}


/* Gebruikersbeheer: live suggesties uit de bestaande users-tabel. */
.portal-user-autocomplete{position:relative;min-width:0;width:100%}
.portal-user-autocomplete>input{width:100%}
.portal-user-suggestions{position:absolute;z-index:100;left:0;right:0;top:calc(100% + 5px);max-height:310px;overflow-y:auto;padding:5px;background:#fff;border:1px solid #cbdde7;border-radius:11px;box-shadow:0 12px 30px rgba(21,49,73,.16)}
.portal-user-suggestions[hidden]{display:none}
.portal-user-suggestion{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;background:transparent;border:0;border-radius:7px;padding:10px 12px;text-align:left;color:#203d56;cursor:pointer}
.portal-user-suggestion:hover,.portal-user-suggestion:focus-visible{background:#edf6f8;outline:none}
.portal-user-suggestion-name{font-size:.9rem;font-weight:700;line-height:1.3}
.portal-user-suggestion small{font-size:.77rem;font-weight:450;color:#6b8090}
.portal-user-suggestion-empty{padding:12px;font-size:.87rem;color:#728596}

/* Eigen Nederlandstalige paginering, zonder Tailwind-afhankelijke SVG-knoppen. */
.portal-users-pagination{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:20px;padding-top:17px;border-top:1px solid #edf1f4}
.portal-pagination-summary{font-size:.84rem;color:#667f90;font-variant-numeric:tabular-nums}
.portal-pagination-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.portal-page-link{display:inline-flex;align-items:center;justify-content:center;min-width:35px;height:36px;padding:0 12px;border:1px solid #d7e3eb;background:#fff;color:#31566b;border-radius:8px;font-size:.83rem;font-weight:650;text-decoration:none;white-space:nowrap}
a.portal-page-link:hover,a.portal-page-link:focus-visible{border-color:#81b7c5;background:#eff8fa;outline:none}
.portal-page-link.is-current{background:#164a68;color:#fff;border-color:#164a68}
.portal-page-link.is-disabled{background:#f5f7f9;color:#a3b0ba;border-color:#ebeff2;cursor:default}
@media(max-width:650px){.portal-users-pagination{align-items:flex-start;flex-direction:column}.portal-pagination-controls{gap:4px}.portal-page-link{min-width:32px;padding:0 9px}}


/* Smartschool-test: duidelijke selectie en bevestiging, onafhankelijk van globale form-stijlen. */
.portal-test-message-page .portal-test-message-form select{
    box-sizing:border-box;width:100%;min-width:0;height:45px;
    padding:10px 35px 10px 14px;font-size:.92rem;line-height:1.5;
    color:#1b3851;background-color:#fff;border:1px solid #cbdbe5;border-radius:9px
}
.portal-test-message-page .portal-test-message-form select:focus{outline:none;border-color:#2683a1;box-shadow:0 0 0 3px rgba(38,131,161,.11)}
.portal-message-recipient-search{width:100%;position:relative}
.portal-message-recipient-selection{display:grid;gap:5px;padding:9px 12px;border:1px solid #e0eaf0;background:#f7fafc;border-radius:9px}
.portal-message-recipient-selection>span{color:#6a7e90;font-size:.75rem;font-weight:650}
.portal-test-message-page .portal-test-message-form .portal-message-recipient-selection input{
    height:30px!important;padding:0!important;background:transparent!important;border:0!important;
    box-shadow:none!important;color:#255470!important;font-weight:750
}
.portal-test-message-consent-row{display:flex;align-items:center;padding:13px 16px;border:1px solid #e0e9ef;background:#f7fafc;border-radius:10px}
.portal-test-message-page .portal-test-message-form .portal-test-message-consent{
    display:flex!important;flex-direction:row!important;align-items:center!important;gap:13px!important;
    margin:0!important;padding:0!important;font-size:.86rem;line-height:1.5;cursor:pointer
}
.portal-test-message-page .portal-test-message-form .portal-test-message-consent input[type="checkbox"]{
    appearance:auto!important;display:block!important;width:18px!important;height:18px!important;
    min-width:18px!important;max-width:18px!important;min-height:18px!important;
    margin:0!important;padding:0!important;flex:0 0 18px!important;accent-color:#176f8b
}
.portal-test-message-page .portal-test-message-form .portal-test-message-consent span{display:block;flex:1;min-width:0;color:#38556a}


/* Bibliotheek: rustig uitleenproces in drie stappen met scan- en boekenlijst. */
.library-checkout-page{max-width:1290px}
.library-checkout-page #library-checkout-form{display:grid;gap:21px}
.library-checkout-card{background:#fff;border:1px solid #dfe9ef;border-radius:16px;box-shadow:0 2px 7px rgba(18,45,70,.03);overflow:hidden}
.library-checkout-section-head{display:flex;align-items:center;gap:15px;padding:21px 25px;border-bottom:1px solid #eaf0f4;background:#fafdfe}
.library-checkout-section-head>div{flex:1;min-width:0}
.library-checkout-section-head h2{font-size:1.08rem;line-height:1.35;color:#153854;margin:0 0 5px;font-weight:750}
.library-checkout-section-head p{font-size:.85rem;line-height:1.55;color:#73869a;margin:0}
.library-checkout-step{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#e0f3f4;color:#057c89;font-weight:800;font-size:1.05rem}
.library-checkout-section-body{padding:25px;display:grid;gap:20px}
.library-checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.library-checkout-page .library-field{display:flex;flex-direction:column;gap:9px;min-width:0}
.library-checkout-page .library-field label{font-size:.89rem;font-weight:750;color:#24435d;margin:0;line-height:1.4}
.library-checkout-page .library-field input{box-sizing:border-box;width:100%;min-width:0;height:46px;padding:11px 14px;border:1px solid #ccdce6;border-radius:9px;background:#fff;color:#1b3850;font-size:.92rem;line-height:1.4}
.library-checkout-page .library-field input:focus{outline:none;border-color:#3d9caf;box-shadow:0 0 0 3px rgba(61,156,175,.12)}
.library-checkout-page .library-field .library-help{margin:0;font-size:.81rem;line-height:1.55;color:#778b9c}
.library-checkout-inline{display:flex;align-items:stretch;gap:10px}
.library-checkout-inline input{flex:1}
.library-checkout-inline button{flex:none;min-height:46px;white-space:nowrap}
.library-checkout-results{display:grid;gap:5px;max-height:230px;overflow:auto}
.library-checkout-result{display:block;text-align:left;border:1px solid #e0eaf0;border-radius:8px;padding:10px 13px;background:#f9fcfd;color:#294b60;cursor:pointer;font-size:.86rem}
.library-checkout-result:hover,.library-checkout-result:focus-visible{outline:none;background:#e8f5f8;border-color:#90c8d3}
.library-checkout-feedback{padding:11px 14px;border:1px solid #cbe7e0;border-radius:9px;background:#effaf6;color:#28745d;font-size:.85rem;line-height:1.5}
.library-checkout-feedback.is-error{color:#9e3340;background:#fff2f4;border-color:#f0cad0}
.library-checkout-feedback[hidden],.library-checkout-selected[hidden],.library-checkout-pairing[hidden]{display:none}
.library-checkout-selected{display:flex;gap:13px;align-items:center;padding:14px 17px;border:1px solid #b9dfd6;border-radius:11px;background:#f3faf8}
.library-checkout-avatar{display:grid;place-items:center;flex:0 0 37px;height:37px;border-radius:50%;background:#d7f1e8;color:#24745c;font-weight:850}
.library-checkout-selected>div{flex:1;min-width:0;display:grid;gap:4px}
.library-checkout-selected strong{font-size:.93rem;color:#174f40}
.library-checkout-selected small{font-size:.81rem;color:#5f7f75}
.library-checkout-pairing{display:grid;gap:12px;padding:16px 18px;border:1px solid #eedeb6;border-radius:11px;background:#fff9eb}
.library-checkout-pairing p{margin:0;font-size:.86rem;line-height:1.55;color:#715b30}
.library-checkout-pairing button{justify-self:start}
.library-checkout-counter{flex:none;background:#ecf5f9;color:#32657b;font-size:.81rem;font-weight:700;padding:7px 12px;border-radius:99px;white-space:nowrap}
.library-checkout-table-wrap{overflow-x:auto;border:1px solid #e1eaf0;border-radius:10px}
.library-checkout-table{width:100%;border-collapse:collapse;min-width:490px}
.library-checkout-table thead th{text-align:left;background:#f5f9fb;color:#496579;font-size:.8rem;font-weight:750;padding:13px 15px;border-bottom:1px solid #e5edf1}
.library-checkout-table tbody td{padding:13px 15px;border-bottom:1px solid #ecf1f4;font-size:.86rem;color:#29485f;vertical-align:middle}
.library-checkout-table tbody tr:last-child td{border-bottom:0}
.library-checkout-table tbody td:first-child{font-weight:700}
.library-checkout-table tbody td:last-child{text-align:right;width:110px}
.library-checkout-remove{border:0;background:transparent;color:#a93247;cursor:pointer;font-size:.8rem;font-weight:650;padding:7px}
.library-checkout-remove:hover{text-decoration:underline}
.library-checkout-caption{margin:0;color:#74899a;font-size:.82rem;line-height:1.5}
.library-checkout-term-row{display:flex;align-items:end;gap:22px;flex-wrap:wrap}
.library-checkout-term-row>.library-field{width:230px;max-width:100%}
.library-checkout-due{display:grid;gap:7px;min-height:46px}
.library-checkout-due span{font-size:.81rem;color:#74899a}
.library-checkout-due strong{font-size:1.07rem;color:#193d57;line-height:1.45}
.library-checkout-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:4px 2px 14px}
.library-checkout-actions>span{font-size:.83rem;color:#798d9d}
.library-checkout-actions button{min-height:46px;white-space:nowrap}
.library-checkout-actions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:800px){
 .library-checkout-grid{grid-template-columns:1fr;gap:19px}
 .library-checkout-section-body{padding:18px}
 .library-checkout-section-head{padding:17px}
 .library-checkout-actions{flex-direction:column;align-items:stretch}
 .library-checkout-actions button{width:100%}
}
@media(max-width:520px){.library-checkout-inline{flex-direction:column}.library-checkout-inline button{width:100%}.library-checkout-counter{display:none}}


/* Leerlingensynchronisatie — status en handmatige opstart */
.portal-sync-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}
.portal-sync-stat{display:flex;flex-direction:column;gap:8px;padding:20px 22px;background:#fff;border:1px solid #e1eaf0;border-radius:13px}
.portal-sync-stat span{font-size:.83rem;color:#73879b}
.portal-sync-stat strong{font-size:1.28rem;font-weight:800;color:#153954}
.portal-sync-form{display:grid;gap:18px}
.portal-sync-option{display:flex;align-items:flex-start;gap:12px;color:#24455c;font-size:.88rem;line-height:1.55;cursor:pointer}
.portal-student-sync-page .portal-sync-option input[type="checkbox"],
.portal-staff-sync-page .portal-sync-option input[type="checkbox"]{appearance:auto;flex:0 0 18px;display:block;box-sizing:border-box;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;padding:0;margin:2px 0 0;border:initial;border-radius:3px;accent-color:#197c91;align-self:flex-start}
.portal-sync-option span{display:grid;gap:3px}
.portal-sync-option small{color:#71899a;font-size:.81rem}
.portal-sync-status{display:inline-flex;border-radius:20px;padding:6px 10px;font-weight:700;font-size:.76rem;white-space:nowrap;background:#e9eff5;color:#4b6377}
.portal-sync-status-completed{background:#e4f5ed;color:#23664d}
.portal-sync-status-failed{background:#fff0f0;color:#a23343}
.portal-sync-status-running{background:#e6f4ff;color:#27638e}
.portal-sync-status-waiting{background:#f9f1dd;color:#936d21}
@media(max-width:850px){.portal-sync-stats{grid-template-columns:1fr}.portal-sync-stat{padding:16px}}

/* Synchronisatie: vaste compacte keuzeopties zonder conflicten met algemene invoervelden. */
.portal-student-sync-page .portal-sync-form{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0}
.portal-student-sync-page .portal-sync-option{display:flex;flex-direction:row;align-items:flex-start;gap:12px;width:100%;box-sizing:border-box;padding:12px 14px;margin:0;border:1px solid #e2ebf1;background:#fafcfd;border-radius:10px;line-height:1.5}
.portal-student-sync-page .portal-sync-option + .portal-sync-option{margin-top:11px}
.portal-student-sync-page .portal-sync-option>span{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;line-height:1.5}
.portal-student-sync-page .portal-sync-option strong{font-weight:700;color:#193b54}
.portal-student-sync-page .portal-sync-form>.portal-role-actions{margin-top:22px;padding-top:16px;border-top:1px solid #edf1f4;align-items:center}
.portal-student-sync-page .portal-sync-form>.portal-role-actions .library-button{min-height:44px}

/* Nachtelijke taakmonitor: compacte tabellen zonder afgebroken of overlopende statusinformatie. */
.portal-night-jobs{margin-top:24px}
.portal-night-jobs .portal-users-table-heading h2{margin:0 0 5px}
.portal-night-table,.portal-night-history{min-width:850px}
.portal-night-table th,.portal-night-table td,.portal-night-history th,.portal-night-history td{vertical-align:top;line-height:1.5}
.portal-night-table td:first-child{min-width:190px}
.portal-night-description{margin-top:5px;color:#71899b;font-size:.8rem;line-height:1.5;max-width:290px}
.portal-night-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.portal-sync-result{min-width:190px;color:#37556b;font-size:.82rem;line-height:1.55;overflow-wrap:anywhere;word-break:normal}
.portal-night-footnote{font-size:.81rem;color:#718598;line-height:1.6;margin:15px 0 0}
.portal-sync-feedback{padding:13px 17px;background:#f6f9fb;border:1px solid #dfeaf0;border-radius:9px;font-size:.85rem;color:#45667c}
.portal-sync-status-warning{background:#fff3db;color:#865d12}
.portal-sync-status-unknown{background:#f1f4f6;color:#708396}
.portal-student-sync-page .portal-sync-stat strong{overflow-wrap:anywhere}
.portal-staff-sync-page .portal-sync-option{max-width:100%}
.portal-staff-sync-page .portal-sync-option span{min-width:0;flex:1;overflow-wrap:anywhere}
.portal-staff-sync-page .portal-sync-form{min-width:0}
.portal-staff-sync-page .portal-role-actions{margin-top:4px}
.portal-staff-sync-page .portal-sync-result{overflow-wrap:anywhere}
@media(max-width:850px){.portal-night-jobs{margin-top:18px}}


/* Sortable management-table headers: match regular headings, never default blue links. */
.library-table th a.portal-column-sort,
.library-table th a.portal-column-sort:link,
.library-table th a.portal-column-sort:visited {
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    color:inherit;
    font:inherit;
    font-weight:inherit;
    letter-spacing:inherit;
    text-transform:inherit;
    text-decoration:none;
    text-underline-offset:3px;
    border-radius:4px;
    transition:color .15s ease;
}
.library-table th a.portal-column-sort:hover {
    color:var(--portal-navy, #173b58);
    text-decoration:none;
}
.library-table th a.portal-column-sort:focus-visible {
    outline:2px solid currentColor;
    outline-offset:3px;
}
.library-table th a.portal-column-sort span[aria-hidden] {
    display:inline-block;
    color:#93a4b5;
    font-size:.72rem;
    font-weight:600;
    line-height:1;
}
.library-table th a.portal-column-sort[aria-label] span[aria-hidden] {
    color:var(--portal-navy, #173b58);
}

/* Central management dashboard */
.portal-management-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:24px}
.portal-management-stat{margin:0}
.portal-management-stat .portal-management-eyebrow{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#71869a;margin:0 0 8px}
.portal-management-stat>strong{display:block;color:var(--portal-navy,#173b58);font-size:2rem;line-height:1.2;font-variant-numeric:tabular-nums}
.portal-management-stat>p:last-child{color:#648095;font-size:.84rem;margin:9px 0 0}
.portal-management-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px;margin-top:19px}
.portal-management-tile,.portal-management-tile:visited{display:block;text-decoration:none;color:var(--portal-navy,#173b58);border:1px solid #dde8ef;border-radius:12px;background:#f9fbfc;padding:19px;transition:box-shadow .15s,border-color .15s,transform .15s}
.portal-management-tile:hover{border-color:#9ebac9;box-shadow:0 7px 20px rgba(17,53,77,.08);transform:translateY(-1px);text-decoration:none}
.portal-management-tile:focus-visible{outline:2px solid #157a83;outline-offset:3px}
.portal-management-tile-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.96rem}
.portal-management-tile-heading span{color:#7294a5}
.portal-management-tile p,.portal-management-muted{font-size:.86rem;color:#617c90;line-height:1.55;margin:9px 0 0}
