@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ---------------------------------------
   Base typography
---------------------------------------- */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.875rem; /* ~14px global scale-down */
}

/* Links */
a, .btn-link {
    color: #0071c1;
}

/* Buttons */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* ---------------------------------------
   Forms & validation
---------------------------------------- */
label {
    font-size: inherit;
}

/* Ensure controls inherit the smaller base size */
select, option,
button, input, textarea {
    font-size: inherit;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid:not([type=checkbox]) {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ---------------------------------------
   Tables (type & compact spacing)
---------------------------------------- */
table, th, td {
    font-size: inherit;
}

    /* GLOBAL compact cell padding for tables.
   If you want to restrict this only to certain tables,
   remove this block and keep the .scrollable-table/.table-compact blocks below. */
    table th, table td,
    .table th, .table td {
        padding: 4px 6px; /* tighter than Bootstrap default */
        vertical-align: middle; /* keeps content centered vertically */
        line-height: 1.2; /* slightly denser rows */
    }

/* Optional: ultra-compact variant you can opt-in via class="table table-compact" */
.table-compact th, .table-compact td {
    padding: 2px 4px;
    line-height: 1.15;
}

/* Scrollable tables with sticky header */
.scrollable-table {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: auto;
    width: 1208px; /* Includes border in total width */
}

/* If you prefer the inner table to stretch, uncomment:
.scrollable-table table { width: 100%; }
*/

.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #d4edda; /* matches .table-success */
    z-index: 2;
}

/* Action column */
.action-column {
    width: 150px;
    white-space: nowrap;
}

/* Inputs inside cells: don’t stretch checkboxes/radios */
td input:not([type=checkbox]):not([type=radio]) {
    width: 100%;
}

/* Larger checkbox helper */
.large-checkbox {
    width: 20px;
    height: 20px;
}

/* Clickable cell spans */
td span {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

/* Simple utility colors */
.custom-blue {
    color: blue;
    text-decoration: underline;
}

.custom-red {
    color: red;
}

.custom-green {
    color: green;
}

/* ---------------------------------------
   Radio group layout
---------------------------------------- */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-label {
    margin-left: 5px;
}

/* ---------------------------------------
   Content spacing
---------------------------------------- */
.content {
    padding-top: 1.1rem;
}

/* ---------------------------------------
   Print rules
---------------------------------------- */
@media print {
    .button-group, button {
        display: none !important;
    }

    body {
        margin: 0;
    }

    #reportContent {
        height: auto !important;
    }
}

/* Report & buttons */
.report-content {
    height: 800px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ---------------------------------------
   Blazor error UI
---------------------------------------- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    display: none;
    left: 0;
    width: 100%;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }

.blazor-error-boundary {
    /* truncated data URI for brevity */
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ---------------------------------------
   Bootstrap 4-specific control sizing
---------------------------------------- */
select.form-control,
select.form-control option,
input.form-control,
textarea.form-control,
label {
    font-size: 0.85rem; /* ~13.6px */
}

/* ---------------------------------------
   Layout container (fixed width, left-aligned)
---------------------------------------- */
.custom-container {
    width: 1210px;
    max-width: 1210px;
    text-align: left;
    margin-left: 20px; /* adjust as needed; use 0 to hug the left edge */
}

/* ---------------------------------------
   Small utilities (optional)
---------------------------------------- */

/* Reduce default .card body padding slightly for denser layout */
.card .card-body {
    padding: 0.75rem 0.75rem;
}

/* Slightly denser .form-group spacing if you use it */
.form-group {
    margin-bottom: 0.5rem;
}

/* Tighten labels and controls vertical rhythm */
label + .form-control,
label + .form-select,
label + select,
label + input {
    margin-top: 0.15rem;
}
