.mfi-breakout,
.mfi-breakout * {
    box-sizing: border-box;
}

.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: Shabnam, Vazirmatn, Tahoma, Arial, sans-serif;
    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: 220px minmax(0, 1040px);
    gap: 24px;
    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-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-note {
    margin-top: 15px;
    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-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::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: 28px;
    border-bottom: 1px solid #e5e9ef;
}

.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 {
    background: var(--sheet-accent) !important;
    color: #fff !important;
    padding: 10px 9px;
    font-size: 9px;
    font-weight: 800;
    text-align: right;
}

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

.mfi-items th:nth-last-child(2) {
    border-radius: 7px 0 0 7px;
}

.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: auto;
    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-row-total {
    font-weight: 900;
    white-space: nowrap;
    text-align: left;
    direction: ltr;
}

.mfi-col-index { width: 32px; }
.mfi-col-qty { width: 66px; }
.mfi-col-price { width: 102px; }
.mfi-col-total { width: 112px; }
.mfi-col-remove { width: 28px; background: #fff !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;
    }
}

@media (max-width: 720px) {
    .mfi-breakout {
        width: calc(100vw - 12px);
        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;
    }

    .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-x: auto;
        margin-left: -8px;
        margin-right: -8px;
        padding: 0 8px;
    }

    .mfi-items {
        min-width: 760px;
    }

    .mfi-items th:nth-child(2),
    .mfi-items td:nth-child(2) {
        min-width: 260px;
    }

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

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

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

.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: 297mm !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: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        direction: rtl !important;
        background: #fff !important;
        color: #172033 !important;
        font-family: Shabnam, 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: 297mm !important;
        max-width: 210mm !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        padding: 14mm 15mm 11mm !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: 6mm !important;
        border-bottom: .25mm solid #d9dee7 !important;
        break-inside: avoid !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 {
        padding: 2.4mm 2.2mm !important;
        background: var(--sheet-accent) !important;
        color: #fff !important;
        border: 0 !important;
        font-size: 7.8pt !important;
        font-weight: 800 !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: auto !important;
        min-width: 0 !important;
    }

    .mfi-print-root .mfi-col-index {
        width: 7mm !important;
    }

    .mfi-print-root .mfi-col-qty {
        width: 15mm !important;
    }

    .mfi-print-root .mfi-col-price {
        width: 27mm !important;
    }

    .mfi-print-root .mfi-col-total {
        width: 30mm !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;
    }
}
