.admin-layout-page-wrapper {
    width: 100%;
    display: flex;
    padding: 0px 20px;
    box-sizing: border-box;
}

.admin-layout-content {
    display: flex;
    flex: 1;
    gap: 32px;
    margin-bottom: 40px;
}

.admin-layout-main {
    flex: 2;
    min-width: 0;
}

.admin-layout-sidebar-bar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border-radius: 8px;
    padding: 188px 0px 0px 18px;
}

.admin-layout-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    position: sticky;
    top: 120px;
    z-index: 10;
}

.admin-layout-card {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 8px;
    box-shadow: none;
}

.admin-layout-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 32px;
}

.admin-layout-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #121519;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
}

.admin-layout-top-menu {
    display: flex;
    gap: 12px;
    margin: 0px !important;
}

.admin-layout-title-link {
    display: flex;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border-radius: 6px 6px 0 0;
    font-size: 1.2em;
    color: #8f8f8f;
    font-weight: 300;
    text-decoration: none;
    margin-bottom: -1px;
    transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
    top: 0;
    z-index: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-layout-title-link:hover {
    color: #343b45;
    background-color: #f7f7f7;
}

.admin-layout-title-link.active {
    background: #f5f5f5;
    color: #121519;
    border-bottom: none;
    font-weight: 600;
    top: 1px;
    z-index: 3;
    outline: none !important;
    box-shadow: none !important;
}

.admin-layout-block {
    display: none;
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 24px 20px;
}

.admin-layout-block.active {
    display: block;
}

.admin-layout-field-parent-flex {
    display: flex;
    margin-bottom: 24px;
    gap: 20px;
}

.admin-layout-field-label-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
    max-width: 240px;
}

.admin-layout-field-component-bg {
    flex: 2;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.admin-layout-label {
    font-weight: 600;
    font-size: 1.4em;
    margin-left: 5px;
}

.admin-layout-description {
    font-size: 1.1em;
    color: #8f8f8f;
    margin-top: 4px;
    margin-left: 5px;
}

.admin-layout-component-label {
    font-size: 1em;
    margin-bottom: 4px;
}

.admin-layout-hr {
    width: 100%;
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.admin-layout-field-input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0px;
    margin-left: 5px;
}

.admin-layout-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-layout-checkbox-wrapper label {
    display: flex;
    align-items: center;
}

.admin-layout-input-description {
    font-size: 1.1em;
    color: #8f8f8f;
    margin-top: 6px;
    margin-bottom: 2px;
}

.admin-layout-input-warning {
    font-size: 0.85em;
    color: #8f8f8f;
    margin-top: 4px;
}

.admin-layout-joined-label-desc {
    width: 100%;
    flex: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 0 0;
}

.admin-layout-joined-component-bg {
    padding: 0px;
    background: none;
    border-radius: 0;
}

.admin-layout-button {
    max-width: 400px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    background: #007cba;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-layout-button:hover,
.admin-layout-button:focus {
    background: #005fa3;
}

.admin-layout-input,
.admin-layout-textarea,
.admin-layout-select,
.admin-layout-password,
.admin-layout-number {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1.1em;
    background: #fff;
    color: #121519;
    transition: border-color 0.2s;
}

.admin-layout-input:focus,
.admin-layout-password:focus,
.admin-layout-number:focus,
.admin-layout-select:focus,
.admin-layout-textarea:focus {
    border-color: #007cba;
    outline: none;
}

.admin-layout-file {
    width: fit-content;
}

.admin-layout-textarea {
    min-height: 80px;
}

.admin-layout-submit-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0px;
}

.admin-layout-submit-wrapper button {
    font-size: 1.2em !important;
}

p.submit {
    display: none !important;
}

/* NOVAS CLASSES PARA RADIO */
.admin-layout-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.1em;
    cursor: pointer;
}

.admin-layout-radio {
    margin-right: 8px;
    accent-color: #007cba;
}

.admin-layout-radio-label-text {
    font-size: 1em;
    color: #121519;
}

/* NOVAS CLASSES PARA CHECKBOX */
.admin-layout-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
}

.admin-layout-checkbox {
    margin-right: 8px;
    accent-color: #007cba;
}

.admin-layout-checkbox-label-text {
    margin-top: -4px;
    font-size: 1em;
    color: #121519;
}

/* NOVAS CLASSES PARA SELECT */
.admin-layout-select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1.1em;
    background: #fff;
    color: #121519;
    transition: border-color 0.2s;
}

/* Card Update */

.block-status-card {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    background: #f6fff7;
    border-left: 5px solid #43c463;
    box-shadow: 0 2px 8px rgba(67, 196, 99, 0.07);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.block-status-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.block-status-card-title {
    color: #43c463;
    font-size: 1.08em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.block-status-card-description {
    font-size: 0.97em;
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* Card Invoice */

.block-promotional-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px 28px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

.block-promotional-card-bg {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.block-promotional-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.block-promotional-card-title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.block-promotional-card-description {
    margin: 0 0 18px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.block-promotional-card-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.block-promotional-card-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    outline: none;
}

.block-promotional-card-btn-learn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(10px);
}

.block-promotional-card-btn-learn:hover,
.block-promotional-card-btn-learn:focus {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.block-promotional-card-btn-install {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
}

.block-promotional-card-btn-install:hover,
.block-promotional-card-btn-install:focus {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.setting-field-pix-desactivated {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 1300px) {
    .admin-layout-content {
        flex-direction: column;
        gap: 0;
    }

    .admin-layout-main {
        min-width: 0;
        width: 100%;
    }

    .admin-layout-sidebar-bar {
        min-width: 0;
        width: 100%;
        margin-top: 24px;
        padding: 12px 0;
    }

    .admin-layout-sidebar {
        position: static;
        padding: 0 8px;
    }
}

@media (max-width: 700px) {
    .admin-layout-page-wrapper {
        flex-direction: column;
        padding: 0 6px;
    }

    .admin-layout-header {
        height: auto;
        margin-bottom: 18px;
        padding: 10px 0;
        font-size: 1.3em;
    }

    .admin-layout-title {
        font-size: 1.4em;
    }

    .admin-layout-title-link {
        font-size: .95em;
    }

    .admin-layout-file {
        max-width: 240px;
    }

    .admin-layout-block {
        padding: 16px 8px;
    }

    .admin-layout-field-parent-flex {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .admin-layout-field-label-desc {
        max-width: 100%;
        padding: 10px 4px;
    }

    .admin-layout-field-component-bg {
        padding: 14px;
    }

    .admin-layout-field-input-wrapper {
        padding: 10px 0px;
        margin-left: 0;
    }

    .block-status-card,
    .block-promotional-card {
        max-width: 100%;
        padding: 14px 10px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .admin-layout-header {
        font-size: 1em;
        padding: 6px 0;
    }

    .admin-layout-title {
        font-size: 1.1em;
    }

    .block-status-card-title,
    .block-promotional-card-title {
        font-size: 1em;
    }

    .block-status-card-description,
    .block-promotional-card-description {
        font-size: 0.95em;
    }
}