*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #222;
    background-color: #fafafa;
    font-family:
        "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    display: flex;
    height: 100%;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

a {
    color: #222;
}

.toast-container {
    position: fixed;
    z-index: 1;
    inset-block-start: 0;
    inset-inline-end: 0;
    padding-block-start: 15px;
    padding-inline-end: 15px;
    display: grid;
    justify-items: center;
    justify-content: center;
    gap: 1vh;
}

.toast {
    height: fit-content;
    max-inline-size: min(25ch, 90vw);
    padding-block: 0.5ch;
    padding-inline: 1ch;
    border-radius: 3px;
    border: 1px solid #3a5a40;
    background-color: #fafafa;
    font-size: 14px;
    --_duration: 5s;
    --_travel-distance: 0;

    will-change: transform;
    animation:
        toast-fade-in 0.3s ease,
        toast-slide-in 0.3s ease,
        toast-fade-out 0.3s ease var(--_duration);
}

.toast.alert {
    border-color: #b23b3b;
    background-color: rgba(178, 59, 59, 0.1);
}

@keyframes toast-fade-in {
    from {
        opacity: 0;
    }
}

@keyframes toast-fade-out {
    to {
        opacity: 0;
    }
}

@keyframes toast-slide-in {
    from {
        transform: translateY(var(--_travel-distance, 10px));
    }
}

.content {
    flex-grow: 1;
    padding: 15px;
    box-sizing: border-box;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin-left: 14rem;
}

table {
    text-align: left;
    border-collapse: collapse;
    width: 100%;
}

tr {
    padding: 1rem;
    border-bottom: 1px solid #dadada;
}

tbody tr:hover {
    background-color: #dadada;
}

thead {
    background-color: #fafafa;
    border-bottom: 2px solid #dadada;
}

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

.hidden {
    display: none;
}

.hero-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.hero-row-title {
    width: 100%;
    flex: 1 1 300px;
    min-width: 300px;
}

.metrics-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    flex: 1 1 300px;
    min-width: 300px;
}

.metric {
    text-align: left;
    margin: 10px;
    padding-left: 10px;
    flex-basis: 25%;
}

.metric h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.metric p {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

.metric-over {
    color: #b23b3b;
}

.tooltip {
    visibility: hidden;
    width: 300px;
    background-color: #dadada;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
}

.metric-callout-text:hover .tooltip {
    visibility: visible;
}

.todo-container,
.hours-container,
.invoices-container,
activity-types-container {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
}

.todo-list,
.invoices-list {
    width: 100%;
}

.todo-list table,
.invoices-list table,
.activity-types-list table {
    width: 100%;
    border-collapse: collapse;
}

.todo-list th,
.todo-list td,
.invoices-list th,
.invoices-list td,
.activity-types-list th,
.activity-types-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.todo-list img,
.invoices-list img {
    vertical-align: middle;
    margin-right: 10px;
}

.todo-list .tasks-pagination-cell {
    padding: 0;
}

.table-pagination {
    text-align: center;
    border-top: 1px solid;
    background-color: #fafafa;
}

.user-headshot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="email"],
.login-container select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #222;
    background-color: #dadada;
}
.login-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #3a5a40;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.login-container input[type="submit"]:hover {
    background-color: #3a5a40;
}

.side-nav {
    height: 100vh;
    width: 14rem !important;
    background-color: white;
    color: #222;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    position: fixed;
    border-right: 1px solid #3a5a40;
}

.side-nav a {
    display: block;
    color: #222;
    padding: 0.125rem;
    font-size: 14px;
    text-decoration: none;
}

.side-nav a:hover {
    color: #666;
}

.side-nav hr {
    border: 1px solid #666;
    margin: 5px 5px;
}

.side-nav .logout-link button {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
}

.side-nav .logout-link button:hover {
    color: #666;
    text-decoration: underline;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.logo {
    width: 120px; /* Adjust this value to change the size of the logo */
    height: auto;
}

.user-container {
    margin-top: auto;
}

.budget-chart {
    width: 100%;
    min-width: 300px;
    flex: 1 1 300px;
    height: 275px;
}

.budget-chart chart-component {
    height: 100%;
    width: 100%;
    display: inline-block;
}

.hours-chart {
    width: 100%;
    min-width: 300px;
    flex: 1 1 300px;
    height: 400px;
    margin-right: 20px;
    align-items: flex-end;
}

.hours-chart hours-chart {
    height: 100%;
    width: 100%;
    display: inline-block;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.pull-right {
    margin-left: auto;
}

.header,
.footer {
    padding: 10px;
    margin-bottom: 10px;
}

.main-content {
    padding: 10px;
    flex-grow: 1;
    width: 100%;
}

.logout-link {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

.primary-button {
    background-color: #3a5a40;
    color: #fff;
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: rgb(46, 73, 50);
    border-color: #3a5a40;
}

.primary-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 90, 64, 0.5);
}

.primary-button:disabled {
    background-color: #888;
    cursor: not-allowed;
    border-color: #aaa;
}

.secondary-button {
    background-color: #dad7cd;
    color: #222;
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    border-color: #3a5a40;
}

.secondary-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 90, 64, 0.5);
}

.secondary-button:disabled {
    background-color: #888;
    cursor: not-allowed;
    border-color: #aaa;
}

.tertiary-button {
    background-color: #fafafa;
    color: #222;
    border: 1px solid transparent;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 400;
    height: 36px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tertiary-button:hover {
    border-color: #3a5a40;
}

.tertiary-button:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(58, 90, 64, 0.5);
}

.tertiary-button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    border-color: #aaa;
}

.danger-button {
    background-color: #fafafa;
    color: #222;
    border: 1px solid transparent;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 400;
    height: 36px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.danger-button:hover {
    background-color: #b23b3b;
    color: #fafafa;
}

.danger-button:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(58, 90, 64, 0.5);
}

.modal {
    display: none;
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}
.modal.open {
    display: block;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-container label,
.form-container input,
.form-container select,
.form-container button,
.form-container textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 10px;
    margin: 10px 0;
}

.form-container input[type="date"],
.form-container input[type="number"],
.form-container input[type="text"],
.form-container input[type="checkbox"],
.form-container select,
.form-container textarea {
    box-sizing: border-box;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #222;
    background-color: #dadada;
}

.form-container input[type="checkbox"] {
    height: 24px;
}

.event-calendar-container {
    width: 100%;
    flex: 1 1 300px;
    min-width: 300px;
}

calendar-component {
    width: 258px;
    display: inline-block;
}

.month-title {
    display: flex;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #fafafa;
}

.calendar-day {
    background-color: #fff;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.calendar-day:hover,
.calendar-day:focus {
    background-color: #fafafa;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
}

.popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 400px;
    display: none;
    z-index: 1000;
}

.calendar-event {
    background-color: #3a5a40;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 2px;
    right: 2px;
}

#assigned-column {
    width: 40%;
}

.multi-select-selected-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.multi-select-option-block {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.multi-select-option-block span {
    margin-right: 5px;
}

.multi-select-option-block button {
    background: none;
    border: none;
    cursor: pointer;
    color: red;
}

.multi-select-dropdown {
    position: relative;
    display: inline-flex;
}

.multi-select-dropdown-content {
    display: none;
    position: absolute;
    top: 36px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.multi-select-dropdown-content div {
    padding: 12px 16px;
    cursor: pointer;
}

.multi-select-dropdown-content div:hover {
    background-color: #f1f1f1;
}

.multi-select-dropdown.show .multi-select-dropdown-content {
    display: block;
}

.status-select-value {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.status-select-option-block {
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.status-select-option-block span {
    margin-right: 5px;
}

.status-select-option-block button {
    background: none;
    border: none;
    cursor: pointer;
    color: red;
}

.status-select-dropdown {
    position: relative;
    display: inline-flex;
}

.status-select-dropdown-content {
    display: none;
    position: absolute;
    top: 36px;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.status-select-dropdown-content div {
    padding: 12px 16px;
    cursor: pointer;
}

.status-select-dropdown-content div:hover {
    background-color: #f1f1f1;
}

.status-select-dropdown-content.show {
    display: block;
}

.invoice-line-items {
    width: 100%;
    padding: 10px 20px;
    min-height: 250px;
}

.invoice-line-item-dropzone {
    border: 2px dashed #ccc;
    width: 100%;
    min-height: 200px;
    margin: 10px;
    display: inline-block;
    vertical-align: top;
    padding: 10px;
    background-color: #fafafa;
}

.activity-block {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    cursor: grab;
    box-shadow: 2px 2px #ccc;
    background-color: #fff;
}

.invoice-activities-list {
    width: 350px;
    margin-right: 20px;
    overflow-y: scroll;
}

.line-item-container {
    display: flex;
    margin-top: 20px;
    width: 100%;
    flex-direction: column;
    flex-grow: 1;
}

.publish-button-row {
    padding-top: 10px;
}

.status-badge {
    background-color: #dad7cd;
    color: #222;
    border: 2px solid #3a5a40;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    border-radius: 5px;
}

.inline-badge {
    background-color: #dad7cd;
    color: #222;
    border: 1px solid #3a5a40;
    text-align: center;
    padding: 4px;
    width: 60px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
}

.inline-badge-Sent {
    background-color: #dad7cd;
}

.inline-badge-Paid {
    background-color: #3a5a40;
    color: #f5f5f5;
}

.settings-form {
    max-width: 800px;
}

.budget-phase-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.budget-phase-row label {
    flex: 2;
    margin-right: 15px;
    margin-bottom: 0;
    font-weight: 500;
}

.budget-phase-row input {
    flex: 1;
    max-width: 200px;
}

.budget-total-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e0e9d9;
    border-radius: 5px;
    border-left: 4px solid #3a5a40;
}

.budget-total-row label {
    flex: 2;
    margin-right: 15px;
    margin-bottom: 0;
    font-weight: 700;
    color: #222;
}

.budget-total-row input {
    flex: 1;
    max-width: 200px;
    font-weight: 700;
    background-color: #f5f5f5;
}

.budget-description {
    color: #666;
    margin-bottom: 20px;
}

.project-list {
    display: flex;
    width: 100%;
}

.project-card {
    max-width: 40%;
    padding: 1rem;
    margin: 1rem;
    border: 1px solid #3a5a40;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    min-width: 20%;
}

.new-project-card {
    text-align: center;
    max-width: 40%;
    background-color: #f0f0f0;
    min-width: 8%;
}

.new-project-card:hover {
    max-width: 40%;
    background-color: #d0d0d0;
    min-width: 8%;
}

.user-project-list {
    width: 33%;
    max-width: 33%;
}

.user-project-card {
    padding: 1rem;
    margin: 1rem;
    border: 1px solid #3a5a40;
}

.error-banner {
    color: #fafafa;
    background-color: #b23b3b;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

input[type="date"] {
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #222;
    background-color: #dadada;
}

input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #222;
}

.day-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.day-label {
    width: 100px;
    border-right: #a1a1a1 1px solid;
}

.timeline {
    height: 80px;
    width: 95%;
    position: relative;
    /* 120 px here is to keep it in line with the hardcoded value in timesheet.ts */
    background-image:
        linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            #111 119px,
            #111 120px
        ),
        linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            #a1a1a1 119px,
            #a1a1a1 120px
        );
    background-size:
        100px 100%,
        120px 100%;
    display: flex;
    align-items: center;
}

.timeline-weekend {
    background-image:
        linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            #111 119px,
            #111 120px
        ),
        linear-gradient(
            90deg,
            transparent 0,
            transparent 119px,
            #a1a1a1 119px,
            #a1a1a1 120px
        ),
        radial-gradient(#3a5a40 0.5px, transparent 0.5px),
        radial-gradient(#3a5a40 0.5px, #e5e5f7 0.5px);
    background-size:
        100px 100%,
        120px 100%,
        20px 20px,
        20px 20px;
    background-position:
        0 0,
        0 0,
        0 0,
        10px 10px;
    background-color: #e5e5f7;
    opacity: 0.8;
}

.event {
    position: absolute;
    top: 10px;
    bottom: 10px;
    border-radius: 4px;
    padding: 4px 8px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    z-index: 1;
    height: 60px;
    font-size: 14px;
    line-height: 1.2;
}

.temp-event {
    position: absolute;
    top: 10px;
    bottom: 10px;
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
    font-size: 14px;
    height: 60px;
    background-color: #a1a1a1;
}

.event-type {
    font-weight: 500;
    text-transform: capitalize;
}

.event-duration {
    font-size: 12px;
    opacity: 0.9;
}

.right-padding {
    padding-right: 15px;
}

.left-padding {
    padding-left: 15px;
}
