:root{--lk-brand:#5e6d09;--lk-brand2:#82950c;--lk-light:#eef2c6;--lk-line:#dde3c4;--lk-text:#172033;--lk-muted:#6b7280;--lk-danger:#b91c1c;--lk-ok:#166534;--lk-bg:#f7f8f3;--lk-white:#fff}
.lk-shell{font-family:Arial,sans-serif;color:var(--lk-text);max-width:1200px;margin:0 auto;padding:18px}.lk-shell *{box-sizing:border-box}.lk-loading{padding:30px;text-align:center;color:var(--lk-muted)}.lk-logo{display:block;max-width:230px;height:auto;margin:0 auto 12px}.lk-head{text-align:center;margin-bottom:20px}.lk-head h1{margin:0;font-size:clamp(28px,5vw,44px)}.lk-head p{color:var(--lk-muted);margin:8px 0 0}.lk-panel{background:#fff;border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 14px 34px rgba(0,0,0,.07);padding:20px;margin-bottom:18px}.lk-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lk-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.lk-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.lk-metric{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:18px;box-shadow:0 8px 20px rgba(0,0,0,.05)}.lk-metric span{display:block;color:var(--lk-muted);font-size:13px}.lk-metric b{display:block;font-size:32px;color:var(--lk-brand);margin-top:5px}.lk-field{margin-bottom:15px}.lk-field label{display:block;font-weight:700;font-size:14px;margin-bottom:7px}.lk-field input,.lk-field select,.lk-field textarea{width:100%;padding:14px;border:1px solid #cbd5e1;border-radius:15px;background:#fff;font-size:16px}.lk-field textarea{min-height:95px;resize:vertical}.lk-btn{appearance:none;border:0;border-radius:15px;background:linear-gradient(135deg,var(--lk-brand),var(--lk-brand2));color:#fff;font-weight:800;padding:13px 17px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.lk-btn:hover{filter:brightness(1.04)}.lk-btn.alt{background:linear-gradient(135deg,#a8b63a,#c2cf5a);color:#111827}.lk-btn.ghost{background:#fff;color:var(--lk-text);border:1px solid #d1d5db}.lk-btn.danger{background:linear-gradient(135deg,#991b1b,#dc2626)}.lk-btn.small{padding:8px 11px;font-size:13px}.lk-btn:disabled{opacity:.6;cursor:not-allowed}.lk-actions{display:flex;gap:10px;flex-wrap:wrap}.lk-status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.lk-status-card{border:1px solid var(--lk-line);border-radius:18px;padding:14px;background:#fbfdf5}.lk-status-card.borrowed{background:#fff1f2;border-color:#fecdd3}.lk-status-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.lk-badge{border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;background:#dcfce7;color:#166534}.lk-badge.borrowed{background:#fee2e2;color:#991b1b}.lk-muted{color:var(--lk-muted);font-size:13px;line-height:1.45}.lk-table-wrap{overflow:auto}.lk-table{width:100%;border-collapse:collapse;font-size:14px}.lk-table th,.lk-table td{padding:11px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.lk-table th{font-size:12px;text-transform:uppercase;color:#64748b;letter-spacing:.03em}.lk-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.lk-toolbar input,.lk-toolbar select{padding:11px;border:1px solid #d1d5db;border-radius:13px;min-width:190px}.lk-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 18px}.lk-tab{appearance:none;border:1px solid #d9dde7;background:#fff;border-radius:13px;padding:11px 14px;font-weight:800;cursor:pointer}.lk-tab.active{background:var(--lk-brand);color:#fff;border-color:var(--lk-brand)}.lk-topbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:16px}.lk-topbar h1{margin:0}.lk-login{max-width:430px;margin:50px auto}.lk-alert{padding:12px 14px;border-radius:14px;margin-bottom:14px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.lk-success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}.lk-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;padding:18px;z-index:99999}.lk-modal.show{display:flex}.lk-dialog{width:100%;max-width:560px;background:#fff;border-radius:22px;box-shadow:0 20px 60px rgba(0,0,0,.25);max-height:90vh;overflow:auto}.lk-dialog-head,.lk-dialog-foot{padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.lk-dialog-head{border-bottom:1px solid #e5e7eb}.lk-dialog-foot{border-top:1px solid #e5e7eb;justify-content:flex-end}.lk-dialog-body{padding:18px}.lk-barrow{display:grid;grid-template-columns:170px 1fr 50px;gap:10px;align-items:center;margin:10px 0}.lk-bar{height:12px;background:#eef0e4;border-radius:999px;overflow:hidden}.lk-bar i{display:block;height:100%;background:var(--lk-brand)}.lk-empty{padding:24px;text-align:center;color:var(--lk-muted)}
@media(max-width:900px){.lk-cards{grid-template-columns:repeat(2,1fr)}.lk-status-grid{grid-template-columns:repeat(2,1fr)}.lk-grid2,.lk-grid3{grid-template-columns:1fr}}
@media(max-width:560px){.lk-shell{padding:10px}.lk-cards,.lk-status-grid{grid-template-columns:1fr}.lk-topbar{align-items:flex-start;flex-direction:column}.lk-tabs{display:grid;grid-template-columns:1fr 1fr}.lk-tab{width:100%}.lk-barrow{grid-template-columns:110px 1fr 38px}}

/* Kompakt kortstatus og statistik */
.lk-status-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.lk-status-card{border-radius:14px;padding:10px 11px;min-height:78px;box-shadow:0 4px 12px rgba(15,23,42,.04)}
.lk-status-top b{font-size:14px;line-height:1.2}
.lk-status-card .lk-muted{font-size:11.5px;line-height:1.35;margin-top:5px}
.lk-status-card .lk-badge{font-size:10px;padding:4px 7px}
.lk-compact-search{padding:10px 12px;border:1px solid #d1d5db;border-radius:13px;min-width:230px}
@media(max-width:900px){.lk-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.lk-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lk-status-card{min-height:74px}}
@media(max-width:420px){.lk-status-grid{grid-template-columns:1fr 1fr}.lk-status-card{padding:9px}.lk-status-top{align-items:flex-start}.lk-status-top b{font-size:13px}}

/* Fluent / Microsoft 365-inspireret kortstatus */
.lk-status-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.lk-status-card{
  position:relative;
  min-height:92px;
  padding:14px 14px 13px 17px;
  border:1px solid #e1e5ea;
  border-radius:8px;
  background:#ffffff;
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 8px rgba(0,0,0,.04);
  overflow:hidden;
  transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease;
}
.lk-status-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#107c10;
}
.lk-status-card.borrowed{
  background:#fff;
  border-color:#e1e5ea;
}
.lk-status-card.borrowed::before{
  background:#d13438;
}
.lk-status-card:hover{
  border-color:#c8cdd3;
  box-shadow:0 2px 4px rgba(0,0,0,.06),0 6px 16px rgba(0,0,0,.07);
  transform:translateY(-1px);
}
.lk-status-top{
  align-items:flex-start;
  gap:8px;
}
.lk-status-top b{
  color:#242424;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:0;
}
.lk-status-card .lk-muted{
  color:#616161;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:12px;
  line-height:1.4;
  margin-top:8px;
}
.lk-status-card .lk-badge{
  flex:0 0 auto;
  border-radius:4px;
  padding:3px 7px;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:10.5px;
  line-height:1.25;
  font-weight:600;
  background:#e7f4e4;
  color:#0b6a0b;
  border:1px solid #c8e6c5;
}
.lk-status-card .lk-badge.borrowed{
  background:#fde7e9;
  color:#a4262c;
  border-color:#f5c2c7;
}
@media(max-width:980px){
  .lk-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .lk-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .lk-status-card{min-height:86px;padding:12px 12px 11px 15px}
}
@media(max-width:420px){
  .lk-status-grid{grid-template-columns:1fr}
  .lk-status-card{min-height:auto}
}

/* v1.3.7 - kompakt liste inspireret af kalender/Office-kort */
.lk-status-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:5px;
  background:#f3f4f6;
  padding:6px;
  border-radius:10px;
}
.lk-status-card,
.lk-status-card.borrowed{
  position:relative;
  min-height:68px;
  padding:9px 76px 9px 17px;
  border:1px solid #e5e7eb;
  border-radius:7px;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.05);
  overflow:hidden;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.lk-status-card::before{
  content:"";
  position:absolute;
  left:0;
  top:7px;
  bottom:7px;
  width:4px;
  border-radius:0 4px 4px 0;
  background:#79a600;
}
.lk-status-card.borrowed::before{
  background:#f59e0b;
}
.lk-status-card:hover{
  transform:none;
  background:#fafafa;
  border-color:#d5d9df;
  box-shadow:0 2px 7px rgba(15,23,42,.08);
}
.lk-status-top{
  display:block;
  min-width:0;
}
.lk-status-top b{
  display:block;
  color:#e87900;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.25;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.lk-status-card:not(.borrowed) .lk-status-top b{
  color:#4f6500;
}
.lk-status-card .lk-muted{
  display:block;
  color:#6b7280;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:11px;
  line-height:1.35;
  margin-top:4px;
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.lk-status-card .lk-badge{
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  min-width:54px;
  height:34px;
  padding:0 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:17px;
  font-family:"Segoe UI",Arial,sans-serif;
  font-size:10px;
  line-height:1;
  font-weight:700;
  background:#eef6df;
  color:#4f6500;
  border:2px solid #79a600;
  box-shadow:0 0 0 2px #fff,0 1px 3px rgba(15,23,42,.15);
}
.lk-status-card .lk-badge.borrowed{
  background:#fff7ed;
  color:#9a4a00;
  border-color:#f59e0b;
}
@media(min-width:900px){
  .lk-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
}
@media(max-width:520px){
  .lk-status-card,.lk-status-card.borrowed{padding-right:70px;min-height:66px}
  .lk-status-card .lk-badge{right:9px;min-width:50px;height:31px}
}
