/* =====================================================================================================
   UI KIT - the ONE place that styles form controls and buttons for the whole application.
   Text boxes, text areas, drop-downs (native, select2, bootstrap-multiselect), input groups, buttons and validation states.

   HOW TO RESTYLE EVERYTHING: change /Content/lt/tokens.css - the ONLY file that defines design tokens (CSS variables).
   This file only reads them (var(--...)); never define a token here.  New styles go in /Content/lt/components.css (lt- classes).
   HOW TO USE: nothing to do - Bootstrap classes the pages already use (.form-control, .btn, .btn-primary, ...) are restyled here.
   Loaded LAST in Site.Master (and the stand-alone pages), so it wins over Bootstrap / theme CSS.
   Do not add per-page overrides for these elements; extend this file instead.

   MAP OF THIS FILE
     1  text boxes, text areas, drop-downs, input groups, validation
     2  select2        3  multiselect + menus + date picker pop-ups
     4  buttons
     6  page basics: headings, footer bar, scrollbars, loader (app shell is in /Content/lt/components.css s.13)
     7  cards, panels, modals, tabs, badges, alerts
     8  tables and pagination
     9  sign-in pages (login, select location)
    10  form layout (.ui-form: stacked labels, sections, required marks, action bar)
     5  utility classes (one class per CSS declaration, replaces inline style attributes) - kept last on purpose
   ===================================================================================================== */


/* =====================================================================================================
   1. TEXT BOXES, TEXT AREAS, DROP-DOWNS
   Scope: anything with .form-control, plus bare inputs / selects / textareas inside the page area, dialogs and modals
   (the side menu search box keeps its own styling). Specificity is kept low so a page can still override one field.
   ===================================================================================================== */
.form-control,
:where(.right_col, .modal, .ui-dialog) :is(
    input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
    input[type=url], input[type=search], input[type=date], input[type=time], input[type=datetime-local], input[type=month],
    select, textarea) {
    height: var(--size-control);
    padding: 6px var(--space-control-x);
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-1);
    transition: var(--transition-control);
}

/* bare elements are not width:100% like .form-control; only the ones that sit alone in a column should stretch - leave their width alone */

.form-control:hover,
:where(.right_col, .modal, .ui-dialog) :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], select, textarea):hover {
    border-color: var(--color-border-hover);
}

.form-control:focus,
:where(.right_col, .modal, .ui-dialog) :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=time], select, textarea):focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.form-control::placeholder,
:where(.right_col, .modal, .ui-dialog) :is(input, textarea)::placeholder { color: var(--color-placeholder); opacity: 1; }

/* read-only / disabled */
.form-control[readonly], .form-control[disabled], fieldset[disabled] .form-control,
:where(.right_col, .modal, .ui-dialog) :is(input, select, textarea):is([disabled], [readonly]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]) {
    background-color: var(--color-surface-disabled);
    border-color: var(--color-border);
    color: var(--color-muted);
    box-shadow: none;
    cursor: not-allowed;
}
.form-control[readonly] { cursor: default; }

/* text areas */
textarea.form-control, :where(.right_col, .modal, .ui-dialog) textarea {
    height: auto;
    min-height: var(--size-textarea-min);
    padding-top: 9px;
    padding-bottom: 9px;
    resize: var(--textarea-resize);
}

/* drop-downs: native <select> with a custom arrow */
select.form-control,
:where(.right_col, .modal, .ui-dialog) select:not([multiple]):not([size]) {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 34px;
    background-image: var(--icon-select-arrow);
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 12px 8px;
    cursor: pointer;
    text-overflow: ellipsis;
}
select.form-control::-ms-expand { display: none; }
select[multiple].form-control, select[size].form-control { height: auto; padding-right: var(--space-control-x); background-image: none; cursor: default; }
select option { color: var(--color-text); }

/* sizes */
.input-sm, .form-control.input-sm, select.input-sm { height: var(--size-control-sm); padding: 3px 10px; font-size: var(--font-size-sm); border-radius: 7px; }
.input-lg, .form-control.input-lg, select.input-lg { height: var(--size-control-lg); padding: 9px 16px; font-size: 15px; border-radius: 12px; }
textarea.input-sm { height: auto; min-height: 60px; }

/* inputs inside data grids (table.table) stay compact; tables used only for form layout keep the normal field height */
:where(table.table) .form-control, :where(table.table) select.form-control { height: var(--size-control-sm); padding-top: 3px; padding-bottom: 3px; font-size: var(--font-size-sm); }
:where(table.table) select.form-control { padding-right: 28px; background-position: right 10px center; }
:where(table.table) textarea.form-control { height: auto; min-height: 56px; }

/* check boxes / radios pick up the brand colour */
input[type=checkbox], input[type=radio] {
    accent-color: var(--color-primary);
    vertical-align: sub;
}

/* labels */
:where(.right_col, .modal, .ui-dialog) label, .control-label { font-weight: 500; font-size: 13px; color: var(--color-label); margin-bottom: 5px; }
:where(.right_col, .modal, .ui-dialog) :is(.checkbox, .radio) label, :where(.right_col, .modal, .ui-dialog) label:has(> input[type=checkbox], > input[type=radio]) { font-weight: 400; }
.help-block { color: var(--color-muted); font-size: 12px; }

/* validation (Bootstrap .has-error / .has-success, MVC, ASP.NET validators) */
.has-error .form-control, .form-control.error, .form-control.has-error, .form-control.input-validation-error,
input.input-validation-error, select.input-validation-error, textarea.input-validation-error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px var(--color-danger-ring);
}
.has-error .control-label, .has-error .help-block, .has-error label { color: var(--color-danger); }
.has-success .form-control { border-color: var(--color-success); }
.has-success .form-control:focus { box-shadow: 0 0 0 3px rgba(31, 157, 107, .2); }

/* input groups (addons) */
.input-group-addon {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    font-size: var(--font-size-md);
    min-width: 40px;
    height: var(--size-control);
    padding: 0 12px;
    line-height: 1.5;
    vertical-align: middle;
}
.input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .form-control:focus { z-index: 3; }

/* =====================================================================================================
   2. SELECT2 (searchable drop-downs)
   ===================================================================================================== */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: var(--size-control);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-1);
    transition: var(--transition-control);
}
.select2-container--default .select2-selection--single { height: var(--size-control); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: calc(var(--size-control) - 2px); padding-left: var(--space-control-x); padding-right: 32px; color: var(--color-text); font-size: var(--font-size-md); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(var(--size-control) - 2px); width: 30px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--color-placeholder); }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--color-primary-soft); border: 1px solid transparent; border-radius: 6px; color: var(--color-primary); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-ring); }
.select2-container--default.select2-container--disabled .select2-selection--single { background: var(--color-surface-disabled); }
.select2-dropdown { border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-menu); overflow: hidden; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--color-border); border-radius: 7px; padding: 5px 9px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--color-primary); color: #fff; }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--color-primary-soft); color: var(--color-primary); }

/* =====================================================================================================
   3. BOOTSTRAP-MULTISELECT (multi drop-downs) + generic drop-down menus
   ===================================================================================================== */
.btn-group > .multiselect.btn, .multiselect.dropdown-toggle {
    height: var(--size-control); text-align: left; background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-border); box-shadow: var(--shadow-1); font-weight: 400; padding-right: 30px; position: relative;
}
.multiselect .caret { position: absolute; right: 12px; top: 50%; margin-top: -2px; color: var(--color-muted); }
.multiselect-container { min-width: 100%; max-height: 320px; overflow: auto; }
.multiselect-container > li > a > label { padding: 6px 12px 6px 34px; font-weight: 400; color: var(--color-text); }
.multiselect-container > li.active > a, .multiselect-container > li > a:hover { background: var(--color-primary-soft); }

.dropdown-menu { border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-menu); padding: 6px; font-size: var(--font-size-md); }
.dropdown-menu > li > a { border-radius: 6px; padding: 7px 12px; color: var(--color-text); }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus, .dropdown-menu > .active > a { background: var(--color-primary-soft); color: var(--color-primary); }

/* jQuery UI auto-complete / date picker pop-ups */
.ui-autocomplete, .ui-datepicker { border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-menu); }
.ui-autocomplete .ui-menu-item a, .ui-autocomplete .ui-menu-item-wrapper { padding: 7px 12px; }
.ui-menu .ui-state-focus, .ui-menu .ui-state-active, .ui-autocomplete .ui-state-hover { background: var(--color-primary-soft); border-color: transparent; color: var(--color-primary); margin: 0; }
.ui-datepicker .ui-state-active, .ui-datepicker .ui-state-hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.ui-datepicker .ui-datepicker-today a.ui-state-highlight { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }

/* =====================================================================================================
   4. BUTTONS  (<button>, <a>, <input type=button|submit>, asp:Button / asp:LinkButton)
   ===================================================================================================== */
.btn {
    display: inline-block;
    min-height: var(--size-control);
    padding: 7px 16px;
    font-size: var(--font-size-md);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .1px;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-btn);
    transition: var(--transition-control);
    text-shadow: none;
}
/* space between buttons: same 4px token as lt-btn (Gentelella gave .btn 5px) */
.btn, .buttons { margin-right: var(--space-btn-between); margin-bottom: var(--space-btn-between); }
.btn:focus, .btn:active:focus, .btn.active:focus { outline: 0; box-shadow: 0 0 0 3px var(--color-primary-ring); }
.btn:active, .btn.active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15); }

/* icon-only buttons rendered as <input class="btn fa" value="&#xf0f6;"> keep the icon font */
.btn.fa, input.btn.fa { font-weight: 400; line-height: 1.2; padding-left: 12px; padding-right: 12px; }

/* primary buttons: outline at rest, filled on hover (same tokens as lt-btn) */
.btn-primary { background-color: var(--btn-primary-bg); border-color: var(--btn-primary-border); color: var(--btn-primary-text); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background-color: var(--btn-primary-hover-bg); border-color: var(--btn-primary-border); color: var(--btn-primary-hover-text); }

.btn-default { background-color: var(--color-surface); border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-1); }
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background-color: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }

.btn-success { background-color: var(--color-success); border-color: var(--color-success); color: #fff; }
.btn-warning { background-color: var(--color-warning); border-color: var(--color-warning); color: #fff; }
.btn-danger  { background-color: var(--color-danger);  border-color: var(--color-danger);  color: #fff; }
.btn-info    { background-color: var(--color-info);    border-color: var(--color-info);    color: #fff; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active,
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active,
.btn-danger:hover,  .btn-danger:focus,  .btn-danger:active,  .btn-danger.active,
.btn-info:hover,    .btn-info:focus,    .btn-info:active,    .btn-info.active { color: #fff; filter: brightness(.92); }
.btn-success:focus, .btn-success:active:focus { box-shadow: 0 0 0 3px rgba(31, 157, 107, .25); }
.btn-warning:focus, .btn-warning:active:focus { box-shadow: 0 0 0 3px rgba(224, 138, 0, .25); }
.btn-danger:focus,  .btn-danger:active:focus  { box-shadow: 0 0 0 3px var(--color-danger-ring); }
.btn-info:focus,    .btn-info:active:focus    { box-shadow: 0 0 0 3px rgba(43, 143, 199, .25); }

.btn-link { background: transparent; border-color: transparent; color: var(--color-primary); box-shadow: none; }
.btn-link:hover, .btn-link:focus { background: var(--color-primary-soft); color: var(--color-primary-hover); text-decoration: none; }

/* sizes */
.btn-sm, .btn-group-sm > .btn { min-height: var(--size-control-sm); padding: 4px 12px; font-size: var(--font-size-sm); border-radius: var(--radius-btn); }
.btn-xs, .btn-group-xs > .btn { min-height: 24px; padding: 2px 8px; font-size: 11.5px; border-radius: var(--radius-btn); }
.btn-lg, .btn-group-lg > .btn { min-height: var(--size-control-lg); padding: 10px 22px; font-size: 15px; border-radius: var(--radius-btn); }

/* disabled */
.btn[disabled], .btn.disabled, fieldset[disabled] .btn, input.btn[disabled] {
    opacity: .55; cursor: not-allowed; box-shadow: none; filter: none; pointer-events: none;
}

/* button groups: separate buttons with a small gap, each with its own corners (never merged) */
.btn-group > .btn, .btn-group-vertical > .btn { border-radius: var(--radius-btn); }
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-left-radius: var(--radius-btn); border-bottom-left-radius: var(--radius-btn); }
.btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-top-right-radius: var(--radius-btn); border-bottom-right-radius: var(--radius-btn); }
.btn-group > .btn:only-child { border-radius: var(--radius-btn); }
.btn-group > .btn + .btn { margin-left: var(--space-btn-between); }
.btn-group-sm > .btn:first-child:not(:last-child) { border-top-left-radius: var(--radius-btn); border-bottom-left-radius: var(--radius-btn); }
.btn-group-sm > .btn:last-child:not(:first-child) { border-top-right-radius: var(--radius-btn); border-bottom-right-radius: var(--radius-btn); }
.btn-group .btn { box-shadow: none; }

/* Bootstrap's file-upload / browse button */
input[type=file] { font-size: var(--font-size-sm); color: var(--color-muted); }
input[type=file]::file-selector-button { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-btn); padding: 5px 12px; margin-right: 10px; cursor: pointer; transition: var(--transition-control); }
input[type=file]::file-selector-button:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }

@media (prefers-reduced-motion: reduce) { .btn, .form-control, select, textarea { transition: none !important; } }

/* =====================================================================================================
   6. PAGE BASICS  (the app shell - side menu, top bar, mode buttons, content card - is in /Content/lt/components.css section 13)
   ===================================================================================================== */
body { color: var(--color-text); -webkit-font-smoothing: antialiased; }

body .right_col h1 { font-size: 24px; font-weight: 600; color: var(--color-text); letter-spacing: -.2px; }
body .right_col h2, body .right_col h3 { color: var(--color-text); }
body hr { border-top-color: var(--color-card-border); }

.fixed-bottom.bg-info { background: var(--color-surface) !important; color: var(--color-muted); border-top: 1px solid var(--color-border); font-size: 12px; box-shadow: 0 -2px 8px rgba(25, 48, 78, .04); }
.fixed-bottom.bg-info a { color: var(--color-primary); }

/* thin modern scrollbars */
* { scrollbar-width: thin; scrollbar-color: #c3cedc transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--color-scrollbar); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--color-scrollbar-hover); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* page loader overlay */
.loadBg { background: var(--color-overlay) !important; backdrop-filter: blur(2px); }

/* =====================================================================================================
   7. CARDS, PANELS, MODALS, TABS, BADGES, ALERTS
   ===================================================================================================== */
.x_panel, .panel { border-radius: var(--radius-lg); }
.panel, .panel-default { border: 1px solid var(--color-card-border); box-shadow: var(--shadow-card); background: var(--color-surface); }
.panel-default > .panel-heading, .panel-primary > .panel-heading, .panel-heading {
    background: var(--color-surface-soft); color: var(--color-text); border-bottom: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-weight: 600;
}
.panel-primary { border-color: var(--color-card-border); }
.panel-title, .panel-heading .panel-title { color: var(--color-text); font-weight: 600; }
.panel-footer { background: var(--color-surface-soft); border-top: 1px solid var(--color-card-border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.x_panel .x_title { border-bottom: 1px solid var(--color-card-border); }
.x_panel .x_title h2 { color: var(--color-text); font-weight: 600; }

/* modals */
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 60px -12px rgba(15, 32, 58, .45); overflow: hidden; }
.modal-header, .modal-header.panel-heading { background: var(--color-surface-soft) !important; border-bottom: 1px solid var(--color-card-border); border-radius: 18px 18px 0 0; padding: 14px 20px; }
.modal-header .modal-title, .modal-header.panel-heading .modal-title, .modal-title { color: var(--color-text) !important; font-weight: 600; }
.modal-header .close { color: var(--color-muted); opacity: 1; text-shadow: none; font-weight: 400; transition: color .15s ease; }
.modal-header .close:hover { color: var(--color-danger); }
.modal-body { padding: 20px; }
.modal-footer { background: var(--color-surface-soft); border-top: 1px solid var(--color-card-border); padding: 12px 20px; }
.modal-backdrop.in { opacity: .5; background: var(--color-backdrop); }

/* tabs */
.nav-tabs { border-bottom: 1px solid var(--color-card-border); }
.nav-tabs > li > a { color: var(--color-muted); font-weight: 500; border: 0; border-bottom: 2px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-right: 4px; transition: var(--transition-control); }
.nav-tabs > li > a:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: transparent; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: var(--color-primary); background: var(--color-surface); border: 0; border-bottom: 2px solid var(--color-primary); }
.nav-pills > li > a { border-radius: 999px; color: var(--color-muted); font-weight: 500; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { background: var(--color-primary); color: #fff; }

/* badges / labels */
.label, .badge { border-radius: 999px; font-weight: 500; letter-spacing: .2px; padding: .3em .8em; text-shadow: none; }
.label-default, .badge { background: var(--label-default-bg); color: #3d4f66; }
.label-primary { background: var(--color-primary-soft); color: var(--color-primary); }
.label-success { background: var(--label-success-bg); color: var(--color-success); }
.label-warning { background: var(--label-warning-bg); color: #b86e00; }
.label-danger { background: var(--label-danger-bg); color: var(--color-danger); }
.label-info { background: var(--label-info-bg); color: var(--color-info); }

/* alerts, notifications, progress */
.alert { border-radius: 12px; border: 1px solid transparent; border-left-width: 1px; box-shadow: none; padding: 12px 16px; font-size: 13px; line-height: 1.5; }
.alert > .fa:first-child, .alert > i:first-child { margin-right: 6px; opacity: .9; }
.alert .close { opacity: .5; text-shadow: none; color: inherit; } .alert .close:hover { opacity: .8; }
.alert-success { background: var(--alert-success-bg); border-color: var(--alert-success-border); color: #1e6f47; } .alert-success .fa { color: #2f8f5b; }
.alert-info { background: var(--alert-info-bg); border-color: var(--alert-info-border); color: #135f8c; } .alert-info .fa { color: #1f8ac9; }
.alert-warning { background: var(--alert-warning-bg); border-color: var(--alert-warning-border); color: #855810; } .alert-warning .fa { color: #c98a2b; }
.alert-danger { background: var(--alert-danger-bg); border-color: var(--alert-danger-border); color: #a2353b; } .alert-danger .fa { color: #c9484a; }
#toast-container > div { border-radius: 12px; box-shadow: var(--shadow-menu); opacity: 1; }
.progress { border-radius: 999px; background: var(--color-progress-track); box-shadow: none; }
.progress-bar { background: var(--color-primary); box-shadow: none; }
.well { background: var(--color-surface-soft); border: 1px solid var(--color-card-border); border-radius: var(--radius-md); box-shadow: none; }
.list-group-item { border-color: var(--color-card-border); }
.list-group-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.list-group-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
a { color: var(--color-primary); }
a:hover, a:focus { color: var(--color-primary-hover); }
legend { border-bottom-color: var(--color-card-border); color: var(--color-text); font-weight: 600; }

/* =====================================================================================================
   8. TABLES & PAGINATION  (every .table, the shared list grids, admission grids)
   ===================================================================================================== */
.table { border-collapse: separate; border-spacing: 0; color: var(--color-text); }
.table thead, .table > thead { background: var(--color-table-head); color: var(--color-table-head-text); }
.table > thead > tr > th, .table thead th,
body .shared-list-grid > table > thead > tr > th,
body .admission-grid-scroll > table > thead > tr > th,
body .AdmissionDeskDetailsDiv > table > thead > tr > th,
body .ProspectusReceivedDetailsDiv > table > thead > tr > th,
body .AdmissionTestSlipsDetailsDiv > table > thead > tr > th {
    background: var(--color-table-head);
    color: var(--color-table-head-text);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .25px;
    padding: 12px 12px;
    border-bottom: 1px solid var(--color-table-border) !important;
    border-top: 0;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td {
    border-top: 1px solid var(--color-table-row-border);
    padding: 11px 12px;
    font-size: var(--font-size-md);
    transition: background-color .12s ease;
}
.table > tbody > tr:first-child > td { border-top: 0; }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--color-table-stripe); }
.table-hover > tbody > tr:hover, .table > tbody > tr:hover > td { background: var(--color-table-row-hover); }
.table > tbody > tr.active > td, .table > tbody > tr.selected > td, .table > tbody > tr.success > td { background: var(--color-primary-soft); }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--color-table-border); }
.table > tfoot > tr > td, .table > tfoot > tr > th { background: var(--color-table-head); font-weight: 600; }

/* the scroll containers around grids become soft rounded cards */
body .shared-list-grid, body .admission-grid-scroll, body .AdmissionDeskDetailsDiv, body .ProspectusReceivedDetailsDiv, body .AdmissionTestSlipsDetailsDiv,
.table-responsive {
    border: 1px solid var(--color-table-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}
body .shared-list-grid > table > thead > tr > th:first-child { border-top-left-radius: var(--radius-md); }
body .shared-list-grid > table > thead > tr > th:last-child { border-top-right-radius: var(--radius-md); }

/* grid footers (rows per page + pagination) */
.admission-list-footer, .shared-list-footer { background: var(--color-surface-soft); border-color: var(--color-table-border); border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* pagination */
.pagination { margin: 0; }
.pagination > li > a, .pagination > li > span,
.pagination > li:first-child > a, .pagination > li:last-child > a, .pagination > li:first-child > span, .pagination > li:last-child > span {
    border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin: 0 2px; color: var(--color-label); background: var(--color-surface);
    font-weight: 500; transition: var(--transition-control); min-width: 34px; text-align: center;
}
.pagination > li > a:hover, .pagination > li > span:hover { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover {
    background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 4px 10px -4px var(--color-primary-ring);
}
.pagination > .disabled > a, .pagination > .disabled > span { background: var(--color-surface-disabled); color: var(--color-placeholder); border-color: var(--color-border); }
div.pagging ul.pagination { border: 0; }
.pager li > a, .pager li > span { border-radius: 999px; border-color: var(--color-border); }

/* =====================================================================================================
   9. SIGN-IN PAGES  - in /Content/lt/components.css section 14 (lt-auth: Login + Select Location)
   ===================================================================================================== */

/* =====================================================================================================
   10. FORM LAYOUT  (opt-in: put class "ui-form" on the form / modal body)
   Stacked labels, two columns on wide screens, one on phones, grouped sections, required marks, tidy action bar.
   Two ways to use it:
     a) new markup:   <div class="ui-grid"><div class="ui-field"><label>..</label><input class="form-control"></div> ... </div>
     b) existing Bootstrap rows (.col-sm-12.form-group with label / field / label / field children) are re-flowed automatically.
   ===================================================================================================== */
.ui-form .form-section-title, .ui-form legend {
    display: flex; align-items: center; gap: 8px;
    margin: 22px 0 12px; padding: 0 0 8px; width: 100%;
    font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--color-primary);
    border-bottom: 1px solid var(--color-card-border);
}
.ui-form .form-section-title:first-child { margin-top: 4px; }
.ui-form .form-section-title i { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 8px; background: var(--color-primary-soft); color: var(--color-primary); font-size: 13px; }

/* (a) new markup */
.ui-form .ui-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0 0 6px; }
.ui-form .ui-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ui-form .ui-field { min-width: 0; }
.ui-form .ui-field.full { grid-column: 1 / -1; }
.ui-form .ui-field > label { display: block; margin-bottom: 5px; }

/* (b) legacy rows: label / field / label / field -> two stacked columns (hidden rows stay hidden) */
.ui-form .col-sm-12.form-group:not(.hidden), .ui-form .col-md-12 > .col-sm-12.form-group:not(.hidden) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 0;
    float: none; width: 100%; margin: 0 0 14px; padding: 0;
}
.ui-form .col-sm-12.form-group:not(.hidden)::before, .ui-form .col-sm-12.form-group:not(.hidden)::after { display: none; }
.ui-form .col-sm-12.form-group:not(.hidden) > [class*="col-sm-"] { float: none; width: auto; padding: 0; min-width: 0; }
.ui-form .col-sm-12.form-group:not(.hidden) > :nth-child(1) { grid-column: 1; grid-row: 1; }
.ui-form .col-sm-12.form-group:not(.hidden) > :nth-child(2) { grid-column: 1; grid-row: 2; }
.ui-form .col-sm-12.form-group:not(.hidden) > :nth-child(3) { grid-column: 2; grid-row: 1; }
.ui-form .col-sm-12.form-group:not(.hidden) > :nth-child(4) { grid-column: 2; grid-row: 2; }

/* labels + required marker (the markup already carries required="required") */
.ui-form label { display: block; margin: 0 0 5px; font-size: 12.5px; font-weight: 600; color: var(--color-label); }
.ui-form [class*="col-sm-"]:has(+ [class*="col-sm-"] [required]:not([disabled]):not(.hidden)) > label::after,
.ui-form .ui-field:has([required]) > label::after { content: ' *'; color: var(--color-danger); }
.ui-form .input-group > label.hidden { display: none; }

/* fields: icon add-ons add noise when every field has the same one - hide them and let the box be a normal field */
.ui-form .input-group { display: block; width: 100%; }
.ui-form .input-group-addon { display: none; }
.ui-form .input-group .form-control, .ui-form .input-group select.form-control { display: block; float: none; width: 100%; border-radius: var(--radius-xs); }

/* validation summary + hints */
.ui-form .ValidationSummary.alert { margin-bottom: 16px; }
.ui-form .lblMsg { font-size: 12.5px; }

/* action bar */
.ui-form-actions, .modal-footer.panel-footer { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-btn-between); }
.modal-footer.panel-footer > .col-lg-12, .modal-footer.panel-footer > .col-lg-12 > .col-lg-4 { float: none; width: auto; padding: 0; display: flex; justify-content: flex-end; gap: var(--space-btn-between); flex-wrap: wrap; }
.modal-footer.panel-footer .btn[class*="col-"] { float: none; width: auto; min-width: 110px; margin: 0; }
.modal-footer.panel-footer > div:not([class]) { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-btn-between); width: 100%; }
.modal-footer.panel-footer .btn.pull-right { float: none !important; }
/* Cancel = neutral outline on every screen (old .btn Cancel buttons too, whatever their old colour class), same tokens as lt-btn-outline */
.btn.lt-icon-cancel, .modal-footer.panel-footer .btn.btn-warning, .modal-footer .btn-warning.cancel { background: var(--lt-btn-outline-bg, var(--color-btn-outline-bg)); color: var(--color-text); border-color: var(--color-border); box-shadow: var(--shadow-1); }
.modal-footer .btn.lt-icon-cancel, .modal-footer.panel-footer .btn.btn-warning, .modal-footer .btn-warning.cancel { background: var(--color-surface); }   /* in a dialog footer: plain surface, as .lt-modal-footer .lt-btn-outline */
.btn.lt-icon-cancel:is(:hover, :focus, :active), .modal-footer.panel-footer .btn.btn-warning:hover { background: color-mix(in srgb, var(--color-primary) var(--tint-soft), var(--color-surface)); border-color: var(--color-primary); color: var(--color-primary); filter: none; }

@media (max-width: 640px) {
    .ui-form .ui-grid, .ui-form .ui-grid.cols-3, .ui-form .col-sm-12.form-group:not(.hidden) { grid-template-columns: minmax(0, 1fr); }
    .ui-form .col-sm-12.form-group:not(.hidden) > * { grid-column: 1 !important; grid-row: auto !important; }
}

/* =====================================================================================================
   5. UTILITY CLASSES  (replace inline style="..." attributes)
   Each rule is written `.u-name[class]` (specificity 0,2,0) so it beats ordinary page/theme rules the way the old inline style did, while a script that sets an inline style still wins.
   Rule: ONE class per CSS declaration, named u-<property>-<value>, so nothing is ever defined twice and classes combine freely
   (style="margin-top:10px;height:34px"  ->  class="u-mt-10px u-h-34px").
   Need a new value? Add one line in the right property group below (same naming) and use the class - never write style="..." on a page.
   Values the pages previously marked !important keep the -i suffix; a few others carry !important (visible in the rules) only because a vendor stylesheet is !important too. display:none / visibility stay inline on purpose (scripts toggle them).
   ===================================================================================================== */
/* Actions column (moved to the first position by /Scripts/table-actions-first.js) */
table th.col-actions, table td.col-actions { width: 1%; min-width: 0 !important; white-space: nowrap; text-align: center; }
table td.col-actions .btn, table td.col-actions a { margin-right: 2px; }
/* action buttons sit side by side, never stacked */
table td.col-actions .btn-group, table td.col-actions .btn-group[class] { display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap; width: auto !important; vertical-align: middle; }
table td.col-actions .btn-group > .btn { float: none; margin-right: 0; width: auto; }

/* BEGIN UTILITIES */
/* background */
.u-bg-0e2049[class] { background: var(--color-util-navy); }
.u-bg-2376cb[class] { background: var(--color-util-blue); }
.u-bg-297a18[class] { background: var(--color-util-green); }
.u-bg-cd345b[class] { background: var(--color-util-rose); }
.u-bg-d4ae21[class] { background: var(--color-util-gold); }
/* background-color */
.u-bg-2a3f54[class] { background-color: var(--color-util-slate); }
.u-bg-aqua[class] { background-color: aqua; }
/* border */
.u-bd-0[class] { border: 0; }
.u-bd-1px-solid[class] { border: 1px solid; }
.u-bd-1px-solid-ccc[class] { border: 1px solid var(--color-util-border); }
.u-bd-1px-solid-ddd[class] { border: 1px solid var(--color-util-border-light); }
.u-bd-1px-solid-lightgray[class] { border: 1px solid lightgray; }
.u-bd-none[class] { border: none; }
/* border-bottom */
.u-bdb-solid-1px-aquamarine[class] { border-bottom: solid 1px aquamarine; }
/* border-bottom-right-radius */
.u-border-bottom-right-radius-4px[class] { border-bottom-right-radius: 4px !important; }
/* border-radius */
.u-br-100pct[class] { border-radius: 100%; }
.u-br-5px[class] { border-radius: 5px; }
/* border-right */
.u-bdr-solid-5px-1abb9c[class] { border-right: solid 5px var(--color-util-teal); }
/* border-top-left-radius */
.u-border-top-left-radius-0[class] { border-top-left-radius: 0; }
/* border-top-right-radius */
.u-border-top-right-radius-4px[class] { border-top-right-radius: 4px !important; }
/* box-shadow */
.u-shadow-0-0-6px-2px-7bc4e0de[class] { box-shadow: 0 0 6px 2px #7bc4e0de; }
.u-shadow-4px-5px-7px-0-64a98cd4[class] { box-shadow: 4px 5px 7px 0 #64a98cd4; }
.u-shadow-5px-7px-15px[class] { box-shadow: 5px 7px 15px; }
.u-shadow-none[class] { box-shadow: none; }
/* color */
.u-c-059669[class] { color: #059669; }
.u-c-black[class] { color: black; }
.u-c-fff[class] { color: #fff; }
.u-c-limegreen[class] { color: limegreen; }
.u-c-orchid[class] { color: orchid; }
.u-c-red[class] { color: red; }
.u-c-white[class] { color: white; }
/* cursor */
.u-cur-auto[class] { cursor: auto; }
.u-cur-pointer[class] { cursor: pointer; }
/* display */
.u-d-block[class] { display: block; }
.u-d-flex[class] { display: flex; }
.u-d-inline[class] { display: inline; }
.u-d-inline-block[class] { display: inline-block; }
/* float */
.u-float-left[class] { float: left; }
.u-float-left-i[class] { float: left !important; }
.u-float-right[class] { float: right; }
.u-float-right-i[class] { float: right !important; }
/* font-size */
.u-fs-15px[class] { font-size: 15px; }
.u-fs-20px[class] { font-size: 20px; }
.u-fs-24px[class] { font-size: 24px; }
.u-fs-2rem[class] { font-size: 2rem; }
.u-fs-medium[class] { font-size: medium; }
.u-fs-x-large[class] { font-size: x-large; }
/* font-weight */
.u-fw-bold[class] { font-weight: bold; }
/* height */
.u-h-100pct[class] { height: 100%; }
.u-h-100px[class] { height: 100px; }
.u-h-130px[class] { height: 130px; }
.u-h-150px[class] { height: 150px; }
.u-h-160px[class] { height: 160px; }
.u-h-200px[class] { height: 200px; }
.u-h-20px[class] { height: 20px; }
.u-h-250px[class] { height: 250px; }
.u-h-280px[class] { height: 280px; }
.u-h-30px[class] { height: 30px; }
.u-h-34px[class] { height: 34px; }
.u-h-350px[class] { height: 350px; }
.u-h-35px[class] { height: 35px; }
.u-h-39px[class] { height: 39px; }
.u-h-42px[class] { height: 42px; }
.u-h-496px[class] { height: 496px; }
.u-h-500px[class] { height: 500px; }
.u-h-50px[class] { height: 50px; }
.u-h-550px[class] { height: 550px; }
.u-h-600px[class] { height: 600px; }
.u-h-60px[class] { height: 60px; }
.u-h-700px[class] { height: 700px; }
.u-h-850px[class] { height: 850px; }
.u-h-auto[class] { height: auto; }
/* margin */
.u-m-0-i[class] { margin: 0 !important; }
.u-m-10px[class] { margin: 10px; }
.u-m-10px-0[class] { margin: 10px 0; }
/* margin-bottom */
.u-mb-0[class] { margin-bottom: 0; }
.u-mb-0-i[class] { margin-bottom: 0 !important; }
.u-mb-10px[class] { margin-bottom: 10px; }
.u-mb-20px[class] { margin-bottom: 20px; }
/* margin-left */
.u-ml-100pct[class] { margin-left: 100%; }
.u-ml-10px[class] { margin-left: 10px; }
.u-ml-10px-i[class] { margin-left: 10px !important; }
.u-ml-12px[class] { margin-left: 12px; }
.u-ml-14px[class] { margin-left: 14px; }
.u-ml-20px[class] { margin-left: 20px; }
.u-ml-24px[class] { margin-left: 24px; }
.u-ml-5px[class] { margin-left: 5px; }
/* margin-right */
.u-mr-5px-i[class] { margin-right: 5px !important; }
.u-mr-8px[class] { margin-right: 8px; }
.u-mr-auto[class] { margin-right: auto; }
/* margin-top */
.u-mt-0-i[class] { margin-top: 0 !important; }
.u-mt-10px[class] { margin-top: 10px; }
.u-mt-15px[class] { margin-top: 15px; }
.u-mt-18px[class] { margin-top: 18px; }
.u-mt-19px[class] { margin-top: 19px; }
.u-mt-1pct[class] { margin-top: 1%; }
.u-mt-20px[class] { margin-top: 20px; }
.u-mt-22px[class] { margin-top: 22px; }
.u-mt-23px[class] { margin-top: 23px; }
.u-mt-24px[class] { margin-top: 24px; }
.u-mt-2pct[class] { margin-top: 2%; }
.u-mt-30px[class] { margin-top: 30px; }
.u-mt-5px[class] { margin-top: 5px; }
.u-mt-8px[class] { margin-top: 8px; }
.u-mt-9px[class] { margin-top: 9px; }
.u-mt-n25px[class] { margin-top: -25px; }
.u-mt-n35px[class] { margin-top: -35px; }
/* max-height */
.u-maxh-200px[class] { max-height: 200px; }
.u-maxh-300px[class] { max-height: 300px; }
.u-maxh-350px[class] { max-height: 350px; }
.u-maxh-470px[class] { max-height: 470px; }
.u-maxh-500px[class] { max-height: 500px; }
.u-maxh-600px[class] { max-height: 600px; }
/* max-width */
.u-maxw-280px[class] { max-width: 280px; }
.u-maxw-3p5pct-i[class] { max-width: 3.5% !important; }
.u-maxw-420px[class] { max-width: 420px; }
.u-maxw-600px[class] { max-width: 600px; }
/* min-height */
.u-minh-100px[class] { min-height: 100px; }
.u-minh-150px[class] { min-height: 150px; }
.u-minh-200px[class] { min-height: 200px; }
.u-minh-300px[class] { min-height: 300px; }
.u-minh-500px[class] { min-height: 500px; }
.u-minh-50px[class] { min-height: 50px; }
.u-minh-550px[class] { min-height: 550px; }
.u-minh-600px[class] { min-height: 600px; }
.u-minh-761px[class] { min-height: 761px; }
/* opacity */
.u-op-0[class] { opacity: 0; }
/* overflow */
.u-ov-auto[class] { overflow: auto; }
.u-ov-scroll[class] { overflow: scroll; }
/* overflow-x */
.u-ovx-auto[class] { overflow-x: auto; }
.u-ovx-hidden[class] { overflow-x: hidden !important; }
/* wide tables must scroll sideways, not be clipped (master-shell.js wraps tables in .table-scroll-x) */
.table-scroll-x { overflow-x: auto; max-width: 100%; }
.u-ovx-hidden[class]:has(table) { overflow-x: auto !important; }
.u-ovx-scroll[class] { overflow-x: scroll !important; }
/* overflow-y */
.u-ovy-scroll[class] { overflow-y: scroll !important; }
/* padding */
.u-p-0[class] { padding: 0; }
.u-p-10px[class] { padding: 10px; }
.u-p-6px-5px-i[class] { padding: 6px 5px !important; }
.u-p-8px-i[class] { padding: 8px !important; }
/* padding-bottom */
.u-pb-0[class] { padding-bottom: 0; }
/* padding-left */
.u-pl-140px[class] { padding-left: 140px; }
.u-pl-330px[class] { padding-left: 330px; }
/* padding-right */
.u-pr-0[class] { padding-right: 0; }
.u-pr-10px[class] { padding-right: 10px; }
.u-pr-4px[class] { padding-right: 4px; }
/* padding-top */
.u-pt-15px[class] { padding-top: 15px; }
.u-pt-18px[class] { padding-top: 18px; }
.u-pt-19px[class] { padding-top: 19px; }
.u-pt-22px[class] { padding-top: 22px; }
.u-pt-25px[class] { padding-top: 25px; }
.u-pt-70px[class] { padding-top: 70px; }
/* position */
.u-pos-absolute[class] { position: absolute; }
.u-pos-relative[class] { position: relative; }
/* resize */
.u-resize-none[class] { resize: none; }
/* text-align */
.u-ta-center[class] { text-align: center; }
.u-ta-left[class] { text-align: left; }
.u-ta-left-i[class] { text-align: left !important; }
/* text-decoration */
.u-td-underline[class] { text-decoration: underline; }
/* text-transform */
.u-tt-capitalize[class] { text-transform: capitalize; }
/* vertical-align */
.u-va-top[class] { vertical-align: top; }
/* white-space */
.u-ws-normal[class] { white-space: normal; }
/* width */
.u-w-0[class] { width: 0; }
.u-w-100pct[class] { width: 100%; }
.u-w-100px[class] { width: 100px; }
.u-w-106px[class] { width: 106px; }
.u-w-10pct[class] { width: 10%; }
.u-w-120px[class] { width: 120px; }
.u-w-130px[class] { width: 130px; }
.u-w-132px[class] { width: 132px; }
.u-w-140px[class] { width: 140px; }
.u-w-150px[class] { width: 150px; }
.u-w-15pct[class] { width: 15%; }
.u-w-160px[class] { width: 160px; }
.u-w-200pct[class] { width: 200%; }
.u-w-200px[class] { width: 200px; }
.u-w-20px[class] { width: 20px; }
.u-w-210px[class] { width: 210px; }
.u-w-23pct[class] { width: 23%; }
.u-w-245px[class] { width: 245px; }
.u-w-25pct[class] { width: 25%; }
.u-w-279px[class] { width: 279px; }
.u-w-300px[class] { width: 300px; }
.u-w-33p33pct[class] { width: 33.33%; }
.u-w-350px[class] { width: 350px; }
.u-w-400px[class] { width: 400px; }
.u-w-5pct[class] { width: 5%; }
.u-w-70px[class] { width: 70px; }
.u-w-75px[class] { width: 75px; }
.u-w-7pct[class] { width: 7%; }
.u-w-80px[class] { width: 80px; }
.u-w-80px-i[class] { width: 80px !important; }
.u-w-94px[class] { width: 94px; }
.u-w-95px[class] { width: 95px; }
.u-w-auto[class] { width: auto; }
/* z-index */
.u-z-0[class] { z-index: 0; }
.u-z-1[class] { z-index: 1; }
/* END UTILITIES */
