.plugins-page-wrapper > .content-header.row {
    display: none;
}

.plugins-page {
    padding: 0 0 1rem;
}

.plugins-surface {
    background: #fff;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(34, 41, 47, 0.06);
    min-height: 0;
    overflow: hidden;
}

.plugins-toolbar {
    align-items: center;
    border-bottom: 1px solid #ebe9f1;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    padding: 1rem 1.15rem;
}

.plugins-toolbar-title {
    min-width: 0;
}

.plugins-toolbar-title > span {
    color: #6e6b7b;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.plugins-toolbar-title strong {
    color: #2f2b3d;
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.plugins-toolbar-title p {
    color: #6e6b7b;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0.35rem 0 0;
    max-width: 620px;
}

.plugins-toolbar-tools {
    align-items: stretch;
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.plugins-search {
    align-items: center;
    background: #f8f8fb;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    flex: 0 0 auto;
    max-width: none;
    min-height: 40px;
    width: 100%;
    padding: 0 0.7rem;
}

.plugins-search svg {
    color: #6e6b7b;
    flex: 0 0 auto;
}

.plugins-search .form-control {
    border: 0;
    box-shadow: none;
    height: 38px;
    padding-left: 0.55rem;
}

.plugins-toolbar-copy {
    color: #6e6b7b;
    font-size: 0.82rem;
    line-height: 1.25;
    margin: 0;
    text-align: right;
}

.plugins-body {
    background: #f8f8fb;
    padding: 1rem;
}

.plugins-body .row.carregar-apps {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

.plugins-section-head {
    align-items: center;
    background: #fff;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: .75rem .85rem;
}

.plugins-section-head h6 {
    color: #2f2b3d;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.plugins-section-head span {
    color: #6e6b7b;
    font-size: 0.78rem;
}

.plugin-card {
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(47, 43, 61, 0.035);
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plugin-card:hover {
    border-color: #d8d6de;
    box-shadow: 0 6px 18px rgba(47, 43, 61, 0.07);
}

.plugin-card.is-loading {
    opacity: 0.68;
    pointer-events: none;
}

.plugin-card.is-active {
    border-left: 3px solid #28c76f;
}

.plugin-card.is-inactive {
    border-left: 3px solid #ff9f43;
}

.plugin-card.is-pending,
.plugin-card.is-not-configured {
    border-left: 3px solid #82868b;
}

.plugin-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 236px;
    padding: 0.8rem;
}

.plugin-card-top {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.plugin-logo-link {
    align-items: center;
    background: #f8f8fb;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    height: 54px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.plugin-logo-link img {
    max-height: 38px;
    max-width: 46px;
    object-fit: contain;
}

.plugin-menu-btn {
    align-items: center;
    border: 1px solid #ebe9f1;
    border-radius: 7px;
    color: #6e6b7b;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.plugin-menu-btn:hover {
    background: #f8f8fb;
    color: #2f2b3d;
}

.plugin-title-row {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 0.7rem;
}

.plugin-title-row h5 {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.plugin-title-row a {
    color: #2f2b3d;
}

.plugin-status-pill {
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.35rem 0.5rem;
}

.plugin-status-pill.is-active {
    background: #e5f8ed;
    color: #1f9d58;
}

.plugin-status-pill.is-inactive {
    background: #fff1df;
    color: #b45f06;
}

.plugin-status-pill.is-pending,
.plugin-status-pill.is-not-configured {
    background: #f1f1f4;
    color: #6e6b7b;
}

.plugin-meta {
    border-top: 1px solid #f0eef7;
    color: #6e6b7b;
    font-size: 0.76rem;
    line-height: 1.3;
    margin-top: 0.65rem;
    padding-top: 0.6rem;
}

.plugin-meta span {
    display: block;
}

.plugin-activation {
    align-items: center;
    background: #f8f8fb;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: auto;
    min-height: 54px;
    padding: 0.55rem 0.65rem;
}

.plugin-activation strong {
    color: #2f2b3d;
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
}

.plugin-activation span {
    color: #6e6b7b;
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.plugin-activation .form-check {
    min-height: auto;
    padding-left: 2.65rem;
}

.plugin-activation .form-check-input {
    cursor: pointer;
    height: 1.35rem;
    width: 2.35rem;
}

.plugin-config-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

.plugins-empty-state {
    align-items: center;
    background: #fff;
    border: 1px dashed #d8d6de;
    border-radius: 8px;
    color: #6e6b7b;
    display: flex;
    justify-content: center;
    min-height: 110px;
    padding: 1rem;
    text-align: center;
}

.plugins-empty-state .spinner-border {
    height: 1rem;
    margin-right: .45rem;
    width: 1rem;
}

@media (max-width: 767.98px) {
    .plugins-page {
        padding: 0 0 0.75rem;
    }

    .plugins-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .plugins-toolbar-tools {
        align-items: stretch;
    }

    .plugins-search {
        max-width: none;
        width: 100%;
    }

    .plugins-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .plugins-toolbar-copy {
        text-align: left;
    }
}
