/* ISP360 Customers — v1.0 Market Launch Polish
   Visual-only layer. Existing customer/RADIUS logic remains authoritative. */

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

/* Main workspace */
.main{
  margin-left:250px;
  min-height:100vh;
  background:#f3f6fa;
}

.topbar{
  height:auto;
  min-height:72px;
  padding:18px 30px;
  background:#fff;
  border-bottom:1px solid #dde6ee;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.topbar h2{
  font-size:16px;
  color:#19364e;
  font-weight:700;
  letter-spacing:-.2px;
}

.topbar strong{
  color:#657c90;
  font-size:12px;
  font-weight:600;
}

.content{
  padding:28px 30px 32px;
  max-width:1700px;
}

/* Premium page hero */
.header{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  margin-bottom:22px;
  padding:25px 27px;
  min-height:128px;
  border:1px solid #11283f;
  border-radius:18px;
  background:#11283f;
  color:#fff;
  box-shadow:0 10px 26px rgba(17,40,63,.10);
}

.header:after{
  content:"";
  position:absolute;
  z-index:-1;
  width:310px;
  height:310px;
  border-radius:50%;
  right:-45px;
  top:-190px;
  background:rgba(30,181,164,.09);
  border:1px solid rgba(85,215,200,.16);
  box-shadow:
    0 0 0 45px rgba(30,181,164,.025),
    0 0 0 90px rgba(30,181,164,.015);
}

.header h1{
  font-size:32px;
  line-height:1.15;
  letter-spacing:-1px;
  margin:0;
  color:#fff;
}

.header p{
  margin-top:9px;
  color:#bdd1df;
  font-size:13px;
  line-height:1.6;
}

/* Primary action */
.btn{
  border:1px solid #effffa;
  border-radius:9px;
  background:#effffa;
  color:#0b625d;
  padding:11px 17px;
  min-height:42px;
  font-weight:700;
  box-shadow:none;
  transition:.15s ease;
}

.btn:hover{
  background:#fff;
  color:#084c48;
  transform:translateY(-1px);
}

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

.card{
  position:relative;
  overflow:hidden;
  min-height:122px;
  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:115px;
  height:115px;
  right:-31px;
  bottom:-48px;
  border:22px solid rgba(255,255,255,.06);
  border-radius:50%;
}

.card-title{
  margin-bottom:13px;
  color:#edf6ff;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.15px;
}

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

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

.tools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:18px 21px;
  margin:0;
  border-bottom:1px solid #edf1f5;
}

.tools h3{
  display:flex;
  align-items:center;
  color:#19374e;
  font-size:15px;
  font-weight:700;
}

.tools h3:before{
  content:"";
  display:inline-block;
  width:4px;
  height:17px;
  border-radius:3px;
  background:#258eab;
  margin-right:11px;
}

.search{
  width:min(410px,100%);
  padding:11px 14px 11px 40px;
  border:1px solid #d5e0e9;
  border-radius:9px;
  outline:none;
  background:
    linear-gradient(#fff,#fff) padding-box;
  color:#213d54;
  font-size:12px;
  transition:border-color .15s,box-shadow .15s;
}

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

.search::placeholder{
  color:#8a9cac;
}

/* Table */
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;
}

tbody tr{
  transition:background .12s ease;
}

tbody tr:hover{
  background:#f8fbfd;
}

tbody tr:last-child td{
  border-bottom:0;
}

.status{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:5px 9px;
  border-radius:20px;
  background:#e6f6ee;
  color:#237655;
  font-size:10px;
  font-weight:700;
  text-transform:capitalize;
}

.empty{
  text-align:center;
  color:#73889b;
  padding:34px 20px;
  font-size:12px;
}

/* Existing dynamically generated View button */
#customerTable button{
  background:#153b50!important;
  color:#fff!important;
  border:1px solid #153b50!important;
  padding:8px 13px!important;
  border-radius:7px!important;
  font-size:11px!important;
  font-weight:700!important;
  cursor:pointer;
  transition:.15s ease;
}

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

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

/* Modal styling without changing its logic */
#customerModal > div{
  border-radius:16px!important;
  box-shadow:0 24px 60px rgba(15,35,55,.22)!important;
}

#customerModal input,
#customerModal select,
#customerModal textarea{
  border-radius:8px!important;
  border-color:#d3dee8!important;
}

/* Responsive */
@media(max-width:1100px){
  .content{padding:22px}
  .stats{gap:12px}
  .header{padding:23px}
  .search{width:320px}
}

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

  .topbar{
    padding:15px 17px;
  }

  .content{
    padding:15px;
  }

  .header{
    min-height:0;
    padding:20px 18px;
    border-radius:15px;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:18px;
  }

  .header h1{
    font-size:28px;
  }

  .stats{
    grid-template-columns:1fr;
    gap:10px;
  }

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

  .card-value{
    font-size:27px;
  }

  .tools{
    align-items:flex-start;
    flex-direction:column;
    padding:16px;
  }

  .search{
    width:100%;
  }

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

@media(max-width:480px){
  .header h1{font-size:25px}
  .header .btn{width:100%}
  .topbar strong{display:none}
  .card-title{font-size:9px}
  .card-value{font-size:25px}
}
