.credit-cards-page .module-header{align-items:center;gap:1rem}.credit-cards-page .module-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}.card-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:1.5rem}.credit-cards-page .summary-card{min-height:104px}.credit-cards-page .summary-content{flex:1;text-align:center}.credit-cards-page .summary-content strong{margin-top:.45rem;font-size:clamp(1.35rem,1.8vw,1.75rem);white-space:nowrap}.credit-cards-page .summary-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.credit-cards-page .table-card{overflow:visible}.credit-cards-page .table-card+.table-card{margin-top:1.5rem}.credit-cards-page .table-header{padding:1.25rem 1.5rem}.credit-cards-page .table-header h2{font-size:1.35rem;line-height:1.2}.credit-cards-page .table-header span{display:block;margin-top:.35rem;font-size:.9rem}.credit-cards-page .app-table th{padding:1rem 1.25rem;font-size:.88rem;white-space:nowrap}.credit-cards-page .app-table td{padding:1rem 1.25rem;font-size:.94rem;line-height:1.35;vertical-align:middle}.credit-cards-page .app-table tbody tr{position:relative;z-index:0}.credit-cards-page .app-table tbody tr.actions-row-open{z-index:90}.card-identification{display:flex;align-items:center;gap:.9rem;min-width:220px}.card-identification>div{display:grid;gap:.16rem}.card-identification strong{font-size:1rem;line-height:1.25}.card-identification span:not(.card-brand){font-size:.9rem}.card-identification small{font-size:.8rem;color:#64748b}.card-brand{display:grid;place-items:center;flex:0 0 48px;width:48px;height:44px;border-radius:12px;background:#dbeafe;font-size:1.25rem}.value-used{color:#b91c1c;font-weight:800}.value-available{color:#047857;font-weight:800}.card-actions-cell{position:relative;z-index:1;width:96px;min-width:96px;text-align:center;overflow:visible}.card-actions-cell.is-open,.card-actions-cell.is-open .card-actions-menu{z-index:100}.card-actions-menu{position:relative;display:inline-flex;align-items:center;justify-content:center}.card-kebab-button{display:inline-flex;align-items:center;justify-content:center;width:46px;height:42px;border:1px solid #bfdbfe;border-radius:14px;background:#fff;color:#1d4ed8;font-size:1.6rem;font-weight:900;line-height:1;cursor:pointer;box-shadow:none}.card-kebab-button:hover,.card-kebab-button[aria-expanded="true"]{border-color:#1d4ed8;background:#eff6ff}.card-kebab-menu{position:absolute;top:calc(100% + .45rem);left:50%;z-index:110;min-width:168px;padding:.45rem;transform:translateX(-50%);border:1px solid #dbeafe;border-radius:16px;background:#fff;box-shadow:0 20px 48px rgba(15,23,42,.18)}.card-kebab-menu button{width:100%;border:0;border-radius:12px;background:transparent;color:#0b1f3a;padding:.75rem .9rem;text-align:center;font-size:.94rem;font-weight:800;cursor:pointer}.card-kebab-menu button:hover{background:#eff6ff;color:#1d4ed8}.card-kebab-menu button.danger{color:#dc2626}.card-kebab-menu button.success{color:#059669}.card-actions-backdrop{position:fixed;inset:0;z-index:70;border:0;background:transparent;cursor:default}.link-button{border:0;background:transparent;color:#1d4ed8;font-weight:800;cursor:pointer}.link-button.danger{color:#dc2626}.link-button.success{color:#059669}.transaction-type{display:inline-flex;padding:.4rem .75rem;border-radius:999px;font-size:.88rem;font-weight:800}.transaction-type.purchase{color:#b91c1c;background:#fee2e2}.transaction-type.payment{color:#047857;background:#d1fae5}.card-modal-overlay{position:fixed;inset:0;z-index:2100;display:flex;align-items:flex-start;justify-content:center;padding:2rem;background:rgba(15,23,42,.62);backdrop-filter:blur(4px);overflow-y:auto}.card-modal{width:min(1400px,96vw);max-height:calc(100vh - 4rem);overflow-y:auto;padding:1.5rem;border-radius:22px;background:#fff;box-shadow:0 28px 70px rgba(15,23,42,.3)}.card-modal.compact{width:min(900px,96vw)}.credit-cards-page .field-validation-message{display:block;margin-top:.35rem;color:#b91c1c;font-size:.8rem;font-weight:700}.credit-cards-page .form-field:has(.field-validation-message)>input,.credit-cards-page .form-field:has(.field-validation-message)>select{border-color:#ef4444;background:#fff7f7}.purchase-items-header,.purchase-item-title,.allocation-header,.purchase-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem}.purchase-items-header{margin:1.5rem 0 .8rem}.purchase-items{display:grid;gap:1rem}.purchase-item{padding:1rem;border:1px solid #dbe3ef;border-radius:16px;background:#f8fbff}.purchase-item-grid{display:grid;grid-template-columns:2fr .65fr .65fr 1fr 1fr;gap:.8rem;align-items:end;margin-top:.8rem}.item-total,.purchase-total{display:grid;gap:.25rem;padding:.8rem 1rem;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.item-total strong,.purchase-total strong{font-size:1.15rem}.allocation-header{margin-top:1rem;padding-top:1rem;border-top:1px solid #dbe3ef}.allocation-header>div{display:grid;gap:.2rem}.allocation-list{display:grid;gap:.7rem;margin-top:.7rem}.allocation-row{display:grid;grid-template-columns:1fr .65fr 1.3fr auto;gap:.7rem;align-items:end;padding:.75rem;border:1px solid #bfdbfe;border-radius:12px;background:#fff}.allocation-remove{min-height:46px}.purchase-footer{align-items:end;margin-top:1rem}.purchase-footer .form-field{flex:1}.purchase-total{min-width:280px}.empty-cell{text-align:center;color:#64748b;font-weight:700}@media(max-width:1100px){.card-summary-grid{grid-template-columns:repeat(2,1fr)}.purchase-item-grid{grid-template-columns:repeat(2,1fr)}.item-description{grid-column:1/-1}.allocation-row{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.credit-cards-page .table-responsive{overflow-x:auto;overflow-y:visible}.credit-cards-page .app-table{min-width:920px}}@media(max-width:700px){.credit-cards-page .module-header{align-items:stretch;flex-direction:column}.credit-cards-page .module-header-actions,.credit-cards-page .module-header-actions .btn{width:100%}.card-summary-grid,.purchase-item-grid,.allocation-row{grid-template-columns:1fr}.card-modal-overlay{padding:.5rem}.card-modal{max-height:calc(100vh - 1rem)}.purchase-items-header,.allocation-header,.purchase-footer{align-items:stretch;flex-direction:column}.purchase-total{min-width:0;width:100%}}
.launch-installment-progress {
    display: block;
    width: max-content;
    margin-top: .4rem;
    padding: .24rem .55rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}

.launch-installment-due {
    display: block;
    margin-top: .3rem;
    color: #64748b;
    font-size: .73rem;
    font-weight: 650;
    line-height: 1.3;
}

.credit-cards-page .table-responsive {
    overflow: visible;
}

.credit-cards-page .status-pill.status-active {
    color: #047857;
    background: #d1fae5;
}

.credit-cards-page .status-pill.status-inactive {
    color: #b91c1c;
    background: #fee2e2;
}

.installments-pagination,
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dbe3ef;
    color: #64748b;
    font-size: .88rem;
}

.launch-description {
    display: grid;
    gap: .2rem;
    min-width: 190px;
}

.launches-card .app-table th:nth-child(1) { width: 11%; }
.launches-card .app-table th:nth-child(2) { width: 13%; }
.launches-card .app-table th:nth-child(3) { width: 23%; }
.launches-card .app-table th:nth-child(4) { width: 15%; }
.launches-card .app-table th:nth-child(5) { width: 11%; }
.launches-card .app-table th:nth-child(6) { width: 11%; }
.launches-card .app-table th:nth-child(7) { width: 9%; }
.launches-card .app-table th:nth-child(8) { width: 7%; }

.launches-card .app-table td {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
}

.launches-card .transaction-type.purchase {
    padding: 0;
    color: #0b1f3a;
    background: transparent;
}

.launch-description small,
.cost-center-text {
    color: #64748b;
    font-size: .82rem;
}

.cost-center-text {
    display: block;
    min-width: 150px;
    line-height: 1.4;
}

.launch-actions-menu {
    right: 0;
    left: auto;
    transform: none;
}

.launch-details-modal h3 {
    margin: 1.25rem 0 .75rem;
    color: #0b1f3a;
}

.launch-details-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.launch-details-summary > div,
.launch-notes {
    display: grid;
    gap: .25rem;
    padding: .9rem 1rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fbff;
}

.launch-details-summary span,
.launch-notes > span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.launch-items-list {
    display: grid;
    gap: .75rem;
}

.launch-item-detail {
    padding: 1rem;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
}

.launch-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.launch-item-heading > div {
    display: grid;
    gap: .15rem;
}

.launch-item-heading small,
.launch-item-detail > p {
    color: #64748b;
}

.launch-allocations {
    display: grid;
    gap: .35rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: .88rem;
}

.launch-notes {
    margin-top: 1rem;
}

.launch-notes p,
.empty-detail {
    margin: 0;
}

.confirm-inactivation-modal {
    width: min(620px, 96vw);
    text-align: center;
}

.confirm-inactivation-modal p {
    color: #64748b;
    line-height: 1.55;
}

.danger-button {
    background: #dc2626 !important;
}

@media (max-width: 760px) {
    .launch-details-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.installments-pagination > div,
.table-pagination > div {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #0b1f3a;
}

.installments-pagination button,
.table-pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #1d4ed8;
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.installments-pagination button:disabled,
.table-pagination button:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

@media (min-width: 901px) {
    .credit-cards-page .app-table {
        width: 100%;
        table-layout: fixed;
    }

    .credit-cards-page .app-table th,
    .credit-cards-page .app-table td {
        padding-right: .7rem;
        padding-left: .7rem;
        overflow-wrap: anywhere;
    }

    .credit-cards-page .table-card:first-of-type .app-table th:first-child { width: 23%; }
    .credit-cards-page .table-card:first-of-type .app-table th:nth-child(2) { width: 11%; }
    .credit-cards-page .table-card:first-of-type .app-table th:nth-child(3) { width: 12%; }
    .credit-cards-page .table-card:first-of-type .app-table th:nth-child(4),
    .credit-cards-page .table-card:first-of-type .app-table th:nth-child(5),
    .credit-cards-page .table-card:first-of-type .app-table th:nth-child(6) { width: 12%; }
    .credit-cards-page .table-card:first-of-type .app-table th:nth-child(7) { width: 10%; }
    .credit-cards-page .table-card:first-of-type .app-table th:last-child { width: 8%; }

    .credit-cards-page .card-identification {
        min-width: 0;
        gap: .65rem;
    }

    .credit-cards-page .card-brand {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .credit-cards-page .card-actions-cell {
        width: auto;
        min-width: 0;
    }
}

/* Resumo compacto, seguindo a proporção usada nas telas operacionais. */
.credit-cards-page .card-summary-grid {
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.credit-cards-page .card-summary-grid .summary-card {
    min-height: 88px;
    padding: .9rem 1.1rem;
    gap: .8rem;
}

.credit-cards-page .card-summary-grid .summary-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
}

.credit-cards-page .card-summary-grid .summary-icon svg {
    width: 22px;
    height: 22px;
}

.credit-cards-page .card-summary-grid .summary-content span {
    font-size: .82rem;
}

.credit-cards-page .card-summary-grid .summary-content strong {
    margin-top: .25rem;
    font-size: clamp(1.2rem, 1.45vw, 1.45rem);
    line-height: 1.1;
}

.credit-cards-page .purchase-validation-summary {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: 1rem 0 0;
}

.credit-cards-page .operation-result-overlay {
    z-index: 2200;
    align-items: center;
}

.credit-cards-page .operation-result-modal {
    width: min(430px, calc(100vw - 2rem));
    min-height: 0;
    padding: 2rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.credit-cards-page .operation-result-modal h2,
.credit-cards-page .operation-result-modal p {
    margin: 0;
}

.credit-cards-page .operation-result-modal p {
    color: #607493;
    line-height: 1.5;
}

.credit-cards-page .operation-result-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 900;
}

.credit-cards-page .operation-result-modal.success .operation-result-icon {
    color: #047857;
    background: #d1fae5;
}

.credit-cards-page .operation-result-modal.error .operation-result-icon {
    color: #b91c1c;
    background: #fee2e2;
}
