*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#243447;background:#f5f7fa}.portal-header{background:#0b3d6d;padding:12px 5%;display:flex;align-items:center;justify-content:space-between}.portal-header img{height:48px;max-width:210px;object-fit:contain}.admin-link{color:#fff;text-decoration:none;margin-left:12px;font-weight:700}.portal-wrap{max-width:1050px;margin:35px auto;padding:0 20px}.portal-wrap.wide{max-width:1400px}h1{color:#0b3d6d;margin-bottom:5px}.lead{color:#667085}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.choice{display:block;border:2px solid #d6dde5;border-radius:12px;padding:22px;background:#fff;cursor:pointer}.choice:has(input:checked){border-color:#ff9800;box-shadow:0 0 0 3px #fff0d9}.choice input{margin-right:10px}.choice span{display:inline-flex;flex-direction:column;vertical-align:middle}.choice small{color:#667085;margin-top:5px}.hidden{display:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#fff;padding:22px;border-radius:12px}.wide{grid-column:1/-1}.portal-form label{font-weight:700;display:block}.portal-form input,.portal-form textarea,.portal-form select{display:block;width:100%;padding:11px;margin-top:7px;border:1px solid #cfd6df;border-radius:7px;background:#fff;font:inherit}.actions{padding:22px 0}.btn{display:inline-block;border:0;background:#0b3d6d;color:#fff;padding:11px 18px;border-radius:7px;text-decoration:none;font-weight:700;cursor:pointer}.btn:hover{background:#ff9800}.btn.secondary{background:#667085}.alert{padding:14px 16px;border-radius:8px;margin:15px 0}.alert.error{background:#ffe8e8;color:#9b1c1c}.alert.success{background:#e8f7ed;color:#176b35}.search input{width:100%;padding:12px;border:1px solid #ccc;border-radius:7px;margin:10px 0}.tree{background:#fff;border:1px solid #ddd;border-radius:10px;padding:15px;max-height:500px;overflow:auto}.tree details{margin:4px 0}.tree summary{cursor:pointer;padding:6px;font-weight:700}.subtree{margin-left:15px}.check{display:block;padding:6px 8px;font-weight:400!important}.check:hover{background:#f2f5f8}.hint{color:#667085;font-size:13px}.login-card{max-width:520px;margin:50px auto;background:#fff;padding:30px;border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,.08)}hr{border:0;border-top:1px solid #ddd;margin:25px 0}.table-wrap{overflow:auto;background:#fff;border-radius:10px}.table-wrap table{width:100%;border-collapse:collapse;min-width:1100px}.table-wrap th,.table-wrap td{border-bottom:1px solid #e5e7eb;padding:12px;text-align:left;vertical-align:top}.table-wrap th{background:#0b3d6d;color:#fff}.badge{display:inline-block;padding:4px 9px;border-radius:99px;font-weight:700;font-size:12px;background:#eef2f6}.badge.approved{background:#dff5e6;color:#176b35}.badge.rejected{background:#ffe4e4;color:#9b1c1c}.badge.pending{background:#fff1d6;color:#8a5700}.review{min-width:320px;padding:12px;background:#f8fafc}.review label{font-weight:700;display:block;margin:8px 0}.review select,.review textarea{width:100%;padding:8px;margin-top:5px;border:1px solid #ccc;border-radius:5px}@media(max-width:760px){.choice-grid,.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.portal-wrap{margin-top:20px}.portal-header{padding:10px 4%}}

.smtp-test{background:#fff7e8;border:1px solid #f1d28b;padding:15px 18px;border-radius:10px;margin:20px 0}.smtp-test .portal-form{max-width:600px}.smtp-test h3{margin-top:0}

/* Vendor category hierarchy - clear visual levels */
.tree{
  background:#ffffff;
  border:1px solid #d7dee7;
  border-radius:12px;
  padding:16px;
  max-height:560px;
  overflow:auto;
}
.tree > details{
  border:1px solid #b8c7d9;
  border-radius:10px;
  margin:9px 0;
  background:#eef6ff;
  overflow:hidden;
}
.tree > details > summary{
  color:#0b3d6d;
  background:#dcecff;
  padding:12px 14px;
  font-size:16px;
  font-weight:800;
}
.tree .subtree{
  margin:8px 10px 10px 20px;
  border-left:4px solid #f0a000;
  border-radius:7px;
  background:#fff8e8;
  overflow:hidden;
}
.tree .subtree > summary{
  color:#8a5700;
  background:#fff0c9;
  padding:10px 12px;
  font-size:14px;
  font-weight:800;
}
.tree .subtree details{
  margin:6px 10px 8px 22px;
  border:1px solid #c9dfcf;
  border-radius:7px;
  background:#f1fbf4;
}
.tree .subtree details > summary{
  color:#176b35;
  background:#e1f4e7;
  padding:9px 11px;
  font-size:13px;
  font-weight:800;
}
.tree .check{
  margin:3px 8px 5px 28px;
  padding:9px 10px;
  border-radius:6px;
  background:#fafafa;
  border:1px solid #edf0f3;
  color:#344054;
}
.tree .check:hover{
  background:#eef2f6;
}
.tree .check input{
  accent-color:#0b3d6d;
  transform:scale(1.15);
  margin-right:7px;
}
.tree .check b{
  color:#0b3d6d;
  margin-right:5px;
}
.category-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 14px;
}
.category-legend span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}
.category-legend .lg-category{background:#dcecff;color:#0b3d6d}
.category-legend .lg-sub{background:#fff0c9;color:#8a5700}
.category-legend .lg-subsub{background:#e1f4e7;color:#176b35}

.other-option{margin-top:10px;background:#f8fafc;border:1px solid #d7dee7;border-radius:9px;padding:10px}
.other-check{margin:0!important}.others-box{margin:10px 8px 4px 28px;padding:12px;background:#fff;border-left:4px solid #667085;border-radius:6px}
.others-box textarea{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #cfd6df;border-radius:7px;resize:vertical;font:inherit}
#wordCount{font-size:12px;font-weight:600;color:#667085}

/* Feature updates */
.password-wrap{position:relative;display:flex;align-items:center}.password-wrap input{width:100%;padding-right:48px}.eye-btn{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:38px;height:34px;border:0;background:transparent;color:#0b3d6d;cursor:pointer;font-size:18px;padding:0}.selected-summary,.filter-panel{border:1px solid #d7e0e8;background:#f7fafc;border-radius:8px;padding:16px;margin:18px 0}.selected-summary p{margin:6px 0 0;overflow-wrap:anywhere}.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.filter-grid label{display:flex;flex-direction:column;gap:6px}.filter-grid select{padding:10px;border:1px solid #cbd5df;border-radius:5px;background:#fff}.filter-actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.btn.danger{background:#b42318;color:#fff}.visitor-count{position:fixed;left:12px;bottom:12px;z-index:9999;background:#0b3d6d;color:#fff;border-radius:7px;padding:8px 12px;font-size:13px;box-shadow:0 2px 8px #0003}.visitor-count strong{font-variant-numeric:tabular-nums}
