@font-face{
    font-family:"Vazirmatn";
    src:url("/wp-content/plugins/secure-certificate-lookup/assets/fonts/Vazirmatn.woff2") format("woff2");
    font-style:normal;
    font-weight:100 900;
    font-display:swap
}

.mfi-breakout,
.mfi-breakout * {
    box-sizing: border-box;
}
.mfi-breakout *,
.mfi-breakout input,
.mfi-breakout textarea,
.mfi-breakout select,
.mfi-breakout button{
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important
}

.mfi-tool-page {
    min-height: 100vh;
    background: #f6f8fb;
    padding: 30px 0 64px;
}

.mfi-tool-page-shell {
    width: min(1560px, calc(100vw - 28px));
    margin: 0 auto;
}

.mfi-breakout {
    --mfi-accent: #2563eb;
    --mfi-accent-soft: #eff6ff;
    --mfi-ink: #172033;
    --mfi-muted: #657087;
    --mfi-line: #dce2ec;
    --mfi-panel: #f6f8fb;
    width: 100%;
    max-width: none;
    position: static;
    left: auto;
    transform: none;
    direction: rtl;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    color: var(--mfi-ink);
    margin: 0;
    line-height: 1.65;
}

.medanet-free-invoice-page .entry-header,
.medanet-free-invoice-page .post-meta,
.medanet-free-invoice-page .entry-meta,
.medanet-free-invoice-page .single-post-meta {
    display: none !important;
}

.medanet-free-invoice-page .entry-content,
.medanet-free-invoice-page .post-content,
.medanet-free-invoice-page article {
    max-width: none !important;
}

.mfi-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 20px;
}

.mfi-page-head h1 {
    margin: 5px 0 6px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.mfi-page-head p {
    margin: 0;
    color: var(--mfi-muted);
    font-size: 14px;
}

.mfi-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: var(--mfi-accent);
}

.mfi-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mfi-accent);
}

.mfi-privacy-pill {
    flex: 0 0 auto;
    border: 1px solid #dce5f2;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    color: #5c6678;
    font-size: 11px;
    box-shadow: 0 5px 18px rgba(26, 41, 74, 0.05);
}

.mfi-privacy-pill span {
    color: #16a34a;
    margin-left: 4px;
}

.mfi-workspace {
    display: grid;
    grid-template-columns: 290px minmax(0, 1040px);
    gap: 28px;
    align-items: start;
    justify-content: center;
}

.mfi-toolbar {
    position: sticky;
    top: 18px;
    background: #fff;
    border: 1px solid #e2e7ef;
    border-radius: 18px;
    padding: 13px;
    box-shadow: 0 12px 35px rgba(26, 41, 74, 0.08);
}

.mfi-toolbar__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
    padding-bottom: 14px;
    margin-bottom: 15px;
}

.mfi-toolbar__head strong {
    display: block;
    font-size: 14px;
}

.mfi-toolbar__head span:not(.mfi-live-dot) {
    display: block;
    color: var(--mfi-muted);
    font-size: 10px;
    margin-top: 2px;
}

.mfi-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px #dcfce7;
    margin: 6px 5px 0 0;
}

.mfi-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.mfi-control-group {
    margin-bottom: 12px;
}

.mfi-control-group label,
.mfi-label {
    display: block;
    color: #505b6d;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px;
}

.mfi-control-group select,
.mfi-control-group input {
    width: 100%;
    height: 38px;
    border: 1px solid #d9e0ea;
    border-radius: 9px;
    background: #fff;
    color: #283246;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.mfi-control-group select:focus,
.mfi-control-group input:focus {
    border-color: var(--mfi-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mfi-accent) 12%, transparent);
}

.mfi-swatches {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mfi-swatches button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #d9e0ea;
    padding: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.mfi-swatches button:hover {
    transform: translateY(-1px);
}

.mfi-swatches button.is-active {
    box-shadow: 0 0 0 2px #172033;
}

.mfi-swatches [data-theme-btn="blue"] { background: #2563eb; }
.mfi-swatches [data-theme-btn="teal"] { background: #0f9f8f; }
.mfi-swatches [data-theme-btn="charcoal"] { background: #313846; }
.mfi-swatches [data-theme-btn="red"] { background: #c83d4d; }
.mfi-swatches [data-theme-btn="purple"] { background: #7c3aed; }
.mfi-swatches [data-theme-btn="orange"] { background: #ea580c; }
.mfi-swatches [data-theme-btn="green"] { background: #16a34a; }
.mfi-swatches [data-theme-btn="rose"] { background: #db2777; }

.mfi-toolbar-actions {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.mfi-btn {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d9e0ea;
    border-radius: 9px;
    background: #fff;
    color: #334057;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.mfi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(35, 48, 75, 0.08);
}

.mfi-btn--primary {
    background: var(--mfi-accent);
    color: #fff;
    border-color: var(--mfi-accent);
}

.mfi-btn--primary span {
    margin-left: 5px;
}

.mfi-toolbar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.mfi-toolbar-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #e0e6ef;
    border-radius: 999px;
    background: #fff;
    color: #526074;
    font-size: 9px;
    font-weight: 800;
}

.mfi-toolbar-badges span::before {
    content: "✓";
    margin-left: 4px;
    color: #16a34a;
    font-weight: 900;
}

.mfi-toolbar-note {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f5f7fb;
    color: #6b7485;
    font-size: 10px;
    line-height: 1.8;
}

.mfi-toolbar-note strong {
    display: block;
    color: #3e4758;
    margin-bottom: 2px;
}

.mfi-upgrade {
    width: min(1260px, 100%);
    margin: 28px auto 0;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr) auto;
    gap: 22px;
    align-items: center;
    border: 1px solid #dfe6f0;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f7f9fd 100%);
    box-shadow: 0 12px 34px rgba(31, 42, 68, .07);
}

.mfi-upgrade__eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 900;
}

.mfi-upgrade h2 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 20px;
    line-height: 1.5;
}

.mfi-upgrade p {
    margin: 0;
    color: #657087;
    font-size: 11px;
    line-height: 1.9;
}

.mfi-upgrade__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mfi-upgrade__features span {
    padding: 8px 9px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e5eaf1;
    color: #465166;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.mfi-upgrade__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 10px;
    background: #172033;
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
}

.mfi-upgrade__cta:hover {
    background: #2563eb;
}

.mfi-sheet {
    --sheet-accent: #2563eb;
    --sheet-soft: #eff6ff;
    background: #fff;
    width: 100%;
    aspect-ratio: 210 / 297;
    min-height: 0;
    border: 1px solid #d9e0ea;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(34, 47, 75, 0.11);
    padding: clamp(24px, 4vw, 52px);
    overflow: hidden;
    position: relative;
}

.mfi-sheet[data-theme="blue"] {
    --sheet-accent: #2563eb;
    --sheet-soft: #eff6ff;
}
.mfi-sheet[data-theme="teal"] {
    --sheet-accent: #0f9f8f;
    --sheet-soft: #ebfbf7;
}
.mfi-sheet[data-theme="charcoal"] {
    --sheet-accent: #313846;
    --sheet-soft: #f1f3f5;
}
.mfi-sheet[data-theme="red"] {
    --sheet-accent: #c83d4d;
    --sheet-soft: #fff1f2;
}
.mfi-sheet[data-theme="purple"] {
    --sheet-accent: #7c3aed;
    --sheet-soft: #f5f3ff;
}
.mfi-sheet[data-theme="orange"] {
    --sheet-accent: #ea580c;
    --sheet-soft: #fff7ed;
}
.mfi-sheet[data-theme="green"] {
    --sheet-accent: #16a34a;
    --sheet-soft: #f0fdf4;
}
.mfi-sheet[data-theme="rose"] {
    --sheet-accent: #db2777;
    --sheet-soft: #fdf2f8;
}

.mfi-sheet::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--sheet-accent);
}

.mfi-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    padding-bottom: 62px;
    border-bottom: 1px solid #e5e9ef;
    position: relative;
}

.mfi-doc-type-label {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    min-width: 190px;
    max-width: 52%;
    padding: 7px 18px;
    border: 1px solid color-mix(in srgb, var(--sheet-accent) 20%, #e5e9ef);
    border-radius: 999px;
    background: var(--sheet-soft);
    color: var(--sheet-accent);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.mfi-logo-box {
    width: 145px;
    height: 82px;
    border: 1px dashed #c8d2e0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #fbfcfe;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}

.mfi-logo-box:hover {
    border-color: var(--sheet-accent);
    background: var(--sheet-soft);
}

.mfi-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.mfi-logo-placeholder {
    text-align: center;
    color: #8390a5;
    font-size: 10px;
}

.mfi-logo-placeholder b {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: var(--sheet-soft);
    color: var(--sheet-accent);
    font-size: 20px;
    line-height: 1;
}

.mfi-document-title {
    text-align: left;
    direction: rtl;
}

.mfi-kicker {
    direction: ltr;
    color: #a3aab6;
    font-size: 10px;
    letter-spacing: .19em;
    font-weight: 800;
}

.mfi-title-edit {
    margin-top: 4px;
    min-width: 190px;
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: #2b3140;
    text-align: left;
}

.mfi-editable {
    border-radius: 5px;
    outline: none;
    transition: background .15s ease, box-shadow .15s ease;
    min-height: 1.45em;
    padding: 1px 4px;
    margin-right: -4px;
}

.mfi-editable:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #e5e9ef;
}

.mfi-editable:focus {
    background: var(--sheet-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sheet-accent) 55%, #dbe1ea);
}

.mfi-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 7vw, 100px);
    padding: 34px 0 28px;
}

.mfi-party {
    min-width: 0;
}

.mfi-party-label {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--sheet-soft);
    color: var(--sheet-accent);
    font-weight: 800;
    font-size: 10px;
    margin-bottom: 9px;
}

.mfi-party .mfi-editable {
    display: block;
    color: #657087;
    font-size: 11px;
    margin-bottom: 3px;
}

.mfi-party .mfi-party-name {
    color: #273146;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 6px;
}

.mfi-multiline {
    min-height: 34px;
    white-space: pre-wrap;
}

.mfi-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 26px;
}

.mfi-meta-item {
    padding: 10px 13px;
    border-left: 1px solid #e4e8ef;
}

.mfi-meta-item:last-child {
    border-left: 0;
}

.mfi-meta-item > span {
    display: block;
    color: #7a8495;
    font-size: 9px;
    margin-bottom: 2px;
}

.mfi-meta-item .mfi-editable {
    font-size: 11px;
    font-weight: 800;
    color: #2f3849;
}

.mfi-items-wrap {
    margin-top: 5px;
}

.mfi-items {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    direction: rtl;
}

.mfi-items th {
    height: 48px;
    background: var(--sheet-accent) !important;
    color: #fff !important;
    padding: 8px 9px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

.mfi-items th:first-child {
    border-radius: 0 9px 9px 0;
}

.mfi-items th:last-child {
    border-left: 0;
    border-radius: 9px 0 0 9px;
}

.mfi-items th.mfi-col-desc {
    text-align: right;
    padding-right: 14px;
}

.mfi-th-main {
    display: block;
    white-space: normal;
}

.mfi-th-sub {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
}

.mfi-items td {
    background: #fff !important;
    color: #273146 !important;
    border-bottom: 1px solid #e6e9ef;
    padding: 9px 6px;
    vertical-align: middle;
    font-size: 10px;
}

.mfi-items tbody tr:nth-child(even) td {
    background: #fbfcfe !important;
}

.mfi-items th:nth-child(2),
.mfi-items td:nth-child(2) {
    width: 31%;
    min-width: 0;
}

.mfi-items input {
    width: 100%;
    border: 1px solid transparent;
    background: transparent !important;
    padding: 5px 6px;
    border-radius: 5px;
    outline: none;
    font: inherit;
    color: #30394a;
    text-align: right;
}

.mfi-desc-input {
    min-width: 0;
}

.mfi-items input:hover {
    border-color: #e1e6ed;
    background: #fbfcfd;
}

.mfi-items input:focus {
    border-color: color-mix(in srgb, var(--sheet-accent) 55%, #dbe1ea);
    background: var(--sheet-soft);
}

.mfi-items .mfi-number-input {
    direction: ltr;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.mfi-money-edit,
.mfi-money-pair {
    display: inline-flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.mfi-money-edit {
    width: 100%;
    justify-content: center;
}

.mfi-money-edit .mfi-price-input {
    width: auto;
    min-width: 0;
    max-width: 74%;
    flex: 1 1 auto;
    text-align: left;
}

.mfi-money-number,
.mfi-money-edit .mfi-price-input {
    direction: ltr;
}

.mfi-money-unit {
    direction: rtl;
    flex: 0 0 auto;
    color: inherit;
    font-weight: 700;
}

.mfi-row-total,
.mfi-row-tax,
.mfi-row-grand {
    font-weight: 900;
    white-space: nowrap;
    text-align: left;
    direction: ltr;
}

.mfi-row-tax {
    color: var(--sheet-accent) !important;
    font-weight: 800;
}

.mfi-row-grand {
    color: #172033 !important;
    background: color-mix(in srgb, var(--sheet-accent) 6%, #fff) !important;
    font-weight: 900;
}

.mfi-col-index { width: 4%; }
.mfi-col-desc { width: 31%; }
.mfi-col-qty { width: 8%; }
.mfi-col-price { width: 13%; }
.mfi-col-total { width: 12%; }
.mfi-col-tax { width: 14%; }
.mfi-col-grand { width: 14%; }
.mfi-col-remove { width: 4%; background: var(--sheet-accent) !important; }

.mfi-row-index {
    color: #8c95a5;
    text-align: center;
}

.mfi-remove-row {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a1a8b4;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.mfi-remove-row:hover {
    background: #fff1f2;
    color: #be123c;
}

.mfi-add-row {
    border: 0;
    background: transparent;
    color: var(--sheet-accent);
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    padding: 9px 2px;
    cursor: pointer;
}

.mfi-summary-zone {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, .8fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.mfi-summary-zone > * {
    min-width: 0;
}

.mfi-notes {
    width: 100%;
    min-width: 0;
}

.mfi-notes label {
    display: block;
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    margin: 10px 0 4px;
}

.mfi-notes label:first-child {
    margin-top: 0;
}

.mfi-notes .mfi-editable {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    background: #fafbfc;
    color: #3f4859;
    font-size: 10px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mfi-totals {
    width: 100%;
    min-width: 0;
    background: #f7f8fa;
    border-radius: 10px;
    padding: 12px 15px;
}

.mfi-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    border-bottom: 1px solid #e4e7ec;
    font-size: 10px;
}

.mfi-totals > div:last-child {
    border-bottom: 0;
}

.mfi-totals span {
    color: #667085;
}

.mfi-totals strong {
    color: #273146;
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.mfi-grand-total {
    margin: 8px -7px -4px;
    padding: 3px 8px;
    border-radius: 7px;
    background: #fff;
}

.mfi-grand-total span {
    color: #1e293b;
    font-weight: 900;
}

.mfi-grand-total strong {
    color: var(--sheet-accent);
    font-size: 16px;
}

.mfi-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px;
    border-top: 1px solid #d9dee7;
    padding-top: 13px;
    color: #939baa;
    font-size: 8px;
}

.mfi-toast {
    position: fixed;
    z-index: 999999;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
    background: #1f2937;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 11px;
    box-shadow: 0 12px 35px rgba(0,0,0,.22);
}

@media (max-width: 1000px) {
    .mfi-breakout {
        width: min(100%, calc(100vw - 20px));
    }

    .mfi-workspace {
        grid-template-columns: 1fr;
    }

    .mfi-toolbar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }

    .mfi-toolbar__head,
    .mfi-toolbar-actions,
    .mfi-toolbar-note {
        grid-column: 1 / -1;
    }

    .mfi-sheet {
        min-height: 0;
    }

    .mfi-upgrade {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mfi-upgrade__cta {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .mfi-tool-page {
        padding-top: 18px;
    }

    .mfi-tool-page-shell {
        width: 100%;
        padding: 0 8px;
    }

    .mfi-breakout {
        width: 100%;
        max-width: 100%;
        margin-bottom: 28px;
    }

    .mfi-page-head {
        display: block;
        padding: 0 8px;
    }

    .mfi-privacy-pill {
        display: inline-flex;
        margin-top: 10px;
    }

    .mfi-toolbar {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .mfi-toolbar__head,
    .mfi-toolbar-actions,
    .mfi-toolbar-note {
        grid-column: auto;
    }

    .mfi-sheet {
        border-radius: 10px;
        padding: 20px 14px;
        aspect-ratio: auto;
        min-height: auto;
        overflow: visible;
    }

    .mfi-sheet-head {
        gap: 14px;
    }

    .mfi-logo-box {
        width: 105px;
        height: 65px;
    }

    .mfi-title-edit {
        min-width: 0;
        font-size: 29px;
    }

    .mfi-parties {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0 20px;
    }

    .mfi-meta {
        grid-template-columns: 1fr;
    }

    .mfi-meta-item {
        border-left: 0;
        border-bottom: 1px solid #e4e8ef;
    }

    .mfi-meta-item:last-child {
        border-bottom: 0;
    }

    .mfi-items-wrap {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .mfi-items {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .mfi-items thead {
        display: none;
    }

    .mfi-items tbody {
        display: grid;
        gap: 12px;
        width: 100%;
    }

    .mfi-items tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        padding: 14px 12px 12px;
        border: 1px solid #e1e6ed;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(31, 42, 68, .04);
    }

    .mfi-items td,
    .mfi-items tbody tr:nth-child(even) td {
        display: flex;
        min-width: 0;
        width: auto !important;
        padding: 0;
        border: 0;
        background: transparent !important;
        color: #273146 !important;
        flex-direction: column;
        align-items: stretch;
        text-align: right;
        direction: rtl;
    }

    .mfi-items td::before {
        display: block;
        margin-bottom: 4px;
        color: #7a8495;
        font-size: 9px;
        font-weight: 800;
        line-height: 1.4;
    }

    .mfi-items td:nth-child(1)::before { content: "ردیف"; }
    .mfi-items td:nth-child(2)::before { content: "شرح کالا / خدمت"; }
    .mfi-items td:nth-child(3)::before { content: "تعداد"; }
    .mfi-items td:nth-child(4)::before { content: "مبلغ واحد"; }
    .mfi-items td:nth-child(5)::before { content: "مبلغ"; }
    .mfi-items td:nth-child(6)::before { content: "مالیات"; }
    .mfi-items td:nth-child(7)::before { content: "جمع کل"; }

    .mfi-items td:nth-child(2) {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .mfi-items td:nth-child(7) {
        grid-column: 1 / -1;
        padding-top: 9px;
        border-top: 1px dashed #e3e7ed;
    }

    .mfi-items td:nth-child(8) {
        position: absolute;
        top: 9px;
        left: 9px;
        width: 30px !important;
    }

    .mfi-items td:nth-child(8)::before {
        display: none;
    }

    .mfi-row-index {
        min-height: 30px;
        justify-content: center;
        padding: 5px 8px !important;
        border-radius: 8px !important;
        background: #f7f8fa !important;
        font-weight: 900;
    }

    .mfi-items input {
        min-height: 38px;
        padding: 7px 9px;
        border: 1px solid #e1e6ed;
        border-radius: 8px;
        background: #fbfcfe !important;
    }

    .mfi-items .mfi-number-input {
        text-align: right;
    }

    .mfi-money-edit {
        min-height: 38px;
        justify-content: flex-start;
        padding: 0 8px;
        border: 1px solid #e1e6ed;
        border-radius: 8px;
        background: #fbfcfe;
    }

    .mfi-money-edit .mfi-price-input {
        min-height: 36px;
        padding: 6px 0;
        border: 0;
        background: transparent !important;
    }

    .mfi-row-total,
    .mfi-row-tax,
    .mfi-row-grand {
        min-height: 38px;
        justify-content: center;
        padding: 8px 9px !important;
        border-radius: 8px !important;
        background: #f7f8fa !important;
        text-align: right;
        direction: rtl;
    }

    .mfi-row-grand {
        background: var(--sheet-soft) !important;
        color: #172033 !important;
    }

    .mfi-money-pair {
        justify-content: flex-start;
        width: 100%;
    }

    .mfi-add-row {
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 11px 12px;
        border: 1px dashed color-mix(in srgb, var(--sheet-accent) 35%, #dbe1ea);
        border-radius: 9px;
        background: var(--sheet-soft);
        text-align: center;
    }

    .mfi-summary-zone {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mfi-sheet-footer {
        margin-top: 38px;
    }

    .mfi-upgrade {
        padding: 18px;
        border-radius: 13px;
    }

    .mfi-upgrade__features {
        grid-template-columns: 1fr;
    }

    .mfi-upgrade__cta {
        width: 100%;
    }
}

.mfi-print-root {
    display: none;
}

.mfi-print-root,
.mfi-print-root * {
    box-sizing: border-box !important;
}

.mfi-print-input {
    display: block;
    min-height: 1.4em;
    padding: 5px 6px;
    color: #30394a;
    font: inherit;
}

.mfi-print-input.mfi-number-input {
    direction: ltr;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: 210mm !important;
        min-height: 296mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body > * {
        display: none !important;
    }

    body > .mfi-print-root {
        display: block !important;
        width: 210mm !important;
        min-height: 296mm !important;
        margin: 0 !important;
        padding: 0 !important;
        direction: rtl !important;
        background: #fff !important;
        color: #172033 !important;
        font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .mfi-print-root .mfi-no-print,
    .mfi-print-root .mfi-no-print * {
        display: none !important;
    }

    .mfi-print-root .mfi-sheet {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        inset: auto !important;
        width: 210mm !important;
        min-height: 296mm !important;
        max-width: 210mm !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        padding: 12mm 13mm 9mm !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #172033 !important;
    }

    .mfi-print-root .mfi-sheet::before {
        height: 2.2mm !important;
        background: var(--sheet-accent) !important;
    }

    .mfi-print-root .mfi-sheet-head {
        padding-bottom: 13mm !important;
        border-bottom: .25mm solid #d9dee7 !important;
        break-inside: avoid !important;
    }

    .mfi-print-root .mfi-doc-type-label {
        bottom: 3mm !important;
        min-width: 42mm !important;
        max-width: 70mm !important;
        padding: 1.5mm 5mm !important;
        border-radius: 99mm !important;
        font-size: 8pt !important;
    }

    .mfi-print-root .mfi-logo-box {
        width: 38mm !important;
        height: 21mm !important;
        border: 0 !important;
        background: transparent !important;
    }

    .mfi-print-root .mfi-logo-placeholder {
        display: none !important;
    }

    .mfi-print-root .mfi-kicker {
        font-size: 7pt !important;
        letter-spacing: .16em !important;
    }

    .mfi-print-root .mfi-title-edit {
        font-size: 30pt !important;
        line-height: 1.05 !important;
    }

    .mfi-print-root .mfi-parties {
        grid-template-columns: 1fr 1fr !important;
        gap: 15mm !important;
        padding: 7mm 0 6mm !important;
        break-inside: avoid !important;
    }

    .mfi-print-root .mfi-party-label {
        padding: 1.1mm 2.4mm !important;
        font-size: 7.5pt !important;
    }

    .mfi-print-root .mfi-party .mfi-party-name {
        font-size: 11pt !important;
    }

    .mfi-print-root .mfi-party .mfi-editable {
        font-size: 8.2pt !important;
    }

    .mfi-print-root .mfi-meta {
        grid-template-columns: repeat(3, 1fr) !important;
        margin-bottom: 6mm !important;
        border-color: #dbe1e9 !important;
        border-radius: 2.5mm !important;
        break-inside: avoid !important;
    }

    .mfi-print-root .mfi-meta-item {
        padding: 2.7mm 3.2mm !important;
    }

    .mfi-print-root .mfi-meta-item > span {
        font-size: 7pt !important;
    }

    .mfi-print-root .mfi-meta-item .mfi-editable {
        font-size: 8.5pt !important;
    }

    .mfi-print-root .mfi-items-wrap {
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mfi-print-root .mfi-items {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .mfi-print-root .mfi-items thead {
        display: table-header-group !important;
    }

    .mfi-print-root .mfi-items tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .mfi-print-root .mfi-items th {
        height: 12mm !important;
        padding: 2mm 1.8mm !important;
        background: var(--sheet-accent) !important;
        color: #fff !important;
        border: 0 !important;
        border-left: .2mm solid rgba(255, 255, 255, .25) !important;
        box-shadow: inset 0 -.5mm 0 rgba(0, 0, 0, .08) !important;
        font-size: 7.4pt !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .mfi-print-root .mfi-items th.mfi-col-desc {
        text-align: right !important;
        padding-right: 3mm !important;
    }

    .mfi-print-root .mfi-th-sub {
        margin-top: 1mm !important;
        color: rgba(255, 255, 255, .82) !important;
        font-size: 6.5pt !important;
    }

    .mfi-print-root .mfi-items th:first-child {
        border-radius: 0 2mm 2mm 0 !important;
    }

    .mfi-print-root .mfi-items th:last-child {
        border-radius: 2mm 0 0 2mm !important;
    }

    .mfi-print-root .mfi-items td {
        padding: 2.5mm 2.2mm !important;
        background: #fff !important;
        color: #172033 !important;
        border: 0 !important;
        border-bottom: .2mm solid #e3e7ed !important;
        font-size: 8pt !important;
    }

    .mfi-print-root .mfi-items tbody tr:nth-child(even) td {
        background: #fafbfc !important;
    }

    .mfi-print-root .mfi-items th:nth-child(2),
    .mfi-print-root .mfi-items td:nth-child(2) {
        width: 34% !important;
        min-width: 0 !important;
    }

    .mfi-print-root .mfi-col-index {
        width: 5% !important;
    }

    .mfi-print-root .mfi-col-qty {
        width: 8% !important;
    }

    .mfi-print-root .mfi-col-price {
        width: 13% !important;
    }

    .mfi-print-root .mfi-col-total {
        width: 13% !important;
    }

    .mfi-print-root .mfi-col-tax {
        width: 14% !important;
    }

    .mfi-print-root .mfi-col-grand {
        width: 13% !important;
    }

    .mfi-print-root .mfi-row-grand {
        background: color-mix(in srgb, var(--sheet-accent) 6%, #fff) !important;
        font-weight: 900 !important;
    }

    .mfi-print-root .mfi-desc-input,
    .mfi-print-root .mfi-print-input {
        min-width: 0 !important;
    }

    .mfi-print-root .mfi-editable,
    .mfi-print-root .mfi-print-input {
        background: transparent !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    .mfi-print-root .mfi-summary-zone {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 57mm !important;
        gap: 8mm !important;
        align-items: start !important;
        margin-top: 7mm !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .mfi-print-root .mfi-notes label {
        margin: 2.6mm 0 1mm !important;
        font-size: 7pt !important;
    }

    .mfi-print-root .mfi-notes label:first-child {
        margin-top: 0 !important;
    }

    .mfi-print-root .mfi-notes .mfi-editable {
        min-height: 8mm !important;
        padding: 2mm 2.5mm !important;
        border: .2mm solid #e1e6ed !important;
        border-radius: 2mm !important;
        background: #fbfcfe !important;
        font-size: 7.8pt !important;
    }

    .mfi-print-root .mfi-totals {
        width: 100% !important;
        padding: 3mm 4mm !important;
        border: .2mm solid #e1e6ed !important;
        border-radius: 2.5mm !important;
        background: #f8fafc !important;
    }

    .mfi-print-root .mfi-totals > div {
        min-height: 8mm !important;
        font-size: 7.8pt !important;
    }

    .mfi-print-root .mfi-grand-total {
        background: #fff !important;
    }

    .mfi-print-root .mfi-grand-total strong {
        color: var(--sheet-accent) !important;
        font-size: 12pt !important;
    }

    .mfi-print-root .mfi-sheet-footer {
        margin-top: auto !important;
        padding-top: 4mm !important;
        border-top: .25mm solid #d9dee7 !important;
        font-size: 6.5pt !important;
        break-inside: avoid !important;
    }
}
