.mf-app,
.mf-modal--dash {
    --mf-accent: #0d9488;
    --mf-accent-dark: #0f766e;
    --mf-accent-soft: rgba(13, 148, 136, 0.1);
    --mf-accent-ring: rgba(13, 148, 136, 0.28);
    --mf-warn: #d97706;
    --mf-full: #dc2626;
    --mf-radius: 14px;
    --mf-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mf-page {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vh, 22px);
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
    flex: 1;
    min-height: calc(100vh - 64px);
}

.mf-app .page-content.mf-page {
    padding: clamp(16px, 2vh, 28px) clamp(14px, 2.2vw, 36px);
}

.mf-app .main-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.mf-app .mf-topbar {
    flex-shrink: 0;
    width: 100%;
}

.card-panel {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--mf-radius);
    padding: 18px 20px;
    box-shadow: var(--mf-shadow);
}

.mf-brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mf-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(145deg, var(--mf-accent), #14b8a6);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}

.mf-topbar h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mf-subtitle {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--text-secondary, #64748b);
}

.mf-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding: 22px 24px;
    border-color: var(--mf-accent-ring);
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.07) 0%, transparent 55%),
        var(--bg-card, #fff);
}

@media (max-width: 900px) {
    .mf-hero {
        grid-template-columns: 1fr;
    }
}

.mf-hero__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-accent-dark);
    margin-bottom: 8px;
}

.mf-hero__metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.mf-hero__metric strong {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary, #0f172a);
}

.mf-hero__cap {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.mf-hero__sub {
    margin: 10px 0 14px;
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    max-width: 56ch;
}

.mf-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-content: center;
}

@media (max-width: 640px) {
    .mf-hero__stats {
        grid-template-columns: 1fr;
    }
}

.mf-hero-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
}

.mf-hero-stat i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--mf-accent-soft);
    color: var(--mf-accent);
    flex-shrink: 0;
}

.mf-hero-stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #64748b);
    margin-bottom: 4px;
}

.mf-hero-stat strong {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.mf-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mf-progress--lg {
    height: 12px;
    max-width: 420px;
}

.mf-progress__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mf-accent), #2dd4bf);
    transition: width 0.4s ease;
}

.mf-progress__bar.is-warn {
    background: linear-gradient(90deg, var(--mf-warn), #fbbf24);
}

.mf-progress__bar.is-full {
    background: linear-gradient(90deg, var(--mf-full), #f87171);
}

.mf-progress--mini {
    height: 5px;
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.06);
}

.mf-config.card-panel {
    padding: 12px 16px;
}

.mf-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.mf-config-head .mf-section-title {
    margin: 0;
    font-size: 0.95rem;
}

.mf-config-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #64748b);
    font-size: 0.78rem;
    cursor: pointer;
    border-radius: 8px;
}

.mf-config-toggle:hover {
    background: var(--mf-accent-soft);
    color: var(--mf-accent-dark);
}

.mf-config-body.is-collapsed {
    display: none;
}

.mf-config-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border, #e2e8f0);
}

.mf-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mf-field--inline > span {
    font-size: 0.76rem;
    white-space: nowrap;
}

.mf-input-wrap--compact input {
    width: 4.5rem;
    padding: 6px 8px;
    font-size: 0.86rem;
    border-radius: 8px 0 0 8px;
}

.mf-input-wrap--compact .mf-input-suffix {
    padding: 0 8px;
    font-size: 0.72rem;
    border-radius: 0 8px 8px 0;
}

.mf-config-hint {
    flex: 1;
    min-width: 140px;
    font-size: 0.76rem;
    line-height: 1.35;
}

.mf-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

@media (max-width: 720px) {
    .mf-config-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mf-config-actions {
        margin-left: 0;
        width: 100%;
    }

    .mf-config-actions .mf-btn {
        flex: 1;
        justify-content: center;
    }
}

.mf-config-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .mf-config-groups {
        grid-template-columns: 1fr;
    }
}

.mf-config-group {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
}

.mf-config-group__title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mf-accent-dark);
}

.mf-config-group__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 520px) {
    .mf-config-group__fields {
        grid-template-columns: 1fr;
    }
}

.mf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mf-field > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.mf-field input,
.mf-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-input, #fff);
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mf-field select {
    cursor: pointer;
    font-weight: 600;
}

.mf-field input:focus,
.mf-field select:focus {
    outline: none;
    border-color: var(--mf-accent);
    box-shadow: 0 0 0 3px var(--mf-accent-soft);
}

.mf-input-wrap {
    display: flex;
    align-items: stretch;
}

.mf-input-wrap input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
    min-width: 0;
}

.mf-input-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    background: var(--border, #e2e8f0);
    border: 1px solid var(--border, #e2e8f0);
    border-left: none;
    border-radius: 0 10px 10px 0;
}


.mf-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    flex: 1;
    min-width: 200px;
}

.mf-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.12s, box-shadow 0.12s;
}

.mf-btn:active {
    transform: scale(0.98);
}

.mf-btn--primary {
    background: linear-gradient(135deg, var(--mf-accent), #14b8a6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.mf-btn--primary:hover {
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.mf-btn--ghost {
    background: var(--bg-card, #fff);
    border-color: var(--border, #e2e8f0);
    color: var(--text-primary, #0f172a);
}

.mf-btn--ghost:hover {
    border-color: var(--mf-accent);
    background: var(--mf-accent-soft);
}

.mf-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mf-section-title i {
    color: var(--mf-accent);
}

.mf-panel-desc {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}

.mf-workspace {
    display: grid;
    grid-template-columns: clamp(280px, 24vw, 360px) minmax(0, 1fr);
    gap: clamp(14px, 1.5vw, 20px);
    align-items: stretch;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.mf-dias-panel,
.mf-detail-panel {
    min-width: 0;
}

.mf-dias-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

@media (max-width: 1024px) {
    .mf-workspace {
        grid-template-columns: 1fr;
    }

    .mf-dias-panel {
        max-height: none;
    }
}

.mf-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mf-panel-head--table {
    flex-wrap: wrap;
}

.mf-panel-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mf-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg-body, #f1f5f9);
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
}

.mf-badge-day {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mf-accent-soft);
    color: var(--mf-accent-dark);
    border: 1px solid var(--mf-accent-ring);
}

.mf-dias-search,
.mf-table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-body, #f8fafc);
    margin-bottom: 12px;
}

.mf-table-search {
    margin-bottom: 0;
    min-width: 200px;
}

.mf-dias-search input,
.mf-table-search input {
    border: none;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    outline: none;
}

.mf-dias-search i,
.mf-table-search i {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
}

.mf-dias-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 160px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.mf-dia-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-card, #fff);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.mf-dia-btn:hover {
    border-color: var(--mf-accent);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}

.mf-dia-btn.is-active {
    border-color: var(--mf-accent);
    background: var(--mf-accent-soft);
    box-shadow: inset 0 0 0 1px var(--mf-accent-ring);
}

.mf-dia-btn.is-today {
    border-left: 4px solid var(--mf-accent);
    padding-left: 11px;
}

.mf-dia-btn.is-full:not(.is-active) {
    background: rgba(254, 242, 242, 0.5);
}

.mf-dia-btn__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mf-dia-btn__row > div:first-child {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.mf-dia-btn__date {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
}

.mf-dia-btn__tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--mf-accent-soft);
    color: var(--mf-accent-dark);
}

.mf-dia-btn__tag.is-full {
    background: rgba(254, 226, 226, 0.9);
    color: var(--mf-full);
}

.mf-dia-btn__count {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 5.75rem;
    text-align: right;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.mf-dia-btn__count.is-full {
    color: var(--mf-full);
}

.mf-dia-btn__meta {
    margin-top: 4px;
    font-size: 0.76rem;
    color: var(--text-secondary, #64748b);
}

.mf-dia-btn.is-custom:not(.is-active) {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), var(--bg-card, #fff));
}

.mf-dia-btn.is-custom .mf-dia-btn__count {
    color: #b45309;
}

.mf-dia-limite-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--mf-accent-ring);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(248, 250, 252, 0.9));
}

.mf-dia-limite-bar__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mf-dia-limite-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mf-dia-limite-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #b45309;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.mf-dia-limite-hint {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.78rem;
}

.mf-detail-panel {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 220px);
    max-height: calc(100vh - 220px);
}

.mf-table-wrap {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    min-height: 240px;
    max-height: none;
}

.mf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.mf-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 14px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #64748b);
    background: var(--bg-body, #f8fafc);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mf-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    vertical-align: middle;
}

.mf-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.65);
}

.mf-table tbody tr:hover {
    background: var(--mf-accent-soft);
}

.mf-table tbody tr:last-child td {
    border-bottom: none;
}

.mf-col-num {
    width: 48px;
    text-align: center !important;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
}

.mf-col-date {
    width: 130px;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
}

.mf-pedido-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    background: var(--bg-body, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
}

.mf-produto {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-cliente {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-empty-cell {
    text-align: center;
    padding: 32px 16px !important;
    color: var(--text-secondary, #64748b);
}

.mf-table-foot {
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

.mf-empty {
    color: var(--text-secondary, #64748b);
    font-size: 0.88rem;
    padding: 16px 0;
    text-align: center;
}

.mf-login-msg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

[data-theme="dark"] .mf-hero-stat,
[data-theme="dark"] .mf-config-group,
[data-theme="dark"] .mf-dias-search,
[data-theme="dark"] .mf-table-search {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .mf-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .mf-dia-btn.is-full:not(.is-active) {
    background: rgba(127, 29, 29, 0.12);
}

.mf-consultora-auto {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-body, #f1f5f9);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    letter-spacing: 0.02em;
}

.mf-consultora-auto.is-empty {
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

.mf-consultora-auto.is-loading {
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.mf-consultora-auto.is-error {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 226, 226, 0.35);
    color: var(--mf-full);
    font-weight: 600;
}

.mf-consultora-auto.is-ok {
    border-color: var(--mf-accent-ring);
    background: var(--mf-accent-soft);
    color: var(--mf-accent-dark);
}

    margin-bottom: 14px;
    padding: 14px 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px dashed var(--border, #cbd5e1);
}

.mf-add-row__title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #64748b);
    margin-bottom: 10px;
}

.mf-add-row__fields {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.45fr 1.4fr auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 960px) {
    .mf-add-row__fields {
        grid-template-columns: 1fr 1fr;
    }
}

.mf-field--narrow input {
    max-width: 90px;
}

.mf-field--wide {
    min-width: 0;
}

.mf-field--compact span {
    font-size: 0.72rem;
}

.mf-add-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
}

.mf-dias-nav {
    margin-bottom: 10px;
}

.mf-col-fichas {
    width: 72px;
    text-align: center !important;
}

.mf-col-act {
    width: 76px;
    text-align: right !important;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.mf-consultora,
.mf-obs {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-icon-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.mf-icon-btn:hover {
    color: var(--mf-full);
    background: rgba(220, 38, 38, 0.08);
}

.mf-badge-encerrado {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--mf-full);
}

.mf-badge-lotado {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

[data-theme="dark"] .mf-badge-lotado {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
}

.mf-field--toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mf-field--toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mf-accent, #0d9488);
}

.mf-edit-btn:hover:not(:disabled) {
    color: var(--mf-accent);
    background: var(--mf-accent-soft);
}

.mf-edit-btn:disabled,
.mf-add-row.is-blocked button:disabled,
.mf-add-row.is-blocked input:disabled,
.mf-add-row.is-blocked select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mf-edit-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.mf-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0;
}

.mf-edit-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.mf-edit-form {
    display: grid;
    gap: 12px;
    padding: 16px 18px 18px;
}

.mf-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.mf-btn--sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 6px;
    border-radius: 8px;
}

.mf-total-row td {
    background: var(--mf-accent-soft);
    border-top: 2px solid var(--mf-accent-ring);
    font-size: 0.88rem;
}

.mf-table--sheet tfoot td {
    padding: 12px 14px;
}

/* ── Largura total + sidebar expand/collapse (como Clientes) ── */
.sidebar.collapsed ~ .main-content .mf-page,
.sidebar:not(.collapsed) ~ .main-content .mf-page {
    width: 100%;
    max-width: none;
}

@media (max-width: 768px) {
    .mf-app .page-content.mf-page {
        padding: 14px;
    }

    .mf-detail-panel {
        min-height: auto;
        max-height: none;
    }

    .mf-dias-list {
        max-height: 280px;
    }

    .mf-panel-head--table {
        flex-direction: column;
        align-items: stretch;
    }

    .mf-panel-head__actions {
        width: 100%;
    }

    .mf-table-search {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .mf-hero__stats {
        grid-template-columns: 1fr;
    }

    .mf-app .page-content.mf-page {
        padding: 12px 10px;
    }
}

/* ── Modal dashboard relatório ── */
.mf-modal--dash .mf-modal__dialog {
    width: min(1408px, 100%);
    max-height: min(94vh, 940px);
    background: #eef2f7;
}

[data-theme="dark"] .mf-modal--dash .mf-modal__dialog {
    background: var(--bg-page, #0f172a);
}

.mf-dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background:
        linear-gradient(120deg, rgba(13, 148, 136, 0.16) 0%, rgba(20, 184, 166, 0.05) 42%, transparent 100%),
        var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mf-dash-head__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mf-dash-head__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(145deg, #0d9488, #14b8a6 55%, #2dd4bf);
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.32);
    flex-shrink: 0;
}

.mf-dash-head h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.mf-dash-head__sub {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--text-secondary, #64748b);
}

.mf-dash-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mf-dash-head__actions .mf-btn--primary {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    border-color: #0d9488;
    font-weight: 700;
    min-height: 40px;
    padding: 9px 16px;
}

.mf-dash-head__actions .mf-btn--primary:hover {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
}

.mf-dash-head__actions .mf-btn--primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.mf-dash-month {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-card, #fff);
    font-size: 0.84rem;
    color: var(--text-secondary, #64748b);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mf-dash-month input {
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    min-width: 130px;
}

.mf-dash-month input:focus {
    outline: none;
}

.mf-dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mf-dash-kpi {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-card, #fff);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.mf-dash-kpi::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--mf-accent);
    border-radius: 4px 0 0 4px;
}

.mf-dash-kpi--primary::before { background: linear-gradient(180deg, #14b8a6, #0d9488); }
.mf-dash-kpi--blue::before { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.mf-dash-kpi--violet::before { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.mf-dash-kpi--amber::before { background: linear-gradient(180deg, #fbbf24, #d97706); }

.mf-dash-kpi--primary {
    border-color: rgba(13, 148, 136, 0.25);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), transparent 65%), var(--bg-card, #fff);
}

.mf-dash-kpi__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: var(--mf-accent-dark);
    background: var(--mf-accent-soft);
}

.mf-dash-kpi--primary .mf-dash-kpi__icon {
    color: #fff;
    background: linear-gradient(145deg, var(--mf-accent), #14b8a6);
}

.mf-dash-kpi--blue .mf-dash-kpi__icon { color: #1d4ed8; background: rgba(37, 99, 235, 0.12); }
.mf-dash-kpi--violet .mf-dash-kpi__icon { color: #6d28d9; background: rgba(124, 58, 237, 0.12); }
.mf-dash-kpi--amber .mf-dash-kpi__icon { color: #b45309; background: rgba(217, 119, 6, 0.12); }

.mf-dash-kpi__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary, #64748b);
}

.mf-dash-kpi__value {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary, #0f172a);
}

.mf-dash-kpi__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    color: var(--text-secondary, #64748b);
}

.mf-dash-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 16px;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mf-dash-insight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border, #e2e8f0);
    background: #f8fafc;
}

[data-theme="dark"] .mf-dash-insight {
    background: rgba(15, 23, 42, 0.4);
}

.mf-dash-insight--gold { border-color: rgba(245, 158, 11, 0.35); background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), transparent), #fffbeb; }
.mf-dash-insight--peak { border-color: rgba(13, 148, 136, 0.3); background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), transparent), #f0fdfa; }
.mf-dash-insight--avg { border-color: rgba(99, 102, 241, 0.28); background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent), #eef2ff; }

.mf-dash-insight__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mf-dash-insight--gold .mf-dash-insight__icon { color: #b45309; background: rgba(251, 191, 36, 0.25); }
.mf-dash-insight--peak .mf-dash-insight__icon { color: #0f766e; background: rgba(13, 148, 136, 0.18); }
.mf-dash-insight--avg .mf-dash-insight__icon { color: #4338ca; background: rgba(99, 102, 241, 0.18); }

.mf-dash-insight__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #64748b);
}

.mf-dash-insight strong {
    display: block;
    margin-top: 3px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary, #0f172a);
}

.mf-dash-tabs {
    padding: 14px 24px;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mf-dash-tabs__inner {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
    background: #eef2f7;
    border: 1px solid var(--border, #e2e8f0);
}

[data-theme="dark"] .mf-dash-tabs__inner {
    background: rgba(15, 23, 42, 0.6);
}

.mf-dash-tabs .mf-rel-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    margin-bottom: 0;
    border-bottom: none;
}

.mf-dash-tabs .mf-rel-tab.is-active {
    color: var(--mf-accent-dark);
    background: var(--bg-card, #fff);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.mf-dash-body {
    background: #eef2f7;
    padding: 20px 24px 24px;
}

[data-theme="dark"] .mf-dash-body {
    background: rgba(15, 23, 42, 0.5);
}

.mf-dash-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.mf-dash-panel {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mf-dash-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.5));
}

[data-theme="dark"] .mf-dash-panel__head {
    background: rgba(15, 23, 42, 0.35);
}

.mf-dash-panel__head h3 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mf-dash-panel__head h3 i {
    color: var(--mf-accent);
}

.mf-dash-panel__meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.mf-dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    min-height: 240px;
    padding: 14px 16px 10px;
    overflow-x: auto;
    background:
        repeating-linear-gradient(to top, transparent 0, transparent 33px, rgba(148, 163, 184, 0.14) 33px, rgba(148, 163, 184, 0.14) 34px);
    flex: 1;
}

.mf-dash-bar {
    flex: 1 1 0;
    min-width: 26px;
    max-width: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 210px;
    cursor: default;
}

.mf-dash-bar__track {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
}

.mf-dash-bar__col {
    width: 100%;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.mf-dash-bar.is-peak .mf-dash-bar__col {
    background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}

.mf-dash-bar:hover .mf-dash-bar__col {
    filter: brightness(1.06);
    transform: scaleY(1.03);
    transform-origin: bottom;
}

.mf-dash-bar__val {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-secondary, #64748b);
    min-height: 14px;
    line-height: 1;
}

.mf-dash-bar.is-peak .mf-dash-bar__val {
    color: #b45309;
}

.mf-dash-bar__lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
}

.mf-dash-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 10px;
    align-items: end;
    padding: 16px 18px 8px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), transparent);
}

.mf-dash-podium__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--border, #e2e8f0);
    border-bottom: none;
    background: var(--bg-card, #fff);
}

.mf-dash-podium__item strong {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-dash-podium__item span:last-child {
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
    margin-top: 2px;
}

.mf-dash-podium__item--1 {
    min-height: 108px;
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.15), var(--bg-card, #fff));
}

.mf-dash-podium__item--2 {
    min-height: 88px;
    border-color: rgba(148, 163, 184, 0.45);
}

.mf-dash-podium__item--3 {
    min-height: 78px;
    border-color: rgba(251, 146, 60, 0.4);
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.1), var(--bg-card, #fff));
}

.mf-dash-podium__medal {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.mf-dash-podium__item--1 .mf-dash-podium__medal {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.mf-dash-podium__item--2 .mf-dash-podium__medal {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
}

.mf-dash-podium__item--3 .mf-dash-podium__medal {
    background: linear-gradient(135deg, #fdba74, #fb923c);
    color: #7c2d12;
}

.mf-dash-rank {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
}

.mf-dash-rank__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    transition: background 0.15s;
}

.mf-dash-rank__row:last-child {
    border-bottom: none;
}

.mf-dash-rank__row:hover {
    background: rgba(13, 148, 136, 0.04);
}

.mf-dash-rank__row--top {
    background: rgba(248, 250, 252, 0.8);
}

.mf-dash-rank__name {
    font-weight: 700;
    font-size: 0.88rem;
}

.mf-dash-rank__meta {
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
    margin-top: 2px;
}

.mf-dash-rank__vals {
    text-align: right;
}

.mf-dash-rank__vals strong {
    display: block;
    font-size: 1.05rem;
    color: var(--mf-accent-dark);
}

.mf-dash-rank__vals span {
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
}

.mf-rel-rank {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary, #64748b);
}

.mf-rel-rank--1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.mf-rel-rank--2 {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #334155;
}

.mf-rel-rank--3 {
    background: linear-gradient(135deg, #fdba74, #fb923c);
    color: #7c2d12;
}

.mf-rel-name {
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-rel-bar--rank {
    margin-top: 6px;
}

.mf-rel-bar__pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mf-accent-dark);
    min-width: 42px;
    text-align: right;
}

.mf-rel-table-wrap {
    overflow: auto;
}

.mf-rel-table-wrap--matriz {
    max-height: 420px;
}

.mf-rel-table--matriz .mf-rel-heat:not(.mf-rel-zero) {
    background: rgba(13, 148, 136, calc(var(--heat, 0.2) * 0.85));
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.mf-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 28px);
    overflow: hidden;
    overscroll-behavior: contain;
}

html.mf-modal-open,
html.mf-modal-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.mf-modal[hidden] {
    display: none !important;
}

.mf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.mf-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.mf-modal__close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    flex-shrink: 0;
}

.mf-modal__close:hover {
    background: var(--mf-accent-soft);
    color: var(--mf-accent-dark);
    border-color: var(--mf-accent-ring);
}

.mf-modal__tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mf-rel-tab {
    border: none;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.mf-rel-tab.is-active {
    color: var(--mf-accent-dark);
    background: var(--mf-accent-soft);
    border-bottom-color: var(--mf-accent);
}

.mf-modal__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mf-rel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.mf-rel-table th,
.mf-rel-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    text-align: right;
    white-space: nowrap;
}

.mf-rel-table th:first-child,
.mf-rel-table td:first-child,
.mf-rel-table th:nth-child(2),
.mf-rel-table td:nth-child(2) {
    text-align: left;
}

.mf-rel-table th:first-child,
.mf-rel-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-card, #fff);
    box-shadow: 1px 0 0 var(--border, #e2e8f0);
}

.mf-rel-table thead th {
    background: rgba(248, 250, 252, 0.95);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #64748b);
    position: sticky;
    top: 0;
    z-index: 2;
}

.mf-rel-table tbody tr:hover td {
    background: rgba(13, 148, 136, 0.04);
}

.mf-rel-table tbody tr:hover td:first-child {
    background: rgba(13, 148, 136, 0.06);
}

.mf-rel-table .mf-rel-total-row td {
    font-weight: 800;
    background: var(--mf-accent-soft);
    border-top: 2px solid var(--mf-accent-ring);
}

.mf-rel-table .mf-rel-num {
    font-variant-numeric: tabular-nums;
}

.mf-rel-table .mf-rel-zero {
    color: var(--text-secondary, #94a3b8);
    opacity: 0.45;
}

.mf-rel-table .mf-rel-strong {
    font-weight: 800;
    color: var(--mf-accent-dark);
}

.mf-rel-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.mf-rel-bar__track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.mf-rel-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mf-accent), #14b8a6);
}

@media (max-width: 960px) {
    .mf-dash-grid {
        grid-template-columns: 1fr;
    }

    .mf-dash-kpis,
    .mf-dash-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mf-dash-head {
        padding: 16px;
    }

    .mf-dash-kpis,
    .mf-dash-insights,
    .mf-dash-tabs,
    .mf-dash-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mf-dash-insights {
        grid-template-columns: 1fr;
    }

    .mf-modal--dash .mf-modal__dialog {
        max-height: 96vh;
        border-radius: 14px;
    }

    .mf-dash-head__actions {
        width: 100%;
    }

    .mf-dash-month {
        flex: 1;
    }

    .mf-dash-podium {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mf-dash-podium__item,
    .mf-dash-podium__item--1,
    .mf-dash-podium__item--2,
    .mf-dash-podium__item--3 {
        min-height: auto;
        border-radius: 12px;
        border-bottom: 1px solid var(--border, #e2e8f0);
    }
}

@media (max-width: 480px) {
    .mf-dash-kpis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .mf-app .page-content.mf-page {
        padding: 10px 8px;
    }
}
