﻿




/* Index Sayfa CSS */


/* Satış Tablosu*/
/*
div.satis {
    overflow: auto;
    height: 500px;
}
*/





div.satisHeader {
    height: 60px;
    background-color: red;
}

span.satisHeader {
    font-size: 30pt;
    font-weight: bold;
    color: white;
    /* padding: 5px; */
    border-left-width: 5px;
    margin-left: 10px;
    float:left;
}

.table-satis {
    padding: .5rem;
    font-weight: bold;
    background-color: #e46c0a; /*scroll ustu tablo arkaplan rengi ile başlık arkapalan rengi aynı yapılarak gizlenir.*/
}

.table-secondary,
.table-secondary > td,
.table-secondary > th {
    background-color: #48e4c5; /* Check box ile seçim yapıldığında arka plan rengi*/
}

/* https://stackoverflow.com/questions/23989463/how-to-set-tbody-height-with-overflow-scroll/23989771 (GCyrillus) */
/* https://stackoverflow.com/questions/23989463/how-to-set-tbody-height-with-overflow-scroll/23989771 (brandonkal, Kheema Pandey) --> Alternatif yöntem*/
#sales thead {
    background-color: #e46c0a; /*scroll ustu tablo arkaplan rengi ile başlık arkapalan rengi aynı yapılarak gizlenir.*/
    display: table;
    width: calc( 100% - 1em ); /* scrollbar is average 1em/16px width, remove it from thead width */
    table-layout: fixed; /* even columns width , fix width of table too*/
    color:white;
}
.table {
    --bs-table-bg: none !important; /* bootsrap5 table css özellikleri iptal edilir. */
    --bs-table-color: none !important;
    margin-bottom: unset !important;
}
#sales tbody {
    background-color: #f8f9fa;
    display: block;
    width: 100%;
    table-layout: fixed;
    /*overflow: auto;*/ /*header ve body kolonların hizası için scroll sabit olmalı*/
    overflow-y: scroll;    
    height: calc(100vh - 280px);
}
#sales {
    height: calc( 100% - 300px );
}

#sales tbody tr {
    background-color: #ddd;
    display: table;
    width: 100%;
    table-layout: fixed; /* even columns width , fix width of table too*/
}

    #sales tbody tr:hover {
        /*background-color: #ddd;*/
        background: #e6f7ff;
    }

#sales tr:nth-child(even) {
    background-color: #f2f2f2;
}






.thw1 {
    width: 6%;
    user-select: none;
    cursor: pointer;
}

.thw1:active {
    transform: translate(1px,1px);
}

.thw2 {
    width: 55%;
}

.thw3 {
    width: 13%;
}

.thw4 {
    width: 13%;
}

.thw5 {
    width: 13%;
}

/* Sayfa Body için yanyana div ler oluşturulur. Create  equal columns that floats next to each other */
.columnBody {
    float: left;    
}



/* Header ( Sayfa Başlık) buttons */
.button {
    color: white;
    width: 100%;
    height: 70px;
    font-size: 15pt;
    padding: .5em 1em;
    cursor: pointer;
    box-shadow: 2px 2px 5px hsla(0,0%,0%,.7);
    text-shadow: 0px 0px 1px hsla(0,0%,0%,.8);
    border-radius: 5px;
    /*margin: 1em;*/
    background-image: -webkit-radial-gradient(50% 0%,160% 100%,hsla(0,0%,100%,.3),hsla(0,0%,100%,.3) 50%,hsla(0,0%,100%,0) 52%, hsla(0,30%,400%,0));
    background-color: orange;
    text-align: center;
    display: inline-block;
    font-weight: bolder;
    
}

img {
    margin-top: -35%;
    margin-left: -20%;
    display: block;
}

/* Header (Sayfa Başlık) button divs */

/* Create  equal columns that floats next to each other */
.collHdrBtn {
    float: left;
    /*width: 11.11%;*/
    width: 14.28%;
}

/* Clear floats after the columns */

.rowBody:after {
    content: "";
    display: table;
    clear: both;
}

/* RAF TEMPLATE*/
.grid-raf {
    display: grid;
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    grid-template-columns: auto auto auto auto auto auto auto auto auto auto;
    background-color: #ddd;
    padding: 10px;
    height: 113px;
}

.collRaf {
    float: left;
}

.grid-RafItem {
    background-color: darkgray;
    border: 0px solid rgba(0, 0, 0, 0.8);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;    
    text-align: center;
    min-width: 70px;
    min-height: 50px;
    max-height: 100px;
}

.grid-RafItem-Selected {
    background-color: limegreen;
    border: 0px solid rgba(0, 0, 0, 0.8);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;    
    text-align: center;
    min-width: 70px;
    min-height: 50px;
    max-height: 100px;
}

.btnSList {
    /*.btnUrunTanim*/
    display: block;
    width: 100%;
    height: 100%;
    border: none;    
    /*background-color: #4CAF50;*/
    background-color: #d8d8d8;
    cursor: pointer;
    /*.btnUrunTanim*/
    font-size: 25px;
    font-weight: bold;
    padding: unset;
}



/*
.rafHeader-selected {   
    color: limegreen !important;
}

.rafHeader {
    color: darkgrey
}



*/

.rafHeaderText {
    font: bold 12px Verdana;
    color: white;
}




.grid-rafUye {
    display: grid;
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    grid-template-columns: auto auto auto auto auto auto;
    background-color: rgba(236, 236, 236, 236);
    padding: 10px;
}

/* GRID RAF DETAY*/
.grid-RafDetay {
    display: grid;
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    grid-template-columns: auto auto auto auto auto auto;
    background-color: #ddd;
    padding: 10px;
    height: calc(100vh - 475px);
}

.grid-RafDetayItem {
    background-color: rgba(255, 255, 255, 255);
    border: 0px solid rgba(0, 0, 0, 0.8);
    text-align: center;
    min-width: 70px;
    /*max-width: 200px;*/
    /*
    min-height: 100px;
    max-height: 200px;
    */
    line-height: 1;
    height: auto;
    word-wrap: break-word;
}


.satis-bold {
    font: 15px Verdana;
    color: blue;
    font-weight: bold;
}

/* HESAP MAKINESI*/

.grid-HMak {
    display: grid;
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    grid-template-columns: auto auto auto;
    background-color: #ddd;
    /*padding: 10px;*/
    padding-top: 1px;
    padding-right: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
}

.grid-HMakItem {
    background-color: #4f81bd;
    border: 0px solid rgba(0, 0, 0, 0.8);
    text-align: center;
    min-width: 100px;
    /* max-width: 200px; */
    min-height: 70px;
    max-height: 200px;
    line-height: 1;
}

.satis-HMak {
    font: 35px Verdana;
    color: #f8f9fa;
    font-weight: bold;
}

.grid-HMakItemBtn {
    user-select: none;
    cursor: pointer;
}

.grid-HMakItemBtn:active {
    transform: translate(1px,1px);
}


/* GRID URUN ISLEM */

.grid-UrnIsl {
    display: grid;
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    grid-template-columns: auto;
    background-color: #ddd;
    /*padding: 10px;*/
    padding-top: 1px;
    padding-right: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
}

.grid-UrnIslItem {
    background-color: #4f81bd;
    border: 0px solid rgba(0, 0, 0, 0.8);
    text-align: center;
    /*min-width: 100px;*/
    /* max-width: 200px; */
    /*
    min-height: 70px;
    max-height: 200px;
    */
    line-height: 1;
    user-select: none;
    cursor: pointer;
}

    .grid-UrnIslItem:active {
        transform: translate(1px,1px);
    }

.grid-UrnIsl-2 {
    display: grid;
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    grid-template-columns: auto auto;
    background-color: #ddd;
    /*padding: 10px;*/
    padding-top: 1px;
    padding-right: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
}

.satis-UrnIsl {    
    color: #f8f9fa;
    font-weight: bold;
    font: 12px Verdana;
    font-weight: bold;
}

.modal_top100 {
    top: 100px;   
}

/* MEDIA*/

/*
@media screen and (max-width: 600px) {

    .button {
        width: 8%;
        height: 100px;
    }

}
    */


/* MEDIA*/
@media screen and (max-width: 800px) {


    .button {
        width: 100%;
        font-size: 12px;
        height: 70px;
        font-weight:bolder;
    }

    .columnBody {
        float: left;
        width: 8%;
    }

    /* style="width:1200px;  overflow:auto;" */
}

@media screen and (max-width: 900px) {


    .button {
        width: 100%;
        font-size: 15px;
        height: 70px;
        font-weight: bolder;
    }

    .collHdrBtn {
        float: left;
        width: 11.11%;
    }

    /* style="width:1200px;  overflow:auto;" */
}

@media screen and (max-width: 1400px) {


    .scrollablex-div {
        overflow-x: auto;
        width: 1400px;
    }

   

    /* style="width:1200px;  overflow:auto;" */
}

@media screen and (max-height: 700px) {


    .scrollabley-div {
       
        overflow-y: auto;
    }

    .grid-RafDetay {       
         /*height: calc(100vh - 475px);*/ 
        height: 285px !important;
    }

     /*style="width:1200px;  overflow:auto;"*/ 
}