/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Include padding and border in element's total width and height */
}

ul,
ol {
    list-style: none;
}

/* a {
    text-decoration: none;
    color: inherit; /* Inherit text color from parent 
} */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

p {
    margin: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* Custom Variables */

:root {
    --primary-color: rgb(39, 57, 146);
    --grey-purple: rgb(85, 81, 103);
    --light-grey: #ccc;
    --lightest-grey: #f1f1f1;
    --tab-btn-blue: #007BFF;
}


/* Custom Styles */
header {
    background-color: var(--primary-color);
    position: fixed;
    z-index: 10;
    left: 0px;
    right: 0px;
    padding: 16px 24px;
}

nav,
nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Roboto', arial, sans-serif;
    text-transform: uppercase;
    color: white;
    font-size: 14px;
    font-weight: 400;
}

.nav-links {
    display: none;
    gap: 10px;
}

.menu-toggle {
    display: block;
    cursor: pointer;
}

footer {
    padding: 60px 32px;
    display: flex;
    flex-direction: row;
    background: var(--primary-color);
}


.footer-link {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.071em;
}

.footer-content-wrap {
    display: flex;
    flex-direction: column;
}

.footer-content {
    font-family: "Roboto", sans-serif;
    color: rgb(255, 255, 255);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto;
}

.footer-content-title {
    font-weight: 700;
    font-size: 14px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.title {
    font-family: "EB Garamond", serif;
    font-size: 38px;
    color: var(--primary-color);
    font-weight: 400;
    padding: 20px 0;
}

.content {
    font-size: 16px;
    padding-top: 134px;
}

.content-title {
    font-size: 28px;
    font-family: "EB Garamond", serif;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 10px;
}

.content-sub-title {
    font-size: 22px;
    font-family: "EB Garamond", serif;
    color: var(--grey-purple);
    font-weight: 600;
    margin-bottom: 10px;
}

.content-section {
    padding: 25px 20px;
    font-family: "Roboto", sans-serif;
    background-color: white;
}

.project-info {
    margin: 0;
    font-size: 28px;
    font-family: "EB Garamond", serif;
    color: var(--grey-purple);
    font-weight: 400;
}

.project-section {
    padding: 60px 20px;
    font-family: "Roboto", sans-serif;
    background-color: white;
}

.message-section {
    padding: 30px 20px;
    font-family: "Roboto", sans-serif;
    background-color: white;
}

.grid-container {
    display: grid;
    grid-template-columns: auto 1fr;
    /* Left column takes up even space */
    gap: 10px;
}

.item {
    padding: 10px;
    font-family: "Roboto", sans-serif;
    color: var(--grey-purple);
}


.page-description {
    padding: 0 20px 40px 20px;
    font-family: "Roboto", sans-serif;
    color: var(--grey-purple);
    text-align: center;
    line-height: 1.5;
}

hr {
    border-color: var(--grey-purple);
    margin: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: var(--lightest-grey);
    transition: background-color 0.3s;
    border-radius: 5px 5px 0 0;
    margin: 0 5px;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: var(--tab-btn-blue);
    color: white;
}

.tab-content {
    border: 1px solid var(--light-grey);
    padding: 20px;
    border-radius: 4px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.hero-content {
    color: var(--grey-purple);
}

.main-table {
    color: var(--grey-purple);
    width: 100%;
    font-family: "Roboto", sans-serif;
}

.main-table tr {
    color: var(--grey-purple);
    width: 100%;
    background: white;
    border: 1px solid var(--grey-purple);

}

.main-table td,
.main-table th {
    padding: 10px;
    text-align: center;
    border-left: 1px solid var(--grey-purple);
    border-right: 1px solid var(--grey-purple);
}

.main-table td .drop-down {
    background: red;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th,
.data-table td {
    border: 1px solid var(--light-grey);
    padding: 10px;
    text-align: left;
}

.data-table th {
    background-color: var(--lightest-grey);
    font-weight: bold;
}

legend {
    background: #6237f013;
    padding: 10px;
    width: 100%;
    display: block;
    font-weight: 700;
    border: 1px solid var(--light-grey);
}

.budget-table input {
    border: none !important;
    padding: 10px;
    width: 100%;
    outline: none;
}

.budget-table td {
    padding: 0 20px;
}

.budget-table tfoot td {
    padding: 10px;
}

.file-row {
    height: 40px;
}

.expandable-row {
    cursor: pointer;
}

.inner-content {
    padding: 40px 20px !important;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.drop-down {
    width: 20px;
    display: none;
    border: none !important;
}

.drop-down-title {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
}

.dropdown {
    position: absolute;
    display: inline-block;
    margin-bottom: 20px;
    right: 140px;
    top: 140px;
}

.dropbtn {
    background-color: var(--tab-btn-blue);
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: auto;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--lightest-grey);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #0056b3;
}

.chevron-down {
    display: none;
}

.btn {
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    padding: 20px 32px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.071em;
}

.btn:hover {
    opacity: .9;
}

.deleteBtn {
    background-color: rgb(186, 39, 39);
}

#emailSubmit {
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    padding: 20px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.071em;
    border: none;
    cursor: pointer;
    margin: 0 !important;
}

#addProject {
    margin-top: 20px;
}

.btn.edit {
    background: var(--primary-color);
    margin-top: 20px;
}

.btn.edit:hover {
    background: rgb(54, 78, 193);
}

#update-password {
    width: 90vw;
}

.edit-remove-btn {
    background: var(--grey-purple);
    border: none;
    color: white;
    padding: 10px 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.edit-remove-btns {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.edit-remove-btn:hover {
    background-color: #c3c3c3;
}

input[type="text"],input[type="email"],input[type="number"],input[type="date"],
textarea, #new-message-recipient, #newUserRole {
    font-size: 1em;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--grey-purple);
    font-family: "Roboto", sans-serif;
}

.filter-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.filter-label {
    font-weight: bold;
    margin-right: 10px;
}

.filters-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-section select {
    padding: 5px;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    width: 160px;
}

.filters-section select:focus {
    border-color: var(--tab-btn-blue);
    outline: none;
}

.form-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.report-form-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-item label {
    width: 100%;
    min-width: 100px;
}

.form-item .email-label {
    width: auto;
    min-width: 0;
    margin-right: 10px;
}

#emailForUpdates {
    max-width: 320px;
    width: 50vw;
}


#email-inputs {
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.radio-toggle {
    display: inline-flex;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    overflow: hidden;
}

.radio-toggle input[type="radio"] {
    display: none;
}

.radio-toggle label {
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--lightest-grey);
    border-right: 1px solid var(--light-grey);
    font-size: 16px;
    transition: background-color 0.3s;

}

.radio-toggle label:last-child {
    border-right: none;
}

.radio-toggle input[type="radio"]:checked+label {
    background-color: var(--tab-btn-blue);
    color: white;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    /* Further reduced width */
    height: 20px;
    /* Further reduced height */
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 10px;
    /* Adjusted border-radius to match the new height */
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    /* Adjusted to fit within the new slider size */
    width: 16px;
    /* Adjusted to fit within the new slider size */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--tab-btn-blue);
}

input:checked+.slider:before {
    transform: translateX(20px);
    /* Adjusted to fit the new slider width */
}


/* Modal */
#add-project-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000aa;
    z-index: 99;
    display: none;
    overflow: auto;
}

.add-project-modal-content {
    margin: 0 auto;
    padding: 20px;
    width: 90vw;
    position: relative;
    overflow: auto;
}

.dropdown-select {
    padding: 10px 20px 10px 5px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    border: 1px solid var(--grey-purple);
}

.add-user-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000aa;
    z-index: 99;
    display: none;
    overflow: auto;
}

.add-user-modal-content {
    margin: 0 auto;
    padding: 20px;
    width: 90vw;
    position: relative;
    overflow: auto;
}

.edit-project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000aa;
    z-index: 99;
    display: none;
    overflow: auto;
}

.edit-project-modal-content {
    margin: 0 auto;
    padding: 20px;
    width: 90vw;
    position: relative;
    overflow: auto;
}

.edit-project-btn {
    background: rgb(24, 105, 24) !important;
}

.compose-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000aa;
    z-index: 99;
    display: none;
    overflow: auto;
}

.compose-message-modal-content {
    margin: 0 auto;
    padding: 20px;
    width: 90vw;
    position: relative;
    overflow: auto;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-file-upload {
    font-family: "Roboto", sans-serif;
    background: var(--grey-purple);
    color: white;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    padding: 16px 32px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    min-width: 160px !important;
}

.remove-file {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    background: red;
    border-radius: 50%;
    padding: 0 5px;
    margin-left: 3px;
}

.remove-file:hover {
    background-color: #ff6666;
}

.custom-file-upload:hover {
    background-color: #c0c0c0;
}

#file-upload {
    display: none;
}

#edit-file-upload {
    display: none;
}

.updates {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message-center {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 10px;
}

.message-threads {
    background: #ede1e1;
    display: flex;
    flex-direction: column;
    max-height: 65vh;
    overflow-y: scroll;
}

.message-thumbnail-list {
    list-style-type: none;
    width: 100%;
    display: flex;
}

.message-thread {
    background: white;
    cursor: pointer;
    padding: 30px;
    border: 1px solid #e3d6d6;
    max-width: 42vw;
    flex: 1 0 auto;
    position: relative;

}

.message-thread-name {
    color: var(--grey-purple);
    font-weight: 700;
    padding-bottom: 10px;
    font-size: 20px;
}

.message-thread-title {
    font-weight: 300;
    padding-bottom: 10px;
}

.message-thread.active,
.message-thread.active:hover {
    background-color: #e3d6d6;
    border: 1px solid var(--grey-purple);
}

.message-thread:hover {
    background-color: #c3c3c3;
}

.new-message-indictator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: green;
}

.message-content-container {
    flex-grow: 1;
    background-color: #ede1e1;
}

.message-content {
    display: none;
}

.message-list {
    height: 100%;
}

.message-wrapper {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--grey-purple);
    margin: 20px 0;
    padding: 20px;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-user-name {
    font-weight: 700;
    font-size: 18px;
}

.message-content.active {
    display: block;
    padding: 20px;
}

.message-thread-search {
    position: sticky;
    top: 0;
    left: 0;
    background: #ede1e1;
    height: 100px;
    width: 100%;
    padding: 0 10px;
}

.search {
    margin: 20px 0;
}

.login-inputs, .forgot-inputs {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.login-inputs input[type="text"] {
    width: 90vw;
    background: white;
    border: 1px solid rgb(191, 191, 191);
    padding: 16px;
    color: rgb(0, 0, 0);
    flex: 1;
}

.login-inputs input[type="password"] {
    width: 60vw;
    background: white;
    border: 1px solid rgb(191, 191, 191);
    padding: 16px;
    color: rgb(0, 0, 0);
    flex: 1;
}

.login-inputs input::placeholder {
    color: rgb(158, 158, 158);
}

.menu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    padding: 30px;
    border: 1px solid var(--light-grey);
    width: 100%;
    height: 600px;
}

.menu ul {
    list-style: none;
    padding: 0;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.menu ul li {
    margin-bottom: 10px;
}

.menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.menu ul li a:hover {
    opacity: .8;

}

.toggleHistoryButton {
    border: none;
    cursor: pointer;
    display: inline-block;
    background: #6237f0;
    border-radius: 3px;
    padding: 4px 10px;
    color: #fff;
    font-size: 12px;
    line-height: 12px;
    margin: 0 0 0 10px;
}

#mobile-nav-close-btn {
    color: white;
    padding: 10px;
}

#mobile-nav-close-btn:hover {
    opacity: .8;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 14px;
    background: none;
    border: none;
    font-size: 48px;
    cursor: pointer;
    color: var(--grey-purple);
}

.close-modal-btn {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.close-modal-btn:hover {
    background: rgb(210, 210, 210)
}

.close-btn:hover {
    color: rgb(191, 191, 191);
}

.info-label {
    color: var(--grey-purple);
    font-size: 20px;
    width: 120px;
}

.info-section {
    display: flex;
    align-items: center;
    width: 100%;
}



@media (min-width: 400px) {
    .drop-down {
        width: 20px;
        display: block;
        border: none !important;
        min-width: 40px;
    }

    .expand-icon {
        border: none;
        padding-right: 16px !important;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .title {
        font-size: 32px;
    }

    .header-image {
        width: 100px;
        height: 80px;
    }

    .content {
        padding-top: 112px;
    }

    .modal-section {
        flex-direction: row;
        gap: 0;
    }

    .form-item label {
        width: 20%;
    }

    .message-center {
        grid-template-columns: 1fr 3fr;
    }

    .message-thumbnail-list {
        display: flex;
        flex-direction: column;
    }

    .login-inputs input[type="text"] {
        width: 60vw;
    }

    .forgot-inputs input {
        width: 60vw;
    }

    #update-password {
        width: auto;
    }

    .nav-links {
        display: flex;
        gap: 32px;
    }

    .nav-links a {
        text-decoration: none;
        letter-spacing: 0.071em;
    }

    .nav-links a:hover {
        opacity: .7;
    }

    .menu-toggle {
        display: none;
    }

    .footer-content-wrap {
        flex-direction: row;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: start;
        width: 50%;
    }

    .footer-content {
        text-align: start;
        margin: 0;
    }

    .info-section {
        display: flex;
        align-items: center;
        width: auto;
    }

    .login-inputs input[type="text"] {
        flex: 1;
    }
}

@media (max-width: 850px) {
    #filters-email {
        flex-direction: column;
    }

    .header-image {
        width: 83px;
        height: 64px;
    }

    .content {
        padding-top: 96px;
    }
}

@media (min-width: 1024px) {
    .title {
        font-size: 38px;
    }

    .header-image {
        width: 83px;
        height: 64px;
    }

    .content {
        padding-top: 96px;
    }
}

@media (min-width: 1280px) {
    .title {
        font-size: 44px;
    }
}

@media (min-width: 1536px) {
    .title {
        font-size: 48px;
    }

    .content {
        font-size: 16px
    }
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.w-fit {
    width: fit-content;
}

.w-100 {
    width: 100%;
}

.w-50 {
    width: 50% !important;
}

.m-0 {
    margin: 0;
}

.mx-auto {
    margin: 0 auto;
}

.m-20 {
    margin: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.my-20 {
    margin: 20px 0;
}

.gap-sm {
    gap: 16px;
}

.text-center {
    text-align: center;
}

.border-b {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}


.responsive-table {
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.responsive-table tr {
    padding: 5px;

}

.responsive-table th,
.responsive-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--grey-purple);

}

.responsive-table th {
    letter-spacing: 1px;
}

@media (min-width: 767px) and (max-width: 850px) {

    .nav-links {
        gap: 10px;
    }
}


@media screen and (max-width: 767px) {

    .responsive-table {
        border: 0;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        margin-bottom: 10px;
        display: block;
    }

    .responsive-table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border: none;
        border-bottom: 1px solid var(--grey-purple);
    }

    .responsive-table td:last-child {
        border-bottom: 0;
    }

    .responsive-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }

    .edit-remove-btns {
        justify-content: end;
    }
}



.isLoggedInAdmin {
    display: none;
}


/* Set a width for the hierarchy column, otherwise the column you swap it with will be shrunk. */
.k-grid .k-hierarchy-col {
    width: 100px;
}
/* Set inline display to the icon to have the text and the icon on the same line */
.k-grid .k-hierarchy-cell>.k-icon{
    display: inline;
}



.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 7% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.budgetTabs {
    margin-top: 20px;
    /*display: none;*/
}

.budgetTabs ul {
    list-style: none;
    padding: 0;
}

.budgetTabs ul li {
    display: inline;
    margin-right: 10px;
}

.budget-content {
    margin-top: 20px;
}

.budgetTab {
    text-decoration: none;
    background: rgb(39, 57, 146);
    padding: 10px 30px;
    border-radius: 5px;
    color: white;
}

.budgetTab:hover {
    opacity: .8;
}

#files-list {
    max-height: 250px;
    overflow-y: auto;
}

#project-overview-updateGrid{
    height: 240px;
}

body .k-multiselect {
    width: 100%;
}

body .k-list-scroller {
    background: #fff;
}