/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 6.9.2022, 10:42:52
    Author     : Stroch
*/

.access,
.hide
{
    display: none !important;
}

.empty-qr {
    text-align: center;
}

.header {
    background: #10843E;
    color: white;
    z-index: 999;
}

img.logo {
    width: 71px;
    height: 100px;
}

.info {
    top: 105px;
}

.scanned td {
    background: #A6DEBC !important;
}

.info table td,
.info table th
{
    padding: 0 10px 0 0;
}

.info table tbody tr td:last-child,
.info table tfoot tr th:last-child
{
    padding: 0 0 0 10px;
}

dl {
    margin: 0 !important;
}

.main .content {
    height: 100%;
}

#menu .premium a {
    color: gray;
    cursor: default;
}

.settings-info {
    cursor: default;
    color: #10843E;
}

#menu .premium a::before,
#pay .modal-body button[name="qr"]::before
{
    content: attr(premium);
    color: #10843E;
    margin-right: 10px;
    text-transform: uppercase;
}

.menu .synchronize .form-switch > * {cursor: pointer;}
.red {color: red !important;}
.green {color: #10843E !important;}

.info .alert table {
    display: inline-flex;
    flex-direction: column;
    
    thead, tfoot {
        flex: none;
    }
    
    tbody {
        overflow-y: auto;
        
        td {
            white-space: nowrap;
        }
        
        td:last-child {
            padding-right: 10px;
        }
        
        td:nth-child(2n+1) {
            flex: 0;
        }
        
        td:nth-child(2n+0) {
            flex: 1;
        }
    }
    
    tfoot th:last-child {
        text-align: right;
        padding-right: 10px;
    }
    
    th, td {
        box-sizing: border-box;
        flex: 1 0 0;
    }
    
    tr {
        display: flex;
        flex: 1 0;
    }
}

#list table.list {
    width: 100%;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    
    thead, tfoot {
        flex: none;
    }
    
    tbody {
        flex: 1;
        overflow-y: auto;
    }
    
    th, td {
        box-sizing: border-box;
        flex: 1 0 0;
    }
    
    td.price {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    tr {
        display: flex;
        flex: 1 0;
    }
    
    a {
        color: black;
        text-decoration: none;
        font-weight: bold;
    }
    
    tr a.edit {
        border-bottom: 1px var(--bs-border-color) solid;
    }
    
    tr.scanned a.edit {
        background: #A6DEBC !important;
    }
    
    tfoot th.summed {
        white-space: nowrap;
    }
}

#list table.tile {
    display: flex;
    flex-direction: column;
    
    thead {display: none;}
    
    /*width: calc(100vh - 90px);*/
/*    height: calc(100vh - 110px);
    display: flex;*/
    
    tbody,
    tfoot tr {
        height: 100%;
        display: flex;
        flex-direction: row;
    }
    
    tfoot tr {
        justify-content: flex-end;
    }
    
    tfoot th:nth-child(3) {display: none;}
    
    tfoot th:nth-child(4):after {
        content: 'x';
        margin-left: 2px;
    }
    
    tbody {
        flex-wrap: wrap;
        gap: 30px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 30px 0;
        margin: .25rem !important;
    }
    
    tbody tr {
        text-align: center;
        flex: 1 1 auto;
        width: 250px;
    }
    
    tbody tr td {
        border: none;
        display: block;
        font-size: 20px;
        background: #F0F0F0;
        cursor: pointer;
    }
    
    tbody tr td.text-nowrap {
        white-space: normal !important;
        height: 80px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-top: 1px solid #E8E8E8;
        color: #10843E;
    }
    
    tbody tr td.price,
    tbody tr td.text-nowrap
    {
        border-left: 1px solid #E8E8E8;
        border-right: 1px solid #E8E8E8;
    }
    
    tbody tr td.sold,
    tbody tr td.stock
    {
        border-bottom: 1px solid #E8E8E8;
        font-size: 17px;
    }
    
    tbody tr td.sold {
        float: left;
        text-align: right !important;
        width: 50%;
        border-bottom-left-radius: 10px;
        border-left: 1px solid #E8E8E8;
    }
    
    tbody tr td.stock {
        float: right;
        text-align: left !important;
        width: 50%;
        border-bottom-right-radius: 10px;
        border-right: 1px solid #E8E8E8;
    }
    
    tbody tr td.stock:before {
        content: '/';
        position: relative;
        left: -5px;
        color: black;
    }
    
    tbody a.edit {
        position: relative;
        top: -35px;
        right: 10px;
        padding: 0;
        background-color: transparent;
        float: right;
    }

    a {
        color: black;
        text-decoration: none;
        font-weight: bold;
    }
}

#license table {
    display: flex;
    flex-direction: column;
    
    thead tr {display: flex;}
    thead tr th {width: 100%;}
    
    tbody {
        max-height: 200px;
        overflow-y: auto;
    }
}

.navbar {
    justify-content: end !important;
}

.collapse {
    margin-left: -100px;
    z-index: 1000;
}

.synchronize {
    position: absolute;
    right: 0;
}

#sales_of_dates table {
    thead th:first-child,
    tbody td:first-child,
    tfoot th:first-child
    {
        text-align: left;
    }
    thead th,
    tbody td,
    tfoot th
    {
        white-space: nowrap;
    }
    
    tbody td:nth-child(5),
    tbody td:nth-child(9)
    {
        font-weight: bold;
    }
}

#premium_func .modal-body ol:before {
    margin-left: -50px;
    font-size: 25px;
    position: absolute;
    margin-top: 6px
}

@media screen and (max-width: 768px) {
    .btn {
        padding: .25rem .5rem !important;
        font-size: .875rem !important;
    }
    
    .form-control {
        padding: .25rem .5rem !important;
        font-size: .875rem !important;
    }
    
    .synchronize {
        position: relative;
        float: right;
    }
    
    .navbar button {
        padding: 1px 6px 4px 6px;
    }
    
    .navbar button span {
        font-size: 14px;
    }
    
    #list table.tile {
        tbody {
            gap: 15px;
            padding: 15px 0;
        }
        
        tbody tr {
            width: 200px;
        }
        
        tbody tr td {
            font-size: 16px;
        }
        
        tbody tr td.text-nowrap {
            height: 50px;
        }
        
        tfoot th {
            padding: 4px;
            font-size: 14px;
        }
    }
    
    .info .alert h2 {font-size: 20px;}
    .info .alert {
        padding: 5px;
        font-size: 15px;
    }
    
    #refund .modal-body table tr td:last-child {
        white-space: nowrap;
    }
}

@media screen and (max-width: 992px) {
    .main .content {
        flex-direction: column !important;
    }
    
    .info .alert table {
        max-height: 200px;
        
        tbody {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            column-gap: 30px;
            justify-content: flex-start;
        }
        
        tbody tr {
            flex: none;
            width: 250px;
            min-width: 250px;
        }
        
        tbody tr td:nth-child(2) {
            white-space: normal;
        }
        
        tfoot tr {
            display: block;
            margin-top: 10px;
        }
    }
}

@media screen and (max-width: 576px) {
    #refund .modal-body table tr td:last-child {
        white-space: normal;
    }
    
    .info .alert table {
        max-height: 150px;
        
        tbody tr {
            flex: none;
            width: auto;
            min-width: 100%;
        }
        
        tfoot tr {
            display: flex;
            margin-top: 5px;
        }
    }
    
    #list table.list tbody tr td:first-child span {
        white-space: wrap;
    }
    
    #list table.list tbody tr td {
        width: 25%;
        align-content: center;
    }
}

@media screen and (max-width: 370px) {
    .header {
        img {
            position: absolute;
            width: 50px;
            height: auto;
        }
        
        .menu h1 {
            position: relative;
            margin-left: 20px;
            z-index: 1;
        }
    }
}

@media screen and (min-width: 992px) {
    img.logo {
        width: 78px;
        height: 110px;
    }
    
    .info .alert table tbody {
        height: calc(100vh - 222px);
    }
}