@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/11.0.0/css/fabric.min.css');

:root {
    --light-color: #f1faee;
    --red-color: #e63946;
    --accent-color: #a8dadc;
    --light-dark-color: #457b9d;
    --dark-color: #1d3557;
    --max-width: 1100px;
}

html, body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

body {
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
}

a, .btn-link {
    color: var(--light-dark-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
}

.form-header {
    max-width: 400px;
    margin-bottom: 2rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    font-size: 1.2rem;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#datepicker-control {
    width: 400px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.content-width {
    width: 100%;
    max-width: var(--max-width);
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}
.top-row {
    height: 70px;
    display: flex;
    align-items: center;
    z-index: 100;
    background-color: var(--light-color);
    -webkit-box-shadow: 0px 5px 15px -6px rgba(0,0,0,0.75);
    box-shadow: 0px 5px 15px -6px rgba(0,0,0,0.75);
}

.top-row .content-width {
    align-items: center;
}

.top-row .logo {
    float: left;
    text-transform: uppercase;
    font-size: 1.2rem;
    white-space: nowrap;
    /*position: absolute;*/
}

.top-row .logo img{
    width: 30px;
    height:30px;
    margin-right: 15px;
    margin-left: 15px;
}

.ms-Icon--ChevronLeftSmall {
    position: relative;
    top: 3px;
}

.ms-Icon--ChevronRightSmall {
    position: relative;
    top: 2px;
}

h3 {
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        /*justify-content: flex-end;*/
    }
        .main .top-row .content-width {
            /*background-color: #f7f7f7;*/
            display: flex;
            justify-content: space-between;
            /*justify-content: flex-end;*/
        }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

 #main-menu {
    text-align: left;
    float: left;
}

/* Layout */
.container-m {
/*    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;*/
}

.btn-logout {
    font-size: 1rem;
}

.login-icon {
    margin-right: 5px;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item span{
    margin-right: 5px;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
        background-color: rgba(255,255,255,0.25);
        color: white;
    }

    .sidebar .nav-item a:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    padding: 0;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }




nav ul {
    display: flex;
    margin-bottom: 0;
}

    nav ul li {
        margin-right: 1.5rem;
    }

        nav ul li a:hover {
            color: black;
        }

.login-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-section a {
    margin-right: 15px;
}

.content {
    /*padding-top: 1.1rem;*/
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#components-reconnect-modal {
    display: none !important;
}

.components-reconnect-show, .components-reconnect-failed, .components-reconnect-rejected {
    display: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Syncfusion Toast*/



/* Design CSS */

header {
    margin: 15px;
}

.menu-header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 20px;
}

.day-back, .day-forward {
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
}

.day-back, .day-forward i {
    padding-top: 10px;
}

.day-back-text, .day-forward-text {
    font-size: 1.2rem;
    margin-left: 5px;
    margin-right: 5px;
    display: inline-flex;
    font-weight: 600;
}

.day-arrow {
    display: inline-flex;
}
.menu-card {
    margin: 15px;
}

.menu-date {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    width: 330px;
}

thead {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #f3f2f1;
}

td {
    padding: 10px;
}


.menu-card-table {
    text-align: center;
}

.menu-card-item {
    border-bottom: 2px solid #f3f2f1;
}

.menu-card-item-name {
    text-align: left;
}

.menu-card-category {
    text-align: left;
    font-size: 1.4rem;
    text-decoration: underline;
    font-weight: bolder;
}

.menu-card-item-price {
    cursor: pointer;
}

/* Admin/Categories */
.category-table {
    margin-top: 15px;
}

/* IndexOrders.razor */
.summary {
    display: inline-block;
    margin-right: 15px;
}
/* IndexItems */
.edit-items {
    margin-right: 5px;
}

/* WeekMenu.razor */

/*.menu-items {
    background-color: #e3e3e3;
}*/

.price {
    cursor: pointer;
    margin-right: 20px;
    width: 89px !important;
    font-size: 0.8rem;
}
/* Index.razor */
.day-disabled {
    pointer-events: none;
    cursor: not-allowed;
    /* for "disabled" effect */
    opacity: 0.5;
    color: #CCC;
}

.day-disabled:hover {
    cursor: not-allowed;
}

/* DishMenu.razor */
.dish-menu {
    display: flex;
    /*flex-wrap: wrap;*/
    margin-top: 2rem;
    overflow-wrap: normal;
    justify-content: space-between;
}

.dish-menu-inner {
    /*flex-shrink: 0;*/
    min-width: 60%;
    padding-right: 2rem;
    padding-left: 2rem;
}

.side-cart {
    /*flex-shrink: 0;*/
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    padding: 1rem 0.5rem;
    min-width: 40%;
}

.side-cart-header {
    text-align: center;
    word-break: break-word;
}

.side-cart-header > p {
    font-weight: bold;
}

.side-cart-header p:last-child {
    font-weight: normal;
    /*font-size: 10px;*/
}

.order-btn {
    text-align: center;
}

.navbar-dark {
    background-color: var(--dark-color) !important;
    border-bottom: none !important;
}

/* WeeklySummary.razor*/
#weeklysummary td, th {
    padding: 5px;
}

#dailysummary td, th {
    padding: 5px;
}

#dailyorderitemcount td, th {
    padding: 5px;
}

.paid-status {
    background-color: #28a745;
    text-align: center;

}

.paid-status p {
    font-weight: bold;
    font-size: large;
    color: white;
}


@media (max-width: 1150px) {
    .dish-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
        .dish-menu-inner {
        /*flex-shrink: 0;*/
        min-width: 100%;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .side-cart {
        /*flex-shrink: 0;*/
        margin-top: 1.2rem;
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
        padding: 1rem 0.5rem;
        min-width: 80%;
        justify-self: center;
    }

    .top-row .logo {
        font-size: 0.8rem;
    }

    .top-row {
        font-size: 0.85rem;
    }

/*    .top-row .logo img {
        display: none;
    }*/
    
}

@media (max-width: 767.98px) {
    /*.main .top-row:not(.auth) {
        display: none;
    }*/

    .day-back-text, .day-forward-text {
        display: none;
    }

    .day-arrow {
        font-size: 1.5rem;
    }

    .main .auth {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }


    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
        justify-content: space-between;
    }

/*    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }*/

    .navbar-toggler {
        display: none;
    }

    .mobile-nav {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

