/* ISP360 RADIUS — v1.0 Market Launch Polish
   Presentation-only layer. RADIUS provisioning/accounting logic remains untouched. */

body{
  background:#f3f6fa;
  color:#183047;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:14px;
}

.main{
  margin-left:250px;
  padding:28px 30px 32px;
  max-width:1900px;
}

/* Page heading as a premium hero */
.main > h1{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  margin:0;
  padding:28px 28px 8px;
  min-height:88px;
  border:1px solid #11283f;
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:#11283f;
  color:#fff;
  font-size:33px;
  line-height:1.15;
  letter-spacing:-1px;
}

.main > h1:after{
  content:"";
  position:absolute;
  z-index:-1;
  width:330px;
  height:330px;
  right:-55px;
  top:-215px;
  border-radius:50%;
  background:rgba(30,181,164,.10);
  border:1px solid rgba(85,215,200,.17);
  box-shadow:
    0 0 0 50px rgba(30,181,164,.025),
    0 0 0 100px rgba(30,181,164,.014);
}

.main > .sub{
  margin:0 0 22px;
  padding:0 28px 25px;
  border:1px solid #11283f;
  border-top:0;
  border-radius:0 0 18px 18px;
  background:#11283f;
  color:#bdd1df;
  font-size:13px;
  line-height:1.6;
}

/* Summary cards */
.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  margin:0 0 22px;
}

.card{
  position:relative;
  overflow:hidden;
  min-height:128px;
  padding:21px 22px;
  border:0;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(115deg,#2456a5,#3875c9);
  box-shadow:0 7px 19px rgba(37,78,153,.13);
}

.card:nth-child(2){
  background:linear-gradient(115deg,#08766c,#159c8b);
}

.card:nth-child(3){
  background:linear-gradient(115deg,#6150aa,#8970c7);
}

.card:after{
  content:"";
  position:absolute;
  width:118px;
  height:118px;
  right:-30px;
  bottom:-48px;
  border:22px solid rgba(255,255,255,.06);
  border-radius:50%;
}

.label{
  position:relative;
  z-index:1;
  color:#eef6ff;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.05px;
}

.value{
  position:relative;
  z-index:1;
  margin-top:13px;
  color:#fff;
  font-size:31px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:-1px;
  font-variant-numeric:tabular-nums;
}

.radius-ready{
  color:#fff!important;
  font-size:20px!important;
}

/* Panels */
.panel{
  background:#fff;
  border:1px solid #dfe7ef;
  border-radius:15px;
  padding:0;
  margin-bottom:20px;
  overflow:auto;
  box-shadow:0 4px 15px rgba(24,55,77,.035);
}

.panel > h2{
  position:sticky;
  left:0;
  margin:0;
  padding:18px 21px;
  border-bottom:1px solid #edf1f5;
  background:#fff;
  color:#19374e;
  font-size:15px;
  font-weight:700;
}

.panel > h2:before{
  content:"";
  display:inline-block;
  width:4px;
  height:17px;
  margin-right:11px;
  border-radius:3px;
  background:#258eab;
  vertical-align:-2px;
}

.panel > .toolbar{
  padding:17px 21px;
  margin:0;
  border-bottom:1px solid #edf1f5;
  background:#fbfcfe;
}

/* Toolbars and controls */
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

input,
select{
  min-height:40px;
  padding:10px 12px;
  border:1px solid #d5e0e9;
  border-radius:8px;
  background:#fff;
  color:#213d54;
  font:inherit;
  font-size:12px;
  outline:none;
}

input:focus,
select:focus{
  border-color:#45a99f;
  box-shadow:0 0 0 3px rgba(69,169,159,.12);
}

button{
  min-height:39px;
  border:1px solid #153b50;
  border-radius:8px;
  background:#153b50;
  color:#fff;
  padding:9px 13px;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}

button:hover{
  background:#087c75;
  border-color:#087c75;
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Messages */
#message{
  margin:0 21px 17px;
  color:#657c90;
  font-size:12px;
  line-height:1.6;
}

/* Tables */
table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

th{
  padding:13px 17px;
  background:#f7f9fc;
  border-bottom:1px solid #e8eef4;
  color:#587188;
  font-size:10px;
  font-weight:700;
  letter-spacing:.45px;
  text-transform:uppercase;
  white-space:nowrap;
}

td{
  padding:13px 17px;
  border-bottom:1px solid #edf2f6;
  color:#294258;
  vertical-align:middle;
  white-space:nowrap;
  font-size:12px;
}

tbody tr:hover{
  background:#f8fbfd;
}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:5px 9px;
  border-radius:20px;
  font-size:10px;
  font-weight:700;
}

.online,
.active{
  background:#e6f6ee;
  color:#237655;
}

.offline,
.suspended{
  background:#feecec;
  color:#a13a3a;
}

/* Nested session-history KPI cards */
.panel .cards{
  padding:18px 21px 0;
  margin-bottom:18px;
}

.panel .cards .card{
  min-height:105px;
  padding:17px 18px;
}

.panel .cards .value{
  font-size:24px;
}

/* Focus visibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible{
  outline:3px solid #5ebdb5;
  outline-offset:3px;
}

/* Responsive */
@media(max-width:1100px){
  .main{
    padding:22px;
  }

  .cards{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .cards{
    grid-template-columns:1fr;
  }

  .toolbar{
    align-items:stretch;
  }

  .toolbar input,
  .toolbar select,
  .toolbar button{
    flex:1 1 180px;
  }
}

@media(max-width:768px){
  .main{
    margin-left:0!important;
    padding:65px 15px 20px;
  }

  .main > h1{
    padding:22px 18px 7px;
    min-height:0;
    border-radius:15px 15px 0 0;
    font-size:28px;
  }

  .main > .sub{
    padding:0 18px 20px;
    border-radius:0 0 15px 15px;
  }

  .card{
    min-height:104px;
    padding:18px;
  }

  .value{
    font-size:27px;
  }

  .panel > h2{
    padding:16px;
  }

  .panel > .toolbar{
    padding:15px 16px;
  }

  .panel .cards{
    padding:15px 16px 0;
  }

  th,td{
    padding:12px 14px;
  }
}

@media(max-width:480px){
  .main > h1{font-size:25px}
  .label{font-size:9px}
  .value{font-size:25px}
}
