#tp-account-spend{
  width:100%;max-width:100%;min-width:0;
  margin:0 0 20px;padding:18px;
  border:1px solid #dfe5ee;border-radius:16px;
  background:var(--card,#fff);
  color:var(--text,#172338);
}
#tp-account-spend *{box-sizing:border-box}
#tp-account-spend .ams-head{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin-bottom:16px;
}
#tp-account-spend h2{font-size:18px;font-weight:750;margin:0}
#tp-account-spend .ams-muted{font-size:12px;color:#64748b}
#tp-account-spend input[type=month]{
  min-height:40px;border:1px solid #cbd5e1;
  border-radius:9px;padding:6px 10px;background:transparent;color:inherit;
}
#tp-account-spend .ams-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
#tp-account-spend .ams-card{
  min-width:0;padding:14px;border:1px solid #e2e8f0;
  border-radius:12px;display:flex;flex-direction:column;gap:8px;
}
#tp-account-spend .ams-card strong{
  font-size:23px;font-weight:750;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
#tp-account-spend .ams-card small{
  color:#64748b;font-size:12px;overflow-wrap:anywhere;
}
#tp-account-spend .ams-total{
  background:rgba(70,90,240,.06);border-color:#c7d2fe;
}
#tp-account-spend button{
  border:0;border-radius:9px;background:#455cf0;
  color:#fff;padding:11px 15px;cursor:pointer;font-weight:650;
}
#tp-account-spend button:disabled{opacity:.5}
#tp-account-spend .ams-actions{
  display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;
}
#tp-account-spend summary{cursor:pointer;padding:10px 0}
#tp-account-spend .ams-scroll{
  overflow:auto;max-width:100%;max-height:400px;
  border:1px solid #e2e8f0;border-radius:10px;
}
#tp-account-spend table{
  width:100%;min-width:410px;border-collapse:collapse;
  font-size:12px;text-align:right;
}
#tp-account-spend th,#tp-account-spend td{
  padding:9px;border-bottom:1px solid #e2e8f0;white-space:nowrap;
}
#tp-account-spend th:first-child,
#tp-account-spend td:first-child{text-align:left}
#tp-account-spend .ams-status{min-height:18px;margin:12px 0}
@media(max-width:800px){
 #tp-account-spend{padding:12px}
 #tp-account-spend .ams-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #tp-account-spend .ams-total{grid-column:1/-1}
 #tp-account-spend .ams-card{padding:10px}
 #tp-account-spend .ams-card strong{font-size:19px}
 #tp-account-spend .ams-actions{display:block}
 #tp-account-spend .ams-actions button{width:100%;margin-bottom:10px}
}

/* AMS_ACCOUNT_SELECTOR_V2 */

#tp-account-spend .ams-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}
#tp-account-spend .ams-controls label{
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:12px;
}
#tp-account-spend .ams-controls select{
  min-height:40px;
  padding:8px 12px;
  border:1px solid #cbd5e1;
  border-radius:9px;
  background:var(--card,#fff);
  color:inherit;
  font-size:14px;
}
#tp-account-spend button.ams-pick{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  width:100%;
  text-align:left;
  color:inherit;
  background:var(--card,#fff);
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:14px;
  box-shadow:none;
  cursor:pointer;
}
#tp-account-spend button.ams-pick.ams-total{
  background:rgba(70,90,240,.06);
}
#tp-account-spend button.ams-pick.ams-active{
  border-color:#455cf0;
  outline:2px solid rgba(69,92,240,.22);
  outline-offset:0;
}
#tp-account-spend button.ams-pick:hover{
  border-color:#455cf0;
}
#tp-account-spend button.ams-pick strong{
  font-size:23px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
#tp-account-spend .ams-selected{
  margin:8px 0 14px;
  font-size:14px;
  font-weight:700;
}
@media(max-width:800px){
  #tp-account-spend .ams-controls{
    width:100%;
  }
  #tp-account-spend .ams-controls label{
    flex:1 1 130px;
  }
  #tp-account-spend .ams-controls select,
  #tp-account-spend .ams-controls input{
    width:100%;
  }
  #tp-account-spend button.ams-pick{
    padding:10px;
  }
  #tp-account-spend button.ams-pick strong{
    font-size:19px;
  }
}
