html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

select, select option {
    appearance: auto !important;
}

#ifMap, iframe.map {
    display: block;
    height: 25em;
    width: 100%;
    border: 1px solid #000;
    margin-right: 0;
    margin-left: 0;
}

.umb--alerts {
    display: none;
}

/*.dt-hide-until-init {
    visibility: hidden;
}*/

.nl-wrap {
    min-height: 50vh;
}

/* keep rows a consistent height */
.archive-table {
    table-layout: fixed; /* so widths stick */
    width: 100%;
}
    .archive-table tbody tr {
        height: 44px;
    } 
    .archive-table td,
    .archive-table th {
        white-space: nowrap; /* one line only */
        overflow: hidden;
        text-overflow: ellipsis; /* … when long */
        vertical-align: middle;
    }

    .archive-table th:nth-child(1),
    .archive-table td:nth-child(1) {
        width: 75%;
    }
       
    .archive-table th:nth-child(2),
    .archive-table td:nth-child(2) {
        width: 25%;
    }

.modal .modal-body {
    max-height: calc(100vh - 220px); /* fits header/footer */
    overflow-y: auto;
    scrollbar-gutter: stable; /* stops width shift when scrollbar appears */
}

.notice-body{
    min-height: 500px;
}

.usn_cmp_code {
    padding-top: 0px !important;
}

/* Ensure we can position the processing UI and veil */
.dataTables_wrapper {
    position: relative;
    padding: 10px 30px;
    max-width: 100%;
}
}

    /* Veil only while DataTables is processing */
    .dataTables_wrapper.processing::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.5);
        backdrop-filter: blur(2px);
        pointer-events: none; /* clicks still go to table if needed */
    }
    /* Center the DataTables pagination controls */
    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

        /* Optional: tighten spacing between buttons */
        .dataTables_wrapper .dataTables_paginate .pagination {
            margin: 0;
        }
    .dataTables_wrapper .row:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .dataTables_wrapper .dataTables_info {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:last-child:not(.next) {
        display: none !important;
    }
/* Center & prettify the built-in processing element */
.dataTables_processing {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Simple inline spinner we inject via language.processing */
.dt-spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #555;
    animation: dtspin .8s linear infinite;
}

@keyframes dtspin {
    to {
        transform: rotate(360deg);
    }
}

#widget-root {
    padding: 10px 20px;
}

/* Re-enable sorting cursor and hover */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    cursor: pointer !important;
    position: relative;
    padding-right: 20px !important; /* room for chevron */
}

    /* Base inactive icon */
    table.dataTable thead th.sorting::after {
        content: "\f0dc"; /* Font Awesome 'sort' */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.4;
        font-size: 0.75rem;
    }

    /* Ascending (chevron up) */
    table.dataTable thead th.sorting_asc::after {
        content: "\f0de"; /* sort-up */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        color: #000;
    }

    /* Descending (chevron down) */
    table.dataTable thead th.sorting_desc::after {
        content: "\f0dd"; /* sort-down */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        color: #000;
    }

    /* Subtle hover feedback */
    table.dataTable thead th.sorting:hover,
    table.dataTable thead th.sorting_asc:hover,
    table.dataTable thead th.sorting_desc:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

#widget-root {
    box-sizing: border-box;
    padding: 5px 0px;
}

/* Validation styling */
.input-validation-error {
    border-color: #dc3545;
}

.valid {
    border-color: #198754;
}

.field-validation-error {
    color: #dc3545;
}

.field-validation-valid {
    display: none;
}

input, select, textarea, .form-control, [data-valmsg-for] {
    scroll-margin-top: 150px; /* adjust for navbar height */
}