/* ================= فۆنتی کوردی ================= */
@font-face {
    font-family: 'Kurdish';
    src: url('../vendor/fonts/noto-sans-arabic-arabic-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Kurdish';
    src: url('../vendor/fonts/noto-sans-arabic-arabic-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: 'Kurdish';
    src: url('../vendor/fonts/noto-sans-arabic-arabic-700-normal.woff2') format('woff2');
    font-weight: 600 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
    --app-bg: #eceef1;
    --tile-bg: #d5d8dc;
    --tile-hover: #c6cad0;
    --tile-color: #2f55d4;
    --ink: #1d2433;
    --muted: #6b7280;
    --bs-body-font-family: 'Kurdish', 'Segoe UI', Tahoma, sans-serif;
}

body {
    font-family: 'Kurdish', 'Segoe UI', Tahoma, sans-serif;
    background: var(--app-bg);
    color: var(--ink);
    min-height: 100vh;
}

.ltr { direction: ltr; unicode-bidi: embed; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.fw-semibold { font-weight: 600 !important; }

/* ================= شریتی سەرەوە (وەک وێنەی یەکەم) ================= */
.topbar {
    background: #f7f8fa;
    border-bottom: 1px solid #dfe2e6;
    padding: .5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.tb-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcdfe3;
    border: 0;
    border-radius: 6px;
    color: var(--tile-color);
    text-decoration: none;
    font-size: .9rem;
    transition: background .15s;
}
.tb-btn:hover { background: #c9cdd3; color: var(--tile-color); }
.tb-btn.danger { color: #e03131; }
.tb-brand {
    background: #dcdfe3;
    border-radius: 6px;
    padding: .35rem .75rem;
    font-weight: 700;
    color: #3b4250;
    text-decoration: none;
    font-size: .9rem;
    max-width: 220px;
}
.tb-title { font-weight: 700; color: #3b4250; }
.tb-search { max-width: 260px; }
.tb-search .form-control { background: #fff; border-color: #dcdfe3; font-size: .85rem; }

/* ================= کارتی ژمارە (پەڕەکانی تر) ================= */
/* داشبۆردی سەرەکی شێوازی theme-soft بەکاردەهێنێت (لە خوارەوە) */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: .9rem 1rem;
    border: 1px solid #e3e6ea;
    height: 100%;
}
.stat-card .stat-label { color: var(--muted); font-size: .8rem; }
.stat-card .stat-value { font-weight: 800; font-size: 1.15rem; }
.stat-card .stat-sub { font-size: .75rem; color: var(--muted); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.stat-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.stat-card:hover { border-color: #adb5bd; box-shadow: 0 6px 14px rgba(0, 0, 0, .06); transform: translateY(-1px); }

/* ================= داشبۆردی موشتەری (وەک وێنەی دووەم) ================= */
.client-panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    border: 1px solid #e3e6ea;
}
.client-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 10px;
}
.client-logo-placeholder {
    width: 86px;
    height: 86px;
    border-radius: 12px;
    background: #f1f3f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #868e96;
}
.client-name {
    color: #0d6efd;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1.4;
}
.client-nav .btn {
    width: 100%;
    font-size: 1.05rem;
    padding: .55rem .75rem;
    margin-bottom: .7rem;
    border-radius: 6px;
    position: relative;
    font-weight: 500;
}
.client-nav .btn > .count {
    position: absolute;
    inset-inline-start: .6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .7rem;
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .1rem .5rem;
    font-weight: 600;
}
.client-nav .btn > .count:empty { display: none; }
.client-nav .btn .meta {
    position: absolute;
    inset-inline-start: .55rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.client-nav .btn .meta .count {
    font-size: .7rem;
    background: color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 999px;
    padding: .1rem .5rem;
    font-weight: 600;
}
.client-nav .exp { display: inline-flex; align-items: center; gap: .2rem; font-size: .9rem; }
.client-nav .exp .days { font-size: .75rem; font-weight: 700; }

/* دوگمەی بەش بە ڕەنگی دۆخی بەسەرچوون */
.client-nav .btn.sec-colored {
    background: var(--sec-bg);
    border-color: var(--sec-bg);
    color: var(--sec-fg);
}
.client-nav .btn.sec-colored:hover,
.client-nav .btn.sec-colored:focus-visible { filter: brightness(.9); color: var(--sec-fg); }
.client-nav .btn.sec-current {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sec-bg, #0d6efd);
    font-weight: 700;
}
.sec-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem .9rem;
    font-size: .75rem;
    color: var(--muted);
    margin: -.15rem 0 .8rem;
}
.sec-legend i {
    display: inline-block;
    width: .8rem;
    height: .8rem;
    border-radius: 3px;
    vertical-align: -2px;
    margin-inline-end: .3rem;
}
.client-nav .add-section {
    background: transparent;
    border: 2px dashed #adb5bd;
    color: #6c757d;
    font-size: .95rem;
}
.client-nav .add-section:hover { border-color: #0d6efd; color: #0d6efd; background: #f1f6ff; }

/* ================= حسابی موشتەری ================= */
.acc-box { border: 1px solid #e3e6ea; border-radius: 8px; padding: .55rem .4rem; height: 100%; background: #fff; }
.acc-box .l { font-size: .75rem; color: var(--muted); }
.acc-box .v { font-weight: 800; font-size: 1rem; }
.acc-box.profit { background: #ebfbee; border-color: #8ce99a; color: #2b8a3e; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.acc-box.profit .l { color: #2b8a3e; font-weight: 600; }
.acc-box.profit.neg { background: #fff5f5; border-color: #ffa8a8; color: #c92a2a; }
.acc-box.profit.neg .l { color: #c92a2a; }

/* ================= بەسەرچوون ================= */
.expiry-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.client-nav .nav-sep {
    font-size: .75rem;
    color: var(--muted);
    margin: .4rem 0 .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.client-nav .nav-sep::before, .client-nav .nav-sep::after { content: ''; flex: 1; height: 1px; background: #dee2e6; }

/* ================= گشتی ================= */
.card { border-color: #e3e6ea; border-radius: 10px; scroll-margin-top: 70px; }
.card-header { background: #fff; font-weight: 700; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { background: #f4f5f7; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.required::after { content: ' *'; color: #e03131; }
.filters { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: .75rem; margin-bottom: 1rem; }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty-state i { font-size: 2.2rem; display: block; margin-bottom: .5rem; opacity: .5; }
.alert-list .list-group-item { font-size: .88rem; }
.file-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #f1f3f5;
    border-radius: 6px;
    padding: .25rem .5rem;
    font-size: .8rem;
    margin: 0 0 .3rem .3rem;
    text-decoration: none;
    color: var(--ink);
    max-width: 260px;
}
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #dee2e6; }
.placeholder-list code { cursor: pointer; background: #eef2ff; color: #3b5bdb; border-radius: 4px; padding: .05rem .35rem; margin: .1rem; display: inline-block; font-size: .78rem; }
.placeholder-list code:hover { background: #dbe4ff; }
textarea.doc-body { font-size: .95rem; line-height: 2; }
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0 !important; }
.ts-control { min-height: 38px; }

/* ================= خشتەی کار (چێکلیست) ================= */
.checklist .task-item { padding: .8rem 1rem; transition: background .15s; }
.checklist .task-item:hover { background: #f8f9fb; }
.task-check { width: 1.45em; height: 1.45em; margin-top: .1rem; cursor: pointer; border-width: 2px; border-color: #868e96; }
.task-check:checked { background-color: #2f9e44; border-color: #2f9e44; }
.task-title { font-weight: 600; }
.task-title .badge { font-size: .68rem; vertical-align: middle; }
.task-item.is-done { background: #ebfbee; }
.task-item.is-done .task-title { color: #2b8a3e; font-weight: 600; }
.task-item.is-cancelled { opacity: .55; }
.task-item.is-overdue { border-inline-start: 4px solid #e03131; }
.company-logo { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; flex-shrink: 0; background: #fff; border: 1px solid #e3e6ea; }
.company-logo-empty { display: inline-flex; align-items: center; justify-content: center; background: #f1f3f5; color: #868e96; font-size: 1.4rem; }
.company-row:hover { background: #fafbfc; }

/* ================= چوونەژوورەوە ================= */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: linear-gradient(135deg, #eceef1, #dbe4ff); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); padding: 2rem; }

/* ================= دەرچوون بۆ مۆبایل ================= */
@media (max-width: 575.98px) {
    .topbar { padding: .5rem; }
    .tb-brand { max-width: 150px; }
    .tb-search { display: none !important; }
}

/* ================= چاپ ================= */
@media print {
    .topbar, .no-print, .btn, .pagination, .filters, footer.app-footer { display: none !important; }
    body { background: #fff !important; }
    .card { border: 0 !important; }
}

/* ================= قازانج و زەرەر ================= */
.pl-box { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 1rem; }
.pl-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem 1rem;
    border-radius: 10px;
    padding: .85rem 1.1rem;
    border: 2px solid;
}
.pl-result-label { font-weight: 800; font-size: 1.15rem; }
.pl-result-words { font-size: .8rem; opacity: .85; }
.pl-result-amount { font-weight: 800; font-size: 1.6rem; direction: ltr; }
.pl-profit { background: #ebfbee; border-color: #8ce99a; color: #2b8a3e; }
.pl-loss { background: #fff5f5; border-color: #ffa8a8; color: #c92a2a; }
.pl-even { background: #f8f9fa; border-color: #dee2e6; color: #495057; }
.pl-box .table thead th { background: #f8f9fa; font-size: .85rem; }
.pl-box .table tfoot td { font-weight: 800; border-top: 2px solid #adb5bd; }
.pl-formula { margin-top: .9rem; padding: .55rem .8rem; background: #f8f9fa; border-radius: 8px; font-size: .92rem; }
.pl-tag { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 0 .35rem; margin-inline-end: .25rem; border: 1px solid; }
.pl-tag-profit { color: #2b8a3e; border-color: #8ce99a; background: #ebfbee; }
.pl-tag-loss { color: #c92a2a; border-color: #ffa8a8; background: #fff5f5; }
.pl-tag-even { color: #495057; border-color: #dee2e6; }
.print-body .pl-box { border: 0; padding: 0; }
.print-body .pl-result, .print-body .pl-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ================= قازانج و زەرەر (شاشە): هاوکێشەی داهات − خەرجی = ئەنجام، پاشان وردەکاری ================= */
.pnl {
    background: var(--sf-surface, #fff);
    border: 1px solid var(--sf-border, #ebe8f6);
    border-radius: 22px;
    padding: 1.25rem;
    box-shadow: var(--sf-shadow, 0 10px 28px rgba(31, 27, 61, .06));
}
.pnl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.pnl-cur { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; color: var(--sf-ink, #1f1b3d); }
.pnl-cur i, .pnm-card-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    background: var(--sf-primary-soft, #efedfd);
    color: var(--sf-primary, #5b4cdb);
}
.pnl-period { font-size: .82rem; font-weight: 600; color: var(--sf-muted, #6e6a8a); background: #f6f5fc; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 999px; padding: .3rem .9rem; }

.pnl-eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr); gap: .75rem; align-items: stretch; }
.pnl-term { display: flex; flex-direction: column; gap: .35rem; min-width: 0; border-radius: 18px; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); }
.pnl-term-top { display: flex; align-items: center; gap: .65rem; }
.pnl-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.pnl-in .pnl-ico { background: var(--sf-ok-soft, #e7f7ed); color: var(--sf-ok, #16a34a); }
.pnl-out .pnl-ico { background: var(--sf-bad-soft, #fdecec); color: var(--sf-bad, #dc2626); }
.pnl-term-label { font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: var(--sf-ink, #1f1b3d); }
.pnl-term-hint { font-size: .76rem; line-height: 1.45; color: var(--sf-muted, #6e6a8a); }
.pnl-term-amount { margin-top: auto; padding-top: .55rem; font-size: 1.5rem; font-weight: 800; line-height: 1.2; text-align: right; }
.pnl-in .pnl-term-amount { color: var(--sf-ok, #16a34a); }
.pnl-out .pnl-term-amount { color: var(--sf-bad, #dc2626); }
.pnl-op {
    align-self: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: var(--sf-muted, #6e6a8a);
    background: #fff;
    border: 1px solid var(--sf-border, #ebe8f6);
    box-shadow: var(--sf-shadow, none);
}
.pnl-res { border: 0; color: #fff; }
.pnl-res-profit { background: linear-gradient(135deg, #22b45f 0%, #128049 100%); box-shadow: 0 14px 30px rgba(22, 163, 74, .25); }
.pnl-res-loss { background: linear-gradient(135deg, #ef5a5a 0%, #c41f1f 100%); box-shadow: 0 14px 30px rgba(220, 38, 38, .24); }
.pnl-res-even { background: linear-gradient(135deg, #8a86a6 0%, #5d5980 100%); }
.pnl-res .pnl-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.pnl-res .pnl-term-label, .pnl-res .pnl-term-amount { color: #fff; }
.pnl-res .pnl-term-hint { color: rgba(255, 255, 255, .85); }
.pnl-res .pnl-term-amount { font-size: 1.95rem; }
.pnl-margin { margin-inline-start: auto; align-self: flex-start; white-space: nowrap; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: .2rem .65rem; }
.pnl-words { font-size: .78rem; line-height: 1.5; color: rgba(255, 255, 255, .9); }

.pnl-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.pnl-panel { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; padding: 1rem 1.1rem; background: #fcfbff; border: 1px solid var(--sf-border, #ebe8f6); }
.pnl-panel-title { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1rem; color: var(--sf-ink, #1f1b3d); margin-bottom: .35rem; }
.pnl-panel-title .pnl-ico { flex-basis: 30px; width: 30px; height: 30px; border-radius: 10px; font-size: .8rem; }
.pnl-line { padding: .6rem 0; }
.pnl-line + .pnl-line { border-top: 1px dashed #e7e4f3; }
.pnl-line-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.pnl-line-name { min-width: 0; font-weight: 600; font-size: .9rem; color: var(--sf-ink, #1f1b3d); }
.pnl-line-val { display: inline-flex; align-items: baseline; gap: .5rem; white-space: nowrap; font-weight: 700; font-size: .92rem; }
.pnl-pct { font-size: .72rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); background: #f0eef8; border-radius: 999px; padding: .05rem .45rem; }
.pnl-bar { display: flex; height: 8px; margin-top: .45rem; border-radius: 999px; background: #eeecf6; overflow: hidden; }
.pnl-bar > span { display: block; height: 100%; border-radius: 999px; }
.pnl-in .pnl-bar > span { background: linear-gradient(to left, #3ccf7c, #16a34a); }
.pnl-out .pnl-bar > span { background: linear-gradient(to left, #f47272, #dc2626); }
.pnl-total { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: auto; padding-top: .7rem; border-top: 2px solid var(--sf-border, #ebe8f6); font-weight: 800; }
.pnl-in .pnl-total .num { color: var(--sf-ok, #16a34a); }
.pnl-out .pnl-total .num { color: var(--sf-bad, #dc2626); }
.pnl-sub { font-size: .76rem; color: var(--sf-muted, #6e6a8a); margin-top: .3rem; }
.pnl-none { font-size: .88rem; color: var(--sf-muted, #6e6a8a); padding: .8rem 0 1rem; }
.pnl-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .85rem;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--sf-primary-dark, #4537c4);
    background: var(--sf-primary-soft, #efedfd);
    border-radius: 999px;
    padding: .38rem .9rem;
    transition: background .15s;
}
.pnl-link:hover, .pnl-link:focus-visible { background: var(--sf-primary-line, #dcd7fa); color: var(--sf-primary-dark, #4537c4); }
.pnl-link i { font-size: .7rem; }
.pnl-notes { display: flex; flex-direction: column; gap: .45rem; margin-top: .9rem; }
.pnl-note { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: #4a4670; background: #f6f5fc; border-radius: 12px; padding: .55rem .85rem; }
.pnl-note i { color: var(--sf-primary, #5b4cdb); margin-top: .25rem; }

@media (max-width: 991.98px) {
    .pnl-eq { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .pnl-op-eq { grid-column: 1 / -1; justify-self: center; }
    .pnl-res { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .pnl { padding: 1rem; border-radius: 18px; }
    .pnl-eq { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .pnl-op { justify-self: center; width: 34px; height: 34px; font-size: 1.15rem; }
    .pnl-split { grid-template-columns: minmax(0, 1fr); }
    .pnl-term-amount { font-size: 1.35rem; }
    .pnl-res .pnl-term-amount { font-size: 1.65rem; }
}

/* ================= قازانج و زەرەری مانگانە (شاشە): پوختە، هێڵکاری، کارتی مانگەکان ================= */
.pnm-card { background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 22px; box-shadow: var(--sf-shadow, none); overflow: hidden; }
.pnm-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--sf-border, #ebe8f6); }
.pnm-card-title { display: flex; align-items: center; gap: .7rem; }
.pnm-card-title h2 { margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.pnm-card-sub { margin-top: .15rem; font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.pnm-card .sf-segment a { padding: .35rem .85rem; font-size: .85rem; }
.pnm { padding: 1.1rem 1.25rem 1.25rem; }
.pnm + .pnm { border-top: 1px solid var(--sf-border, #ebe8f6); }
.pnm-none { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.25rem 1rem; text-align: center; color: var(--sf-muted, #6e6a8a); }
.pnm-none .pnl-ico { background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); }
.pnm-cur { font-weight: 800; color: var(--sf-ink, #1f1b3d); margin-bottom: .75rem; }

.pnm-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.pnm-stat { min-width: 0; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; padding: .85rem 1rem; background: #fff; }
.pnm-stat-label { display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); }
.pnm-stat-value { margin-top: .3rem; font-size: 1.35rem; font-weight: 800; line-height: 1.25; text-align: right; }
.pnm-stat-in i, .pnm-stat-in .pnm-stat-value { color: var(--sf-ok, #16a34a); }
.pnm-stat-out i, .pnm-stat-out .pnm-stat-value { color: var(--sf-bad, #dc2626); }
.pnm-stat-res.is-profit { background: var(--sf-ok-soft, #e7f7ed); border-color: #c4ead2; }
.pnm-stat-res.is-profit .pnm-stat-label, .pnm-stat-res.is-profit .pnm-stat-value { color: #15803d; }
.pnm-stat-res.is-loss { background: var(--sf-bad-soft, #fdecec); border-color: #f6c9c9; }
.pnm-stat-res.is-loss .pnm-stat-label, .pnm-stat-res.is-loss .pnm-stat-value { color: #c81e1e; }
.pnm-stat-res.is-even { background: #f6f5fc; }
.pnm-adj { margin-top: .6rem; font-size: .8rem; color: var(--sf-muted, #6e6a8a); }

.pnm-chart { margin-top: 1rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 18px; padding: .9rem 1rem .6rem; background: linear-gradient(180deg, #fbfaff 0%, #fff 100%); }
.pnm-keys { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: .9rem; font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.pnm-key { display: inline-flex; align-items: center; gap: .35rem; }
.pnm-key::before { content: ''; width: 10px; height: 10px; border-radius: 3px; }
.pnm-key b { color: var(--sf-ink, #1f1b3d); }
.pnm-key-profit::before { background: var(--sf-ok, #16a34a); }
.pnm-key-loss::before { background: var(--sf-bad, #dc2626); }
.pnm-key-even::before { background: #a5a2bd; }
.pnm-key-empty::before { background: #dedbec; }
.pnm-bars { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .35rem; }
/* هێڵی سفر: لە ژێر ناوچەی قازانج (بەرزییەکەی لە --up) */
.pnm-bars::before { content: ''; position: absolute; inset-inline: 0; top: calc(var(--up, 0px) + .3rem); height: 2px; border-radius: 2px; background: #e2dff0; pointer-events: none; }
.pnm-col { display: flex; flex-direction: column; align-items: center; min-width: 0; padding-top: .3rem; border-radius: 10px; text-decoration: none; color: var(--sf-ink, #1f1b3d); transition: background .15s; }
.pnm-col:hover, .pnm-col:focus-visible { background: var(--sf-primary-soft, #efedfd); }
.pnm-zone { display: flex; justify-content: center; width: 100%; }
.pnm-zone-up { align-items: flex-end; }
.pnm-zone-down { align-items: flex-start; padding-top: 2px; }
.pnm-bar { width: min(64%, 38px); min-height: 4px; }
.pnm-zone-up .pnm-bar { border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #3ccf7c 0%, #16a34a 100%); }
.pnm-zone-down .pnm-bar { border-radius: 2px 2px 8px 8px; background: linear-gradient(180deg, #dc2626 0%, #f47272 100%); }
.pnm-zone-up .pnm-bar-even { height: 4px; border-radius: 2px; background: #a5a2bd; }
.pnm-col-label { max-width: 100%; margin-top: .5rem; padding: 0 .15rem .35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 700; }
.pnm-col.is-empty .pnm-col-label, .pnm-col.is-future .pnm-col-label { color: #b1aec6; font-weight: 600; }
.pnm-col.is-current .pnm-col-label { color: var(--sf-primary, #5b4cdb); font-weight: 800; }

.pnm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.pnm-month {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-width: 0;
    padding: .85rem 1rem;
    border: 1px solid var(--sf-border, #ebe8f6);
    border-radius: 16px;
    background: #fff;
    color: var(--sf-ink, #1f1b3d);
    text-decoration: none;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pnm-month::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; }
.pnm-month.is-profit::before { background: var(--sf-ok, #16a34a); }
.pnm-month.is-loss::before { background: var(--sf-bad, #dc2626); }
.pnm-month.is-even::before { background: #a5a2bd; }
.pnm-month:hover, .pnm-month:focus-visible { transform: translateY(-2px); border-color: var(--sf-primary-line, #dcd7fa); box-shadow: var(--sf-shadow-hover, 0 16px 36px rgba(91, 76, 219, .14)); color: var(--sf-ink, #1f1b3d); }
.pnm-month.is-empty, .pnm-month.is-future { background: #fbfafe; border-style: dashed; }
.pnm-month.is-current { border-color: var(--sf-primary, #5b4cdb); box-shadow: 0 0 0 3px var(--sf-primary-soft, #efedfd); }
.pnm-month-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pnm-month-name { font-weight: 800; font-size: .95rem; }
.pnm-month.is-empty .pnm-month-name, .pnm-month.is-future .pnm-month-name { font-weight: 700; color: var(--sf-muted, #6e6a8a); }
.pnm-month-no { min-width: 24px; height: 24px; padding: 0 .3rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); background: #f3f1fb; }
.pnm-now { white-space: nowrap; font-size: .7rem; font-weight: 800; color: #fff; background: var(--sf-primary, #5b4cdb); border-radius: 999px; padding: .15rem .6rem; }
.pnm-empty { font-size: .8rem; color: #a9a6c0; }
.pnm-res { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .5rem; }
.pnm-tag { white-space: nowrap; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .15rem .6rem; }
.pnm-res-amount { font-size: 1.15rem; font-weight: 800; }
.pnm-month.is-profit .pnm-tag { background: var(--sf-ok-soft, #e7f7ed); color: #15803d; }
.pnm-month.is-profit .pnm-res-amount { color: #15803d; }
.pnm-month.is-loss .pnm-tag { background: var(--sf-bad-soft, #fdecec); color: #c81e1e; }
.pnm-month.is-loss .pnm-res-amount { color: #c81e1e; }
.pnm-month.is-even .pnm-tag { background: #f1f1f5; color: #5d5980; }
.pnm-month.is-even .pnm-res-amount { color: #5d5980; }
.pnm-lines { display: grid; gap: .2rem; padding-top: .5rem; border-top: 1px dashed #ebe8f6; font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.pnm-lines > div { display: flex; justify-content: space-between; gap: .5rem; }
.pnm-lines .num { font-weight: 700; color: var(--sf-ink, #1f1b3d); }
.pnm-lines .pnm-in { color: #15803d; }
.pnm-lines .pnm-out { color: #c81e1e; }

@media (max-width: 1199.98px) {
    .pnm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .pnm-card-head, .pnm { padding-inline: 1rem; }
    .pnm-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pnm-stat-res { grid-column: 1 / -1; }
    .pnm-bars { gap: .15rem; }
    .pnm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .pnm-card .sf-segment { width: 100%; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; }
    .pnm-card .sf-segment a { padding: .3rem .6rem; font-size: .8rem; }
    .pnm-grid { gap: .55rem; }
    .pnm-month { padding: .75rem .8rem; gap: .45rem; }
    .pnm-month-name { font-size: .88rem; }
    .pnm-res-amount { font-size: 1rem; }
    .pnm-lines { font-size: .74rem; }
    .pnm-stat-value { font-size: 1.15rem; }
}
@media (max-width: 339.98px) {
    .pnm-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ================= ماندووبوونی پارێزەرایەتی: سێ دوگمەی سەرەوە ================= */
.fee-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    height: 100%;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    background: var(--tile-bg);
    color: #1d2433;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.fee-btn:hover { background: var(--tile-hover); color: #1d2433; transform: translateY(-1px); }
.fee-btn > i { font-size: 1.7rem; color: var(--tile-color); width: 2rem; text-align: center; }
.fee-btn-label { flex: 1; font-weight: 800; font-size: 1rem; line-height: 1.4; }
.fee-btn-amount { font-weight: 800; font-size: 1.05rem; text-align: left; white-space: nowrap; }
.fee-btn.active { background: #0d6efd; color: #fff; border-color: #0b5ed7; box-shadow: 0 6px 14px rgba(13, 110, 253, .25); }
.fee-btn.active > i { color: #fff; }

/* ================= هاوپێچی وەسڵ ================= */
.receipt-files { display: flex; flex-wrap: wrap; gap: .75rem; }
.receipt-file { width: 130px; border: 1px solid #dee2e6; border-radius: 10px; padding: .4rem; background: #fff; }
.receipt-file-thumb { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 6px; background: #f8f9fa; overflow: hidden; text-decoration: none; }
.receipt-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.receipt-file-thumb i { font-size: 2.6rem; }
.receipt-file-name { font-size: .75rem; margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-file-meta { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--muted); }

/* ================= شێوازی نەرم (theme-soft): پاشبنەمای سپی/مۆری کاڵ، ڕەنگی سەرەکی مۆر/نیلی =================
   لە هەموو پەڕەکاندا چالاکە (layouts/app، چوونەژوورەوە، هەڵە)؛ پەڕەکانی چاپ وەری ناگرن */
body.theme-soft {
    --sf-bg: #f6f5fc;
    --sf-surface: #ffffff;
    --sf-primary: #5b4cdb;
    --sf-primary-dark: #4537c4;
    --sf-primary-soft: #efedfd;
    --sf-primary-line: #dcd7fa;
    --sf-ink: #1f1b3d;
    --sf-muted: #6e6a8a;
    --sf-border: #ebe8f6;
    --sf-shadow: 0 1px 2px rgba(31, 27, 61, .04), 0 10px 28px rgba(31, 27, 61, .06);
    --sf-shadow-hover: 0 2px 4px rgba(31, 27, 61, .05), 0 16px 36px rgba(91, 76, 219, .14);
    --sf-ok: #16a34a;
    --sf-ok-soft: #e7f7ed;
    --sf-bad: #dc2626;
    --sf-bad-soft: #fdecec;
    --sf-warn: #c2710c;
    --sf-warn-soft: #fdf3e1;
    background: var(--sf-bg);
    color: var(--sf-ink);
}
body.theme-soft .topbar { background: rgba(255, 255, 255, .92); border-bottom-color: var(--sf-border); backdrop-filter: blur(6px); }
body.theme-soft .tb-btn { background: var(--sf-primary-soft); color: var(--sf-primary); }
body.theme-soft .tb-brand { background: var(--sf-primary-soft); color: var(--sf-primary-dark); }

.sf-page { max-width: 1240px; margin: 0 auto; padding: .75rem 0 2rem; }
.sf-page a { text-decoration: none; }

/* سەردێڕ */
.sf-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3f1fe 100%);
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--sf-shadow);
}
.sf-hero-text { flex: 1 1 380px; min-width: 0; }
.sf-eyebrow { color: var(--sf-primary); font-weight: 700; font-size: .85rem; margin-bottom: .35rem; }
.sf-title { font-size: 2.3rem; font-weight: 800; color: var(--sf-ink); margin: 0 0 .4rem; letter-spacing: -.01em; }
.sf-lead { color: var(--sf-muted); font-size: 1rem; margin: 0 0 1.1rem; max-width: 560px; }
.sf-segment { display: inline-flex; flex-wrap: wrap; gap: .25rem; background: var(--sf-primary-soft); border-radius: 999px; padding: .3rem; }
.sf-segment a { color: var(--sf-primary-dark); font-weight: 600; font-size: .9rem; padding: .4rem 1rem; border-radius: 999px; transition: background .15s, color .15s; }
.sf-segment a:hover { background: rgba(91, 76, 219, .1); }
.sf-segment a.active { background: var(--sf-primary); color: #fff; box-shadow: 0 4px 12px rgba(91, 76, 219, .3); }
.sf-hero-side { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* وێنەی سادە: بازنە + ئایکۆن */
.sf-hero-art { position: relative; width: 132px; height: 112px; }
.sf-art-ring { position: absolute; inset: 0 10px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #e6e2fd, #d6d0fb); }
.sf-art-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--sf-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 24px rgba(91, 76, 219, .35);
}
/* لۆگۆی کۆمپانیا لە جیاتی ئایکۆن */
.sf-art-main.sf-art-logo { background: #fff; padding: 7px; box-shadow: 0 10px 24px rgba(91, 76, 219, .22); }
.sf-art-main.sf-art-logo img { width: 100%; height: 100%; object-fit: contain; }
.sf-hero-art-sm:has(.sf-art-logo) { width: 132px; height: 112px; }
.sf-hero-art-sm .sf-art-main.sf-art-logo { width: 92px; height: 92px; border-radius: 24px; padding: 6px; }
.sf-art-chip { position: absolute; width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: .95rem; background: #fff; box-shadow: var(--sf-shadow); }
.sf-art-chip-ok { top: 2px; right: 4px; color: var(--sf-ok); }
.sf-art-chip-doc { bottom: 2px; left: 2px; color: var(--sf-primary); }

/* دوگمە */
.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    border-radius: 12px;
    padding: .65rem 1.2rem;
    background: var(--sf-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(91, 76, 219, .28);
    transition: background .15s, transform .15s;
}
.sf-btn:hover, .sf-btn:focus-visible { background: var(--sf-primary-dark); color: #fff; transform: translateY(-1px); }
.sf-btn-soft { background: var(--sf-primary-soft); color: var(--sf-primary-dark); box-shadow: none; padding: .55rem 1.1rem; }
.sf-btn-soft:hover { background: var(--sf-primary-line); color: var(--sf-primary-dark); }

/* ژمارە گەورەکان */
.sf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.sf-stat {
    position: relative;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    box-shadow: var(--sf-shadow);
    color: var(--sf-ink);
}
a.sf-stat { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.sf-stat:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary-line); color: var(--sf-ink); }
.sf-stat-icon { position: absolute; top: 1.15rem; left: 1.15rem; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.sf-tone-primary { background: var(--sf-primary-soft); color: var(--sf-primary); }
.sf-tone-ok { background: var(--sf-ok-soft); color: var(--sf-ok); }
.sf-tone-bad { background: var(--sf-bad-soft); color: var(--sf-bad); }
.sf-stat-label { color: var(--sf-muted); font-size: .88rem; font-weight: 600; margin-bottom: .35rem; padding-left: 52px; }
/* ژمارە LTR ـە (.num)، بۆیە بە ڕوونی بۆ لای ڕاست دەبرێت تا نەچێتە ژێر ئایکۆنەکە */
.sf-stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1.2; text-align: right; margin-top: .55rem; }
.sf-stat-value-sm { font-size: 1.05rem; font-weight: 800; color: var(--sf-muted); text-align: right; }
.sf-stat-sub { color: var(--sf-muted); font-size: .8rem; margin-top: .4rem; }
.sf-text-ok { color: var(--sf-ok); }
.sf-text-bad { color: var(--sf-bad); }
.sf-text-warn { color: var(--sf-warn); font-weight: 600; }

/* گەڕان و فلتەر */
.sf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    padding: .75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--sf-shadow);
}
.sf-pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.sf-pills a { color: var(--sf-muted); font-weight: 600; font-size: .88rem; padding: .45rem .9rem; border-radius: 10px; }
.sf-pills a:hover { background: var(--sf-primary-soft); color: var(--sf-primary-dark); }
.sf-pills a.active { background: var(--sf-primary-soft); color: var(--sf-primary-dark); box-shadow: inset 0 0 0 1px var(--sf-primary-line); }
.sf-search { position: relative; flex: 1 1 260px; }
.sf-search i { position: absolute; top: 50%; right: .9rem; transform: translateY(-50%); color: var(--sf-muted); pointer-events: none; }
.sf-search .form-control, .sf-select { border-radius: 12px; border-color: var(--sf-border); background-color: #faf9fe; min-height: 42px; }
.sf-search .form-control { padding-right: 2.4rem; }
.sf-search .form-control:focus, .sf-select:focus { border-color: var(--sf-primary); box-shadow: 0 0 0 .2rem rgba(91, 76, 219, .15); background-color: #fff; }
.sf-select { width: auto; min-width: 140px; }
.sf-view { display: inline-flex; background: var(--sf-primary-soft); border-radius: 12px; padding: .25rem; }
.sf-view a { width: 36px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--sf-primary-dark); }
.sf-view a.active { background: #fff; color: var(--sf-primary); box-shadow: 0 2px 6px rgba(31, 27, 61, .1); }

/* کارتەکان */
.sf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.sf-card-wrap { position: relative; }
.sf-card {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    height: 100%;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    padding: 1.2rem;
    color: var(--sf-ink);
    box-shadow: var(--sf-shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sf-card:hover, .sf-card:focus-visible { transform: translateY(-3px); box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary-line); color: var(--sf-ink); }
.sf-card.inactive { opacity: .6; }
.sf-card-head { display: flex; align-items: center; gap: .8rem; padding-inline-end: 2rem; }
.sf-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--sf-primary-soft);
    color: var(--sf-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    overflow: hidden;
}
.sf-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sf-avatar-sm { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.sf-card-title { display: flex; flex-direction: column; min-width: 0; }
.sf-card-name { font-weight: 800; font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.sf-card-sub { color: var(--sf-muted); font-size: .82rem; }
.sf-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; color: var(--sf-muted); font-size: .82rem; }
.sf-card-meta i { font-size: .72rem; opacity: .8; }
.sf-tag { display: inline-block; background: var(--sf-primary-soft); color: var(--sf-primary-dark); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .65rem; }
.sf-tag-muted { background: #f1f1f5; color: var(--sf-muted); }
.sf-card-numbers { display: grid; grid-template-columns: repeat(3, 1fr); background: #faf9fe; border: 1px solid var(--sf-border); border-radius: 14px; padding: .6rem .4rem; text-align: center; }
.sf-card-numbers > div + div { border-inline-start: 1px solid var(--sf-border); }
.sf-card-numbers .num { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.sf-card-numbers small { color: var(--sf-muted); font-size: .72rem; }
.sf-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; }
.sf-card-fee { font-size: .85rem; font-weight: 700; color: var(--sf-primary-dark); }
.sf-card-edit {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: var(--sf-muted);
    background: #f6f5fc;
    border: 1px solid var(--sf-border);
}
.sf-card-edit:hover { background: var(--sf-primary); border-color: var(--sf-primary); color: #fff; }
.sf-card-add {
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: transparent;
    border: 2px dashed var(--sf-primary-line);
    box-shadow: none;
    color: var(--sf-primary);
    font-weight: 700;
}
.sf-card-add:hover { background: var(--sf-primary-soft); border-color: var(--sf-primary); color: var(--sf-primary-dark); box-shadow: none; }
.sf-add-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sf-primary-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* نیشانەی دۆخ: سەوز / سوور */
.sf-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .25rem .7rem; white-space: nowrap; }
.sf-status > i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sf-status-ok { background: var(--sf-ok-soft); color: var(--sf-ok); }
.sf-status-bad { background: var(--sf-bad-soft); color: var(--sf-bad); }
.sf-status-warn { background: var(--sf-warn-soft); color: var(--sf-warn); }
.sf-status-none { background: #f3f3f7; color: #8a87a3; font-weight: 600; }

/* خشتەی پاک */
.sf-table-card { background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: 20px; box-shadow: var(--sf-shadow); overflow: hidden; }
.sf-table { width: 100%; border-collapse: collapse; }
.sf-table th { background: #f8f7fd; color: var(--sf-muted); font-size: .78rem; font-weight: 700; padding: .85rem 1rem; border-bottom: 1px solid var(--sf-border); white-space: nowrap; }
.sf-table td { padding: .9rem 1rem; border-bottom: 1px solid #f1eff8; vertical-align: middle; font-size: .9rem; }
.sf-table tbody tr:last-child td { border-bottom: 0; }
.sf-table tbody tr { transition: background .12s; }
.sf-table tbody tr:hover { background: #faf9fe; }
.sf-table tr.inactive { opacity: .6; }
.sf-row-client { display: flex; align-items: center; gap: .7rem; color: var(--sf-ink); }
.sf-row-client:hover .sf-row-name { color: var(--sf-primary); }
.sf-row-name { display: block; font-weight: 700; }
.sf-row-sub { display: block; color: var(--sf-muted); font-size: .78rem; }
.sf-icon-btn { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; color: var(--sf-muted); background: #f6f5fc; border: 1px solid var(--sf-border); font-size: .8rem; }
.sf-icon-btn:hover { background: var(--sf-primary); border-color: var(--sf-primary); color: #fff; }

/* بەتاڵ */
.sf-empty { text-align: center; color: var(--sf-muted); background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: 20px; padding: 3rem 1rem; box-shadow: var(--sf-shadow); }
.sf-empty .fw-bold { color: var(--sf-ink); }
.sf-empty-art { width: 64px; height: 64px; border-radius: 20px; background: var(--sf-primary-soft); color: var(--sf-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: .8rem; }

/* پەڕەکان */
body.theme-soft .pagination { --bs-pagination-active-bg: var(--sf-primary); --bs-pagination-active-border-color: var(--sf-primary); --bs-pagination-color: var(--sf-primary-dark); --bs-pagination-border-color: var(--sf-border); --bs-pagination-border-radius: 10px; }

/* داشبۆردی سەرەکی (theme-soft) */
.sf-quick { display: flex; flex-wrap: wrap; gap: .6rem; }
.sf-clock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    min-width: 250px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    padding: 1.1rem 1.4rem 1.2rem;
    box-shadow: var(--sf-shadow);
}
.sf-hero-art-sm { width: 112px; height: 92px; }
.sf-hero-art-sm .sf-art-main { width: 58px; height: 58px; font-size: 1.55rem; border-radius: 17px; }
.sf-hero-art-sm .sf-art-chip { width: 30px; height: 30px; font-size: .85rem; border-radius: 10px; }
.sf-clock { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--sf-ink); letter-spacing: .02em; }
.sf-clock-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; color: var(--sf-muted); font-size: .82rem; }
.sf-clock-meta i { color: var(--sf-primary); font-size: .75rem; }
.sf-clock-actions { display: flex; gap: .4rem; }
.sf-icon-danger { color: var(--sf-bad); }
.sf-icon-danger:hover { background: var(--sf-bad); border-color: var(--sf-bad); color: #fff; }

.sf-section { margin-bottom: 1.5rem; }
.sf-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.sf-section-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--sf-ink); }
.sf-section-head span { color: var(--sf-muted); font-size: .85rem; }

.sf-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: .9rem; }
.sf-module {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 128px;
    padding: 1rem .6rem;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    box-shadow: var(--sf-shadow);
    color: var(--sf-ink);
    text-align: center;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sf-module:hover, .sf-module:focus-visible { transform: translateY(-3px); box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary-line); color: var(--sf-ink); }
.sf-module-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sf-primary-soft); color: var(--sf-primary); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; transition: background .15s, color .15s; }
.sf-module:hover .sf-module-icon { background: var(--sf-primary); color: #fff; }
.sf-module-label { font-weight: 700; font-size: .9rem; line-height: 1.35; }
.sf-module-badge { position: absolute; top: .55rem; left: .55rem; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--sf-bad); color: #fff; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sf-module-badge-info { background: var(--sf-primary); }

@media (max-width: 991.98px) {
    .sf-clock-card { width: 100%; }
}

@media (max-width: 575.98px) {
    .sf-hero { padding: 1.25rem; border-radius: 20px; }
    .sf-title { font-size: 1.8rem; }
    .sf-hero-side { width: 100%; flex-direction: row; justify-content: space-between; }
    .sf-hero-art { width: 96px; height: 84px; }
    .sf-art-main { width: 54px; height: 54px; font-size: 1.4rem; border-radius: 16px; }
    .sf-art-chip { width: 28px; height: 28px; font-size: .8rem; }
    .sf-stat-value { font-size: 1.8rem; }
    .sf-select { flex: 1 1 auto; }
    .sf-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
    .sf-module { min-height: 104px; padding: .75rem .35rem; border-radius: 16px; }
    .sf-module-icon { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 13px; }
    .sf-module-label { font-size: .78rem; }
    .sf-clock { font-size: 2.2rem; }
}

/* ================= theme-soft بۆ هەموو پەڕەکان: بەشە هاوبەشەکانی Bootstrap و سیستەم =================
   layouts/app.blade.php هەمیشە class="theme-soft" دادەنێت؛ پەڕەکانی چاپ ئەم شێوازە وەرناگرن. */
body.theme-soft {
    --bs-primary: #5b4cdb;
    --bs-primary-rgb: 91, 76, 219;
    --bs-primary-bg-subtle: #efedfd;
    --bs-primary-border-subtle: #dcd7fa;
    --bs-primary-text-emphasis: #3b2fa8;
    --bs-link-color: #5b4cdb;
    --bs-link-color-rgb: 91, 76, 219;
    --bs-link-hover-color: #4537c4;
    --bs-link-hover-color-rgb: 69, 55, 196;
    --bs-border-color: #ebe8f6;
    --bs-border-color-translucent: rgba(31, 27, 61, .09);
    --bs-border-radius: .7rem;
    --bs-border-radius-sm: .5rem;
    --bs-border-radius-lg: 1.1rem;
    --bs-border-radius-xl: 1.3rem;
    --bs-secondary-color: #6e6a8a;
    --bs-tertiary-bg: #f8f7fd;
    --bs-body-color: #1f1b3d;
    --bs-emphasis-color: #1f1b3d;
    --muted: #6e6a8a;
    --ink: #1f1b3d;
}

/* سەردێڕی گەورە و پاک */
body.theme-soft .page-head { margin-bottom: 1.5rem; }
body.theme-soft .page-head h1 { display: flex; flex-wrap: wrap; align-items: center; font-size: 1.85rem; font-weight: 800; color: var(--sf-ink); line-height: 1.3; }
body.theme-soft .page-head h1 > i:first-child {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sf-primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-inline-start: 0 !important;
    margin-inline-end: .75rem;
}
body.theme-soft .page-head h1 > small { flex-basis: 100%; }

/* کارتی گرد بە سێبەری نەرم */
body.theme-soft .card {
    --bs-card-border-color: var(--sf-border);
    --bs-card-border-radius: 18px;
    --bs-card-inner-border-radius: 17px;
    --bs-card-cap-bg: #fff;
    --bs-card-cap-padding-y: .95rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    box-shadow: var(--sf-shadow);
}
body.theme-soft .card-header { font-weight: 700; color: var(--sf-ink); border-bottom-color: var(--sf-border); }
body.theme-soft .card-footer { background: #fcfbff; border-top-color: var(--sf-border); }
body.theme-soft a.card { transition: transform .15s, box-shadow .15s, border-color .15s; }
body.theme-soft a.card:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary-line); }

/* ژمارە گەورەکان */
body.theme-soft .stat-card { border-color: var(--sf-border); border-radius: 18px; padding: 1.1rem 1.25rem; box-shadow: var(--sf-shadow); }
body.theme-soft .stat-card .stat-label { font-size: .85rem; font-weight: 600; margin-bottom: .2rem; }
body.theme-soft .stat-card .stat-value { font-size: 1.6rem; line-height: 1.25; text-align: right; }
body.theme-soft .stat-card .stat-sub { font-size: .78rem; margin-top: .35rem; }
body.theme-soft a.stat-card:hover { border-color: var(--sf-primary-line); box-shadow: var(--sf-shadow-hover); }
body.theme-soft .acc-box { border-color: var(--sf-border); border-radius: 14px; }

/* فلتەر و گەڕان */
body.theme-soft .filters { border-color: var(--sf-border); border-radius: 18px; padding: .9rem 1rem; margin-bottom: 1.4rem; box-shadow: var(--sf-shadow); }

/* خشتەی پاک */
body.theme-soft .table { --bs-table-bg: transparent; --bs-table-border-color: #f1eff8; --bs-table-hover-bg: #faf9fe; --bs-table-striped-bg: #fbfaff; --bs-table-color: var(--sf-ink); }
body.theme-soft .table > thead th { background: #f8f7fd; color: var(--sf-muted); font-size: .78rem; font-weight: 700; border-bottom: 1px solid var(--sf-border); padding: .8rem .9rem; white-space: nowrap; }
body.theme-soft .table > tbody > tr > td, body.theme-soft .table > tfoot > tr > td { padding: .8rem .9rem; vertical-align: middle; }
body.theme-soft .table-sm > thead th { padding: .55rem .7rem; }
body.theme-soft .table-sm > tbody > tr > td, body.theme-soft .table-sm > tfoot > tr > td { padding: .5rem .7rem; }
body.theme-soft .table-light { --bs-table-bg: #f6f5fc; --bs-table-color: var(--sf-ink); --bs-table-border-color: var(--sf-border); --bs-table-hover-bg: #efedfa; }

/* دوگمەکان */
body.theme-soft .btn { --bs-btn-border-radius: .7rem; --bs-btn-font-weight: 600; }
body.theme-soft .btn-sm { --bs-btn-border-radius: .55rem; }
body.theme-soft .btn-lg { --bs-btn-border-radius: .9rem; }
body.theme-soft .btn-primary {
    --bs-btn-bg: #5b4cdb; --bs-btn-border-color: #5b4cdb;
    --bs-btn-hover-bg: #4537c4; --bs-btn-hover-border-color: #4537c4;
    --bs-btn-active-bg: #3b2fa8; --bs-btn-active-border-color: #3b2fa8;
    --bs-btn-disabled-bg: #5b4cdb; --bs-btn-disabled-border-color: #5b4cdb;
    --bs-btn-focus-shadow-rgb: 91, 76, 219;
    box-shadow: 0 4px 12px rgba(91, 76, 219, .22);
}
body.theme-soft .btn-outline-primary {
    --bs-btn-color: #5b4cdb; --bs-btn-border-color: #cfc8f7;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #5b4cdb; --bs-btn-hover-border-color: #5b4cdb;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #4537c4; --bs-btn-active-border-color: #4537c4;
    --bs-btn-focus-shadow-rgb: 91, 76, 219;
}
body.theme-soft .btn-secondary {
    --bs-btn-color: #2e2766; --bs-btn-bg: #efedfd; --bs-btn-border-color: #efedfd;
    --bs-btn-hover-color: #2e2766; --bs-btn-hover-bg: #e2defc; --bs-btn-hover-border-color: #e2defc;
    --bs-btn-active-color: #2e2766; --bs-btn-active-bg: #d6d0fb; --bs-btn-active-border-color: #d6d0fb;
}
body.theme-soft .btn-light {
    --bs-btn-color: #3b2fa8; --bs-btn-bg: #f3f1fd; --bs-btn-border-color: #f3f1fd;
    --bs-btn-hover-color: #3b2fa8; --bs-btn-hover-bg: #e7e3fc; --bs-btn-hover-border-color: #e7e3fc;
    --bs-btn-active-color: #3b2fa8; --bs-btn-active-bg: #dcd7fa; --bs-btn-active-border-color: #dcd7fa;
}
body.theme-soft .btn-dark {
    --bs-btn-bg: #1f1b3d; --bs-btn-border-color: #1f1b3d;
    --bs-btn-hover-bg: #2e2766; --bs-btn-hover-border-color: #2e2766;
    --bs-btn-active-bg: #2e2766; --bs-btn-active-border-color: #2e2766;
}
body.theme-soft .btn-outline-dark {
    --bs-btn-color: #1f1b3d; --bs-btn-border-color: #d9d5ea;
    --bs-btn-hover-bg: #1f1b3d; --bs-btn-hover-border-color: #1f1b3d;
    --bs-btn-active-bg: #1f1b3d; --bs-btn-active-border-color: #1f1b3d;
}
body.theme-soft .btn-outline-secondary {
    --bs-btn-color: #5d5980; --bs-btn-border-color: #dedaf0;
    --bs-btn-hover-color: #3b2fa8; --bs-btn-hover-bg: #efedfd; --bs-btn-hover-border-color: #dcd7fa;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #5b4cdb; --bs-btn-active-border-color: #5b4cdb;
}

/* تاب و pill */
body.theme-soft .nav-pills { --bs-nav-pills-border-radius: .7rem; --bs-nav-pills-link-active-bg: #5b4cdb; }
body.theme-soft .nav-pills .nav-link { font-weight: 600; }
body.theme-soft .nav-pills .nav-link:not(.active):hover { background: var(--sf-primary-soft); }
body.theme-soft .nav-tabs { --bs-nav-tabs-border-color: var(--sf-border); --bs-nav-tabs-link-active-color: #4537c4; --bs-nav-tabs-link-active-border-color: var(--sf-border) var(--sf-border) #fff; --bs-nav-tabs-border-radius: .7rem; }
body.theme-soft .nav-tabs .nav-link { font-weight: 600; }

/* فۆرم */
body.theme-soft .form-control, body.theme-soft .form-select { border-color: #e3dff3; }
body.theme-soft .form-control:focus, body.theme-soft .form-select:focus { border-color: #9d93ec; box-shadow: 0 0 0 .2rem rgba(91, 76, 219, .15); }
body.theme-soft .form-check-input:checked { background-color: #5b4cdb; border-color: #5b4cdb; }
body.theme-soft .form-check-input:focus { border-color: #9d93ec; box-shadow: 0 0 0 .2rem rgba(91, 76, 219, .15); }
body.theme-soft .input-group-text { background: #f6f5fc; border-color: #e3dff3; color: var(--sf-muted); }
body.theme-soft .ts-wrapper .ts-control { border-color: #e3dff3; border-radius: .7rem; }
body.theme-soft .ts-wrapper.focus .ts-control { border-color: #9d93ec; box-shadow: 0 0 0 .2rem rgba(91, 76, 219, .15); }
body.theme-soft .ts-dropdown { border-color: var(--sf-border); border-radius: .8rem; box-shadow: var(--sf-shadow-hover); }
body.theme-soft .ts-dropdown .active { background: var(--sf-primary-soft); color: #3b2fa8; }

/* نیشانەی دۆخ: سەوز / سوور / پرتەقاڵی بە ڕەنگی کاڵ */
body.theme-soft .badge { font-weight: 700; border-radius: 999px; padding: .38em .72em; }
body.theme-soft .text-bg-success { background-color: #e7f7ed !important; color: #15803d !important; }
body.theme-soft .text-bg-danger { background-color: #fdecec !important; color: #c81e1e !important; }
body.theme-soft .text-bg-warning { background-color: #fdf3e1 !important; color: #a35c06 !important; }
body.theme-soft .text-bg-info { background-color: #e6f4fb !important; color: #0b6b93 !important; }
body.theme-soft .text-bg-primary { background-color: #efedfd !important; color: #4537c4 !important; }
body.theme-soft .text-bg-secondary { background-color: #f1f1f5 !important; color: #5d5980 !important; }
body.theme-soft .text-bg-light { background-color: #f6f5fc !important; color: #3b3760 !important; }

/* ئاگادارکردنەوە، لیست، مێنیو، پەنجەرە */
body.theme-soft .alert { border-radius: 14px; }
body.theme-soft .alert-light { background: #fff; border-color: var(--sf-border) !important; color: var(--sf-ink); box-shadow: var(--sf-shadow); }
body.theme-soft .alert-info { --bs-alert-bg: #efedfd; --bs-alert-border-color: #dcd7fa; --bs-alert-color: #3b2fa8; }
body.theme-soft .list-group { --bs-list-group-border-color: #f1eff8; --bs-list-group-active-bg: #5b4cdb; --bs-list-group-active-border-color: #5b4cdb; --bs-list-group-action-hover-bg: #faf9fe; }
body.theme-soft .dropdown-menu { --bs-dropdown-border-color: var(--sf-border); --bs-dropdown-border-radius: 14px; --bs-dropdown-link-active-bg: #5b4cdb; --bs-dropdown-link-hover-bg: #f6f5fc; padding: .4rem; box-shadow: var(--sf-shadow-hover); }
body.theme-soft .dropdown-item { border-radius: .55rem; }
body.theme-soft .modal { --bs-modal-border-radius: 20px; --bs-modal-inner-border-radius: 19px; --bs-modal-border-color: var(--sf-border); --bs-modal-header-border-color: var(--sf-border); --bs-modal-footer-border-color: var(--sf-border); }
body.theme-soft .progress { --bs-progress-bg: #efedfd; --bs-progress-bar-bg: #5b4cdb; --bs-progress-border-radius: 999px; }
body.theme-soft .empty-state i { color: var(--sf-primary); opacity: .45; }

/* داشبۆردی هەر موشتەرییەک */
body.theme-soft .client-panel { border-color: var(--sf-border); border-radius: 22px; padding: 1.5rem 1.1rem; box-shadow: var(--sf-shadow); }
body.theme-soft .client-logo { border-radius: 20px; }
body.theme-soft .client-logo-placeholder { background: var(--sf-primary-soft); color: var(--sf-primary); border-radius: 24px; }
body.theme-soft .client-name { color: var(--sf-ink); font-size: 1.65rem; }
body.theme-soft .client-nav .btn { border-radius: 12px; font-weight: 600; padding: .6rem .85rem; margin-bottom: .55rem; }
body.theme-soft .client-nav .btn-secondary > .count { background: #fff; color: #4537c4; }
body.theme-soft .client-nav .btn-primary { box-shadow: 0 6px 16px rgba(91, 76, 219, .28); }
body.theme-soft .client-nav .btn.sec-current { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sec-bg, #5b4cdb); }
body.theme-soft .client-nav .add-section { border-radius: 12px; border-color: var(--sf-primary-line); color: var(--sf-primary); }
body.theme-soft .client-nav .add-section:hover { border-color: var(--sf-primary); color: var(--sf-primary-dark); background: var(--sf-primary-soft); }
body.theme-soft .client-nav .nav-sep { color: var(--sf-muted); }
body.theme-soft .client-nav .nav-sep::before, body.theme-soft .client-nav .nav-sep::after { background: var(--sf-border); }

/* بەشەکانی تر */
body.theme-soft .file-chip { background: #f6f5fc; }
body.theme-soft .file-thumb { border-color: var(--sf-border); border-radius: 10px; }
body.theme-soft .company-logo { border-color: var(--sf-border); border-radius: 14px; }
body.theme-soft .company-logo-empty { background: var(--sf-primary-soft); color: var(--sf-primary); }
body.theme-soft .placeholder-list code:hover { background: var(--sf-primary-line); }
body.theme-soft .pl-box { border-color: var(--sf-border); border-radius: 20px; padding: 1.25rem; box-shadow: var(--sf-shadow); }
body.theme-soft .receipt-file { border-color: var(--sf-border); border-radius: 14px; }
body.theme-soft .fee-btn { background: #fff; border: 1px solid var(--sf-border); border-radius: 18px; box-shadow: var(--sf-shadow); color: var(--sf-ink); }
body.theme-soft .fee-btn > i { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--sf-primary-soft); color: var(--sf-primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
body.theme-soft .fee-btn:hover { background: #fff; border-color: var(--sf-primary-line); box-shadow: var(--sf-shadow-hover); color: var(--sf-ink); }
body.theme-soft .fee-btn.active { background: var(--sf-primary); border-color: var(--sf-primary); color: #fff; box-shadow: 0 10px 24px rgba(91, 76, 219, .3); }
body.theme-soft .fee-btn.active > i { background: rgba(255, 255, 255, .18); color: #fff; }

/* چوونەژوورەوە */
body.theme-soft .login-wrap { background: radial-gradient(circle at 20% 20%, #ece8fe 0, transparent 45%), radial-gradient(circle at 85% 80%, #e4e0fd 0, transparent 45%), var(--sf-bg); }
body.theme-soft .login-card { border: 1px solid var(--sf-border); border-radius: 24px; box-shadow: 0 20px 50px rgba(31, 27, 61, .1); padding: 2.25rem; }

/* ================= لە کێ بۆ کێ: سەرچاوەی پارەی ئەمانەت ================= */
.trust-party { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--sf-ink, #1f1b3d); text-decoration: none; }
.trust-party i { color: var(--sf-primary, #5b4cdb); font-size: .8rem; }
a.trust-party:hover { color: var(--sf-primary, #5b4cdb); }
.trust-party-office i { color: #8a87a3; }
.trust-sources { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.trust-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .75rem; border-radius: 999px; padding: .15rem .6rem; border: 1px solid transparent; }
.trust-chip .trust-party { font-size: .75rem; }
.trust-chip-self { background: #e7f7ed; color: #15803d; }
.trust-chip-other { background: #fdf3e1; color: #a35c06; border-color: #f6dfb4; }
.trust-chip-office { background: #f1f1f5; color: #5d5980; }
.trust-chip-repay { background: #efedfd; color: #4537c4; }

/* ================= بەشەکانی کارمەند (فۆرمی بەکارهێنەر) ================= */
.perm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem; margin-bottom: .75rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.perm-item { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.perm-item:hover { border-color: var(--sf-primary-line, #dcd7fa); }
.perm-item:has(input:checked) { border-color: var(--sf-primary, #5b4cdb); background: var(--sf-primary-soft, #efedfd); }
.perm-item .form-check-input { margin: 0; flex: 0 0 auto; }
.perm-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); display: flex; align-items: center; justify-content: center; }
.perm-item:has(input:checked) .perm-icon { background: var(--sf-primary, #5b4cdb); color: #fff; }
.perm-text { display: flex; flex-direction: column; min-width: 0; }
.perm-label { font-weight: 700; font-size: .9rem; }
.perm-hint { color: var(--sf-muted, #6e6a8a); font-size: .74rem; line-height: 1.4; }

/* ================= کەشفی حساب بۆ موشتەری (cs-): ئەنجام، «چۆن گەیشتینە ئەنجام؟»، وردەکاری =================
   هەمان دیزاین بۆ شاشە و چاپ (cs-print)؛ ڕەنگەکان ڕاستەوخۆن چونکە پەڕەی چاپ theme-soft ـی نییە */
.cs-sheet { background: #fff; border: 1px solid #ebe8f6; border-radius: 22px; padding: 1.5rem; box-shadow: 0 1px 2px rgba(31, 27, 61, .04), 0 10px 28px rgba(31, 27, 61, .06); }
.cs-account { margin-bottom: 2.25rem; color: #1f1b3d; font-size: 1rem; }
.cs-account:last-child { margin-bottom: .5rem; }
.cs-heading { display: flex; align-items: center; gap: .6rem; font-size: 1.22rem; font-weight: 800; margin: 0 0 1rem; }
.cs-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 .55rem;
    border-radius: 10px;
    background: #5b4cdb;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
}

/* ئەنجام (لای ڕاست) و «چۆن گەیشتینە ئەنجام؟» (لای چەپ) */
.cs-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; align-items: stretch; margin-bottom: 1.6rem; }
.cs-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .4rem;
    border: 1px solid;
    border-radius: 20px;
    padding: 1.4rem 1.5rem;
}
.cs-hero::after { content: ''; position: absolute; inset-inline-end: -46px; bottom: -46px; width: 160px; height: 160px; border-radius: 50%; background: currentColor; opacity: .07; }
.cs-hero-pos { background: linear-gradient(160deg, #f0fbf4 0%, #dcf4e5 100%); border-color: #b5e6c6; color: #15803d; }
.cs-hero-neg { background: linear-gradient(160deg, #fff5f5 0%, #fde2e2 100%); border-color: #f5c2c2; color: #b91c1c; }
.cs-hero-zero { background: linear-gradient(160deg, #f9f8fe 0%, #eeecf9 100%); border-color: #dcd7fa; color: #3b3760; }
.cs-hero-label { display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; font-weight: 800; line-height: 1.4; }
.cs-hero-amount { font-size: 2.3rem; font-weight: 800; line-height: 1.15; text-align: right; white-space: nowrap; }
.cs-hero-words { font-size: .92rem; font-weight: 600; line-height: 1.6; opacity: .9; }
.cs-hero-wide { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; margin-bottom: 1.1rem; padding: 1.1rem 1.4rem; }
.cs-hero-wide .cs-hero-amount { font-size: 2rem; }
.cs-hero-wide::after { display: none; }

.cs-flow { border: 1px solid #ebe8f6; border-radius: 20px; padding: .9rem 1.15rem .8rem; background: #fff; }
.cs-flow-title { font-size: .88rem; font-weight: 800; color: #5b4cdb; margin-bottom: .25rem; }
.cs-flow-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: .7rem; padding: .62rem 0; border-bottom: 1px dashed #e6e3f2; }
.cs-flow-sign { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.cs-flow-row.is-plus .cs-flow-sign { background: #e7f7ed; color: #15803d; }
.cs-flow-row.is-minus .cs-flow-sign { background: #fdecec; color: #b91c1c; }
.cs-flow-label { font-weight: 700; font-size: .98rem; line-height: 1.55; }
.cs-flow-step { display: inline-block; margin-inline-start: .35rem; padding: 0 .5rem; border-radius: 999px; background: #f3f1fb; color: #6e6a8a; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.cs-flow-sub { font-size: .82rem; color: #6e6a8a; margin-top: .1rem; }
.cs-flow-eq { font-size: .78rem; line-height: 1.85; color: #6e6a8a; margin-top: .3rem; padding-top: .3rem; border-top: 1px dotted #dcd9ea; }
.cs-flow-amount { padding-top: .12rem; font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.cs-flow-row.is-plus .cs-flow-amount { color: #15803d; }
.cs-flow-row.is-minus .cs-flow-amount { color: #b91c1c; }
.cs-flow-row.is-zero .cs-flow-sign { background: #f1f0f6; color: #a5a2bd; }
.cs-flow-row.is-zero .cs-flow-amount { color: #a5a2bd; font-weight: 700; }
.cs-flow-total { align-items: center; border-bottom: 0; border-top: 2px solid #1f1b3d; margin-top: .1rem; padding-top: .7rem; }
.cs-flow-total .cs-flow-sign { background: #1f1b3d; color: #fff; }
.cs-flow-total .cs-flow-label { font-size: 1.05rem; font-weight: 800; }
.cs-flow-total .cs-flow-amount { font-size: 1.25rem; padding-top: 0; }
.cs-flow-total.is-pos .cs-flow-amount { color: #15803d; }
.cs-flow-total.is-neg .cs-flow-amount { color: #b91c1c; }
.cs-flow-total.is-zero .cs-flow-amount { color: #1f1b3d; }
.cs-flow-key { margin-top: .45rem; font-size: .78rem; color: #8a87a3; }
.cs-flow-key b { color: #3b3760; font-size: .9rem; }

/* وردەکاری هەر بەشێک */
.cs-sec { margin-top: 1.4rem; }
.cs-title { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-size: 1.08rem; font-weight: 800; }
.cs-title small { font-size: .85rem; font-weight: 500; color: #5d5980; }
.cs-title > i { color: #5b4cdb; }
.cs-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: #5b4cdb; color: #fff; font-size: .95rem; }
.cs-sec-count { margin-inline-start: auto; padding: .15rem .65rem; border-radius: 999px; background: #f3f1fb; color: #6e6a8a; font-size: .78rem; font-weight: 700; }
/* بەشی بەتاڵ: تەنها یەک دێڕ */
.cs-sec.is-empty { margin-top: .9rem; padding: .55rem .75rem; border: 1px dashed #dcd9ea; border-radius: 14px; background: #fcfbff; }
.cs-sec.is-empty .cs-title { margin: 0; font-size: .98rem; color: #6e6a8a; }
.cs-sec.is-empty .cs-step { width: 26px; height: 26px; border-radius: 8px; background: #e9e7f3; color: #8a87a3; font-size: .85rem; }
.cs-sec-none { margin-inline-start: auto; color: #a5a2bd; font-size: .85rem; font-weight: 600; }

.cs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .98rem; }
.cs-table th { padding: .6rem .75rem; background: #f4f2fd; color: #4a4670; font-size: .85rem; font-weight: 700; text-align: right; white-space: nowrap; }
.cs-table th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.cs-table th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.cs-table td { padding: .65rem .75rem; border-bottom: 1px solid #f0eef7; vertical-align: top; }
/* کۆی گشتی وەک ڕیزی کۆتایی (tfoot لە هەموو پەڕەیەکی چاپدا دووبارە دەبێتەوە) */
.cs-table tr.cs-total td { padding-top: .75rem; border-top: 2px solid #1f1b3d; border-bottom: 0; font-weight: 800; }
.cs-table tr.cs-opening td { background: #fbfaff; font-weight: 700; }
.cs-table .cs-amount { text-align: left; white-space: nowrap; }
.cs-table tr.cs-muted td { color: #b1aec6; }
.cs-bal { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: #e7f7ed; color: #15803d; font-weight: 800; }
.cs-bal.is-neg { background: #fdecec; color: #b91c1c; }
.cs-plus { color: #15803d; font-weight: 700; }
.cs-minus { color: #b91c1c; font-weight: 700; }
.cs-none { color: #8a87a3; text-align: center; }
.cs-tag { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.cs-tag-in { background: #e7f7ed; color: #15803d; }
.cs-tag-fee { background: #efedfd; color: #4537c4; }
.cs-note { color: #5d5980; font-size: .92rem; }
.cs-empty { text-align: center; color: #8a87a3; padding: 2.5rem 1rem; font-size: 1.05rem; }
.cs-empty i { display: block; font-size: 2rem; margin-bottom: .5rem; color: #5b4cdb; opacity: .45; }

/* پارەی مامەڵەکان: کارتێک بۆ هەر گرێبەستێک */
.cs-deal { margin-bottom: 1rem; padding: 1rem; border: 1px solid #ebe8f6; border-radius: 18px; background: #fff; }
.cs-deal-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.cs-deal-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #efedfd; color: #5b4cdb; }
.cs-deal-text { flex: 1 1 240px; min-width: 0; }
.cs-deal-title { font-size: 1.02rem; font-weight: 800; }
.cs-deal-parties { font-size: .85rem; color: #6e6a8a; }
.cs-deal-balance { display: flex; flex-direction: column; align-items: flex-end; padding: .4rem .85rem; border-radius: 14px; background: #e7f7ed; color: #15803d; }
.cs-deal-balance span { font-size: .75rem; font-weight: 700; }
.cs-deal-balance strong { font-size: 1.1rem; }
.cs-deal-balance.is-neg { background: #fdecec; color: #b91c1c; }
/* کەشفی مامەڵەکان: هاتوو / چوو / ماوە بۆ هەر گرێبەستێک */
.cs-deal-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.cs-deal-sum > div { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .8rem; border: 1px solid #ebe8f6; border-radius: 14px; background: #fcfbff; }
.cs-deal-sum span { font-size: .78rem; font-weight: 700; color: #6e6a8a; }
.cs-deal-sum strong { font-size: 1.08rem; font-weight: 800; text-align: right; white-space: nowrap; }
.cs-deal-sum .is-in strong { color: #15803d; }
.cs-deal-sum .is-out strong { color: #b91c1c; }
.cs-deal-sum .is-bal { background: #e7f7ed; border-color: #c4ead2; }
.cs-deal-sum .is-bal span, .cs-deal-sum .is-bal strong { color: #15803d; }
.cs-deal-sum .is-bal.is-neg { background: #fdecec; border-color: #f6c9c9; }
.cs-deal-sum .is-bal.is-neg span, .cs-deal-sum .is-bal.is-neg strong { color: #b91c1c; }
/* کەشفی حساب: ئاماژە بۆ کەشفی مامەڵەکان */
.cs-deals-note { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1rem; padding: .75rem 1rem; border: 1px dashed #cfc8f7; border-radius: 14px; background: #f8f7fe; color: #3b3760; font-size: .92rem; }
.cs-deals-note > i { margin-top: .2rem; color: #5b4cdb; }
.cs-deals-note a { font-weight: 700; color: #4537c4; text-decoration: none; }

/* چاپ: سەری کەشف (زانیاری موشتەری) */
.cs-print { font-size: 1rem; }
.cs-doc-title { font-size: 1.5rem; }
.cs-doc-title small { font-size: .95rem; }
.cs-client {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding: .95rem 1.15rem;
    border: 1px solid #dcd7fa;
    border-radius: 16px;
    background: linear-gradient(160deg, #fcfbff 0%, #f3f1fd 100%);
    font-size: 1rem;
}
.cs-client-main { display: flex; align-items: center; gap: .85rem; }
.cs-client-avatar { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: #5b4cdb; color: #fff; font-size: 1.25rem; }
.cs-client-label { color: #6e6a8a; font-size: .82rem; }
.cs-client-name { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.cs-client-sub { font-size: .9rem; color: #3b3760; }
.cs-client-type { display: inline-block; margin-top: .25rem; padding: .1rem .65rem; border-radius: 999px; background: #e7e3fc; color: #4537c4; font-size: .75rem; font-weight: 800; }
.cs-client-meta { display: grid; grid-template-columns: repeat(2, auto); gap: .45rem 1.6rem; font-size: .92rem; }
.cs-client-meta > div { display: flex; flex-direction: column; }
.cs-client-meta .doc-ref { margin: 0; font-size: .82rem; color: #6e6a8a; }
.cs-client-meta .doc-ref strong { color: #1f1b3d; font-size: .92rem; }
.cs-print, .cs-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* چاپ و PDF/JPEG (وێنەی پەڕەکە لە شاشەدا دەگیرێت، بۆیە بێ @media print): پوختەتر بۆ پەڕەی کەمتر */
.cs-print .cs-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .8rem; margin-bottom: 1.2rem; }
.cs-print .cs-hero { padding: 1.1rem 1.15rem; }
.cs-print .cs-hero-amount { font-size: 1.7rem; }
.cs-print .cs-flow { padding: .7rem .95rem .6rem; }
.cs-print .cs-flow-row { padding: .45rem 0; }
.cs-print .cs-sec { margin-top: 1.1rem; }
.cs-print .cs-table th, .cs-print .cs-table td { padding: .5rem .6rem; }
.cs-print .cs-deal { margin-bottom: 1.2rem; padding: 0; border: 0; border-radius: 0; }
@media print {
    .cs-top, .cs-hero, .cs-flow, .cs-client, .cs-deal-head, .cs-deal-sum, .cs-deals-note, .cs-sec.is-empty { break-inside: avoid; }
    .cs-heading, .cs-title { break-after: avoid; break-inside: avoid; }
    .cs-table tr { break-inside: avoid; }
}
@media (max-width: 767.98px) {
    .cs-sheet { padding: 1rem; border-radius: 18px; }
    .cs-top { grid-template-columns: minmax(0, 1fr); }
    .cs-hero-amount { font-size: 1.9rem; }
    .cs-sec, .cs-deal { overflow-x: auto; }
    .cs-table { font-size: .9rem; }
}

/* ================= لە کێ بۆ کێ (پەڕەی تایبەت) ================= */
.tf-currency { font-size: 1.15rem; font-weight: 800; margin: 0 0 .9rem; color: var(--sf-ink, #1f1b3d); }
.tf-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2rem; }
.tf-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem 1.25rem;
    background: #fff;
    border: 1px solid var(--sf-border, #ebe8f6);
    border-inline-start: 5px solid #dc2626;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: var(--sf-shadow);
}
.tf-card.tf-closed { border-inline-start-color: #16a34a; opacity: .85; }
.tf-party { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tf-party-to { text-align: left; align-items: flex-end; }
.tf-role { color: var(--sf-muted, #6e6a8a); font-size: .8rem; }
.tf-party .trust-party { font-size: 1.1rem; }
.tf-arrow { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 190px; }
.tf-amount { font-size: 1.35rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.tf-line { display: flex; align-items: center; width: 100%; color: var(--sf-primary, #5b4cdb); }
.tf-line::before { content: ''; flex: 1; height: 2px; background: linear-gradient(to left, var(--sf-primary-line, #dcd7fa), var(--sf-primary, #5b4cdb)); }
.tf-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; padding-top: .6rem; border-top: 1px dashed var(--sf-border, #ebe8f6); color: var(--sf-muted, #6e6a8a); font-size: .85rem; }
.tf-receipts { display: flex; flex-wrap: wrap; gap: .3rem; }
@media (max-width: 767.98px) {
    .tf-card { grid-template-columns: 1fr; }
    .tf-party-to { text-align: right; align-items: flex-start; }
    .tf-arrow { min-width: 0; }
    .tf-line i { transform: rotate(-90deg); }
}

/* ================= خشتەی پێشەکی موشتەرییەکان (پارەکە لە کوێیە؟) ================= */
.at-table td { padding-top: .9rem; padding-bottom: .9rem; }
.at-table tr.at-row-debt > td { background: #fff7f7; }
.at-client { font-weight: 800; font-size: 1.02rem; color: var(--sf-ink, #1f1b3d); text-decoration: none; margin-inline-end: .35rem; }
.at-client:hover { color: var(--sf-primary, #5b4cdb); }
.at-breakdown { display: flex; flex-wrap: wrap; gap: .15rem .6rem; color: var(--sf-muted, #6e6a8a); font-size: .76rem; margin-top: .2rem; }
.at-where { min-width: 280px; }
.at-where-title { font-size: .78rem; color: var(--sf-muted, #6e6a8a); margin-bottom: .25rem; }
.at-note { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .88rem; border-radius: 10px; padding: .3rem .6rem; margin-bottom: .3rem; }
.at-note:last-child { margin-bottom: 0; }
.at-note > i { font-size: .8rem; }
.at-note .trust-party { font-size: .88rem; }
.at-note-debt { background: #fdecec; color: #b91c1c; }
.at-note-lent { background: #fdf3e1; color: #a35c06; }
.at-note-ok { background: #e7f7ed; color: #15803d; }

/* ================= ئەرشیفی دەعوا ================= */
.lw-search { position: relative; display: flex; gap: .5rem; max-width: 640px; margin-top: .25rem; }
.lw-search > i { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); color: var(--sf-muted, #6e6a8a); font-size: 1.05rem; pointer-events: none; }
.lw-search .form-control { height: 54px; border-radius: 14px; padding-right: 2.75rem; font-size: 1.05rem; border-color: var(--sf-primary-line, #dcd7fa); background: #fff; }
.lw-search .form-control:focus { border-color: var(--sf-primary, #5b4cdb); box-shadow: 0 0 0 .25rem rgba(91, 76, 219, .15); }
.lw-search .sf-btn { height: 54px; padding: 0 1.5rem; }
.lw-result-line { margin: 0 0 1rem; color: var(--sf-muted, #6e6a8a); }
.lw-list { display: flex; flex-direction: column; gap: .9rem; }
.lw-card { background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--sf-shadow); transition: border-color .15s, box-shadow .15s; }
.lw-card:hover { border-color: var(--sf-primary-line, #dcd7fa); box-shadow: var(--sf-shadow-hover); }
.lw-card-head { display: flex; align-items: flex-start; gap: .9rem; }
.lw-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.lw-title-wrap { flex: 1; min-width: 0; }
.lw-title { font-size: 1.12rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); text-decoration: none; }
.lw-title:hover { color: var(--sf-primary, #5b4cdb); }
.lw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin-top: .3rem; color: var(--sf-muted, #6e6a8a); font-size: .85rem; }
.lw-meta i { font-size: .75rem; opacity: .8; }
.lw-actions { display: flex; gap: .35rem; }
.lw-files { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed var(--sf-border, #ebe8f6); }
.lw-file { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .35rem .7rem; border-radius: 10px; background: #f8f7fd; border: 1px solid var(--sf-border, #ebe8f6); color: var(--sf-ink, #1f1b3d); font-size: .82rem; text-decoration: none; }
.lw-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-file:hover { border-color: var(--sf-primary, #5b4cdb); color: var(--sf-primary, #5b4cdb); }
.lw-file-more { font-weight: 700; color: var(--sf-primary, #5b4cdb); }
.lw-nofiles { margin-top: .75rem; color: var(--sf-muted, #6e6a8a); font-size: .85rem; }
.lw-info .list-group-item { display: flex; justify-content: space-between; gap: 1rem; }
.lw-info .list-group-item > span { color: var(--sf-muted, #6e6a8a); }
@media (max-width: 575.98px) {
    .lw-search { flex-wrap: wrap; }
    .lw-search .form-control { flex: 1 1 100%; }
    .lw-search > i { top: 27px; }
    .lw-card-head { flex-wrap: wrap; }
}


/* ================= کورتە و خەرجییەکانی داشبۆردی موشتەری (co-*) ================= */
.co-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.co-cur { border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; padding: 1rem 1.1rem .9rem; background: #fcfbff; }
.co-cur-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.co-cur-code { font-size: 1.25rem; font-weight: 800; color: var(--sf-primary, #5b4cdb); }
.co-cur-name { font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.co-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .32rem 0; font-size: .97rem; }
.co-line > span:first-child { color: var(--sf-muted, #6e6a8a); }
.co-line .num { font-weight: 700; }
.co-in { color: var(--sf-ok, #16a34a); }
.co-out { color: var(--sf-bad, #dc2626); }
.co-balance { margin-top: .4rem; padding-top: .65rem; border-top: 2px solid var(--sf-border, #ebe8f6); font-size: 1.12rem; }
.co-balance > span:first-child { color: var(--sf-ink, #1f1b3d); font-weight: 800; }
.co-balance .num { font-weight: 800; font-size: 1.25rem; }
.co-balance-neg > span:last-child { color: var(--sf-bad, #dc2626); }
.co-balance-pos > span:last-child { color: var(--sf-ok, #16a34a); }
.co-balance-zero > span:last-child { color: var(--sf-muted, #6e6a8a); }
.co-state { font-size: .88rem; font-weight: 700; }
.co-deals { margin-top: 1rem; border-top: 1px dashed var(--sf-border, #ebe8f6); padding-top: .6rem; }
.co-deals-title { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.co-deals-title i { color: var(--sf-primary, #5b4cdb); margin-left: .3rem; }
.co-count { display: inline-block; min-width: 1.9rem; padding: .1rem .45rem; border-radius: 999px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); font-size: .8rem; font-weight: 800; text-align: center; margin-right: .35rem; }
.co-scroll { max-height: 560px; overflow: auto; }
.co-scroll .co-table > thead th { position: sticky; top: 0; z-index: 1; }
.co-table .co-no a { font-weight: 700; text-decoration: none; }
.co-clip { margin-right: .3rem; color: var(--sf-muted, #6e6a8a); font-size: .8rem; }
.co-time { display: inline-block; margin-right: .4rem; font-size: .78rem; color: var(--sf-muted, #6e6a8a); direction: ltr; }
.co-amount { text-align: left !important; white-space: nowrap; }
.co-table td.co-out { font-weight: 700; }
.co-note { color: var(--sf-muted, #6e6a8a); font-size: .9rem; }
.co-totals { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem 1rem; background: #f8f7fd; border-top: 1px solid var(--sf-border, #ebe8f6); font-size: .98rem; }
.co-totals-label { color: var(--sf-muted, #6e6a8a); font-weight: 600; }
.co-totals strong { color: var(--sf-bad, #dc2626); }
.co-sep { color: #c9c5df; }
.co-hint { padding: .5rem 1rem .75rem; font-size: .82rem; color: var(--sf-muted, #6e6a8a); }

/* چاپ (وەک سیستەمی پێشوو): سەردێڕی خشتە و چوارچێوە بە ڕەنگی کلێشە */
.co-print-client { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .6rem; font-size: .95rem; }
.co-print-label { color: #555; }
.co-print-title { font-size: 1.1rem; font-weight: 800; margin: .7rem 0 .45rem; }
.co-print .co-count { background: var(--lh-color, #1f3c88); color: #fff; }
.co-print-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.co-print-table th { background: var(--lh-color, #1f3c88); color: #fff; font-weight: 700; padding: .4rem .55rem; text-align: right; }
.co-print-table td { padding: .38rem .55rem; border-bottom: 1px solid #e5e5e5; }
.co-print-table tbody tr:nth-child(even) td { background: #fafafa; }
.co-print .co-out { color: #c92a2a; }
.co-print .co-note { color: #444; }
.co-print .co-totals { position: static; margin-top: .6rem; border: 1px solid #e3d9b8; border-radius: 4px; background: #fffdf5; padding: .5rem .8rem; }
.co-print .co-totals strong { color: #111; }
.co-print-box { margin-top: 1.4rem; border: 2px solid var(--lh-color, #1f3c88); border-radius: 4px; padding: .3rem 1.1rem 1rem; break-inside: avoid; }
.co-print .co-cur { border: 0; background: none; padding: .2rem .9rem; border-radius: 0; }
.co-print .co-deals-title i { color: var(--lh-color, #1f3c88); }
.co-print .co-cur + .co-cur { border-right: 1px solid #ddd; }
.co-print .co-cur-code { color: #111; }
.co-print .co-line > span:first-child { color: #222; }
.co-print .co-balance { border-top-color: var(--lh-color, #1f3c88); }
.co-print .co-balance-neg > span:last-child { color: #c92a2a; }
.co-print .co-in { color: #2b8a3e; }
.co-print .co-print-table th, .co-print .co-count, .co-print .co-print-box, .co-print .co-totals, .co-print .co-print-table td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.co-print .co-summary { grid-template-columns: 1fr 1fr; gap: 0; }
@media print {
    .co-print-table tr { break-inside: avoid; }
    .co-print-table thead { display: table-header-group; }
    .co-print-title { break-after: avoid; }
}

/* ================= پەڕەی سەرەکیی موشتەری: بۆکسەکان پڕ بە شاشە (cd-*) ================= */
.cd-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; color: var(--sf-muted, #6e6a8a); font-size: .92rem; }
.cd-meta i { color: var(--sf-primary, #5b4cdb); font-size: .8rem; margin-left: .25rem; }
.cd-notes { margin-top: .7rem; color: var(--sf-muted, #6e6a8a); font-size: .88rem; max-width: 640px; }
.cd-card { min-width: 220px; }
button.sf-icon-btn { padding: 0; cursor: pointer; }
.sf-module.cd-colored { border-color: color-mix(in srgb, var(--sec-bg) 45%, #fff); background: color-mix(in srgb, var(--sec-bg) 7%, #fff); }
.sf-module.cd-colored .sf-module-icon { background: var(--sec-bg); color: var(--sec-fg); }
.sf-module.cd-colored:hover { border-color: var(--sec-bg); }
.sf-module.cd-colored:hover .sf-module-icon { background: var(--sec-bg); filter: brightness(.92); }
.cd-status { font-size: .74rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); margin-top: -.35rem; }
.sf-module.cd-colored .cd-status { color: color-mix(in srgb, var(--sec-bg) 78%, #000); }
button.sf-module.cd-add { font: inherit; cursor: pointer; background: transparent; border: 2px dashed var(--sf-primary-line, #dcd7fa); box-shadow: none; color: var(--sf-primary, #5b4cdb); }
button.sf-module.cd-add:hover { background: var(--sf-primary-soft, #efedfd); border-color: var(--sf-primary, #5b4cdb); }
.sf-section-head .sec-legend { justify-content: flex-start; }
@media (max-width: 575.98px) {
    .cd-status { font-size: .66rem; }
}

/* ================= بەشەکانی ناو داشبۆردی موشتەری لە فۆرمی بەکارهێنەر (sp-*) ================= */
.sp-mode { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.sp-mode-item { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .85rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; background: #fff; cursor: pointer; }
.sp-mode-item:has(input:checked) { border-color: var(--sf-primary, #5b4cdb); background: var(--sf-primary-soft, #efedfd); }
.sp-mode-item .form-check-input { margin: .2rem 0 0; flex: 0 0 auto; }
.sp-mode-item span { display: flex; flex-direction: column; }
.sp-mode-item small { color: var(--sf-muted, #6e6a8a); font-size: .76rem; }
.sp-group { border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; padding: .75rem .85rem; margin-bottom: .75rem; background: #fcfbff; }
.sp-group-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 800; margin-bottom: .6rem; }
.sp-group-head i { color: var(--sf-primary, #5b4cdb); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .45rem; }
.sp-item { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 10px; background: #fff; cursor: pointer; font-size: .88rem; font-weight: 600; }
.sp-item:has(input:checked) { border-color: var(--sf-primary, #5b4cdb); background: var(--sf-primary-soft, #efedfd); }
.sp-item .form-check-input { margin: 0; flex: 0 0 auto; }

/* ================= گرێبەستەکانی پرۆژە (pj-*) ================= */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.pj-card { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem; background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 18px; box-shadow: var(--sf-shadow); color: var(--sf-ink, #1f1b3d); text-decoration: none; border-top: 4px solid var(--pj-tone, #c9c5df); transition: transform .15s, box-shadow .15s; }
.pj-card:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-hover); color: var(--sf-ink, #1f1b3d); }
.pj-status-pending { --pj-tone: #f0a020; }
.pj-status-active { --pj-tone: #5b4cdb; }
.pj-status-completed { --pj-tone: #16a34a; }
.pj-status-cancelled { --pj-tone: #dc2626; }
.pj-card-head { display: flex; align-items: center; gap: .7rem; }
.pj-card-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.pj-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pj-card-name { font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-card-sub { font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.pj-card-line { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: var(--sf-muted, #6e6a8a); }
.pj-card-line i { color: var(--sf-primary, #5b4cdb); margin-left: .25rem; font-size: .78rem; }
.pj-late { color: var(--sf-bad, #dc2626); font-weight: 700; }
.pj-late i { color: inherit !important; }
.pj-badge { display: inline-block; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: .2rem .65rem; white-space: nowrap; }
.pj-badge-pending { background: #fdf3e1; color: #b26a00; }
.pj-badge-active { background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); }
.pj-badge-completed { background: var(--sf-ok-soft, #e7f7ed); color: var(--sf-ok, #16a34a); }
.pj-badge-cancelled { background: var(--sf-bad-soft, #fdecec); color: var(--sf-bad, #dc2626); }
h1 .pj-badge { font-size: .8rem; vertical-align: middle; }
.pj-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; background: #faf9fe; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 12px; padding: .5rem .6rem; }
.pj-money div { display: flex; flex-direction: column; min-width: 0; }
.pj-money small { font-size: .7rem; color: var(--sf-muted, #6e6a8a); }
.pj-money strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-paid { color: var(--sf-ok, #16a34a); }
.pj-left { color: var(--sf-bad, #dc2626); }
.pj-progress { height: 8px; border-radius: 999px; background: #eeecf7; overflow: hidden; }
.pj-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #16a34a, #22c55e); }
[dir="rtl"] .pj-progress > span { margin-right: 0; margin-left: auto; }
.pj-progress-sm { height: 6px; margin-top: .25rem; }
.pj-progress-lg { height: 12px; }
.pj-card-foot { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; color: var(--sf-muted, #6e6a8a); border-top: 1px dashed var(--sf-border, #ebe8f6); padding-top: .5rem; }
.pj-card-foot .pj-ok { color: var(--sf-ok, #16a34a); font-weight: 700; }
.pj-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.pj-sum { background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; box-shadow: var(--sf-shadow); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.pj-sum small { color: var(--sf-muted, #6e6a8a); font-weight: 600; }
.pj-sum strong { font-size: 1.5rem; font-weight: 800; }
.pj-sum span { font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.pj-sum-ok strong { color: var(--sf-ok, #16a34a); }
.pj-sum-bad strong { color: var(--sf-bad, #dc2626); }
.sf-module.pj-tile-active { border-color: var(--sf-primary, #5b4cdb); box-shadow: 0 0 0 3px var(--sf-primary-line, #dcd7fa), var(--sf-shadow); }
.sf-module.pj-tile-active .sf-module-icon { background: var(--sf-primary, #5b4cdb); color: #fff; }
.sf-module.pj-add-tile { background: transparent; border: 2px dashed var(--sf-primary-line, #dcd7fa); box-shadow: none; color: var(--sf-primary, #5b4cdb); }
.sf-module.pj-add-tile:hover { background: var(--sf-primary-soft, #efedfd); border-color: var(--sf-primary, #5b4cdb); }
.pj-stage-table th { font-size: .78rem; }
.contract-signatures.pj-print-signatures { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 575.98px) {
    .pj-grid { grid-template-columns: 1fr; }
    .pj-sum strong { font-size: 1.2rem; }
}

/* ================= بریکارنامەکان (wk-*) ================= */
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1rem; }
.wk-grid > * { min-width: 0; }
.wk-card { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem; background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-top: 4px solid var(--wk-tone, #c9c5df); border-radius: 18px; box-shadow: var(--sf-shadow); color: var(--sf-ink, #1f1b3d); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.wk-card:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-hover); color: var(--sf-ink, #1f1b3d); }
.wk-state-none { --wk-tone: #5b4cdb; }
.wk-state-ok { --wk-tone: #16a34a; }
.wk-state-soon { --wk-tone: #f0a020; }
.wk-state-expired { --wk-tone: #dc2626; }
.wk-state-revoked { --wk-tone: #9ca3af; }
.wk-card-head { display: flex; align-items: center; gap: .7rem; }
.wk-card-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.wk-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk-card-name { font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-card-sub { font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.wk-card-line { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: var(--sf-muted, #6e6a8a); }
.wk-card-line i { color: var(--sf-primary, #5b4cdb); margin-left: .25rem; font-size: .78rem; }
.wk-card-subject { font-size: .86rem; background: #faf9fe; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 10px; padding: .45rem .6rem; }
.wk-card-foot { font-size: .78rem; color: var(--sf-muted, #6e6a8a); border-top: 1px dashed var(--sf-border, #ebe8f6); padding-top: .45rem; }
.wk-badge { display: inline-block; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap; }
.wk-badge-none { background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); }
.wk-badge-ok { background: var(--sf-ok-soft, #e7f7ed); color: var(--sf-ok, #16a34a); }
.wk-badge-soon { background: #fdf3e1; color: #b26a00; }
.wk-badge-expired { background: var(--sf-bad-soft, #fdecec); color: var(--sf-bad, #dc2626); }
.wk-badge-revoked { background: #f1f1f5; color: #6b7280; text-decoration: line-through; }
h1 .wk-badge { font-size: .8rem; vertical-align: middle; }
.wk-text-ok { color: var(--sf-ok, #16a34a); }
.wk-text-soon { color: #b26a00; }
.wk-text-expired { color: var(--sf-bad, #dc2626); }
.wk-text-revoked, .wk-text-none { color: var(--sf-muted, #6e6a8a); }
.wk-info-card { border-top: 4px solid var(--wk-tone, #c9c5df); }
.wk-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.wk-type { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; background: #fff; cursor: pointer; }
.wk-type:has(input:checked) { border-color: var(--sf-primary, #5b4cdb); background: var(--sf-primary-soft, #efedfd); }
.wk-type .form-check-input { margin: 0; flex: 0 0 auto; }
.wk-type-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); display: flex; align-items: center; justify-content: center; }
.wk-type:has(input:checked) .wk-type-icon { background: var(--sf-primary, #5b4cdb); color: #fff; }
.wk-type-text { display: flex; flex-direction: column; min-width: 0; }
.wk-type-text small { color: var(--sf-muted, #6e6a8a); font-size: .74rem; line-height: 1.4; }
@media (max-width: 575.98px) {
    .wk-grid { grid-template-columns: minmax(0, 1fr); }
    .wk-card-head { flex-wrap: wrap; }
    .wk-badge { white-space: normal; }
}

/* ================= زیادکردنی چەند خەرجییەک پێکەوە (xb-*) و پسولەی دار الثقة (bill-*) ================= */
.xb-advance { background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; padding: .7rem 1rem; margin-bottom: 1rem; box-shadow: var(--sf-shadow); }
.xb-advance i { color: var(--sf-primary, #5b4cdb); margin-left: .3rem; }
.xb-table td { vertical-align: top; }
.xb-table .xb-no { padding-top: .9rem; color: var(--sf-muted, #6e6a8a); font-weight: 700; }
.xb-total { font-weight: 800; color: var(--sf-bad, #dc2626); }
.xb-bill-cell { display: flex; flex-direction: column; gap: .35rem; }
tr.xb-has-file input[type="file"] { border-color: #16a34a; background: #f3fbf5; }
/* ================= پیشاندانی هاوپێچ لە هەمان تاب (fv-*) ================= */
.fv-bar { position: sticky; top: 56px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; box-shadow: var(--sf-shadow); padding: .7rem .9rem; margin-bottom: .8rem; }
.fv-title { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: .6rem; }
.fv-title > i { font-size: 1.6rem; }
.fv-title span { display: flex; flex-direction: column; min-width: 0; }
.fv-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-title small { color: var(--sf-muted, #6e6a8a); font-size: .8rem; }
.fv-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.fv-status { background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); border-radius: 12px; padding: .5rem .8rem; margin-bottom: .8rem; font-weight: 600; font-size: .9rem; }
.fv-status-bad { background: var(--sf-bad-soft, #fdecec); color: var(--sf-bad, #dc2626); }
.fv-siblings { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.fv-siblings a { display: inline-flex; align-items: center; gap: .35rem; max-width: 240px; padding: .3rem .7rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 999px; background: #fff; color: var(--sf-ink, #1f1b3d); text-decoration: none; font-size: .82rem; }
.fv-siblings a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-siblings a.active { border-color: var(--sf-primary, #5b4cdb); background: var(--sf-primary-soft, #efedfd); font-weight: 700; }
.fv-stage { background: #f1f0f7; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; min-height: 60vh; }
.fv-stage-image { padding: 1rem; }
.fv-stage-image img { max-width: 100%; height: auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); background: #fff; }
.fv-stage-pdf iframe { width: 100%; height: calc(100vh - 230px); min-height: 520px; border: 0; background: #fff; }
.fv-other { text-align: center; padding: 4rem 1rem; }
.fv-other > i { font-size: 4rem; margin-bottom: 1rem; display: block; }
@media (max-width: 575.98px) {
    .fv-bar { top: 52px; }
    .fv-actions { width: 100%; }
    .fv-actions .btn { flex: 1 1 auto; }
}
/* ناردن (Share) */
.fv-share .dropdown-menu { min-width: 200px; }
.fv-share .dropdown-item i { width: 1.2rem; margin-left: .35rem; }
.fv-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.fv-app { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .8rem .3rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; background: #fff; color: var(--sf-ink, #1f1b3d); font-size: .8rem; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.fv-app:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-hover); }
.fv-app i { font-size: 1.8rem; }
.fv-app-whatsapp i { color: #25d366; }
.fv-app-viber i { color: #7360f2; }
.fv-app-messenger i { color: #0084ff; }
.fv-app-facebook i { color: #1877f2; }
.fv-app-telegram i { color: #229ed9; }
.fv-app-email i { color: #ea4335; }
.fv-app-copy i, .fv-app-other i { color: var(--sf-primary, #5b4cdb); }
@media (max-width: 575.98px) {
    .fv-apps { grid-template-columns: repeat(3, 1fr); }
    .fv-share { flex: 1 1 auto; }
    .fv-share .fv-share-btn { width: 100%; }
}

/* ================= کەشفە نێردراوەکان (dp-*) ================= */
.dp-card { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-top: 4px solid var(--dp-tone, #c9c5df); border-radius: 18px; box-shadow: var(--sf-shadow); color: var(--sf-ink, #1f1b3d); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dp-card:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow-hover); color: var(--sf-ink, #1f1b3d); }
.dp-card-prepared { --dp-tone: #c9c5df; }
.dp-card-sent { --dp-tone: #3b6fd8; }
.dp-card-received { --dp-tone: #16a34a; }
.dp-ref { font-weight: 800; font-size: .8rem; color: var(--sf-primary-dark, #4537c4); background: var(--sf-primary-soft, #efedfd); border-radius: 8px; padding: .2rem .5rem; white-space: nowrap; }
.dp-chip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; font-weight: 700; border: 1px solid transparent; }
.dp-chip small { font-weight: 600; opacity: .8; }
.dp-stage-prepared { background: #f1f3f5; color: #495057; border-color: #dee2e6; }
.dp-stage-sent { background: #e7f0ff; color: #1c4fb8; border-color: #c5d8fb; }
.dp-stage-received { background: #e6f6f4; color: #0b7a6c; border-color: #bfe8e2; }
.dp-amounts { display: flex; flex-wrap: wrap; gap: .4rem; }
.dp-amount { display: inline-flex; flex-direction: column; background: #faf9fe; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 10px; padding: .3rem .6rem; font-weight: 800; font-size: .9rem; line-height: 1.3; }
.dp-amount small { font-weight: 600; font-size: .7rem; color: var(--sf-muted, #6e6a8a); }
.dp-amount.is-owed { background: var(--sf-bad-soft, #fdecec); border-color: #f6c9c9; color: var(--sf-bad, #dc2626); }
.dp-amount.is-owed small { color: var(--sf-bad, #dc2626); }
.dp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; max-width: 520px; margin-inline: auto; }
.dp-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; color: var(--sf-muted, #6e6a8a); }
.dp-step::before { content: ''; position: absolute; top: 16px; right: calc(-50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--sf-border, #ebe8f6); }
.dp-step:first-child::before { display: none; }
.dp-step.is-done::before { background: var(--sf-ok, #16a34a); }
.dp-step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f1f1f5; font-size: .85rem; position: relative; z-index: 1; }
.dp-step.is-done .dp-step-dot { background: var(--sf-ok, #16a34a); color: #fff; }
.dp-step.is-done { color: var(--sf-ink, #1f1b3d); }
.dp-step-label { font-weight: 800; font-size: .85rem; }
.dp-step-en { font-size: .7rem; color: var(--sf-muted, #6e6a8a); }
.dp-step-time { font-size: .74rem; color: var(--sf-muted, #6e6a8a); }
.dp-steps-compact .dp-step-dot { width: 26px; height: 26px; font-size: .72rem; }
.dp-steps-compact .dp-step::before { top: 13px; right: calc(-50% + 15px); width: calc(100% - 30px); }
.dp-steps-compact .dp-step-label { font-size: .74rem; }
.dp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.dp-action { border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; padding: .7rem .8rem; background: #fcfcff; }
.dp-action-head { font-weight: 800; margin-bottom: .35rem; }
.dp-action-head i { color: var(--sf-primary, #5b4cdb); margin-left: .25rem; }
.dp-action-head small { font-weight: 600; color: var(--sf-muted, #6e6a8a); }
.dp-history .list-group-item { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: baseline; font-size: .88rem; }
.dp-history-event { font-weight: 800; }
.dp-history-meta { margin-right: auto; font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.dp-ev-sent, .dp-ev-received, .dp-ev-confirmed { color: var(--sf-ok, #16a34a); }
.dp-ev-resent { color: #b26a00; }
.dp-ev-undone { color: var(--sf-bad, #dc2626); }
.dp-public { max-width: 460px; }
@media (max-width: 575.98px) {
    .dp-step-time { font-size: .66rem; }
    .dp-history-meta { margin-right: 0; width: 100%; }
}

/* ================= خشتەی کاری پارێزەران (ws-*)، کارەکانی من (mt-*)، ئاگادارکردنەوە (nt-*) ================= */
.tb-bell { position: relative; }
.tb-bell-count { position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e03131; color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.ws-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.ws-rows { display: flex; flex-direction: column; gap: .75rem; background: #faf9fe; }
.ws-row { position: relative; display: flex; gap: .6rem; align-items: flex-start; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; padding: .7rem .8rem; }
.ws-row.is-done { border-color: #b2f2bb; background: #f4fdf6; }
.ws-row-no { flex: 0 0 30px; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding-top: 1.7rem; font-weight: 800; color: var(--sf-muted, #6e6a8a); }
.ws-row-no .fa-circle-check { color: #2f9e44; }
.ws-row-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: 150px 110px minmax(0, 2fr) minmax(0, 1.2fr); gap: .5rem .6rem; }
.ws-f-title { grid-column: span 2; }
.ws-row-grid .form-label { margin-bottom: .15rem; color: var(--sf-muted, #6e6a8a); }
.ws-remove { margin-top: 1.55rem; }
.ws-row .ts-wrapper.form-select-sm .ts-control { min-height: calc(1.5em + .5rem + 2px); padding-top: .2rem; padding-bottom: .2rem; }
@media (max-width: 991.98px) {
    .ws-row-grid { grid-template-columns: 1fr 1fr; }
    .ws-f-client, .ws-f-title, .ws-f-lawyer { grid-column: span 2; }
}
.ws-voice { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ws-voice audio { height: 38px; max-width: 100%; }

.ws-weekbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .9rem; }
.ws-week-title { font-weight: 800; }
.ws-stat { display: inline-flex; align-items: center; gap: .3rem; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; font-weight: 700; }
.ws-stat-ok { background: #e6f7ea; color: #2b8a3e; }
.ws-stat-bad { background: var(--sf-bad-soft, #fdecec); color: var(--sf-bad, #dc2626); }
.ws-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.ws-daycol { background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; padding: .6rem; min-height: 180px; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.ws-daycol.is-today { border: 2px solid var(--sf-primary, #5b4cdb); box-shadow: var(--sf-shadow); }
.ws-daycol.is-past { background: #fbfbfd; }
.ws-daycol-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .3rem; border-bottom: 1px dashed var(--sf-border, #ebe8f6); padding-bottom: .4rem; }
.ws-dayname { font-weight: 800; font-size: .92rem; }
.ws-empty { color: #adb5bd; font-size: .8rem; text-align: center; padding: 1rem 0; }
.ws-mini { display: flex; gap: .45rem; align-items: flex-start; border: 1px solid var(--sf-border, #ebe8f6); border-inline-start: 4px solid var(--sf-primary, #5b4cdb); border-radius: 10px; padding: .4rem .45rem; background: #fff; }
.ws-mini.is-done { border-color: #b2f2bb; border-inline-start-color: #2f9e44; background: #ebfbee; }
.ws-mini.is-overdue { border-inline-start-color: #e03131; background: #fff5f5; }
.ws-mini-body { min-width: 0; flex: 1; }
.ws-mini-title { font-weight: 700; font-size: .84rem; line-height: 1.35; }
.ws-mini.is-done .ws-mini-title { color: #2b8a3e; }
.ws-mini-line { font-size: .74rem; color: var(--sf-muted, #6e6a8a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-mini-line i { width: 14px; color: var(--sf-primary, #5b4cdb); }
.ws-mini-lawyer { color: var(--sf-ink, #1f1b3d); font-weight: 600; }
.ws-time { display: inline-block; background: #fff3bf; color: #845e00; border-radius: 6px; padding: 0 .3rem; font-size: .74rem; font-weight: 800; }
@media (max-width: 1399.98px) { .ws-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .ws-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ws-week { grid-template-columns: minmax(0, 1fr); } .ws-daycol { min-height: 0; } }

/* ✓ تەواوکردن: بازنە، سەوز کاتێک تەواوبووە */
.ws-check { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #adb5bd; background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; transition: all .15s; padding: 0; }
.ws-check:hover { border-color: #2f9e44; color: #8ce99a; }
.is-done .ws-check, .ws-check[aria-pressed="true"] { background: #2f9e44; border-color: #2f9e44; color: #fff; }
.ws-check-sm { width: 24px; height: 24px; font-size: .7rem; }
.ws-check-lg { width: 46px; height: 46px; font-size: 1.2rem; }
.ws-check:disabled { opacity: .4; }

.ws-lawyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: .75rem; }
.ws-lawyer { background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.ws-lawyer.is-done { border-color: #b2f2bb; background: #f4fdf6; }
.ws-lawyer-head { display: flex; align-items: center; gap: .6rem; }
.ws-lawyer-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.ws-progress-num { font-weight: 800; }
.ws-progress .progress { height: 20px; min-width: 160px; }
.ws-task { display: flex; gap: .75rem; align-items: flex-start; }
.ws-task.is-done { background: #ebfbee; }
.ws-task.is-done .ws-task-title { color: #2b8a3e; }
.ws-task.is-overdue { border-inline-start: 4px solid #e03131; }
.ws-task.is-cancelled { opacity: .5; }
.ws-task-body { flex: 1; min-width: 0; }
.ws-task-title { font-weight: 700; }
.ws-task-meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .84rem; color: var(--sf-muted, #6e6a8a); margin-top: .15rem; }
.ws-task-meta i { color: var(--sf-primary, #5b4cdb); margin-left: .2rem; }
.ws-task-edit { flex: 0 0 auto; }

.mt-wrap { max-width: 860px; margin-inline: auto; }
.mt-voice { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: #fff8e1; border: 1px solid #ffe08a; border-radius: 14px; padding: .5rem .8rem; margin-bottom: .75rem; }
.mt-voice i { color: #e8590c; }
.mt-voice audio { height: 36px; flex: 1; min-width: 200px; }
.mt-group { margin-bottom: 1.2rem; }
.mt-group-title { font-size: 1.05rem; font-weight: 800; margin-bottom: .55rem; display: flex; align-items: center; gap: .4rem; }
.mt-group-title .num { background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; }
.mt-tone-bad .mt-group-title { color: var(--sf-bad, #dc2626); }
.mt-tone-ok .mt-group-title { color: #2b8a3e; }
.mt-task { display: flex; gap: .8rem; align-items: flex-start; background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-inline-start: 5px solid var(--sf-primary, #5b4cdb); border-radius: 16px; padding: .8rem .9rem; margin-bottom: .55rem; box-shadow: var(--sf-shadow); transition: background .2s, border-color .2s; }
.mt-task.is-done { background: #ebfbee; border-color: #b2f2bb; border-inline-start-color: #2f9e44; }
.mt-task.is-overdue { border-inline-start-color: #e03131; }
.mt-task-body { flex: 1; min-width: 0; }
.mt-task-when { font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.mt-task-title { font-weight: 800; font-size: 1.05rem; margin: .1rem 0 .25rem; }
.mt-task.is-done .mt-task-title { color: #2b8a3e; }
.mt-task-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .88rem; }
.mt-task-meta i { color: var(--sf-primary, #5b4cdb); margin-left: .2rem; }
.mt-place { font-weight: 700; }
.mt-task-notes { font-size: .84rem; color: var(--sf-muted, #6e6a8a); margin-top: .25rem; }
.mt-task-done { font-size: .82rem; color: #2b8a3e; font-weight: 700; margin-top: .3rem; }

.nt-list { display: flex; flex-direction: column; gap: .7rem; max-width: 860px; }
.nt-item { background: var(--sf-surface, #fff); border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; padding: .8rem 1rem; }
.nt-item.is-unread { border-inline-start: 5px solid var(--sf-primary, #5b4cdb); background: #fcfbff; }
.nt-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.nt-title { font-weight: 800; }
.nt-title i { color: var(--sf-primary, #5b4cdb); margin-left: .3rem; }
.nt-at { font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.nt-day { font-weight: 800; font-size: .88rem; margin: .45rem 0 .2rem; color: var(--sf-primary-dark, #4537c4); }
.nt-tasks { margin: 0; padding-inline-start: 1.3rem; font-size: .9rem; }
.nt-tasks li { margin-bottom: .3rem; }
.nt-place { font-size: .84rem; color: #c2410c; font-weight: 700; }
.nt-notes { font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.nt-pop + .nt-pop { border-top: 1px dashed var(--sf-border, #ebe8f6); margin-top: .8rem; padding-top: .8rem; }
.nt-pop-title { font-weight: 800; font-size: 1.05rem; }
.nt-voice { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; background: #fff8e1; border-radius: 12px; padding: .4rem .6rem; font-size: .85rem; font-weight: 700; }
.nt-voice audio { height: 36px; flex: 1; min-width: 200px; }
.nt-bell-anim { display: inline-block; color: #f08c00; animation: nt-ring 1.2s ease-in-out 3; transform-origin: 50% 0; }
@keyframes nt-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .nt-bell-anim { animation: none; } }
@media (max-width: 575.98px) { .ws-f-place, .ws-f-notes { grid-column: span 2; } .ws-row { padding: .6rem; } .ws-row-no { flex-basis: 20px; } }

.co-carried { border-bottom: 1px dashed #ced4da; padding-bottom: .25rem; margin-bottom: .2rem; font-weight: 700; }

/* ================= پێدانی بەڵگەنامە: «دەدرێت بە کێ؟» و «دراوە بە ناوی ...» ================= */
.dh-given { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .45rem; padding: .2rem .7rem; border-radius: 999px; background: #e7f7ed; color: #15803d; font-size: .82rem; }
.dh-given strong { font-weight: 800; }
.dh-given-meta, .dh-given-more { color: #3f7a55; }
.dh-history { margin: 0 0 .9rem; padding: .7rem 1rem; border: 1px solid #c4ead2; border-radius: 14px; background: #f3fbf6; }
.dh-history-title { font-weight: 800; color: #15803d; margin-bottom: .35rem; }
.dh-history-title i { margin-inline-end: .25rem; }
.dh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-height: 220px; overflow-y: auto; }
.dh-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .7rem; font-size: .88rem; color: #3b3760; padding: .25rem 0; border-bottom: 1px dashed #d6efdf; }
.dh-list li:last-child { border-bottom: 0; }
.dh-list li strong { color: #1f1b3d; }
.dh-list li small { color: #8a87a3; }
.dh-list li.dh-new { animation: dh-flash 1.6s ease-out; }
@keyframes dh-flash { from { background: #c4ead2; } to { background: transparent; } }
.dh-way { display: inline-block; margin-bottom: .75rem; padding: .15rem .7rem; border-radius: 999px; background: #efedfd; color: #4537c4; font-size: .82rem; font-weight: 700; }
.dh-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.dh-chip { border: 1px solid #dcd7fa; background: #f8f7fe; color: #3b2fa8; border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; font-weight: 600; }
.dh-chip:hover { background: #efedfd; }
.fv-status.fv-status-ok { background: #e7f7ed; color: #15803d; border-color: #c4ead2; font-weight: 700; }

/* ================= کۆنووسی کۆبوونەوە (داشبۆردی کۆمپانیا) ================= */
.mm-subhead { font-weight: 800; color: var(--sf-primary-dark, #4537c4); border-bottom: 1px dashed var(--sf-border, #ebe8f6); padding-bottom: .25rem; }
.mm-changes { list-style: none; margin: .5rem 0 0; padding: .5rem .75rem; border-radius: 12px; background: #f8f7fe; font-size: .86rem; display: grid; gap: .2rem; }
.mm-change-label { font-weight: 700; color: #3b3760; }
.mm-changes del { color: #b91c1c; text-decoration-color: rgba(185, 28, 28, .5); }
.mm-changes ins { color: #15803d; text-decoration: none; font-weight: 700; }
.mm-changes i { font-size: .7rem; color: #8a87a3; margin: 0 .2rem; }

/* ================= ئاسایش (account/security، security/index، two-factor، idle) ================= */
.sec-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sec-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: #f3f1fb; color: #3b3760; font-size: .82rem; font-weight: 600; }
.sec-chip.is-ok { background: #e7f7ed; color: #15803d; }
.sec-chip.is-warn { background: #fdf3e1; color: #a35c06; }
.sec-chip.is-bad { background: #fdecec; color: #b91c1c; }
.sec-card .card-header { font-weight: 700; }
.sec-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; direction: ltr; }
.sec-codes span { padding: .35rem .5rem; border-radius: 8px; background: #fff; border: 1px dashed #e0b660; text-align: center; font-weight: 700; letter-spacing: .05em; }
.sec-steps { padding-inline-start: 1.2rem; }
.sec-steps li { margin-bottom: .9rem; }
.sec-qr { display: inline-block; padding: .5rem; background: #fff; border: 1px solid #ebe8f6; border-radius: 14px; }
.sec-qr svg { display: block; width: 190px; height: 190px; }
.sec-key { display: inline-block; direction: ltr; padding: .15rem .5rem; border-radius: 8px; background: #f3f1fb; color: #1f1b3d; font-weight: 700; letter-spacing: .08em; user-select: all; }
.sec-code { font-size: 1.8rem; letter-spacing: .5em; font-weight: 800; direction: ltr; }
.sec-code-sm { max-width: 11rem; font-size: 1.2rem; letter-spacing: .3em; font-weight: 800; direction: ltr; }
.sec-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); }
.sec-layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.sec-layer { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 18px; background: #fff; box-shadow: var(--sf-shadow, none); }
.sec-layer::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; border-start-start-radius: 18px; border-end-start-radius: 18px; background: #dcd9ea; }
.sec-layer.is-on::before { background: #16a34a; }
.sec-layer.is-off::before { background: #dc2626; }
.sec-layer-head { display: flex; align-items: center; gap: .5rem; }
.sec-layer-no { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #f3f1fb; color: #6e6a8a; font-size: .75rem; font-weight: 800; }
.sec-layer-icon { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); }
.sec-layer-state { margin-inline-start: auto; font-size: .72rem; font-weight: 800; padding: .1rem .55rem; border-radius: 999px; background: #e7f7ed; color: #15803d; }
.sec-layer.is-off .sec-layer-state { background: #fdecec; color: #b91c1c; }
.sec-layer-title { font-weight: 800; }
.sec-layer-text { font-size: .82rem; color: var(--sf-muted, #6e6a8a); line-height: 1.7; }
.sec-layer-text b { color: var(--sf-ink, #1f1b3d); }
tr.sec-event-bad td { background: #fff7f7; }
.tb-btn.tb-alert { background: #fdecec; color: #dc2626; }
.idle-warning { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 2000; max-width: 560px; margin-inline: auto; padding: .8rem 1rem; border-radius: 14px; background: #1f1b3d; color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.idle-warning i { margin-inline-end: .35rem; color: #fbbf24; }

/* پرسیاری «ئەم بەشە بۆ کێ زیاد بکرێت؟» لە پەنجەرەی بەشی نوێ */
.section-scope { border: 1px solid var(--sf-border, #ebe8f6); border-radius: 12px; padding: .7rem .9rem .4rem; background: var(--sf-primary-soft, #efedfd); }
.section-scope-title { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.section-scope-option { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem 0; margin: 0; cursor: pointer; }
.section-scope-option .form-check-input { float: none; margin: .2rem 0 0; flex: 0 0 auto; }

/* «کارەکانی من»: بەستەری نووسینی خەرجی بۆ هەر کارێک (پارەی پارێزەران) */
.mt-expense-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; font-size: .8rem; color: var(--sf-primary, #5b4cf0); text-decoration: none; }
.mt-expense-link:hover { text-decoration: underline; }

/* پارەی پارێزەران: ڕێگەدانی ژمێریار بۆ نووسینی خەرجی لەلایەن پارێزەرەوە */
.lf-permission.is-on { border-color: #b7e4c7; background: #f3fbf5; }
.lf-permission.is-off { border-color: var(--sf-border, #ebe8f6); background: #f8f8fb; }

/* ================= پارەی پارێزەران: کارتی «پارەدان بە پارێزەر» و «خەرجییەکی پارێزەر» (lf-*) ================= */
.lf-card { background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 16px; box-shadow: var(--sf-shadow); overflow: hidden; }
.lf-head { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--sf-border, #ebe8f6); }
.lf-head-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); }
.lf-head-icon.is-expense { background: var(--sf-warn-soft, #fdf3e1); color: var(--sf-warn, #c2710c); }
.lf-head-icon.is-muted { background: #f1f1f5; color: var(--sf-muted, #6e6a8a); }
.lf-head-title { font-size: 1.08rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); line-height: 1.35; }
.lf-head-sub { font-size: .82rem; color: var(--sf-muted, #6e6a8a); }
.lf-chip { margin-inline-start: auto; display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary-dark, #4537c4); font-size: .84rem; font-weight: 700; }
.lf-chip.is-warn { background: var(--sf-warn-soft, #fdf3e1); color: var(--sf-warn, #c2710c); font-weight: 600; }
.lf-body { padding: 1.25rem; }
.lf-col-split { border-inline-start: 1px dashed var(--sf-border, #ebe8f6); }
.lf-step { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; font-size: .92rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.lf-step-num { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sf-primary, #5b4cdb); color: #fff; font-size: .78rem; font-weight: 700; }
.lf-label { display: block; margin-bottom: .3rem; font-size: .8rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); }
.lf-label.required::after { content: ' *'; color: var(--sf-bad, #dc2626); }
.lf-hint { margin-top: .35rem; font-size: .76rem; color: var(--sf-muted, #6e6a8a); }
.lf-body .form-control, .lf-body .form-select { min-height: 44px; border-radius: 11px; }

/* جۆری جووڵە: دوو کارتی هەڵبژاردن لە جیاتی لیست */
.lf-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.lf-type { position: relative; display: flex; align-items: center; gap: .75rem; margin: 0; padding: .8rem .9rem; border: 1.5px solid var(--sf-border, #ebe8f6); border-radius: 13px; background: #fcfbff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.lf-type input { position: absolute; opacity: 0; pointer-events: none; }
.lf-type-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); color: var(--sf-muted, #6e6a8a); transition: background .15s, color .15s; }
.lf-type strong { display: block; font-size: .93rem; color: var(--sf-ink, #1f1b3d); }
.lf-type small { font-size: .76rem; color: var(--sf-muted, #6e6a8a); }
.lf-type:hover { border-color: var(--sf-primary-line, #dcd7fa); }
.lf-type:has(input:checked) { border-color: var(--sf-primary, #5b4cdb); background: var(--sf-primary-soft, #efedfd); box-shadow: 0 0 0 .2rem rgba(91, 76, 219, .12); }
.lf-type:has(input:checked) .lf-type-icon { background: var(--sf-primary, #5b4cdb); border-color: var(--sf-primary, #5b4cdb); color: #fff; }
.lf-type.is-return:has(input:checked) { border-color: var(--sf-ok, #16a34a); background: var(--sf-ok-soft, #e7f7ed); box-shadow: 0 0 0 .2rem rgba(22, 163, 74, .12); }
.lf-type.is-return:has(input:checked) .lf-type-icon { background: var(--sf-ok, #16a34a); border-color: var(--sf-ok, #16a34a); }
.lf-type:has(input:focus-visible) { outline: 2px solid var(--sf-primary, #5b4cdb); outline-offset: 2px; }

/* بڕی پارە: ژمارەی گەورە لەگەڵ هەڵبژاردنی دراو لە ناو هەمان خانە */
.lf-amount { display: flex; align-items: stretch; border: 1.5px solid #e3dff3; border-radius: 13px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.lf-amount:focus-within { border-color: #9d93ec; box-shadow: 0 0 0 .2rem rgba(91, 76, 219, .15); }
.lf-amount .form-control { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 0; border-radius: 0; box-shadow: none !important; background: transparent; padding: .5rem 1rem; font-size: 1.45rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.lf-amount .form-control::placeholder { color: #c9c5dc; }
.lf-currency { display: flex; gap: .25rem; padding: .35rem; background: #f6f5fc; border-inline-start: 1px solid var(--sf-border, #ebe8f6); }
.lf-currency label { display: inline-flex; align-items: center; margin: 0; padding: 0 .8rem; border-radius: 9px; font-size: .85rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.lf-currency input { position: absolute; opacity: 0; pointer-events: none; }
.lf-currency label:has(input:checked) { background: #fff; color: var(--sf-primary-dark, #4537c4); box-shadow: 0 1px 3px rgba(31, 27, 61, .14); }
.lf-currency label:has(input:focus-visible) { outline: 2px solid var(--sf-primary, #5b4cdb); }

/* خوارەوەی کارت: پێشبینین / کورتە و دوگمەی پاشەکەوتکردن */
.lf-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .9rem 1.25rem; background: #fcfbff; border-top: 1px solid var(--sf-border, #ebe8f6); }
.lf-preview { font-size: .9rem; color: var(--sf-muted, #6e6a8a); }
.lf-preview strong { color: var(--sf-ink, #1f1b3d); }
.lf-preview.is-bad, .lf-preview.is-bad strong { color: var(--sf-bad, #dc2626); }
.lf-submit { min-width: 230px; padding: .65rem 1.3rem; border-radius: 12px; font-weight: 800; }
.lf-history { border-top: 1px solid var(--sf-border, #ebe8f6); }
.lf-history-title { padding: .75rem 1.25rem .25rem; font-size: .82rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); }
@media (max-width: 991.98px) {
    .lf-col-split { border-inline-start: 0; border-top: 1px dashed var(--sf-border, #ebe8f6); padding-top: 1.25rem; }
}
@media (max-width: 575.98px) {
    .lf-chip { margin-inline-start: 0; }
    .lf-submit { width: 100%; }
}

/* ================= دۆسیەی بەڵگەنامەکان (dv-*): clients/dashboard/documents ================= */
.dv { --dv-c: var(--sf-primary, #5b4cdb); }
.dv [hidden] { display: none !important; }

/* سەرپەڕە */
.dv-hero { position: relative; overflow: hidden; margin-bottom: 1rem; padding: 1.4rem 1.5rem 1.15rem; border-radius: 22px; color: #fff;
    background:
        radial-gradient(circle at 8% 130%, rgba(255, 255, 255, .16) 0, transparent 42%),
        radial-gradient(circle at 96% -20%, rgba(255, 255, 255, .2) 0, transparent 38%),
        linear-gradient(135deg, #34289f 0%, #5b4cdb 55%, #8172f2 100%);
    box-shadow: 0 18px 40px rgba(52, 40, 159, .28); }
.dv-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.2px); background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.dv-hero > * { position: relative; z-index: 1; }
.dv-hero-main { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; }
.dv-ring { --p: 0; --c: #4ade80; flex: 0 0 auto; width: 106px; height: 106px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); }
.dv-ring.dv-tone-warn { --c: #fbbf24; }
.dv-ring.dv-tone-bad { --c: #f87171; }
.dv-ring-inner { width: 82px; height: 82px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(24, 16, 96, .55); }
.dv-ring-inner strong { font-size: 1.55rem; font-weight: 800; line-height: 1; }
.dv-ring-inner small { font-size: .85rem; opacity: .85; }
.dv-ring-inner span { margin-top: .2rem; font-size: .62rem; opacity: .85; }
.dv-hero-text { flex: 1 1 220px; min-width: 0; }
.dv-eyebrow { font-size: .8rem; font-weight: 600; opacity: .85; }
.dv-hero-title { margin: .15rem 0 .2rem; font-size: 1.6rem; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.dv-hero-sub { font-size: .9rem; opacity: .85; }
.dv-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dv-btn-light { padding: .55rem 1.05rem; border-radius: 12px; background: #fff; color: #34289f; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, .16); }
.dv-btn-light:hover, .dv-btn-light:focus { background: #f3f1ff; color: #34289f; }
.dv-btn-ghost { padding: .55rem .9rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; }
.dv-btn-ghost:hover, .dv-btn-ghost:focus { background: rgba(255, 255, 255, .25); color: #fff; }
.dv-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: 1.15rem; }
.dv-metric { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.dv-metric:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-1px); }
.dv-metric strong { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.dv-metric small { font-size: .72rem; opacity: .88; }
.dv-metric.is-warn { background: rgba(251, 191, 36, .2); border-color: rgba(253, 230, 138, .45); }
.dv-metric.is-bad { background: rgba(248, 113, 113, .28); border-color: rgba(254, 202, 202, .55); }
.dv-metric-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.dv-metric-icon.dv-tone-ok { color: #16a34a; }
.dv-metric-icon.dv-tone-warn { color: #d97706; }
.dv-metric-icon.dv-tone-bad { color: #dc2626; }

/* بەڵگەنامەی نوێ */
.dv-upload { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.1rem; margin-bottom: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 20px; box-shadow: var(--sf-shadow); }
.dv-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 230px; margin: 0; padding: 1rem; text-align: center; border: 2px dashed #cfc8f3; border-radius: 16px; background: linear-gradient(180deg, #faf9ff, #f3f1ff); color: var(--sf-muted, #6e6a8a); font-size: .82rem; cursor: pointer; transition: border-color .15s, background .15s; }
.dv-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dv-drop strong { font-size: 1rem; color: var(--sf-ink, #1f1b3d); }
.dv-drop-icon { width: 58px; height: 58px; margin-bottom: .35rem; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #5b4cdb, #8b7cf6); box-shadow: 0 10px 22px rgba(91, 76, 219, .3); }
.dv-drop.is-over { border-color: var(--sf-primary, #5b4cdb); background: #efedfd; }
.dv-drop.has-files { border-style: solid; border-color: #86efac; background: #f3fbf5; }
.dv-drop-files { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: .4rem; max-width: 100%; pointer-events: none; }
.dv-file-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .1rem .55rem; border: 1px solid #bbf7d0; border-radius: 999px; background: #fff; color: #15803d; font-size: .72rem; }
.dv-upload-fields .form-control, .dv-upload-fields .form-select { min-height: 44px; border-radius: 11px; }
.dv-label { display: block; margin-bottom: .3rem; font-size: .8rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); }
.dv-label.required::after { content: " *"; color: var(--sf-bad, #dc2626); }
.dv-seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.dv-seg label { position: relative; display: inline-flex; align-items: center; margin: 0; padding: .42rem .95rem; border: 1.5px solid var(--sf-border, #ebe8f6); border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dv-seg .dv-seg-ok:has(input:checked) { border-color: #16a34a; background: #e7f7ed; color: #15803d; }
.dv-seg .dv-seg-warn:has(input:checked) { border-color: #d97706; background: #fdf3e1; color: #b45309; }
.dv-seg .dv-seg-bad:has(input:checked) { border-color: #dc2626; background: #fdecec; color: #b91c1c; }
.dv-seg label:has(input:focus-visible) { outline: 2px solid var(--sf-primary, #5b4cdb); outline-offset: 2px; }
.dv-upload-foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }

/* گەڕان و بەشەکان */
.dv-toolbar { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.1rem; }
.dv-search { position: relative; }
.dv-search i { position: absolute; top: 50%; inset-inline-start: 1.05rem; transform: translateY(-50%); color: var(--sf-muted, #6e6a8a); }
.dv-search input { width: 100%; height: 52px; padding-inline: 2.85rem 1rem; border: 1.5px solid var(--sf-primary-line, #dcd7fa); border-radius: 16px; background: #fff; font-size: 1rem; box-shadow: var(--sf-shadow); outline: 0; transition: border-color .15s, box-shadow .15s; }
.dv-search input:focus { border-color: var(--sf-primary, #5b4cdb); box-shadow: 0 0 0 .25rem rgba(91, 76, 219, .15); }
.dv-chips { display: flex; gap: .45rem; padding-bottom: .25rem; overflow-x: auto; scrollbar-width: thin; }
.dv-chip { --dv-c: var(--sf-primary, #5b4cdb); flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .85rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 999px; background: #fff; color: var(--sf-ink, #1f1b3d); font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.dv-chip i { color: var(--dv-c); }
.dv-chip .num { padding: 0 .45rem; border-radius: 999px; background: #f1effc; color: var(--sf-muted, #6e6a8a); font-size: .75rem; }
.dv-chip:hover { border-color: var(--dv-c); }
.dv-chip.is-active { border-color: var(--dv-c); background: var(--dv-c); color: #fff; }
.dv-chip.is-active i { color: #fff; }
.dv-chip.is-active .num { background: rgba(255, 255, 255, .25); color: #fff; }
.dv-filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .5rem .85rem; border: 1px solid #fde3b0; border-radius: 12px; background: #fff7e6; color: #92400e; font-size: .85rem; }
.dv-filter-note a { font-weight: 700; }

/* بەشەکان و کارتەکان */
.dv-group { margin-bottom: 1.5rem; }
.dv-group-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--sf-border, #ebe8f6); }
.dv-folder { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--dv-c); background: #f3f1ff; background: color-mix(in srgb, var(--dv-c) 14%, #fff); }
.dv-group-title { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.dv-group-title a { color: inherit; text-decoration: none; }
.dv-group-title a:hover { color: var(--dv-c); }
.dv-group-count { font-size: .8rem; color: var(--sf-muted, #6e6a8a); white-space: nowrap; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 1rem; }

.dv-doc { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(31, 27, 61, .04), 0 8px 22px rgba(31, 27, 61, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.dv-doc:hover { transform: translateY(-4px); border-color: var(--sf-primary-line, #dcd7fa); box-shadow: 0 4px 8px rgba(31, 27, 61, .06), 0 22px 40px rgba(91, 76, 219, .18); }
.dv-doc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dv-doc-link:focus-visible { outline: 3px solid var(--sf-primary, #5b4cdb); outline-offset: 2px; }
.dv-exp-soon { border-color: #fde3b0; }
.dv-exp-expired { border-color: #fecaca; }
.dv-exp-soon::before, .dv-exp-expired::before { content: ""; position: absolute; top: 0; inset-inline: 0; z-index: 3; height: 3px; background: #f59e0b; }
.dv-exp-expired::before { background: #ef4444; }

.dv-sheet { position: relative; height: 190px; padding: 18px 22px 0; overflow: hidden; background: linear-gradient(180deg, #f3f1ff, #fff 88%); background: linear-gradient(180deg, color-mix(in srgb, var(--dv-c) 11%, #fff), #fff 88%); }
.dv-sheet.is-stack::before, .dv-sheet.is-stack::after { content: ""; position: absolute; top: 14px; inset-inline: 30px; height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(31, 27, 61, .1); }
.dv-sheet.is-stack::before { transform: rotate(-4deg); }
.dv-sheet.is-stack::after { transform: rotate(3deg); }
.dv-paper { position: relative; z-index: 1; height: 100%; overflow: hidden; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 6px 18px rgba(31, 27, 61, .14); transition: transform .25s ease; }
.dv-doc:hover .dv-paper { transform: translateY(-5px); }
.dv-doc.is-empty .dv-paper { border: 2px dashed #ddd9ee; border-bottom: 0; background: #fbfaff; box-shadow: none; }
.dv-thumb, .dv-thumb-img { width: 100%; height: 100%; }
.dv-thumb-img { display: block; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .35s ease; }
.dv-thumb-img.is-ready { opacity: 1; }
.dv-skeleton { display: flex; flex-direction: column; gap: 9px; padding: 20px 16px; }
.dv-skeleton span { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f0eef9 25%, #e4e1f5 37%, #f0eef9 63%); background-size: 400% 100%; animation: dv-shimmer 1.4s ease infinite; }
.dv-skeleton span.short { width: 60%; }
@keyframes dv-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.dv-type { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; font-size: 2.7rem; color: var(--dv-c); }
.dv-type.is-none { font-size: 2.2rem; color: #c4c0d8; }
.dv-type small { font-size: .75rem; }
.dv-kind { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; padding: .14rem .45rem; border-radius: 6px; background: #475569; color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.dv-kind.is-pdf { background: #e5484d; }
.dv-kind.is-image { background: #0ea5e9; }
.dv-count { position: absolute; bottom: 10px; inset-inline-end: 12px; z-index: 2; padding: .15rem .5rem; border-radius: 999px; background: rgba(31, 27, 61, .78); color: #fff; font-size: .72rem; font-weight: 700; }
.dv-status { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: 999px; background: #fff; font-size: .72rem; font-weight: 800; box-shadow: 0 2px 8px rgba(31, 27, 61, .14); }
.dv-status.dv-tone-ok { color: #15803d; }
.dv-status.dv-tone-warn { color: #b45309; }
.dv-status.dv-tone-bad { color: #dc2626; }
.dv-doc-body { flex: 1 1 auto; padding: .85rem .95rem .2rem; }
.dv-doc-title { display: -webkit-box; margin: 0 0 .35rem; overflow: hidden; font-size: .98rem; font-weight: 800; line-height: 1.45; color: var(--sf-ink, #1f1b3d); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dv-doc-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .74rem; color: var(--sf-muted, #6e6a8a); }
.dv-doc-meta i { opacity: .7; }
.dv-expiry { margin-top: .7rem; font-size: .76rem; font-weight: 700; color: #15803d; }
.dv-expiry-row { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.dv-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #efedf7; }
.dv-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); }
.dv-exp-soon .dv-expiry { color: #b45309; }
.dv-exp-soon .dv-bar span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.dv-exp-expired .dv-expiry { color: #dc2626; }
.dv-exp-expired .dv-bar span { background: linear-gradient(90deg, #f87171, #ef4444); }
.dv-expiry.is-none { font-weight: 600; color: var(--sf-muted, #6e6a8a); }
.dv-given { margin-top: .55rem; padding: .25rem .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 8px; background: #f5f3ff; color: #6d28d9; font-size: .74rem; }
.dv-actions { position: relative; z-index: 2; display: flex; justify-content: flex-end; gap: .35rem; margin-top: auto; padding: .6rem .8rem .8rem; }
.dv-act { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 10px; background: #fff; color: var(--sf-muted, #6e6a8a); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.dv-act:hover { border-color: var(--sf-primary-line, #dcd7fa); background: var(--sf-primary-soft, #efedfd); color: var(--sf-primary, #5b4cdb); }
.dv-act.is-danger:hover { border-color: #fecaca; background: #fdecec; color: #dc2626; }

/* بەتاڵ */
.dv-empty { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 2.6rem 1rem; text-align: center; background: #fff; border: 1px dashed #d9d4f2; border-radius: 20px; color: var(--sf-muted, #6e6a8a); }
.dv-empty strong { font-size: 1.05rem; color: var(--sf-ink, #1f1b3d); }
.dv-empty-art { position: relative; width: 86px; height: 80px; margin-bottom: .4rem; }
.dv-empty-art i:first-child { font-size: 3.7rem; color: #c9c1f5; }
.dv-empty-art i:nth-child(2) { position: absolute; bottom: 2px; inset-inline-end: 0; padding: .25rem; border-radius: 8px; background: #fff; font-size: 1.5rem; color: var(--sf-primary, #5b4cdb); }

@media (max-width: 767.98px) {
    .dv-hero { padding: 1.1rem; }
    .dv-hero-title { font-size: 1.3rem; }
    .dv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dv-hero-actions { width: 100%; }
    .dv-upload { grid-template-columns: 1fr; }
    .dv-drop { min-height: 170px; }
    .dv-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .75rem; }
    .dv-sheet { height: 150px; padding: 14px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .dv-doc, .dv-paper, .dv-thumb-img, .dv-metric { transition: none; }
    .dv-skeleton span { animation: none; }
}

/* دۆسیەی بەڵگەنامەکان: ناوی بەش لەسەر کارت و شریتی چیپ بێ هێڵی سکرۆڵ */
.dv-tag { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; margin-bottom: .4rem; padding: .12rem .55rem; overflow: hidden; border-radius: 999px; background: #f3f1ff; background: color-mix(in srgb, var(--dv-c) 12%, #fff); color: var(--dv-c); font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.dv-tag:hover { background: var(--dv-c); color: #fff; }
.dv-tag.is-none { background: #f1f1f5; color: var(--sf-muted, #6e6a8a); }
.dv-chips { scrollbar-width: none; }
.dv-chips::-webkit-scrollbar { display: none; }

/* دۆسیەی بەڵگەنامەکان: «X ڕۆژ ماوە» لە یەک دێڕدا؛ بەروارەکە ئەگەر جێگە نەبوو دەچێتە خوارەوە */
.dv-expiry-row { flex-wrap: wrap; row-gap: .1rem; }
.dv-expiry-row > span { white-space: nowrap; }

/* ================= پەڕەی بەشێکی موشتەری بە دیزاینی دۆسیە (dv-*): clients/dashboard/section ================= */
.dv-ring.dv-tone-muted { --c: rgba(255, 255, 255, .55); }
.dv-ring-inner strong i { font-size: 1.35rem; }
.dv-hero-tools { display: flex; gap: .35rem; }
.dv-btn-icon { width: 40px; padding-inline: 0; display: inline-flex; align-items: center; justify-content: center; }
.dv-metric-text { font-size: 1.02rem !important; white-space: nowrap; }
.dv-drop-icon.is-ok { background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 10px 22px rgba(22, 163, 74, .3); }
.dv-upload.is-renew { border-color: #bbf7d0; }

/* پەنجەرەی ڕێکخستن */
.dv-panel { margin-bottom: 1rem; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 20px; box-shadow: var(--sf-shadow); }
.dv-panel .form-control, .dv-panel .form-select { min-height: 44px; border-radius: 11px; }
.dv-panel-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; font-size: 1rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.dv-panel-title i { color: var(--sf-primary, #5b4cdb); }
.dv-upload.is-renew .dv-panel-title i { color: #16a34a; }
.dv-hint { font-size: .8rem; color: var(--sf-muted, #6e6a8a); }
.dv-hint i { color: var(--sf-primary, #5b4cdb); margin-inline-end: .25rem; }
.dv-danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1rem; padding: .7rem .85rem; border: 1px dashed #fecaca; border-radius: 12px; background: #fff8f8; }

/* تێبینی بەش */
.dv-note { display: flex; gap: .65rem; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid #fde68a; border-radius: 14px; background: #fffbeb; color: #78350f; font-size: .9rem; }
.dv-note > i { margin-top: .2rem; color: #d97706; }

/* سەرپەڕەی بەشێکی پەڕە (بەڵگەنامەکان، مێژوو) */
.dv-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--sf-border, #ebe8f6); }
.dv-section-head > span { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.02rem; font-weight: 800; color: var(--sf-ink, #1f1b3d); }
.dv-section-head > span i { color: var(--sf-primary, #5b4cdb); }
.dv-section-head > span .num { padding: 0 .5rem; border-radius: 999px; background: #f1effc; color: var(--sf-muted, #6e6a8a); font-size: .78rem; }
.dv-section-head a { font-size: .85rem; font-weight: 700; text-decoration: none; }

/* مێژووی نوێکردنەوە وەک هێڵی کات */
.dv-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.dv-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 19px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #bbf7d0, #e9e6f7); }
.dv-tl-item { position: relative; display: flex; gap: .85rem; padding-bottom: .85rem; }
.dv-tl-dot { position: relative; z-index: 1; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e7f7ed; border: 3px solid #fff; color: #16a34a; box-shadow: 0 2px 8px rgba(22, 163, 74, .2); }
.dv-tl-item:first-child .dv-tl-dot { background: #16a34a; color: #fff; }
.dv-tl-card { flex: 1 1 auto; min-width: 0; padding: .7rem .9rem; background: #fff; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 14px; box-shadow: 0 1px 2px rgba(31, 27, 61, .04), 0 6px 16px rgba(31, 27, 61, .05); }
.dv-tl-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; font-size: .92rem; color: var(--sf-ink, #1f1b3d); }
.dv-tl-head strong { color: #15803d; }
.dv-tl-head > span { font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.dv-tl-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .3rem; font-size: .78rem; color: var(--sf-muted, #6e6a8a); }
.dv-tl-meta a { font-weight: 700; text-decoration: none; }
.dv-tl-note { margin-top: .4rem; padding: .3rem .6rem; border-radius: 8px; background: #f8f7fd; font-size: .82rem; color: var(--sf-ink, #1f1b3d); }

@media (max-width: 767.98px) {
    .dv-hero-tools { margin-inline-start: auto; }
}

/* دۆسیەی بەڵگەنامەکان: بەڵگەنامە کە تەنها ژمارەی هەیە، ژمارەکە بە گەورەیی لە شوێنی پێشبینین */
.dv-number { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: .8rem .7rem; overflow: hidden; text-align: center;
    background: radial-gradient(circle at 50% 0, #f3f1ff, #fff 72%); background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--dv-c) 12%, #fff), #fff 72%); }
.dv-number::before { content: "#"; position: absolute; bottom: -2.4rem; inset-inline-end: -.2rem; font-size: 8.5rem; font-weight: 900; line-height: 1; color: var(--dv-c); opacity: .07; pointer-events: none; }
.dv-number-label { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: var(--sf-muted, #6e6a8a); }
.dv-number-label i { color: var(--dv-c); }
.dv-number-value { max-width: 100%; padding: .3rem .8rem; overflow-wrap: anywhere; border: 2px solid #dcd7fa; border: 2px solid color-mix(in srgb, var(--dv-c) 30%, #fff); border-radius: 12px; background: #fff;
    font-size: 2.2rem; font-weight: 900; line-height: 1.15; letter-spacing: .04em; color: var(--sf-ink, #1f1b3d); box-shadow: 0 6px 16px rgba(31, 27, 61, .08); }
.dv-number.is-long .dv-number-value { font-size: 1.45rem; letter-spacing: .02em; }
.dv-copy { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .7rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 999px; background: #fff; color: var(--sf-muted, #6e6a8a); font-size: .74rem; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.dv-copy:hover { border-color: var(--dv-c); color: var(--dv-c); }
.dv-copy.is-done { border-color: #16a34a; background: #e7f7ed; color: #15803d; }
.dv-kind.is-number { background: var(--dv-c); }
.dv-doc.is-number .dv-paper { box-shadow: 0 6px 18px rgba(31, 27, 61, .12); }
@media (max-width: 767.98px) {
    .dv-number-value { font-size: 1.7rem; }
    .dv-number.is-long .dv-number-value { font-size: 1.2rem; }
}

/* کەشفی نێردراو: دوای «پارەکە وەرگیرا» ئایا پارەکە چووەتە قاسە (dispatches/_to-cashbox) */
.dp-cash { display: flex; gap: .65rem; align-items: flex-start; margin: .6rem 0; padding: .7rem .8rem; border: 1px solid var(--sf-border, #ebe8f6); border-radius: 12px; background: #f8f7fd; font-size: .85rem; }
.dp-cash > i { margin-top: .15rem; font-size: 1.1rem; color: var(--sf-primary, #5b4cdb); }
.dp-cash strong { display: block; margin-bottom: .15rem; color: var(--sf-ink, #1f1b3d); }
.dp-cash span, .dp-cash small { display: block; color: var(--sf-muted, #6e6a8a); }
.dp-cash small { margin-top: .4rem; font-size: .74rem; }
.dp-cash.is-warn { border-color: #fcd34d; background: #fffbeb; }
.dp-cash.is-warn > i { color: #d97706; }
.dp-cash.is-done { border-color: #86efac; background: #f0fdf4; }
.dp-cash.is-done > i { color: #16a34a; }
.dp-cash.is-done a { font-weight: 700; text-decoration: none; }



/* ================= کەشف بۆ موشتەری (ks-): ناسنامەی نووسینگە، ناونیشان و ماوە، سێ کارت (وەرگیراو، خەرجکراو، ماوە)،
   «وردەکاری مامەڵەکان» بە پارەی وەرگیراو / خەرجکراو، و «پارەی ماوە = …». ڕەنگی سەرەکی (--ks) هەمان ڕەنگی کلێشەیە.
   هەمان دیزاین بۆ چاپ و PDF/JPEG (clients/statement-print) و شاشە (ks-screen) */
.ks {
    --ks: #1f3c88;
    --ks-deep: color-mix(in srgb, var(--ks) 72%, #0a1430);
    --ks-ink: #14213d;
    --ks-text: #3d4a63;
    --ks-muted: #6b7690;
    --ks-line: #e3e8f0;
    --ks-soft: #f3f6fb;
    --ks-gold: #b07f1c;
    --ks-gold-bg: #fbf4e3;
    --ks-in: #1d5fd1;
    --ks-out: #d03a4e;
    color: var(--ks-ink);
}
.ks, .ks * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ناسنامەی نووسینگە */
.ks-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .55rem; border-bottom: 2px solid var(--ks-gold); }
.ks-brand-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.ks-logo { flex: 0 0 auto; width: 60px; height: 60px; object-fit: contain; }
.ks-logo-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ks-deep); color: #fff; font-size: 1.4rem; }
.ks-brand-name { font-size: 1.12rem; font-weight: 800; line-height: 1.35; color: var(--ks-deep); }
.ks-brand-tag { font-size: .76rem; color: var(--ks-text); }
.ks-contact { display: grid; gap: .12rem; margin: 0; padding: 0; list-style: none; font-size: .74rem; color: var(--ks-text); }
.ks-contact i { width: 14px; margin-inline-end: .2rem; text-align: center; color: var(--ks-gold); }

/* ناونیشان و ماوەی کەشف */
.ks-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.ks-head-main { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.ks-head-ico { position: relative; flex: 0 0 78px; width: 78px; height: 70px; }
.ks-head-card { position: absolute; top: 0; right: 10px; width: 44px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #e3b85a, var(--ks-gold)); transform: rotate(-14deg); }
.ks-head-wallet { position: absolute; inset: 12px 0 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--ks), var(--ks-deep)); color: #fff; font-size: 1.75rem; box-shadow: 0 6px 16px rgba(20, 33, 61, .22); }
.ks-title { margin: 0; color: var(--ks-deep); font-size: 2.15rem; font-weight: 800; line-height: 1.25; }
.ks-subtitle { font-size: 1.15rem; font-weight: 600; color: var(--ks-text); }
.ks-for { margin-top: .4rem; font-size: .86rem; color: var(--ks-muted); }
.ks-for strong { font-size: 1.02rem; color: var(--ks-ink); }
.ks-type { display: inline-block; margin-inline-start: .25rem; padding: 0 .55rem; border-radius: 999px; background: var(--ks-gold-bg); color: var(--ks-gold); font-size: .72rem; font-weight: 800; }
.ks-for strong, .ks-for-sub { white-space: nowrap; }
.ks-for-sub::before { content: '· '; }
.ks-period { flex: 0 0 auto; display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--ks-line); border-radius: 16px; background: var(--ks-soft); }
.ks-period-ico { flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid var(--ks-line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ks); font-size: 1.35rem; }
.ks-period-label { font-size: .84rem; font-weight: 700; color: var(--ks-text); }
.ks-period-dates { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; font-weight: 700; color: var(--ks-ink); }
.ks-period-dates i { color: var(--ks-gold); font-size: .9rem; }
.ks-period-meta { margin-top: .15rem; font-size: .72rem; color: var(--ks-muted); }
.ks-period-meta b { color: var(--ks-ink); }

/* سێ کارت */
.ks-cur { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 .7rem; font-size: 1.05rem; font-weight: 800; }
.ks-cur .num { padding: 0 .5rem; border-radius: 7px; background: var(--ks-deep); color: #fff; font-size: .75rem; line-height: 1.8; letter-spacing: .04em; }
.ks-account + .ks-account { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 2px dashed var(--ks-line); }
.ks-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.3rem; }
.ks-card { --c: var(--ks-in); --c-bg: #eaf2fe; --c-bg2: #dce8fd; --c-line: #d6e3fa; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: .5rem; min-height: 112px; padding: .9rem 1rem 1.3rem; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; }
.ks-card.is-out { --c: var(--ks-out); --c-bg: #fdedef; --c-bg2: #fadde1; --c-line: #f8d3d8; background: #fffafb; }
.ks-card.is-left { --c: var(--ks-gold); --c-bg: #fbf3df; --c-bg2: #f6e7c2; --c-line: #efdfb6; }
.ks-card.is-left.is-neg { --c: var(--ks-out); --c-bg: #fdedef; --c-bg2: #fadde1; --c-line: #f8d3d8; }
.ks-card::before, .ks-card::after { content: ''; position: absolute; border-radius: 50%; }
.ks-card::before { left: -20%; right: -10%; bottom: -52px; height: 86px; background: var(--c-bg); }
.ks-card::after { left: 35%; right: -35%; bottom: -64px; height: 92px; background: var(--c-bg2); }
.ks-card-body { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; container-type: inline-size; }
.ks-card-label { font-size: .9rem; font-weight: 700; line-height: 1.45; color: var(--ks-ink); }
.ks-card-amount { margin-top: .35rem; font-size: 1.6rem; font-size: min(2rem, 18.5cqi); font-weight: 800; line-height: 1.15; text-align: right; white-space: nowrap; color: var(--c); }
.ks-card-cur { font-size: .88rem; font-weight: 700; color: var(--c); }
.ks-card-parts { display: flex; flex-wrap: wrap; gap: .05rem .6rem; margin-top: .3rem; font-size: .68rem; color: var(--ks-muted); }
.ks-card-parts b { font-weight: 700; color: var(--ks-text); }
.ks-card-ico { position: relative; z-index: 1; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font-size: 1.15rem; }

/* وردەکاری مامەڵەکان */
.ks-tx { margin-bottom: 1.1rem; }
.ks-tx-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .65rem; font-size: 1.2rem; font-weight: 800; color: var(--ks-ink); }
.ks-tx-ico { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--ks-line); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--ks-soft); color: var(--ks); font-size: .95rem; }
.ks-deal-head { margin-bottom: .65rem; }
.ks-deal-head .ks-tx-title { margin-bottom: .2rem; }
.ks-deal-info { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; padding-inline-start: 2.6rem; font-size: .8rem; color: var(--ks-text); }
.ks-deal-info b { font-weight: 600; color: var(--ks-muted); }
.ks-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--ks-line); border-radius: 14px; background: #fff; font-size: .84rem; }
.ks-table.ks-periods { table-layout: auto; }
.ks-table col.ks-c-idx { width: 46px; }
.ks-table col.ks-c-date { width: 96px; }
.ks-table col.ks-c-what { width: 150px; }
.ks-table col.ks-c-amt { width: 116px; }
.ks-table th { padding: .7rem .6rem; background: var(--ks-deep); color: #fff; font-size: .8rem; font-weight: 700; text-align: center; white-space: nowrap; }
.ks-table th + th { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.ks-table td { padding: .55rem .6rem; border-top: 1px solid #edf1f6; color: var(--ks-ink); vertical-align: middle; text-align: center; }
.ks-table td + td { border-inline-start: 1px solid #f1f4f8; }
.ks-table tbody tr:nth-child(even) td { background: #fafbfd; }
.ks-idx { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--ks-line); border-radius: 8px; background: var(--ks-soft); color: var(--ks-text); font-size: .78rem; font-weight: 700; }
.ks-table td.ks-what { font-weight: 600; text-align: right; }
.ks-what small { display: block; font-size: .68rem; font-weight: 400; color: var(--ks-muted); }
.ks-what small a { color: inherit; text-decoration: none; }
.ks-what small a:hover { color: var(--ks); text-decoration: underline; }
.ks-amt { white-space: nowrap; }
.ks-amt .num { display: block; font-size: .98rem; font-weight: 800; line-height: 1.2; }
.ks-amt small { display: block; font-size: .66rem; font-weight: 600; line-height: 1.1; }
.ks-table td.is-in { color: var(--ks-in); }
.ks-table td.is-out { color: var(--ks-out); }
.ks-table td.ks-bal { color: var(--ks-ink); }
.ks-nil { color: #b3bccb; font-weight: 400; }
.ks-table td.ks-note { font-size: .8rem; color: var(--ks-text); text-align: right; overflow-wrap: anywhere; }
.ks-table tr.ks-open td { background: var(--ks-gold-bg) !important; }
.ks-table tr.ks-open td.ks-what { color: var(--ks-gold); }
.ks-table tr.ks-total td { border-top: 2px solid var(--ks-deep); background: var(--ks-soft) !important; font-weight: 800; }
.ks-table tr.ks-total td:first-child { text-align: right; }
.ks-table tr.ks-muted td { color: #a9b2c3; }
.ks-none { padding: 1.1rem !important; color: var(--ks-muted) !important; }

/* پارەی ماوە و لەگەڵ ڕێز */
.ks-end { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 1rem; margin: .4rem 0 .9rem; }
.ks-result { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px solid #efdfb6; border-radius: 16px; background: var(--ks-gold-bg); }
.ks-result-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ks-gold); font-size: 1.3rem; }
.ks-result-body { min-width: 0; }
.ks-result-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; font-size: 1.05rem; font-weight: 800; color: var(--ks-ink); }
.ks-result-line strong { font-size: 1.45rem; color: var(--ks-deep); }
.ks-result-line.is-neg strong { color: var(--ks-out); }
.ks-result-eq { margin-bottom: .25rem; font-size: .74rem; color: var(--ks-muted); }
.ks-result-thanks { font-size: .8rem; color: var(--ks-text); }
.ks-regards { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.ks-regards-text { display: flex; flex-direction: column; font-size: .8rem; line-height: 1.7; color: var(--ks-text); }
.ks-regards-text strong { font-size: .95rem; color: var(--ks-ink); }
.ks-muted { color: var(--ks-muted); }
.ks-seal { position: relative; flex: 0 0 27mm; width: 27mm; height: 27mm; color: var(--ks-deep); }
.ks-seal svg { display: block; width: 100%; height: 100%; }
.ks-seal text { font-family: 'Kurdish', 'Segoe UI', Tahoma, sans-serif; }
.ks-seal-logo { position: absolute; left: 50%; top: 50%; width: 52%; height: 52%; object-fit: contain; transform: translate(-50%, -50%); mix-blend-mode: multiply; }
.ks-seal-icon { position: absolute; left: 50%; top: 50%; font-size: 1.8rem; transform: translate(-50%, -50%); }
.ks-notes { margin: 0 0 .4rem; padding-inline-start: 1rem; font-size: .74rem; line-height: 1.8; color: var(--ks-muted); }

/* شاشە (داشبۆردی موشتەری) */
.ks-screen .ks-end { grid-template-columns: minmax(0, 620px); }
.ks-info { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .95rem; border: 1px dashed color-mix(in srgb, var(--ks) 35%, #fff); border-radius: 12px; background: var(--ks-soft); color: var(--ks-text); font-size: .88rem; }
.ks-info > i { margin-top: .22rem; color: var(--ks); }
.ks-info a { font-weight: 700; color: var(--ks); text-decoration: none; }
.ks-empty { padding: 1.5rem 1rem; text-align: center; color: var(--ks-muted); }
.ks-empty i { display: block; margin-bottom: .4rem; font-size: 1.8rem; color: var(--ks); opacity: .45; }

@media print {
    .ks-brand, .ks-head, .ks-cards, .ks-deal-head, .ks-end { break-inside: avoid; }
    .ks-tx-title, .ks-deal-head { break-after: avoid; }
    .ks-table tr { break-inside: avoid; }
}
@media (max-width: 767.98px) {
    .ks-head, .ks-brand { flex-direction: column; align-items: flex-start; }
    .ks-period { width: 100%; }
    .ks-cards, .ks-end { grid-template-columns: minmax(0, 1fr); }
    .ks-table.ks-periods { display: block; overflow-x: auto; }
    /* هەر مامەڵەیەک وەک کارتێکی بچووک */
    .ks-table:not(.ks-periods) colgroup, .ks-table:not(.ks-periods) thead { display: none; }
    .ks-table:not(.ks-periods), .ks-table:not(.ks-periods) tbody { display: block; }
    .ks-table:not(.ks-periods) tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "idx what amt" "date note note"; align-items: center; gap: .25rem .6rem; padding: .65rem .8rem; border-top: 1px solid #edf1f6; }
    .ks-table:not(.ks-periods) td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: right; }
    .ks-table:not(.ks-periods) td:nth-child(1) { grid-area: idx; }
    .ks-table:not(.ks-periods) td:nth-child(2) { grid-area: date; font-size: .74rem; color: var(--ks-muted); }
    .ks-table:not(.ks-periods) td:nth-child(3) { grid-area: what; }
    .ks-table:not(.ks-periods) td:nth-child(4), .ks-table:not(.ks-periods) td:nth-child(5) { grid-area: amt; text-align: left; }
    .ks-table:not(.ks-periods) td:nth-child(6) { grid-area: note; }
    .ks-table:not(.ks-periods) td.is-nil { display: none; }
    .ks-table:not(.ks-periods) tr.ks-total { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: none; background: var(--ks-soft); }
    .ks-table:not(.ks-periods) tr.ks-total td { grid-area: auto; display: block !important; }
    .ks-table:not(.ks-periods) tr.ks-total td:last-child { display: none !important; }
}
