﻿.dashboard-card {
    transition: .25s;
    cursor: pointer;
    border-radius: 15px;
}

    .dashboard-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,.15) !important;
    }

    .dashboard-card h1 {
        font-size: 55px;
    }

    .dashboard-card h5 {
        margin-top: 15px;
        color: #444;
    }

.card {
    border-radius: 12px;
}


.form-control {
    border-radius: 8px;
}


@media(max-width:576px) {

    .card-header h3 {
        font-size: 1.3rem;
    }


    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

.table-responsive {
    border-radius: 10px;
}


@media(max-width:768px) {

    .card-header h3 {
        font-size: 1.3rem;
    }


    .table {
        font-size: .85rem;
    }


        .table td,
        .table th {
            white-space: nowrap;
        }


    .badge {
        font-size: .75rem;
    }
}

@media(max-width:768px) {

    .mobil-gizle {
        display: none;
    }


    .customer-table th,
    .customer-table td {
        font-size: 14px;
    }


        .customer-table td:nth-child(2) {
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


    .customer-table .btn {
        padding: 5px 8px;
    }
}
/***************** cari haraketler ***************/

@media(max-width:768px) {

    .mobil-aciklama {
        display: none;
    }


    .table-responsive {
        overflow-x: auto;
    }


    .card-header h3,
    .card-header h4 {
        font-size: 1.2rem;
    }


    .table th,
    .table td {
        font-size: 14px;
        white-space: nowrap;
    }
}

/* PAYMENT VİEW */

/* Tahsilat sayfası özel */
.payment-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}


    .payment-table th,
    .payment-table td {
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


        .payment-table th:nth-child(1),
        .payment-table td:nth-child(1) {
            width: 140px;
        }


        .payment-table th:nth-child(2),
        .payment-table td:nth-child(2) {
            width: 35%;
        }


        .payment-table th:nth-child(3),
        .payment-table td:nth-child(3) {
            width: 140px;
        }


        .payment-table th:nth-child(4),
        .payment-table td:nth-child(4) {
            width: auto;
        }



@media(max-width:768px) {


    .payment-hide-mobile {
        display: none;
    }


    .payment-table th,
    .payment-table td {
        font-size: 14px;
    }
}


/* product index */

/* Ürün Tablosu */

.product-table {
    width: 100%;
}


    .product-table th,
    .product-table td {
        vertical-align: middle;
        white-space: nowrap;
    }



    .product-table img {
        width: 70px;
        height: 70px;
        object-fit: contain;
    }



@media(max-width:768px) {


    .product-image {
        display: none;
    }



    .product-table th,
    .product-table td {
        font-size: 14px;
    }



    .product-table .btn {
        padding: 5px 8px;
    }



    .product-table td:nth-child(3) {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Ürün mobil tablo düzeni */

/* =========================
   ÜRÜN TABLOSU
========================= */

.product-table {
    width: 100%;
}


    /* Hücre düzeni */

    .product-table th,
    .product-table td {
        vertical-align: middle;
    }


    /* Butonlar */

    .product-table .btn {
        font-size: 13px;
        padding: 6px 10px;
        white-space: nowrap;
    }


/* =========================
   MOBİL TASARIM
========================= */

@media(max-width:768px) {


    .product-table {
        table-layout: fixed;
    }


        .product-table th,
        .product-table td {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


            /* Barkod */

            .product-table th:nth-child(1),
            .product-table td:nth-child(1) {
                width: 25%;
            }



            /* Ürün adı */

            .product-table th:nth-child(2),
            .product-table td:nth-child(2) {
                width: 35%;
            }



            /* Stok */

            .product-table th:nth-child(3),
            .product-table td:nth-child(3) {
                width: 15%;
                text-align: center;
            }



            /* İşlemler */

            .product-table th:nth-child(4),
            .product-table td:nth-child(4) {
                width: 25%;
            }



        .product-table .btn {
            display: block;
            width: 100%;
            margin-bottom: 5px;
            font-size: 12px;
            padding: 5px;
        }
}

@media(max-width:768px) {

    .product-table .btn {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Ürün stok etiketi */

.stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 28px;
    padding: 3px 8px;
    background: #198754;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
}


@media(max-width:768px) {

    .stock-badge {
        min-width: 32px;
        height: 26px;
        font-size: 15px;
        padding: 2px 6px;
    }
}


/* SALES LİST */

.sale-history-table th,
.sale-history-table td {
    white-space: nowrap;
}


@media(max-width:768px) {

    .sale-hide-mobile {
        display: none;
    }


    .sale-history-table th,
    .sale-history-table td {
        font-size: 14px;
    }


    .sale-history-card .btn {
        padding: 6px 10px;
    }
}

@media(max-width:768px) {

    .sale-history-table tfoot th {
        text-align: center !important;
        width: 100%;
        display: table-cell;
    }


        .sale-history-table tfoot th[colspan] {
            text-align: center !important;
        }
}

.sale-total-mobile {
    display: none;
}



.sale-footer-mobile {
    display: none;
}



@media(max-width:768px) {


    .sale-footer-desktop {
        display: none;
    }


    .sale-footer-mobile {
        display: table-row;
    }


        .sale-footer-mobile th {
            text-align: center !important;
        }
}


@media (max-width:768px) {

    .barcode-column {
        display: none !important;
    }

    .product-name-column {
        font-weight: bold;
        font-size: 16px;
    }
}

@media (max-width:768px) {


    /* Tablo genel */
    .table-responsive {
        overflow-x: hidden;
    }


    table {
        width: 100%;
        table-layout: fixed;
    }



    /* Resim gizle mobilde */
    .product-image {
        display: none;
    }



    /* Ürün adı geniş */
    .product-name-column {
        width: 55% !important;
        font-size: 16px !important;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }



    /* Stok küçük alan */
    .stock-column {
        width: 15% !important;
        text-align: center;
    }



    .stock-badge {
        font-size: 13px !important;
        padding: 5px 8px !important;
    }



    /* İşlem alanı */
    .action-column {
        width: 35% !important;
        text-align: center;
    }



        /* Butonlar yan yana */
        .action-column .btn {
            display: inline-block !important;
            width: auto !important;
            padding: 5px 6px !important;
            font-size: 11px !important;
            margin: 0 1px;
        }
}

/*@media(max-width:768px) {


    #saleTable {
        table-layout: fixed;
        font-size: 13px;
    }*/



        /* KOD GİZLE */

        /*#saleTable .code-column {
            display: none;
        }*/



        /* ÜRÜN EN GENİŞ ALAN */

        /*#saleTable .product-column {
            width: 40% !important;
            min-width: 140px;
            font-weight: bold;
            white-space: normal;
        }*/




        /* STOK */

        /*#saleTable .stock-column {
            width: 10% !important;
            text-align: center;
            font-size: 12px;
        }*/





        /* ADET */

        /*#saleTable .qty-column {
            width: 12% !important;
        }



            #saleTable .qty-column input {
                width: 45px;
                padding: 3px;
                font-size: 12px;
            }*/





        /* BİRİM FİYAT */

        /*#saleTable .price-column {
            width: 18% !important;
        }


            #saleTable .price-column input {
                width: 70px;
                padding: 3px;
                font-size: 12px;
            }*/





        /* TOPLAM */

        /*#saleTable .total-column {
            width: 15% !important;
            font-size: 12px;
            text-align: center;
        }*/




        /* SİL */

        /*#saleTable .delete-column {
            width: 5% !important;
        }


            #saleTable .delete-column button {
                padding: 3px 5px;
                font-size: 12px;
            }
}*/

/* Varsayılan: PC görünümü */
.mobile-price-title {
    display: none;
}

.desktop-price-title {
    display: inline;
}

/* Sadece mobil */
@media (max-width: 768px) {

    .mobile-price-title {
        display: inline;
    }

    .desktop-price-title {
        display: none;
    }


}

/* SADECE MOBİL SATIŞ TABLOSU */
@media (max-width: 768px) {

    /* Tablo mobil genişliğe uyum sağlasın */
    #saleTable {
        width: 100%;
        table-layout: auto;
        font-size: 11px;
    }

        #saleTable th,
        #saleTable td {
            padding: 5px 3px;
            vertical-align: middle;
        }

        /* Kod kolonunu gizle */
        #saleTable .code-column {
            display: none !important;
        }

        /* Ürün adı okunabilir kalsın */
        #saleTable .product-column {
            min-width: 75px;
            font-weight: bold;
            overflow-wrap: anywhere;
        }

        /* Stok */
        #saleTable .stock-column {
            width: 35px !important;
            text-align: center;
            white-space: nowrap;
        }

        /* Adet alanı */
        #saleTable .qty-column {
            width: 35px !important;
            min-width: 30px;
        }

            #saleTable .qty-column input {
                width: 30px !important;
                min-width: 0;
                padding: 5px 2px;
                font-size: 12px;
                text-align: center;
            }

        /* Birim fiyat (BF) */
        #saleTable .price-column {
            width: 52px !important;
            min-width: 52px;
            padding: 3px !important;
            white-space: nowrap;
        }

            #saleTable .price-column input {
                width: 42px !important;
                min-width: 0;
                padding: 5px 2px;
                font-size: 12px;
                box-sizing: border-box;
                text-align: center;
            }

        /* Satır toplamı */
        #saleTable .total-column {
            min-width: 55px;
            white-space: nowrap;
            font-size: 10px;
            text-align: center;
        }

        /* Sil butonu: basılabilecek alan */
        #saleTable .delete-column {
            width: 36px !important;
            min-width: 36px;
            padding: 3px !important;
            text-align: center;
        }

            #saleTable .delete-column button {
                min-width: 30px;
                min-height: 34px;
                padding: 5px 3px;
                touch-action: manipulation;
            }

        /* Genel toplam satırı */
        #saleTable tfoot th {
            padding: 8px 3px;
            font-size: 11px;
            white-space: nowrap;
        }

        #saleTable #grandTotal {
            white-space: nowrap;
            font-weight: bold;
        }

    /* Tablo alanı yatay taşarsa kendi içinde kaydırılsın */
    #saleTable {
        margin-bottom: 0;
    }

    /* Satışı tamamla butonu */
    #btnFinishSale {
        width: 100%;
        min-height: 46px;
        font-size: 14px;
    }

   
}

/* Varsayılan: PC */
.mobile-qty-title {
    display: none;
}

.desktop-qty-title {
    display: inline;
}

/* Sadece mobil */
@media (max-width: 768px) {
    .desktop-qty-title {
        display: none;
    }

    .mobile-qty-title {
        display: inline;
    }
}

@media (max-width: 768px) {

    .sale-history-table td:nth-child(3) {
        font-size: 12px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.4;
        max-width: 120px;
    }
}