/* AbrHesab UI V2 - Scoped dashboard theme */
.dash-wrap.dashboard-v3{
  --v2-navy:#17365D;
  --v2-blue:#60A5FA;
  --v2-bg:#F4F7FB;
  --v2-card:#FFFFFF;
  --v2-text:#243447;
  --v2-muted:#718096;
  --v2-border:#E5EAF1;
  --v2-green:#16A36A;
  --v2-orange:#E99A32;
  --v2-red:#DC5353;
  color:var(--v2-text);
  font-family:Vazirmatn,Tahoma,sans-serif;
  gap:20px;
}
.dash-wrap.dashboard-v3 .dashboard-v3-title,
.dash-wrap.dashboard-v3 .dash-panel-head b{
  color:var(--v2-navy);
}
.dash-wrap.dashboard-v3 .dashboard-v3-card,
.dash-wrap.dashboard-v3 .dash-panel,
.dash-wrap.dashboard-v3 .dashboard-financial-card,
.dash-wrap.dashboard-v3 .dashboard-trend-card{
  background:var(--v2-card);
  border:1px solid var(--v2-border);
  border-radius:18px;
  box-shadow:0 5px 18px rgba(23,54,93,.055);
}
.dash-wrap.dashboard-v3 .dashboard-v3-card{
  padding:20px;
  gap:14px;
  transition:transform .18s ease,box-shadow .18s ease;
}
.dash-wrap.dashboard-v3 .dashboard-v3-card:hover,
.dash-wrap.dashboard-v3 .dash-panel:hover{
  box-shadow:0 9px 24px rgba(23,54,93,.09);
}
.dash-wrap.dashboard-v3 .dashboard-v3-icon,
.dash-wrap.dashboard-v3 .dash-icon{
  border-radius:15px;
  background:#EAF2FC;
  color:var(--v2-navy);
}
.dash-wrap.dashboard-v3 .dashboard-v3-card span,
.dash-wrap.dashboard-v3 .dash-eyebrow,
.dash-wrap.dashboard-v3 .dash-panel-head small{
  color:var(--v2-muted);
}
.dash-wrap.dashboard-v3 .dashboard-v3-card strong,
.dash-wrap.dashboard-v3 .dash-total b{
  color:var(--v2-navy);
}
.dash-wrap.dashboard-v3 .dash-panel,
.dash-wrap.dashboard-v3 .dashboard-financial-card{
  padding:18px;
}
.dash-wrap.dashboard-v3 .dash-panel-head{
  border-bottom:1px solid var(--v2-border);
  padding-bottom:13px;
  margin-bottom:12px;
}
.dash-wrap.dashboard-v3 .dash-link{
  color:var(--v2-navy);
  background:#EDF4FD;
  border:1px solid #D8E6F8;
  border-radius:10px;
  padding:7px 12px;
  font:inherit;
  cursor:pointer;
}
.dash-wrap.dashboard-v3 .dash-link:hover{
  background:#DCEBFC;
}
.dash-wrap.dashboard-v3 .dash-row,
.dash-wrap.dashboard-v3 .dash-recent-row{
  border-bottom:1px solid #EEF1F5;
  padding:11px 2px;
}
.dash-wrap.dashboard-v3 .dash-row:last-child,
.dash-wrap.dashboard-v3 .dash-recent-row:last-child{
  border-bottom:0;
}
.dash-wrap.dashboard-v3 .dash-total{
  background:#F4F7FB;
  border-radius:12px;
  padding:12px;
  margin:12px 0;
}
.dash-wrap.dashboard-v3 .empty{
  color:var(--v2-muted);
  padding:16px 8px;
}
.dash-wrap.dashboard-v3 .profit-positive{
  border-color:#CDEBDD;
}
.dash-wrap.dashboard-v3 .profit-negative{
  border-color:#F2D4D4;
}
.dash-wrap.dashboard-v3 .dashboard-topbar{
  background:#fff;
  border:1px solid var(--v2-border);
  border-radius:16px;
  box-shadow:0 4px 15px rgba(23,54,93,.04);
}
.dash-wrap.dashboard-v3 button{
  font-family:inherit;
}
@media(max-width:1100px){
  .dash-wrap.dashboard-v3 .dashboard-v3-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:650px){
  .dash-wrap.dashboard-v3 .dashboard-v3-kpis{
    grid-template-columns:1fr;
  }
  .dash-wrap.dashboard-v3 .dashboard-v3-card{
    padding:15px;
  }
  .dash-wrap.dashboard-v3 .dash-panel,
  .dash-wrap.dashboard-v3 .dashboard-financial-card{
    padding:13px;
  }
}


/* UI V2 COLOR OVERRIDE FIX */
#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card,
#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card:nth-child(n) {
  background:#FFFFFF !important;
  border:1px solid #E5EAF1 !important;
  color:#243447 !important;
  box-shadow:0 5px 18px rgba(23,54,93,.055) !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card .dashboard-v3-icon {
  background:#EAF2FC !important;
  color:#17365D !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card strong {
  color:#17365D !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card span,
#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card small {
  color:#718096 !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card.profit-positive {
  background:#F2FAF5 !important;
  border-color:#CDEBDD !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card.profit-positive strong,
#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card.profit-positive span {
  color:#176B4B !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card.profit-negative {
  background:#FFF5F5 !important;
  border-color:#F2D4D4 !important;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card.profit-negative strong,
#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card.profit-negative span {
  color:#A93434 !important;
}

/* FIX: restore white background for recent sales panel */
#dashboard .dash-wrap.dashboard-v3 .dashboard-last-sales-card {
  background: #FFFFFF !important;
  border: 1px solid #E5EAF1 !important;
  border-radius: 14px !important;
  box-shadow: 0 5px 18px rgba(23,54,93,.055) !important;
}

/* ABRHESAB DASHBOARD APPROVED REFERENCE LAYOUT */
#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100%;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card {
  min-width: 0;
  min-height: 112px;
  padding: 18px !important;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card:hover {
  transform: translateY(-2px);
}

#dashboard .dash-wrap.dashboard-v3 .dashboard-v3-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dashboard .dashboard-user-overview-v1 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start;
  width: 100%;
  margin-top: 18px !important;
}

#dashboard .dashboard-user-overview-v1 > .dash-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px !important;
}

#dashboard .dashboard-user-overview-v1 .dash-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #E5EAF1;
  background: #F8FAFD;
}

@media (max-width: 1050px) {
  #dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #dashboard .dashboard-user-overview-v1 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 650px) {
  #dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #dashboard .dash-wrap.dashboard-v3 .dashboard-v3-kpis > .dashboard-v3-card {
    min-height: 92px;
    padding: 15px !important;
  }

  #dashboard .dashboard-user-overview-v1 {
    gap: 12px !important;
  }
}
/* END APPROVED REFERENCE LAYOUT */

/* PERSONS_DASHBOARD_V1 */
#workspace .persons-dashboard-v1{
  display:flex;flex-direction:column;gap:18px;padding:4px 0 18px;
  color:#173f52
}
#workspace .persons-dashboard-heading{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-wrap:wrap;padding:8px 2px 12px
}
#workspace .persons-dashboard-heading h2{
  margin:0;font-size:21px;font-weight:900;color:#173f52
}
#workspace .persons-dashboard-heading p{
  margin:7px 0 0;color:#7b8d95;font-size:11px
}
#workspace .persons-dashboard-actions,
#workspace .persons-dashboard-shortcuts{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap
}
#workspace .persons-dashboard-kpis{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px
}
#workspace .persons-dashboard-kpi{
  min-height:108px;display:grid;grid-template-columns:42px 1fr;
  grid-template-rows:auto 1fr;align-items:center;column-gap:12px;
  padding:17px;border:1px solid #dce9ee;border-radius:15px;
  background:linear-gradient(145deg,#fff,#f8fbfc);
  box-shadow:0 5px 16px rgba(25,88,120,.045)
}
#workspace .persons-dashboard-kpi>span{
  grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;
  border-radius:12px;background:#edf6f9;font-size:20px
}
#workspace .persons-dashboard-kpi small,
#workspace .persons-dashboard-role small,
#workspace .persons-dashboard-balances small{
  color:#7b8d95;font-size:10px
}
#workspace .persons-dashboard-kpi b{
  color:#173f52;font-size:23px;font-weight:900;align-self:start
}
#workspace .persons-dashboard-section,
#workspace .persons-dashboard-shortcuts{
  padding:17px;border:1px solid #dce9ee;border-radius:15px;background:#fff;
  box-shadow:0 5px 16px rgba(25,88,120,.035)
}
#workspace .persons-dashboard-section-head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  flex-wrap:wrap;margin-bottom:15px
}
#workspace .persons-dashboard-section h3,
#workspace .persons-dashboard-shortcuts h3{
  margin:0;color:#234d60;font-size:13px;font-weight:900
}
#workspace .persons-dashboard-section-head>span{
  color:#91a0a6;font-size:10px
}
#workspace .persons-dashboard-roles{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px
}
#workspace .persons-dashboard-role{
  display:flex;align-items:center;gap:10px;min-width:0;
  padding:13px;border:1px solid #edf1f3;border-radius:12px;background:#fbfdfe
}
#workspace .persons-dashboard-role>span{
  width:35px;height:35px;flex:none;display:grid;place-items:center;
  border-radius:10px;background:#eef6f9;font-size:17px
}
#workspace .persons-dashboard-role div{display:flex;flex-direction:column;gap:5px}
#workspace .persons-dashboard-role b{
  color:#173f52;font-size:17px;font-weight:900
}
#workspace .persons-dashboard-balances{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px
}
#workspace .persons-dashboard-balances>div{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding:14px;border-radius:12px;background:#f8fbfc
}
#workspace .persons-dashboard-balances b{
  color:#173f52;font-size:19px;font-weight:900
}
#workspace .persons-dashboard-shortcuts{align-items:center}
#workspace .persons-dashboard-shortcuts h3{margin-left:8px}
@media(max-width:850px){
  #workspace .persons-dashboard-roles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  #workspace .persons-dashboard-kpis{grid-template-columns:1fr}
  #workspace .persons-dashboard-roles{grid-template-columns:repeat(2,minmax(0,1fr))}
  #workspace .persons-dashboard-balances{grid-template-columns:1fr}
  #workspace .persons-dashboard-heading{align-items:stretch}
  #workspace .persons-dashboard-actions{width:100%}
  #workspace .persons-dashboard-actions .btn{flex:1}
  #workspace .persons-dashboard-section,
  #workspace .persons-dashboard-shortcuts{padding:13px}
}

/* ABRHESAB PERSONS DASHBOARD V2 */
#workspace .abr-pdash{display:flex;flex-direction:column;gap:15px;min-width:0;color:#203b4b}
#workspace .abr-pdash-hero{position:relative;display:flex;align-items:center;min-height:132px;overflow:hidden;padding:22px 30px;border-radius:17px;background:#14536f url('/static/images/persons-dashboard-banner.png') center/cover no-repeat;box-shadow:0 7px 20px rgba(20,65,85,.12)}
#workspace .abr-pdash-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,48,75,.28),rgba(8,54,78,.14),rgba(9,48,75,.28))}
#workspace .abr-pdash-hero-copy{position:relative;z-index:1;text-align:center;width:100%;text-shadow:0 1px 5px rgba(0,0,0,.22)}
#workspace .abr-pdash-hero h2{margin:5px 0 7px;font-size:23px;font-weight:900;color:#fff}
#workspace .abr-pdash-hero p{margin:0;color:#e7f5f7;font-size:12px}
#workspace .abr-pdash-eyebrow{font-size:9px;letter-spacing:1.5px;color:#d4f0f1}
#workspace .abr-pdash-access{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:9px;align-items:center}
#workspace .abr-pdash-search{display:flex;align-items:center;gap:10px;min-width:0;min-height:43px;padding:0 13px;border:1px solid #dce8ed;border-radius:11px;background:#fff}
#workspace .abr-pdash-search>span{font-size:22px;color:#568092}
#workspace .abr-pdash-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:11px}
#workspace .abr-pdash-access .btn,#workspace .abr-pdash-toolbar .btn{min-height:39px;border-radius:9px;font-size:11px;font-weight:700;white-space:nowrap}
#workspace .abr-pdash-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:11px 13px;border:1px solid #e2ebef;border-radius:12px;background:#fff}
#workspace .abr-pdash-toolbar .btn{padding:8px 14px}
#workspace .abr-pdash-toolbar button:disabled{opacity:.55;cursor:not-allowed}
#workspace .abr-pdash-search-results{padding:10px;border:1px solid #dce8ed;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(25,88,120,.05)}
#workspace .abr-pdash-search-results .abr-pdash-person{margin:3px 0}
#workspace .abr-pdash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#workspace .abr-pdash-kpi{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;column-gap:11px;min-width:0;padding:15px;border:1px solid #e2ebef;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(25,88,120,.045)}
#workspace .abr-pdash-kpi-icon{grid-column:1;grid-row:1/4;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9f3f8;color:#28718b;font-size:23px;font-weight:900}
#workspace .abr-pdash-kpi small{grid-column:2;font-size:10px;color:#718995}
#workspace .abr-pdash-kpi strong{grid-column:2;margin:4px 0;font-size:clamp(16px,1.8vw,22px);font-weight:900;color:#17475d;overflow-wrap:anywhere}
#workspace .abr-pdash-kpi>span:last-child{grid-column:2;font-size:9px;color:#82949d;overflow-wrap:anywhere}
#workspace .abr-pdash-kpi.kpi-active .abr-pdash-kpi-icon{background:#e8f6ef;color:#26966b}
#workspace .abr-pdash-kpi.kpi-debt .abr-pdash-kpi-icon{background:#fff3e6;color:#d68a36}
#workspace .abr-pdash-kpi.kpi-credit .abr-pdash-kpi-icon{background:#e8f5f5;color:#318e91}
#workspace .abr-pdash-bottom-grid{display:grid;direction:ltr;grid-template-columns:minmax(190px,1.05fr) repeat(2,minmax(180px,1fr)) minmax(210px,1.15fr);gap:12px;align-items:stretch}
#workspace .abr-pdash-section{direction:rtl;display:flex;flex-direction:column;min-width:0;padding:15px;border:1px solid #e1eaf0;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(25,88,120,.035)}
#workspace .abr-pdash-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
#workspace .abr-pdash-section-head h3{margin:0;color:#214c60;font-size:12px;font-weight:900}
#workspace .abr-pdash-section-head p{margin:4px 0 0;color:#91a1a8;font-size:9px;line-height:1.7}
#workspace .abr-pdash-section-head>span{color:#82949d;font-size:9px}
#workspace .abr-pdash-person-list{display:flex;flex-direction:column;gap:7px}
#workspace .abr-pdash-person{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:10px;border:1px solid #edf1f3;border-radius:9px;background:#fbfdfe;text-align:right;cursor:pointer}
#workspace .abr-pdash-person:hover{border-color:#b8d5df;background:#f3fafc}
#workspace .abr-pdash-person-name{min-width:0;font-size:10px;color:#31566a;overflow-wrap:anywhere}
#workspace .abr-pdash-person-amount{font-size:9px;font-weight:800;color:#31566a;white-space:nowrap}
#workspace .abr-pdash-empty-list,#workspace .abr-pdash-loading{padding:13px;text-align:center;color:#91a1a8;font-size:10px;line-height:1.8}
#workspace .abr-pdash-assistant{align-items:center;text-align:center;background:linear-gradient(160deg,#fff,#f2f8fb)}
#workspace .abr-pdash-assistant .abr-pdash-section-head{width:100%;text-align:right}
#workspace .abr-pdash-assistant-art{display:grid;place-items:center;width:64px;height:64px;margin:8px auto 12px;border:1px solid #d8eaf0;border-radius:20px;background:linear-gradient(145deg,#e7f4f8,#d8ebf1);color:#39869a;font-size:35px;box-shadow:0 5px 15px rgba(40,110,140,.1)}
#workspace .abr-pdash-assistant>b{font-size:11px;color:#28556b}
#workspace .abr-pdash-assistant>p{margin:9px 0 12px;color:#80949e;font-size:9px;line-height:2}
#workspace .abr-pdash-coming{display:inline-block;padding:6px 10px;border-radius:20px;background:#edf5f7;color:#5d8995;font-size:9px}
#workspace .abr-pdash-overview{align-items:stretch}
#workspace .abr-pdash-datebar{display:flex;align-items:end;gap:6px;flex-wrap:wrap;margin:0 0 10px}
#workspace .abr-pdash-datebar label{display:flex;flex:1 1 70px;flex-direction:column;gap:4px;color:#748993;font-size:9px}
#workspace .abr-pdash-datebar input{width:100%;min-width:0;min-height:32px;padding:5px 7px;border:1px solid #dce8ed;border-radius:8px;background:#fbfdfe;font:inherit;font-size:10px}
#workspace .abr-pdash-datebar button{min-height:32px;padding:5px 10px;border-radius:8px;font-size:9px;white-space:nowrap}
#workspace .abr-pdash-donut-wrap{display:flex;align-items:center;justify-content:center;gap:13px;min-height:135px}
#workspace .abr-pdash-donut{display:grid;place-items:center;flex:0 0 112px;width:112px;height:112px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025)}
#workspace .abr-pdash-donut-hole{display:flex;align-items:center;justify-content:center;flex-direction:column;width:73px;height:73px;border-radius:50%;background:#fff}
#workspace .abr-pdash-donut-hole strong{max-width:65px;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#31566a}
#workspace .abr-pdash-donut-hole span{font-size:8px;color:#91a1a8}
#workspace .abr-pdash-legend{display:flex;flex-direction:column;gap:12px;min-width:0}
#workspace .abr-pdash-legend>div{display:grid;grid-template-columns:9px auto;column-gap:6px;align-items:center;font-size:9px;color:#718995}
#workspace .abr-pdash-legend i{grid-row:1/3;width:8px;height:8px;border-radius:50%}
#workspace .abr-pdash-legend i.debt{background:#e8a34e}
#workspace .abr-pdash-legend i.credit{background:#39999a}
#workspace .abr-pdash-legend b{font-size:10px;color:#31566a}
@media(max-width:1150px){
 #workspace .abr-pdash-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 #workspace .abr-pdash-hero{min-height:120px;padding:18px}
 #workspace .abr-pdash-hero h2{font-size:19px}
 #workspace .abr-pdash-access{grid-template-columns:1fr 1fr}
 #workspace .abr-pdash-search{grid-column:1/-1}
 #workspace .abr-pdash-access .btn{width:100%}
 #workspace .abr-pdash-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #workspace .abr-pdash-kpi{padding:11px;grid-template-columns:34px minmax(0,1fr);column-gap:8px}
 #workspace .abr-pdash-kpi-icon{width:33px;height:33px;font-size:19px}
 #workspace .abr-pdash-kpi strong{font-size:16px}
 #workspace .abr-pdash-bottom-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
 #workspace .abr-pdash-bottom-grid{grid-template-columns:1fr}
 #workspace .abr-pdash-section{padding:13px}
 #workspace .abr-pdash-toolbar{gap:7px}
 #workspace .abr-pdash-toolbar .btn{flex:1 1 calc(50% - 7px)}
 #workspace .abr-pdash-donut-wrap{justify-content:space-evenly}
}


/* PERSONS DASHBOARD - LIST LAYOUT */
#workspace .abr-pdash-bottom-grid{
  display:flex;
  flex-direction:column;
  direction:rtl;
  gap:16px;
}
#workspace .abr-pdash-overview,
#workspace .abr-pdash-people,
#workspace .abr-pdash-assistant{
  width:100%;
  min-width:0;
}
#workspace .abr-pdash-people{align-items:stretch}
#workspace .abr-pdash-person-row{
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  min-height:72px;
  padding:10px 14px;
  border:1px solid #e5edf1;
  border-radius:12px;
  background:#fff;
}
#workspace .abr-pdash-avatar{
  flex:0 0 44px;
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:50%;
  border:2px solid #e2eef3;
}
#workspace .abr-pdash-avatar-empty{
  display:grid;
  place-items:center;
  background:#edf5f8;
  font-size:22px;
}
#workspace .abr-pdash-person-info{
  display:flex;
  flex:1;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
#workspace .abr-pdash-person-info b{
  color:#28536a;
  font-size:12px;
  overflow-wrap:anywhere;
}
#workspace .abr-pdash-person-info small{
  color:#82949d;
  font-size:10px;
}
#workspace .abr-pdash-balance{
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
#workspace .abr-pdash-balance.debtor{color:#d94b4b}
#workspace .abr-pdash-balance.creditor{color:#287fc0}
#workspace .abr-pdash-balance.neutral{color:#84949b}
#workspace .abr-pdash-person-row button{
  flex:0 0 auto;
  min-height:34px;
  font-size:10px;
}
#workspace .abr-pdash-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  padding:15px 4px 2px;
  color:#718792;
  font-size:11px;
}
#workspace .abr-pdash-pagination button{
  min-height:32px;
  padding:5px 14px;
}
#workspace .abr-pdash-assistant{
  min-height:270px;
  padding:25px;
  justify-content:center;
  border-color:#d8e8ef;
  background:linear-gradient(160deg,#fff,#eef7fb);
}
#workspace .abr-pdash-assistant-art{
  width:88px;
  height:88px;
  border-radius:25px;
  font-size:48px;
}
#workspace .abr-pdash-assistant>b{font-size:15px}
#workspace .abr-pdash-assistant>p{font-size:11px}
#workspace .abr-pdash-assistant-input{
  display:flex;
  width:min(100%,620px);
  gap:8px;
  margin:12px auto;
}
#workspace .abr-pdash-assistant-input input{
  flex:1;
  min-width:0;
  min-height:42px;
  padding:9px 13px;
  border:1px solid #d9e7ed;
  border-radius:10px;
  background:#f7fafb;
  font:inherit;
  font-size:11px;
}
@media(max-width:600px){
  #workspace .abr-pdash-person-row{gap:8px;padding:9px}
  #workspace .abr-pdash-avatar{flex-basis:36px;width:36px;height:36px}
  #workspace .abr-pdash-balance{font-size:9px}
  #workspace .abr-pdash-person-row button{font-size:9px;padding:5px 7px}
  #workspace .abr-pdash-pagination{gap:7px;font-size:9px}
}

/* PERSONS DASHBOARD - TWO CARDS ABOVE FULL WIDTH CHART */
#workspace .abr-pdash-bottom-grid{
  display:flex;
  flex-direction:column;
  direction:rtl;
  gap:16px;
}
#workspace .abr-pdash-top-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  direction:rtl;
  align-items:stretch;
}
#workspace .abr-pdash-top-grid>.abr-pdash-section{
  width:100%;
  min-width:0;
}
#workspace .abr-pdash-top-grid .abr-pdash-assistant{
  min-height:270px;
}
#workspace .abr-pdash-bottom-grid>.abr-pdash-overview{
  width:100%;
}
@media(max-width:650px){
  #workspace .abr-pdash-top-grid{grid-template-columns:1fr}
}

/* PERSONS DASHBOARD - RECENT AND OTHER PEOPLE */
#workspace .abr-pdash-recent-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 4px;
  border-bottom:1px solid #e8eef2;
}
#workspace .abr-pdash-recent-row:last-child{border-bottom:0}
#workspace .abr-pdash-recent-row b{font-size:13px;color:#263b4a}
#workspace .abr-pdash-other-search{margin:12px 0}
#workspace .abr-pdash-other-search input{
  width:100%;
  min-height:42px;
  border:1px solid #d8e4eb;
  border-radius:10px;
  padding:8px 12px;
  background:#fbfdff;
  color:#263b4a;
  font:inherit;
}
#workspace .abr-pdash-bars{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:20px 4px 8px;
}
#workspace .abr-pdash-bar-row{
  display:grid;
  grid-template-columns:100px minmax(80px,1fr) minmax(110px,auto);
  align-items:center;
  gap:12px;
  font-size:13px;
}
#workspace .abr-pdash-bar-track{
  height:15px;
  overflow:hidden;
  border-radius:20px;
  background:#edf2f5;
}
#workspace .abr-pdash-bar-track i{
  display:block;
  height:100%;
  min-width:2px;
  border-radius:20px;
}
#workspace .abr-pdash-bar-track i.debt{background:#e8a34e}
#workspace .abr-pdash-bar-track i.credit{background:#39999a}
#workspace .abr-pdash-bar-row b{
  direction:rtl;
  text-align:left;
  color:#344b5b;
  font-size:12px;
}
#workspace .abr-pdash-bars-total{
  padding-top:12px;
  border-top:1px solid #e8eef2;
  color:#536b7b;
  font-size:13px;
  font-weight:700;
}
@media(max-width:650px){
  #workspace .abr-pdash-bar-row{
    grid-template-columns:75px minmax(50px,1fr);
  }
  #workspace .abr-pdash-bar-row b{
    grid-column:2;
    text-align:right;
  }
}

/* PERSONS: FIVE HORIZONTAL CUSTOMER CARDS */
#workspace #abr-pdash-people-list{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
#workspace #abr-pdash-people-list .abr-pdash-person-row{
  min-width:0;
  min-height:190px;
  height:100%;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:16px 10px;
  text-align:center;
  box-shadow:0 3px 12px rgba(35,75,95,.06);
}
#workspace #abr-pdash-people-list .abr-pdash-avatar{
  flex:0 0 54px;
  width:54px;
  height:54px;
}
#workspace #abr-pdash-people-list .abr-pdash-person-info{
  flex:0 0 auto;
  align-items:center;
  width:100%;
}
#workspace #abr-pdash-people-list .abr-pdash-balance{
  white-space:normal;
  text-align:center;
}
#workspace #abr-pdash-people-list .abr-pdash-person-row button{
  width:100%;
}
#workspace #abr-pdash-people-list .abr-pdash-pagination,
#workspace #abr-pdash-people-list .abr-pdash-empty-list{
  grid-column:1/-1;
}
@media(max-width:1100px){
  #workspace #abr-pdash-people-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
  #workspace #abr-pdash-people-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){
  #workspace #abr-pdash-people-list{grid-template-columns:1fr}
}

/* PERSONS: ASSISTANT + DONUT OVERVIEW */
#workspace .abr-pdash-top-grid>.abr-pdash-overview{
  width:100%;
  min-width:0;
}
#workspace .abr-pdash-overview .abr-pdash-datebar{
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:8px;
}
#workspace .abr-pdash-donut-wrap{
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  gap:16px;
  padding:14px 0;
  min-height:190px;
}
#workspace .abr-pdash-donut{
  width:170px;
  height:170px;
  flex:0 0 170px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
#workspace .abr-pdash-donut-hole{
  width:112px;
  height:112px;
  border-radius:50%;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
}
#workspace .abr-pdash-donut-hole b{
  font-size:16px;
  color:#263b4a;
}
#workspace .abr-pdash-donut-hole small{
  font-size:11px;
  color:#71808b;
}
#workspace .abr-pdash-donut-legend{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}
#workspace .abr-pdash-donut-legend>div{
  display:grid;
  grid-template-columns:10px 1fr;
  gap:4px 8px;
  align-items:center;
  font-size:12px;
}
#workspace .abr-pdash-donut-legend i{
  width:10px;
  height:10px;
  border-radius:50%;
}
#workspace .abr-pdash-donut-legend i.debt{background:#e8a34e}
#workspace .abr-pdash-donut-legend i.credit{background:#39999a}
#workspace .abr-pdash-donut-legend b{
  grid-column:2;
  color:#344b5b;
}
@media(max-width:760px){
  #workspace .abr-pdash-donut-wrap{gap:12px}
  #workspace .abr-pdash-donut{
    width:140px;
    height:140px;
    flex-basis:140px;
  }
  #workspace .abr-pdash-donut-hole{
    width:94px;
    height:94px;
  }
}
@media(max-width:420px){
  #workspace .abr-pdash-donut-wrap{
    flex-direction:column;
    align-items:center;
  }
  #workspace .abr-pdash-donut-legend{
    width:100%;
  }
}

/* New Person Form - Modern UI */
.person-form-new-v1 {
  direction: rtl;
  color: #183153;
  font-family: inherit;
}
.person-form-new-v1 .pfn-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg,#123e91,#1976d2 65%,#38a4e8);
  box-shadow: 0 8px 24px rgba(25,118,210,.18);
}
.person-form-new-v1 .pfn-banner h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.person-form-new-v1 .pfn-banner p {
  margin: 0;
  color: #e4efff;
  font-size: 13px;
}
.person-form-new-v1 .pfn-kicker {
  color: #c8e2ff;
  font-size: 10px;
  letter-spacing: 1px;
}
.person-form-new-v1 .pfn-banner-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #ffffff55;
  border-radius: 17px;
  background: #ffffff20;
  font-size: 30px;
}
.person-form-new-v1 .pfn-main {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 20px;
  align-items: start;
}
.person-form-new-v1 .pfn-profile {
  padding: 18px 12px;
  border: 1px solid #dce9f8;
  border-radius: 16px;
  background: #f5f9ff;
  text-align: center;
}
.person-form-new-v1 .pfn-avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e2efff;
  color: #2875c7;
  box-shadow: 0 3px 14px #174b851c;
  font-size: 38px;
}
.person-form-new-v1 .pfn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-form-new-v1 .pfn-upload {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 9px;
  background: #e1efff;
  color: #1765b4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.person-form-new-v1 .pfn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3ebf5;
}
.person-form-new-v1 .person-tab {
  padding: 10px 16px;
  border: 1px solid #dce7f4;
  border-radius: 10px;
  background: #f7faff;
  color: #55708f;
  cursor: pointer;
  font-weight: 700;
}
.person-form-new-v1 .person-tab.active {
  border-color: #2479cf;
  background: #eaf4ff;
  color: #1767b8;
}
.person-form-new-v1 .person-tab-body {
  display: none;
}
.person-form-new-v1 .person-tab-body.active {
  display: block;
}
.person-form-new-v1 .pfn-individual-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.person-form-new-v1 .pfn-section-title {
  margin: 8px 0 16px;
  color: #1b5795;
  font-size: 15px;
  font-weight: 800;
}
.person-form-new-v1 .pfn-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.person-form-new-v1 .pfn-role {
  padding: 9px 13px;
  border: 1px solid #dce7f4;
  border-radius: 10px;
  background: #f8fbff;
}
.person-form-new-v1 .field input,
.person-form-new-v1 .field select,
.person-form-new-v1 .field textarea {
  max-width: 100%;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s,box-shadow .2s;
}
.person-form-new-v1 .field input:focus,
.person-form-new-v1 .field select:focus,
.person-form-new-v1 .field textarea:focus {
  border-color: #3287d8;
  outline: none;
  box-shadow: 0 0 0 3px #3287d81c;
}
.person-form-new-v1 .pfn-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5edf6;
}
@media(max-width:800px) {
  .person-form-new-v1 .pfn-main {
    grid-template-columns: 1fr;
  }
  .person-form-new-v1 .pfn-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .person-form-new-v1 .pfn-avatar {
    width: 76px;
    height: 76px;
    margin: 0;
    flex: 0 0 76px;
  }
}
@media(max-width:520px) {
  .person-form-new-v1 .pfn-banner {
    padding: 18px;
  }
  .person-form-new-v1 .pfn-banner h2 {
    font-size: 18px;
  }
  .person-form-new-v1 .pfn-individual-fields {
    grid-template-columns: 1fr;
  }
  .person-form-new-v1 .pfn-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}
