/* ==========================================================
   InventyHub v6.6.9 — Blokir Peminjaman
   ========================================================== */

.borrowing-status-cell{
  min-width:155px;
  display:grid;
  gap:4px;
}

.borrowing-status-cell small{
  max-width:220px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  color:var(--ink-400);
  font-size:8px;
  line-height:1.4;
}

.borrow-status{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:7px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.borrow-status.allowed{
  color:#176642;
  border:1px solid #c7e3d4;
  background:#eef8f2;
}

.borrow-status.blocked{
  color:#9d1823;
  border:1px solid #efc7ca;
  background:#fff0f1;
}

.borrow-status.permanent{
  color:#675c5e;
  border:1px solid #ddd3d1;
  background:#f4f1f0;
}

.borrower-blocked-row{
  background:linear-gradient(90deg,rgba(185,33,44,.035),transparent 34%);
}

.user-row-actions{
  min-width:190px;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.unblock-borrow-btn{
  border-color:#c4dfd0!important;
  color:#176642!important;
  background:#f4fbf7!important;
}

.borrow-block-modal-user{
  padding:11px;
  display:grid;
  grid-template-columns:52px 1fr;
  gap:11px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface-soft);
}

.borrow-block-modal-user h3{
  margin:2px 0;
  font-size:15px;
}

.borrow-block-modal-user p{
  margin:0;
  color:var(--ink-500);
  font-size:9px;
}

.borrowing-current-reason,
.borrowing-block-reason{
  padding:13px 14px;
  display:grid;
  gap:4px;
  border:1px solid #efccce;
  border-radius:12px;
  background:#fff5f5;
}

.borrowing-current-reason span,
.borrowing-block-reason span{
  color:#9d5a60;
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.borrowing-current-reason b,
.borrowing-block-reason b{
  color:#721821;
  font-size:10px;
  line-height:1.55;
}

.borrowing-blocked-page{
  min-height:470px;
  padding:clamp(25px,5vw,52px);
  display:grid;
  grid-template-columns:70px minmax(0,720px);
  justify-content:center;
  align-content:center;
  gap:20px;
  border:1px solid #edcacc;
  border-radius:24px;
  background:
    radial-gradient(circle at 86% 12%,rgba(175,29,40,.09),transparent 17rem),
    linear-gradient(135deg,#fff,#fff7f7);
  box-shadow:var(--shadow-sm);
}

.borrowing-blocked-icon,
.borrowing-block-dashboard-icon{
  display:grid;
  place-content:center;
  border-radius:20px;
  color:#fff;
  background:#ae202b;
  font-weight:900;
}

.borrowing-blocked-icon{
  width:70px;
  height:70px;
  font-size:30px;
  box-shadow:0 12px 30px rgba(174,32,43,.18);
}

.borrowing-blocked-page h3{
  margin:5px 0 8px;
  font-size:clamp(25px,3vw,35px);
}

.borrowing-blocked-page>div>p{
  margin:0 0 15px;
  color:var(--ink-500);
  line-height:1.65;
}

.borrowing-block-dashboard{
  margin-bottom:16px;
  padding:17px 19px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  border:1px solid #edcacc;
  border-radius:17px;
  background:#fff5f5;
}

.borrowing-block-dashboard-icon{
  width:46px;
  height:46px;
  font-size:19px;
}

.borrowing-block-dashboard h4{
  margin:3px 0;
  font-size:15px;
}

.borrowing-block-dashboard p{
  margin:0;
  color:#76585b;
  font-size:9px;
  line-height:1.5;
}

@media(max-width:760px){
  .borrowing-blocked-page{
    grid-template-columns:1fr;
    justify-items:start;
  }

  .borrowing-block-dashboard{
    grid-template-columns:46px 1fr;
  }

  .borrowing-block-dashboard>.btn{
    grid-column:1/-1;
    width:100%;
  }

  .user-row-actions{
    min-width:0;
  }
}
