﻿/* =========================================================
   Genel - taşma kontrol
   ========================================================= */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* sayfa taşmasın */
}

/* Kamera sayfası */
.camera-wrap {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    max-height: 45vh;
}

    .camera-wrap video {
        width: 100%;
        height: auto;
        max-height: 45vh;
        display: block;
        object-fit: cover;
    }

/* Genel tablolar (diğer sayfalar) */
.table-responsive {
    overflow-x: auto;
}

td, th {
    word-break: break-word;
}

/* =========================================================
   ✅ ProductSales (Ürün Satış Analizi)
   - Yatay scroll geri gelsin
   - Kolon gizleme için .is-hidden
   ========================================================= */

.ps-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.ps-table {
    width: max-content !important; /* kolonlar doğal genişlesin */
    min-width: 1200px; /* daralmasın */
    table-layout: auto !important; /* fixed'i ez */
    font-size: 12.5px;
}

    .ps-table th,
    .ps-table td {
        white-space: nowrap !important; /* satır kırma yok */
        word-break: normal !important;
        vertical-align: middle;
    }

        .ps-table td.num,
        .ps-table th.num {
            text-align: right;
            white-space: nowrap;
        }

        .ps-table td.txt {
            white-space: nowrap;
        }

.ps-muted {
    color: #6c757d;
    font-size: .9rem;
}

.ps-btn {
    white-space: nowrap;
}

.ps-colbox {
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    padding: .75rem;
    background: #fff;
    margin-bottom: .75rem;
    display: none; /* default kapalı */
}

.ps-colgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem .75rem;
}

@media (max-width: 992px) {
    .ps-colgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .ps-colgrid {
        grid-template-columns: 1fr;
    }
}

/* Gizli kolonlar */
[data-col].is-hidden {
    display: none !important;
}

/* Toplam satır stili */
.ps-total-row {
    background: #f8f9fa;
    font-weight: 700;
}
/* ================================
   CAMERA WRAPPER
================================ */

.camera-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.camera-video {
    object-fit: cover;
    height: 320px;
}

/* ================================
   SCAN FRAME
================================ */

.scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 140px;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.35);
}

    /* köşe efektleri */
    .scan-frame::before,
    .scan-frame::after {
        content: "";
        position: absolute;
        width: 28px;
        height: 28px;
        border: 4px solid #fff;
    }

    /* sol üst */
    .scan-frame::before {
        top: -4px;
        left: -4px;
        border-right: none;
        border-bottom: none;
    }

    /* sağ alt */
    .scan-frame::after {
        bottom: -4px;
        right: -4px;
        border-left: none;
        border-top: none;
    }
.navbar-brand img {
    height: 36px;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }
}