* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0f766e, #134e4a);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 38px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
}

.login-header h1 {
    margin-bottom: 7px;
}

.login-header p {
    color: #6b7280;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-login:hover {
    background: #115e59;
}

.alert {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 7px;
    text-align: center;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.dashboard-page {
    min-height: 100vh;
    background: #f3f4f6;
}

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #0f766e;
    color: #ffffff;
}

.topbar span,
.usuario-logado small {
    display: block;
    margin-top: 3px;
    color: #ccfbf1;
}

.usuario-logado {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: right;
}

.btn-sair {
    padding: 10px 17px;
    border-radius: 7px;
    background: #ffffff;
    color: #0f766e;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-content {
    padding: 30px;
}

.welcome-card {
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.welcome-card h1 {
    margin-bottom: 10px;
    color: #0f766e;
}

.app-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f3f4f6;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 260px;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #ffffff;
    transition: width 0.25s ease;
}

.sidebar.collapsed {
    width: 82px;
}

.sidebar-header {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.sidebar-logo {
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #14b8a6;
    color: #ffffff;
    font-weight: bold;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.sidebar-brand small {
    margin-top: 3px;
    color: #94a3b8;
}

.sidebar-menu {
    flex: 1;
    padding: 18px 12px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 7px;
    padding: 0 15px;
    border-radius: 9px;
    color: #cbd5e1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: 0.2s;
}

.menu-item:hover,
.menu-item.active {
    background: #0f766e;
    color: #ffffff;
}

.menu-item i {
    min-width: 22px;
    font-size: 20px;
    text-align: center;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 14px;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 0;
}

.app-main {
    min-height: 100vh;
    margin-left: 260px;
    transition: margin-left 0.25s ease;
}

.sidebar-collapsed .app-main {
    margin-left: 82px;
}

.app-topbar {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 9px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: #e2e8f0;
}

.page-title {
    flex: 1;
}

.page-title h2 {
    color: #0f172a;
    font-size: 22px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info small {
    margin-top: 3px;
    color: #64748b;
}

.app-content {
    padding: 28px;
}

.welcome-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
}

.welcome-panel h1 {
    margin-bottom: 8px;
}

.welcome-panel i {
    font-size: 55px;
    opacity: 0.85;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 20px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.07);
}

.dashboard-card span {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
}

.dashboard-card strong {
    font-size: 27px;
    color: #0f172a;
}

.card-icon {
    min-width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 24px;
}

.card-icon.blue {
    background: #2563eb;
}

.card-icon.purple {
    background: #7c3aed;
}

.card-icon.green {
    background: #16a34a;
}

.card-icon.red {
    background: #dc2626;
}

@media (max-width: 1000px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        width: 82px;
    }

    .sidebar-brand,
    .menu-text {
        display: none;
    }

    .sidebar-header,
    .menu-item {
        justify-content: center;
    }

    .app-main,
    .sidebar-collapsed .app-main {
        margin-left: 82px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .user-info {
        display: none;
    }

    .app-content {
        padding: 18px;
    }
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.content-header h1 {
    margin-bottom: 6px;
    color: #0f172a;
}

.content-header p {
    color: #64748b;
}

.btn-primary,
.btn-secondary {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: #0f766e;
    color: #ffffff;
}

.btn-primary:hover {
    background: #115e59;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.table-card,
.form-card {
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.07);
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.text-center {
    text-align: center !important;
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.btn-icon {
    width: 37px;
    height: 37px;
    border: none;
    border-radius: 7px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 16px;
}

.btn-icon:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state > i {
    display: block;
    margin-bottom: 15px;
    color: #94a3b8;
    font-size: 55px;
}

.empty-state h2 {
    margin-bottom: 8px;
    color: #334155;
}

.empty-state p {
    margin-bottom: 22px;
    color: #64748b;
}

.form-container {
    display: flex;
    justify-content: center;
}

.form-card {
    width: 100%;
    max-width: 850px;
    padding: 30px;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.form-card-header h1 {
    margin-bottom: 5px;
    color: #0f172a;
}

.form-card-header p {
    color: #64748b;
}

.form-card-icon {
    min-width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    margin-bottom: 7px;
    color: #334155;
    font-weight: bold;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1f2937;
    font: inherit;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-field textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 700px) {
    .content-header {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full-width {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-disable {
    background: #fee2e2;
    color: #dc2626;
}

.btn-enable {
    background: #dcfce7;
    color: #16a34a;
}

.btn-icon:hover {
    filter: brightness(0.95);
}

.search-card {
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    min-height: 43px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.search-form input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-section-title {
    margin: 28px 0 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f766e;
    font-size: 17px;
    font-weight: bold;
}

.form-card-header + form .form-section-title:first-child {
    margin-top: 0;
}

@media (max-width: 700px) {
    .search-form {
        flex-direction: column;
    }
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    background: #ccfbf1;
    color: #0f766e;
}

.details-card,
.status-card {
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.07);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.detail-item span {
    color: #64748b;
    font-size: 14px;
}

.detail-item strong {
    color: #0f172a;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.status-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.status-form {
    display: flex;
    gap: 10px;
}

.status-form select {
    min-width: 170px;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.status-ativo {
    background: #dcfce7;
    color: #166534;
}

.status-inativo {
    background: #e2e8f0;
    color: #475569;
}

.status-suspenso {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelado {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 700px) {
    .header-actions,
    .status-form {
        flex-direction: column;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-item.full-width {
        grid-column: auto;
    }

    .status-card {
        align-items: stretch;
        flex-direction: column;
    }
}

.table-subtitle {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.financial-filter {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 1fr 1fr auto auto;
    align-items: end;
    gap: 12px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field label {
    color: #475569;
    font-size: 13px;
    font-weight: bold;
}

.filter-field input,
.filter-field select {
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
}

.financial-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 260px));
    gap: 16px;
    margin-bottom: 20px;
}

.financial-summary article {
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

.financial-summary span {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
}

.financial-summary strong {
    color: #0f766e;
    font-size: 23px;
}

.financial-form-card {
    max-width: 700px;
}

.financial-warning {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 15px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1e40af;
}

.status-pendente {
    background: #fef3c7;
    color: #92400e;
}

.status-atrasada {
    background: #fee2e2;
    color: #991b1b;
}

.status-paga {
    background: #dcfce7;
    color: #166534;
}

.status-cancelada {
    background: #e2e8f0;
    color: #475569;
}

@media (max-width: 900px) {
    .financial-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .financial-filter,
    .financial-summary {
        grid-template-columns: 1fr;
    }
}

.details-title {
    margin-bottom: 24px;
    color: #0f172a;
    font-size: 20px;
}

.payment-highlight {
    padding: 14px;
    border-radius: 9px;
    background: #ecfdf5;
}

.payment-highlight strong {
    color: #047857;
    font-size: 20px;
}

.btn-print {
    background: #ede9fe;
    color: #6d28d9;
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 20px;
}

.receipt {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.08);
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-bottom: 25px;
    border-bottom: 2px solid #0f766e;
}

.receipt-logo {
    min-width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #0f766e;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
}

.receipt-header h1 {
    color: #0f172a;
}

.receipt-header p {
    margin-top: 5px;
    color: #64748b;
}

.receipt-number {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    text-align: right;
}

.receipt-number span {
    color: #64748b;
    font-size: 13px;
}

.receipt-number strong {
    color: #0f766e;
}

.receipt-value {
    margin: 30px 0;
    padding: 22px;
    border-radius: 10px;
    background: #ecfdf5;
    text-align: center;
}

.receipt-value span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
}

.receipt-value strong {
    color: #047857;
    font-size: 32px;
}

.receipt-text {
    margin-bottom: 28px;
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}

.receipt-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 25px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.receipt-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.receipt-details span,
.receipt-observation span {
    color: #64748b;
    font-size: 13px;
}

.receipt-observation {
    margin-top: 22px;
}

.receipt-observation p {
    margin-top: 7px;
}

.receipt-footer {
    margin-top: 60px;
    text-align: center;
}

.signature-line {
    width: 320px;
    margin: 0 auto 30px;
    padding-top: 8px;
    border-top: 1px solid #334155;
}

.receipt-footer p {
    color: #94a3b8;
    font-size: 12px;
}

@media print {
    .sidebar,
    .app-topbar,
    .receipt-actions,
    .alert {
        display: none !important;
    }

    .app-main {
        margin-left: 0 !important;
    }

    .app-content {
        padding: 0 !important;
    }

    .receipt {
        max-width: none;
        padding: 20px;
        box-shadow: none;
    }

    body {
        background: #ffffff;
    }
}

@media (max-width: 700px) {
    .receipt {
        padding: 25px;
    }

    .receipt-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .receipt-number {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .receipt-details {
        grid-template-columns: 1fr;
    }
}

.dashboard-cards-clube {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.card-icon.orange {
    background: #f59e0b;
}

.card-icon.teal {
    background: #0d9488;
}

.card-icon.dark-orange {
    background: #ea580c;
}

.card-icon.dark-red {
    background: #b91c1c;
}

.financial-value {
    font-size: 21px !important;
}

.dashboard-section {
    margin-top: 28px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-section-header h2 {
    margin-bottom: 5px;
    color: #0f172a;
}

.dashboard-section-header p {
    color: #64748b;
}

.dashboard-empty {
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.07);
}

@media (max-width: 1250px) {
    .dashboard-cards-clube {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .dashboard-cards-clube {
        grid-template-columns: 1fr;
    }

    .dashboard-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-section-header .btn-secondary {
        width: 100%;
    }
}

.btn-boleto {
    background: #e0e7ff;
    color: #4338ca;
}

.boleto-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 20px;
}

.boleto-documento {
    max-width: 900px;
    margin: 0 auto;
    padding: 38px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.08);
}

.boleto-aviso {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    padding: 16px;
    border: 2px solid #dc2626;
    border-radius: 9px;
    background: #fef2f2;
    color: #991b1b;
}

.boleto-aviso i {
    font-size: 26px;
}

.boleto-aviso div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boleto-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 2px solid #0f766e;
}

.boleto-logo {
    min-width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #0f766e;
    color: #ffffff;
    font-size: 21px;
    font-weight: bold;
}

.boleto-empresa h1 {
    color: #0f172a;
}

.boleto-empresa p {
    margin-top: 5px;
    color: #64748b;
}

.boleto-documento-numero {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    text-align: right;
}

.boleto-documento-numero span,
.boleto-campo span {
    color: #64748b;
    font-size: 13px;
}

.boleto-valor {
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    background: #ecfdf5;
    text-align: center;
}

.boleto-valor span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
}

.boleto-valor strong {
    color: #047857;
    font-size: 30px;
}

.boleto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    border: 1px solid #cbd5e1;
    background: #cbd5e1;
}

.boleto-campo {
    display: flex;
    min-height: 70px;
    flex-direction: column;
    gap: 7px;
    padding: 14px;
    background: #ffffff;
}

.boleto-campo.full-width {
    grid-column: 1 / -1;
}

.boleto-status {
    color: #b45309;
}

.boleto-instrucoes {
    margin-top: 25px;
    padding: 20px;
    border-radius: 9px;
    background: #f8fafc;
}

.boleto-instrucoes h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.boleto-instrucoes ul {
    padding-left: 20px;
    color: #475569;
    line-height: 1.8;
}

.boleto-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #94a3b8;
    color: #dc2626;
    text-align: center;
}

.boleto-footer span {
    color: #64748b;
    font-size: 12px;
}

@media print {
    .boleto-actions,
    .sidebar,
    .app-topbar,
    .alert {
        display: none !important;
    }

    .app-main {
        margin-left: 0 !important;
    }

    .app-content {
        padding: 0 !important;
    }

    .boleto-documento {
        max-width: none;
        padding: 15px;
        box-shadow: none;
    }
}

@media (max-width: 700px) {
    .boleto-documento {
        padding: 22px;
    }

    .boleto-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .boleto-documento-numero {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .boleto-grid {
        grid-template-columns: 1fr;
    }

    .boleto-campo.full-width {
        grid-column: auto;
    }
}

.boleto-padrao-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 20px;
}

.boleto-padrao {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.1);
}

.boleto-padrao-aviso {
    padding: 10px;
    border: 2px solid #dc2626;
    color: #dc2626;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}

.boleto-padrao-subaviso {
    margin-bottom: 20px;
    padding: 6px;
    color: #991b1b;
    font-size: 12px;
    text-align: center;
}

.boleto-padrao-titulo {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
}

.boleto-padrao-header {
    display: grid;
    grid-template-columns: 2fr 90px 4fr;
    min-height: 48px;
    border: 2px solid #000000;
}

.boleto-padrao-banco,
.boleto-padrao-codigo-banco,
.boleto-padrao-linha {
    display: flex;
    align-items: center;
    padding: 8px;
    font-weight: bold;
}

.boleto-padrao-banco {
    font-size: 18px;
}

.boleto-padrao-codigo-banco {
    justify-content: center;
    border-right: 2px solid #000000;
    border-left: 2px solid #000000;
    font-size: 18px;
}

.boleto-padrao-linha {
    justify-content: center;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}

.boleto-padrao-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    border-left: 1px solid #000000;
}

.boleto-padrao-campo {
    min-height: 48px;
    padding: 5px 7px;
    border: 1px solid #000000;
    background: #ffffff;
}

.boleto-padrao-campo span,
.boleto-padrao-instrucoes > span,
.boleto-padrao-pagador > span {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
}

.boleto-padrao-campo strong {
    font-size: 12px;
}

.campo-3 {
    grid-column: span 3;
}

.campo-4 {
    grid-column: span 4;
}

.campo-8 {
    grid-column: span 8;
}

.campo-12 {
    grid-column: span 12;
}

.boleto-padrao-autenticacao {
    padding: 8px 0;
    font-size: 10px;
    text-align: right;
}

.boleto-padrao-corte {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 24px 0;
}

.boleto-padrao-corte div {
    flex: 1;
    border-top: 1px dashed #000000;
}

.boleto-padrao-compensacao {
    display: grid;
    grid-template-columns: 3fr 1fr;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    border-left: 1px solid #000000;
}

.boleto-padrao-esquerda {
    border-right: 2px solid #000000;
}

.boleto-padrao-direita .boleto-padrao-campo {
    min-height: 55px;
}

.boleto-padrao-linha-campos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.boleto-padrao-linha-campos:has(
    .boleto-padrao-campo:nth-child(2):last-child
) {
    grid-template-columns: repeat(2, 1fr);
}

.boleto-padrao-instrucoes {
    min-height: 150px;
    padding: 7px;
    border: 1px solid #000000;
}

.boleto-padrao-instrucoes strong {
    display: block;
    margin-bottom: 10px;
    color: #dc2626;
    font-size: 12px;
}

.boleto-padrao-instrucoes p {
    margin-bottom: 6px;
    font-size: 11px;
}

.boleto-padrao-pagador {
    padding: 8px;
    border: 1px solid #000000;
}

.boleto-padrao-pagador strong {
    font-size: 13px;
}

.boleto-padrao-pagador p {
    margin-top: 5px;
    font-size: 11px;
}

.boleto-padrao-barra {
    display: flex;
    min-height: 75px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    border: 2px dashed #dc2626;
    color: #dc2626;
}

.boleto-padrao-barra span {
    font-size: 11px;
}

@media print {
    .boleto-padrao-acoes,
    .sidebar,
    .app-topbar,
    .alert {
        display: none !important;
    }

    .app-main {
        margin-left: 0 !important;
    }

    .app-content {
        padding: 0 !important;
    }

    .boleto-padrao {
        width: 100%;
        max-width: none;
        padding: 5px;
        box-shadow: none;
    }

    body {
        background: #ffffff !important;
    }
}

@media (max-width: 700px) {
    .boleto-padrao {
        padding: 12px;
        overflow-x: auto;
    }

    .boleto-padrao-header,
    .boleto-padrao-grid,
    .boleto-padrao-compensacao {
        min-width: 720px;
    }
}