.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.card-head h3{margin:0;font-size:14.5px;font-weight:700}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.stat{position:relative; overflow:hidden; display:flex; align-items:center; gap:16px; min-width:0;}
.stat-info{display:flex; flex-direction:column; flex:1; min-width:0}
.stat-label{color:var(--muted);font-size:12.5px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-value{font-size:21px;font-weight:700;letter-spacing:-.3px;word-break:break-word;line-height:1.25}
.stat-sub{font-size:11.5px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stat .ic{width:76px; height:76px; border-radius:24px; display:grid; place-items:center;font-size:36px; background:var(--surface-2); flex-shrink:0;}
.stat.green .stat-value{color:var(--green)}
.stat.red .stat-value{color:var(--red)}
.stat.purple .stat-value{color:var(--purple)}
.grid-2{display:grid;grid-template-columns:1.35fr 1fr;gap:16px; min-width:0}
.grid-2 > *{min-width:0}

.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px; min-width:0}
.field label{font-size:12.5px;color:var(--muted);font-weight:500}
.input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);outline:none;transition:.15s; min-width:0;}
.input:focus{border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 3px var(--primary-soft)}
select.input{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(0% + 16px) 50%,calc(0% + 21px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-inline-start:32px;}
textarea.input{resize:vertical; min-height:60px}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}

.btn{border:1px solid var(--border);background:var(--surface);padding:9px 16px;border-radius:12px;cursor:pointer;font-weight:600;transition:.16s;display:inline-flex;align-items:center;gap:7px;justify-content:center;white-space:nowrap;}
.btn:hover{background:var(--surface-2)}
.btn.primary{background:var(--button-primary, var(--primary));border-color:var(--button-primary, var(--primary));color:#fff}
.btn.primary:hover{filter:brightness(1.07)}
.btn.ghost{background:transparent}
.btn.danger{background:var(--red);border-color:var(--red);color:#fff}
.btn.success{background:var(--green);border-color:var(--green);color:#fff}
.btn.purple{background:var(--purple);border-color:var(--purple);color:#fff}
.btn.small{padding:6px 12px;font-size:12.5px;border-radius:10px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.excel{background:#217346;border-color:#217346;color:#fff}
.btn.pdf{background:#d33;border-color:#d33;color:#fff}
.btn.word{background:#2b579a;border-color:#2b579a;color:#fff}
.btn.excel:hover,.btn.pdf:hover,.btn.word:hover{filter:brightness(1.07)}
.check-add-btn{padding:10px 18px;font-size:13px;min-height:44px;border-radius:12px}
.check-row-badge{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:9px;background:var(--surface-2);border:1px solid var(--border);font-weight:700;font-size:12px;color:var(--primary)}


.icon-btn{border:0;background:transparent;cursor:pointer;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:15px;transition:.15s;color:var(--muted); flex-shrink:0;}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn.danger:hover{background:var(--red-soft);color:var(--red)}
.seg{display:inline-flex;background:var(--surface-2);border-radius:12px;padding:4px;gap:4px;border:1px solid var(--border)}
.seg-btn{border:0;background:transparent;padding:8px 18px;border-radius:9px;cursor:pointer;font-weight:600;color:var(--muted);transition:.16s}
.seg-btn.active{background:var(--surface);color:var(--text);box-shadow:0 2px 8px rgba(0,0,0,.08)}
.seg-btn.active[data-type="expense"]{color:var(--red)}
.seg-btn.active[data-type="income"]{color:var(--green)}

.table-wrap{overflow-x:auto;border-radius:14px;border:1px solid var(--border); -webkit-overflow-scrolling:touch}
table.table{width:100%;border-collapse:collapse;min-width:720px;font-size:13px}
table.table th{background:var(--surface-2);padding:11px 12px;text-align:right;font-weight:600;color:var(--muted);font-size:12px;white-space:nowrap;border-bottom:1px solid var(--border)}
table.table td{padding:11px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
table.table tr:last-child td{border-bottom:0}
table.table tbody tr:hover{background:var(--surface-2)}

.tx-list{display:flex;flex-direction:column;gap:8px}
.tx-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:13px;background:var(--surface-2); min-width:0}
.tx-ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:16px;flex:0 0 38px}
.tx-main{flex:1;min-width:0}
.tx-title{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-meta{font-size:11.5px;color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.dropzone{border:2px dashed var(--border);border-radius:14px;padding:20px 14px;text-align:center;background:var(--surface);transition:.18s;position:relative;cursor:pointer;min-width:0;}
.dropzone:hover, .dropzone.dragover{border-color:var(--primary); background:var(--primary-soft);}
.dropzone.dragover{ transform:scale(1.01); }
.dropzone .dz-inner{display:block;}
.dropzone .dz-icon{font-size:28px; margin-bottom:8px; line-height:1;}
.dropzone .dz-title{font-size:13.5px; font-weight:700; margin-bottom:6px; color:var(--text);}
.dropzone .dz-hint{font-size:11.5px; color:var(--muted); margin-bottom:12px;}
.dropzone .dz-btn{display:inline-block; padding:8px 18px; border-radius:10px; background:var(--surface-2); color:var(--text); border:1px solid var(--border); font-weight:600; font-size:12.5px; cursor:pointer; font-family:inherit;}
.dropzone .dz-btn:hover{background:var(--primary-soft); border-color:var(--primary); color:var(--primary);}
.dropzone .dz-preview-inner{display:none; align-items:center; justify-content:flex-start; gap:12px; text-align:right;}
.dropzone.has-file .dz-inner{display:none;}
.dropzone.has-file{background:var(--surface); cursor:default; border-style:solid;}
.dropzone.has-file .dz-preview-inner{display:flex;}
.dropzone .dz-preview-box img{width:66px; height:66px; border-radius:12px; object-fit:cover; border:1px solid var(--border); display:block;}
.dropzone .dz-preview-box .pdf{width:66px; height:66px; border-radius:12px; border:1px solid var(--border); display:grid; place-items:center; background:var(--surface-2); font-size:11px; font-weight:700; color:var(--red);}
.dropzone .dz-preview-info{flex:1; min-width:0;}
.dropzone .dz-preview-info .nm{font-size:13px; color:var(--text); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.dropzone .dz-preview-info .sub{font-size:11px; color:var(--muted); margin-top:2px;}
.dropzone .rm{border:0; background:var(--red-soft); color:var(--red); width:34px; height:34px; border-radius:10px; cursor:pointer; display:grid; place-items:center; font-size:14px; font-weight:700; flex-shrink:0; transition:.15s;}
.dropzone .rm:hover{background:var(--red); color:#fff;}

.cat-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cat-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:13px;background:var(--surface-2);margin-bottom:8px; min-width:0}
.cat-icon-circle{width:30px;height:30px;min-width:30px;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2px 6px rgba(0,0,0,.08)}
.cat-icon-circle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cat-item .nm{flex:1;font-weight:600;font-size:13.5px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cat-item .cnt{font-size:11.5px;color:var(--muted)}
.color-pick{display:flex;gap:6px;flex-wrap:wrap}
.color-pick button{width:28px;height:28px;border-radius:50%;border:2px solid transparent;cursor:pointer}
.color-pick button.active{border-color:var(--text);transform:scale(1.12)}

.sum-strip{display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-bottom:8px}
.sum-box{background:var(--surface-2); border-radius:12px; padding:12px 14px; border:1px solid var(--border)}
.sum-box .lbl{font-size:11.5px; color:var(--muted); margin-bottom:4px}
.sum-box .val{font-size:16px; font-weight:700; line-height:1.2}
.sum-box .val.green{color:var(--green)}
.sum-box .val.red{color:var(--red)}
.sum-box .val.amber{color:var(--amber)}
.sum-box .val.purple{color:var(--purple)}

.filter-card{background:var(--surface-2); border:1px dashed var(--border); border-radius:14px; padding:12px 14px; margin-bottom:12px;}
.filter-grid{display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr auto; gap:10px; align-items:end;}
.filter-grid .field{margin:0}
.filter-summary{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; font-size:12px; color:var(--muted);}
.filter-summary b{color:var(--text)}

.month-chips{display:flex;flex-wrap:wrap;gap:6px}
.month-chip{padding:5px 12px;border-radius:20px;border:1px solid var(--border);background:var(--surface-2);cursor:pointer;font-size:12px;font-weight:600;transition:.15s;color:var(--muted);}
.month-chip:hover{background:var(--primary-soft);color:var(--primary);border-color:var(--primary)}
.month-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.report-summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:4px}

.export-actions{display:flex;gap:10px;flex-wrap:wrap}

.share-block{margin-top:14px;padding-top:14px;border-top:1px dashed var(--border)}
.share-block .share-title{font-size:12.5px;font-weight:700;color:var(--text);margin-bottom:4px;display:flex;align-items:center;gap:6px}
.share-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.share-grid .btn{justify-content:flex-start;padding:9px 12px;font-size:12.5px;gap:8px}
.share-grid .btn .s-ic{font-size:15px;line-height:1;display:inline-flex}
.share-grid .btn.google{background:#fff;border-color:#dadce0;color:#3c4043}
.share-grid .btn.google:hover{background:#f8f9fa;filter:none}
html[data-theme="dark"] .share-grid .btn.google{background:#2a2f3a;border-color:#3a4150;color:#e8eefb}
.share-grid .btn.telegram{background:#229ED9;border-color:#229ED9;color:#fff}
.share-grid .btn.whatsapp{background:#25D366;border-color:#25D366;color:#fff}
.share-grid .btn.email{background:#d44638;border-color:#d44638;color:#fff}
.share-grid .btn.telegram:hover,.share-grid .btn.whatsapp:hover,.share-grid .btn.email:hover{filter:brightness(1.08)}

.switch{position:relative;width:44px;height:24px;background:var(--border);border-radius:20px;cursor:pointer;transition:.2s;border:0;padding:0; flex-shrink:0}
.switch::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:.2s}
.switch.on{background:var(--primary)}
.switch.on::after{inset-inline-start:23px}

/* Status Select */
.status-select{appearance:none;padding:4px 22px 4px 10px;border-radius:20px;font-size:11.5px;font-weight:600;cursor:pointer;outline:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 8px center;background-size:8px;transition:all 0.2s;width:100%;max-width:120px;}
.status-select.pending { background-color: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber); }
.status-select.cleared { background-color: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.status-select.bounced { background-color: var(--red-soft); color: var(--red); border: 1px solid var(--red); }
/* صفحه‌بندی لیست تراکنش‌ها */
.tx-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:14px;
  border-top:1px solid var(--border);
  background:var(--surface);
}
.tx-page-size{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}
.tx-page-size .input{width:78px;padding:7px 10px}
.tx-page-info{font-size:12px;color:var(--muted);text-align:center;flex:1;min-width:180px}
.tx-page-controls{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.tx-page-controls .btn{min-width:34px;padding:6px 9px}
.tx-page-dots{color:var(--muted);padding:0 2px}
.tx-row-number{width:58px;text-align:center !important}
.tx-row-badge{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:9px;background:var(--surface-2);border:1px solid var(--border);font-weight:700;font-size:12px;color:var(--primary)}

/* خلاصه تراکنش‌ها: خواناتر و واکنش‌گرا */
#txSummary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:7px 14px;
  font-size:14px;
  font-weight:700;
  line-height:1.7;
  color:var(--text);
  background:var(--surface-2);
  border-color:var(--border);
  white-space:normal;
  text-align:center;
}

@media (max-width:560px){
  #txSummary{
    width:100%;
    min-height:42px;
    padding:8px 10px;
    font-size:13.5px;
    line-height:1.9;
  }
}

@media (max-width:380px){
  #txSummary{
    font-size:12.5px;
    padding:7px 8px;
  }
}


/* بودجه‌بندی */
.budget-filter-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-bottom:18px}
.budget-editor{border-top:1px solid var(--border);padding-top:18px}
.budget-summary-table td,.budget-summary-table th{vertical-align:middle}
.budget-sub-input{max-width:190px;text-align:left;direction:ltr}
.budget-filter-grid .input{min-height:44px}
@media (max-width:700px){.budget-filter-grid{grid-template-columns:1fr}.budget-editor .row-2{grid-template-columns:1fr}.budget-sub-input{max-width:none;width:100%}.budget-summary-table{min-width:0}.budget-summary-table thead{display:none}.budget-summary-table,.budget-summary-table tbody,.budget-summary-table tr,.budget-summary-table td{display:block;width:100%}.budget-summary-table tr{border:1px solid var(--border);border-radius:14px;margin-bottom:10px;padding:10px}.budget-summary-table td{border:0!important;padding:5px 0}.budget-summary-table td::before{content:attr(data-label);font-weight:700;color:var(--muted);display:inline-block;min-width:100px}}
/* بهبود نمایش جدول زیر‌بودجه‌ها در موبایل: هر ردیف به کارت با ستون‌های منظم تبدیل می‌شود */
@media (max-width:700px){
  #budgetCatTable,.table-wrap:has(.budget-summary-table){width:100%;min-width:0;max-width:100%}
  .budget-summary-table{table-layout:fixed;overflow:visible}
  .budget-summary-table tbody{min-width:0}
  .budget-summary-table tr{box-sizing:border-box;width:100%;min-width:0;display:block;padding:10px 12px}
  .budget-summary-table td{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(82px,30%) minmax(0,1fr);align-items:center;column-gap:8px;width:100%;min-width:0;padding:7px 0!important;text-align:right!important;overflow-wrap:anywhere}
  .budget-summary-table td::before{min-width:0;width:auto;display:block;margin:0;white-space:normal;font-size:12px}
  .budget-summary-table td .category-cell{min-width:0;max-width:100%;gap:6px}
  .budget-summary-table td .category-cell-name{white-space:normal;overflow-wrap:anywhere}
  .budget-summary-table .budget-sub-input{width:50%!important;max-width:50%!important;min-width:0;box-sizing:border-box;font-size:14px;padding-inline:9px;justify-self:start}
  .budget-summary-table td[data-label="مصرف"]{justify-items:start}
  .budget-summary-table td[data-label="مصرف"] .percent-ring{justify-self:start}
  #budgetSubSave{width:100%;box-sizing:border-box;white-space:normal}
}
@media (max-width:380px){
  .budget-summary-table tr{padding:8px}
  .budget-summary-table td{grid-template-columns:minmax(72px,28%) minmax(0,1fr);column-gap:6px;font-size:12.5px}
  .budget-summary-table td::before{font-size:11.5px}
}


/* ===== دسته‌بندی‌های دارای آیکون SVG ===== */
.category-cell{display:inline-flex;align-items:center;gap:8px;min-width:0;vertical-align:middle}
.category-cell-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-badge{
  width:28px;height:28px;min-width:28px;border-radius:50%;
  display:inline-grid;place-items:center;
  background:var(--cat-color,var(--muted));color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2px 6px rgba(0,0,0,.10);
  vertical-align:middle;
}
.category-badge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.category-select-wrap{position:relative;min-width:0}
.category-select-wrap .category-select-input{padding-inline-start:42px}
.category-select-icon{
  position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);
  width:28px;height:28px;min-width:28px;border-radius:50%;
  display:grid;place-items:center;z-index:2;pointer-events:none;
  background:var(--cat-color,var(--muted));color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2px 6px rgba(0,0,0,.10);
}
.category-select-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ===== انتخابگر سفارشی دسته‌بندی با دایره رنگی و SVG ===== */
.custom-category-select{position:relative}
.native-category-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.category-select-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;text-align:right;cursor:pointer;min-height:44px;padding-inline:12px!important;position:relative}
.category-select-trigger > #txCatTriggerContent{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.category-select-trigger .category-badge{width:25px;height:25px;min-width:25px}
.category-select-trigger .category-badge svg{width:14px;height:14px}
.category-select-chevron{font-size:18px;line-height:1;color:var(--muted);margin-inline-start:auto}
.category-options{position:absolute;z-index:1000;inset-inline:0;top:calc(100% + 5px);max-height:260px;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:5px;box-shadow:0 12px 28px rgba(0,0,0,.14)}
.category-option{width:100%;border:0;background:transparent;color:var(--text);font:inherit;display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:9px;cursor:pointer;text-align:right}
.category-option:hover,.category-option.selected{background:var(--primary-soft)}
.category-option .category-badge{width:30px;height:30px;min-width:30px}
.category-option .category-badge svg{width:16px;height:16px}
.category-option-empty{padding:12px;color:var(--muted);text-align:center}

/* ===== حلقه درصد ===== */
.percent-ring{--ring-size:48px;--ring-color:var(--primary);--ring-pct:0%;position:relative;width:var(--ring-size);height:var(--ring-size);min-width:var(--ring-size);border-radius:50%;display:inline-grid;place-items:center;vertical-align:middle;background:conic-gradient(var(--ring-color) var(--ring-pct),var(--surface-2) 0);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.percent-ring::after{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--surface)}
.percent-ring b{position:relative;z-index:1;font-size:12px;font-weight:800;line-height:1;color:var(--text);direction:rtl}
.budget-summary-table td[data-label="مصرف"]{text-align:center}
.report-share-ring{--ring-size:46px}

/* خلاصه ماه‌های گزارش: نمایش کارت‌محور و کاملاً واکنش‌گرا در موبایل */
.report-month-table-wrap{width:100%;min-width:0}
.report-month-table{min-width:520px}

@media (max-width:700px){
  .report-month-table-wrap{overflow:visible;border:0}
  .report-month-table{display:block;width:100%;min-width:0!important;font-size:12.5px}
  .report-month-table thead{display:none}
  .report-month-table tbody{display:block;width:100%}
  .report-month-table tbody tr{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:0 14px;
    width:100%;
    box-sizing:border-box;
    margin:0 0 10px;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface);
    box-shadow:0 2px 8px rgba(0,0,0,.04);
  }
  .report-month-table tbody tr:last-child{margin-bottom:0}
  .report-month-table tbody tr td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:8px 0;
    border:0!important;
    border-bottom:1px dashed var(--border)!important;
    font-size:12px;
    line-height:1.5;
    white-space:normal!important;
  }
  .report-month-table tbody tr td:nth-child(1){
    grid-column:1 / -1;
    padding:8px 9px;
    margin-bottom:2px;
    border-bottom:1px solid var(--border)!important;
    border-radius:8px;
    background:var(--surface-2);
    font-weight:800;
  }
  .report-month-table tbody tr td:last-child{border-bottom:0!important}
  .report-month-table tbody tr td::before{
    content:attr(data-label);
    flex:0 0 auto;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
  }
  .report-month-table tbody tr td > *{min-width:0}
  .report-month-table tbody tr td.amount{font-size:12.5px}
  .report-month-table tbody tr.month-summary-total{
    background:var(--surface-2);
    border-color:var(--border);
  }
  .report-month-table tbody tr.month-summary-total td:nth-child(1){
    background:var(--primary-soft);
    color:var(--text);
  }
}

@media (max-width:380px){
  .report-month-table tbody tr{padding:9px 10px;gap:0 10px}
  .report-month-table tbody tr td{font-size:11.5px;padding:7px 0}
  .report-month-table tbody tr td::before{font-size:10.5px}
  .report-month-table tbody tr td.amount{font-size:12px}
}

/* گزارش جدولی وام و اقساط */
.loan-report-card{min-width:0}
.loan-report-head{border-bottom:1px solid var(--border)}
.loan-table-wrap{min-width:0}
.loan-report-table{min-width:1180px !important}
.loan-row-number{width:58px;text-align:center !important}
.loan-row-badge{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:9px;background:var(--surface-2);border:1px solid var(--border);font-weight:700;font-size:12px;color:var(--primary)}
.loan-progress-mini{height:6px;min-width:90px;margin-top:7px;border-radius:99px;background:var(--surface-2);overflow:hidden;border:1px solid var(--border)}
.loan-progress-mini i{display:block;height:100%;border-radius:inherit}
.loan-actions{display:flex;align-items:center;gap:4px;justify-content:flex-start;flex-wrap:wrap}
.loan-pagination{border-top:1px solid var(--border)}

/* پیشرفت وام در جدول گزارش */
.loan-progress-cell{min-width:220px}
.loan-progress-cell > .progress-flex{flex-wrap:nowrap;gap:10px;align-items:center}
.loan-progress-cell > .progress-flex > .progress-main{min-width:120px}
.loan-progress-cell .progress-ring-container{padding:3px 0}
.loan-progress-cell .progress-ring-wrap{width:72px;height:72px}
.loan-progress-cell .progress-ring-center .pr-pct{font-size:15px}
.loan-progress-cell .progress-ring-center .pr-sub{font-size:8px}
.loan-progress-cell .loan-progress-linear{min-width:115px}
.loan-progress-cell .loan-progress-mini{width:100%;min-width:0;margin-top:6px}
.loan-progress-cell .tx-meta{text-align:center;margin-top:4px}


.ui-color-settings{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.ui-color-settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ui-color-settings-head strong{font-size:13.5px}
.ui-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ui-color-grid .field{margin:0}
@media(max-width:620px){.ui-color-grid{grid-template-columns:1fr}.ui-color-settings-head{align-items:flex-start;flex-direction:column}}
