@charset "UTF-8";
:root{
  --ihb-navy:#002040;
  --ihb-red:#C02020;
  --ihb-blue:#2080C0;
  --ihb-orange:#E06020;

  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#202020;
  --muted:#6b7280;
  --border:#e5e7eb;

  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Top Header ===== */
.ihb-topbar{
  height:64px;
  background: linear-gradient(90deg, var(--ihb-navy), #00152b);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.ihb-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.ihb-brand img{
  height:40px;
  width:auto;
  background:#fff;
  padding:6px 10px;
  border-radius:10px;
}
.ihb-brand .title{
  line-height:1.1;
}
.ihb-brand .title b{
  display:block;
  font-size:16px;
  letter-spacing:.2px;
}
.ihb-brand .title span{
  font-size:12px;
  opacity:.85;
}

/* ===== Layout ===== */
.ihb-shell{
  display:flex;
  min-height: calc(100vh - 64px);
}

/* ===== Sidebar ===== */
.ihb-sidebar{
  width:260px;
  background:#fff;
  border-right:1px solid var(--border);
  padding:14px;
}
.ihb-userbox{
  background: linear-gradient(135deg, rgba(0,32,64,.08), rgba(32,128,192,.08));
  border:1px solid rgba(0,32,64,.08);
  border-radius: var(--radius);
  padding:12px;
  margin-bottom:12px;
}
.ihb-userbox .name{font-weight:700}
.ihb-userbox .meta{font-size:12px;color:var(--muted);margin-top:3px}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.nav a, .nav .group-title{
  text-decoration:none;
  color:var(--text);
  padding:10px 10px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid transparent;
}
.nav a:hover{
  background: rgba(32,128,192,.08);
  border-color: rgba(32,128,192,.18);
}
.nav a.active{
  background: rgba(192,32,32,.08);
  border-color: rgba(192,32,32,.20);
}
.group-title{
  margin-top:10px;
  font-size:12px;
  font-weight:800;
  color: var(--ihb-navy);
  text-transform:uppercase;
  letter-spacing:.7px;
  padding-left:6px;
}

/* ===== Main ===== */
.ihb-main{
  flex:1;
  padding:18px;
}
.page-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.page-title h1{
  margin:0;
  font-size:18px;
  color: var(--ihb-navy);
}
.page-title p{
  margin:6px 0 0 0;
  font-size:12px;
  color: var(--muted);
}

/* ===== Cards / grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}
.col-18{grid-column: span 18;}
.col-12{grid-column: span 12;}
.col-8{grid-column: span 8;}
.col-6{grid-column: span 6;}
.col-4{grid-column: span 4;}
.col-3{grid-column: span 3;}

.kpi{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.kpi .label{font-size:12px;color:var(--muted)}
.kpi .value{font-size:26px;font-weight:900;color:var(--ihb-navy)}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
}
.badge.red{border-color: rgba(192,32,32,.25); background: rgba(192,32,32,.08); color: var(--ihb-red);}
.badge.blue{border-color: rgba(32,128,192,.25); background: rgba(32,128,192,.08); color: var(--ihb-blue);}
.badge.orange{border-color: rgba(224,96,32,.25); background: rgba(224,96,32,.10); color: var(--ihb-orange);}

/* ===== Tables ===== */
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  font-size:13px;
}
.table th{
  text-align:left;
  background: rgba(0,32,64,.05);
  color: var(--ihb-navy);
  font-weight:800;
}
.table tr:last-child td{border-bottom:none}

/* ===== Buttons ===== */
.btn{
  border:none;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
}
.btn-primary{
  background: linear-gradient(90deg, var(--ihb-red), #a81818);
  color:#fff;
}
.btn-outline{
  background:#fff;
  border:1px solid var(--border);
  color: var(--ihb-navy);
}
.btn-primary:hover{filter:brightness(.96)}
.btn-outline:hover{background: rgba(0,32,64,.04)}

/* Responsive */
@media (max-width: 1100px){
  .ihb-sidebar{width:220px}
  .col-3{grid-column: span 6;}
  .col-4{grid-column: span 12;}
  .col-8{grid-column: span 12;}
}
@media (max-width: 820px){
  .ihb-shell{flex-direction:column}
  .ihb-sidebar{width:100%; border-right:none; border-bottom:1px solid var(--border)}
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  width: 92%;
  max-width: 1200px;
  height: 90%;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 10px 14px;
  background: #1a3c6e;
  color: #fff;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  flex: 1;
  background: #f8fafc;
}

/*-------------New style---------------*/

/* ===== Forms ===== */
.field{
  margin-bottom:16px;
}
.field label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:800;
  color: var(--ihb-navy);
}
.field input,
.field select,
.field textarea{
  width:100%;
  height:44px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font-size:14px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(32,128,192,.55);
  box-shadow: 0 0 0 4px rgba(32,128,192,.10);
}
.field input[readonly]{
  background:#f8fafc;
  color:#6b7280;
}

.form-row{
  display:flex;
  gap:10px;
  align-items:flex-end;
}
.form-row .grow{
  flex:1;
}

.hint{
  margin-top:7px;
  font-size:12px;
  color:var(--muted);
}

.msg{
  padding:11px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  border:1px solid var(--border);
  margin-bottom:14px;
}
.msg.success{
  color: var(--ihb-blue);
  background: rgba(32,128,192,.08);
  border-color: rgba(32,128,192,.22);
}
.msg.error{
  color: var(--ihb-red);
  background: rgba(192,32,32,.08);
  border-color: rgba(192,32,32,.20);
}

.action-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}

.strength-pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid var(--border);
}
.strength-pill.weak{
  color: var(--ihb-red);
  background: rgba(192,32,32,.08);
  border-color: rgba(192,32,32,.20);
}
.strength-pill.medium{
  color: var(--ihb-orange);
  background: rgba(224,96,32,.10);
  border-color: rgba(224,96,32,.24);
}
.strength-pill.strong{
  color: #15803d;
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.22);
}



