﻿#Webonly {
    /* Your table styles */
}

/* Media query for smaller screens (phones) */
@media only screen and (max-width: 600px) {
    /* Hide the first four cells' image buttons when screen size is smaller */
    Webonly tr td:nth-child(-n+4) {
        display: none;
    }
}

* {
    font-family: Arial, Helvetica, sans-serif;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

body {
    background-color: rgb(248, 248, 255);
}

.Grid td {
    background-color: #A1DCF2;
    color: black;
    font-size: 10pt;
    line-height: 200%
}

.Grid th {
    background-color: #3AC0F2;
    color: White;
    font-size: 10pt;
    line-height: 200%
}

.ChildGrid td {
    background-color: #eee !important;
    color: black;
    font-size: 10pt;
    line-height: 200%
}

.ChildGrid th {
    background-color: #6C6C6C !important;
    color: White;
    font-size: 10pt;
    line-height: 200%
}

.MessageDiv {
    width: 100%;
    background-color: #7D9C9F;
    border-color: #4682B4;
    border-style: solid;
    height: 25px;
    border-width: thin;
    color: #8b0000;
    font-family: Arial (Hebrew);
    font-size: 18px;
    font-style: italic;
}

.login-container .MessageDiv {
    height: calc(1.5em + .75rem + 2px);
}

.InstructionsDiv {
    width: 100%;
    background-color: #FFFFE0;
    border-color: #4682B4;
    border-style: solid;
    height: 65px;
    border-width: thin;
    color: #8b0000;
    margin-right: 5px;
    margin-left: 5px;
}

.LoginTable {
    width: 80%;
    height: 100%;
    direction: rtl;
    border: 0;
}

.PageTable {
    width: 100%;
    height: 100%;
    direction: rtl;
    border: 0;
    text-align: center;
}

.MainTable {
    width: 100%;
    height: 100%;
    direction: rtl;
    border: 0;
    text-align: center;
}

.LabelFont {
    font-family: Arial (Hebrew);
    font-size: 16px;
    font-style: italic;
}

.InfoLabelFont {
    font-family: Arial (Hebrew);
    font-size: 15px;
    color: #8b0000;
}

.MsgLabelFont {
    font-family: Arial (Hebrew);
    font-size: 24px;
    color: #8b0000;
    text-align: center;
}

.TableDiv {
    POSITION: relative;
    OVERFLOW: scroll;
    WIDTH: 100%;
}

.MsgB {
    direction: rtl;
    text-align: right;
}

.DispatchData {
    color: Gray;
}

.TreeTable {
    width: 15%;
    vertical-align: text-top;
}

form {
    margin-block-end: 0;
}

/* New Design: */

header {
    margin-bottom: 2rem;
}

ul {
    padding-inline-start: 0;
}

body::-webkit-scrollbar {
    display: none;
}

.master-container {
    display: flex;
    flex-direction: row;
}

.dispatch-form .single-input {
    margin-bottom: 1rem;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.single-input {
    flex-grow: 1;
    padding: 5px;
    flex-basis: 25%;
}

.user-details-container .single-input {
    flex-basis: 33%;
}

.double-input {
    flex-basis: 50% !important;
}

.badge {
    font-size: 1rem !important;
    margin-bottom: 3px;
    padding: 5px;
}

.single-input input.form-control {
    width: 100%;
}

div.double-input input.form-control {
    width: 50%;
}

div.single-input input.hour-input {
    width: 3rem;
}

.login-container .single-input span {
    width: 20%;
    min-width: fit-content;
}

#officerNameInput {
    flex-basis: 25%;
    width: 25%;
}

@media screen and (max-width: 600px) {
    .user-details-container .single-input {
        flex-basis: 100%;
    }

    .single-input {
        flex-basis: 50%;
    }

    div.double-input {
        flex-basis: 100%;
    }

    .single-detail {
        flex-basis: 100%;
    }
}

.login-container {
    width: 50%;
    align-content: center;
    transform: translateX(-50%);
}

    .login-container[type="submit"] {
        width: 25%;
    }

.login-header {
    margin-left: auto;
    margin-right: auto;
}

    .login-header div {
        width: 50%;
    }

.login-container .btn.btn-danger {
    width: 50%;
}

.only-members-text {
    padding: 5px;
}

.single-detail {
    flex-basis: 33%;
}

.badge-primary {
    background-color: #485c5acc !important;
}

.badge-light-grey {
    background-color: #6c757dd6 !important;
}

.badge-light-blue {
    background-color: #007bff !important;
}

.secondary-navbar {
    display: none;
    width: 2rem;
}

.nav-link {
    color: #212529;
}

a:hover, a:visited, a:active {
    color: initial;
}

.secondary-navbar .second-level-dropdown .second-level-dropdown {
    left: 100%;
    top: 0;
}

.dot {
    background-color: white;
    margin: 0.2rem auto;
    height: 0.25rem;
    width: 0.25rem;
    border-radius: 50%;
}

    .dot:first-child {
        margin-top: 0.6rem
    }

.menu-container img {
    object-fit: contain;
    height: 4rem;
    margin: 0 1rem;
    margin-top: 0.5rem;
}

nav .second-level-dropdown, nav .third-level-dropdown {
    top: 0;
    left: auto;
    right: 100%;
}

.third-level-dropdown {
    transform: translateY(calc(-0.5rem - 3px));
}

nav .second-level-dropdown {
    transform: translateY(calc(-0.5rem));
}

.menu-container {
    width: fit-content;
    height: 100vh;
    float: right;
    background-color: #343a40;
    display: flex;
    flex-direction: column;
}

    .menu-container ul {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

@media screen and (max-width: 992px) {
    .login-container {
        width: 100%;
        transform: none;
    }

        .login-container[type="submit"], .login-header div {
            width: 100%;
        }

    .login-header img {
        width: 75%;
    }

    .single-input input.hour-input {
        width: 40% !important;
    }

    .login-container .btn.btn-danger {
        width: 100%;
    }

    .single-input {
        flex-basis: 33%;
    }

    div.double-input {
        flex-basis: 66%;
    }

    .single-detail {
        flex-basis: 50%;
    }

    .master-container {
        flex-direction: column;
    }

    .menu-container {
        width: 100vw;
        height: initial;
        justify-content: space-between;
    }

        .menu-container nav ul, .menu-container {
            flex-direction: row;
        }

            .menu-container img {
                display: none;
            }

    .form-container {
        justify-content: center;
    }

    .second-level-dropdown, .third-level-dropdown {
        margin-top: 0;
    }

    .secondary-navbar {
        display: initial;
    }

    nav .second-level-dropdown {
        transform: none;
        top: initial;
        left: auto;
        right: 0;
    }

    nav > .navbar-nav > li:not(.phone-tab) {
        display: none;
    }

    .third-level-dropdown {
        transform: none;
    }

    nav .third-level-dropdown {
        top: initial;
        left: 0;
        right: 0;
    }

    .dropdown-menu .second-level-dropdown {
        transform: translateY(calc(-0.25rem - 0.5px));
    }

    .phone-tab.nav-item .left-arrow::after {
        display: inline-block;
    }

    .phone-tab.nav-item .left-arrow::before {
        display: none;
    }

    div.datepicker.datepicker-dropdown {
        transform: translate(-7.5%, -275px);
    }

    div.datepicker-dropdown::before, div.datepicker-dropdown::after {
        display: none;
    }

    .calendar-container {
        margin-top: 0 !important;
    }

    input.save-shift-btn {
        margin-left: 0;
    }

    #officerNameInput {
        flex-basis: 50%;
        width: 50%;
    }

    .growing-width-container {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-right: 0% !important;
    }


    .modalBackground, .transform25X {
        transform: translateX(25%);
    }

    .direction-column-phone {
        flex-direction: column;
    }
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

dropdown-menu li:hover, dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.nav-item {
    padding: 0 1rem;
}

.nav-item, .dropdown-item {
    text-align: right;
}

    .dropdown-item.active, .dropdown-item:active, .dropdown-item:focus {
        background-color: initial;
    }

    .dropdown-item:not(.navbar-nav):hover {
        background-color: #f8f9fa
    }

.dropdown-toggle {
    direction: ltr;
}

.left-arrow::after {
    display: none;
}

.left-arrow::before {
    display: inline-block;
    margin-right: .255em;
    content: "";
    border-top: .3em solid transparent;
    border-right: .3em solid;
    border-bottom: .3em solid transparent;
}

.right-arrow::after {
    display: inline-block;
    margin-left: .255em;
    content: "";
    border-top: .3em solid transparent;
    border-left: .3em solid;
    border-bottom: .3em solid transparent;
    vertical-align: 0;
}

.dropdown-toggle {
    cursor: pointer;
}

.table-condensed {
    width: 250px;
    height: 250px;
}

.calendar-container {
    margin-top: calc(2rem + 1.5px);
}

input.datepicker {
    margin-bottom: 275px;
}

.datepicker:not(input) {
    transform: translateY(-275px);
}

.save-shift-btn {
    float: left;
    margin-top: 1rem;
    margin-left: 2rem;
}

.other-input {
    width: calc(200% + 10px);
}


.menu-container .dropdown-menu {
    z-index: 1001 !important;
}

.growing-width-container {
    width: 33%;
    flex-basis: 33%;
    margin-right: 0%;
}

.modalBackground {
    background-color: #000000;
    opacity: 0.2;
}

.modalPopup {
    border: 1px solid #2F4F4F;
    background-color: #F8F8FF;
    border-width: 3px;
    border-style: solid;
    border-color: black;
    position: fixed;
    top: -5%;
    left: 5%;
    transform: translate(5%, -5%);
}

/* Add a media query for smaller screens */
@media only screen and (max-width: 600px) {
    .modalPopup {
        width: 85%;
        height: 90%;
    }
}

.modalPopup1 {
    border: 1px solid #2F4F4F;
    background-color: #F8F8FF;
    border-width: 3px;
    border-style: solid;
    border-color: black;
    padding-top: 10px;
    padding-left: 10px;
    width: 40%;
    height: 40%;
}

.gm-style-iw-a {
    transform: translateY(-23px);
}

.modal-footer {
    direction: ltr;
}

.PermissionDiv {
    width: 100%;
}
