.mbbbt-dashboard {
    --mbbbt-ink: #f7f7f7;
    --mbbbt-muted: #9b9b9b;
    --mbbbt-line: rgba(255, 255, 255, .12);
    --mbbbt-paper: #111111;
    --mbbbt-soft: #191919;
    --mbbbt-accent: #ffffff;
    color: var(--mbbbt-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: grid;
    gap: 24px;
    grid-template-columns: 248px minmax(0, 1fr);
    margin: 0;
    max-width: none;
    padding: 18px 24px 28px;
}

.mbbbt-app-body {
    background: #050505;
    color: #f7f7f7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.mbbbt-app-body:before {
    animation: mbbbtAmbient 16s ease-in-out infinite alternate;
    background: rgba(255, 255, 255, .07);
    content: "";
    filter: blur(42px);
    height: 340px;
    left: 10vw;
    pointer-events: none;
    position: fixed;
    top: -120px;
    transform: rotate(-8deg);
    width: 70vw;
    z-index: -1;
}

.mbbbt-dashboard *,
.mbbbt-invoice-shell * {
    box-sizing: border-box;
}

.mbbbt-dashboard button,
.mbbbt-dashboard input,
.mbbbt-dashboard select,
.mbbbt-dashboard textarea,
.mbbbt-invoice-shell button,
.mbbbt-invoice-shell input,
.mbbbt-invoice-shell select,
.mbbbt-invoice-shell textarea {
    font: inherit;
}

.mbbbt-modal-open {
    overflow: hidden;
}

.mbbbt-dashboard-header {
    align-items: center;
    background: linear-gradient(135deg, #151515 0%, #0d0d0d 70%, #202020 100%);
    border: 1px solid var(--mbbbt-line);
    border-radius: 22px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 86px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    transform-style: preserve-3d;
}

.mbbbt-dashboard-header:before {
    background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 58%);
    content: "";
    inset: 0;
    opacity: .78;
    position: absolute;
}

.mbbbt-dashboard-header > * {
    position: relative;
}

.mbbbt-kicker,
.mbbbt-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 7px 10px;
}

.mbbbt-dashboard-header h2 {
    color: var(--mbbbt-ink);
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.mbbbt-dashboard-header p,
.mbbbt-side-panel p {
    color: var(--mbbbt-muted);
    font-size: 15px;
    margin: 0;
}

.mbbbt-metrics span,
.mbbbt-invoice-title span,
.mbbbt-invoice-meta span {
    color: var(--mbbbt-muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.mbbbt-invoice-actions a,
.mbbbt-invoice-doc button,
.mbbbt-account-form button {
    align-items: center;
    background: #101010;
    border: 1px solid var(--mbbbt-line);
    border-radius: 999px;
    color: var(--mbbbt-ink);
    display: inline-flex;
    font-weight: 700;
    min-height: 38px;
    padding: 0 13px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mbbbt-invoice-actions a:hover,
.mbbbt-invoice-doc button:hover {
    border-color: #fff;
    transform: translateY(-1px);
}

.mbbbt-invoice-actions .mbbbt-pay,
.mbbbt-account-form button,
.mbbbt-profile-form button,
.mbbbt-tier-form button {
    background: #fff;
    border-color: #fff;
    color: #050505;
}

.mbbbt-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 14px 0;
}

.mbbbt-metrics > div,
.mbbbt-side-panel,
.mbbbt-invoice-card,
.mbbbt-project-card,
.mbbbt-empty {
    background: rgba(18, 18, 18, .86);
    backdrop-filter: blur(18px);
    border: 1px solid var(--mbbbt-line);
    border-radius: 24px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .34);
}

.mbbbt-metrics > div {
    min-height: 96px;
    padding: 16px;
    transition: transform .22s ease, box-shadow .22s ease;
}

.mbbbt-metrics > div:hover {
    box-shadow: 0 24px 72px rgba(0, 0, 0, .46);
    transform: translateY(-2px) scale(1.01);
}

.mbbbt-metrics strong {
    display: block;
    font-size: 25px;
    margin-top: 6px;
}

.mbbbt-nav {
    align-self: start;
    background: rgba(14, 14, 14, .88);
    backdrop-filter: blur(22px);
    border: 1px solid var(--mbbbt-line);
    border-radius: 24px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .36);
    min-height: calc(100vh - 36px);
    padding: 16px;
    position: sticky;
    top: 18px;
}

.mbbbt-combo-logo {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    min-height: 46px;
}

.mbbbt-dashboard-logo {
    display: block;
    height: auto;
    max-height: 48px;
    max-width: 178px;
    object-fit: contain;
    width: auto;
}

.mbbbt-logo-mark {
    align-items: center;
    background: transparent;
    border-radius: 0;
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    width: 42px;
}

.mbbbt-logo-mark img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.mbbbt-logo-divider {
    color: rgba(255, 255, 255, .34);
    font-weight: 700;
}

.mbbbt-nav nav {
    display: grid;
    gap: 6px;
}

.mbbbt-nav a,
.mbbbt-tool-link,
.mbbbt-tool-actions a,
.mbbbt-tool-actions button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #dcdcdc;
    display: flex;
    gap: 11px;
    min-height: 42px;
    padding: 0 11px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.mbbbt-nav a:hover,
.mbbbt-nav a.is-active,
.mbbbt-tool-link:hover,
.mbbbt-tool-actions a:hover,
.mbbbt-tool-actions button:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
    transform: translateY(-1px);
}

.mbbbt-nav a.is-active {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.mbbbt-nav svg,
.mbbbt-tool-link svg,
.mbbbt-tool-actions svg {
    flex: 0 0 auto;
    height: 19px;
    width: 19px;
}

.mbbbt-workspace {
    display: grid;
    gap: 18px;
    margin-right: auto;
    max-width: 1180px;
    min-width: 0;
    width: 100%;
}

.mbbbt-view {
    scroll-margin-top: 24px;
}

.mbbbt-page-head {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 0 0 2px;
}

.mbbbt-page-head h1 {
    color: var(--mbbbt-ink);
    font-size: clamp(31px, 4vw, 48px);
    letter-spacing: 0;
    line-height: .95;
    margin: 10px 0 0;
}

.mbbbt-profile-layout,
.mbbbt-subscription-grid,
.mbbbt-upcoming-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mbbbt-profile-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
}

.mbbbt-upcoming-grid {
    background: rgba(18, 18, 18, .86);
    backdrop-filter: blur(18px);
    border: 1px solid var(--mbbbt-line);
    border-radius: 24px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .34);
    grid-template-columns: 1fr;
    padding: 8px 18px;
}

.mbbbt-section-head h2,
.mbbbt-side-panel h2 {
    color: var(--mbbbt-ink);
    font-size: 24px;
    letter-spacing: 0;
    margin: 22px 0 12px;
}

.mbbbt-invoice-list {
    display: grid;
    gap: 12px;
}

.mbbbt-project-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.mbbbt-project-card {
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mbbbt-project-card:hover {
    border-color: rgba(255, 255, 255, .24);
    box-shadow: 0 28px 86px rgba(0, 0, 0, .48);
    transform: translateY(-2px);
}

.mbbbt-project-top {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.mbbbt-project-card h3 {
    color: var(--mbbbt-ink);
    font-size: 24px;
    margin: 12px 0 7px;
}

.mbbbt-project-card p,
.mbbbt-project-meta {
    color: var(--mbbbt-muted);
}

.mbbbt-progress {
    background: rgba(255, 255, 255, .09);
    border-radius: 999px;
    height: 12px;
    margin: 22px 0 12px;
    overflow: hidden;
}

.mbbbt-progress span {
    background: #fff;
    border-radius: inherit;
    box-shadow: 0 0 24px rgba(255,255,255,.22);
    display: block;
    height: 100%;
    transition: width .7s cubic-bezier(.2, .7, .2, 1);
}

.mbbbt-project-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    justify-content: space-between;
}

.mbbbt-invoice-card {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mbbbt-invoice-card:hover {
    border-color: rgba(255,255,255,.24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
    transform: translateY(-2px);
}

.mbbbt-invoice-card h3 {
    color: var(--mbbbt-ink);
    font-size: 22px;
    margin: 9px 0 4px;
}

.mbbbt-invoice-card p {
    color: var(--mbbbt-muted);
    margin: 0;
}

.mbbbt-invoice-actions {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto auto auto auto;
    justify-content: end;
}

.mbbbt-invoice-actions strong {
    color: var(--mbbbt-ink);
    font-size: 20px;
    white-space: nowrap;
}

.mbbbt-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    text-transform: uppercase;
}

.mbbbt-status.is-paid {
    background: #fff;
    color: #050505;
}

.mbbbt-status.is-sent,
.mbbbt-status.is-draft {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.mbbbt-status.is-overdue {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.mbbbt-side-panel {
    padding: 18px;
    position: relative;
}

.mbbbt-side-panel:before {
    background: linear-gradient(110deg, rgba(255,255,255,.08), transparent 46%);
    border-radius: inherit;
    content: "";
    inset: 1px;
    pointer-events: none;
    position: absolute;
}

.mbbbt-side-panel + .mbbbt-side-panel {
    margin-top: 18px;
}

.mbbbt-subscription {
    border-top: 1px solid var(--mbbbt-line);
    display: grid;
    gap: 5px;
    padding: 14px 0;
}

.mbbbt-subscription-grid .mbbbt-subscription {
    background: rgba(18, 18, 18, .86);
    border: 1px solid var(--mbbbt-line);
    border-radius: 24px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .34);
    padding: 20px;
}

.mbbbt-subscription:first-of-type {
    border-top: 0;
}

.mbbbt-perks {
    color: var(--mbbbt-muted);
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 4px 0 8px;
    padding: 0;
}

.mbbbt-perks li:before {
    color: #fff;
    content: "•";
    margin-right: 7px;
}

.mbbbt-subscription span {
    color: var(--mbbbt-ink);
    font-weight: 800;
}

.mbbbt-subscription small {
    color: var(--mbbbt-muted);
}

.mbbbt-subscription a {
    color: var(--mbbbt-ink);
    font-weight: 800;
}

.mbbbt-account-form,
.mbbbt-profile-form,
.mbbbt-tier-form {
    display: grid;
    gap: 11px;
}

.mbbbt-profile-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr .8fr 1fr;
}

.mbbbt-account-form input,
.mbbbt-profile-form input,
.mbbbt-tier-form select {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: #fff;
    min-height: 44px;
    outline: none;
    padding: 0 13px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mbbbt-account-form input:focus,
.mbbbt-profile-form input:focus,
.mbbbt-tier-form select:focus {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .07);
}

.mbbbt-account-form input:disabled,
.mbbbt-profile-form input:disabled,
.mbbbt-tier-form select:disabled {
    color: rgba(255, 255, 255, .42);
    cursor: not-allowed;
    opacity: .7;
}

.mbbbt-account-form input[aria-invalid="true"],
.mbbbt-profile-form input[aria-invalid="true"],
.mbbbt-tier-form select[aria-invalid="true"],
.mbbbt-account-form input.is-error,
.mbbbt-profile-form input.is-error,
.mbbbt-tier-form select.is-error {
    border-color: rgba(255, 255, 255, .72);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

.mbbbt-account-form input::placeholder,
.mbbbt-profile-form input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.mbbbt-profile-form button,
.mbbbt-tier-form button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
}

.mbbbt-bank-box {
    display: grid;
    gap: 8px;
}

.mbbbt-bank-box strong {
    color: var(--mbbbt-ink);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.mbbbt-bank-box span,
.mbbbt-bank-box small,
.mbbbt-bank-box em {
    color: var(--mbbbt-muted);
}

.mbbbt-upcoming {
    align-items: center;
    border-top: 1px solid var(--mbbbt-line);
    display: grid;
    gap: 4px;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    padding: 12px 0;
}

.mbbbt-upcoming:first-of-type {
    border-top: 0;
}

.mbbbt-upcoming span,
.mbbbt-upcoming small {
    color: var(--mbbbt-muted);
    font-size: 13px;
}

.mbbbt-empty {
    align-items: flex-start;
    color: var(--mbbbt-muted);
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 24px;
}

.mbbbt-empty svg {
    color: #fff;
    height: 22px;
    opacity: .72;
    width: 22px;
}

.mbbbt-empty strong {
    color: var(--mbbbt-ink);
    font-size: 18px;
}

.mbbbt-empty p {
    margin: 0;
}

.mbbbt-animate-in {
    animation: mbbbtRise .55s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes mbbbtRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mbbbtAmbient {
    from {
        opacity: .56;
        transform: translate3d(-2vw, 0, 0) rotate(-8deg);
    }
    to {
        opacity: .86;
        transform: translate3d(4vw, 30px, 0) rotate(4deg);
    }
}

.mbbbt-login-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
}

.mbbbt-invoice-body {
    background: #050505;
    margin: 0;
}

.mbbbt-invoice-shell {
    display: grid;
    gap: 28px;
    grid-template-columns: 320px minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1320px;
    padding: 28px;
}

.mbbbt-invoice-tools {
    align-self: start;
    background: rgba(14, 14, 14, .9);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    color: #f7f7f7;
    display: grid;
    gap: 22px;
    padding: 20px;
    position: sticky;
    top: 28px;
}

.mbbbt-invoice-tools h1 {
    font-size: 28px;
    margin: 12px 0;
}

.mbbbt-invoice-tools strong {
    display: block;
    font-size: 22px;
    margin-bottom: 12px;
}

.mbbbt-tool-actions {
    display: grid;
    gap: 10px;
}

.mbbbt-tool-actions button {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.mbbbt-tool-actions .mbbbt-tool-primary {
    background: #fff;
    border-color: #fff;
    color: #050505;
}

.mbbbt-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    position: fixed;
    z-index: 2147483000;
}

.mbbbt-modal.is-open {
    display: flex;
}

.mbbbt-modal-backdrop {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, .78);
    inset: 0;
    position: fixed;
}

.mbbbt-modal-card {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    box-shadow: 0 34px 110px rgba(0, 0, 0, .56);
    color: #f7f7f7;
    max-height: calc(100dvh - 48px);
    max-width: 540px;
    overflow: auto;
    padding: 26px;
    position: relative;
    width: min(540px, calc(100vw - 32px));
    z-index: 1;
}

.mbbbt-modal-card h2 {
    color: #fff;
    font-size: 28px;
    margin: 12px 0 18px;
}

.mbbbt-modal-card p {
    color: #bdbdbd;
    line-height: 1.55;
    margin: 14px 0 0;
}

.mbbbt-modal-close {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
}

.mbbbt-bank-lines {
    display: grid;
    gap: 10px;
}

.mbbbt-bank-lines > div {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    display: grid;
    gap: 5px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.mbbbt-bank-lines span {
    color: #8f8f8f;
    font-size: 12px;
    font-weight: 700;
    grid-column: 1 / -1;
}

.mbbbt-bank-lines strong {
    color: #fff;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.mbbbt-bank-lines button {
    align-self: center;
    justify-self: end;
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: #050505;
    cursor: pointer;
    font-weight: 800;
    min-height: 30px;
    padding: 0 12px;
}

.mbbbt-modal-note {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 14px;
}

.mbbbt-invoice-preview {
    min-width: 0;
}

.mbbbt-invoice-doc {
    background: #f4f4f4;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 2px;
    box-shadow: 0 34px 110px rgba(0, 0, 0, .38);
    color: #030303;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    margin: 0 auto;
    max-width: 900px;
    min-height: 1120px;
    padding: 34px;
}

.mbbbt-invoice-brandline {
    margin-bottom: 70px;
}

.mbbbt-invoice-title h1 {
    color: #000;
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 760;
    letter-spacing: 0;
    line-height: .9;
    margin: 0;
}

.mbbbt-invoice-title img {
    background: transparent;
    border: 0;
    height: 54px;
    margin-bottom: 16px;
    max-width: 190px;
    object-fit: contain;
    width: auto;
}

.mbbbt-invoice-meta-row {
    align-items: end;
    border-bottom: 2px solid #000;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr auto;
    margin-bottom: 8px;
    padding-bottom: 16px;
}

.mbbbt-invoice-meta-row strong {
    display: block;
    font-size: 16px;
    line-height: 1.15;
}

.mbbbt-invoice-meta-row h2 {
    font-size: 46px;
    font-weight: 820;
    line-height: .9;
    margin: 0;
}

.mbbbt-invoice-table {
    border-collapse: collapse;
    width: 100%;
}

.mbbbt-invoice-table th,
.mbbbt-invoice-table td {
    border-bottom: 0;
    padding: 13px 6px;
    text-align: left;
}

.mbbbt-invoice-table th {
    color: #000;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.mbbbt-invoice-table td {
    font-size: 12px;
    font-weight: 800;
}

.mbbbt-invoice-summary {
    align-items: flex-end;
    flex-direction: column;
    margin: 150px 0 190px;
}

.mbbbt-invoice-summary div {
    display: flex;
    justify-content: space-between;
    min-width: 300px;
}

.mbbbt-invoice-summary strong {
    margin-left: 28px;
}

.mbbbt-invoice-summary .mbbbt-total {
    border-top: 2px solid #000;
    color: #000;
    font-size: 22px;
    font-weight: 900;
    margin-top: 10px;
    padding-top: 10px;
}

.mbbbt-invoice-payment {
    border-top: 2px solid #000;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr 1fr;
    padding-top: 16px;
}

.mbbbt-invoice-payment h2 {
    font-size: 38px;
    font-weight: 820;
    line-height: .9;
    margin: 0 0 18px;
}

.mbbbt-invoice-payment p,
.mbbbt-invoice-payment small,
.mbbbt-invoice-payment span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

@media (max-width: 1180px) {
    .mbbbt-dashboard {
        grid-template-columns: 220px minmax(0, 1fr);
        padding: 16px;
    }

    .mbbbt-nav {
        padding: 14px;
    }

    .mbbbt-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbbbt-invoice-actions {
        grid-template-columns: repeat(2, auto);
    }
}

@media (max-width: 860px) {
    .mbbbt-dashboard,
    .mbbbt-invoice-shell {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .mbbbt-nav {
        min-height: 0;
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .mbbbt-invoice-tools {
        min-height: 0;
        position: static;
    }

    .mbbbt-combo-logo {
        margin-bottom: 12px;
        min-height: 36px;
    }

    .mbbbt-dashboard-logo {
        max-height: 38px;
        max-width: 150px;
    }

    .mbbbt-nav nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .mbbbt-nav nav::-webkit-scrollbar {
        display: none;
    }

    .mbbbt-nav a {
        flex: 0 0 auto;
        min-height: 38px;
        white-space: nowrap;
    }

    .mbbbt-dashboard-header,
    .mbbbt-invoice-card,
    .mbbbt-invoice-doc header,
    .mbbbt-invoice-meta-row {
        align-items: stretch;
    }

    .mbbbt-profile-layout,
    .mbbbt-subscription-grid,
    .mbbbt-upcoming-grid,
    .mbbbt-invoice-meta-row,
    .mbbbt-invoice-payment {
        grid-template-columns: 1fr;
    }

    .mbbbt-invoice-card {
        grid-template-columns: 1fr;
    }

    .mbbbt-invoice-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .mbbbt-invoice-actions strong,
    .mbbbt-invoice-actions .mbbbt-status {
        justify-self: start;
    }

    .mbbbt-profile-grid,
    .mbbbt-project-top {
        grid-template-columns: 1fr;
    }

    .mbbbt-project-top {
        flex-direction: column;
    }

    .mbbbt-invoice-summary div {
        min-width: 0;
    }

    .mbbbt-invoice-title,
    .mbbbt-invoice-actions {
        justify-content: flex-start;
    }

    .mbbbt-invoice-doc {
        margin: 0;
        min-width: 680px;
        min-height: 0;
        padding: 22px;
    }

    .mbbbt-invoice-preview {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .mbbbt-invoice-title h1,
    .mbbbt-invoice-meta-row h2 {
        font-size: 38px;
    }

    .mbbbt-invoice-summary {
        margin: 60px 0;
    }

    .mbbbt-invoice-table {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .mbbbt-dashboard {
        gap: 14px;
        padding: 10px;
    }

    .mbbbt-nav {
        border-radius: 18px;
        padding: 12px;
    }

    .mbbbt-nav a span {
        font-size: 13px;
    }

    .mbbbt-workspace {
        gap: 14px;
    }

    .mbbbt-page-head h1 {
        font-size: 31px;
    }

    .mbbbt-dashboard-header {
        border-radius: 20px;
        min-height: 0;
        padding: 16px;
    }

    .mbbbt-dashboard-header h2 {
        font-size: 24px;
    }

    .mbbbt-metrics {
        grid-template-columns: 1fr;
    }

    .mbbbt-metrics > div {
        min-height: 86px;
    }

    .mbbbt-side-panel,
    .mbbbt-invoice-card,
    .mbbbt-project-card,
    .mbbbt-empty,
    .mbbbt-subscription-grid .mbbbt-subscription,
    .mbbbt-upcoming-grid {
        border-radius: 20px;
    }

    .mbbbt-upcoming {
        grid-template-columns: 1fr;
    }

    .mbbbt-invoice-actions {
        grid-template-columns: 1fr;
    }

    .mbbbt-invoice-actions a,
    .mbbbt-invoice-actions .mbbbt-status {
        justify-content: center;
        width: 100%;
    }

    .mbbbt-invoice-shell {
        gap: 14px;
        padding: 10px;
    }

    .mbbbt-invoice-tools {
        border-radius: 20px;
        gap: 16px;
        padding: 16px;
    }

    .mbbbt-tool-actions a,
    .mbbbt-tool-actions button {
        justify-content: center;
    }

    .mbbbt-modal {
        padding: 12px;
    }

    .mbbbt-modal-card {
        border-radius: 20px;
        max-height: calc(100dvh - 24px);
        padding: 22px;
        width: 94vw;
    }

    .mbbbt-bank-lines > div {
        grid-template-columns: 1fr;
    }

    .mbbbt-bank-lines button {
        justify-self: start;
    }
}

@media print {
    @page {
        margin: 12mm;
        size: A4;
    }

    .mbbbt-invoice-body {
        background: #fff;
    }

    .mbbbt-invoice-shell {
        display: block;
        padding: 0;
    }

    .mbbbt-invoice-tools {
        display: none;
    }

    .mbbbt-modal {
        display: none !important;
    }

    .mbbbt-invoice-doc {
        border: 0;
        box-shadow: none;
        margin: 0;
        max-width: none;
        min-width: 0;
        min-height: auto;
        padding: 0;
    }

    .mbbbt-invoice-doc button {
        display: none;
    }
}
