*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f6fb;color:#172033}.hidden{display:none!important}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f5b8f,#1d8b65)}.login-card{width:420px;background:#fff;border-radius:22px;padding:30px;box-shadow:0 20px 50px rgba(0,0,0,.22)}.brand,.side-brand{display:flex;gap:14px;align-items:center}.brand h1{margin:0}.brand p{margin:5px 0 26px;color:#607086}.logo{width:62px;height:62px;border-radius:18px;background:#0f6b9f;color:white;display:grid;place-items:center;font-weight:800}.logo.small{width:44px;height:44px;border-radius:12px;font-size:13px}label{display:block;margin:14px 0 7px;font-weight:700}input{width:100%;padding:13px;border:1px solid #d7deeb;border-radius:12px;font-size:15px}button{border:0;border-radius:12px;padding:12px 16px;background:#0f6b9f;color:#fff;font-weight:700;cursor:pointer}form button{width:100%;margin-top:20px}.message{min-height:20px;color:#c0392b}.app{display:flex;min-height:100vh}.sidebar{width:270px;background:#102033;color:white;padding:24px;display:flex;flex-direction:column}.side-brand span{display:block;color:#a9b8ce;font-size:13px;margin-top:3px}nav{margin-top:36px;display:grid;gap:10px}.nav{background:transparent;text-align:left;color:#dce8f5}.nav.active,.nav:hover{background:#1d8b65}.logout{margin-top:auto;background:#dc3545}.main{flex:1;padding:28px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.topbar h2{margin:0}.topbar p{margin:6px 0;color:#697b91}.cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:18px}.card{background:white;border-radius:18px;padding:22px;box-shadow:0 6px 20px rgba(19,38,64,.08)}.card span{display:block;color:#6b7c91;margin-bottom:12px}.card strong{font-size:32px}.panel{background:white;border-radius:18px;padding:16px;box-shadow:0 6px 20px rgba(19,38,64,.08);overflow:auto}table{width:100%;border-collapse:collapse;min-width:850px}th,td{padding:13px;border-bottom:1px solid #edf1f7;text-align:left;font-size:14px}th{background:#f8fafc;color:#46566c}.badge{display:inline-block;padding:6px 10px;border-radius:20px;background:#e8f4ff;color:#0f6b9f;font-weight:700}.select-status{padding:8px;border:1px solid #d7deeb;border-radius:9px}.btn-small{padding:8px 10px;border-radius:9px;font-size:13px}.toast{position:fixed;right:24px;bottom:24px;background:#102033;color:#fff;padding:14px 18px;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.2)}@media(max-width:900px){.app{display:block}.sidebar{width:100%;min-height:auto}.cards{grid-template-columns:1fr}.main{padding:18px}}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  width: min(760px, 96vw);
  max-height: 86vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.35);
}

.modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.modal-close {
  border: 0;
  background: #eff6ff;
  color: #075985;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 26px;
  cursor: pointer;
  font-weight: 700;
}

.modal-content {
  padding: 20px 26px 26px;
  overflow-y: auto;
  max-height: 68vh;
}

.detail-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
}

.detail-label {
  color: #475569;
  font-weight: 700;
}

.detail-value {
  color: #0f172a;
  line-height: 1.5;
  word-break: break-word;
}

.detail-value a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.btn-detail {
  background: #16a34a !important;
}

@media (max-width: 768px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo.small {
    width: 42px;
    height: 42px;
}

.logo.small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
