/* Scoped styles for the illustrative management features on the public landing. */
.mf-card {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 2rem;
    background: #fff;
    color: #10251b;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .09);
}
.mf-card > * { min-width: 0; }
.mf-card .mf-copy { grid-column: 2; grid-row: 1; }
.mf-card .mf-visual { grid-column: 1; grid-row: 1; }
.mf-card--reverse .mf-copy { grid-column: 1; }
.mf-card--reverse .mf-visual { grid-column: 2; }
.mf-eyebrow {
    margin: 0 0 .75rem;
    color: #168451;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.6;
    text-transform: uppercase;
}
.mf-copy h3 {
    margin: 0;
    color: #10251b;
    font-size: clamp(1.75rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.14;
}
.mf-copy > p:not(.mf-eyebrow) {
    margin: 1.05rem 0 0;
    color: #5d6c62;
    font-size: 1.025rem;
    line-height: 1.85;
}
.mf-takeaway { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.35rem; color: #214b35; font-size: .85rem; font-weight: 700; line-height: 1.65; }
.mf-takeaway-mark { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: .06rem; flex: 0 0 auto; border-radius: 50%; background: #e2f5e9; color: #168451; font-size: .75rem; }
.mf-visual {
    margin: 0;
    padding: 1.4rem 1.25rem .8rem;
    border: 1px solid #e0eee5;
    border-radius: 1.5rem;
    background: radial-gradient(ellipse at 85% 0%, #d4f3e2 0%, transparent 65%), linear-gradient(135deg, #eff8f2, #f8fbf9);
    color: #10251b;
}
.mf-visual figcaption { margin-top: .8rem; color: #6a7f71; font-size: .625rem; font-weight: 600; letter-spacing: .025em; line-height: 1.5; text-align: center; }
.mf-window { min-width: 0; overflow: hidden; border: 1px solid #dce8e0; border-radius: .85rem; background: #fff; box-shadow: 0 14px 35px rgba(27, 72, 45, .08); }
.mf-window-bar { display: flex; align-items: center; gap: .85rem; padding: .7rem .95rem; border-bottom: 1px solid #e8eeea; background: #fcfefd; color: #5d7265; font-size: .64rem; font-weight: 600; }
.mf-brand { display: inline-flex; align-items: baseline; gap: .1rem; color: #10251b; font-size: 1.1rem; font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.mf-brand > span { color: #22a066; font-size: .4rem; }
.mf-window-dots { margin-left: auto; color: #a8b9ae; font-size: .8rem; letter-spacing: .1em; }
.mf-window-body { padding: 1rem; }
.mf-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.mf-panel-heading > div { min-width: 0; }
.mf-panel-heading strong { display: block; font-size: .95rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.35; }
.mf-label { display: block; margin-bottom: .2rem; color: #75867a; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mf-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; flex-shrink: 0; padding: .25rem .45rem; border: 1px solid transparent; border-radius: .35rem; font-size: .625rem; font-weight: 750; line-height: 1.35; white-space: nowrap; }
.mf-status--green { border-color: #d1ebda; background: #edf8f0; color: #227543; }
.mf-status--amber { border-color: #f2dfa8; background: #fff8e5; color: #946010; }
.mf-status--neutral { border-color: #e1e7e3; background: #f2f5f3; color: #758179; }
.mf-status--overdue { border-color: #edcebe; background: #fff1e9; color: #a25129; }
.mf-customer-line { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; padding: .65rem; border: 1px solid #e6ede8; border-radius: .5rem; background: #f9fbfa; }
.mf-avatar { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; flex: 0 0 auto; border-radius: 50%; background: #e2f2e8; color: #387c51; font-size: .6rem; font-weight: 800; }
.mf-customer-line strong { display: block; font-size: .75rem; font-weight: 750; }
.mf-customer-line div > span { display: block; color: #6b7e71; font-size: .625rem; }
.mf-sale-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .1rem; border-bottom: 1px solid #edf1ee; font-size: .65rem; }
.mf-sale-item strong, .mf-sale-item span { display: block; }
.mf-sale-item strong { font-size: .72rem; font-weight: 700; }
.mf-sale-item span { margin-top: .18rem; color: #728277; font-size: .625rem; }
.mf-sale-item b { flex: 0 0 auto; font-size: .72rem; font-weight: 750; }
.mf-total-line { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .9rem; font-size: .65rem; }
.mf-total-line strong { font-size: 1.15rem; font-weight: 850; letter-spacing: -.04em; }
.mf-sales-composition { position: relative; padding: 0 2rem 7.75rem 0; }
.mf-sale-window { position: relative; }
.mf-receipt { position: absolute; right: -.15rem; bottom: 0; width: 11.5rem; padding: .85rem; border: 1px solid #dce6df; border-radius: .65rem; background: #fff; box-shadow: 0 12px 25px rgba(27, 72, 45, .12); transform: rotate(3deg); }
.mf-receipt-heading { display: flex; align-items: center; gap: .55rem; }
.mf-invoice-letter { display: grid; place-items: center; width: 1.8rem; height: 2rem; flex-shrink: 0; border: 1px solid #bfcfc4; border-radius: .25rem; font-size: 1.15rem; font-weight: 800; }
.mf-receipt-heading strong { display: block; font-size: .73rem; font-weight: 800; }
.mf-receipt-heading div > span { display: block; margin-top: .1rem; color: #74867a; font-size: .58rem; }
.mf-receipt-rule { margin: .65rem 0; border-top: 1px dashed #d3dfd7; }
.mf-receipt-total { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .65rem; }
.mf-receipt-total strong { font-weight: 800; }
.mf-receipt p { margin: .5rem 0 0; color: #74867a; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.mf-inventory-head, .mf-inventory-row { display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem 4.75rem; align-items: center; gap: .5rem; }
.mf-inventory-head { padding: 0 .45rem .5rem; color: #728377; font-size: .6rem; font-weight: 750; }
.mf-inventory-head > :nth-child(2) { text-align: center; }
.mf-inventory-head > :last-child { text-align: right; }
.mf-inventory-row { padding: .8rem .45rem; border-top: 1px solid #eaf0ec; font-size: .67rem; }
.mf-inventory-row strong { display: block; font-size: .72rem; font-weight: 750; }
.mf-inventory-row div > span { display: block; margin-top: .15rem; color: #74867a; font-size: .6rem; }
.mf-inventory-row b { font-size: .88rem; text-align: center; }
.mf-inventory-row small { color: #74867a; font-size: .6rem; font-weight: 500; }
.mf-inventory-row .mf-status { justify-self: end; }
.mf-inventory-row--low { border-radius: .35rem; background: #fffbf0; }
.mf-stock-notice { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; padding: .65rem; border: 1px solid #efdfb3; border-radius: .5rem; background: #fffaf0; }
.mf-notice-icon { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; flex-shrink: 0; border: 1px solid #c5983b; border-radius: 50%; color: #9b711e; font-size: .7rem; font-weight: 800; }
.mf-stock-notice strong { display: block; color: #856124; font-size: .7rem; font-weight: 750; }
.mf-stock-notice div > span { display: block; margin-top: .15rem; color: #927237; font-size: .625rem; }
.mf-client-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.mf-avatar--large { width: 2.5rem; height: 2.5rem; font-size: .8rem; }
.mf-client-heading strong { display: block; font-size: .95rem; font-weight: 800; }
.mf-client-heading div > span { display: block; margin-top: .1rem; color: #728277; font-size: .625rem; }
.mf-client-dot { width: .4rem; height: .4rem; margin-left: auto; flex-shrink: 0; border-radius: 50%; background: #22a066; box-shadow: 0 0 0 .25rem #eef8f1; }
.mf-balance-card { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; padding: 1rem; border-radius: .65rem; background: linear-gradient(110deg, #123c26, #1d5637); color: #fff; }
.mf-balance-card div > span { display: block; margin-bottom: .35rem; color: #b9d6c4; font-size: .625rem; }
.mf-balance-card strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.mf-balance-card > span { padding-bottom: .2rem; color: #aacfb7; font-size: .6rem; }
.mf-history-heading { margin: 1rem 0 .25rem; color: #738378; font-size: .6rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.mf-history-row { display: flex; align-items: center; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid #edf1ee; }
.mf-history-row:last-child { border: 0; padding-bottom: .2rem; }
.mf-movement-icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: 0 0 auto; border-radius: .5rem; background: #f2f5f3; color: #718478; font-size: .8rem; font-weight: 700; }
.mf-movement-icon--paid { background: #e9f6ed; color: #25874d; }
.mf-history-row > div { min-width: 0; }
.mf-history-row strong { display: block; font-size: .7rem; font-weight: 750; }
.mf-history-row div > span { display: block; margin-top: .2rem; color: #74867a; font-size: .6rem; }
.mf-history-row b { margin-left: auto; flex-shrink: 0; font-size: .72rem; font-weight: 800; }
.mf-positive { color: #21834b; }
.mf-date-label { color: #7d8b82; font-size: .6rem; font-weight: 650; }
.mf-payment-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; padding: .85rem; border: 1px solid #eee4ca; border-radius: .6rem; background: #fffbf2; }
.mf-payment-summary div > span { display: block; margin-bottom: .3rem; color: #927237; font-size: .625rem; }
.mf-payment-summary strong { display: block; color: #6f5524; font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; }
.mf-payment-summary > span { padding-bottom: .15rem; color: #927237; font-size: .6rem; }
.mf-payment-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .8rem .1rem; border-bottom: 1px solid #edf1ee; }
.mf-payment-row:last-child { border: 0; padding-bottom: .1rem; }
.mf-payment-row strong { display: block; font-size: .75rem; font-weight: 750; }
.mf-payment-row div:first-child > span { display: block; margin-top: .2rem; color: #74867a; font-size: .625rem; }
.mf-payment-row div:last-child { flex-shrink: 0; text-align: right; }
.mf-payment-row b { display: block; margin-bottom: .2rem; font-size: .7rem; font-weight: 750; }
.mf-report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-bottom: 1rem; }
.mf-report-metrics > div { min-width: 0; padding: .65rem .5rem; border: 1px solid #e5ede7; border-radius: .5rem; background: #fcfefd; }
.mf-report-metrics span { display: block; margin-bottom: .3rem; color: #728277; font-size: .6rem; }
.mf-report-metrics strong { display: block; font-size: .83rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.mf-visual--reports { background: radial-gradient(ellipse at 85% 0%, #cbead8 0%, transparent 65%), linear-gradient(135deg, #eaf5ee, #f8fbf9); }
.mf-visual--reports .mf-window { border-color: #cfdfd4; box-shadow: 0 16px 35px rgba(16, 55, 32, .1); }
.mf-visual--reports .mf-window-bar { border-bottom-color: #214632; background: #102f20; color: #c3d9ca; }
.mf-visual--reports .mf-brand { color: #fff; }
.mf-visual--reports .mf-brand > span { color: #2ecc8a; }
.mf-visual--reports .mf-window-dots { color: #7fa58c; }
.mf-report-metrics > div { position: relative; background: #f7faf8; }
.mf-report-metrics > div::before { position: absolute; top: .6rem; right: .5rem; width: .25rem; height: .25rem; border-radius: 50%; background: #22a066; content: ''; }
.mf-report-metrics > div:nth-child(2)::before { background: #b39161; }
.mf-report-metrics > div:last-child { border-color: #153c29; background: linear-gradient(120deg, #153c29, #23553a); }
.mf-report-metrics > div:last-child::before { background: #76d5a0; }
.mf-report-metrics > div:last-child span { color: #c4dfce; }
.mf-report-metrics > div:last-child strong { color: #fff; }
.mf-report-metrics strong { font-variant-numeric: tabular-nums; }
.mf-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.mf-chart-heading strong { font-size: .7rem; font-weight: 750; }
.mf-chart-heading span { color: #74867a; font-size: .6rem; }
.mf-chart-heading .mf-report-chart-growth { color: #1b8450; font-weight: 750; white-space: nowrap; }
.mf-chart { display: block; width: 100%; height: auto; overflow: visible; }
.mf-report-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; padding-top: .65rem; border-top: 1px solid #e8eeea; font-size: .6rem; }
.mf-report-footer > span { display: inline-flex; align-items: center; gap: .4rem; color: #6f8075; }
.mf-report-footer i { width: .35rem; height: .35rem; border-radius: 50%; background: #c5983b; }
.mf-report-footer strong { padding-inline: .4rem; border-radius: .25rem; background: #fbf4e4; color: #947027; font-size: .6rem; font-weight: 750; }
@media (max-width: 1000px) and (min-width: 768px) {
    .mf-card { gap: 1.5rem; padding: 1.5rem; }
    .mf-visual { padding-inline: .85rem; }
    .mf-window-body { padding: .8rem; }
    .mf-inventory-head, .mf-inventory-row { grid-template-columns: minmax(0, 1fr) 1.8rem 4.65rem; gap: .3rem; }
    .mf-status { padding-inline: .35rem; }
    .mf-report-metrics { gap: .25rem; }
    .mf-report-metrics > div { padding-inline: .35rem; }
    .mf-report-metrics strong { font-size: .7rem; }
    .mf-sales-composition { padding-right: 1rem; }
}
@media (max-width: 767px) {
    .mf-card { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem; border-radius: 1.5rem; }
    .mf-card .mf-copy, .mf-card--reverse .mf-copy { grid-column: 1; grid-row: 1; }
    .mf-card .mf-visual, .mf-card--reverse .mf-visual { grid-column: 1; grid-row: 2; }
    .mf-copy h3 { font-size: 1.85rem; }
    .mf-copy > p:not(.mf-eyebrow) { font-size: 1rem; line-height: 1.8; }
    .mf-takeaway { margin-top: 1rem; font-size: .8rem; }
    .mf-visual { padding: 1rem .85rem .65rem; border-radius: 1rem; }
    .mf-sales-composition { padding-right: 1.5rem; }
    .mf-window-body { padding: .9rem; }
    .mf-window-bar { padding: .65rem .8rem; }
    .mf-inventory-head, .mf-inventory-row { grid-template-columns: minmax(0, 1fr) 2.1rem 4.7rem; gap: .35rem; }
    .mf-report-metrics strong { font-size: .79rem; }
}
@media (max-width: 390px) {
    .mf-card { padding: 1.1rem .9rem; }
    .mf-copy h3 { font-size: 1.7rem; }
    .mf-visual { padding-inline: .55rem; }
    .mf-window-body { padding: .75rem; }
    .mf-window-bar { gap: .6rem; font-size: .6rem; }
    .mf-panel-heading strong { font-size: .84rem; }
    .mf-status { padding-inline: .3rem; }
    .mf-inventory-head, .mf-inventory-row { grid-template-columns: minmax(0, 1fr) 1.8rem 4.6rem; gap: .25rem; padding-inline: .2rem; }
    .mf-inventory-row strong { font-size: .67rem; }
    .mf-stock-notice { padding: .55rem .45rem; gap: .4rem; }
    .mf-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
    .mf-report-metrics > div { padding-inline: .55rem; }
    .mf-report-metrics > div:last-child { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: .5rem; }
    .mf-report-metrics > div:last-child span { margin: 0; }
    .mf-report-metrics strong { font-size: .85rem; }
    .mf-history-row { gap: .4rem; }
    .mf-history-row strong { font-size: .65rem; }
    .mf-history-row b { font-size: .67rem; }
    .mf-sales-composition { padding-right: 0; }
    .mf-sale-item b { font-size: .67rem; }
    .mf-total-line { flex-wrap: wrap; }
    .mf-client-heading strong { font-size: .88rem; }
    .mf-balance-card { padding: .8rem; }
    .mf-balance-card strong { font-size: 1.4rem; }
    .mf-balance-card > span { max-width: 3.4rem; font-size: .6rem; line-height: 1.5; text-align: right; }
}
