h1, h2, h3, h4, h5 {
    color: #454545;
    outline: none;
}

.striket {
    text-decoration: line-through;
}

div.centre, footer.centre {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.fluids-count {
    font-weight: bold;
    margin: 0px;
}

.msg {
    color: orangered;
    font-weight: bold;
}

td.centre, th.centre {
    text-align: center;
    vertical-align: central;
}

td.right, th.right {
    text-align: right;
    vertical-align: central;
}

button.dlt, button.add, button.edt, button.vw, button.cnl, button.upd {
    background-color: #ff9500;
    border: none;
    color: black;
    font-size: 1rem;
    padding: 3px 6px;
    text-decoration: none;
    margin: 0px;
    cursor: pointer;
    width: 75px;
    border-radius: 4px;
}

button.add, button.upd {
    background-color: #007F5E;
}

button.edt {
    background-color: #BA3400;
    color: whitesmoke;
}

button.cnl {
    background-color: silver;
}

button.dlt {
    background-color: black;
    color: whitesmoke;
}

button.red, button.green {
    color: whitesmoke;
    font-weight: 700;
    border: none;
}

.red {
    background-color: #BA3400;
}

.green {
    background-color: #007F5E;
    color: whitesmoke;
}

.grid-fluids {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid-title {
    grid-column: span 3;
}

input.ipintd {
    margin: 0px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    background-color: white;
}

.card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background-color: lightgoldenrodyellow;
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border: 1px solid yellow;
    border-radius: 5px;
    margin: 10px 10px 0 0;
    padding: 10px;
    overflow-y: auto;
}

    .card:hover {
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    }

.card-footer, .new-card-footer {
    margin-top: auto;
    text-align: right;
}

.new-card-footer {
    padding: 10px;
}

.card-edit {
    padding: 0;
}

    .card-edit textarea {
        margin: 0;
        padding: 10px;
        border: none;
        background-color: lightgoldenrodyellow;
        height: 100%;
    }

.pit-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pit-dialog {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pit-dialog-content {
    margin-top: 10px;
}

.pit-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.pit-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0; /* Remove default margin for <p> */
    padding: 0; /* Optional: Tweak spacing if needed */
}

.pit-date {
    font-weight: lighter; /* Optional: Highlight the date text */
}

.pit-expand-icon {
    cursor: pointer;
    font-size: 1.2rem; /* Adjust size for better visibility */
}

.grid-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.grid-cal-title {
    grid-column: span 3;
}

.grid-cal-pagination {
    grid-column: span 2;
}

.grid-cal-pagination button {
    margin: 0;
    padding: 4px;
    font-size: 0.75rem;
    width: 80px;
}

.cal {
    border: 1px solid black;
    margin: -1px 0 0 -1px;
    padding: 3px;
}

.cal p {
    margin: 0 0 2px 0;
    padding: 0;
    font-size: 0.5rem;
}

.cal-today {
    font-weight: bold;
    color: darkorange;
    background-color: rgba(255, 140, 0, 0.15); /* subtle background highlight */
    border-radius: 4px;
    padding: 2px 4px;
}

.cal-today::after {
    content: " TODAY";
    font-size: 0.85em;
    color: orange;
    font-weight: normal;
}

.cal h5 {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    font-weight: bold;
}

.bank-holiday {
    color: darkred;
    font-weight: bold;
}

.month-nav {
    font-size: 0.6rem;
    padding: 1px 2px;
    width: 200px !important;    
    max-width: 100%;
    border: none;
    border-bottom: 1px dashed #aaa;
    background-color: transparent;
    color: #333;
    box-sizing: border-box;
}

.month-nav:focus {
    outline: none;
    border-color: #aaa;
}

.disabled {
    pointer-events: none; /* Disables all interactions */
    opacity: 0.6; /* Visual indication of a disabled state */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures it's above other content */
}

/* Centered dialog box */
.loading-dialog {
    background-color: white;
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #333;
    overflow: visible;
}

#loading-indicator {
    margin: 20px;
}

.todo-indicator {
    position: absolute;
    top: 10px; /* Adjust to align with your design */
    right: 20px; /* Align to the right of the header */
    background-color: darkorange; /* Bright red for visibility */
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 0.4em 0.6em;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.todo-indicator span {
    display: inline-block;
    min-width: 1.5em; /* Ensures consistent sizing */
}

.input-row td, th {
    padding-left: 0;
    padding-bottom: 0;
    border: none;
}

.input-row input {
    margin-bottom: 0;    
}

#add-row {
    background-color: #007F5E;
    color: whitesmoke;
    margin: 0;
    padding: 4px;
    font-size: 0.75rem;
    width: 80px;
}


@media only screen and (max-width: 450px) {
    /* For mobile phones: */
    .card {
        width: 220px;
        min-height: 220px;
    }
}
