/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: Child theme for Hello Elementor
Author: LOOP Digital
Author URI: https://example.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

.common-expenses-portal-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 64px;
    color: #1f2937;
}

.common-expenses-card,
.common-expenses-login-box,
.common-expenses-info-card,
.common-expenses-update-card,
.common-expenses-finance-card,
.common-expenses-empty-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.common-expenses-alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
}

.common-expenses-alert-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.common-expenses-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.common-expenses-login-shell,
.common-expenses-dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.common-expenses-login-box-wide {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
}

.common-expenses-portal-page h2,
.common-expenses-login-heading-wrap h2,
.common-expenses-account-card h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.15;
    color: #18212f;
}

.common-expenses-login-heading-wrap p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #6b7280;
}

.common-expenses-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f5ca8;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.common-expenses-login-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.common-expenses-form-field {
    display: grid;
    gap: 8px;
}

.common-expenses-form-field label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.common-expenses-login-form input[type="text"],
.common-expenses-login-form input[type="password"] {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #d6dce8;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.common-expenses-login-form input:focus {
    outline: none;
    border-color: #2f5ca8;
    box-shadow: 0 0 0 4px rgba(47, 92, 168, 0.12);
}

.common-expenses-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #475569;
}

.common-expenses-checkbox-row input {
    width: 18px;
    height: 18px;
}

.common-expenses-login-form button,
.common-expenses-pay-btn,
.common-expenses-logout-btn,
.common-expenses-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.common-expenses-login-form button,
.common-expenses-pay-btn,
.common-expenses-logout-btn {
    background: #2f5ca8;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(47, 92, 168, 0.22);
}

.common-expenses-login-form button:hover,
.common-expenses-pay-btn:hover,
.common-expenses-logout-btn:hover {
    background: #244a87;
    color: #fff !important;
    transform: translateY(-1px);
}

.common-expenses-secondary-btn {
    background: #f8fafc;
    color: #1e293b !important;
    border: 1px solid #d8e1ef;
}

.common-expenses-secondary-btn:hover {
    background: #eef4ff;
    color: #1e293b !important;
}

.common-expenses-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
}

.common-expenses-account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.common-expenses-meta-chip {
    min-width: 170px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.common-expenses-meta-chip span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #64748b;
}

.common-expenses-meta-chip strong {
    display: block;
    font-size: 16px;
    color: #18212f;
}

.common-expenses-tabs {
    display: grid;
    gap: 20px;
}

.common-expenses-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: #edf3fb;
}

.common-expenses-tab-button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.common-expenses-tab-button:hover {
    background: rgba(255,255,255,0.7);
}

.common-expenses-tab-button.is-active {
    background: #ffffff;
    color: #2f5ca8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.common-expenses-tab-panel {
    display: none;
}

.common-expenses-tab-panel.is-active {
    display: block;
}

.common-expenses-section-header {
    margin-bottom: 18px;
}

.common-expenses-section-header h3 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.12;
    color: #18212f;
}

.common-expenses-section-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #6b7280;
}

.common-expenses-invoices-list,
.common-expenses-updates-list {
    display: grid;
    gap: 18px;
}

.common-expenses-finance-card {
    padding: 26px;
}

.common-expenses-finance-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.common-expenses-finance-card h4,
.common-expenses-update-card h4 {
    margin: 0;
    font-size: 28px;
    line-height: 1.16;
    color: #18212f;
}

.common-expenses-reference-pill {
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.common-expenses-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.common-expenses-status-badge.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.common-expenses-status-badge.status-paid {
    background: #ecfdf5;
    color: #047857;
}

.common-expenses-status-badge.status-overdue {
    background: #fff1f2;
    color: #be123c;
}

.common-expenses-finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.common-expenses-finance-meta-item {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.common-expenses-finance-meta-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #64748b;
}

.common-expenses-finance-meta-item strong {
    display: block;
    color: #18212f;
    font-size: 16px;
}

.common-expenses-invoice-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.common-expenses-inline-bank-footer {
    margin-top: 22px;
    padding: 18px 18px 4px;
    border-top: 1px solid #e5e7eb;
    background: #fcfdff;
    border-radius: 18px;
}

.common-expenses-inline-bank-footer h5 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #18212f;
}

.common-expenses-inline-bank-footer p,
.common-expenses-info-card p,
.common-expenses-update-card p,
.common-expenses-update-card div,
.common-expenses-info-card div {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.common-expenses-info-card,
.common-expenses-empty-card {
    padding: 26px;
}

.common-expenses-update-card {
    padding: 22px;
}

.common-expenses-empty-card p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 1024px) {
    .common-expenses-finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .common-expenses-account-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .common-expenses-portal-page h2,
    .common-expenses-login-heading-wrap h2,
    .common-expenses-account-card h2 {
        font-size: 32px;
    }

    .common-expenses-section-header h3 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .common-expenses-portal-page {
        padding: 18px 14px 42px;
    }

    .common-expenses-login-box-wide,
    .common-expenses-account-card,
    .common-expenses-finance-card,
    .common-expenses-info-card,
    .common-expenses-empty-card,
    .common-expenses-update-card {
        padding: 20px;
    }

    .common-expenses-portal-page h2,
    .common-expenses-login-heading-wrap h2,
    .common-expenses-account-card h2 {
        font-size: 32px;
    }

    .common-expenses-section-header h3,
    .common-expenses-finance-card h4,
    .common-expenses-update-card h4 {
        font-size: 24px;
    }

    .common-expenses-finance-card-head {
        flex-direction: column;
    }

    .common-expenses-finance-grid {
        grid-template-columns: 1fr;
    }

    .common-expenses-tabs-nav {
        flex-direction: column;
    }

    .common-expenses-tab-button {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .common-expenses-meta-chip {
        width: 100%;
    }

    .common-expenses-login-form button,
    .common-expenses-pay-btn,
    .common-expenses-logout-btn,
    .common-expenses-secondary-btn {
        width: 100%;
    }
}


.common-expenses-receipt-files-wrap {
    margin-top: 22px;
    border-top: 1px solid #e8edf5;
    padding-top: 18px;
}

.common-expenses-receipt-files-wrap h5 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #24324a;
}

.common-expenses-receipt-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.common-expenses-receipt-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #f8fbff;
}

.common-expenses-receipt-file-name {
    color: #24324a;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .common-expenses-receipt-file-row {
        flex-direction: column;
        align-items: stretch;
    }

    .common-expenses-receipt-file-row .common-expenses-secondary-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
