:root {
    --a3p-blue: rgb(0, 97, 157);
    --a3p-yellow: rgb(240, 164, 52);
    --a3p-dark: rgb(48, 76, 92);
}

[x-cloak] { display: none !important; }

.prose h1:first-of-type, .page-title {
    color: var(--a3p-dark) !important;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.25rem !important;
    text-align: center !important;
    margin: 1.5rem 0 0.5rem 0 !important;
    text-transform: uppercase !important;
}

.membro-page-wrapper {
    background-color: transparent !important;
    padding: 10px 0;
}

.membro-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
    padding: 0 15px;
}

.nav-pill-tabs {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 20px;
}

.nav-pill-tabs button {
    flex: 1;
    padding: 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    color: #6b7280;
    border: none;
    cursor: pointer;
    background: transparent;
    transition: 0.3s;
}

.flex {

    display: flex;
    gap: 10px;

}

.nav-pill-tabs button.active {
    background-color: var(--a3p-yellow);
    color: white;
}

.a3p-main-card {
    background-color: var(--a3p-blue);
    border-radius: 2.5rem;
    padding: 35px 40px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: white;
    box-sizing: border-box;
}

.a3p-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin-bottom: 25px;
}

.a3p-logo-top {
    width: 80px;
    height: auto;
}

#profile-preview {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    -o-object-fit: cover !important;
       object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.profile-rect-frame {
    width: 100px;
    height: 120px;
    border-radius: 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    background-color: #9ca3af;
}

.foto-carteirinha {
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    color: var(--a3p-dark);
}

.data-box-field {

    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    width: 100% !important;
    border: none;
    height: 45px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 20px !important;
    justify-content: space-between;

}

.field-locked { background-color: #e5e7eb; color: #6b7280; cursor: not-allowed; }

.data-box-field-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.data-box-field-label {
    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
}

.data-box-field-edit {
    background-color: #f3f4f6;
    color: #1f2937;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    flex: 1;
    border: none;
    height: 45px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 20px;
    font-family: inherit;
}

.data-box-field-edit:focus {
    outline: none;
    background-color: #e5e7eb;
}

select.data-box-field-edit {
    padding-left: 19px !important;
    -moz-appearance: none;
         appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231f2937%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2087.2c0%205%201.8%209.3%205.4%2012.9l135.1%20135.1c3.6%203.6%207.9%205.4%2012.9%205.4s9.3-1.8%2012.9-5.4l135.1-135.1c3.6-3.6%205.4-7.9%205.4-12.9%200-5-1.8-9.3-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 10px auto;
}

.card-bottom-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    gap: 15px;
    width: 100%;
}

.qr-code-placeholder {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.signature-details {
    flex: 1;
    text-align: center;
    font-size: 11px;
    line-height: 0.5;
    padding-bottom: 2px;

}

.btn-row-uniform {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    margin-top: 25px;
}

.btn-a3p-uniform {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-edit { background-color: var(--a3p-yellow); color: white; margin-top: 20px; }
.btn-save { background-color: var(--a3p-yellow); color: white; }
.btn-cancel { background-color: #9ca3af; color: white; }

.icon-upload-img { height: 18px; width: auto; }

.view-mobile { display: block; }
.view-desktop { display: none; }


@media (min-width: 768px) {

    .view-mobile { display: none; }
    .view-desktop { display: block; }

    .data-box-field {

        padding: 0 10px !important;
        margin-bottom: 15px !important;

    }

    .data-box-field-edit-wrapper {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .data-box-field-label {
        height: 46px;
        padding: 0 10px;
        border-radius: 8px 0 0 8px;
    }

    .data-box-field-edit {
        height: 46px;
        padding: 0 10px;
        border-radius: 0 8px 8px 0;
        margin-bottom: 0 !important;
    }


    .membro-container {

        max-width: 850px;

    }

    .a3p-main-card {

        padding: 50px 60px !important;

    }

    .card-row-top {

        display: flex;
        align-items: flex-start;
        gap: 40px;
        width: 100%;

    }

    .card-row-bottom {

        display: flex;
        align-items: center;
        gap: 30px;
        margin-top: 0;
        width: 100%;
        height: 150px;

    }

    .card-row-top {
        display: flex;
        align-items: flex-start;
        gap: 40px;
        width: 100%;
    }

    .card-row-top-data {

        display: flex;
        align-items: flex-start;
        gap: 40px;
        width: 100%;

    }

    .left-column-data {

        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
        flex-shrink: 0;

    }

    .profile-rect-frame-desktop {

        width: 140px;
        height: 165px;
        border-radius: 2rem;
        border: 4px solid rgba(255, 255, 255, 0.2);
        overflow: hidden;
        position: relative;
        background-color: #9ca3af;
        flex-shrink: 0;

    }

    .logo-desktop {

        width: 150px;
        height: auto;

    }

    .logo-desktop-large {

        width: 150px;
        height: auto;

    }

    .qr-desktop {

        width: 120px;
        height: 120px;
        background-color: white;
        border-radius: 0;
        overflow: hidden;
        flex-shrink: 0;

    }

    .signature-desktop {

        flex: 1;
        text-align: center;
        font-size: 15px;
        line-height: 1px;

    }

    .data-container-desktop {

        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0px;

    }

    .data-top-row {

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 70px;
        margin-bottom: 40px;
        width: 100%;

    }

    .profile-rect-frame-desktop-large {

        width: 160px;
        height: 190px;
        border-radius: 2rem;
        border: 4px solid rgba(255, 255, 255, 0.2);
        overflow: hidden;
        position: relative;
        background-color: #9ca3af;
        cursor: pointer;

    }

    .logo-desktop-large {

        width: 150px;
        height: auto;

    }

    .data-bottom-row {

        width: 100%;
        display: flex;
        flex-direction: column;

    }

    .payment-grid-desktop {

        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;

    }

    .payment-column {

        display: flex;
        flex-direction: column;
        gap: 5px;

    }

    .desktop-grid-2 {

        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;

    }

    .desktop-grid-2:has(#membro-nome) {

        grid-template-columns: 2.11fr 1fr !important;

    }

    .desktop-grid-2:has(#membro-desde) {

        grid-template-columns: 2fr 1fr !important;

    }

    .desktop-grid-3 {

        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;

    }

    .btn-row-uniform {

        flex-direction: row;
        justify-content: center;
        gap: 20px;

    }

    .btn-a3p-uniform {

        max-width: 200px;
        margin-top: 0px;

    }

    .prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)) {

        border-color: var(--tw-prose-hr);
        border-top-width: 1px;
        margin-top: 1em;
        margin-bottom: 2em;

    }

}