/* =====================================================
   SWITCH iOS - STATUS
===================================================== */
    
.sbc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.sbc-switch input {
    display: none;
}

.sbc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 34px;
    transition: .3s;
}

.sbc-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

.sbc-switch input:checked + .sbc-slider {
    background: #22c55e;
}

.sbc-switch input:checked + .sbc-slider::before {
    transform: translateX(22px);
}


/* =====================================================
   TABELA ADMIN — PADRÃO PROFISSIONAL
===================================================== */

.wrap h1 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

/* Container visual */
.wrap table.widefat {
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Cabeçalho */
.widefat thead th {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Linhas */
.widefat tbody tr {
    transition: background .2s ease;
}

.widefat tbody tr:hover {
    background: #f9fafb;
}

/* Células */
.widefat td {
    padding: 12px 10px;
    vertical-align: middle;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

/* Última linha sem borda */
.widefat tbody tr:last-child td {
    border-bottom: none;
}

/* Coluna Link */
.widefat td:nth-child(3) {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2563eb;
}

/* Coluna Ações */
.widefat td:last-child {
    white-space: nowrap;
}

/* Botões */
.widefat .button {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

.widefat .button-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.widefat .button-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.widefat .button:not(.button-primary) {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.widefat .button:not(.button-primary):hover {
    background: #e5e7eb;
}

/* Status switch alinhado */
.widefat td .sbc-switch {
    transform: scale(0.9);
}


/* =====================================================
   AJUSTES FINAIS — CABEÇALHO DA TABELA
===================================================== */

/* Espaço acima da tabela */
.wrap table.widefat {
    margin-top: 16px;
}

/* Cabeçalho com separação clara */
.widefat thead th {
    border-bottom: 2px solid #e5e7eb;
}

/* Arredondamento correto do topo */
.widefat thead th:first-child {
    border-top-left-radius: 10px;
}

.widefat thead th:last-child {
    border-top-right-radius: 10px;
}

/* Linha inteira do thead com fundo sólido */
.widefat thead tr {
    background: #f9fafb;
}

/* Ajuste visual do status */
.widefat td .sbc-switch {
    margin-top: 2px;
}

/* Centraliza Status e Ordem */
.widefat td:nth-child(6),
.widefat th:nth-child(6),
.widefat td:nth-child(5),
.widefat th:nth-child(5) {
    text-align: center;
}

/* Ações mais alinhadas */
.widefat td:last-child {
    text-align: right;
}



/* ================================
   SBC TV — BLOCO FIXO EM PIXELS
================================ */

/* ================================
   SBC TV — BLOCO FIXO (EXATO)
================================ */

.sbc-tv-wrapper {
    width: 200%;
    max-width:2000px;
    background: #222222;
    margin-left:-229px;
}

.sbc-tv-container {
    width: 1366px;
    max-width: 100%;
    height: 398px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 618px 520px;
    gap: 20px;
    align-items: center;
}

/* QUADRO 01 */
.sbc-tv-main .sbc-video-box {
    width: 618px;
    height: 346px;
    overflow: hidden;
    margin-left:-90px;
}

/* IFRAMES */
.sbc-video-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* QUADROS 02–05 */
.sbc-tv-side {
    display: grid;
    grid-template-columns: repeat(2, 255px);
    grid-template-rows: repeat(2, 159px);
    gap: 20px;
     margin-left:-90px;
}

.sbc-tv-side .sbc-video-box {
    width: 255px;
    height: 159px;
    overflow: hidden;
}
