.mobile-booklet-screen {
    display: grid;
    gap: 12px;
}

.mobile-booklet-loading,
.booklet-empty {
    border: 1px solid var(--mobile-border);
    border-radius: 14px;
    background: #fff;
    color: var(--mobile-muted);
    padding: 18px;
    text-align: center;
}

.mobile-booklet-loading strong,
.mobile-booklet-loading span {
    display: block;
}

.mobile-booklet-loading strong {
    color: var(--mobile-primary);
    margin-bottom: 4px;
}

.booklet-empty.error {
    color: #9f1c1c;
    background: #fdeaea;
}

.booklet-hero-card,
.booklet-mobile-panel,
.booklet-progress-card {
    border: 1px solid var(--mobile-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.booklet-hero-card {
    display: grid;
}

.booklet-hero-card img {
    width: 100%;
    object-fit: cover;
    background: #e9eef3;
}

.booklet-hero-card div {
    padding: 12px;
}

.booklet-hero-card small,
.booklet-hero-card strong,
.booklet-hero-card span {
    display: block;
}

.booklet-hero-card small {
    color: var(--mobile-secondary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.booklet-hero-card strong {
    color: var(--mobile-primary);
    font-size: 18px;
    line-height: 23px;
}

.booklet-hero-card span {
    color: var(--mobile-muted);
    font-size: 13px;
    margin-top: 3px;
}

.booklet-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.booklet-summary-grid div {
    border: 1px solid var(--mobile-border);
    border-radius: 12px;
    background: #fff;
    padding: 12px 8px;
    text-align: center;
}

.booklet-summary-grid strong,
.booklet-summary-grid span {
    display: block;
}

.booklet-summary-grid strong {
    color: var(--mobile-primary);
    font-size: 23px;
    line-height: 26px;
}

.booklet-summary-grid span {
    color: var(--mobile-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.booklet-progress-card {
    padding: 12px;
}

.booklet-progress-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.booklet-progress-card span {
    color: var(--mobile-muted);
    font-size: 12px;
    font-weight: 800;
}

.booklet-progress-card strong {
    color: var(--mobile-primary);
    font-size: 16px;
}

.booklet-progress-card progress {
    width: 100%;
    height: 10px;
    accent-color: var(--mobile-primary);
}

.booklet-mobile-panel {
    padding: 12px;
}

.booklet-panel-heading {
    border-bottom: 1px solid var(--mobile-border);
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.booklet-panel-heading span,
.booklet-panel-heading small {
    display: block;
}

.booklet-panel-heading span {
    color: var(--mobile-primary);
    font-size: 16px;
    font-weight: 900;
}

.booklet-panel-heading small {
    color: var(--mobile-muted);
    font-size: 12px;
    line-height: 16px;
    margin-top: 2px;
}

.booklet-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.booklet-month {
    border: 1px solid var(--mobile-border);
    border-radius: 12px;
    min-height: 76px;
    padding: 9px;
    text-align: center;
}

.booklet-month input {
    accent-color: var(--mobile-primary);
    margin-bottom: 4px;
}

.booklet-month span,
.booklet-month small {
    display: block;
}

.booklet-month span {
    color: var(--mobile-primary);
    font-size: 14px;
    font-weight: 900;
}

.booklet-month small {
    color: var(--mobile-muted);
    font-size: 11px;
    font-weight: 800;
}

.booklet-month.paid {
    background: #e9f7ef;
    border-color: #bfe6cc;
}

.booklet-month.pending {
    background: #fff7e6;
    border-color: #f1d79d;
}

.booklet-month.open {
    background: #fff;
}

.booklet-payment-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.booklet-payment-preview div {
    border-radius: 12px;
    background: #f4f6f8;
    padding: 10px;
}

.booklet-payment-preview small,
.booklet-payment-preview strong {
    display: block;
}

.booklet-payment-preview small {
    color: var(--mobile-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.booklet-payment-preview strong {
    color: var(--mobile-primary);
    font-size: 18px;
}

.booklet-proof-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.booklet-proof-field span {
    color: var(--mobile-primary);
    font-size: 12px;
    font-weight: 900;
}

.booklet-proof-field input {
    border: 1px dashed var(--mobile-border);
    border-radius: 10px;
    color: var(--mobile-muted);
    font-size: 12px;
    padding: 10px;
}

[data-booklet-payment-form] button[type="submit"],
.booklet-pix-box button,
.booklet-reject-reason button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--mobile-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
    width: 100%;
}

[data-booklet-payment-form] button[type="submit"]:disabled {
    opacity: 0.55;
}

.booklet-pix-box {
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 8px;
}

.booklet-pix-box input {
    border: 1px solid var(--mobile-border);
    border-radius: 10px;
    color: var(--mobile-text);
    font-size: 13px;
    min-width: 0;
    padding: 9px 10px;
}

.booklet-pix-qr {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.booklet-payment-list {
    display: grid;
    gap: 8px;
}

.booklet-payment-card {
    border: 1px solid var(--mobile-border);
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 10px;
}

.booklet-payment-card div small,
.booklet-payment-card div strong,
.booklet-payment-card div span {
    display: block;
}

.booklet-payment-card div small {
    color: var(--mobile-muted);
    font-size: 11px;
}

.booklet-payment-card div strong {
    color: var(--mobile-primary);
    font-size: 17px;
}

.booklet-payment-card div span {
    color: var(--mobile-muted);
    font-size: 12px;
}

.booklet-payment-status {
    justify-self: start;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 9px;
    text-transform: uppercase;
}

.booklet-payment-card.paid .booklet-payment-status {
    background: #e8f7ee;
    color: #116735;
}

.booklet-payment-card.pending .booklet-payment-status {
    background: #fff7e6;
    color: #8a5a00;
}

.booklet-payment-card.rejected .booklet-payment-status {
    background: #fdeaea;
    color: #9f1c1c;
}

.booklet-payment-card a {
    color: var(--mobile-secondary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.booklet-reject-box {
    display: grid;
    gap: 8px;
}

.booklet-reject-reason {
    border-radius: 10px;
    background: #fff5f5;
    padding: 9px;
}

.booklet-reject-reason p,
.booklet-reject-reason small {
    color: #8f1f1f;
    display: block;
    font-size: 12px;
    line-height: 16px;
    margin: 2px 0 7px;
}

.booklet-reject-reason textarea {
    border: 1px solid #efc9c9;
    border-radius: 10px;
    font-size: 13px;
    min-height: 78px;
    padding: 8px;
    width: 100%;
}

.booklet-mobile-toast {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 86px;
    z-index: 3000;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 12px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.booklet-mobile-toast.is-success {
    background: #116735;
}

.booklet-mobile-toast.is-error {
    background: #9f1c1c;
}

@media (max-width: 360px) {
    .booklet-summary-grid,
    .booklet-payment-preview,
    .booklet-pix-box {
        grid-template-columns: 1fr;
    }

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