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

html {
    font-family: Lato, "sans-serif";
}


body {
    margin-top: 1rem;
}

.header {
    text-align: center;
}

.header__user-msg {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: blue;
    z-index: 1000; /* This ensures it stays on top of other elements */
}

.nav {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.nav__link {
    text-decoration: none;
    color: #1c2023;
}

/* applies space to all except last element of nav bar */
.nav__link:not(:last-of-type) {
    margin-right: 2rem;
}

.nav__link--active,
.nav__link:hover {
    font-weight: bold;
    font-size: 110%;
    color: darkblue;
}

.motif {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;  /* This ensures it stays on top of other elements */
    width: 50px;
    height: 50px;
}

.table-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    overflow-x: auto;
    width: 99%;
    min-width: 1000px;
    height: calc(100vh - 230px);
    height: calc(100dvh - 230px);
}

.brave-browser .table-container {
    height: calc(98vh - 250px);
}

#example-table {
    flex: 0 1 auto;
}

.containerOfInputTableBtns {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 99%;
}

.table-leftButtons {
    margin-bottom: 5px;
    float: left;
}

.table-rightButtons {
    margin-bottom: 5px;
    float: right;
}

.containerOfTableTabs {
    display: flex;
    margin-left: 0.5%;
}

.table-bottomButtons {
    display: flex;
    margin: 0;
}

.table-bottomButtons button {
    margin: 0; /* No margin between buttons */
    padding: 5px 15px; /* Adjust padding as needed */
    border: 1px solid black; /* Keep border */
    background-color: #e1e1e1; /* Button background color */
    color: black; /* Text color */
    cursor: pointer; /* Pointer cursor on hover */
}

.button {
    background-color:navajowhite;
    cursor: pointer;
}

.button:hover {
    font-weight: 600;
}

/* Snapshot reload popup styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    width: 450px;
    min-width: 450px;
    border-radius: 10px;
    resize:horizontal;
    overflow: auto;
}

.snapshot-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}

.snapshot-item:hover {
    background-color: #e0e0e0;
    border-left: 3px solid #007bff;
}

.snapshot-item.selected {
    background-color: #e0e0e0;
    border-left: 3px solid #007bff;
}

.snapshot-row {
    display: flex;
    align-items:start;
    gap: 20px; /* Space between date and comment */
    margin: 5px;
    border: 1px solid lightblue;
    border-radius: 4px;
    padding: 5px;
}

.snapshot-date {
    min-width: 180px; /* Adjust based on your date format */
    white-space: nowrap;
}

.snapshot-comment {
    color: #666;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.modal-dialog {
    position: fixed;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Bootstrap's default width will apply initially */
}

/* Visual indicator for the resize handle */
.modal-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    cursor: se-resize;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-footer {
    margin-top: 15px;
    text-align: right;
}

.sizingModal-warning {
    color: red;
}

.sizingModal-input-group {
    display: flex;
    justify-content: space-between;
}

.sizingModal-checkbox {
    margin-top: 10px;
}

.sizingModal-input-dates-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.sizingModal-input-dates-group label {
    margin-right: 10px;
}

.sizingModal-input-dates-group select {
    margin-right: 5px;
}

.sizingDateInputs {
    display: grid;
    grid-template-columns: 50% 25% 25%; /* Label, month select, year input */
    align-items: center;
    gap: 5px;
}

.sizingModal-buttons {
    display:flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.sizingModal-buttons button {
    width: 90px;
}

/*  For new date headers */
.date-subheader {
    font-size: 0.9em;
    border-top: 1px solid #ddd;
    padding-top: 2px;
    margin-top: 2px;
}

.comment {
    font-weight: 300;
    color: darkblue;
}

.alert{
    color: red;
}

.movable-modal {
    display:flexbox;
    position: absolute;
    /* transform: translate(-50%, -50%); */
    /* position: fixed; */
    z-index: 1000;
    left: 40%;
    top: 40%;
    min-width: 300px;
    width: 500px;
    max-width: 90%;
    height: 125px;
    background-color: #e1e1e1;
    border: 2px solid darkblue;
    border-radius: 5px;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    background-color: darkslateblue;
    color: white;
    font-size: large;
    font-weight: bold;
}

.set-formula-content {
    display:flex;
    flex-direction: column;
    padding: 5px;
}

.formula-input-text {
    width: 100%;
    padding: 5px;
    font-size: large;
    margin-bottom: 5px;
}

.submit-formula-btn {
    align-self: center;
    font-size: 16px;
    font-weight: bold;
    width: 40%;
    height: 35px;
}

.resize-handle {
    position: absolute;
    bottom: -5px; /* Position it outside the modal */
    right: -5px; /* Position it outside the modal */
    width: 10px;
    height: 10px;
    background-color: #ccc;
    cursor: se-resize; /* Change cursor to resizing icon */
}