:root{
  --bg:#f5f5f3;
  --card:#ffffff;
  --text:#3f4141;
  --muted:#727272;
  --brand:#c86622;
  --brand-dark:#a85218;
  --brand-soft:#f5e6db;
  --border:#e3e1de;
  --good:#2f9a62;
  --warn:#d88915;
  --danger:#c64545;
  --sidebar:#3f4141;
  --sidebar-soft:#4a4c4c;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--sidebar);color:white;padding:24px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.brand-mark,.login-logo{display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:800;border-radius:14px}
.brand-mark{width:44px;height:44px}.brand small{display:block;color:#a7bec6;margin-top:3px}.sidebar nav{display:flex;flex-direction:column;gap:7px}
.sidebar nav a{padding:12px 14px;text-decoration:none;border-radius:10px;color:#d8e6ea}.sidebar nav a:hover,.sidebar nav a.active{background:#1c404b;color:white}
.sidebar-bottom{margin-top:auto;border-top:1px solid #31515b;padding-top:16px;display:flex;flex-direction:column;gap:8px;color:#c9d9de}.sidebar-bottom a{color:white}
main{min-width:0}.topbar{height:92px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:18px;padding:0 32px}
.topbar h1{margin:0 0 4px;font-size:24px}.topbar p{margin:0;color:var(--muted)}.user-pill{margin-left:auto;background:#edf7f7;color:var(--brand-dark);padding:9px 12px;border-radius:999px;font-weight:600}
.menu-btn{display:none;border:0;background:#eef3f6;padding:10px 12px;border-radius:9px;font-size:20px}.content{padding:30px;max-width:1500px;margin:0 auto}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.stat-card,.card{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 24px rgba(28,51,64,.05)}
.stat-card{padding:22px}.stat-card span{display:block;color:var(--muted);font-size:14px}.stat-card strong{font-size:34px;display:block;margin-top:8px}.stat-card.good{border-left:5px solid var(--good)}.stat-card.warn{border-left:5px solid var(--warn)}
.card{padding:22px;margin-bottom:22px}.card h2{margin:0 0 8px}.card p{color:var(--muted)}.card-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:14px}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--border)}th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#edf1f4}.badge.available{background:#e6f6ee;color:#247a50}.badge.reserved,.badge.loaned{background:#fff1dd;color:#9b5b00}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:11px 15px;background:#e9eef2;color:#17212b;text-decoration:none;font-weight:700;cursor:pointer}.btn.primary{background:var(--brand);color:white}.btn.primary:hover{background:var(--brand-dark)}.btn.small{padding:7px 10px;font-size:13px}
.inline-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}.form-stack{display:flex;flex-direction:column;gap:14px}
label{font-weight:600;font-size:14px;display:flex;flex-direction:column;gap:6px}input,select{width:100%;border:1px solid #cfdbe2;border-radius:9px;background:white;padding:11px 12px;font:inherit}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.list-row{padding:14px 0;border-bottom:1px solid var(--border)}.alert{padding:12px 14px;border-radius:10px;margin-bottom:16px}.alert.danger{background:#fde9e9;color:#9f2d2d}
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#edf6f8,#f7fafc)}.login-card{width:min(460px,100%);background:white;border:1px solid var(--border);border-radius:20px;padding:34px;box-shadow:0 20px 50px rgba(22,44,56,.12)}
.login-logo{width:64px;height:64px;margin:auto;font-size:22px}.login-card h1{text-align:center;margin:18px 0 6px}.login-card>p{text-align:center;color:var(--muted);margin-bottom:26px}.muted{color:var(--muted)}.login-card .muted{display:block;margin-top:18px;text-align:center}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);margin-top:20px;border-top:1px solid var(--border);border-left:1px solid var(--border)}.cal-head{background:var(--brand);color:#fff;text-align:center;font-weight:800;padding:10px;border-right:1px solid #177176}
.cal-cell{min-height:125px;padding:8px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:#fff}.muted-cell{background:#f1f3f4}.cal-cell.today{background:#edf8f8}.cal-event{margin-top:7px;background:#e5f3f3;border-left:4px solid var(--brand);padding:6px;border-radius:6px;font-size:12px}.cal-event small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;left:-280px;width:250px;transition:.2s}.sidebar.open{left:0}.menu-btn{display:block}.topbar{padding:0 18px}.user-pill{display:none}.content{padding:18px}.stats-grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr 1fr}.form-grid .btn{grid-column:1/-1}.calendar{min-width:780px}.card:has(.calendar){overflow:auto}}
@media(max-width:560px){.stats-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.topbar h1{font-size:20px}.topbar p{font-size:13px}}

.nav-label{margin:18px 12px 5px;color:#7896a0;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.sidebar-bottom small{color:#8ea8b0}
.security-note{margin-top:18px;padding:12px 14px;border-radius:10px;background:#edf7f7;display:flex;flex-direction:column;gap:4px}
.security-note strong{color:var(--brand-dark)}
.security-note span{font-size:13px;color:var(--muted)}
.alert.success{background:#e6f6ee;color:#247a50}
.danger-btn{background:#fde9e9;color:#9f2d2d}
button:disabled{opacity:.5;cursor:not-allowed}
.reserve-grid{grid-template-columns:1.2fr 2fr 1fr 1fr auto}
.inventory-add{grid-template-columns:1.2fr 1.8fr 1.5fr auto}
@media(max-width:1100px){
  .reserve-grid,.inventory-add{grid-template-columns:1fr 1fr}
  .reserve-grid .btn,.inventory-add .btn{grid-column:1/-1}
}
@media(max-width:600px){
  .reserve-grid,.inventory-add{grid-template-columns:1fr}
}

.narrow-card{max-width:720px}
.admin-list-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}
.grow{flex:1}.count-pill{white-space:nowrap;background:#eef3f6;padding:7px 10px;border-radius:999px;color:var(--muted);font-size:12px}
.actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.inline-details summary,.action-details summary{cursor:pointer;list-style:none}
.inline-details[open],.action-details[open]{background:#f7f9fb;padding:10px;border-radius:10px}.mini-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:10px}
.mini-form label{min-width:220px}.badge.archived{background:#f0f0f0;color:#666}
.admin-create{grid-template-columns:1fr 1fr 1fr auto}
@media(max-width:1100px){.admin-create{grid-template-columns:1fr 1fr}.admin-create .btn{grid-column:1/-1}}
@media(max-width:700px){.admin-list-row{align-items:stretch;flex-direction:column}.admin-create{grid-template-columns:1fr}}

/* V0.4.1 - admin sidebar hotfix */
.sidebar{
  height:100vh;
  height:100dvh;
  overflow:hidden;
  min-height:0;
}
.sidebar nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  margin-right:-4px;
}
.sidebar nav::-webkit-scrollbar{
  width:6px;
}
.sidebar nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}
.sidebar nav::-webkit-scrollbar-track{
  background:transparent;
}
.sidebar-bottom{
  flex:0 0 auto;
  margin-top:14px;
  padding-top:14px;
  background:var(--sidebar);
  position:relative;
  z-index:2;
}
.sidebar-bottom a{
  display:block;
  width:max-content;
  max-width:100%;
}
@media(max-width:900px){
  .sidebar{
    height:100vh;
    height:100dvh;
  }
}

/* V0.5 - Unit-T house style */
body{
  background:var(--bg);
  color:var(--text);
}

.sidebar{
  background:var(--sidebar);
  border-right:1px solid #2f3030;
}

.brand{
  align-items:flex-start;
  gap:12px;
  padding-bottom:18px;
  margin-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.brand-logo{
  width:92px;
  height:auto;
  object-fit:contain;
  background:#fff;
  border-radius:10px;
  padding:7px 8px;
}

.brand-copy{
  padding-top:2px;
}

.brand-copy strong{
  display:block;
  font-size:17px;
  color:#fff;
}

.brand-copy small{
  display:block;
  color:#d2d2d2;
  margin-top:4px;
  line-height:1.25;
}

.sidebar nav a{
  color:#ededed;
  border-left:3px solid transparent;
}

.sidebar nav a:hover{
  background:var(--sidebar-soft);
  color:#fff;
}

.sidebar nav a.active{
  background:#fff;
  color:var(--text);
  border-left-color:var(--brand);
  font-weight:700;
}

.nav-label{
  color:#c7c7c7;
}

.sidebar-bottom{
  border-top:1px solid rgba(255,255,255,.16);
  color:#e9e9e9;
}

.sidebar-bottom small{
  color:#c7c7c7;
}

.sidebar-bottom a{
  color:#fff;
}

.sidebar-bottom a:hover{
  color:#f0b180;
}

.topbar{
  background:#fff;
  border-bottom:1px solid var(--border);
}

.topbar h1{
  color:var(--text);
}

.user-pill{
  background:var(--brand-soft);
  color:var(--brand-dark);
  border:1px solid #edd4c2;
}

.card,.stat-card{
  border-color:var(--border);
  box-shadow:0 8px 22px rgba(63,65,65,.05);
}

.stat-card.good{
  border-left-color:var(--good);
}

.stat-card.warn{
  border-left-color:var(--brand);
}

.btn.primary{
  background:var(--brand);
  color:#fff;
}

.btn.primary:hover{
  background:var(--brand-dark);
}

.btn{
  border:1px solid #d8d5d2;
}

.badge.reserved,.badge.loaned{
  background:#f7e4d7;
  color:#9e4c13;
}

.calendar .cal-head{
  background:var(--text);
  color:#fff;
  border-right:1px solid #5a5c5c;
}

.cal-event{
  background:#f7e8dd;
  border-left-color:var(--brand);
}

.login-page{
  background:linear-gradient(135deg,#f4f4f2 0%,#eceae7 100%);
}

.login-card{
  border-top:6px solid var(--brand);
  box-shadow:0 22px 55px rgba(63,65,65,.14);
}

.login-unit-logo{
  display:block;
  width:min(260px,80%);
  height:auto;
  margin:0 auto 22px;
  object-fit:contain;
}

.login-card h1{
  color:var(--text);
  font-size:34px;
}

.login-card>p{
  color:var(--muted);
  font-size:16px;
}

.security-note{
  background:#f8eee7;
  border:1px solid #efd8c7;
}

.security-note strong{
  color:var(--brand-dark);
}

input:focus,select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(200,102,34,.12);
}

table thead th{
  color:#646464;
}

.danger-btn{
  border-color:#efc9c9;
}

.count-pill{
  background:#f1efec;
}

@media(max-width:900px){
  .brand-logo{
    width:84px;
  }
}

/* V0.6 - Admin 2FA */
.wide-login{width:min(620px,100%)}
.setup-box{background:#f8f6f3;border:1px solid var(--border);border-radius:12px;padding:16px;margin-bottom:16px}
.secret-box,.secret-small{font-family:ui-monospace,Consolas,monospace;word-break:break-all;background:#fff;border:1px dashed #c9c3bd;border-radius:9px;padding:12px;margin:10px 0;letter-spacing:.08em}
.secret-box{font-size:18px;font-weight:800;text-align:center}
.secret-small{font-size:11px;letter-spacing:0}
.otpauth-details{margin:0 0 18px}
.check-row{flex-direction:row;align-items:center;gap:9px;font-weight:500}
.check-row input{width:auto}
.recovery-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.recovery-grid code{display:block;padding:12px;border:1px solid var(--border);background:#f7f5f2;border-radius:9px;font-size:18px;text-align:center;letter-spacing:.08em}
@media(max-width:560px){.recovery-grid{grid-template-columns:1fr}}


/* ==========================================================
   V0.6.1 - 2FA koppelingspagina
   ========================================================== */

.twofa-page{
  min-height:100vh;
  margin:0;
  padding:24px;
  background:#f3f2f0;
  color:#353636;
  font-family:Inter,Segoe UI,Arial,sans-serif;
}

.twofa-shell{
  width:min(1080px,100%);
  margin:0 auto;
  background:#fff;
  border:1px solid #e1dedb;
  border-radius:16px;
  box-shadow:0 12px 38px rgba(55,55,55,.10);
  overflow:hidden;
}

.twofa-brandbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:95px;
  padding:20px 38px 16px;
  border-bottom:2px solid var(--brand);
}

.twofa-unit img{
  display:block;
  width:190px;
  max-height:68px;
  object-fit:contain;
  object-position:left center;
}

.twofa-product{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  line-height:1.1;
}

.twofa-product strong{
  font-size:30px;
  color:#333;
}

.twofa-product span{
  margin-top:5px;
  font-size:17px;
  color:#575757;
}

.twofa-content{
  padding:24px 38px 0;
}

.twofa-heading{
  text-align:center;
  padding:0 0 10px;
}

.twofa-shield{
  display:inline-block;
  margin-right:5px;
  font-size:30px;
  vertical-align:middle;
}

.twofa-heading h1{
  display:inline-block;
  margin:0;
  color:#333;
  font-size:31px;
  vertical-align:middle;
}

.twofa-heading p{
  margin:7px 0 0;
  color:#666;
  font-size:16px;
}

.twofa-alert{
  display:flex;
  align-items:center;
  gap:12px;
  margin:15px 0;
  padding:15px 18px;
  border:1px solid #efc5c5;
  border-radius:10px;
  background:#fdecec;
  color:#b72d2d;
}

.twofa-alert-icon{
  font-size:20px;
}

.twofa-form{
  margin:0;
}

.twofa-steps{
  display:grid;
  grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr);
  border:1px solid #dedbd8;
  border-radius:13px;
  overflow:hidden;
  margin-top:18px;
}

.twofa-step{
  padding:22px 25px 20px;
}

.twofa-step p{
  margin:10px 0 18px;
  color:#4f5050;
  line-height:1.55;
  font-size:15px;
}

.twofa-step-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.twofa-step-title h2{
  margin:0;
  color:#353636;
  font-size:18px;
}

.twofa-step-number{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  font-weight:800;
}

.twofa-step-left{
  border-right:1px solid #e5e2df;
}

.twofa-divider{
  display:grid;
  place-items:center;
  position:relative;
  background:#fff;
}

.twofa-divider::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:1px;
  background:#e4e1de;
}

.twofa-divider span{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:50%;
  background:#f4f1ed;
  color:#555;
  font-weight:700;
}

.twofa-qr-frame{
  width:210px;
  height:210px;
  margin:14px auto 16px;
  padding:10px;
  border:2px solid var(--brand);
  border-radius:10px;
  background:#fff;
}

.twofa-qr{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  image-rendering:pixelated;
}

.twofa-fallback{
  border:1px solid #dfdcd8;
  border-radius:9px;
  background:#f8f7f5;
  overflow:hidden;
}

.twofa-fallback summary{
  cursor:pointer;
  padding:12px 15px;
  font-weight:700;
  list-style:none;
}

.twofa-fallback summary::-webkit-details-marker{
  display:none;
}

.twofa-fallback summary span{
  color:var(--brand);
  margin-right:7px;
}

.twofa-fallback-content{
  padding:0 15px 15px;
  border-top:1px solid #e2dfdc;
}

.twofa-fallback-content p{
  margin-bottom:10px;
}

.twofa-key-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin:7px 0;
  font-size:14px;
}

.twofa-key-row span{
  color:#777;
}

.twofa-secret{
  margin:13px 0 7px;
  padding:12px;
  border:1px dashed #c8c3bf;
  border-radius:8px;
  background:#fff;
  font-family:ui-monospace,Consolas,monospace;
  font-weight:800;
  letter-spacing:.10em;
  word-break:break-all;
  text-align:center;
}

.twofa-small{
  margin:0!important;
  color:#777!important;
  font-size:12px!important;
  text-align:center;
}

.twofa-advanced{
  margin-top:12px;
}

.twofa-advanced summary{
  padding:8px 0;
  font-size:13px;
}

.twofa-advanced code{
  display:block;
  margin-top:7px;
  padding:9px;
  border-radius:7px;
  background:#fff;
  font-size:10px;
  word-break:break-all;
}

.twofa-code-input{
  position:relative;
  display:block;
  margin-top:28px;
}

.twofa-code-input input{
  height:54px;
  padding-left:45px;
  font-size:20px;
  letter-spacing:.12em;
}

.twofa-input-icon{
  position:absolute;
  z-index:2;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:#aaa;
}

.twofa-timebox{
  margin-top:32px;
  padding:15px 18px;
  border-radius:9px;
  background:#f5f2ee;
}

.twofa-time-title{
  display:flex;
  align-items:center;
  gap:9px;
}

.twofa-time-title span{
  color:var(--brand);
  font-size:22px;
}

.twofa-timebox p{
  margin:8px 0 0;
  font-size:14px;
  line-height:1.5;
}

.twofa-explanation{
  padding:21px 10px 25px;
}

.twofa-explanation-title{
  display:flex;
  align-items:center;
  gap:11px;
}

.twofa-explanation-title span{
  font-size:22px;
}

.twofa-explanation-title h2{
  margin:0;
  font-size:19px;
}

.twofa-explanation p{
  margin:7px 0 0;
  color:#555;
  line-height:1.55;
  font-size:14px;
}

.twofa-actions{
  display:grid;
  grid-template-columns:170px 1fr;
  align-items:center;
  gap:30px;
  margin:0 -38px;
  padding:18px 38px;
  border-top:1px solid #dfdcd9;
  background:#faf9f8;
}

.twofa-logout{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  height:44px;
  border:1px solid #bdb9b5;
  border-radius:8px;
  background:#fff;
  color:#454545;
  text-decoration:none;
  font-weight:700;
}

.twofa-submit{
  justify-self:end;
  width:min(460px,100%);
  min-height:48px;
  border:0;
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.twofa-submit:hover{
  background:var(--brand-dark);
}

@media(max-width:850px){
  .twofa-page{
    padding:0;
  }

  .twofa-shell{
    border-radius:0;
    min-height:100vh;
  }

  .twofa-brandbar{
    padding:17px 20px;
  }

  .twofa-unit img{
    width:135px;
  }

  .twofa-product strong{
    font-size:23px;
  }

  .twofa-product span{
    font-size:13px;
  }

  .twofa-content{
    padding:22px 20px 0;
  }

  .twofa-steps{
    display:block;
  }

  .twofa-step-left{
    border-right:0;
    border-bottom:1px solid #e5e2df;
  }

  .twofa-divider{
    display:none;
  }

  .twofa-actions{
    margin:0 -20px;
    padding:16px 20px;
    grid-template-columns:1fr;
  }

  .twofa-submit{
    justify-self:stretch;
    width:100%;
  }

  .twofa-logout{
    order:2;
  }
}

@media(max-width:520px){
  .twofa-brandbar{
    align-items:flex-start;
  }

  .twofa-unit img{
    width:112px;
  }

  .twofa-product strong{
    font-size:20px;
  }

  .twofa-product span{
    max-width:125px;
    text-align:right;
  }

  .twofa-step{
    padding:18px;
  }

  .twofa-qr-frame{
    width:190px;
    height:190px;
  }
}


/* V0.7 - mobile-first technician workflow */
.mobile-hidden{display:none!important}.mobile-reserve-card{max-width:1050px;margin-inline:auto}.mobile-step-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.mobile-step-head>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800}.mobile-step-head strong,.mobile-step-head small{display:block}.mobile-step-head small{color:var(--muted);margin-top:2px}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.choice-tile{appearance:none;text-align:left;min-height:112px;padding:16px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text);cursor:pointer;box-shadow:0 4px 12px rgba(63,65,65,.04)}.choice-tile:hover,.choice-tile:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(200,102,34,.10)}.choice-tile strong,.choice-tile small{display:block}.choice-tile small{color:var(--muted);margin-top:5px}.choice-icon{display:block;font-size:24px;color:var(--brand);margin-bottom:9px}.text-back{border:0;background:transparent;color:var(--brand-dark);font-weight:700;padding:0;margin:0 0 14px;cursor:pointer}.period-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:600px}.mobile-confirm{width:100%;max-width:600px;margin-top:18px;min-height:50px}.empty-choice,.empty-state{padding:22px;text-align:center;color:var(--muted);background:#f8f7f5;border-radius:10px}.my-loans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.loan-card{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid var(--border);border-left:4px solid var(--brand);border-radius:12px;background:#fff}.loan-card h3{margin:3px 0}.loan-card p,.loan-card small{margin:0;color:var(--muted)}.loan-return{display:flex;justify-content:space-between;align-items:end;gap:10px;padding-top:10px;border-top:1px solid var(--border)}.loan-return span,.loan-return strong{display:block}.loan-return span{font-size:12px;color:var(--muted)}.loan-overdue{border-left-color:var(--danger);background:#fff8f8}.loan-today{border-left-color:var(--warn)}.badge.overdue{background:#fde7e7;color:#a92f2f}
@media(max-width:800px){.choice-grid,.my-loans-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.content{padding:14px}.mobile-reserve-card{padding:16px}.choice-grid,.my-loans-grid,.period-grid{grid-template-columns:1fr}.choice-tile{min-height:94px}.choice-tile strong{font-size:17px}.mobile-confirm{position:sticky;bottom:10px;z-index:3}.stats-grid{grid-template-columns:1fr 1fr}.tech-home-card .card-head{align-items:flex-start;gap:12px;flex-direction:column}.tech-home-card .btn{width:100%;text-align:center}}


/* V0.8 */
.choice-unavailable{opacity:.76;background:#f4f3f1;cursor:not-allowed}.choice-unavailable:hover,.choice-unavailable:focus{border-color:var(--border);box-shadow:none}.loan-info{margin-top:10px;padding:8px 10px;border-radius:8px;background:#f8dfdf;color:#8f3434}.loan-info b,.loan-info span{display:block}.loan-info span{font-size:12px;margin-top:3px}.available-info{margin-top:10px;color:var(--good);font-weight:700;font-size:13px}.assign-tech{max-width:600px;margin-bottom:14px}.quick-return{width:100%;min-height:44px}.user-create{grid-template-columns:repeat(4,minmax(0,1fr))}.badge.overdue{background:#fde7e7;color:#a92f2f}
@media(max-width:1000px){.user-create{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.user-create{grid-template-columns:1fr}.choice-unavailable{opacity:.84}}

/* V0.9 */
.loan-info-line{display:block;line-height:1.35}
.loan-info-line b,.loan-info-line span{display:inline}
.loan-return-date{margin-top:4px}
.user-create{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.user-create{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.user-create{grid-template-columns:1fr}}


/* V0.9.1 - user management email field */
.action-details[open]{min-width:min(760px,75vw)}
.action-details .mini-form{align-items:end}
.action-details .mini-form label{min-width:180px}
@media(max-width:800px){.action-details[open]{min-width:620px}}
@media(max-width:680px){.action-details[open]{min-width:0;width:100%}.action-details .mini-form{display:grid;grid-template-columns:1fr}.action-details .mini-form label{min-width:0}}

/* V0.9.3 - reservation width + SVG icon polish */

/* Desktop: reserve card follows the same content width as the other pages */
.mobile-reserve-card{
  max-width:none;
  width:100%;
  margin-inline:0;
}

/* Local inline SVG icons */
.choice-icon{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:28px;
  height:28px;
  margin-bottom:10px;
  color:var(--brand);
}
.choice-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* More consistent cards */
.choice-grid{
  align-items:stretch;
}
.item-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.choice-tile{
  position:relative;
  min-width:0;
  overflow:hidden;
}
.choice-tile strong{
  line-height:1.25;
}
.choice-tile small{
  line-height:1.3;
}

/* Available item */
.choice-available{
  border-left:4px solid var(--good);
}
.choice-available .choice-icon{
  color:var(--good);
}
.choice-available .available-info{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
}
.choice-available .available-info::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--good);
  flex:0 0 auto;
}

/* Loaned item */
.choice-unavailable{
  border-left:4px solid var(--brand);
  background:#fbf7f4;
  opacity:1;
}
.choice-unavailable .choice-icon{
  color:var(--brand);
}
.choice-unavailable .loan-info{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #efd7c6;
  background:#f8e9de;
  color:#74401c;
}
.choice-unavailable .loan-info-line{
  display:block;
  line-height:1.4;
}
.choice-unavailable .loan-info-line + .loan-info-line{
  margin-top:3px;
}
.choice-unavailable .loan-info-line b,
.choice-unavailable .loan-info-line span{
  display:inline;
}
.choice-unavailable:hover,
.choice-unavailable:focus{
  border-color:var(--border);
  border-left-color:var(--brand);
  box-shadow:none;
}

/* Keep tile sizing sane on all widths */
@media(max-width:1100px){
  .item-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  .mobile-reserve-card{
    width:100%;
  }
  .item-grid,
  .warehouse-grid{
    grid-template-columns:1fr;
  }
  .choice-tile{
    min-height:96px;
  }
}


/* V0.9.4 - Reservation UI hotfix */
.mobile-reserve-card .choice-icon,
.mobile-reserve-card .choice-icon svg,
.mobile-reserve-card button.choice-tile .choice-icon,
.mobile-reserve-card button.choice-tile .choice-icon svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px !important;
}

.mobile-reserve-card .choice-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 10px 0 !important;
    overflow: hidden !important;
}

.mobile-reserve-card .choice-icon svg {
    display: block !important;
    object-fit: contain !important;
    stroke-width: 1.8 !important;
}

.mobile-reserve-card .warehouse-grid .choice-tile {
    min-height: 132px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.mobile-reserve-card .warehouse-grid .choice-tile strong {
    margin-top: 4px !important;
}

@media (min-width: 901px) {
    .mobile-reserve-card .warehouse-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .mobile-reserve-card .warehouse-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .mobile-reserve-card .warehouse-grid {
        grid-template-columns: 1fr !important;
    }
    .mobile-reserve-card .warehouse-grid .choice-tile {
        min-height: 104px !important;
        padding: 16px !important;
    }
}


/* V0.9.5 - keep reservations/history aligned with main content beside sidebar */
body .app-main .history-card,
body .app-main .reservations-history,
body .app-main .reservation-history,
body .main-content .history-card,
body .main-content .reservations-history,
body .main-content .reservation-history {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* If the history section previously used viewport width, neutralize it */
.history-card,
.reservations-history,
.reservation-history {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Reservation page table should stay responsive inside the content pane */
.history-card .table-wrap,
.reservations-history .table-wrap,
.reservation-history .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* Never allow a reservations section to span underneath the fixed sidebar */
@media (min-width: 901px) {
    .app-main > *,
    .main-content > * {
        box-sizing: border-box;
    }
}

/* Smartphone: preserve horizontal table scrolling instead of breaking layout */
@media (max-width: 700px) {
    .history-card,
    .reservations-history,
    .reservation-history {
        overflow: hidden;
    }
    .history-card table,
    .reservations-history table,
    .reservation-history table {
        min-width: 720px;
    }
}


/* V0.9.6 - valid reservation page structure */
.reservations-page{
    width:100%;
    min-width:0;
}
.reservations-page > .card{
    width:100%;
    max-width:none;
    box-sizing:border-box;
}
.reservations-page .table-wrap{
    max-width:100%;
    overflow-x:auto;
}

/* V0.10 */
.user-create-v10{grid-template-columns:repeat(3,minmax(0,1fr))}
.user-manage-v10[open]{min-width:min(820px,78vw)}
.user-admin-section{padding:14px 0;border-bottom:1px solid var(--border)}
.user-admin-section:last-child{border-bottom:0}
.user-admin-section h3{margin:0 0 12px}
.user-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.user-edit-grid .wide-field{grid-column:1/-1}
.security-action-row{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(2,minmax(140px,1fr)) auto;gap:10px;align-items:end;padding:10px 0}
.security-action-row>div strong,.security-action-row>div small{display:block}
.security-action-row>div small{color:var(--muted);margin-top:3px}
.csv-example{margin-top:15px;padding:14px;background:#f7f5f2;border-radius:9px;overflow:auto}
.import-confirm{margin-top:18px;grid-template-columns:1fr 1fr auto}
.extend-box{margin-top:8px}
.extend-box summary{cursor:pointer;list-style:none}
.extend-box summary::-webkit-details-marker{display:none}
.extend-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:8px;padding:10px;background:#f7f5f2;border-radius:9px}
.admin-loan-actions{display:flex;gap:7px;align-items:flex-start;flex-wrap:wrap}
.settings-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}
.settings-summary div{padding:10px;background:#f7f5f2;border-radius:8px}
.settings-summary span,.settings-summary strong{display:block}.settings-summary span{font-size:12px;color:var(--muted)}
@media(max-width:900px){.user-create-v10,.import-confirm{grid-template-columns:1fr 1fr}.security-action-row{grid-template-columns:1fr 1fr}.security-action-row>div{grid-column:1/-1}}
@media(max-width:650px){.user-create-v10,.user-edit-grid,.import-confirm,.security-action-row,.settings-summary{grid-template-columns:1fr}.user-edit-grid .wide-field,.security-action-row>div{grid-column:auto}.user-manage-v10[open]{min-width:0;width:100%}}


/* ==========================================================
   Noodkooi V1.0 RC4 - UI Refinement
   Doel: compacter, rustiger en consistenter desktop/tablet UI
   ========================================================== */

:root{
  --nk-sidebar:#383a3a;
  --nk-sidebar-2:#323434;
  --nk-sidebar-text:#ffffff;
  --nk-orange:#d06a1d;
  --nk-orange-soft:#f8e8dc;
  --nk-bg:#f5f5f3;
  --nk-card:#ffffff;
  --nk-border:#e3e3df;
  --nk-text:#343434;
  --nk-muted:#747474;
  --nk-green:#16864b;
  --nk-green-soft:#e6f5ed;
  --nk-shadow:0 8px 24px rgba(0,0,0,.045);
}

body{
  background:var(--nk-bg);
  color:var(--nk-text);
}

.sidebar{
  background:linear-gradient(180deg,var(--nk-sidebar) 0%,var(--nk-sidebar-2) 100%);
  width:250px;
}

.sidebar .brand{
  padding:20px 18px 18px;
}

.sidebar .brand img{
  max-width:104px;
  border-radius:10px;
}

.sidebar nav a{
  border-radius:10px;
  min-height:46px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.sidebar nav a.active{
  background:#fff;
  color:#272727;
  border-left:3px solid var(--nk-orange);
  box-shadow:none;
}

.main,
.content,
.page-content{
  background:var(--nk-bg);
}

.topbar,
.page-header{
  background:#fff;
  border-bottom:1px solid var(--nk-border);
}

.card{
  background:var(--nk-card);
  border:1px solid var(--nk-border);
  border-radius:14px;
  box-shadow:var(--nk-shadow);
}

.card h1,.card h2,.card h3{
  color:#333;
}

.warehouse-grid,
.magazine-grid{
  gap:12px;
}

.warehouse-card,
.magazine-card{
  min-height:118px;
  border:1px solid var(--nk-border);
  border-radius:12px;
  box-shadow:none;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.warehouse-card:hover,
.magazine-card:hover{
  border-color:#d7b79f;
  transform:translateY(-1px);
  box-shadow:0 5px 15px rgba(0,0,0,.04);
}

/* Tabellen algemeen */
.table-wrap{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

thead th{
  color:#5d5d5d;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:700;
  border-bottom:1px solid var(--nk-border);
  padding:13px 12px;
}

tbody td{
  padding:13px 12px;
  border-bottom:1px solid #ecece8;
  vertical-align:middle;
}

tbody tr:last-child td{
  border-bottom:none;
}

/* Reservaties */
.reservations-table{
  table-layout:fixed;
}

.reservations-table th:nth-child(1),
.reservations-table td:nth-child(1){
  width:11%;
}

.reservations-table th:nth-child(2),
.reservations-table td:nth-child(2){
  width:30%;
}

.reservations-table th:nth-child(3),
.reservations-table td:nth-child(3){
  width:16%;
}

.reservations-table th:nth-child(4),
.reservations-table td:nth-child(4){
  width:22%;
  white-space:nowrap;
}

.reservations-table th:nth-child(5),
.reservations-table td:nth-child(5){
  width:11%;
  white-space:nowrap;
}

.reservations-table th:nth-child(6),
.reservations-table td:nth-child(6){
  width:20%;
  white-space:nowrap;
}

.reservation-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  min-height:38px;
}

.reservation-actions form,
.reservation-actions details{
  margin:0 !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
}

.reservation-actions summary{
  list-style:none;
}

.reservation-actions summary::-webkit-details-marker{
  display:none;
}

.reservation-actions .btn,
.reservation-actions button,
.reservation-actions summary{
  height:36px !important;
  min-height:36px !important;
  min-width:92px !important;
  margin:0 !important;
  padding:0 14px !important;
  border-radius:8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
  font-size:13px !important;
  font-weight:700 !important;
}

.reservation-actions .return-btn{
  background:#243d73 !important;
  color:#fff !important;
  border-color:#243d73 !important;
}

.badge.available,
.badge.returned{
  background:var(--nk-green-soft);
  color:var(--nk-green);
}

.badge.reserved,
.badge.active{
  background:var(--nk-orange-soft);
  color:#b85d17;
}

/* Compactere kaarten bovenaan reservaties */
.reservations-page .card{
  margin-bottom:18px;
}

.reservations-page .card-head{
  padding-bottom:6px;
}

/* Responsief */
@media(max-width:1100px){
  .sidebar{width:220px;}
  .reservations-table{
    table-layout:auto;
    min-width:980px;
  }
}

@media(max-width:760px){
  .reservation-actions{
    flex-direction:column;
    align-items:stretch !important;
  }
  .reservation-actions .btn,
  .reservation-actions button,
  .reservation-actions summary{
    width:100%;
  }
}


/* ==========================================================
   Noodkooi V1.0 RC5 - Branding Polish
   Alleen sidebar-branding/headerblok verfijnd
   ========================================================== */

.sidebar .brand{
  padding:18px 16px 16px !important;
  display:grid !important;
  grid-template-columns:112px minmax(0,1fr) !important;
  column-gap:14px !important;
  align-items:center !important;
  min-height:92px !important;
  box-sizing:border-box !important;
}

.sidebar .brand .brand-logo,
.sidebar .brand img{
  width:112px !important;
  max-width:112px !important;
  height:58px !important;
  max-height:58px !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 !important;
  padding:8px 10px !important;
  box-sizing:border-box !important;
  background:#fff !important;
  border-radius:10px !important;
}

.sidebar .brand .brand-copy,
.sidebar .brand > div:not(.brand-logo){
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:3px !important;
}

.sidebar .brand .brand-title,
.sidebar .brand strong,
.sidebar .brand h1,
.sidebar .brand h2{
  margin:0 !important;
  color:#fff !important;
  font-size:19px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  letter-spacing:-0.01em !important;
}

.sidebar .brand .brand-subtitle,
.sidebar .brand p,
.sidebar .brand small{
  margin:0 !important;
  color:#f2f2f2 !important;
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:400 !important;
}

.sidebar .brand + hr,
.sidebar .brand-divider{
  margin:0 16px 16px !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.14) !important;
}

/* Smalle schermen: branding compact maar leesbaar houden */
@media(max-width:1100px){
  .sidebar .brand{
    grid-template-columns:96px minmax(0,1fr) !important;
    column-gap:12px !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
  .sidebar .brand .brand-logo,
  .sidebar .brand img{
    width:96px !important;
    max-width:96px !important;
    height:54px !important;
    max-height:54px !important;
  }
  .sidebar .brand .brand-title,
  .sidebar .brand strong,
  .sidebar .brand h1,
  .sidebar .brand h2{
    font-size:17px !important;
  }
}


/* ==========================================================
   Noodkooi V1.0 RC6 - Branding Width Fix
   Houdt logo + tekst volledig binnen de sidebar
   ========================================================== */

.sidebar .brand{
  display:grid !important;
  grid-template-columns:96px minmax(0,1fr) !important;
  column-gap:12px !important;
  align-items:center !important;
  padding:16px 14px 14px !important;
  min-height:86px !important;
  overflow:hidden !important;
}

.sidebar .brand .brand-logo,
.sidebar .brand img{
  width:96px !important;
  max-width:96px !important;
  height:54px !important;
  max-height:54px !important;
  object-fit:contain !important;
  padding:7px 9px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  background:#fff !important;
  border-radius:10px !important;
}

.sidebar .brand .brand-copy,
.sidebar .brand > div:not(.brand-logo){
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
}

.sidebar .brand .brand-title,
.sidebar .brand strong,
.sidebar .brand h1,
.sidebar .brand h2{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  margin:0 0 4px !important;
  font-size:17px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  color:#fff !important;
}

.sidebar .brand .brand-subtitle,
.sidebar .brand p,
.sidebar .brand small{
  display:block !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  margin:0 !important;
  font-size:12.5px !important;
  line-height:1.22 !important;
  color:#f2f2f2 !important;
}

/* Zorg ervoor dat de sidebar zelf niet smaller wordt dan het brandingblok aankan */
.sidebar{
  min-width:250px !important;
  width:250px !important;
}

@media(max-width:1100px){
  .sidebar{
    min-width:220px !important;
    width:220px !important;
  }
  .sidebar .brand{
    grid-template-columns:82px minmax(0,1fr) !important;
    column-gap:10px !important;
    padding:14px 12px !important;
  }
  .sidebar .brand .brand-logo,
  .sidebar .brand img{
    width:82px !important;
    max-width:82px !important;
    height:50px !important;
    max-height:50px !important;
    padding:6px 8px !important;
  }
  .sidebar .brand .brand-title,
  .sidebar .brand strong,
  .sidebar .brand h1,
  .sidebar .brand h2{
    font-size:15.5px !important;
  }
  .sidebar .brand .brand-subtitle,
  .sidebar .brand p,
  .sidebar .brand small{
    font-size:11.5px !important;
  }
}


/* ==========================================================
   Noodkooi V1.0 RC7 - Stacked Branding
   Logo bovenaan, tekst eronder: geen afsnijding meer
   ========================================================== */

.sidebar .brand{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  padding:16px 14px 14px !important;
  min-height:142px !important;
  overflow:visible !important;
  text-align:center !important;
  box-sizing:border-box !important;
}

.sidebar .brand .brand-logo,
.sidebar .brand img{
  width:118px !important;
  max-width:118px !important;
  height:58px !important;
  max-height:58px !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
  padding:7px 10px !important;
  background:#fff !important;
  border-radius:10px !important;
  box-sizing:border-box !important;
}

.sidebar .brand .brand-copy,
.sidebar .brand > div:not(.brand-logo){
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  overflow:visible !important;
  text-align:center !important;
}

.sidebar .brand .brand-title,
.sidebar .brand strong,
.sidebar .brand h1,
.sidebar .brand h2{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:19px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  letter-spacing:-0.01em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-align:center !important;
}

.sidebar .brand .brand-subtitle,
.sidebar .brand p,
.sidebar .brand small{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:#f0f0f0 !important;
  font-size:12.5px !important;
  line-height:1.2 !important;
  font-weight:400 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-align:center !important;
}

.sidebar .brand + hr,
.sidebar .brand-divider{
  margin:0 16px 16px !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.14) !important;
}

/* Sidebarbreedte stabiel houden */
.sidebar{
  width:250px !important;
  min-width:250px !important;
}

@media(max-width:1100px){
  .sidebar{
    width:220px !important;
    min-width:220px !important;
  }
  .sidebar .brand{
    min-height:132px !important;
    padding:14px 12px 12px !important;
    gap:7px !important;
  }
  .sidebar .brand .brand-logo,
  .sidebar .brand img{
    width:104px !important;
    max-width:104px !important;
    height:54px !important;
    max-height:54px !important;
  }
  .sidebar .brand .brand-title,
  .sidebar .brand strong,
  .sidebar .brand h1,
  .sidebar .brand h2{
    font-size:17px !important;
  }
  .sidebar .brand .brand-subtitle,
  .sidebar .brand p,
  .sidebar .brand small{
    font-size:11.5px !important;
  }
}


/* ==========================================================
   Noodkooi V1.1 RC1 - Noodkooi + WiFi Build
   ========================================================== */
.application-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:760px;
}
.application-tile{
  min-height:140px;
}
.application-tile.wifi-build-choice{
  border-left:4px solid #2d5f99;
}
.category-pill{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#f8e8dc;
  color:#ad591d;
  white-space:nowrap;
}
.category-pill.wifi{
  background:#e7eff8;
  color:#2d5f99;
}
.wifi-lock-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:14px 0 18px;
  padding:16px 18px;
  border:1px solid #cfdbea;
  border-left:5px solid #2d5f99;
  border-radius:12px;
  background:#f5f8fc;
}
.wifi-lock-card small,
.wifi-lock-card strong{
  display:block;
}
.wifi-lock-card small{color:var(--muted);}
.wifi-lock-code{
  font-size:28px;
  font-weight:800;
  letter-spacing:.12em;
  padding:8px 14px;
  border-radius:9px;
  background:#fff;
  border:1px solid #cfdbea;
}
.warehouse-admin-card{
  display:flex;
  align-items:flex-end;
  gap:12px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}
.warehouse-admin-card:last-child{border-bottom:0;}
.warehouse-admin-grid{
  flex:1;
  display:grid;
  grid-template-columns:1.2fr 1fr .8fr auto;
  gap:12px;
  align-items:end;
}
.toggle-field span{display:block;}
.toggle-field span:first-child{font-weight:600;margin-bottom:7px;}
.itemtype-add{grid-template-columns:2fr 1fr auto;}
.itemtype-row select{min-width:135px;}

@media(max-width:900px){
  .warehouse-admin-grid{grid-template-columns:1fr 1fr;}
  .warehouse-admin-grid button{align-self:end;}
}
@media(max-width:650px){
  .application-grid{grid-template-columns:1fr;}
  .wifi-lock-card{align-items:flex-start;flex-direction:column;}
  .warehouse-admin-card{align-items:stretch;flex-direction:column;}
  .warehouse-admin-grid,.itemtype-add{grid-template-columns:1fr;}
}

/* V1.1 RC2 */
.reservations-history .table-wrap{overflow-x:auto}.reservations-table{min-width:1080px;table-layout:auto}.reservations-table th:nth-child(5),.reservations-table td:nth-child(5){min-width:205px;width:205px}.reservations-table th:nth-child(6),.reservations-table td:nth-child(6){min-width:110px;width:110px}.reservations-table th:nth-child(7),.reservations-table td:nth-child(7){min-width:190px}.period-cell,.status-cell{white-space:nowrap}.period-nowrap{display:inline-block;white-space:nowrap}.reservation-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.inventory-add-v2{grid-template-columns:1.1fr 1.5fr 1fr 1.1fr auto;align-items:end}.category-edit-form{margin:0}.category-edit-form select{min-width:125px}.inventory-table-v2 td:nth-child(2){min-width:145px}.form-help{margin-top:10px;color:var(--muted)}@media(max-width:1000px){.inventory-add-v2{grid-template-columns:1fr 1fr}}@media(max-width:650px){.inventory-add-v2{grid-template-columns:1fr}}
