html, body {
    font-family: 'Verdana', Helvetica, Arial, sans-serif;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}
.modal-content {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.3rem;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.modal-body-scrollable {
    max-height: 70vh;
    overflow-y: auto;
}

.green-row {
    background-color: #d4edda; /* Light green tint */
}

.red-row {
    background-color: #f8d7da; /* Light red tint */
}

.blue-row {
    background-color: #d1ecf1; /* Light blue tint */
}

.grey-row {
    background-color: #e2e3e5; /* Light grey tint */
}

.orange-row {
    background-color: #ffeeba; /* Light orange tint */
}

.blue-orange-row {
    background-color: #f0e6dc; /* Soft pastel beige */
}

.blue-red-row {
    background-color: #e6dce8; /* Soft pastel mauve */
}

.link-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
}

.table th, .table td {
    padding: 4px 8px; /* Reduce cell padding */
    white-space: nowrap; /* Prevent text wrapping */
    border: 1px solid #ccc; /* Add a border to table cells */
    text-align: center; /* Center-align text in cells */
}

.table th {
    vertical-align: top !important; /* Align text to the top for table headers */
}


.table td {
    vertical-align: middle !important; /* Align text to the middle for table cells */
}

/* Special cases because intraday messages are long */
.table td.message-cell {
    max-width: 400px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap; /* Ensure wrapping in this specific cell */
    text-align: left !important; /* Align text to the left */
}

table.table td.published-at-column {
    width: 150px; /* Adjust as needed */
    white-space: nowrap; /* Prevent wrapping */
    text-align: left; /* Align text to the left */
    vertical-align: top !important; /* Align text to the top */
    padding: 4px; /* Optional: Adjust padding for better spacing */
}

h3 {
    font-size: 14px; /* Smaller header text */
    margin-bottom: 10px; /* Reduce bottom margin of header */
}

input[type="number"]
{
    font-size: 12px; /* Smaller font size for inputs and selects */
    padding: 2px; /* Smaller padding for inputs */
    width: 65%;
    box-sizing: border-box;
}

.table {
    border-spacing: 0; /* Reduce spacing between table cells */
    border-collapse: collapse; /* Make the table more compact */
}

/* Unified table hover — matches Bootstrap table-hover appearance.
   Excludes .hover-highlight tables (MfrrEnergyBidding) which have custom hover logic.
   Add .no-hover to individual rows to disable hover on specific rows. */
.table:not(.hover-highlight) > tbody > tr:not(.no-hover):hover > td,
.table:not(.hover-highlight) > tbody > tr:not(.no-hover):hover > th {
    background-color: rgba(0, 0, 0, 0.075);
}

button {
    margin-left: 5px;
}

.btn-link {
    font-size: 20px; /* Adjust the size of the symbol */
    color: inherit;  /* Keeps the color same as text, or change as needed */
    cursor: pointer; /* Makes it clear that it's clickable */
    font-weight: normal; /* Default font weight */
    text-decoration: none; /* Remove the underline */
    margin-left: 5px;
}

.btn-link:hover {
    font-weight: bold; /* Makes the symbol bold on hover */
    text-decoration: none; /* Remove the underline */
    margin-left: 4px;
}

.logo-img {
    width: 250px; /* Adjust width */
    height: auto; /* Automatically adjust height */
}

.flash-error-input {
    animation: flashOrangeInput 1s;
}

@keyframes flash {
    0% {
        background-color: #ffeeba; /* Initial color */
    }
    50% {
        background-color: #ffdf7e; /* Intermediate color */
    }
    100% {
        background-color: #ffeeba; /* Back to initial color */
    }
}

.error-input {
    background-color: #ffeeba; /* Default error background color */
    border-color: #ffdf7e;     /* Default error border color */
    animation: flash 1s ease-in-out; /* Apply flash animation */
}

/* Question circle icon*/
.bi-question-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-question-circle' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94'/%3E%3C/svg%3E");
    cursor: help;
    display: inline-block;
    width: 16px;
    height: 16px;
}

/* Clickable links */
.clickable-link {
    cursor: pointer;
    color: #0066cc;
    text-decoration: underline;
}

.clickable-link:hover {
    color: #004080;
    text-decoration: underline;
}
