/* =========================================================
   COMFIRAN — استایل اختصاصی بخش طرح‌های توجیهی
   تمام کلاس‌ها با پیشوند comfiran- شروع می‌شن
   ========================================================= */

.comfiran-wrapper {
    direction: rtl;
    padding: 100px 0 20px 0;
}

/* ---------- Header ---------- */
.comfiran-step-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    border-right: 5px solid #0d6efd;
}

.comfiran-step-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 8px;
}

.comfiran-step-header .comfiran-step-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* ---------- Progress Bar ---------- */
.comfiran-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    position: relative;
    padding: 0 10px;
}

.comfiran-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e0e5ec;
    z-index: 0;
}

.comfiran-progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.comfiran-progress-step .comfiran-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e5ec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #adb5bd;
    margin-bottom: 8px;
    transition: all .3s;
}

.comfiran-progress-step.active .comfiran-circle {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, .15);
}

.comfiran-progress-step.done .comfiran-circle {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.comfiran-progress-step .comfiran-step-label {
    font-size: 12px;
    color: #6c757d;
    display: block;
}

.comfiran-progress-step.active .comfiran-step-label {
    color: #0d6efd;
    font-weight: 600;
}

/* ---------- Form ---------- */
.comfiran-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
    border: 1px solid #eef1f5;
}

.comfiran-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.comfiran-col {
    padding: 0 10px;
    margin-bottom: 20px;
    width: 100%;
}

.comfiran-col-6 {
    width: 50%;
}

.comfiran-col-4 {
    width: 33.3333%;
}

.comfiran-col-12 {
    width: 100%;
}

@media (max-width: 768px) {
    .comfiran-col-6,
    .comfiran-col-4 {
        width: 100%;
    }
}

.comfiran-form-group {
    margin-bottom: 5px;
}

.comfiran-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.comfiran-form-label.comfiran-required::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
}

.comfiran-form-control,
.comfiran-form-select {
    width: 100%;
    padding: 8px 14px;
    border: 1.5px solid #d8dee6;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    transition: all .2s;
    outline: none;
}

.comfiran-form-control:focus,
.comfiran-form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.comfiran-form-control:disabled,
.comfiran-form-control[readonly],
.comfiran-form-select:disabled {
    background: #f1f4f8;
    cursor: not-allowed;
    color: #6c757d;
}

.comfiran-form-control.comfiran-error,
.comfiran-form-select.comfiran-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.comfiran-form-control.comfiran-error:focus,
.comfiran-form-select.comfiran-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .15);
}

.comfiran-help-text {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.comfiran-error-text {
    display: none;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    font-weight: 500;
}

.comfiran-error-text.comfiran-show {
    display: block;
}

/* ---------- Buttons ---------- */
.comfiran-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eef1f5;
    flex-wrap: wrap;
}

.comfiran-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}

.comfiran-btn-primary {
    background: #0d6efd;
    color: #fff;
}

.comfiran-btn-primary:hover {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, .25);
}

.comfiran-btn-outline {
    background: #fff;
    color: #495057;
    border: 1.5px solid #d8dee6;
}

.comfiran-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.comfiran-btn-danger {
    background: #dc3545;
    color: #fff;
}

.comfiran-btn-danger:hover {
    background: #bb2d3b;
    color: #fff;
}

.comfiran-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---------- Alerts ---------- */
.comfiran-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-right: 4px solid;
}

.comfiran-alert-danger {
    background: #fff5f5;
    color: #842029;
    border-color: #dc3545;
}

.comfiran-alert-success {
    background: #f0fff4;
    color: #0f5132;
    border-color: #198754;
}

.comfiran-alert-warning {
    background: #fff9e6;
    color: #664d03;
    border-color: #ffc107;
}

/* ---------- Section Title inside form ---------- */
.comfiran-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0d6efd;
    margin: 1px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #e0e5ec;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comfiran-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #0d6efd;
    border-radius: 2px;
}

/* ---------- Locked Field Indicator ---------- */
.comfiran-locked {
    position: relative;
}

.comfiran-locked::after {
    content: '🔒';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: .5;
    pointer-events: none;
}

.comfiran-locked .comfiran-form-control,
.comfiran-locked .comfiran-form-select {
    padding-left: 38px;
}


/* =========================================================
   جدول مرحله ۲
   ========================================================= */

.comfiran-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e0e5ec;
    background: #fff;
}

.comfiran-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 950px;
}

.comfiran-table thead th {
    background: #f4f6fa;
    color: #1a2b4a;
    font-weight: 700;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #d8dee6;
    white-space: nowrap;
    font-size: 13px;
}

.comfiran-table tbody tr {
    border-bottom: 1px solid #eef1f5;
    transition: background .15s;
}

.comfiran-table tbody tr:hover {
    background: #fafbfd;
}

.comfiran-table tbody td {
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
    color: #2c3e50;
}

.comfiran-table tbody td:nth-child(2) {
    padding-right: 15px;
}

.comfiran-table .comfiran-form-control {
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    border-radius: 6px;
}

.comfiran-table .comfiran-amount-input {
    direction: ltr;
    font-weight: 600;
    color: #1a2b4a;
}

.comfiran-table .comfiran-factor-input {
    text-align: center;
    direction: ltr;
    max-width: 80px;
    margin: 0 auto;
}

.comfiran-row-number {
    color: #6c757d;
    font-weight: 600;
    font-size: 12px;
}

.comfiran-item-label {
    font-weight: 500;
    color: #2c3e50;
}

.comfiran-required-star {
    color: #dc3545;
    font-weight: 700;
    margin-right: 3px;
}

.comfiran-readonly-cell {
    color: #6c757d;
    font-weight: 500;
    background: #f9fafc;
    border-radius: 4px;
    padding: 8px 6px !important;
    font-size: 12px;
}

.comfiran-calc-cell {
    font-weight: 600;
    color: #0d6efd;
    background: #f0f6ff;
    border-radius: 4px;
    padding: 8px 6px !important;
    font-size: 12px;
    direction: ltr;
}

.comfiran-total-row {
    background: #f4f6fa !important;
    border-top: 2px solid #0d6efd !important;
}

.comfiran-total-row td {
    padding: 14px 8px !important;
    font-size: 14px;
    font-weight: 700;
    color: #0d6efd;
    text-align: center;
}

.comfiran-total-row td:first-child {
    text-align: right;
    padding-right: 15px !important;
    color: #1a2b4a;
}

.comfiran-total-amount,
.comfiran-total-scrap,
.comfiran-total-depreciation {
    direction: ltr;
    font-size: 14px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .comfiran-table {
        font-size: 12px;
        min-width: 800px;
    }

    .comfiran-table thead th,
    .comfiran-table tbody td {
        padding: 8px 5px;
    }

    .comfiran-table .comfiran-form-control {
        padding: 6px 8px;
        font-size: 12px;
    }
}


/* =========================================================
   مرحله ۳ — رادیو و پنل ظرفیت عملیاتی
   ========================================================= */

.comfiran-radio-group {
    display: flex;
    gap: 30px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.comfiran-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
}

.comfiran-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #0d6efd;
    cursor: pointer;
}

.comfiran-operational-header {
    font-size: 14px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e5ec;
}


/* =========================================================
   پنل ظرفیت عملیاتی (مرحله ۳) — ۵ ستونی × ۲ ردیف
   ========================================================= */

.comfiran-operational-panel {
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
    border: 1.5px dashed #90b8e8;
    border-radius: 12px;
    padding: 22px 25px;
    margin: 0px 0 25px;
}

.comfiran-operational-header {
    font-size: 14px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c9dcf5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comfiran-operational-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #0d6efd;
    border-radius: 2px;
}

/* گرید ۵ ستونی */
.comfiran-usage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* کارت هر سال */
.comfiran-usage-card {
    background: #ffffff;
    border: 1.5px solid #b8d4f5;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.06);
}

.comfiran-usage-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.comfiran-usage-card-year {
    font-size: 12px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 8px;
}

.comfiran-usage-input {
    width: 100% !important;
    max-width: 70px;
    text-align: center;
    direction: ltr;
    padding: 6px 4px !important;
    font-size: 14px !important;
    font-weight: 700;
    color: #1a2b4a;
    background: #f8fafd;
    border: 1px solid #d8e6f8;
    border-radius: 6px;
    margin: 0 auto 8px;
    display: block;
    outline: none;
    transition: all .15s;
}

.comfiran-usage-input:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.comfiran-usage-input-wrap {
    position: relative;
    width: 70px;
    max-width: 100%;
    margin: 0 auto 8px;
}

.comfiran-usage-input-wrap .comfiran-usage-input {
    max-width: none;
    margin: 0;
    padding-left: 20px !important;
}

.comfiran-usage-input-wrap .comfiran-tax-year-unit {
    left: 8px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    font-size: 11px;
}

.comfiran-usage-card-result {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: rtl;
    padding-top: 6px;
    border-top: 1px dashed #e0e5ec;
}

.comfiran-usage-card-result strong {
    color: #0d6efd;
    direction: ltr;
    font-weight: 700;
    font-size: 14px;
}

.comfiran-usage-unit {
    font-size: 10px;
    color: #6c757d;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .comfiran-usage-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .comfiran-usage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .comfiran-operational-panel {
        padding: 15px;
    }

    .comfiran-usage-card {
        padding: 10px 6px;
    }
}

@media (max-width: 480px) {
    .comfiran-usage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .comfiran-usage-input {
        font-size: 13px !important;
        padding: 5px 3px !important;
    }

    .comfiran-usage-card-year {
        font-size: 11px;
    }

    .comfiran-usage-card-result strong {
        font-size: 13px;
    }
}


/* =========================================================
   مرحله ۴ — گرید بالای فرم
   ========================================================= */

.comfiran-step4-header-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .comfiran-step4-header-grid {
        grid-template-columns: 1fr;
    }
}

.comfiran-radio-group-vertical {
    display: inline-block;
    flex-direction: column;
    gap: 8px;
}

/* =========================================================
   مرحله ۴ — پنل ۱۰ کارتی سالانه
   ========================================================= */

.comfiran-years-panel {
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
    border: 1.5px dashed #90b8e8;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 20px 0 25px;
}

.comfiran-years-panel-header {
    font-size: 14px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c9dcf5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comfiran-years-panel-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #0d6efd;
    border-radius: 2px;
}

.comfiran-years-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.comfiran-year-card {
    background: #ffffff;
    border: 1.5px solid #b8d4f5;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.06);
}

.comfiran-year-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.comfiran-year-card-header {
    font-size: 12px;
    font-weight: 700;
    color: black;
    margin-bottom: 8px;
}

.comfiran-year-card-input {
    margin-bottom: 8px;
}

.comfiran-year-card-input .comfiran-form-control {
    width: 100% !important;
    max-width: 80px;
    text-align: center;
    direction: ltr;
    padding: 5px 4px !important;
    font-size: 13px !important;
    font-weight: 700;
    color: #1a2b4a;
    background: #f8fafd;
    border: 1px solid #d8e6f8;
    border-radius: 6px;
    margin: 0 auto;
    outline: none;
}

.comfiran-year-card-input .comfiran-form-control:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.comfiran-year-card-result {
    padding-top: 8px;
    border-top: 1px dashed #e0e5ec;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.comfiran-year-card-label {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

.comfiran-year-card-result strong {
    color: #0d6efd;
    direction: ltr;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

.comfiran-years-panel-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 2px solid #c9dcf5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a2b4a;
}

.comfiran-years-panel-footer strong {
    color: #0d6efd;
    direction: ltr;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .comfiran-years-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .comfiran-years-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .comfiran-years-panel {
        padding: 15px;
    }

    .comfiran-year-card {
        padding: 10px 6px;
    }
}

@media (max-width: 480px) {
    .comfiran-years-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .comfiran-year-card-header {
        font-size: 11px;
    }

    .comfiran-year-card-input .comfiran-form-control {
        font-size: 12px !important;
    }

    .comfiran-year-card-result strong {
        font-size: 13px;
    }
}


/* =========================================================
   مرحله ۴ — سرمایه در گردش
   ========================================================= */

.comfiran-wc-panel {
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
    border: 1.5px dashed #90b8e8;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 20px 0 25px;
}

.comfiran-wc-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.comfiran-wc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

.comfiran-wc-table thead th {
    background: #ffffff;
    color: #0d6efd;
    font-weight: 700;
    padding: 12px 10px;
    text-align: center;
    border-bottom: 2px solid #b8d4f5;
    white-space: nowrap;
    font-size: 13px;
}

.comfiran-wc-table tbody tr {
    border-bottom: 1px solid #d8e6f8;
    background: #fff;
}

.comfiran-wc-table tbody tr:hover {
    background: #fafbfd;
}

.comfiran-wc-table tbody td {
    padding: 5px;
    text-align: center;
    vertical-align: middle;
    color: #2c3e50;
}

.comfiran-wc-table tbody td:first-child {
    padding-right: 15px;
}

.comfiran-wc-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.comfiran-wc-label i {
    color: #6c757d;
    margin-right: 5px;
    font-size: 14px;
}

.comfiran-wc-days-input {
    width: 70px !important;
    text-align: center;
    direction: ltr;
    padding: 6px 8px !important;
    font-size: 13px !important;
    font-weight: 700;
    color: #1a2b4a;
    background: #f8fafd;
    border: 1px solid #d8e6f8;
    border-radius: 6px;
    outline: none;
    margin: 0 auto;
    display: block;
}

.comfiran-wc-days-input:focus {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.comfiran-wc-factor {
    color: #6c757d;
    font-weight: 600;
    font-size: 13px;
    direction: ltr;
}

.comfiran-wc-amount {
    color: #0d6efd;
    font-weight: 700;
    font-size: 13px;
    direction: ltr;
}

.comfiran-wc-locked-row {
    background: #f9fafc !important;
    opacity: 0.7;
}

.comfiran-wc-locked-row .comfiran-wc-days-input {
    cursor: not-allowed;
    background: #eef1f5;
}

.comfiran-wc-total-row {
    background: #f4f6fa !important;
    border-top: 2px solid #0d6efd !important;
}

.comfiran-wc-total-row td {
    padding: 14px 10px !important;
    font-size: 14px;
    font-weight: 700;
    color: #0d6efd;
    text-align: center;
}

.comfiran-wc-total-row td:first-child {
    text-align: right;
    padding-right: 15px !important;
    color: #1a2b4a;
}

.comfiran-wc-total {
    direction: ltr;
    font-size: 15px !important;
}


/* =========================================================
   مرحله ۵ — منابع مالی (سه جدول کنار هم)
   ========================================================= */

.comfiran-funding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 25px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .comfiran-funding-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ---------- کارت هر بخش ---------- */
.comfiran-funding-card {
    background: #ffffff;
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow .2s;
}

.comfiran-funding-card:hover {
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.10);
}

.comfiran-funding-card-grand {
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.12);
}

/* ---------- هدر کارت ---------- */
.comfiran-funding-card-header {
    background: #0d6efd;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.comfiran-funding-card-grand .comfiran-funding-card-header {
    background: #0b5ed7;
}

.comfiran-funding-card-unit {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
}

/* ---------- جدول داخل کارت ---------- */
.comfiran-funding-table {
    width: 100%;
    border-collapse: collapse;
    flex: 1;
}

.comfiran-funding-table tbody tr {
    border-bottom: 1px solid #eef1f5;
}

.comfiran-funding-table tbody tr:last-child {
    border-bottom: none;
}

.comfiran-ft-label {
    padding: 9px 12px;
    font-size: 12px;
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    width: 55%;
    vertical-align: middle;
}

.comfiran-ft-value {
    padding: 9px 12px;
    font-size: 13px;
    color: #1a2b4a;
    font-weight: 700;
    text-align: left;
    direction: ltr;
    width: 45%;
    vertical-align: middle;
}

.comfiran-ft-calc {
    color: #0d6efd;
}

.comfiran-ft-input {
    width: 100%;
    max-width: 120px;
    text-align: left;
    direction: ltr;
    padding: 3px 9px;
    font-size: 13px;
    font-weight: 700;
    color: #1a2b4a;
    background: #ffffff;
    border: 1.5px solid #d8dee6;
    border-radius: 6px;
    outline: none;
    transition: all .15s;
    display: block;
}

.comfiran-ft-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.comfiran-ft-input.comfiran-error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* ---------- ردیف جمع ---------- */
.comfiran-ft-total {
    background: #f4f6fa;
    border-top: 2px solid #0d6efd !important;
}

.comfiran-ft-total .comfiran-ft-label {
    color: #1a2b4a;
    font-weight: 700;
    font-size: 12.5px;
}

.comfiran-ft-total-value {
    color: #0d6efd !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
}

/* ---------- نوار نسبت ---------- */
.comfiran-funding-ratio-bar {
    display: flex;
    height: 22px;
    border-top: 1px solid #eef1f5;
    overflow: hidden;
    flex-shrink: 0;
}

.comfiran-ratio-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width .3s ease;
    min-width: 0;
    overflow: hidden;
}

.comfiran-ratio-segment span {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 4px;
}

.comfiran-ratio-equity {
    background: #198754;
}

.comfiran-ratio-loan {
    background: #dc7633;
}

/* ---------- راهنمای نسبت ---------- */
.comfiran-funding-legend {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafd;
    border-top: 1px solid #eef1f5;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.comfiran-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: #6c757d;
    font-weight: 500;
}

.comfiran-legend-item i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comfiran-legend-equity i {
    background: #198754;
}

.comfiran-legend-loan i {
    background: #dc7633;
}

.comfiran-legend-item strong {
    color: #2c3e50;
    font-weight: 700;
    direction: ltr;
}

/* ---------- Responsive: موبایل ---------- */
@media (max-width: 992px) {
    .comfiran-funding-grid {
        grid-template-columns: 1fr;
    }

    .comfiran-funding-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}


/* =========================================================
   مرحله ۶ — وام
   ========================================================= */

.comfiran-loan-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 20px 0 25px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
    border: 1.5px dashed #90b8e8;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .comfiran-loan-header {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .comfiran-loan-header {
        grid-template-columns: 1fr;
    }
}

.comfiran-loan-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comfiran-loan-label {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.comfiran-loan-label.comfiran-required::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
}

.comfiran-loan-value-locked,
.comfiran-loan-value-calc {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
    border-radius: 8px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.comfiran-loan-value-locked {
    background: #f1f4f8;
    color: #6c757d;
    border: 1.5px solid #d8dee6;
}

.comfiran-loan-value-calc {
    background: #ffffff;
    color: #0d6efd;
    border: 1.5px solid #0d6efd;
}

.comfiran-loan-installment {
    font-size: 15px;
    font-weight: 800;
}

.comfiran-loan-unit {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

.comfiran-loan-value-calc .comfiran-loan-unit {
    color: #0d6efd;
    opacity: 0.7;
}

.comfiran-loan-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.comfiran-loan-input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
    color: #1a2b4a;
    background: #ffffff;
    border: 1.5px solid #d8dee6;
    border-radius: 8px;
    outline: none;
    transition: all .15s;
    direction: rtl;
}

select.comfiran-loan-input {
    padding-right: 12px;
    text-align-last: center;
}

.comfiran-loan-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.comfiran-loan-input.comfiran-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.comfiran-loan-suffix {
    position: absolute;
    left: 12px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    pointer-events: none;
}

/* =========================================================
   جدول اقساط سالانه
   ========================================================= */

.comfiran-loan-schedule {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
    border: 1.5px dashed #90b8e8;
    border-radius: 12px;
}

.comfiran-loan-schedule-title {
    font-size: 13px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c9dcf5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comfiran-loan-schedule-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #0d6efd;
    border-radius: 2px;
}

.comfiran-loan-years-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    /* عرض خودکار بر اساس تعداد ستون‌ها */
    align-items: start;
}

/* موبایل: حداکثر ۳ ستون */
@media (max-width: 992px) {
    .comfiran-loan-years-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .comfiran-loan-years-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.comfiran-loan-year-card {
    background: #ffffff;
    border: 1.5px solid #b8d4f5;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    transition: all .2s;
}

.comfiran-loan-year-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.15);
}

.comfiran-loan-year-principal {
    border-color: #b8d4f5;
}

.comfiran-loan-year-interest {
    border-color: #f5c8a8;
}

.comfiran-loan-year-interest .comfiran-loan-year-label {
    color: #dc7633;
}

.comfiran-loan-year-interest .comfiran-loan-year-value {
    color: #dc7633;
}

.comfiran-loan-year-label {
    font-size: 11px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 6px;
}

.comfiran-loan-year-value {
    font-size: 13px;
    font-weight: 700;
    color: #0d6efd;
    direction: ltr;
}

/* =========================================================
   Coming Soon
   ========================================================= */

.comfiran-coming-soon {
    background: #fff9e6;
    border: 1.5px dashed #ffd970;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    color: #664d03;
    font-size: 14px;
    font-weight: 600;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.comfiran-coming-soon i {
    font-size: 22px;
}


/* =========================================================
   مرحله ۶ — جدول وام سرمایه در گردش
   ========================================================= */

.comfiran-wc-loan-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.comfiran-wc-loan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.comfiran-wc-loan-table thead th {
    background: #f4f6fa;
    color: #1a2b4a;
    font-weight: 700;
    padding: 11px 12px;
    text-align: center;
    border-bottom: 2px solid #d8dee6;
    white-space: nowrap;
    font-size: 12.5px;
}

.comfiran-wc-loan-table tbody tr {
    border-bottom: 1px solid #eef1f5;
}

.comfiran-wc-loan-table tbody tr:last-child {
    border-bottom: none;
}

.comfiran-wc-loan-table tbody td {
    padding: 11px 12px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    direction: ltr;
    font-size: 13px;
}

.comfiran-wc-loan-period {
    color: #0d6efd !important;
    font-weight: 700 !important;
    direction: rtl !important;
}

.comfiran-wc-loan-total {
    color: #0d6efd !important;
    font-weight: 800 !important;
}


/* =========================================================
   مرحله ۷ — خروجی / گزارش
   ========================================================= */

.comfiran-intro-text {
    font-size: 14.5px;
    line-height: 2.2;
    color: #2c3e50;
    text-align: justify;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e6f0ff 100%);
    border: 1.5px dashed #90b8e8;
    border-radius: 10px;
    margin: 15px 0 25px;
    direction: rtl;
}

.comfiran-intro-text::first-letter {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
}


/* =========================================================
   مرحله ۷ — جدول‌های خلاصه
   ========================================================= */

.comfiran-summary-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 15px 0 25px;
    border-radius: 10px;
    border: 1px solid #e0e5ec;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.comfiran-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 600px;
}

.comfiran-summary-table thead th {
    background: #0d6efd;
    color: #ffffff;
    font-weight: 700;
    padding: 13px 12px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    font-size: 13px;
}

.comfiran-summary-table thead th:first-child {
    text-align: right;
    padding-right: 20px;
    border-left: none;
}

.comfiran-summary-table tbody tr {
    border-bottom: 1px solid #eef1f5;
    transition: background .15s;
}

.comfiran-summary-table tbody tr:hover {
    background: #fafbfd;
}

.comfiran-summary-table tbody tr:last-child {
    border-bottom: none;
}

.comfiran-summary-table tbody td {
    padding: 12px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    direction: ltr;
    font-size: 13px;
}

.comfiran-summary-table tbody td:first-child {
    text-align: right;
    padding-right: 20px;
    direction: rtl;
}

.comfiran-st-label {
    color: #1a2b4a !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
}

.comfiran-st-calc {
    color: #0d6efd !important;
    font-weight: 700 !important;
}

/* ردیف جمع */
.comfiran-st-total {
    background: #f4f6fa;
    border-top: 2px solid #0d6efd !important;
}

.comfiran-st-total td {
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 15px 12px !important;
}

.comfiran-st-total .comfiran-st-label {
    color: #1a2b4a !important;
    font-weight: 800 !important;
}

.comfiran-st-total .comfiran-st-calc {
    color: #0d6efd !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

/* ============================================
   جدول ۳: درآمد و هزینه‌های عملیاتی
   ============================================ */

.comfiran-st-label {
    font-weight: 500;
    color: #334155;
    text-align: right;
}

.comfiran-st-calc {
    font-weight: 600;
    color: #1e40af;
    background: #f0f9ff;
}

.comfiran-st-total {
    background: #f1f5f9;
    font-weight: 700;
}

.comfiran-st-total td {
    color: #0f172a;
    border-top: 2px solid #cbd5e1;
}

.comfiran-st-sub-row {
    background: #fafafa;
    color: #64748b;
    font-size: 13px;
}

.comfiran-st-negative {
    color: #dc2626 !important;
}

.comfiran-st-positive {
    color: #16a34a !important;
}

/* جدول خلاصه عمومی (اگه قبلاً نیست) */
.comfiran-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.comfiran-summary-table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    padding: 12px 10px;
    text-align: right;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
}

.comfiran-summary-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.comfiran-summary-table tbody tr:hover {
    background: #f8fafc;
}

.comfiran-summary-table-responsive {
    overflow-x: auto;
    margin-bottom: 10px;
}


/* ============================================
   جدول چاپ — حرفه‌ای و فشرده
   ============================================ */

.comfiran-print-wrapper {
    background: #fff;
    padding: 28px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* ---- سربرگ ---- */
.comfiran-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 3px solid #1e40af;
    flex-wrap: wrap;
}

.comfiran-print-header-right h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #1e3a8a;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.comfiran-print-header-right p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.comfiran-print-header-left {
    text-align: left;
    font-size: 12.5px;
    color: #334155;
    min-width: 240px;
}

.comfiran-print-header-row {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    justify-content: flex-end;
}

.comfiran-print-header-row span {
    color: black;
    min-width: 80px;
    text-align: right;
    font-weight: bold;
}

.comfiran-print-header-row strong {
    color: black;
    font-weight: 600;
    text-align: left;
    flex: 1;
}

/* ---- عنوان بخش ---- */
.comfiran-print-section-title {
    font-size: 15px;
    color: #1e3a8a;
    font-weight: 700;
    margin: 28px 0 12px;
    padding: 8px 14px;
    background: #eff6ff;
    border-right: 4px solid #2563eb;
    border-radius: 6px;
}

.comfiran-print-section-title:first-of-type {
    margin-top: 0;
}

/* ---- جدول ---- */
.comfiran-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 8px;
}

.comfiran-print-table thead th {
    background: #1e40af;
    color: #fff;
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 11.5px;
    border: 1px solid #1e40af;
    white-space: nowrap;
}

.comfiran-print-table thead th.comfiran-print-th-wide {
    text-align: center;
    padding-right: 12px;
    min-width: 240px;
}

.comfiran-print-table tbody td {
    padding: 8px 6px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.4;
}

.comfiran-print-table tbody td:first-child {
    text-align: center;
    padding-right: 12px;
    font-weight: 500;
}

.comfiran-print-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.comfiran-print-center {
    text-align: center;
    color: #64748b;
}

.comfiran-print-number {
    text-align: center;
    direction: ltr;
    font-weight: 600;
    color: #0f172a;
}

/* ---- ردیف‌های خاص ---- */
.comfiran-print-subtotal-row td {
    background: #f1f5f9 !important;
    font-weight: 700;
    color: #0f172a;
    border-top: 1px solid #94a3b8;
}

.comfiran-print-total-row td {
    background: #e0e7ff !important;
    font-weight: 700;
    color: #1e3a8a;
}

.comfiran-print-grandtotal-row td {
    background: #1e40af !important;
    color: #fff !important;
    font-weight: 800;
    font-size: 12.5px;
    padding: 11px 6px;
    border-color: #1e40af;
}

/* ---- فوتر ---- */
.comfiran-print-footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 2px solid #cbd5e1;
}

.comfiran-print-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 13.5px;
    color: #1e3a8a;
    font-weight: 600;
}

.comfiran-print-footer-row strong {
    font-size: 16px;
    color: #1e3a8a;
    font-weight: 800;
}

.comfiran-print-footer-signatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.comfiran-print-signature {
    text-align: center;
    padding-top: 60px;
    border-top: 1px dashed #94a3b8;
}

.comfiran-print-signature span {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 500;
}

/* ============================================
   چاپ — افقی + تمیز + فشرده
   ============================================ */
@media print {

    @page {
        size: A4 landscape;
        margin: 8mm 10mm;
    }

    /* مخفی کردن عناصر غیرضروری */
    .comfiran-no-print,
    header,
    footer,
    nav,
    .comfiran-actions,
    .comfiran-step-header,
    .comfiran-report-header-actions,
    script,
    .comfiran-alert,
    .comfiran-report-header {
        display: none !important;
    }

    /* ریست کامل */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10px !important;
    }

    .comfiran-wrapper,
    .comfiran-wrapper .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        background: #fff !important;
    }

    .comfiran-print-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* سربرگ چاپ */
    .comfiran-print-header {
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
        border-bottom-width: 2px !important;
    }

    .comfiran-print-header-right h1 {
        font-size: 14px !important;
    }

    .comfiran-print-header-right p {
        font-size: 10px !important;
    }

    .comfiran-print-header-left {
        font-size: 11px !important;
        min-width: 180px !important;
    }

    .comfiran-print-header-row {
        margin-bottom: 2px !important;
    }

    /* عنوان بخش */
    .comfiran-print-section-title {
        font-size: 11px !important;
        margin: 10px 0 5px !important;
        padding: 4px 8px !important;
        page-break-after: avoid;
    }

    /* جدول فشرده */
    .comfiran-print-table {
        font-size: 8.5px !important;
        margin-bottom: 4px !important;
    }

    .comfiran-print-table thead th {
        padding: 4px 2px !important;
        font-size: 11px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .comfiran-print-table thead th.comfiran-print-th-wide {
        min-width: 160px !important;
        padding-right: 6px !important;
    }

    .comfiran-print-table tbody td {
        padding: 3px 2px !important;
        font-size: 8.5px !important;
        line-height: 1.2 !important;
    }

    .comfiran-print-table tbody td:first-child {
        padding-right: 6px !important;
    }

    .comfiran-print-grandtotal-row td {
        padding: 5px 2px !important;
        font-size: 11px !important;
    }

    /* جلوگیری از شکستن */
    .comfiran-print-table {
        page-break-inside: auto;
    }

    .comfiran-print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .comfiran-print-table thead {
        display: table-header-group;
    }

    .comfiran-print-section-title + .comfiran-print-table {
        page-break-before: avoid;
    }

    /* فوتر */
    .comfiran-print-footer {
        page-break-inside: avoid;
        margin-top: 12px !important;
        padding-top: 8px !important;
        border-top-width: 1px !important;
    }

    .comfiran-print-footer-row {
        padding: 6px 10px !important;
        margin-bottom: 12px !important;
        font-size: 9.5px !important;
    }

    .comfiran-print-footer-row strong {
        font-size: 11px !important;
    }

    .comfiran-print-footer-signatures {
        margin-top: 20px !important;
        gap: 20px !important;
    }

    .comfiran-print-signature {
        padding-top: 30px !important;
    }

    .comfiran-print-signature span {
        font-size: 11px !important;
    }
}


/* جدول فشرده در چاپ */
.comfiran-print-table-compact {
    font-size: 11px;
}

.comfiran-print-table-compact thead th {
    font-size: 10.5px;
    padding: 8px 4px;
}

.comfiran-print-table-compact tbody td {
    padding: 6px 4px;
    font-size: 11px;
}

@media print {
    .comfiran-print-table-compact {
        font-size: 8px !important;
    }

    .comfiran-print-table-compact thead th {
        font-size: 7.5px !important;
        padding: 3px 2px !important;
    }

    .comfiran-print-table-compact tbody td {
        font-size: 11px !important;
        padding: 2.5px 2px !important;
    }
}

.comfiran-print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.comfiran-print-toolbar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.comfiran-print-toolbar-info i {
    flex: 0 0 auto;
    font-size: 19px;
    color: #64748b;
}

.comfiran-print-toolbar-info strong {
    color: #334155;
    font-weight: 700;
}

.comfiran-print-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comfiran-print-btn i {
    font-size: 17px;
}

.comfiran-print-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.comfiran-print-btn:active {
    transform: translateY(0);
}

.comfiran-print-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.15);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .comfiran-print-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .comfiran-print-btn {
        align-self: flex-end;
    }
}

@media print {
    .comfiran-no-print {
        display: none !important;
    }
}

.comfiran-summary-intro {
    font-size: 13px;
    line-height: 2.1;
    color: #334155;
    text-align: justify;
    margin: 0 0 12px
}

.comfiran-summary-metrics td:nth-child(2), .comfiran-summary-metrics td:nth-child(4) {
    direction: ltr;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums
}

.comfiran-summary-metrics td:nth-child(3) {
    text-align: center;
    color: black;
    font-weight: 600;
    white-space: nowrap
}

.comfiran-summary-screen-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 16px
}

@media print {
    @page {
        size: A4 portrait;
        margin: 6mm 7mm
    }

    .comfiran-progress {
        display: none !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-header {
        gap: 12px !important;
        padding-bottom: 5px !important;
        margin-bottom: 6px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-header-right h1 {
        font-size: 11px !important;
        margin-bottom: 2px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-header-right p {
        font-size: 7.5px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-header-left {
        font-size: 7px !important;
        min-width: 150px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-header-row {
        margin-bottom: 1px !important
    }

    .comfiran-summary-intro {
        font-size: 7px !important;
        line-height: 1.55 !important;
        margin: 0 0 3px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-section-title {
        font-size: 8px !important;
        margin: 5px 0 2px !important;
        padding: 2px 5px !important;
        border-right-width: 2px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-table {
        margin-bottom: 2px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-table thead th {
        font-size: 11x !important;
        padding: 2px 2px !important;
        line-height: 1.1 !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-table tbody td {
        font-size: 7px !important;
        padding: 1.6px 2px !important;
        line-height: 1.15 !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-table thead th.comfiran-print-th-wide {
        min-width: 125px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-grandtotal-row td {
        font-size: 7.2px !important;
        padding: 2px !important
    }

    .comfiran-summary-print-wrapper .comfiran-print-subtotal-row td {
        font-size: 7px !important
    }

    .comfiran-summary-print-wrapper {
        width: 100% !important
    }
}

.comfiran-report-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
}

.comfiran-report-screen-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.comfiran-report-screen-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.comfiran-report-screen-icon i {
    font-size: 23px;
}

.comfiran-report-screen-heading h2 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

.comfiran-report-screen-heading p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #718096;
    font-size: 12.5px;
    line-height: 1.7;
}

.comfiran-report-screen-separator {
    color: #cbd5e1;
}

.comfiran-report-screen-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.comfiran-report-action-btn {
    height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #dbe3ec;
    background: #fff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.comfiran-report-action-btn i {
    font-size: 17px;
}

.comfiran-report-action-btn:hover {
    transform: translateY(-1px);
}

.comfiran-report-action-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.comfiran-report-action-print {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.comfiran-report-action-print:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.13);
}

@media (max-width: 768px) {
    .comfiran-report-screen-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .comfiran-report-screen-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .comfiran-report-screen-heading h2 {
        font-size: 17px;
    }
}

@media print {
    .comfiran-no-print {
        display: none !important;
    }
}


.comfiran-reports-page .comfiran-report-screen-header {
    margin-bottom: 18px
}

.comfiran-reports-overview {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 58%, #f5f9ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
    position: relative;
    overflow: hidden
}

.comfiran-reports-overview:before {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(13, 110, 253, .055);
    pointer-events: none
}

.comfiran-reports-overview-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0
}

.comfiran-reports-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0d6efd;
    font-size: 11.5px;
    font-weight: 800
}

.comfiran-reports-eyebrow i {
    font-size: 15px
}

.comfiran-reports-overview h1 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.6
}

.comfiran-reports-overview p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 2
}

.comfiran-reports-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px
}

.comfiran-reports-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 650
}

.comfiran-reports-meta-item i {
    color: #94a3b8;
    font-size: 15px
}

.comfiran-reports-meta-item strong {
    color: #1e293b;
    font-weight: 800
}

.comfiran-reports-counter {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 6px 18px rgba(13, 110, 253, .06);
    text-align: center
}

.comfiran-reports-counter-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    border-radius: 10px;
    background: #eef5ff;
    color: #0d6efd
}

.comfiran-reports-counter-icon i {
    font-size: 22px
}

.comfiran-reports-counter strong {
    display: block;
    color: #0f172a;
    font-size: 31px;
    font-weight: 850;
    line-height: 1
}

.comfiran-reports-counter span {
    margin-top: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 800
}

.comfiran-reports-counter small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600
}

.comfiran-report-groups {
    display: flex;
    flex-direction: column;
    gap: 26px
}

.comfiran-report-group {
    padding: 0
}

.comfiran-report-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 2px
}

.comfiran-report-group-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.comfiran-report-group-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035)
}

.comfiran-report-group-icon i {
    font-size: 18px
}

.comfiran-report-group-head h2 {
    margin: 0 0 2px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.5
}

.comfiran-report-group-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 11.5px;
    line-height: 1.7
}

.comfiran-report-group-count {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 750;
    border: 1px solid #e8edf3
}

.comfiran-report-cards {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 14px
}

.comfiran-report-option {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 150px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .035);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

.comfiran-report-option:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dbeafe;
    transition: background .2s ease
}

.comfiran-report-option:hover {
    transform: translateY(-2px);
    border-color: #cfd9e7;
    box-shadow: 0 9px 24px rgba(15, 23, 42, .075)
}

.comfiran-report-option:hover:before {
    background: #0d6efd
}

.comfiran-report-option-main {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 17px 18px 17px 16px;
    gap: 13px
}

.comfiran-report-option-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #f4f8ff;
    color: #0d6efd;
    transition: transform .2s ease, background .2s ease
}

.comfiran-report-option:hover .comfiran-report-option-icon {
    transform: translateY(-1px);
    background: #edf5ff
}

.comfiran-report-option-icon i {
    font-size: 23px
}

.comfiran-report-option-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column
}

.comfiran-report-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px
}

.comfiran-report-option-title {
    margin: 0;
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 850;
    line-height: 1.7
}

.comfiran-report-option-number {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    direction: ltr
}

.comfiran-report-option-desc {
    margin: 0;
    color: #718096;
    font-size: 11.8px;
    line-height: 1.95
}

.comfiran-report-option-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px
}

.comfiran-report-ready {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700
}

.comfiran-report-ready i {
    font-size: 14px;
    color: #16a34a
}

.comfiran-report-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease
}

.comfiran-report-open i {
    font-size: 15px;
    transition: transform .2s ease
}

.comfiran-report-open:hover {
    border-color: #bfcbd8;
    background: #f8fafc;
    color: #0f172a
}

.comfiran-report-open:hover i {
    transform: translateX(-2px)
}

.comfiran-report-option-disabled {
    opacity: .65;
    background: #f8fafc
}

.comfiran-report-option-disabled:hover {
    transform: none;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .035)
}

.comfiran-report-soon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10.5px;
    font-weight: 800
}

.comfiran-reports-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding: 15px 16px;
    border: 1px solid #e8edf3;
    border-radius: 11px;
    background: #fafbfd
}

.comfiran-reports-bottom-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.8
}

.comfiran-reports-bottom-note i {
    font-size: 18px;
    color: #94a3b8
}

.comfiran-reports-bottom .comfiran-report-action-btn {
    flex: 0 0 auto
}

@media (max-width: 992px) {
    .comfiran-reports-overview {
        grid-template-columns:1fr
    }

    .comfiran-reports-counter {
        min-height: auto;
        display: grid;
        grid-template-columns:auto auto;
        grid-template-rows:auto auto;
        justify-content: center;
        column-gap: 10px
    }

    .comfiran-reports-counter-icon {
        grid-row: 1/3;
        margin: 0
    }

    .comfiran-reports-counter strong {
        font-size: 25px
    }

    .comfiran-reports-counter span {
        margin: 0;
        align-self: end
    }

    .comfiran-reports-counter small {
        margin: 0;
        align-self: start
    }

    .comfiran-report-cards {
        grid-template-columns:1fr
    }
}

@media (max-width: 640px) {
    .comfiran-reports-overview {
        padding: 18px
    }

    .comfiran-reports-overview h1 {
        font-size: 19px
    }

    .comfiran-report-group-head {
        align-items: flex-start
    }

    .comfiran-report-group-head p {
        display: none
    }

    .comfiran-report-option-main {
        padding: 15px 14px;
        gap: 10px
    }

    .comfiran-report-option-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px
    }

    .comfiran-report-option-title {
        font-size: 13.5px
    }

    .comfiran-report-option-desc {
        font-size: 11.2px
    }

    .comfiran-reports-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .comfiran-reports-bottom .comfiran-report-action-btn {
        align-self: flex-end
    }
}

.comfiran-investment-chart-section {
    margin-top: 20px;
    break-inside: avoid;
    page-break-inside: avoid
}

.comfiran-investment-chart-card {
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 14px 15px 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .045);
    overflow: hidden
}

.comfiran-investment-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px
}

.comfiran-investment-chart-title {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7
}

.comfiran-investment-chart-subtitle {
    margin: 1px 0 0;
    color: black;
    font-size: 11.5px;
    line-height: 1.7
}

.comfiran-investment-chart-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap
}

.comfiran-investment-chart-badge strong {
    color: #1d4ed8;
    font-weight: 800;
    direction: ltr
}

.comfiran-investment-chart-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden
}

.comfiran-investment-chart-svg {
    display: block;
    width: 100%;
    height: auto
}

@media print {
    .comfiran-investment-chart-section {
        margin-top: 10px
    }

    .comfiran-investment-chart-card {
        max-width: none;
        padding: 7px 8px 4px;
        border-radius: 7px;
        box-shadow: none
    }

    .comfiran-investment-chart-title {
        font-size: 11px
    }

    .comfiran-investment-chart-subtitle {
        font-size: 9px
    }

    .comfiran-investment-chart-badge {
        font-size: 8.5px;
        padding: 3px 6px
    }

    .comfiran-investment-chart-svg {
        max-height: 245px
    }
}

@media (max-width: 700px) {
    .comfiran-investment-chart-head {
        align-items: flex-start;
        flex-direction: column
    }

    .comfiran-investment-chart-card {
        padding: 12px 8px 7px
    }

    .comfiran-investment-chart-wrap {
        overflow-x: auto
    }

    .comfiran-investment-chart-svg {
        min-width: 760px
    }
}

.comfiran-dcf-summary-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 26px
}

.comfiran-dcf-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #fff
}

.comfiran-dcf-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px
}

.comfiran-dcf-card strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.5
}

.comfiran-dcf-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 16px 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.9
}

.comfiran-dcf-charts-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 18px 0 26px;
    align-items: stretch
}

.comfiran-dcf-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 16px 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
    break-inside: avoid;
    page-break-inside: avoid;
    min-width: 0;
    height: 100%
}

.comfiran-dcf-chart-card h4 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800
}

.comfiran-dcf-chart-card p {
    margin: 0 0 10px;
    color: black;
    font-size: 12px;
    line-height: 1.8
}

.comfiran-dcf-chart-wrap {
    width: 100%;
    overflow: hidden
}

.comfiran-dcf-chart-svg {
    display: block;
    width: 100%;
    height: auto
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm 10mm
    }

    .comfiran-dcf-summary-grid {
        grid-template-columns:repeat(3, 1fr);
        gap: 8px
    }

    .comfiran-dcf-card {
        padding: 8px
    }

    .comfiran-dcf-card strong {
        font-size: 13px
    }

    .comfiran-dcf-note {
        font-size: 11px
    }

    .comfiran-dcf-charts-grid {
        grid-template-columns:repeat(2, 1fr);
        gap: 10px;
        margin: 12px 0 18px
    }

    .comfiran-dcf-chart-card {
        padding: 8px;
        border-radius: 8px;
        box-shadow: none
    }

    .comfiran-dcf-chart-card h4 {
        font-size: 11px;
        margin-bottom: 2px
    }

    .comfiran-dcf-chart-card p {
        font-size: 9.5px;
        margin-bottom: 6px
    }
}

@media (max-width: 900px) {
    .comfiran-dcf-summary-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 640px) {
    .comfiran-dcf-charts-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 640px) {
    .comfiran-dcf-summary-grid {
        grid-template-columns:1fr
    }
}

.comfiran-reports-page .comfiran-report-screen-header {
    margin-bottom: 18px
}

.comfiran-reports-overview {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 58%, #f5f9ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .045);
    position: relative;
    overflow: hidden
}

.comfiran-reports-overview:before {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(13, 110, 253, .055);
    pointer-events: none
}

.comfiran-reports-overview-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0
}

.comfiran-reports-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0d6efd;
    font-size: 11.5px;
    font-weight: 800
}

.comfiran-reports-eyebrow i {
    font-size: 15px
}

.comfiran-reports-overview h1 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.6
}

.comfiran-reports-overview p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 2
}

.comfiran-reports-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px
}

.comfiran-reports-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 650
}

.comfiran-reports-meta-item i {
    color: #94a3b8;
    font-size: 15px
}

.comfiran-reports-meta-item strong {
    color: #1e293b;
    font-weight: 800
}

.comfiran-reports-counter {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 6px 18px rgba(13, 110, 253, .06);
    text-align: center
}

.comfiran-reports-counter-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    border-radius: 10px;
    background: #eef5ff;
    color: #0d6efd
}

.comfiran-reports-counter-icon i {
    font-size: 22px
}

.comfiran-reports-counter strong {
    display: block;
    color: #0f172a;
    font-size: 31px;
    font-weight: 850;
    line-height: 1
}

.comfiran-reports-counter span {
    margin-top: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 800
}

.comfiran-reports-counter small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600
}

.comfiran-report-cards {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 14px
}

.comfiran-report-option {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 150px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .035);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

.comfiran-report-option:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dbeafe;
    transition: background .2s ease
}

.comfiran-report-option:hover {
    transform: translateY(-2px);
    border-color: #cfd9e7;
    box-shadow: 0 9px 24px rgba(15, 23, 42, .075)
}

.comfiran-report-option:hover:before {
    background: #0d6efd
}

.comfiran-report-option-main {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 17px 18px 17px 16px;
    gap: 13px
}

.comfiran-report-option-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #f4f8ff;
    color: #0d6efd;
    transition: transform .2s ease, background .2s ease
}

.comfiran-report-option:hover .comfiran-report-option-icon {
    transform: translateY(-1px);
    background: #edf5ff
}

.comfiran-report-option-icon i {
    font-size: 23px
}

.comfiran-report-option-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column
}

.comfiran-report-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px
}

.comfiran-report-option-title {
    margin: 0;
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 850;
    line-height: 1.7
}

.comfiran-report-option-number {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    direction: ltr
}

.comfiran-report-option-desc {
    margin: 0;
    color: #718096;
    font-size: 11.8px;
    line-height: 1.95
}

.comfiran-report-option-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px
}

.comfiran-report-ready {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 700
}

.comfiran-report-ready i {
    font-size: 14px;
    color: #16a34a
}

.comfiran-report-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease
}

.comfiran-report-open i {
    font-size: 15px;
    transition: transform .2s ease
}

.comfiran-report-open:hover {
    border-color: #bfcbd8;
    background: #f8fafc;
    color: #0f172a
}

.comfiran-report-open:hover i {
    transform: translateX(-2px)
}

.comfiran-report-option-disabled {
    opacity: .65;
    background: #f8fafc
}

.comfiran-report-option-disabled:hover {
    transform: none;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .035)
}

.comfiran-report-soon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10.5px;
    font-weight: 800
}

.comfiran-reports-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding: 15px 16px;
    border: 1px solid #e8edf3;
    border-radius: 11px;
    background: #fafbfd
}

.comfiran-reports-bottom-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.8
}

.comfiran-reports-bottom-note i {
    font-size: 18px;
    color: #94a3b8
}

.comfiran-reports-bottom .comfiran-report-action-btn {
    flex: 0 0 auto
}

@media (max-width: 1100px) {
    .comfiran-report-cards {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 992px) {
    .comfiran-reports-overview {
        grid-template-columns:1fr
    }

    .comfiran-reports-counter {
        min-height: auto;
        display: grid;
        grid-template-columns:auto auto;
        grid-template-rows:auto auto;
        justify-content: center;
        column-gap: 10px
    }

    .comfiran-reports-counter-icon {
        grid-row: 1/3;
        margin: 0
    }

    .comfiran-reports-counter strong {
        font-size: 25px
    }

    .comfiran-reports-counter span {
        margin: 0;
        align-self: end
    }

    .comfiran-reports-counter small {
        margin: 0;
        align-self: start
    }
}

@media (max-width: 640px) {
    .comfiran-reports-overview {
        padding: 18px
    }

    .comfiran-reports-overview h1 {
        font-size: 19px
    }

    .comfiran-report-cards {
        grid-template-columns:1fr
    }

    .comfiran-report-option-main {
        padding: 15px 14px;
        gap: 10px
    }

    .comfiran-report-option-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px
    }

    .comfiran-report-option-title {
        font-size: 13.5px
    }

    .comfiran-report-option-desc {
        font-size: 11.2px
    }

    .comfiran-reports-bottom {
        align-items: flex-start;
        flex-direction: column
    }

    .comfiran-reports-bottom .comfiran-report-action-btn {
        align-self: flex-end
    }
}

.comfiran-tax-graduated-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.comfiran-tax-year-card {
    position: relative;
    min-width: 0;
    padding: 12px 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.comfiran-tax-year-card:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.comfiran-tax-year-label {
    margin-bottom: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.comfiran-tax-year-input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    padding: 0 10px 0 26px;
    outline: 0;
    text-align: center;
    direction: ltr;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.comfiran-tax-year-input:hover {
    border-color: #94a3b8;
    background: #fff;
}

.comfiran-tax-year-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.comfiran-tax-year-unit {
    position: absolute;
    left: 17px;
    bottom: 21px;
    transform: translateY(50%);
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
}

@media (max-width: 767px) {
    .comfiran-tax-graduated-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .comfiran-tax-year-card {
        padding: 12px 10px 10px;
    }

    .comfiran-tax-year-label {
        font-size: 13px;
    }

    .comfiran-tax-year-input {
        height: 44px;
        font-size: 15px;
    }
}

.comfiran-step-label-mobile {
    display: none;
}

.comfiran-step-label-mobile {
    display: none !important;
}

.width300 {
    width: 300px;
}

.comfiran-profile-page {
    padding: 28px 0 48px
}

.comfiran-profile-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    margin-bottom: 20px;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 55%, #eef5ff 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07)
}

.comfiran-profile-hero:before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .08);
    left: -80px;
    top: -130px
}

.comfiran-profile-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0
}

.comfiran-profile-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .24)
}

.comfiran-profile-hero h1 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #172033
}

.comfiran-profile-hero p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9
}

.comfiran-profile-phone {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #334155;
    font-weight: 700;
    font-size: 14px
}

.comfiran-profile-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 9px;
    flex-wrap: wrap
}

.comfiran-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 11px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
    cursor: pointer
}

.comfiran-profile-btn:hover {
    transform: translateY(-1px);
    border-color: #b9c9df;
    color: #1d4ed8;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .07)
}

.comfiran-profile-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff
}

.comfiran-profile-btn-primary:hover {
    color: #fff;
    background: #1d4ed8;
    border-color: #1d4ed8
}

.comfiran-profile-btn-danger {
    color: #b42318;
    background: #fff;
    border-color: #f1d1cd
}

.comfiran-profile-btn-danger:hover {
    color: #991b1b;
    border-color: #f0b8b2;
    background: #fff8f7
}

.comfiran-profile-layout {
    display: grid;
    grid-template-columns:minmax(280px, .7fr) minmax(0, 1.5fr);
    gap: 18px;
    align-items: start
}

.comfiran-profile-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(15, 23, 42, .05);
    overflow: hidden
}

.comfiran-profile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf1f6
}

.comfiran-profile-card-title {
    display: flex;
    align-items: center;
    gap: 10px
}

.comfiran-profile-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px
}

.comfiran-profile-card h2 {
    margin: 0;
    font-size: 16px;
    color: #1e293b
}

.comfiran-profile-card-subtitle {
    margin: 3px 0 0;
    color: #94a3b8;
    font-size: 12px
}

.comfiran-profile-card-body {
    padding: 20px
}

.comfiran-profile-form-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 16px
}

.comfiran-profile-field label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 700
}

.comfiran-profile-input-wrap {
    position: relative
}

.comfiran-profile-input-wrap i {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none
}

.comfiran-profile-input {
    width: 100%;
    height: 46px;
    padding: 0 43px 0 13px;
    border: 1px solid #dfe7f1;
    border-radius: 11px;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    transition: .2s ease
}

.comfiran-profile-input:focus {
    border-color: #80aef8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08)
}

.comfiran-profile-input[readonly] {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed
}

.comfiran-profile-field-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px
}

.comfiran-profile-field-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 11px
}

.comfiran-profile-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1f6
}

.comfiran-profile-save {
    border: 0;
    min-width: 145px
}

.comfiran-profile-stats {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 10px
}

.comfiran-profile-stat {
    padding: 15px;
    border: 1px solid #edf1f6;
    border-radius: 13px;
    background: #fbfdff
}

.comfiran-profile-stat strong {
    display: block;
    font-size: 22px;
    color: #172033;
    line-height: 1;
    margin-bottom: 7px
}

.comfiran-profile-stat span {
    font-size: 11px;
    color: #64748b
}

.comfiran-profile-links {
    display: grid;
    gap: 9px;
    margin-top: 14px
}

.comfiran-profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    background: #fff;
    transition: .2s ease
}

.comfiran-profile-link:hover {
    border-color: #cbd9ee;
    background: #f8fbff;
    color: #1d4ed8
}

.comfiran-profile-link-main {
    display: flex;
    align-items: center;
    gap: 10px
}

.comfiran-profile-link-main i {
    font-size: 20px;
    color: #2563eb
}

.comfiran-profile-link strong {
    display: block;
    font-size: 13px
}

.comfiran-profile-link small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px
}

.comfiran-profile-projects {
    margin-top: 18px
}

.comfiran-profile-project-list {
    display: grid;
    gap: 10px
}

.comfiran-profile-project {
    display: grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid #e8edf5;
    border-radius: 13px;
    background: #fff
}

.comfiran-profile-project h3 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.comfiran-profile-project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #94a3b8
}

.comfiran-profile-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700
}

.comfiran-profile-status.is-draft {
    color: #9a6700;
    background: #fff7d6
}

.comfiran-profile-status.is-waiting {
    color: #9a6700;
    background: #fff7d6
}

.comfiran-profile-status.is-paid {
    color: #166534;
    background: #ecfdf3
}

.comfiran-profile-project-actions {
    display: flex;
    gap: 7px
}

.comfiran-profile-project-actions .comfiran-profile-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px
}

.comfiran-profile-empty {
    padding: 25px 15px;
    text-align: center;
    border: 1px dashed #d9e2ee;
    border-radius: 13px;
    color: #94a3b8;
    background: #fbfdff
}

.comfiran-profile-empty i {
    display: block;
    font-size: 33px;
    margin-bottom: 8px;
    color: #bfd0e7
}

@media (max-width: 900px) {
    .comfiran-profile-layout {
        grid-template-columns:1fr
    }

    .comfiran-profile-hero {
        align-items: flex-start;
        flex-direction: column
    }

    .comfiran-profile-hero-actions {
        width: 100%
    }
}

@media (max-width: 620px) {
    .comfiran-profile-page {
        padding-top: 16px
    }

    .comfiran-profile-hero {
        padding: 20px;
        border-radius: 17px
    }

    .comfiran-profile-avatar {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 18px;
        font-size: 26px
    }

    .comfiran-profile-hero h1 {
        font-size: 20px
    }

    .comfiran-profile-form-grid {
        grid-template-columns:1fr
    }

    .comfiran-profile-project {
        grid-template-columns:1fr
    }

    .comfiran-profile-project-actions {
        justify-content: flex-start
    }

    .comfiran-profile-hero-actions .comfiran-profile-btn {
        flex: 1
    }

    .comfiran-profile-card-body {
        padding: 16px
    }
}

@media (max-width: 768px) {
    .comfiran-step-label-desktop {
        display: none !important;
    }

    .comfiran-step-label-mobile {
        display: block !important;
    }

    .comfiran-step-header h2 {
        font-size: 15px;
    }

    .comfiran-step-header .comfiran-step-subtitle {
        font-size: 12px;
        text-align: justify;
    }

    .comfiran-step-header {
        padding: 12px 11px;
    }

    .comfiran-progress {
        padding: 0 1px;
    }

    .comfiran-form-label {
        font-size: 12px;
    }

    .comfiran-btn {
        gap: 1px;
        padding: 6px 7px;
        font-size: 12px;
    }

    .comfiran-wrapper {
        direction: rtl;
        padding: 80px 0 20px 0;
    }

    .comfiran-actions {
        gap: 5px;
    }

    .width-unset {
        width: unset;
    }
}

.pc-page {
    padding: 34px 0 64px;
    background: linear-gradient(180deg, #f7faff 0, #fff 360px)
}

.pc-shell {
    max-width: 1280px;
    margin: 0 auto
}

.pc-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 34px;
    margin-bottom: 24px;
    border: 1px solid #dce8f7;
    border-radius: 22px;
    background: linear-gradient(135deg, #0d2b67 0%, #123f8d 58%, #1d5bb6 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(13, 43, 103, .13)
}

.pc-hero:before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    left: -80px;
    top: -120px;
    border: 45px solid rgba(255, 255, 255, .055);
    border-radius: 50%
}

.pc-hero:after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -70px;
    bottom: -95px;
    border: 35px solid rgba(255, 255, 255, .045);
    border-radius: 50%
}

.pc-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.pc-hero-title {
    display: flex;
    align-items: center;
    gap: 17px
}

.pc-hero-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 17px;
    background: rgba(255, 255, 255, .11);
    font-size: 31px;
    backdrop-filter: blur(8px)
}

.pc-hero h1 {
    margin: 0 0 7px;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.45;
    color: #fff
}

.pc-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.9
}

.pc-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 700
}

.pc-live-badge i {
    font-size: 18px
}

.pc-grid {
    display: grid;
    grid-template-columns:minmax(0, 1.55fr) minmax(340px, .75fr);
    gap: 22px;
    align-items: start
}

.pc-card {
    overflow: hidden;
    border: 1px solid #e1e8f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .055)
}

.pc-card + .pc-card {
    margin-top: 18px
}

.pc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(180deg, #fff 0, #fbfdff 100%)
}

.pc-card-title {
    display: flex;
    align-items: center;
    gap: 11px
}

.pc-card-title-icon {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf4ff;
    color: #1552a8;
    font-size: 20px
}

.pc-card-head h2 {
    margin: 0;
    color: #17233b;
    font-size: 15px;
    font-weight: 900
}

.pc-card-head p {
    margin: 3px 0 0;
    color: #8490a2;
    font-size: 10.5px
}

.pc-card-body {
    padding: 20px
}

.pc-fields {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 16px
}

.pc-field {
    min-width: 0
}

.pc-field.pc-span-2 {
    grid-column: 1/-1
}

.pc-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700
}

.pc-label small {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 500
}

.pc-input-wrap {
    position: relative
}

.pc-input {
    width: 100%;
    height: 47px;
    padding: 0 14px 0 46px;
    border: 1px solid #dce3ec;
    border-radius: 11px;
    background: #fbfcfe;
    color: #17233b;
    font-size: 13px;
    font-weight: 700;
    direction: ltr;
    text-align: left;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s
}

.pc-input:focus {
    border-color: #3977cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(57, 119, 204, .1)
}

.pc-input-unit {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 27px;
    padding: 3px 5px;
    border-radius: 6px;
    background: #eef3f9;
    color: #667085;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    pointer-events: none
}

.pc-note {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid #f1dfad;
    border-radius: 10px;
    background: #fffbeb;
    color: #80610d;
    font-size: 10.5px;
    line-height: 1.8
}

.pc-note i {
    margin-top: 2px;
    font-size: 16px
}

.pc-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px
}

.pc-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid #d9e1eb;
    border-radius: 9px;
    background: #fff;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

.pc-reset:hover {
    border-color: #b7c5d8;
    background: #f8fafc;
    color: #243b61
}

.pc-results {
    position: sticky;
    top: 100px
}

.pc-results-card {
    overflow: hidden;
    border: 1px solid #d8e5f5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(13, 43, 103, .085)
}

.pc-results-head {
    padding: 20px 21px;
    background: linear-gradient(135deg, #0d2b67, #164b9c);
    color: #fff
}

.pc-results-head-top {
    display: flex;
    align-items: center;
    gap: 11px
}

.pc-results-head-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .13);
    font-size: 22px
}

.pc-results-head h2 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900
}

.pc-results-head p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: 10.5px
}

.pc-results-body {
    padding: 10px 18px 18px
}

.pc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 3px;
    border-bottom: 1px dashed #e5e9ef
}

.pc-result:last-of-type {
    border-bottom: 0
}

.pc-result-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 600
}

.pc-result-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #92a4bb
}

.pc-result-value {
    max-width: 58%;
    color: #17233b;
    font-size: 15px;
    font-weight: 900;
    direction: ltr;
    text-align: left;
    word-break: break-all
}

.pc-result.is-important {
    margin: 9px -7px 0;
    padding: 16px 10px;
    border: 1px solid #d8e9ff;
    border-radius: 12px;
    background: #f4f8ff
}

.pc-result.is-important .pc-result-label {
    color: #244b7d;
    font-weight: 800
}

.pc-result.is-important .pc-result-dot {
    background: #1769c2
}

.pc-result.is-important .pc-result-value {
    color: #0d57aa;
    font-size: 17px
}

.pc-unit-result {
    margin-top: 12px;
    padding: 18px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef7ff, #f8fbff);
    text-align: center;
    border: 1px solid #cfe5fb
}

.pc-unit-result span {
    display: block;
    margin-bottom: 5px;
    color: #527197;
    font-size: 10px;
    font-weight: 700
}

.pc-unit-result strong {
    display: block;
    color: #073f82;
    font-size: 27px;
    font-weight: 900;
    direction: ltr;
    line-height: 1.35
}

.pc-unit-result small {
    display: block;
    margin-top: 5px;
    color: #8495aa;
    font-size: 9.5px
}

.pc-formula {
    margin-top: 15px;
    padding: 12px 13px;
    border-radius: 10px;
    background: #f8fafc;
    color: #667085;
    font-size: 9.5px;
    line-height: 1.9
}

.pc-formula strong {
    color: #344054
}

@media (max-width: 991px) {
    .pc-grid {
        grid-template-columns:1fr
    }

    .pc-results {
        position: static
    }

    .pc-hero-content {
        align-items: flex-start;
        flex-direction: column
    }

    .pc-live-badge {
        align-self: flex-start
    }
}

@media (max-width: 600px) {
    .pc-page {
        padding-top: 20px
    }

    .pc-hero {
        padding: 23px 20px;
        border-radius: 17px
    }

    .pc-hero-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px
    }

    .pc-hero h1 {
        font-size: 21px
    }

    .pc-fields {
        grid-template-columns:1fr
    }

    .pc-field.pc-span-2 {
        grid-column: auto
    }

    .pc-card-body {
        padding: 16px
    }

    .pc-result-value {
        font-size: 13px
    }

    .pc-unit-result strong {
        font-size: 23px
    }
}

@media print {
    .comfiran-funding-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4mm !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .comfiran-funding-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

.comfiran-irr-warning {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid #f0b7b7;
    border-radius: 12px;
    background: #fff5f5;
    color: #7f1d1d;
    line-height: 2;
}

.comfiran-irr-warning-title {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
    font-weight: 700;
}

.comfiran-irr-warning-title i {
    margin-top: 5px;
    font-size: 20px;
}

.comfiran-irr-warning p {
    margin: 0 0 8px;
}

.comfiran-irr-warning ul {
    margin: 0;
    padding-right: 22px;
}

.comfiran-irr-warning li {
    margin: 2px 0;
}

.comfiran-irr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .64);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.comfiran-irr-modal.is-closing {
    display: none;
}

.comfiran-irr-modal-card {
    position: relative;
    width: min(620px, 100%);
    overflow: hidden;
    border: 1px solid #fecaca;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    animation: comfiranIrrModalIn .24s ease-out;
}

.comfiran-irr-modal-accent {
    height: 6px;
    background: linear-gradient(90deg, #dc2626, #f97316);
}

.comfiran-irr-modal-body {
    padding: 30px 32px 28px;
}

.comfiran-irr-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    font-size: 24px;
    cursor: pointer;
    transition: .2s ease;
}

.comfiran-irr-modal-close:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
}

.comfiran-irr-modal-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fff1f2;
    color: #dc2626;
    font-size: 31px;
}

.comfiran-irr-modal-kicker {
    display: block;
    margin-bottom: 5px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
}

.comfiran-irr-modal-title {
    margin: 0 0 12px;
    color: #172033;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.7;
}

.comfiran-irr-modal-message {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 2;
}

.comfiran-irr-modal-suggestions {
    margin: 0;
    padding: 16px 20px 16px 16px;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    background: #fffafa;
}

.comfiran-irr-modal-suggestions > strong {
    display: block;
    margin-bottom: 8px;
    color: #7f1d1d;
    font-size: 13px;
}

.comfiran-irr-modal-suggestions ul {
    margin: 0;
    padding-right: 20px;
    color: #475569;
    font-size: 13px;
    line-height: 2;
}

.comfiran-irr-modal-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.comfiran-irr-modal-button {
    min-width: 110px;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.comfiran-irr-modal-button:hover {
    background: #1e40af;
}

@keyframes comfiranIrrModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .comfiran-irr-modal {
        padding: 14px;
    }

    .comfiran-irr-modal-body {
        padding: 26px 20px 22px;
    }

    .comfiran-irr-modal-title {
        padding-left: 42px;
        font-size: 18px;
    }
}

@media print {
    .comfiran-irr-modal {
        display: none !important;
    }
}

.comfiran-profile-link.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.comfiran-my-projects-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.comfiran-my-projects-list {
    display: grid;
    gap: 12px;
}

.comfiran-my-project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5ecf5;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #fbfdff 100%);
    transition: .2s ease;
}

.comfiran-my-project-card:hover {
    border-color: #cad9ed;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transform: translateY(-1px);
}

.comfiran-my-project-main {
    min-width: 0;
}

.comfiran-my-project-title-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.comfiran-my-project-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.comfiran-my-project-title {
    min-width: 0;
    flex: 1;
}

.comfiran-my-project-title h3 {
    margin: 1px 0 7px;
    overflow: hidden;
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comfiran-my-project-progress {
    margin-top: 13px;
    padding-right: 53px;
}

.comfiran-my-project-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 10px;
}

.comfiran-my-project-progress-head strong {
    color: #2563eb;
    font-size: 11px;
}

.comfiran-my-project-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.comfiran-my-project-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.comfiran-my-project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.comfiran-my-project-actions .comfiran-profile-btn {
    min-height: 37px;
    padding: 0 11px;
    font-size: 11px;
}

.comfiran-profile-status.is-archived {
    color: #475569;
    background: #f1f5f9;
}

.comfiran-profile-empty strong,
.comfiran-profile-empty span {
    display: block;
}

.comfiran-profile-empty strong {
    margin-bottom: 5px;
    color: #475569;
    font-size: 14px;
}

.comfiran-profile-empty span {
    font-size: 11px;
}

@media (max-width: 760px) {
    .comfiran-my-project-card {
        grid-template-columns: 1fr;
    }

    .comfiran-my-project-actions {
        justify-content: flex-start;
    }

    .comfiran-my-project-progress {
        padding-right: 0;
    }
}

