﻿.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;
        }
}