/* ISP360_PAYMENTS_PRO_V4 - 2026-10-21
   High-contrast colorful layout for Payments only.
   Keeps existing payment actions, DOM IDs and billing behavior intact.
*/
body:has(#paymentTable) {
  background:linear-gradient(135deg,#f0f5fc,#f8fbff 65%,#eef5ff)!important;
  color:#152b49!important;
}
body:has(#paymentTable) .main {
  min-width:0!important;
  color:#152b49!important;
}
body:has(#paymentTable) .main > .header {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:18px!important;
  margin:0 0 20px!important;
  min-height:128px!important;
  padding:25px 28px!important;
  color:#fff!important;
  background:linear-gradient(115deg,#102448 0%,#173d7e 58%,#2268b8 100%)!important;
  border:1px solid #24477d!important;
  border-radius:18px!important;
  box-shadow:0 13px 29px rgba(14,46,98,.16)!important;
}
body:has(#paymentTable) .main > .header h1 {
  font-size:clamp(26px,2.4vw,32px)!important;
  line-height:1.23!important;
  color:#fff!important;
  font-weight:850!important;
  letter-spacing:-.55px!important;
  margin:0 0 9px!important;
  text-shadow:none!important;
}
body:has(#paymentTable) .main > .header p {
  color:#e0eeff!important;
  font-size:13px!important;
  line-height:1.55!important;
  margin:0!important;
  opacity:1!important;
}
body:has(#paymentTable) .main > .header .btn {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  height:45px!important;
  min-height:45px!important;
  min-width:160px!important;
  width:auto!important;
  padding:0 17px!important;
  border-radius:11px!important;
  border:1px solid #fff!important;
  background:#fff!important;
  color:#173b76!important;
  -webkit-text-fill-color:#173b76!important;
  font:750 13px/1.2 Inter,"Segoe UI",Arial,sans-serif!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:0 5px 15px rgba(5,24,57,.13)!important;
  cursor:pointer!important;
  opacity:1!important;
}
body:has(#paymentTable) .main > .header .btn:hover {
  background:#e8f3ff!important;
  border-color:#e8f3ff!important;
  transform:translateY(-1px)!important;
}
body:has(#paymentTable) .main .cards {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:15px!important;
  margin:0 0 22px!important;
  padding:0!important;
}
body:has(#paymentTable) .main .cards > .card {
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:135px!important;
  padding:22px 22px!important;
  overflow:hidden!important;
  background:linear-gradient(125deg,#174aab,#2872dc)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:16px!important;
  box-shadow:0 9px 23px rgba(29,78,155,.18)!important;
}
body:has(#paymentTable) .main .cards > .card:nth-child(2){
  background:linear-gradient(125deg,#075e54,#0c9687)!important;
  box-shadow:0 9px 23px rgba(6,111,97,.16)!important;
}
body:has(#paymentTable) .main .cards > .card:nth-child(3){
  background:linear-gradient(125deg,#5426a3,#8250d2)!important;
  box-shadow:0 9px 23px rgba(101,50,175,.16)!important;
}
body:has(#paymentTable) .main .cards > .card:nth-child(4){
  background:linear-gradient(125deg,#884207,#bb7219)!important;
  box-shadow:0 9px 23px rgba(145,70,6,.18)!important;
}
body:has(#paymentTable) .main .cards > .card::after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  pointer-events:none!important;
  width:115px!important;
  height:115px!important;
  right:-40px!important;
  bottom:-65px!important;
  border:20px solid rgba(255,255,255,.075)!important;
  border-radius:50%!important;
}
body:has(#paymentTable) .main .cards > .card :is(.card-title,.card-value) {
  position:relative!important;
  z-index:1!important;
  display:block!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:none!important;
  opacity:1!important;
}
body:has(#paymentTable) .main .cards > .card .card-title {
  font:800 11px/1.4 Inter,"Segoe UI",Arial,sans-serif!important;
  letter-spacing:.045em!important;
  margin:0 0 15px!important;
  white-space:normal!important;
}
body:has(#paymentTable) .main .cards > .card .card-value {
  font-size:clamp(23px,2.2vw,32px)!important;
  line-height:1.25!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:-.5px!important;
  overflow-wrap:anywhere!important;
  margin:0!important;
}
body:has(#paymentTable) .main > .table-box {
  width:100%!important;
  max-width:100%!important;
  padding:0!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  background:#fff!important;
  color:#1b3150!important;
  border:1px solid #d8e5f6!important;
  border-radius:16px!important;
  box-shadow:0 9px 26px rgba(25,64,128,.08)!important;
}
body:has(#paymentTable) .main > .table-box .table-header {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:14px!important;
  min-height:82px!important;
  margin:0!important;
  padding:18px 22px!important;
  background:linear-gradient(110deg,#eaf3ff,#f6faff)!important;
  border-bottom:1px solid #dce8f7!important;
}
body:has(#paymentTable) .main > .table-box .table-header h2 {
  display:flex!important;
  align-items:center!important;
  margin:0!important;
  color:#163c77!important;
  font-size:19px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
body:has(#paymentTable) .main > .table-box .table-header h2::before {
  content:""!important;
  display:block!important;
  width:4px!important;
  height:20px!important;
  margin-right:12px!important;
  background:#2563eb!important;
  border-radius:4px!important;
}
body:has(#paymentTable) .main > .table-box .search {
  width:min(100%,360px)!important;
  min-width:180px!important;
  height:44px!important;
  min-height:44px!important;
  padding:9px 14px!important;
  color:#1e3655!important;
  border:1px solid #bacde5!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:13px!important;
  opacity:1!important;
  box-shadow:0 1px 3px rgba(12,43,88,.04)!important;
}
body:has(#paymentTable) .main > .table-box .search::placeholder {
  color:#526c88!important;
  opacity:1!important;
}
body:has(#paymentTable) .main > .table-box table {
  width:100%!important;
  min-width:930px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:#fff!important;
}
body:has(#paymentTable) .main > .table-box th {
  padding:14px 13px!important;
  background:#f4f8fe!important;
  color:#355577!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.03em!important;
  text-align:left!important;
  border-bottom:1px solid #dbe6f2!important;
  white-space:nowrap!important;
}
body:has(#paymentTable) .main > .table-box td {
  padding:14px 13px!important;
  color:#273e5d!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:500!important;
  border-bottom:1px solid #e8eef6!important;
  background:#fff!important;
}
body:has(#paymentTable) .main > .table-box tbody tr:hover td {background:#f4f9ff!important}
body:has(#paymentTable) .main > .table-box td.empty {
  color:#546d88!important;
  font-size:13px!important;
  text-align:center!important;
  padding:35px 18px!important;
}
body:has(#paymentTable) .main > .table-box .receipt-btn {
  background:#1c54ae!important;
  color:#fff!important;
  border:1px solid #1c54ae!important;
  border-radius:9px!important;
  min-height:36px!important;
  font-weight:750!important;
}
body:has(#paymentTable) .main :is(.btn,.receipt-btn,.search):focus-visible {
  outline:3px solid #60a5fa!important;
  outline-offset:3px!important;
}
body:has(#paymentTable) .sidebar #isp360LoginAsButton {
  background:linear-gradient(125deg,#1d5ad0,#367fee)!important;
  border:1px solid #71a6ff!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 4px 13px rgba(30,89,190,.22)!important;
}
body:has(#paymentTable) .sidebar #isp360LoginAsButton span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
@media(max-width:1150px){
  body:has(#paymentTable) .main .cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:650px){
  body:has(#paymentTable) .main > .header{padding:20px 17px!important}
  body:has(#paymentTable) .main > .header .btn{width:100%!important}
  body:has(#paymentTable) .main .cards{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body:has(#paymentTable) .main .cards > .card{min-height:113px!important;padding:19px!important}
  body:has(#paymentTable) .main > .table-box .table-header{padding:16px!important}
  body:has(#paymentTable) .main > .table-box .search{width:100%!important;min-width:0!important}
}

