.umds-debts--cards {
  display: grid;
  gap: 30px;
}

.umds-debt-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 11px rgba(0, 0, 0, 0.12);
    padding: 7px;
    overflow: hidden;
}

.umds-debt-card .umds-debt-card__stats-top{
  position: relative;
}
.umds-debt-card .umds-debt-card__stats-top::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:8px;
  border-radius: 6px;
  background: #5ccd65;
  opacity: .9;
}

.umds-debt-card__head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.umds-debt-card__media{
  width:56px;
  flex: 0 0 56px;
}

.umds-debt-card__img{
  width:56px;
  height:56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  background:#f2f3f5;
}

.umds-debt-card__img--ph{
  display:block;
}

.umds-debt-card__name{
  display:block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: inherit;
  text-decoration:none;
}

.umds-debt-card__sub{
  margin-top: 4px;
  font-size: 12px;
  opacity: .7;
}

.umds-debt-card__meta{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  opacity: .7;
}

.umds-debt-card__stats{
  margin-top: 10px;
  background: #f1f2f3;
  border-radius: 7px;
  padding: 10px 10px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.umds-stat__label{
  font-size: 11px;
  opacity: .65;
  margin-bottom: 4px;
  text-align:center;
}

.umds-stat__val{
  font-size: 13px;
  font-weight: 700;
  text-align:center;
}

.umds-stat__val--ok{
  color: #26a85a;
}

.umds-debt-card__bottom{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.umds-debt-card__debt{
  font-size: 12px;
  opacity: .9;
}

.umds-flag{
  display:inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
}

.umds-flag--danger{ background:#e53935; color:#fff; }
.umds-flag--warn{ background:#ffeb3b; color:#000; }
.umds-flag--muted{ background:#e9ecef; color:#333; }

/* Customer Debts -> Debts List icons */
.umds-user-profile-link{
  display:inline-block;
  vertical-align:middle;
  margin-left:6px;
  text-decoration:none;
}

.umds-overdue-icon{
  display:inline-block;
  vertical-align:middle;
  margin-left:6px;
  color:#d63638;
}

.umds-soon-icon{
  display:inline-block;
  vertical-align:middle;
  margin-left:6px;
  color:#dba617;
}



.umds-debts-summary {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: solid 2px #5ccd65;
}

.umds-debts-summary__label{
  font-size: 14px;
  font-weight: 600;
}

.umds-debts-summary__value{
  font-size:15px;
  font-weight:800;
}


.umds-debt-card .umds-debt-card__bottom button{
  border-radius: 7px;
    padding: 10px 20px;
    background: #5CCD65;
    border: none;
}

.umds-debt-card .umds-debt-card__bottom button:hover{
    background: #00a800;
}


.umds-modal-sc{
    position: fixed;
    z-index: 9999;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.umds-modal-sc .umds-modal-box{
    margin:20px;
}

/* My Account -> Borclarım inner tabs */
.umds-mydebts-tabs{
  display:flex;
  gap:10px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.umds-mydebts-tabs__link{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f1f2f3;
  text-decoration:none;
  font-weight: 600;
}

.umds-mydebts-tabs__link.is-active{
  background: #5CCD65;
  color: #fff;
}
.umds-modal-sc .umds-modal-box .umds-modal-box-in{
  background: #fff;
  max-width: 500px;
  margin: 150px auto;
  padding: 20px;
  position: relative;
  border-radius: 10px;
}

.umds-modal-sc .umds-modal-close-sc{
    position: absolute;
    top: 8px;
    right: 8px;
    background: #5ccd65;
    border: none;
    border-radius: 5px;
    font-size: 21px;
    padding: 2px 8px;
    font-weight: 400;
}
.umds-modal-sc .umds-modal-close-sc:hover{
    background: #00a800;
}

/* ================================
 * Admin: Customer Debts (UI helpers)
 * ================================ */

.umds-user-profile-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  text-decoration: none;
  color: #2271b1;
}

.umds-user-profile-link:hover{
  background: rgba(34, 113, 177, .08);
  color: #135e96;
}

/* Overdue warning icon shown near the customer name (admin list). */
.umds-overdue-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  color: #d63638;
  font-size: 21px;
  line-height: 1;
}

.umds-overdue-icon:before{
  /* Slight tweak so the dashicon looks centered inside the circle */
  margin: 0;
}


/* Due-soon warning icon shown near the customer name (admin list). */
.umds-soon-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  color: #ffb900;
  font-size: 20px;
  line-height: 1;
}

.umds-soon-icon:before{
  margin: 0;
}

.umds-customer-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px;
}

.umds-customer-head__avatar img,
.umds-customer-avatar{
  border-radius: 10px;
}

.umds-customer-head__title{
  margin: 0;
}

.umds-customer-head__sub{
  margin-top: 3px;
  font-size: 12px;
  opacity: .75;
}

.umds-customer-head__label{
  font-weight: 600;
}
.umds-modal-sc .umds-modal-box #umds-modal-content h3{
    font-size:18px!important;
}


@media only screen and (max-width: 900px) {.um-cds-table table thead .um-th-phone, .um-cds-table table tbody .um-th-phone{display: none}}
@media only screen and (max-width: 700px) {.um-cds-table table thead .um-th-action, .um-cds-table table tbody .um-th-action{display: none}}

@media only screen and (max-width: 782px) {
body .wrap.um-customer-debts h2 a {
    margin: 5px !important;
    flex-basis: calc(50% - 42px)!important;
}
.wrap.um-customer-debts .search-box, .wrap.um-customer-debts .search-filter{
  display: flex;
  justify-content: center;
}
body .wrap.um-customer-debts p.search-box input[name="s"] {
        width: calc(100% - 90px)!important;
    }
body .wrap.um-customer-debts .search-filter label{
    width: calc(100% - 85px);
    display: inline-block;
    padding: 0 10px 0 5px;
}
body .wrap.um-customer-debts .search-filter label select{
    width:100%;
}
}


.um-cds-table .um-th-name a, .um-cds-table .um-th-name span{
  vertical-align: middle;
}