.platform-admin-wrapper > .content-header.row {
    display: none;
}
.platform-admin-page {
    padding: 0 0 1rem;
}

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

.platform-admin-toolbar {
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid #ebe9f1;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.platform-admin-eyebrow {
    color: #6e6b7b;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.platform-admin-toolbar h4 {
    color: #2f2b3d;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.2rem 0 0;
}

.platform-admin-subtitle {
    color: #6e6b7b;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0.35rem 0 0;
    max-width: 640px;
}

.platform-admin-actions {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 0.55rem;
    justify-content: flex-end;
    min-width: 0;
}

.platform-admin-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    min-height: 38px;
    white-space: nowrap;
}

.platform-admin-search {
    align-items: center;
    background: #f8f8fb;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    flex: 1 1 360px;
    max-width: 520px;
    min-height: 38px;
    min-width: 220px;
    padding: 0 0.65rem;
}

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

.platform-admin-search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    height: 36px;
    min-width: 0;
    padding-left: 0.5rem;
}

.platform-admin-tabs {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #ebe9f1;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.55rem 0.75rem;
}

.platform-tab {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #5e5873;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0 0.7rem;
}

.platform-tab.is-active {
    background: #7367f0;
    box-shadow: 0 4px 12px rgba(115, 103, 240, 0.24);
    color: #fff;
}

.platform-panel {
    display: none;
    padding: 1rem;
}

.platform-panel.is-active {
    display: block;
}

.platform-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    margin-bottom: 0.85rem;
}

.platform-metric,
.platform-card,
.platform-integration-card {
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(34, 41, 47, 0.045);
}

.platform-metric {
    background: #fff;
    min-height: 126px;
    padding: 0.8rem;
}

.platform-metric-icon {
    align-items: center;
    background: #f3f2ff;
    border-radius: 8px;
    color: #7367f0;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-bottom: 0.65rem;
    width: 34px;
}

.platform-metric.is-success .platform-metric-icon {
    background: #e5f8ed;
    color: #28c76f;
}

.platform-metric.is-warning .platform-metric-icon {
    background: #fff1df;
    color: #ff9f43;
}

.platform-metric.is-info .platform-metric-icon {
    background: #e8f8ff;
    color: #00cfe8;
}

.platform-metric.is-secondary .platform-metric-icon,
.platform-metric.is-dark .platform-metric-icon {
    background: #f1f1f4;
    color: #5e5873;
}

.platform-metric strong {
    color: #2f2b3d;
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.platform-metric span:not(.platform-metric-icon) {
    color: #2f2b3d;
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.platform-metric small {
    color: #6e6b7b;
    display: block;
    font-size: 0.76rem;
    line-height: 1.3;
    margin-top: 0.3rem;
}

.platform-grid-two {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-grid-two-compact {
    align-items: start;
}

.platform-card {
    background: #fff;
    min-width: 0;
}

.platform-card-head {
    align-items: center;
    border-bottom: 1px solid #f0eef7;
    display: flex;
    justify-content: space-between;
    padding: 0.85rem;
}

.platform-card-head span {
    color: #6e6b7b;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.platform-card-head h5 {
    color: #2f2b3d;
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0.25rem 0 0;
}

.platform-card-head > svg,
.platform-card-head > i {
    color: #7367f0;
}

.platform-feed-list,
.platform-dispatch-groups {
    display: grid;
    gap: 0.4rem;
    padding: 0.65rem;
}

.platform-feed-list-dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-feed-item,
.platform-dispatch-row {
    align-items: center;
    background: #fbfbfd;
    border: 1px solid #f0eef7;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 58px;
    padding: 0.65rem;
}

.platform-feed-main {
    min-width: 0;
}

.platform-feed-main strong,
.platform-dispatch-row strong {
    color: #2f2b3d;
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-feed-main span,
.platform-feed-meta span,
.platform-dispatch-row span,
.platform-muted {
    color: #6e6b7b;
    font-size: 0.76rem;
}

.platform-feed-main span {
    display: block;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-feed-meta {
    display: grid;
    flex: 0 0 auto;
    gap: 0.2rem;
    justify-items: end;
    text-align: right;
}

.platform-pill,
.platform-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
}

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

.platform-pill.is-pending,
.platform-status.is-attention {
    background: #fff1df;
    color: #b45f06;
}

.platform-status.is-locked,
.platform-status.is-inactive {
    background: #ffecef;
    color: #ea5455;
}

.platform-section-tools {
    align-items: center;
    background: #fff;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: .65rem .75rem;
}

.platform-filter-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.platform-filter {
    background: #fff;
    border: 1px solid #ebe9f1;
    border-radius: 999px;
    color: #5e5873;
    font-size: 0.8rem;
    font-weight: 800;
    min-height: 32px;
    padding: 0 0.7rem;
}

.platform-filter.is-active {
    background: #7367f0;
    border-color: #7367f0;
    color: #fff;
}

.platform-count {
    color: #6e6b7b;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.platform-table-wrap {
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    background: #fff;
    overflow-x: auto;
}

.platform-table {
    margin: 0;
    min-width: 1060px;
    width: 100%;
}

.platform-table th {
    background: #fbfbfd;
    border-bottom: 1px solid #ebe9f1;
    color: #6e6b7b;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.7rem;
    text-transform: uppercase;
}

.platform-table td {
    border-bottom: 1px solid #f0eef7;
    padding: 0.72rem;
    vertical-align: middle;
}

.platform-table tr:last-child td {
    border-bottom: 0;
}

.platform-account strong {
    color: #2f2b3d;
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.platform-account span {
    color: #6e6b7b;
    display: block;
    font-size: 0.76rem;
    margin-top: 0.25rem;
}

.platform-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    max-width: 320px;
}

.platform-usage span {
    background: #f8f8fb;
    border: 1px solid #ebe9f1;
    border-radius: 7px;
    color: #5e5873;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.28rem 0.42rem;
}

.platform-row-actions {
    text-align: right;
    white-space: nowrap;
}

.platform-row-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.3rem;
    margin-left: 0.25rem;
}

.platform-integration-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.platform-integration-card {
    background: #fff;
    padding: 0.8rem;
}

.platform-integration-top {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.platform-integration-top span {
    align-items: center;
    background: #f3f2ff;
    border-radius: 8px;
    color: #7367f0;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.platform-integration-top strong {
    color: #2f2b3d;
    font-size: 0.94rem;
    font-weight: 800;
}

.platform-integration-numbers {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.85rem;
}

.platform-integration-numbers div {
    background: #fbfbfd;
    border: 1px solid #f0eef7;
    border-radius: 8px;
    padding: 0.55rem;
}

.platform-integration-numbers strong {
    color: #2f2b3d;
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.platform-integration-numbers span {
    color: #6e6b7b;
    font-size: 0.72rem;
    font-weight: 700;
}

.platform-progress {
    background: #f0eef7;
    border-radius: 999px;
    height: 6px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.platform-progress span {
    background: #28c76f;
    display: block;
    height: 100%;
}

.platform-dispatch-row > span {
    color: #2f2b3d;
    font-size: 1rem;
    font-weight: 800;
}

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

.platform-forbidden {
    flex-direction: column;
    min-height: calc(100vh - 11rem);
}

.platform-forbidden svg {
    color: #7367f0;
    height: 32px;
    margin-bottom: 0.75rem;
    width: 32px;
}

.platform-forbidden h4 {
    color: #2f2b3d;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.platform-skeleton {
    animation: platformPulse 1.25s ease-in-out infinite;
    background: linear-gradient(90deg, #f5f5f8 25%, #ecebf2 37%, #f5f5f8 63%);
    background-size: 400% 100%;
    border-radius: 8px;
    min-height: 132px;
}

@keyframes platformPulse {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

@media (max-width: 991.98px) {
    .platform-admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .platform-admin-actions {
        justify-content: stretch;
    }

    .platform-admin-search {
        flex: 1 1 auto;
        max-width: none;
    }

    .platform-grid-two,
    .platform-feed-list-dense {
        grid-template-columns: 1fr;
    }

    .platform-integration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .platform-panel {
        padding: 0.65rem;
    }

    .platform-metrics,
    .platform-integration-grid {
        grid-template-columns: 1fr;
    }

    .platform-admin-actions {
        flex-direction: column;
    }

    .platform-admin-actions .btn,
    .platform-admin-search {
        width: 100%;
    }

    .platform-admin-search {
        flex: 0 0 auto;
    }

    .platform-section-tools {
        align-items: flex-start;
        flex-direction: column;
    }
}
.platform-bni-profile-list {
    display: grid;
    gap: 8px;
}

.platform-bni-profile-row {
    display: grid;
    grid-template-columns: 84px minmax(150px, 1.05fr) minmax(190px, 1.25fr) 104px minmax(132px, .8fr) minmax(132px, .8fr) 88px 44px;
    gap: 8px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--bs-border-color, #d8dfda);
    border-radius: 12px;
    background: #fff;
}

.platform-bni-profile-row .form-label {
    margin-bottom: 4px;
    font-size: .75rem;
}

.platform-bni-profile-row .form-check {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-bni-profile-remove {
    width: 44px;
    height: 38px;
    padding: 0;
}

.platform-bni-provision-footer {
    gap: 8px;
}

@media (max-width: 1199.98px) {
    .platform-bni-profile-row {
        grid-template-columns: 96px minmax(180px, 1fr) minmax(200px, 1.2fr) 132px;
    }

    .platform-bni-profile-row .is-commercial {
        grid-column: 1 / 3;
    }

    .platform-bni-profile-row .is-mobile {
        grid-column: 3 / 5;
    }

    .platform-bni-profile-row .is-whatsapp {
        grid-column: 1 / 4;
    }
}

@media (max-width: 767.98px) {
    .platform-bni-profile-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .platform-bni-profile-row .is-commercial,
    .platform-bni-profile-row .is-mobile,
    .platform-bni-profile-row .is-whatsapp {
        grid-column: 1;
    }

    .platform-bni-profile-remove {
        width: 100%;
    }

    .platform-bni-provision-footer {
        align-items: stretch;
    }

    .platform-bni-provision-footer > * {
        width: 100%;
        margin-right: 0 !important;
    }
}
