:root {
    --mwm-bg: #f4f7fb;
    --mwm-card: #ffffff;
    --mwm-text: #172033;
    --mwm-muted: #667085;
    --mwm-line: #dfe6ef;
    --mwm-primary: #176fb3;
    --mwm-primary-dark: #10588e;
    --mwm-primary-soft: #e9f3fb;
    --mwm-success: #16794b;
    --mwm-success-soft: #eaf8f1;
    --mwm-warning: #a45b05;
    --mwm-warning-soft: #fff5e8;
    --mwm-danger: #b42318;
    --mwm-danger-soft: #fff0ef;
    --mwm-radius: 14px;
    --mwm-shadow: 0 8px 30px rgba(31, 48, 71, .07);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    background: var(--mwm-bg);
    color: var(--mwm-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
a { color: var(--mwm-primary); text-decoration: none; }
a:hover { text-decoration: none; }

.mwm-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(145deg, #f7fafe 0%, #eef4f9 100%);
}
.mwm-login-card {
    width: min(100%, 390px);
    background: #fff;
    border: 1px solid var(--mwm-line);
    border-radius: 18px;
    box-shadow: var(--mwm-shadow);
    padding: 32px;
}
.mwm-login-card h1 { margin: 12px 0 2px; text-align: center; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.mwm-login-card > p { margin: 0 0 24px; text-align: center; color: var(--mwm-muted); }
.mwm-login-card > small { display: block; margin-top: 18px; color: var(--mwm-muted); text-align: center; font-size: 12px; }
.mwm-login-logo { display: block; width: min(100%, 250px); height: auto; margin: 0 auto 12px; }
.mwm-drop {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 14px;
    background: var(--mwm-primary-soft);
}
.mwm-drop span {
    content: "";
    position: absolute;
    width: 14px;
    height: 19px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    border-radius: 70% 30% 70% 30%;
    background: #56a9e7;
}
.mwm-login-form { display: grid; gap: 9px; }
.mwm-login-form label { margin-top: 4px; font-weight: 650; color: #273246; }
.mwm-login-form input[type="text"], .mwm-login-form input[type="password"] {
    width: 100%; height: 44px; border: 1px solid #cdd8e6; border-radius: 9px; padding: 0 12px; color: var(--mwm-text); background: #fff; outline: 0;
}
.mwm-login-form input:focus { border-color: var(--mwm-primary); box-shadow: 0 0 0 3px rgba(23,111,179,.12); }
.mwm-password-field { position: relative; }
.mwm-password-field input { padding-right: 70px !important; }
.mwm-password-field button { position: absolute; right: 7px; top: 7px; height: 30px; border: 0; background: transparent; color: var(--mwm-primary); cursor: pointer; }
.mwm-checkbox { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; color: var(--mwm-text) !important; }
.mwm-checkbox input { width: 16px; height: 16px; }

.mwm-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 650; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.mwm-button-primary { background: var(--mwm-primary); color: #fff; }
.mwm-button-primary:hover { background: var(--mwm-primary-dark); color: #fff; }
.mwm-button-secondary { background: #fff; color: #314158; border-color: var(--mwm-line); }
.mwm-button-secondary:hover { border-color: #b8c6d8; color: #1f2e42; }
.mwm-button-block { width: 100%; margin-top: 6px; }

.mwm-alert { border-radius: 10px; padding: 11px 13px; margin: 0 0 18px; border: 1px solid; }
.mwm-alert-error { color: #8e1d16; background: var(--mwm-danger-soft); border-color: #f5c5c1; }
.mwm-alert-success { color: #12653f; background: var(--mwm-success-soft); border-color: #bde5d1; }

.mwm-shell { min-height: 100vh; }
.mwm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--mwm-line); backdrop-filter: blur(10px); }
.mwm-header-inner { width: min(100% - 32px, 1360px); min-height: 66px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.mwm-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--mwm-text); min-width: 190px; }
.mwm-brand:hover { color: var(--mwm-text); }
.mwm-brand-logo { display: block; width: 54px; height: auto; flex: 0 0 auto; }
.mwm-brand strong { display: block; font-size: 15px; line-height: 1.2; }
.mwm-brand small { display: block; color: var(--mwm-muted); font-size: 11px; margin-top: 2px; }
.mwm-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.mwm-nav a { color: #475467; padding: 8px 11px; border-radius: 8px; font-weight: 600; }
.mwm-nav a:hover { color: var(--mwm-primary); background: #f3f7fb; }
.mwm-nav a.is-active { color: var(--mwm-primary); background: var(--mwm-primary-soft); }
.mwm-user { display: flex; align-items: center; gap: 12px; color: #475467; }
.mwm-user > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mwm-user form { margin: 0; }
.mwm-user button { border: 0; background: transparent; color: var(--mwm-primary); font-weight: 650; cursor: pointer; padding: 7px 0; }
.mwm-menu-toggle { display: none; border: 1px solid var(--mwm-line); border-radius: 8px; background: #fff; padding: 7px 10px; color: var(--mwm-text); font-weight: 650; }

.mwm-page { width: min(100% - 32px, 1360px); margin: 0 auto; padding: 30px 0 60px; }
.mwm-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.mwm-title-row h1 { margin: 2px 0 4px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.mwm-title-row p { margin: 0; color: var(--mwm-muted); }
.mwm-kicker { color: var(--mwm-primary); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.mwm-title-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mwm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.mwm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mwm-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mwm-stat { background: var(--mwm-card); border: 1px solid var(--mwm-line); border-radius: var(--mwm-radius); padding: 17px 18px; box-shadow: 0 3px 14px rgba(31,48,71,.03); }
.mwm-stat > span { display: block; color: var(--mwm-muted); font-size: 12px; font-weight: 600; }
.mwm-stat strong { display: block; margin: 6px 0 3px; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
.mwm-stat small { color: #98a2b3; font-size: 11px; }
.mwm-stat.warning strong { color: var(--mwm-warning); }
.mwm-stats-compact .mwm-stat { padding: 14px 16px; }
.mwm-stats-compact .mwm-stat strong { font-size: 19px; }

.mwm-grid { display: grid; gap: 16px; }
.mwm-grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.mwm-card { background: var(--mwm-card); border: 1px solid var(--mwm-line); border-radius: var(--mwm-radius); box-shadow: 0 3px 14px rgba(31,48,71,.03); }
.mwm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #edf1f5; }
.mwm-card-head h2 { margin: 0; font-size: 17px; }
.mwm-card-head p { margin: 3px 0 0; color: var(--mwm-muted); font-size: 12px; }
.mwm-card-head > a { font-weight: 650; font-size: 12px; }
.mwm-simple-list { padding: 2px 20px 12px; }
.mwm-simple-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.mwm-simple-list > div:last-child { border-bottom: 0; }
.mwm-simple-list span { display: flex; align-items: center; gap: 10px; color: #475467; }
.mwm-simple-list span strong { min-width: 44px; color: var(--mwm-text); }
.mwm-simple-list b { white-space: nowrap; }
.mwm-success-box { margin: 18px 20px 20px; padding: 14px; border-radius: 10px; background: var(--mwm-success-soft); color: var(--mwm-success); }
.mwm-quick-actions { display: grid; gap: 9px; padding: 16px 20px 20px; }
.mwm-quick-actions a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--mwm-line); border-radius: 10px; color: var(--mwm-text); }
.mwm-quick-actions a:hover { border-color: #b9ccdf; background: #f8fbfe; }
.mwm-quick-actions strong { display: block; }
.mwm-quick-actions span { color: var(--mwm-muted); font-size: 12px; text-align: right; }

.mwm-details { margin-bottom: 16px; overflow: hidden; }
.mwm-details > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15px; }
.mwm-details > summary::-webkit-details-marker { display: none; }
.mwm-details > summary::after { content: "+"; float: right; color: var(--mwm-primary); font-size: 20px; line-height: 1; }
.mwm-details[open] > summary { border-bottom: 1px solid #edf1f5; }
.mwm-details[open] > summary::after { content: "−"; }
.mwm-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 20px; }
.mwm-form-grid label { display: grid; gap: 6px; color: #344054; font-weight: 600; font-size: 12px; }
.mwm-form-grid input, .mwm-form-grid select, .mwm-form-grid textarea {
    width: 100%; min-height: 40px; border: 1px solid #ccd7e5; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--mwm-text); outline: 0;
}
.mwm-form-grid textarea { resize: vertical; }
.mwm-form-grid label small { color: var(--mwm-muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.mwm-electricity-field { padding: 10px; border: 1px solid #bad8ee; border-radius: 10px; background: #f3f9fd; }
.mwm-form-grid input:focus, .mwm-form-grid select:focus, .mwm-form-grid textarea:focus { border-color: var(--mwm-primary); box-shadow: 0 0 0 3px rgba(23,111,179,.1); }
.mwm-span-all { grid-column: 1 / -1; }

.mwm-table-card { overflow: hidden; }
.mwm-table-scroll { width: 100%; overflow-x: auto; }
.mwm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mwm-table th { padding: 11px 12px; background: #f7f9fc; color: #58677a; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; border-bottom: 1px solid var(--mwm-line); }
.mwm-table td { padding: 11px 12px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.mwm-table tbody tr:last-child td { border-bottom: 0; }
.mwm-table tbody tr:hover:not(.mwm-group-row) { background: #fbfdff; }
.mwm-table .mwm-group-row td { padding: 8px 12px; background: var(--mwm-primary-soft); color: var(--mwm-primary-dark); font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.mwm-readings-table { min-width: 1320px; }
.mwm-reading-input { width: 92px; min-height: 36px; border: 1px solid #c9d5e3; border-radius: 7px; padding: 6px 8px; text-align: right; outline: 0; }
.mwm-reading-input:focus { border-color: var(--mwm-primary); box-shadow: 0 0 0 3px rgba(23,111,179,.1); }
.mwm-table tr.is-excluded { opacity: .5; }
.mwm-hidden-calc { display: none; }
.mwm-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.mwm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mwm-switch span { width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; transition: .2s ease; }
.mwm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s ease; }
.mwm-switch input:not(:checked) + span { background: var(--mwm-success); }
.mwm-switch input:not(:checked) + span::after { transform: translateX(14px); }
.mwm-switch em { font-style: normal; font-size: 11px; font-weight: 700; color: #58677a; }

.mwm-save-bar { position: sticky; bottom: 14px; margin: 16px auto 0; width: min(100%, 680px); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px 11px 16px; border: 1px solid #c9d8e8; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(31,48,71,.14); backdrop-filter: blur(10px); }
.mwm-save-bar span { font-weight: 650; color: #475467; }

.mwm-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.mwm-pill-paid { color: var(--mwm-success); background: var(--mwm-success-soft); }
.mwm-pill-partial { color: var(--mwm-warning); background: var(--mwm-warning-soft); }
.mwm-pill-unpaid { color: var(--mwm-danger); background: var(--mwm-danger-soft); }
.mwm-mini-button { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: 5px 9px; border: 1px solid #cbd6e3; border-radius: 7px; background: #fff; color: #344054; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mwm-mini-button:hover { border-color: #9fb6cd; color: var(--mwm-primary); }
.mwm-mini-button.is-muted { color: #667085; }
.mwm-mini-button.is-danger { color: var(--mwm-danger); border-color: #edc2be; }
.mwm-row-actions { display: flex; align-items: center; gap: 6px; }
.mwm-row-actions form { margin: 0; }
.is-muted-row { opacity: .55; }
.mwm-empty { padding: 70px 20px; text-align: center; }
.mwm-empty h1 { margin: 0 0 7px; }
.mwm-empty p { color: var(--mwm-muted); margin: 0 0 18px; }

.mwm-report { width: min(100% - 28px, 1500px); margin: 20px auto; background: #fff; color: #182230; padding: 28px; border: 1px solid var(--mwm-line); border-radius: 12px; }
.mwm-report-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.mwm-report-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 2px solid #1f6fa9; padding-bottom: 14px; margin-bottom: 14px; }
.mwm-report-header span { color: #1f6fa9; font-weight: 800; font-size: 10px; letter-spacing: .12em; }
.mwm-report-header h1 { margin: 3px 0 2px; font-size: 25px; }
.mwm-report-header p { margin: 0; color: #667085; font-size: 12px; }
.mwm-report-mark { width: 110px; height: auto; margin: 0; object-fit: contain; }
.mwm-report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mwm-report-summary-5 { grid-template-columns: repeat(5, 1fr); }
.mwm-report-summary > div { border: 1px solid #dfe7ef; border-radius: 8px; padding: 10px 12px; }
.mwm-report-summary span { display: block; color: #667085; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.mwm-report-summary strong { display: block; margin-top: 3px; font-size: 16px; }
.mwm-report-summary small { display: block; margin-top: 2px; color: #7b8794; font-size: 8px; }
.mwm-report-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.mwm-report-table th { background: #edf5fb; color: #26435b; font-size: 8px; text-transform: uppercase; letter-spacing: .035em; padding: 6px 5px; text-align: right; border-bottom: 1px solid #c7d9e7; }
.mwm-report-table th:nth-child(-n+2), .mwm-report-table td:nth-child(-n+2) { text-align: left; }
.mwm-report-table td { padding: 5px; text-align: right; border-bottom: 1px solid #e6ebf0; white-space: nowrap; }
.mwm-report-table td:nth-child(2) { white-space: normal; min-width: 100px; }
.mwm-report-group td { text-align: left !important; background: #dceef9; color: #165d91; font-weight: 800; letter-spacing: .07em; }
.mwm-report-table tfoot td { background: #f3f6f9; font-weight: 800; border-top: 2px solid #9cb8cd; }
.mwm-report-footer { text-align: right; color: #7b8794; font-size: 8px; margin-top: 10px; }

@media (max-width: 980px) {
    .mwm-header-inner { width: min(100% - 22px, 1360px); gap: 12px; min-height: 60px; }
    .mwm-menu-toggle { display: inline-flex; margin-left: auto; }
    .mwm-nav { display: none; position: absolute; top: 59px; left: 11px; right: 11px; padding: 8px; background: #fff; border: 1px solid var(--mwm-line); border-radius: 12px; box-shadow: var(--mwm-shadow); }
    .mwm-nav.is-open { display: grid; }
    .mwm-nav a { padding: 10px 12px; }
    .mwm-user > span { display: none; }
    .mwm-page { width: min(100% - 22px, 1360px); padding-top: 22px; }
    .mwm-stats, .mwm-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mwm-grid-2 { grid-template-columns: 1fr; }
    .mwm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body { font-size: 13px; }
    .mwm-login-page { padding: 14px; }
    .mwm-login-card { padding: 26px 20px; }
    .mwm-brand { min-width: 0; }
    .mwm-brand small { display: none; }
    .mwm-user { margin-left: 0; }
    .mwm-user button { font-size: 12px; }
    .mwm-title-row { align-items: stretch; flex-direction: column; margin-bottom: 16px; }
    .mwm-title-row h1 { font-size: 25px; }
    .mwm-title-actions { width: 100%; }
    .mwm-title-actions .mwm-button, .mwm-title-row > .mwm-button { flex: 1; }
    .mwm-stats, .mwm-stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mwm-stat { padding: 13px; }
    .mwm-stat strong { font-size: 17px; }
    .mwm-form-grid { grid-template-columns: 1fr; padding: 15px; gap: 12px; }
    .mwm-span-all { grid-column: auto; }
    .mwm-card-head { padding: 15px; }
    .mwm-simple-list, .mwm-quick-actions { padding-left: 15px; padding-right: 15px; }
    .mwm-table:not(.mwm-readings-table) thead { display: none; }
    .mwm-table:not(.mwm-readings-table), .mwm-table:not(.mwm-readings-table) tbody, .mwm-table:not(.mwm-readings-table) tr, .mwm-table:not(.mwm-readings-table) td { display: block; width: 100%; }
    .mwm-table:not(.mwm-readings-table) tr { padding: 10px 13px; border-bottom: 1px solid var(--mwm-line); }
    .mwm-table:not(.mwm-readings-table) td { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; padding: 5px 0; text-align: right; }
    .mwm-table:not(.mwm-readings-table) td::before { content: attr(data-label); color: var(--mwm-muted); font-size: 11px; font-weight: 650; text-align: left; }
    .mwm-row-actions { justify-content: flex-end; }
    .mwm-save-bar { bottom: 8px; width: 100%; }
    .mwm-save-bar span { display: none; }
    .mwm-save-bar .mwm-button { width: 100%; }
    .mwm-report { width: 100%; margin: 0; padding: 14px; border: 0; border-radius: 0; }
    .mwm-report-summary, .mwm-report-summary-5 { grid-template-columns: repeat(2, 1fr); }
}

@media print {
    @page { size: A4 landscape; margin: 8mm; }
    html, body { margin: 0 !important; padding: 0 !important; }
    body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mwm-report { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
    .mwm-report-tools { display: none !important; }

    /* Antet compact, astfel încât toate apartamentele să încapă pe o singură pagină A4. */
    .mwm-report-header { padding-bottom: 5px; margin-bottom: 6px; border-bottom-width: 1.5px; }
    .mwm-report-header span { font-size: 6.8pt; letter-spacing: .09em; }
    .mwm-report-header h1 { margin: 1px 0 0; font-size: 16.5pt; line-height: 1.05; }
    .mwm-report-header p { margin-top: 2px; font-size: 7.6pt; line-height: 1.15; }
    .mwm-report-mark { width: 84px; }

    .mwm-report-summary, .mwm-report-summary-5 { gap: 5px; margin-bottom: 6px; }
    .mwm-report-summary > div { padding: 4px 7px; border-radius: 5px; }
    .mwm-report-summary span { font-size: 6.2pt; line-height: 1.05; }
    .mwm-report-summary strong { margin-top: 1px; font-size: 9.6pt; line-height: 1.05; }
    .mwm-report-summary small { margin-top: 1px; font-size: 5.8pt; line-height: 1; }

    .mwm-report-table { font-size: 7.1pt; line-height: 1.15; }
    .mwm-report-table th { font-size: 6.6pt; padding: 3.6px 4px; }
    .mwm-report-table td { padding: 3.2px 4px; }
    .mwm-report-table tr { break-inside: avoid; page-break-inside: avoid; }
    .mwm-report-footer { margin-top: 5px; font-size: 6.5pt; line-height: 1; }
}

/* Login feedback – V2.1.0 */
.mwm-login-status {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #cdd9e6;
    border-radius: 8px;
    background: #f7f9fc;
    color: #344054;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}
.mwm-login-status.is-success {
    border-color: #b9ddc8;
    background: #eefaf2;
    color: #176b3a;
}
.mwm-login-status.is-error {
    border-color: #efc6c1;
    background: #fff3f1;
    color: #a3322a;
}
.mwm-login-status.is-info {
    border-color: #bfd4e7;
    background: #f0f7fc;
    color: #175f92;
}
.mwm-login-form .mwm-button[disabled] {
    cursor: wait;
    opacity: .72;
}

/* Month and year navigation – V2.3.0 */
.mwm-title-row-period { align-items: flex-end; }
.mwm-period-actions { align-items: flex-end; flex-wrap: wrap; }
.mwm-period-picker { margin: 0; }
.mwm-period-picker label { display: grid; gap: 5px; color: var(--mwm-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mwm-period-picker select { min-width: 175px; min-height: 40px; padding: 8px 36px 8px 11px; border: 1px solid #c9d5e3; border-radius: 8px; background: #fff; color: #26384a; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; outline: 0; }
.mwm-period-picker select:focus { border-color: var(--mwm-primary); box-shadow: 0 0 0 3px rgba(23,111,179,.1); }

@media (max-width: 640px) {
    .mwm-title-row-period { align-items: stretch; }
    .mwm-period-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .mwm-period-picker { grid-column: 1 / -1; }
    .mwm-period-picker select { width: 100%; }
    .mwm-period-actions .mwm-button { width: 100%; }
}

/* Live payment updates – V2.5.0 */
.mwm-live-region {
    position: fixed;
    z-index: 1000;
    right: 18px;
    bottom: 18px;
    max-width: min(360px, calc(100vw - 36px));
    padding: 11px 14px;
    border: 1px solid #bde5d1;
    border-radius: 10px;
    background: var(--mwm-success-soft);
    color: #12653f;
    box-shadow: 0 10px 30px rgba(31, 48, 71, .16);
    font-size: 12px;
    font-weight: 700;
}
.mwm-live-region.is-error {
    border-color: #f0c3bf;
    background: var(--mwm-danger-soft);
    color: #8e1d16;
}
[data-payment-row] { transition: background-color .25s ease; }
[data-payment-row].is-payment-saved { background: #eefaf4; }
[data-payment-form][data-busy="1"] .mwm-mini-button { cursor: wait; opacity: .7; }

@media (max-width: 640px) {
    .mwm-live-region { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
