/* Centrado de tabla de facturación */
table.facturacion-table th,
table.facturacion-table td {
    text-align: center;
    vertical-align: middle;
}
/* Player de canales responsivo */
.canal-responsive-player {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    background: #222;
    display: block;
}
@media (max-width: 900px) {
    .canal-responsive-player {
        min-width: 160px;
    }
}
@media (max-width: 600px) {
    .canal-responsive-player {
        min-width: 120px;
    }
}
/* Player de cámaras responsivo */

.cam-responsive-player {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    background: #222;
    display: block;
}
.w3-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
@media (max-width: 900px) {
    .cam-responsive-player {
        min-width: 160px;
    }
}
@media (max-width: 600px) {
    .cam-responsive-player {
        min-width: 120px;
        max-width: 100vw;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    .w3-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.camaras-header {
    background: linear-gradient(90deg, #4f8cff 0%, #6ed6ff 100%);
    color: white;
    padding: 10px 24px 16px 24px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}
.camaras-card {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: -8px;
}
.cam-wrap {
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cam-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4f8cff;
    font-size: 1.1em;
}
@media (max-width: 900px) {
    .camaras-header,
    .camaras-card {
        padding: 12px;
    }
    iframe {
        height: 220px;
    }
}
@media (max-width: 600px) {
    .w3-row-padding > .w3-col {
        margin-bottom: 16px !important;
    }
    iframe {
        height: 160px;
    }

    .video-poster {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .w3-main {
        padding: 0 !important;
    }
}

.video-poster {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

#camaras-grilla,
#canales-grilla {
    padding-top: 20px;
}

.facturas-header {
    background: linear-gradient(90deg, #4f8cff 0%, #6ed6ff 100%);
    color: white;
    padding: 10px 24px 16px 24px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}
.facturas-card {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-top: -8px;
}
.facturas-table th {
    background: #f2f6fa;
    font-weight: 600;
    text-align: left;
    padding: 12px 8px;
}
.facturas-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eaeaea;
}
.facturas-table tr:last-child td {
    border-bottom: none;
}
.right {
    text-align: right;
}
@media (max-width: 600px) {
    .hide-sm {
        display: none;
    }
    .facturas-header,
    .facturas-card {
        padding: 12px;
    }
}

.ei-bg {
    background-repeat: no-repeat !important;
    background: #0baaf9;
    background: linear-gradient(
        180deg,
        rgba(11, 170, 249, 0.24) 0%,
        rgba(203, 236, 100, 0.25) 44%,
        rgba(255, 255, 255, 1) 100%
    );
}

.bill-card {
    max-width: 665px;
    margin: 18px auto;
    border-radius: 8px;
    overflow: hidden;
}
.bill-header {
    font-size: 14px;
    color: #666;
    padding: 10px 16px;
    background: #f7f7f7;
}
.amount {
    font-size: 46px;
    font-weight: 700;
    margin: 6px 0;
    letter-spacing: -1px;
}
.pay-btn {
    background: #093a4b;
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.meta {
    color: #8a8a8a;
    font-size: 13px;
    margin-top: 6px;
}
.note {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid #eee;
    background: #fff;
    font-size: 13px;
    color: #2d7d46;
}
.note .fa-circle-check {
    background: #e8f7ec;
    color: #2d7d46;
    border-radius: 50%;
    padding: 6px;
    font-size: 16px;
}
@media (max-width: 480px) {
    .amount {
        font-size: 40px;
    }
    .bill-card {
        margin: 12px;
    }
}

.vjs-ei.video-js {
    color: #fff;
    background-color: #000;
    min-width: 270px;
}

.vjs-ei .vjs-control-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 100%);
    height: 48px;
}

.vjs-ei .vjs-play-progress,
.vjs-ei .vjs-volume-level {
    background-color: #1f80e0;
}
.vjs-ei .vjs-slider {
    background: rgba(255, 255, 255, 0.25);
}

.vjs-ei .vjs-control {
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.vjs-ei .vjs-control:hover {
    opacity: 1;
}

.vjs-ei .vjs-time-tooltip {
    background: #1f80e0;
    color: #fff;
}

.vjs-ei .vjs-fullscreen-control {
    font-size: 1.2em;
    bottom: 3px;
}

.botonera-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.botonera-btn {
    flex: 1 1 45%;
    min-width: 140px;
    max-width: 48%;
    margin-bottom: 16px;
}
@media (max-width: 600px) {
    .botonera-btn {
        max-width: 48%;
    }
    .ei-container {
        height: 80vh !important;
    }
}

.bgimg {
    background: #0baaf9;
    background: linear-gradient(
        180deg,
        rgba(11, 170, 249, 0.24) 0%,
        rgba(203, 236, 100, 0.25) 44%,
        rgba(255, 255, 255, 1) 100%
    );
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 32px;
}
