.manual-billing-panel {
    overflow: hidden;
}

.manual-billing-heading {
    align-items: flex-start;
    gap: 18px;
}

.manual-billing-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(25, 135, 84, .18);
    background: rgba(25, 135, 84, .08);
    color: #18764c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.manual-billing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
    gap: 18px;
    margin-top: 18px;
}

.manual-billing-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(34, 49, 82, .10);
    border-radius: 20px;
    background: rgba(255, 255, 255, .64);
}

.manual-billing-card-head,
.manual-billing-customer-head,
.manual-billing-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.manual-billing-card-head > div,
.manual-billing-customer-head > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.manual-billing-card-head strong,
.manual-billing-customer-head strong {
    color: #223152;
    font-size: 15px;
}

.manual-billing-card-head span,
.manual-billing-customer-head span {
    color: rgba(34, 49, 82, .62);
    font-size: 12px;
}

.manual-billing-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
}

.manual-billing-search input,
.manual-billing-form-grid input,
.manual-billing-form-grid select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid rgba(34, 49, 82, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .82);
    color: #223152;
    padding: 9px 11px;
    font: inherit;
    outline: none;
}

.manual-billing-search input:focus,
.manual-billing-form-grid input:focus,
.manual-billing-form-grid select:focus {
    border-color: rgba(34, 49, 82, .35);
    box-shadow: 0 0 0 3px rgba(34, 49, 82, .06);
}

.manual-billing-customer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(34, 49, 82, .08);
}

.manual-billing-plan-chip,
.manual-billing-list-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 49, 82, .08);
    color: #223152 !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .05em;
}

.manual-billing-plan-chip[data-plan="pro"] {
    background: rgba(248, 209, 118, .28);
}

.manual-billing-plan-chip[data-plan="pro_plus"] {
    background: #223152;
    color: #fff !important;
}

.manual-billing-existing {
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(34, 49, 82, .055);
    color: rgba(34, 49, 82, .74);
    font-size: 12px;
}

.manual-billing-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.manual-billing-form-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.manual-billing-form-grid label > span {
    color: rgba(34, 49, 82, .70);
    font-size: 11px;
    font-weight: 700;
}

.manual-billing-form-grid small {
    font-weight: 500;
    opacity: .72;
}

.manual-billing-confirm {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 14px 0;
    color: rgba(34, 49, 82, .78);
    font-size: 12px;
    cursor: pointer;
}

.manual-billing-confirm input {
    margin-top: 1px;
}

.manual-billing-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.manual-billing-success {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(25, 135, 84, .08);
    color: #18764c;
    font-size: 12px;
    line-height: 1.5;
}

.manual-billing-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.manual-billing-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(34, 49, 82, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
    color: #223152;
    text-align: left;
    cursor: pointer;
}

.manual-billing-list-row:hover {
    background: rgba(255, 255, 255, .88);
    border-color: rgba(34, 49, 82, .15);
}

.manual-billing-list-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.manual-billing-list-main strong,
.manual-billing-list-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-billing-list-main strong {
    font-size: 12px;
}

.manual-billing-list-main small,
.manual-billing-list-expiry {
    color: rgba(34, 49, 82, .58);
    font-size: 10px;
}

.manual-billing-list-plan {
    font-size: 11px;
    font-weight: 800;
}

.manual-billing-list-status {
    min-height: 22px;
    font-size: 9px !important;
}

.manual-billing-list-status.is-active {
    background: rgba(25, 135, 84, .09);
    color: #18764c !important;
}

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

@media (max-width: 620px) {
    .manual-billing-heading {
        display: grid;
    }

    .manual-billing-mode-pill {
        justify-self: start;
    }

    .manual-billing-card {
        padding: 15px;
        border-radius: 17px;
    }

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

    .manual-billing-list-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .manual-billing-list-expiry {
        grid-column: 1 / 2;
    }

    .manual-billing-list-status {
        grid-column: 2 / 3;
        grid-row: 2;
    }
}


.manual-billing-contact-field {
    grid-column: 1 / -1;
}

.manual-billing-input-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.manual-renewal-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.manual-renewal-metrics button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(34, 49, 82, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .56);
    color: #223152;
    cursor: pointer;
}

.manual-renewal-metrics span {
    overflow: hidden;
    color: rgba(34, 49, 82, .58);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-renewal-metrics strong {
    font-size: 16px;
}

.manual-renewal-filters {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.manual-renewal-filters::-webkit-scrollbar {
    display: none;
}

.manual-renewal-filters button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(34, 49, 82, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    color: rgba(34, 49, 82, .66);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.manual-renewal-filters button.is-active {
    border-color: rgba(34, 49, 82, .18);
    background: #223152;
    color: #fff;
}

.manual-billing-list-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
}

.manual-billing-list-row.is-expiring {
    border-color: rgba(211, 150, 24, .22);
    background: rgba(248, 209, 118, .10);
}

.manual-billing-list-row.is-expired {
    border-color: rgba(196, 66, 66, .12);
}

.manual-billing-list-status.is-expiring {
    background: rgba(248, 209, 118, .28);
    color: #8c6409 !important;
}

.manual-billing-list-status.is-expired {
    background: rgba(196, 66, 66, .08);
    color: #a43c3c !important;
}

.manual-billing-list-wa,
.manual-billing-list-wa-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 10px;
}

.manual-billing-list-wa {
    border: 1px solid rgba(25, 135, 84, .14);
    background: rgba(25, 135, 84, .08);
    color: #18764c;
    cursor: pointer;
}

.manual-billing-list-wa:hover {
    background: rgba(25, 135, 84, .14);
}

.manual-billing-list-wa-placeholder {
    color: rgba(34, 49, 82, .22);
}

@media (max-width: 620px) {
    .manual-billing-input-action {
        grid-template-columns: 1fr;
    }

    .manual-renewal-metrics {
        grid-template-columns: repeat(3, minmax(85px, 1fr));
        overflow-x: auto;
    }

    .manual-billing-list-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .manual-billing-list-plan {
        grid-column: 2;
    }

    .manual-billing-list-wa,
    .manual-billing-list-wa-placeholder {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .manual-billing-list-expiry {
        grid-column: 1 / 2;
    }

    .manual-billing-list-status {
        grid-column: 2 / 3;
        grid-row: 2;
    }
}

.manual-billing-revenue-card {
    grid-column: 1 / -1;
}

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

.manual-revenue-metrics > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(34, 49, 82, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
}

.manual-revenue-metrics span,
.manual-revenue-metrics small {
    color: rgba(34, 49, 82, .58);
    font-size: 10px;
    line-height: 1.35;
}

.manual-revenue-metrics strong {
    color: #223152;
    font-size: 19px;
    line-height: 1.1;
}

.manual-revenue-metrics small b {
    color: #223152;
}

.manual-revenue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: rgba(34, 49, 82, .58);
    font-size: 10px;
}

.manual-revenue-meta strong {
    color: #223152;
}

.manual-payment-history {
    margin-top: 12px;
    border-top: 1px solid rgba(34, 49, 82, .08);
    padding-top: 10px;
}

.manual-payment-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    color: #223152;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.manual-payment-history summary::-webkit-details-marker {
    display: none;
}

.manual-payment-history summary::after {
    content: '\f078';
    margin-left: auto;
    font-family: 'Font Awesome 6 Free';
    font-size: 9px;
    font-weight: 900;
    opacity: .55;
    transition: transform .16s ease;
}

.manual-payment-history[open] summary::after {
    transform: rotate(180deg);
}

.manual-payment-history summary small {
    margin-left: 0;
    color: rgba(34, 49, 82, .5);
    font-size: 10px;
    font-weight: 700;
}

.manual-payment-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.manual-payment-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto auto minmax(110px, .8fr);
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(34, 49, 82, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .52);
}

.manual-payment-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.manual-payment-main strong,
.manual-payment-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-payment-main strong {
    color: #223152;
    font-size: 11px;
}

.manual-payment-main small,
.manual-payment-period,
.manual-payment-ref {
    color: rgba(34, 49, 82, .54);
    font-size: 9px;
}

.manual-payment-plan {
    color: #223152;
    font-size: 10px;
    font-weight: 800;
}

.manual-payment-amount {
    color: #223152;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.manual-payment-ref {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 900px) {
    .manual-revenue-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .manual-billing-revenue-card .manual-billing-card-head {
        align-items: flex-start;
    }

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

    .manual-payment-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .manual-payment-period,
    .manual-payment-ref {
        grid-column: 1 / -1;
        text-align: left;
    }
}
