/* Google Fonts Import Link */
/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');*/


/*------------------------ NEW ------------------*/


html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.footer {
    background-color: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    bottom: 0;
    width: 100%;
    height: 70px;
    flex-wrap: wrap;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;

    flex-shrink: 0;
    position: sticky;
    z-index: 1000;
}

.footer .left {
    position: absolute;
    left: 16px;
}

.footer .center {
    text-align: center;
    min-width: 0;
}

.footer .center p {
    margin-bottom: 0 !important;
}

.sidebar {
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    background-color: white;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    /*height: calc(100vh - 75px);*/
    height: calc(100vh - 15px);
}

.sidebar.collapsed {
    width: 0px;
}

.content {
    margin-left: 200px;
    padding: 15px;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.content.expanded {
    margin-left: 0px;
}

.container-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;

    padding: 20px;
}

.nav-link {
    color: #333;
}

.nav-link:hover,
.tab:hover,
.collapsible:hover {
    background-color: var(--selected-item-color) !important;
    color: white !important;
}

.sub-tab:hover {
    background-color: #0d6efd !important;
    color: white !important;
}

.sub-tab.active {
    background-color: #0d6efd !important;
    color: white !important;
}

.nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.user-info {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.user-info .username {
    font-weight: bold;
}

.sidebar.collapsed .user-info .username {
    display: none;
}

.logout-btn {
    width: 100%;
    margin-top: 10px;
}

.sidebar.collapsed .logout-btn span {
    display: none;
}

.logo {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.logo img {
    max-width: 40%;
    height: auto;
}

.sidebar.collapsed .logo img {
    max-width: 40px;
}

#toggleSidebar {
    position: fixed;
    top: 15px;
    left: 235px;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    transition: 0.3s;

}

.sidebar-toggle.collapsed {
    left: 30px !important;
}

@media (max-width: 768px) {
    .sidebar.collapsed {
        width: 0px;
    }

    .content.expanded {
        margin-left: 0px;
    }

    .sidebar-toggle.collapsed {
        left: 30px !important;
    }

    .sidebar-toggle {
        left: 230px !important;
    }

    .footer {
        display: none !important;
    }

    .sidebar {
        height: 100vh;
    }

    .filters-div .col-md-4,
    .filters-div .col-md-6 {
        margin-bottom: 5px !important;
    }

    /*.sidebar {*/
    /*    width: 60px;*/
    /*}*/
    /*.content {*/
    /*    margin-left: 60px;*/
    /*}*/
    /*.sidebar .nav-link span,*/
    /*.sidebar .user-info .username,*/
    /*.sidebar .logout-btn span {*/
    /*    display: none;*/
    /*}*/
    /*.logo img {*/
    /*    max-width: 40px;*/
    /*}*/
    /*#toggleSidebar {*/
    /*    left: 75px;*/
    /*}*/
}

@media screen and (max-width: 1200px) {
    /* Remove col-md-6 class properties */
    .col-md-6,
    .col-md-10,
    .col-md-2 {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        display: block !important;
    }

    /* Ensure container maintains proper spacing */
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
        display: block !important;
    }
}

.sidebar a:not(.active) {
    color: black !important;
}

.main-content {
    overflow: hidden;
    max-width: 100%;
    margin-left: 0px !important;
    margin-bottom: -10px !important;
}

.form-control {
    border: 1px solid lightgrey;

}

.table {
    border-radius: 15px;
    margin-top: 3px;
    margin-right: 3px;
    background-color: white;
}

.active {
    background-color: var(--selected-item-color) !important;
    color: white !important;
}

#replaceable-content,
#column-error-popup,
#id_entries_div {
    background-color: white;
    padding: 1px 20px 20px 20px;
    border-radius: 15px;
    margin-top: 30px;
}

#id_page_title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-div {
    flex-grow: 1; /* Allows div2 to take up the remaining space */
    padding: 20px; /* Example padding */
    overflow-y: auto !important;

    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 60px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

a {
    color: black !important;
}

.tab-container a {
    color: transparent !important;
}

.active > .page-link, .page-link.active {
    background-color: var(--selected-item-color) !important;
    border-color: var(--selected-item-color) !important;
    color: white !important;
}

.active-border {
    border-color: var(--selected-item-color) !important;
    color: white !important;
}

.center-content {
    width: fit-content;
    margin: auto;
    text-align: center;
}

:root {
    --table-cell-color-red: red;
    --table-text-color-white: #fff;
    --table-text-color-green: green;
    --selected-item-color: #2E6F40;
    --sub-tabs-color: #e0e0e0;
}

/*<---------------new------------->*/
@media (max-width: 576px) {
    .sidebar {
        width: 80%;
    }

    .sidebar-toggle {
        left: calc(100% - 18%) !important;
    }

    .content.expanded .content-div {
        display: block !important;
    }

    .content .content-div {
        display: none !important;
    }

    .sidebar .logo img {
        height: 60px !important;
    }

    #toggleSidebar {
        left: 60px;
    }

    .sidebar-toggle.collapsed #id_page_title {
        display: contents !important;
    }

    .sidebar-toggle #id_page_title {
        display: none !important;
    }

    .footer {
        padding: 5px;
        height: 80px !important;
        flex-direction: column;
        text-align: center;
    }

    .footer .left {
        position: static;
        margin-bottom: 5px;
    }

    .content {
        padding: 10px;
    }

    .sidebar {
        padding-top: 10px;
    }

    html {
        font-size: 90%;
    }

    .nav-link i {
        margin-right: 5px;
    }

    .logout-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 800px) {
    .icon-column {
        display: none !important;
    }

    .login-div {
        width: 90% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .login-div .form-group {
        margin-bottom: 0 !important;
    }

    #id_entries_div {
        overflow-x: auto !important;
    }

    .entries-listing-div {
        overflow-x: auto !important;
    }

    .tele-ins-check {
        overflow-x: auto !important;
    }

    .tele_sent_div {
        overflow-x: auto !important;
    }

    .tele_reporting_div {
        overflow-x: auto !important;
    }

}

@media (max-height: 600px) {
    .login-container {
        /*height: calc(100vh - 80px) !important;*/
    }
}

@media (max-width: 1210px) {
    #replaceable-content {
        overflow-x: auto;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 455px) {
    #inventory-content {
        overflow-x: auto !important;
        margin-bottom: 10px !important;
    }

    .inventory-update-btn {
        margin-top: 5px !important;
    }
}

@media (max-width: 780px) {
    #id_leaderboard_div {
        overflow-x: auto !important;
    }
}


@media (max-width: 998px) {
    .doc_button {
        margin-bottom: 10px !important;
        display: flex;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 565px) {
    .tab-container.sub-navbar {
        display: inline-block;

    }
}

@media (max-width: 670px) {
    table .td,
    table .th {
        padding: 5px !important;
    }
}

.sidebar .nav-link {
    text-align: center !important;
}

.form-table td {
    text-wrap: wrap !important;
}

input[type="date"] {
    -webkit-appearance: none; /* Disables default styling on WebKit browsers */
    appearance: none; /* Disables default styling on other browsers */
    position: relative;
    padding-right: 30px; /* Ensure space for the calendar icon */
    font-family: inherit;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    cursor: pointer;
    opacity: 0.7; /* Adjust the icon visibility */
}

input[type="date"]::-webkit-clear-button {
    display: none;
}

.highlight td {
    background-color: transparent !important;
}

.highlight-green {
    background-color: lightgreen !important;
}

.highlight-pink {
    background-color: lightpink !important;
}

.highlight-yellow {
    background-color: lightyellow !important;
}

.text-red {
    color: red !important;
}

.text-green {
    color: green !important;
}

.td-True {
    background: var(--table-text-color-green) !important;
    color: var(--table-text-color-white);
}

.td-Yes {
    background: var(--table-text-color-green) !important;
    color: var(--table-text-color-white) !important;
}

.td-False {
    background: var(--table-cell-color-red) !important;
    color: var(--table-text-color-white) !important;
}

.td-No {
    background: var(--table-cell-color-red) !important;
    color: var(--table-text-color-white) !important;
}

@keyframes flash-green {
    0% {
        color: var(--table-text-color-green);
    }
    50% {
        color: transparent;
    }
    100% {
        color: var(--table-text-color-green);
    }
}

.flashing-ready-button {
    animation: flash-green 0.5s infinite;
    font-weight: bold;
}

.flashing-button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: var(--table-text-color-green) !important;
    color: white;
    animation: flash-button 1s infinite;
}

@keyframes flash-button {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

.flashing-button:hover {
    background-color: var(--table-text-color-green);
}

.light-purple-color-btn {
    background: #CBC3E3 !important;
    border: #CBC3E3 !important;
}

.text-grey {
    color: grey !important;
}