.mgdw-page {
    margin: 0;
    color: #213350;
    background: #f3f6fa;
}

.mgdw-shell {
    --mgdw-navy: #142644;
    --mgdw-text: #213350;
    --mgdw-muted: #4b5e75;
    --mgdw-blue: #2457bd;
    --mgdw-white: #fff;
    --mgdw-line: #d9e2ef;
    --mgdw-tint: #edf3ff;
    --mgdw-success: #165a40;
    --mgdw-error: #951d30;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Manrope, "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.mgdw-shell *, .mgdw-shell *::before, .mgdw-shell *::after { box-sizing: border-box; }
.mgdw-shell a { color: var(--mgdw-blue); }
.mgdw-shell input, .mgdw-shell select, .mgdw-shell button { font: inherit; }
.mgdw-shell :focus-visible { outline: 3px solid #3975de; outline-offset: 3px; }
.mgdw-shell h1, .mgdw-shell h2, .mgdw-shell h3 {
    color: var(--mgdw-navy);
    line-height: 1.17;
    overflow-wrap: anywhere;
}
.mgdw-shell h1 {
    margin: 0 0 .45rem;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -.04em;
}
.mgdw-shell h2 {
    margin: 0 0 .85rem;
    font-size: clamp(1.18rem, 3vw, 1.42rem);
    letter-spacing: -.02em;
}
.mgdw-shell h3 { margin: 0 0 .6rem; font-size: 1rem; }
.mgdw-shell p { overflow-wrap: anywhere; }

.mgdw-header {
    min-height: 64px;
    padding: 11px max(18px, calc((100% - 1056px) / 2));
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--mgdw-white);
    background: var(--mgdw-navy);
}
.mgdw-header a {
    color: var(--mgdw-white);
    font-size: 1.1rem;
    font-weight: 780;
    text-decoration: none;
}
.mgdw-header form { margin: 0; }
.mgdw-header :focus-visible { outline-color: #a2c1ff; }
.mgdw-header .mgdw-button {
    padding: .4rem .7rem;
    min-height: 40px;
    color: var(--mgdw-white);
    background: #294570;
    border-color: #7b9bd0;
}
.mgdw-header .mgdw-button:hover { background: #345486; }
.mgdw-account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    gap: 6px 10px;
}
.mgdw-header .mgdw-account-actions > a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 7px;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: .18em;
}
@media (max-width: 590px) {
    .mgdw-account-actions { justify-content: flex-start; }
}
.mgdw-main {
    width: min(100%, 1100px);
    flex: 1 0 auto;
    padding: clamp(20px, 5vw, 45px) clamp(14px, 3vw, 24px) 50px;
    margin: 0 auto;
}
.mgdw-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--mgdw-muted);
    background: var(--mgdw-white);
    border-top: 1px solid var(--mgdw-line);
    padding: 15px max(18px, calc((100% - 1056px) / 2));
    font-size: .9rem;
}
.mgdw-footer p { margin: 0; }
.mgdw-intro { margin: 0 0 20px; }
.mgdw-intro p, .mgdw-auth-intro p { margin: 0; color: var(--mgdw-muted); }
.mgdw-intro .mgdw-role, .mgdw-tag {
    padding: 3px 9px;
    border-radius: 20px;
    color: #284b79;
    background: #e7eefb;
    font-size: .83rem;
    font-weight: 730;
}
.mgdw-intro .mgdw-role { display: inline-block; margin-top: 9px; }

.mgdw-panel, .mgdw-card {
    min-width: 0;
    padding: clamp(15px, 3vw, 24px);
    color: var(--mgdw-text);
    background: var(--mgdw-white);
    border: 1px solid var(--mgdw-line);
    border-radius: 14px;
    box-shadow: 0 9px 28px rgb(25 45 78 / 6%);
}
.mgdw-workspace > .mgdw-panel + .mgdw-panel,
.mgdw-workspace-modules > .mgdw-panel + .mgdw-panel { margin-top: 16px; }
.mgdw-workspace-modules { min-width: 0; }
.mgdw-subtitle {
    margin: -.1rem 0 .9rem;
    color: var(--mgdw-muted);
}
.mgdw-notice {
    margin: 0 0 16px;
    padding: 10px 12px;
    color: var(--mgdw-success);
    background: #e9f8f0;
    border: 1px solid #a4cab8;
    border-radius: 9px;
}
.mgdw-notice--error, .mgdw-notice.is-error {
    color: var(--mgdw-error);
    background: #fff0f3;
    border-color: #e7b6c0;
}
.mgdw-empty {
    margin: 14px 0 0;
    padding: 12px;
    color: var(--mgdw-muted);
    background: #f4f7fb;
    border-radius: 8px;
}
.mgdw-panel .mgdw-table-scroll + .mgdw-subtitle { margin: 12px 0 0; }

.mgdw-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    margin: 16px 0;
}
.mgdw-nav-group {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--mgdw-line);
    border-radius: 10px;
    background: var(--mgdw-white);
}
.mgdw-nav-label { margin: 0 0 7px; color: var(--mgdw-navy); font-size: .9rem; font-weight: 760; }
.mgdw-nav-group ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mgdw-nav-group li { min-width: 0; }
.mgdw-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 37px;
    padding: 6px 9px;
    background: #f7f9fc;
    border: 1px solid var(--mgdw-line);
    border-radius: 8px;
    font-size: .87rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.mgdw-nav a:hover { background: var(--mgdw-tint); }
.mgdw-panel[id] { scroll-margin-top: 15px; }
.mgdw-workspace-modules > .mgdw-panel:target { border-color: var(--mgdw-blue); }
.mgdw-demo-guide, .mgdw-workflow-guide { margin: 0 0 16px; padding: 9px 14px; }
:is(.mgdw-demo-guide, .mgdw-workflow-guide) ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
:is(.mgdw-demo-guide, .mgdw-workflow-guide) li a { font-weight: 730; }
:is(.mgdw-demo-guide, .mgdw-workflow-guide) li span { display: block; color: var(--mgdw-muted); font-size: .88rem; }
@media (max-width: 580px) {
    .mgdw-nav { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
    :is(.mgdw-demo-guide, .mgdw-workflow-guide) ul { grid-template-columns: 1fr; }
}
@media screen and (min-width: 1180px) {
    .mgdw-main:has(.mgdw-workspace-layout) { width: min(100%, 1360px); }
    .mgdw-shell:has(.mgdw-workspace-layout) > :is(.mgdw-header, .mgdw-footer) {
        padding-inline: max(24px, calc((100% - 1312px) / 2));
    }
    .mgdw-workspace-layout {
        display: grid;
        grid-template-columns: minmax(0, 224px) minmax(0, 1fr);
        align-items: start;
        gap: 20px;
        margin-top: 16px;
    }
    .mgdw-nav {
        position: sticky;
        top: 14px;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        overflow: auto;
        scrollbar-gutter: stable;
        grid-template-columns: 1fr;
        margin: 0;
        padding: 4px;
    }
    .mgdw-nav-group ul { display: grid; gap: 4px; }
    .mgdw-nav a { display: flex; min-height: 35px; }
}

.mgdw-form { display: grid; gap: 13px; margin: 0; }
.mgdw-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.mgdw-field { display: grid; min-width: 0; align-content: start; gap: 5px; }
.mgdw-field label, label.mgdw-field { color: var(--mgdw-navy); font-size: .9rem; font-weight: 730; }
.mgdw-field small { color: var(--mgdw-muted); font-size: .84rem; }
.mgdw-field input, .mgdw-field select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 7px 10px;
    color: var(--mgdw-text);
    background: var(--mgdw-white);
    border: 1px solid #9caec7;
    border-radius: 8px;
}
.mgdw-field select { text-overflow: ellipsis; }
.mgdw-field input[type="file"]::file-selector-button {
    margin-inline-end: 8px;
    padding: 4px 8px;
    color: var(--mgdw-navy);
    background: var(--mgdw-tint);
    border: 0;
    border-radius: 5px;
    font: inherit;
    cursor: pointer;
}
.mgdw-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 13px;
    color: var(--mgdw-white);
    background: var(--mgdw-blue);
    border: 1px solid var(--mgdw-blue);
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 730;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.mgdw-shell .mgdw-button { font-size: .9rem; font-weight: 730; }
.mgdw-button:hover { background: #1a469e; border-color: #1a469e; }
.mgdw-button--secondary {
    color: var(--mgdw-navy);
    background: var(--mgdw-white);
    border-color: #9caec7;
}
.mgdw-button--secondary:hover { background: var(--mgdw-tint); border-color: #9caec7; }
.mgdw-shell a.mgdw-button--secondary { color: var(--mgdw-navy); }
.mgdw-company-controls { display: grid; gap: 10px; }
.mgdw-company-switch {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 13px 15px;
    background: var(--mgdw-white);
    border: 1px solid var(--mgdw-line);
    border-radius: 10px;
}
.mgdw-new-company { padding: 11px 15px; }
.mgdw-new-company summary { color: var(--mgdw-blue); font-size: .92rem; font-weight: 730; cursor: pointer; }
.mgdw-new-company[open] summary { margin-bottom: 14px; }
.mgdw-form--inline {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) auto;
    align-items: end;
}
.mgdw-entry-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgdw-action-row { grid-column: 1 / -1; }

.mgdw-currency + .mgdw-currency { margin-top: 16px; }
.mgdw-currency h3 { font-size: .9rem; color: var(--mgdw-muted); }
.mgdw-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.mgdw-metrics > div {
    min-width: 0;
    padding: 12px;
    background: #f3f7ff;
    border: 1px solid #dce7fa;
    border-radius: 8px;
}
.mgdw-metrics dt { color: var(--mgdw-muted); font-size: .85rem; font-weight: 700; }
.mgdw-metrics dd {
    color: var(--mgdw-navy);
    margin: 5px 0 0;
    font-size: clamp(1.05rem, 2.6vw, 1.48rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.mgdw-table-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--mgdw-line); border-radius: 8px; }
.mgdw-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: .9rem;
}
.mgdw-table th, .mgdw-table td {
    padding: 9px 11px;
    border-bottom: 1px solid var(--mgdw-line);
}
.mgdw-table th { color: var(--mgdw-muted); background: #f5f8fd; white-space: nowrap; }
.mgdw-table td { overflow-wrap: anywhere; }
.mgdw-table td:first-child { white-space: nowrap; }
.mgdw-table tbody tr:last-child td { border-bottom: 0; }
.mgdw-numeric { text-align: right; white-space: nowrap; }
.mgdw-record-groups { display: grid; gap: 14px; margin-top: 16px; }
.mgdw-record-group h3 { margin-bottom: 6px; }
.mgdw-record-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.mgdw-record-group .mgdw-record-list { margin-top: 0; }
.mgdw-record-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--mgdw-line);
    overflow-wrap: anywhere;
}
.mgdw-record-list li:last-child { border-bottom: 1px solid var(--mgdw-line); }
.mgdw-record-list li span { display: block; color: var(--mgdw-muted); font-size: .87rem; }
.mgdw-record-list li form { margin: 0; }
.mgdw-team-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.mgdw-team-roles > div { padding: 10px 12px; border-radius: 8px; background: #f4f7fb; }
.mgdw-team-roles dt { color: var(--mgdw-navy); font-weight: 730; }
.mgdw-team-roles dd { margin: 3px 0 0; color: var(--mgdw-muted); font-size: .9rem; }
.mgdw-visually-hidden, .mgdw-skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.mgdw-skip:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 10px 14px;
    color: #fff;
    background: #142644;
    border-radius: 7px;
    outline: 3px solid #a2c1ff;
    outline-offset: 2px;
}

.mgdw-auth {
    width: min(100%, 860px);
    margin: 0 auto;
}
.mgdw-auth-intro { max-width: 52ch; margin: 0 0 18px; }
.mgdw-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mgdw-auth-grid .mgdw-card .mgdw-form > .mgdw-button { justify-self: start; }
.mgdw-auth-confirm { margin-top: 14px; }
.mgdw-auth-confirm summary { color: var(--mgdw-blue); font-weight: 730; cursor: pointer; }
.mgdw-auth-confirm[open] summary { margin-bottom: 14px; }
.mgdw-card > p:last-child { margin-bottom: 0; }

@media (max-width: 680px) {
    .mgdw-form--inline, .mgdw-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mgdw-form--inline > .mgdw-button { justify-self: start; }
    .mgdw-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
    .mgdw-company-switch, .mgdw-form-row, .mgdw-form--inline, .mgdw-entry-form, .mgdw-auth-grid { grid-template-columns: 1fr; }
    .mgdw-team-roles, .mgdw-record-list li { grid-template-columns: 1fr; }
    .mgdw-record-list li > .mgdw-button { justify-self: start; }
    .mgdw-company-switch > .mgdw-button { justify-self: start; }
    .mgdw-table th, .mgdw-table td { padding: 7px 8px; }
}

.mgdw-panel-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.mgdw-stripe-status { margin: 0 0 12px; color: var(--mgdw-navy); font-weight: 730; }
#mgdw-stripe-subscription { margin-top: 16px; }
.mgdw-stripe-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mgdw-stripe-plan {
    min-width: 0;
    padding: 12px;
    color: var(--mgdw-text);
    background: #f4f7fb;
    border: 1px solid var(--mgdw-line);
    border-radius: 8px;
}
.mgdw-stripe-plan p { margin: 0; color: var(--mgdw-muted); }
.mgdw-stripe-plan p strong { color: var(--mgdw-navy); font-size: 1.13rem; }
.mgdw-stripe-plan form { margin-top: 9px; }
@media (max-width: 800px) {
    .mgdw-stripe-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .mgdw-stripe-plans { grid-template-columns: 1fr; }
}

.mgdw-panel-title--action { align-items: center; margin-bottom: 10px; }
.mgdw-panel-title--action h2 { margin: 0; }
.mgdw-tax-breakdown {
    display: inline-grid;
    min-width: 145px;
    gap: 2px;
    margin: 0;
}
.mgdw-tax-breakdown > div, .mgdw-document-total > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 9px;
    align-items: baseline;
}
.mgdw-tax-breakdown dt, .mgdw-legacy-tax { color: var(--mgdw-muted); font-size: .82rem; }
.mgdw-tax-breakdown dt { text-align: left; }
.mgdw-tax-breakdown dd, .mgdw-document-total dd { margin: 0; }
.mgdw-tax-total { font-weight: 800; }
.mgdw-legacy-tax { display: block; }

.mgdw-sales-editor summary, .mgdw-sales-extra summary {
    color: var(--mgdw-blue);
    font-weight: 730;
    cursor: pointer;
    padding-block: 4px;
}
.mgdw-sales-editor[open] > summary, .mgdw-sales-extra[open] > summary { margin-bottom: 12px; }
.mgdw-sales-hint { color: var(--mgdw-muted); margin: 0; font-size: .9rem; }
.mgdw-sales-lines { display: grid; gap: 11px; }
.mgdw-sales-line {
    min-width: 0;
    margin: 0;
    padding: 9px 11px 11px;
    border: 1px solid var(--mgdw-line);
    border-radius: 8px;
    background: #f8fafd;
}
.mgdw-sales-line legend { padding: 0 4px; font-size: .86rem; color: var(--mgdw-muted); font-weight: 730; }
.mgdw-sales-line-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.mgdw-document-view { display: grid; gap: 14px; }
.mgdw-document-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; }
.mgdw-document-controls p { margin: 0; font-size: .9rem; color: var(--mgdw-muted); }
.mgdw-document-view > .mgdw-notice { margin: 0; }
.mgdw-document-header { margin-bottom: 18px; }
.mgdw-document-header .mgdw-subtitle { margin-top: 0; }
.mgdw-document-label {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 8px;
    border: 1px solid var(--mgdw-line);
    border-radius: 5px;
    color: var(--mgdw-navy);
    font-size: .85rem;
    font-weight: 730;
}
.mgdw-document-party {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 0;
}
.mgdw-document-party dt { color: var(--mgdw-muted); font-size: .82rem; }
.mgdw-document-party dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.mgdw-document-lines { min-width: 630px; }
.mgdw-document-lines tbody th { white-space: normal; color: inherit; background: transparent; overflow-wrap: anywhere; }
.mgdw-document-lines tbody tr:last-child th { border-bottom: 0; }
.mgdw-line-rate { display: block; color: var(--mgdw-muted); }
.mgdw-document-total {
    width: min(100%, 320px);
    margin: 16px 0 0 auto;
    padding: 10px 13px;
    background: #f3f7ff;
    border: 1px solid var(--mgdw-line);
    border-radius: 7px;
}
.mgdw-document-total dd { text-align: right; overflow-wrap: anywhere; }
.mgdw-document-total .mgdw-tax-total { margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--mgdw-line); }
.mgdw-contract-section { margin-top: 16px; }
.mgdw-contract-section :is(h2, h3) { margin-bottom: .35em; }
:is(#mgdw-payroll, #mgdw-tax-sim) > .mgdw-card { margin-top: 14px; }

@media (max-width: 760px) {
    .mgdw-sales-line-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mgdw-sales-line-label { grid-column: 1 / -1; }
}

@media print {
    @page { size: A4; margin: 14mm; }
    .mgdw-page:has(.mgdw-document-paper) { color: #111; background: #fff; }
    .mgdw-page:has(.mgdw-document-paper) :is(.mgdw-header, .mgdw-footer, .mgdw-skip, .mgdw-screen-only) { display: none !important; }
    .mgdw-page:has(.mgdw-document-paper) :is(.mgdw-shell, .mgdw-main, .mgdw-document-view) {
        display: block;
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
    }
    .mgdw-document-paper { color: #111; border: 0; padding: 0; box-shadow: none; background: #fff; }
    .mgdw-document-paper :is(h1, h2, h3, dt) { color: #111; }
    .mgdw-document-paper h1 { font-size: 22pt; }
    .mgdw-document-paper .mgdw-table-scroll { overflow: visible; border: 0; border-radius: 0; }
    .mgdw-document-paper .mgdw-document-lines { width: 100%; min-width: 0; font-size: 9pt; }
    .mgdw-document-paper .mgdw-document-lines :is(th, td) { padding: 4pt; }
    .mgdw-document-paper .mgdw-document-lines th { white-space: normal; }
    .mgdw-document-paper .mgdw-document-lines thead { display: table-header-group; }
    .mgdw-document-paper .mgdw-document-lines tr { break-inside: avoid; }
    .mgdw-document-header, .mgdw-document-total { break-inside: avoid; }
    .mgdw-contract-section :is(h2, h3) { break-after: avoid; }
    .mgdw-document-paper p { orphans: 3; widows: 3; }
    .mgdw-document-total { background: #fff; }
}

.mgdw-demo-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px 18px;
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid #c8d9f5;
    border-radius: 10px;
    background: #edf4ff;
}
.mgdw-demo-banner strong { color: var(--mgdw-navy); }
.mgdw-demo-banner p { margin: 3px 0 0; color: var(--mgdw-muted); font-size: .9rem; }
.mgdw-demo-banner p a { font-weight: 700; }
.mgdw-demo-banner .mgdw-button { justify-self: start; }
.mgdw-demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mgdw-demo-actions form { margin: 0; }

.mgdw-feature-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.mgdw-feature-action { padding: 8px 12px; min-width: 0; border: 1px solid var(--mgdw-line); border-radius: 8px; background: #f8fafd; }
.mgdw-feature-section { margin-top: 16px; }
.mgdw-feature-section > h3 { margin-bottom: 8px; }
.mgdw-feature-section > .mgdw-table-scroll { margin-top: 8px; }
.mgdw-feature-section > .mgdw-empty { margin-top: 8px; }
.mgdw-alert-items { display: grid; gap: 7px; margin: 8px 0; padding: 0; list-style: none; }
.mgdw-alert-items li { padding: 8px 12px; border: 1px solid var(--mgdw-line); border-radius: 8px; overflow-wrap: anywhere; }
.mgdw-stock-table .mgdw-table { min-width: 535px; }
.mgdw-subordinate { display: block; color: var(--mgdw-muted); font-size: .83rem; }
.mgdw-stock-low {
    display: block;
    width: fit-content;
    margin: 4px 0 0 auto;
    padding: 2px 7px;
    border-radius: 16px;
    color: #734200;
    background: #fbefd9;
    font-size: .79rem;
    font-weight: 730;
}
.mgdw-bank-sample { justify-self: start; }
.mgdw-bank-transactions { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.mgdw-bank-transaction { padding: 10px 12px; border: 1px solid var(--mgdw-line); border-radius: 8px; }
.mgdw-bank-transaction-head { display: flex; justify-content: space-between; align-items: baseline; gap: 7px 12px; flex-wrap: wrap; }
.mgdw-bank-transaction-head div { min-width: 0; overflow-wrap: anywhere; }
.mgdw-bank-amount { color: var(--mgdw-navy); white-space: nowrap; }
.mgdw-bank-match { grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin-top: 8px; }
.mgdw-bank-match button { margin-top: 25px; }
.mgdw-bank-match-state { margin: 6px 0 0; color: var(--mgdw-muted); font-size: .88rem; }
.mgdw-bank-match-state--linked strong { color: var(--mgdw-success); }
.mgdw-bank-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; color: var(--mgdw-muted); font-size: .9rem; }
@media (max-width: 650px) {
    .mgdw-demo-banner, .mgdw-feature-actions { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
    .mgdw-bank-match { grid-template-columns: 1fr; }
    .mgdw-bank-match button { margin-top: 0; justify-self: start; }
}
