/* =====================================================================================================
   LT COMPONENTS  -  every shared look in the application, built ONLY from /Content/lt/tokens.css.

   RULES
     - Class names start with "lt-".  (Not "ui-": jQuery UI already owns ui-dialog, ui-menu, ui-tabs, ui-button ...)
     - No hex colours, no px values here.  Use var(--color-*), var(--space-*), var(--radius-*), var(--size-*) ...
       Need a value that does not exist?  Add a token to tokens.css first, then use it here.
       Only exception: @media breakpoints (CSS variables cannot be used inside a media query).
     - Need a component that does not exist?  Add it here (lt- prefix) first, then use it in the markup.
     - No dark-mode rules here: dark mode is handled entirely by tokens.css.
     - Markup gets lt- classes ADDED next to existing ones; classes/ids used by scripts are never removed.

   COLOUR MODIFIERS  (work on buttons, badges, alerts, icon boxes, stat tiles, progress)
     lt-c-primary (default)  lt-c-success  lt-c-danger  lt-c-warning  lt-c-info  lt-c-accent  lt-c-teal  lt-c-pink  lt-c-neutral
     Each modifier only sets --lt-c; every component reads --lt-c.

   STATES   lt-is-active  lt-is-disabled  lt-is-invalid  lt-is-loading

   MAP
     0  colour modifiers         5  cards                    10  modals
     1  base (opt-in .lt-scope)  6  tables + pagination      11  stat / KPI tiles
     2  buttons                  7  badges + chips           12  layout helpers
     3  form controls            8  alerts                   13  app shell      (step 1)
     4  form layout              9  tabs                     14  sign-in pages  (step 2)
   ===================================================================================================== */

/* =====================================================================================================
   0. COLOUR MODIFIERS
   ===================================================================================================== */
.lt-c-primary {
    --lt-c: var(--color-primary);
}

.lt-c-success {
    --lt-c: var(--color-success);
}

.lt-c-danger {
    --lt-c: var(--color-danger);
}

.lt-c-warning {
    --lt-c: var(--color-warning);
}

.lt-c-info {
    --lt-c: var(--color-info);
}

.lt-c-accent {
    --lt-c: var(--color-accent);
}

.lt-c-teal {
    --lt-c: var(--color-teal);
}

.lt-c-pink {
    --lt-c: var(--color-pink);
}

.lt-c-neutral {
    --lt-c: var(--color-neutral);
}

/* =====================================================================================================
   1. BASE  -  opt-in wrapper.  Global element styling still comes from the legacy CSS for now;
   put .lt-scope on a container to give its contents the token typography.
   ===================================================================================================== */
.lt-scope {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: var(--line-height);
    color: var(--color-text);
}
/* pages without the app shell (Dialog.aspx, tenant sign-up, super admin) sit on the page colour */
html:has(> body:not(.lt-shell)), body:not(.lt-shell) {
    background: var(--color-page);
}

.lt-scope a {
    color: var(--color-primary);
}

    .lt-scope a:hover, .lt-scope a:focus {
        color: var(--color-primary-hover);
    }

.lt-h1 {
    margin: 0 0 var(--space-md);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.lt-h2 {
    margin: 0 0 var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.lt-h3 {
    margin: 0 0 var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.lt-text-muted {
    color: var(--color-muted);
}

.lt-text-sm {
    font-size: var(--font-size-sm);
}

.lt-text-c {
    color: var(--lt-c, var(--color-primary));
}

.lt-divider {
    border: 0;
    border-top: var(--border-width) solid var(--color-card-border);
    margin: var(--space-lg) var(--space-0);
}

/* =====================================================================================================
   2. BUTTONS   <button class="lt-btn">  <a class="lt-btn lt-btn-outline lt-c-danger">  asp:Button CssClass="lt-btn"
   ===================================================================================================== */
.lt-btn {
    --lt-c-fill: var(--lt-c, var(--color-primary));
    --lt-c-hover: var(--color-primary-hover); /* primary darkens on hover; other colours dim (below) */
    --lt-c-hover-filter: none;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    min-height: var(--size-control);
    margin-right: var(--space-btn-between);
    margin-bottom: var(--space-btn-between);
    padding: var(--space-btn-y) var(--space-btn-x);
    letter-spacing: var(--letter-spacing-control);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-control);
    color: var(--color-on-primary);
    background-color: var(--lt-c-fill);
    border: var(--border-width) solid var(--lt-c-fill);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-btn);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-control);
}

button.lt-btn, a.lt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lt-btn[class*="lt-c-"]:not(.lt-c-primary) {
    --lt-c-hover: var(--lt-c-fill);
    --lt-c-hover-filter: var(--filter-hover);
}

.lt-btn:hover, .lt-btn:focus, .lt-btn:active {
    color: var(--color-on-primary);
    text-decoration: none;
    background-color: var(--lt-c-hover);
    border-color: var(--lt-c-hover);
    filter: var(--lt-c-hover-filter);
}

/* primary buttons (no colour modifier, not outline): transparent with a primary border and primary text at rest,
   filled primary with white text on hover (system-wide rule) */
.lt-btn:not(.lt-btn-outline):not([class*="lt-c-"]), .lt-btn.lt-c-primary:not(.lt-btn-outline) {
    color: var(--btn-primary-text);
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
    box-shadow: none;
}
    .lt-btn:not(.lt-btn-outline):not([class*="lt-c-"]):is(:hover, :focus, :active),
    .lt-btn.lt-c-primary:not(.lt-btn-outline):is(:hover, :focus, :active) {
        color: var(--btn-primary-hover-text);
        background-color: var(--btn-primary-hover-bg);
        border-color: var(--btn-primary-border);
    }
.lt-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 var(--border-width-accent) var(--color-primary-ring);
}

/* icon buttons (system-wide, works on lt-btn and old .btn):
   lt-btn-icon      = icon only. The label stays in the markup (screen readers, scripts) but is not shown; title / ToolTip = tooltip.
   lt-btn-icon-text = icon + label (Save / Cancel).
   lt-icon-add|edit|search|print|upload|save|cancel pick the glyph via ::before (<button> / <a>).
   <input> buttons cannot show ::before: their value holds the same glyph (&#x....;), they only need the icon font. */
[class*="lt-icon-"]:not(input)::before {
    display: inline-block;
    font-family: var(--font-icon);
    font-size: var(--font-size-btn-icon);
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.lt-icon-add::before { content: var(--icon-add); }
.lt-icon-edit::before { content: var(--icon-edit); }
.lt-icon-search::before { content: var(--icon-search); }
.lt-icon-print::before { content: var(--icon-print); }
.lt-icon-upload::before { content: var(--icon-upload); }
.lt-icon-save::before { content: var(--icon-save); }
.lt-icon-cancel::before { content: var(--icon-cancel); }

.lt-btn-icon {
    width: var(--size-control) !important;   /* square, like Print / Excel; beats toolbar padding rules */
    min-width: var(--size-control);
    padding-left: 0 !important;
    padding-right: 0 !important;
}
    .lt-btn-icon:not(input) {
        font-size: 0 !important;   /* hides the label text only; it stays in the page */
        letter-spacing: 0;
    }
    .lt-btn-icon > .fa {
        font-size: var(--font-size-btn-icon);   /* buttons that already carried an <i> icon */
    }
input.lt-btn-icon {
    font-family: var(--font-icon) !important;
    font-size: var(--font-size-btn-icon) !important;
}
.lt-btn-icon-text:not(input)::before {
    margin-right: var(--space-btn-icon-text);
}
input.lt-btn-icon-text {
    font-family: var(--font-icon), var(--font-family) !important;   /* glyph from the icon font, label from the normal font */
}

.lt-btn-full {
    width: 100%;
}

.lt-btn:active, .lt-btn.lt-is-active {
    box-shadow: var(--shadow-btn-active);
}

/* outline: white button, coloured on hover */
.lt-btn-outline {
    color: var(--lt-c-fill);
    background-color: var(--lt-btn-outline-bg, var(--color-btn-outline-bg));
    border-color: var(--color-border);
    box-shadow: var(--shadow-1);
}

    .lt-btn-outline:not([class*="lt-c-"]) {
        color: var(--color-text);
    }

    .lt-btn-outline:hover, .lt-btn-outline:focus, .lt-btn-outline:active, .lt-btn-outline.lt-is-active {
        color: var(--lt-c-fill);
        background-color: color-mix(in srgb, var(--lt-c-fill) var(--tint-soft), var(--color-surface));
        border-color: var(--lt-c-fill);
        filter: none;
    }

    .lt-btn-outline.lt-c-primary:hover, .lt-btn-outline:not([class*="lt-c-"]):hover {
        color: var(--color-primary);
        background-color: var(--color-primary-soft);
        border-color: var(--color-primary);
    }

/* soft: tinted background, coloured text */
.lt-btn-soft {
    color: var(--lt-c-fill);
    background-color: color-mix(in srgb, var(--lt-c-fill) var(--tint-soft), var(--color-surface));
    border-color: transparent;
    box-shadow: none;
}

    .lt-btn-soft:hover, .lt-btn-soft:focus {
        color: var(--lt-c-fill);
        background-color: color-mix(in srgb, var(--lt-c-fill) var(--tint-border), var(--color-surface));
        border-color: transparent;
        filter: none;
    }

/* ghost / link: no box until hover */
.lt-btn-ghost {
    color: var(--lt-c-fill);
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

    .lt-btn-ghost:hover, .lt-btn-ghost:focus {
        color: var(--lt-c-fill);
        background-color: color-mix(in srgb, var(--lt-c-fill) var(--tint-soft), transparent);
        border-color: transparent;
        filter: none;
    }

/* shapes + sizes */
.lt-btn-pill {
    border-radius: var(--radius-pill);
}

.lt-btn-block {
    display: flex;
    width: 100%;
}

.lt-btn-sm {
    min-height: var(--size-control-sm);
    padding: var(--space-btn-y-sm) var(--space-btn-x-sm);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-btn-sm);
}

.lt-btn-lg {
    min-height: var(--size-control-lg);
    padding: var(--space-btn-y-lg) var(--space-btn-x-lg);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-btn);
}

.lt-btn-icon {
    width: var(--size-control);
    padding-left: var(--space-0);
    padding-right: var(--space-0);
}

    .lt-btn-icon.lt-btn-sm {
        width: var(--size-control-sm);
    }

.lt-btn[disabled], .lt-btn.lt-is-disabled, fieldset[disabled] .lt-btn {
    opacity: var(--opacity-disabled);
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
    pointer-events: none;
}

.lt-btn-group {
    display: inline-flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* =====================================================================================================
   3. FORM CONTROLS   lt-input works on <input>, <select>, <textarea>, asp:TextBox, asp:DropDownList
   ===================================================================================================== */
.lt-input {
    display: block;
    width: 100%;
    height: var(--size-control);
    padding: var(--space-control-y) var(--space-control-x);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-field-bg);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-1);
    transition: var(--transition-control);
}
/* element + class: ties ui-kit "(.right_col | .modal) input[type=text]" field rules and wins by load order */
input.lt-input, select.lt-input, textarea.lt-input {
    background-color: var(--color-field-bg);
}
/* fields in an inline form row ("Session: [drop-down]") sit on the line at their own width, as Bootstrap's .form-inline .form-control */
@media (min-width: 768px) {
    .form-inline .lt-input { display: inline-block; width: auto; vertical-align: middle; }
}

.lt-input::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
}

.lt-input:hover {
    border-color: var(--color-border-hover);
}

.lt-input:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 var(--border-width-accent) var(--color-primary-ring);
}

.lt-input[disabled], .lt-input[readonly], .lt-input.lt-is-disabled {
    background-color: var(--color-surface-disabled);
    color: var(--color-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.lt-input.lt-is-invalid, .lt-input[aria-invalid="true"] {
    border-color: var(--color-danger);
}

    .lt-input.lt-is-invalid:focus, .lt-input[aria-invalid="true"]:focus {
        box-shadow: 0 0 0 var(--border-width-accent) var(--color-danger-ring);
    }

select.lt-input {
    appearance: none;
    padding-right: var(--space-3xl);
    background-image: var(--icon-select-arrow);
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
}

textarea.lt-input {
    height: auto;
    min-height: var(--size-textarea-min);
    resize: vertical;
    padding-top: var(--space-textarea-y);      /* a text area on its own has a little more room top/bottom (as today) */
    padding-bottom: var(--space-textarea-y);
}

/* a file upload in a field group: a plain file picker (no box) that fills the row at field height (as today) */
.lt-input-group > input[type="file"] {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: var(--size-control);
    margin: 0;
    padding: var(--space-control-y) 0;
    font-size: var(--font-size-md);
    line-height: var(--line-height);
}

/* a drop-down in a hidden-label group inside a dialog's form table is compact (as today; text boxes there stay full height) */
.lt-form-table .lt-input-group:has(> label) > select.lt-input {
    height: var(--size-control-sm);
    padding-top: var(--space-control-y-sm);
    padding-bottom: var(--space-control-y-sm);
    font-size: var(--font-size-sm);
}

.lt-form-table .lt-input-group:has(> label):has(> select.lt-input) > .lt-input-addon {
    height: var(--size-control);   /* the icon box keeps field height next to the compact drop-down (as today) */
}

/* a text area in a dialog's form table is more compact */
.lt-form-table textarea.lt-input {
    min-height: var(--size-textarea-min-table);
}

/* text area padding inside a normal field group (icon box + text area): like the other fields, so it lines up with the icon box */
.lt-input-group:not(:has(> label)) > textarea.lt-input {
    padding-top: var(--space-control-y);
    padding-bottom: var(--space-control-y);
}

.lt-input-sm {
    height: var(--size-control-sm);
    font-size: var(--font-size-sm);
}

.lt-input-lg {
    height: var(--size-control-lg);
    font-size: var(--font-size-lg);
}

.lt-check {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text);
    cursor: pointer;
}

    .lt-check input {
        accent-color: var(--color-primary);
    }

/* input with an icon or text add-on */
.lt-input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-bottom: var(--space-group-gap);
}

.lt-input-group:where(:not([class*="col-"])) {   /* :where keeps the old weight, so variants still override the width */
    width: 100%;
}

/* variant: stacked form (lt-form-stacked, on the old .ui-form dialog body: label above each field) - every field has the same icon,
   so the icon boxes are hidden and each field is a plain full-width box (as .ui-form does today) */
/* (only groups that also hold a label, hidden or not; a group without one keeps its icon box - as today) */
html body .lt-form-stacked .lt-input-group:has(> label) { display: block; width: 100%; }
html body .lt-form-stacked .lt-input-group:has(> label) > .lt-input-addon { display: none; }
html body .lt-form-stacked > .lt-alert { margin-bottom: var(--space-lg); }   /* validation box above the stacked fields */
html body .lt-form-stacked .lt-input-group:has(> label) > .lt-input { display: block; float: none; width: 100%; border-radius: var(--radius-xs) !important; }

/* a field group that is also a grid column (input-group col-lg-5): the column class sets its width; no float, no column padding (as Bootstrap does today) */
.lt-input-group[class*="col-"] {
    float: none;
    padding-left: 0;
    padding-right: 0;
}

    .lt-input-group > .lt-input {
        position: relative;
        z-index: 2;
        flex: 1 1 auto;
        width: 1%;
        min-width: 0;
        margin: 0;
    }
        /* drop-downs, text areas and check-box boxes overlap the icon box by one border (as today); text boxes do not */
        .lt-input-group > .lt-input:not(:first-child):not(input) {
            margin-left: calc(var(--border-width) * -1);
        }
        /* corners only on the outside of the group; !important beats be-theme s.15 (every field 4px !important) */
        .lt-input-group > .lt-input:not(:first-child) {
            border-top-left-radius: var(--radius-0) !important;
            border-bottom-left-radius: var(--radius-0) !important;
        }

        .lt-input-group > .lt-input:not(:last-child) {
            border-top-right-radius: var(--radius-0) !important;
            border-bottom-right-radius: var(--radius-0) !important;
        }
    /* variant: the group contains a label (a hidden label before the icon box, or a label used as the field itself, e.g. a
       check-box field) - these groups keep today's table layout, where the field keeps its left corners and does not overlap the icon box */
    .lt-input-group > label:first-child ~ .lt-input:not(:first-child),
    .lt-input-group:has(> label) > .lt-input:not(:first-child),
    .lt-input-group:has(> label) > .lt-input:not(:first-child):not(input) {
        margin-left: 0;
        border-top-left-radius: var(--radius-xs) !important;
        border-bottom-left-radius: var(--radius-xs) !important;
    }
    /* same variant keeps today's table layout (be-theme only turns label-free groups into flex rows) */
    .lt-input-group:has(> label) {
        display: table;
        align-items: normal;
        width: auto;   /* like the old table group: sizes to its content (a full-width field still fills the column) */
    }

        .lt-input-group:has(> label) > .lt-input {
            float: left;
            flex-grow: 0;
            width: 100%;
        }

        .lt-input-group:has(> label) > textarea.lt-input {
            padding-top: var(--space-textarea-y);
            padding-bottom: var(--space-textarea-y);
        }

        .lt-input-group:has(> label) > .lt-input-addon {
            display: table-cell;
            width: 1%;
            align-items: normal;
            justify-content: normal;
            min-height: 0;
            line-height: var(--line-height);
        }

            .lt-input-group:has(> label) > .lt-input-addon > .fa {
                display: inline-block;
                min-width: 0;
            }

.lt-input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: var(--size-addon-min);
    vertical-align: middle;
    min-height: var(--size-control);
    padding: var(--space-0) var(--space-control-x);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: var(--color-addon-text);
    background-color: var(--color-addon-bg);
    border: var(--border-width) solid var(--color-border);
}

    .lt-input-addon:first-child {
        border-right: 0;
        border-radius: var(--radius-xs) var(--radius-0) var(--radius-0) var(--radius-xs);
    }
    /* a check box / radio inside the icon box sits on the box's centre line (as Bootstrap's .input-group-addon input) */
    .lt-input-addon input[type="checkbox"], .lt-input-addon input[type="radio"] {
        margin-top: 0;
    }

    .lt-input-addon:last-child {
        border-left: 0;
        border-radius: var(--radius-0) var(--radius-xs) var(--radius-xs) var(--radius-0);
    }
/* validation state set by js.helper.js (has-error on the field's parent) */
.has-error > .lt-input, .lt-input.lt-is-invalid {
    border-color: var(--color-field-error-border);
    box-shadow: 0 0 0 var(--border-width-accent) var(--color-danger-ring);
}

.has-error > .lt-input-addon {
    color: var(--color-field-error-addon-text);
    background-color: var(--color-field-error-addon-bg);
    border-color: var(--color-field-error-addon-border);
}

/* =====================================================================================================
   4. FORM LAYOUT   <div class="lt-form-grid lt-cols-2"><div class="lt-field"><label class="lt-label">..</label><input class="lt-input"></div></div>
   ===================================================================================================== */
.lt-form-grid {
    display: grid;
    grid-template-columns: repeat(var(--lt-cols, 2), minmax(0, 1fr));
    gap: var(--space-md) var(--space-xl);
    margin: var(--space-0) var(--space-0) var(--space-md);
}

.lt-cols-1 {
    --lt-cols: 1;
}

.lt-cols-2 {
    --lt-cols: 2;
}

.lt-cols-3 {
    --lt-cols: 3;
}

.lt-cols-4 {
    --lt-cols: 4;
}

.lt-field {
    min-width: 0;
}

.lt-field-full {
    grid-column: 1 / -1;
}

.lt-label {
    display: block;
    margin: var(--space-0) var(--space-0) var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-label);
}

.lt-required::after, .lt-field:has([required]) > .lt-label::after {
    content: " *";
    color: var(--color-danger);
}

.lt-help {
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

.lt-error {
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-danger);
}

.lt-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xl) var(--space-0) var(--space-md);
    padding-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-caps);
    text-transform: uppercase;
    color: var(--color-primary);
    border-bottom: var(--border-width) solid var(--color-card-border);
}

    .lt-section-title:first-child {
        margin-top: var(--space-xs);
    }

.lt-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* list-screen filter bar: controls in one wrapping row */
.lt-toolbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

    .lt-toolbar > .lt-field {
        flex: 1 1 var(--size-filter-field);
    }

.lt-toolbar-end {
    margin-left: auto;
    display: flex;
    gap: var(--space-sm);
}

/* =====================================================================================================
   5. CARDS
   ===================================================================================================== */
.lt-card {
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-xl);
}

.lt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-card);
    border-bottom: var(--border-width) solid var(--color-card-border);
}

.lt-card-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.lt-card-subtitle {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

.lt-card-body {
    padding: var(--space-card);
}

.lt-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-card);
    background: var(--color-surface-soft);
    border-top: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-0) var(--radius-0) var(--radius-lg) var(--radius-lg);
}

.lt-card-flat {
    box-shadow: none;
}

.lt-card-soft {
    background: var(--color-surface-soft);
}

/* =====================================================================================================
   6. TABLES + PAGINATION   <div class="lt-table-wrap"><table class="lt-table lt-table-hover">
   ===================================================================================================== */
.lt-table-wrap {
    overflow: auto;
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-table-border);
    border-radius: var(--radius-md);
}
/* the app's data table: centred, capitalised cells; small uppercase headers.
   Header/cell rules start with "html body" to outrank ui-kit grid rules keyed on .shared-list-grid (master-shell.js). */
.lt-table {
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--space-table-bottom);
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--color-table-bg);
    color: var(--color-text);
    font-size: var(--font-size-md);
}

    .lt-table > thead {
        background: var(--color-table-head);
        color: var(--color-table-head-text);
    }

html body .lt-table > thead > tr > th {
    padding: var(--space-md) var(--space-md);
    background: var(--color-table-head);
    color: var(--color-table-head-text);
    font-size: var(--font-size-2xs);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-table);
    letter-spacing: var(--letter-spacing-table-head);
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    border-top: 0;
    border-bottom: var(--border-width) solid var(--color-table-border);
    cursor: pointer;
}

.lt-table > tbody > tr > td, .lt-table > tfoot > tr > td {
    padding: var(--space-cell-y) var(--space-cell-x);
    border-top: var(--border-width) solid var(--color-table-row-border);
    font-size: var(--font-size-md);
    line-height: var(--line-height-table);
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    transition: background-color var(--motion-fast);
}

.lt-table > tbody > tr:first-child > td {
    border-top: 0;
}

.lt-table > tfoot > tr > td {
    background: var(--color-table-head);
    font-weight: var(--font-weight-semibold);
    vertical-align: top;
    text-transform: none;
}

.lt-table-striped > tbody > tr:nth-of-type(odd) {
    background: var(--color-table-stripe);
}

.lt-table-hover > tbody > tr:hover > td {
    background: var(--color-table-row-hover);
}

.lt-table > tbody > tr.lt-is-active > td {
    background: var(--color-primary-soft);
}

.lt-table > tbody > tr.info > td {
    background: var(--color-row-selected);
}
/* "info" = row being edited (set by setCurrentRowColor) */
@media (max-width: 767px) { /* narrow screens: grid cells stay on one line, the wrapper scrolls sideways */
    .lt-table-wrap > .lt-table > thead > tr > th, .lt-table-wrap > .lt-table > tbody > tr > td, .lt-table-wrap > .lt-table > tfoot > tr > td {
        white-space: nowrap;
    }
}

.lt-table-compact > thead > tr > th, .lt-table-compact > tbody > tr > td {
    padding: var(--space-sm) var(--space-sm);
}

.lt-cell-center {
    text-align: center;
}

.lt-cell-end {
    text-align: right;
}

.lt-cell-actions {
    white-space: nowrap;
    width: 1%;
}

.lt-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-cell-x);
    background: var(--color-surface-soft);
    border-top: var(--border-width) solid var(--color-table-border);
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

.lt-empty {
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    color: var(--color-muted);
}

.lt-pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lt-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--size-pagination);
    height: var(--size-pagination);
    padding: var(--space-0) var(--space-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-label);
    text-decoration: none;
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-control);
}

    .lt-page:hover {
        color: var(--color-primary);
        background: var(--color-primary-soft);
        border-color: var(--color-primary);
        text-decoration: none;
    }

    .lt-page.lt-is-active {
        color: var(--color-on-primary);
        background: var(--color-primary);
        border-color: var(--color-primary);
    }

    .lt-page.lt-is-disabled {
        color: var(--color-placeholder);
        background: var(--color-surface-disabled);
        pointer-events: none;
    }

/* =====================================================================================================
   7. BADGES + CHIPS   <span class="lt-badge lt-c-success">Paid</span>
   ===================================================================================================== */
.lt-badge {
    --lt-c-fill: var(--lt-c, var(--color-primary));
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-2xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height);
    color: var(--lt-c-fill);
    background: color-mix(in srgb, var(--lt-c-fill) var(--tint-soft), var(--color-surface));
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.lt-badge-solid {
    color: var(--color-on-primary);
    background: var(--lt-c-fill);
}

.lt-badge-dot::before {
    content: "";
    width: var(--space-sm);
    height: var(--space-sm);
    border-radius: var(--radius-round);
    background: currentColor;
}

.lt-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--size-control-sm);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-pill);
}

/* coloured square / circle behind an icon (menu items, tiles, list rows) */
.lt-icon-box {
    --lt-c-fill: var(--lt-c, var(--color-primary));
    display: inline-grid;
    place-items: center;
    flex: none;
    width: var(--size-icon-box);
    height: var(--size-icon-box);
    color: var(--lt-c-fill);
    background: color-mix(in srgb, var(--lt-c-fill) var(--tint-soft), var(--color-surface));
    border-radius: var(--radius-sm);
}

.lt-icon-box-lg {
    width: var(--size-icon-box-lg);
    height: var(--size-icon-box-lg);
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
}

.lt-avatar {
    width: var(--size-avatar);
    height: var(--size-avatar);
    border-radius: var(--radius-round);
    object-fit: cover;
    background: var(--color-surface);
}

/* =====================================================================================================
   8. ALERTS   <div class="lt-alert lt-c-danger"><i class="fa fa-warning"></i> Message</div>
   ===================================================================================================== */
/* status alerts use their own soft colour sets (tokens alert-*); other lt-c-* colours get a computed tint */
.lt-alert {
    --lt-c-fill: var(--lt-c, var(--color-info));
    --lt-alert-bg: color-mix(in srgb, var(--lt-c-fill) var(--tint-soft), var(--color-surface));
    --lt-alert-border: color-mix(in srgb, var(--lt-c-fill) var(--tint-border), var(--color-surface));
    --lt-alert-text: var(--color-text);
    --lt-alert-icon: var(--lt-c-fill);
    display: block;
    margin: 0 0 var(--space-xl);
    padding: var(--alert-padding);
    font-size: var(--font-size-sm-plus);
    line-height: var(--line-height);
    color: var(--lt-alert-text);
    background: var(--lt-alert-bg);
    border: var(--border-width) solid var(--lt-alert-border);
    border-radius: var(--radius-md);
    box-shadow: none;
}

    .lt-alert, .lt-alert.lt-c-info {
        --lt-alert-bg: var(--alert-info-bg);
        --lt-alert-border: var(--alert-info-border);
        --lt-alert-text: var(--alert-info-text);
        --lt-alert-icon: var(--alert-info-icon);
    }

        .lt-alert.lt-c-success {
            --lt-alert-bg: var(--alert-success-bg);
            --lt-alert-border: var(--alert-success-border);
            --lt-alert-text: var(--alert-success-text);
            --lt-alert-icon: var(--alert-success-icon);
        }

        .lt-alert.lt-c-warning {
            --lt-alert-bg: var(--alert-warning-bg);
            --lt-alert-border: var(--alert-warning-border);
            --lt-alert-text: var(--alert-warning-text);
            --lt-alert-icon: var(--alert-warning-icon);
        }

        .lt-alert.lt-c-danger {
            --lt-alert-bg: var(--alert-danger-bg);
            --lt-alert-border: var(--alert-danger-border);
            --lt-alert-text: var(--alert-danger-text);
            --lt-alert-icon: var(--alert-danger-icon);
        }

        .lt-alert > .fa:first-child, .lt-alert > i:first-child {
            margin-right: var(--alert-icon-gap);
            opacity: var(--opacity-icon);
            color: var(--lt-alert-icon);
        }

.lt-alert-title {
    display: block;
    font-weight: var(--font-weight-semibold);
}

/* =====================================================================================================
   9. TABS   <ul class="lt-tabs"><li><a class="lt-tab lt-is-active">..</a></li></ul>
   ===================================================================================================== */
.lt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-0) var(--space-0) var(--space-lg);
    padding: 0;
    list-style: none;
    border-bottom: var(--border-width) solid var(--color-card-border);
}

.lt-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: var(--border-width-strong) solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) var(--radius-0) var(--radius-0);
    cursor: pointer;
    transition: var(--transition-control);
}

    .lt-tab:hover {
        color: var(--color-primary);
        background: var(--color-primary-soft);
        text-decoration: none;
    }

    .lt-tab.lt-is-active {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
    }

/* segmented / pill switch (Dashboard | Modules style) */
.lt-segment {
    display: inline-flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-pill);
}

.lt-segment-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-muted);
    text-decoration: none;
    border: 0;
    background: transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-control);
}

    .lt-segment-item:hover {
        color: var(--color-primary);
        background: var(--color-primary-soft);
        text-decoration: none;
    }

    .lt-segment-item.lt-is-active {
        color: var(--color-on-primary);
        background: var(--color-primary);
    }

/* =====================================================================================================
   10. MODALS  -  classes for the inside of a Bootstrap / jQuery UI dialog (the plugin keeps its own classes)
   ===================================================================================================== */
/* lt-modal on .modal-content, lt-modal-header on .modal-header (the Bootstrap classes stay for the plugin) */
.lt-modal {
    margin-bottom: var(--space-xl);
    background: var(--color-surface);
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    overflow: hidden;
}

.lt-modal-header {
    padding: var(--modal-header-padding);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    background: var(--color-surface-soft);
    border-bottom: var(--border-width) solid var(--color-card-border);
}

.lt-modal-title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.lt-modal-body {
    padding: var(--space-card);
}
/* popup page (Dialog.aspx, shown in an iframe inside a modal): in dark mode it sits on the modal's surface */
html[data-theme="dark"] body.lt-popup-page { background: var(--color-surface); color: var(--color-text); }
/* footer bar: lt-modal-footer on .modal-footer, lt-modal-actions on the (class-less) div that holds the buttons */
.lt-modal-footer {
    display: flex; justify-content: flex-end; align-items: center; gap: var(--modal-actions-gap);
    padding: var(--modal-footer-padding); background: var(--color-surface-soft);
    border-top: var(--border-width) solid var(--color-card-border); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.lt-modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--modal-actions-gap); width: 100%; }
/* nested holders (holder > holder > buttons): both size to their buttons, as today */
.lt-modal-footer > .lt-modal-actions:has(> .lt-modal-actions), .lt-modal-actions > .lt-modal-actions { width: auto; align-items: normal; }
.lt-btn-wide { float: none; width: auto; min-width: var(--size-btn-wide); margin: 0; }
button.lt-btn.lt-btn-wide { display: inline-block; align-items: normal; justify-content: normal; }   /* footer <button>s lay out like the <input> buttons next to them (as today) */

.lt-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--modal-actions-gap);
    width: 100%;
}

.lt-btn-wide {
    float: none;
    width: auto;
    min-width: var(--size-btn-wide);
    margin: 0;
}

.lt-modal-footer .lt-btn-outline {
    --lt-btn-outline-bg: var(--color-btn-outline-footer-bg);
}
/* footer Cancel keeps the plain surface in dark mode */

/* =====================================================================================================
   11. STAT / KPI TILES   <div class="lt-stat lt-c-success"><span class="lt-icon-box"><i class="fa fa-money"></i></span>
                              <div><div class="lt-stat-value">1,240</div><div class="lt-stat-label">Fee collected</div></div></div>
   ===================================================================================================== */
.lt-stat {
    --lt-c-fill: var(--lt-c, var(--color-primary));
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-lg);
}

    .lt-stat .lt-icon-box {
        --lt-c: var(--lt-c-fill);
        width: var(--size-icon-box-lg);
        height: var(--size-icon-box-lg);
        font-size: var(--font-size-xl);
        border-radius: var(--radius-md);
    }

.lt-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
}

.lt-stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

.lt-stat-trend {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--lt-c-fill);
}

.lt-progress {
    height: var(--space-sm);
    background: var(--color-surface-disabled);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.lt-progress-bar {
    height: 100%;
    background: var(--lt-c, var(--color-primary));
    border-radius: var(--radius-pill);
    transition: width var(--motion-base);
}

/* =====================================================================================================
   12. LAYOUT HELPERS
   ===================================================================================================== */
.lt-stack {
    display: flex;
    flex-direction: column;
    gap: var(--lt-gap, var(--space-md));
}

.lt-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--lt-gap, var(--space-md));
}

.lt-row-between {
    justify-content: space-between;
}

.lt-row-end {
    justify-content: flex-end;
}

.lt-grid {
    display: grid;
    grid-template-columns: repeat(var(--lt-cols, 4), minmax(0, 1fr));
    gap: var(--lt-gap, var(--space-lg));
}

.lt-gap-sm {
    --lt-gap: var(--space-sm);
}

.lt-gap-lg {
    --lt-gap: var(--space-lg);
}

.lt-gap-xl {
    --lt-gap: var(--space-xl);
}

.lt-grow {
    flex: 1;
    min-width: 0;
}

.lt-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    display: grid;
    place-items: center;
    background: var(--color-overlay);
}

.lt-sr-only {
    position: absolute;
    width: var(--border-width);
    height: var(--border-width);
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =====================================================================================================
   13. APP SHELL  (Site.Master)  -  frame, sidebar, top bar, mode buttons, content card, footer.

   Every rule starts with .lt-shell (class on <body>) so it outranks the Gentelella vendor theme.
   STATE CLASSES set by scripts - read here, never renamed:
     body: nav-md / nav-sm (expanded / collapsed sidebar, custom.js), be-dash (dashboard pages, master-shell.js)
     menu: has-submenu, submenu-open, current-page, active, search-open (master-shell.js / custom.js)
     top bar: is-offline (online chip), btnprimaryActive (current mode button), hidden
   MARKUP WRITTEN BY master-shell.js (menu items, search results, notifications) is styled through its
   lt- container, using the element classes that script writes (menu-icon, child_menu, be-sr-item, be-notif-item ...).
   !important IS USED ONLY WHERE SOMETHING ELSE FORCES IT, and each one is marked "beats ...":
     - inline styles written by custom.js (content min-height),
     - !important rules in vendor / legacy CSS that stays loaded (Gentelella custom.min.css, Theme.css, style.css).
   Selectors that include .container.body (and :is(.nav-md, .nav-sm)) are there to tie or outrank Gentelella layout rules.
   ===================================================================================================== */

/* ---- 13.1 frame ----------------------------------------------------------------------------------- */
html:has(> body.lt-shell), body.lt-shell,
.lt-shell .container.body, .lt-shell .main_container {
    background: var(--color-shell-frame);
}

body.lt-shell {
    color: var(--color-text);
    font: var(--font-size-md) / var(--line-height) var(--font-family);
}

/* ---- 13.2 sidebar column -------------------------------------------------------------------------- */
.lt-shell:is(.nav-md, .nav-sm) .container.body .lt-sidebar { /* 5 classes: ties Gentelella ".nav-md .container.body .col-md-3.left_col" and wins by load order */
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 0;
    width: var(--size-sidebar);
    background: var(--color-shell-frame);
    box-shadow: none;
    z-index: var(--z-sidebar);
}

.lt-shell.nav-sm .container.body .lt-sidebar {
    width: var(--size-sidebar-collapsed);
}

.lt-shell .lt-sidebar-scroll {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    scrollbar-width: none;
}

    .lt-shell .lt-sidebar-scroll::-webkit-scrollbar {
        display: none;
    }

.lt-shell .lt-sidebar-inner {
    padding: var(--shell-sidebar-padding);
}

/* brand row: logo + school name + collapse button */
.lt-shell .lt-brand {
    display: flex;
    align-items: center;
    gap: var(--shell-gap);
    padding: var(--shell-brand-padding);
    margin-bottom: var(--space-sm);
    border-bottom: var(--border-width) solid var(--color-card-border);
}

.lt-shell .lt-brand-logo {
    margin: 0;
    padding: 0;
    flex: none;
}

    .lt-shell .lt-brand-logo img {
        display: block;
        width: var(--size-avatar);
        height: var(--size-avatar);
        max-width: none;
        object-fit: cover;
        border: 0;
        border-radius: var(--radius-round);
        background: var(--color-surface);
        box-shadow: 0 0 0 var(--border-width-strong) var(--color-surface);
    }

.lt-shell .lt-brand-text {
    flex: 1;
    min-width: 0;
    line-height: var(--line-height-tight);
}

.lt-shell .lt-brand-name {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lt-shell .lt-brand-sub {
    display: block;
    margin-top: var(--space-2xs);
    font-size: var(--font-size-xs);
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lt-shell.nav-sm .lt-brand {
    flex-direction: column;
    padding: var(--shell-brand-padding-collapsed);
}

.lt-shell.nav-sm .lt-brand-text {
    display: none;
}

.lt-shell .lt-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: var(--space-sm);
    width: var(--size-sidebar-toggle);
    height: var(--size-sidebar-toggle);
    min-height: var(--size-sidebar-toggle);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-icon);
    font-size: var(--font-size-xs-plus);
    font-weight: var(--font-weight-medium);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition-control);
}

    .lt-shell .lt-sidebar-toggle:hover {
        background: var(--color-shell-hover);
        color: var(--color-primary);
    }

    .lt-shell .lt-sidebar-toggle .fa {
        width: auto;
        font-size: var(--font-size-lg-plus);
    }

    .lt-shell .lt-sidebar-toggle:focus-visible {
        outline: var(--border-width-strong) solid var(--color-primary);
        outline-offset: var(--border-width);
    }

/* ---- 13.3 side menu  (<ul class="lt-sidenav">, items written by master-shell.js) ------------------ */
.lt-shell .lt-sidenav {
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

    .lt-shell .lt-sidenav li {
        list-style: none;
        padding: 0;
        border: 0;
        background: transparent;
    }

        .lt-shell .lt-sidenav li:hover, .lt-shell .lt-sidenav li.active {
            background: transparent;
        }
        /* beats Gentelella ".nav.child_menu li:hover" tint */
        .lt-shell .lt-sidenav li > a {
            display: flex;
            align-items: center;
            gap: var(--shell-nav-item-gap);
            min-height: 0;
            margin: 0 0 var(--space-2xs);
            padding: var(--shell-nav-item-padding);
            font-size: var(--font-size-md);
            font-weight: var(--font-weight-medium);
            text-align: left;
            text-decoration: none;
            text-shadow: none;
            color: var(--color-text);
            background: transparent;
            border: 0;
            border-radius: var(--radius-nav);
            box-shadow: none;
            letter-spacing: var(--letter-spacing-control);
            transition: background-color var(--motion-fast), color var(--motion-fast);
        }

            .lt-shell .lt-sidenav li > a:hover {
                background: var(--color-shell-hover);
                color: var(--color-text);
            }

            .lt-shell .lt-sidenav li > a:focus:not(:hover) {
                background: transparent;
            }

            .lt-shell .lt-sidenav li > a:focus-visible,
            .lt-shell .lt-sidenav button:focus-visible {
                outline: var(--border-width-strong) solid var(--color-primary);
                outline-offset: var(--border-width);
            }

    .lt-shell .lt-sidenav > li.submenu-open > a,
    .lt-shell .lt-sidenav > li.current-page > a,
    .lt-shell .lt-sidenav > li.current-page > a:hover {
        background: var(--color-shell-active);
        color: var(--color-text-strong);
        font-weight: var(--font-weight-semibold);
    }

    /* module icon: coloured square; master-shell.js sets the module colour as style="--c: ..." */
    .lt-shell .lt-sidenav > li > a .menu-icon {
        display: inline-grid;
        place-items: center;
        flex: 0 0 var(--size-icon-box);
        width: var(--size-icon-box);
        height: var(--size-icon-box);
        margin: 0;
        font-size: var(--font-size-lg);
        text-align: center;
        border-radius: var(--radius-icon);
        color: color-mix(in srgb, var(--c, var(--color-shell-icon)) var(--tint-icon-text), var(--color-on-primary));
        background: color-mix(in srgb, var(--c, var(--color-primary)) var(--tint-icon), var(--color-surface));
    }

    .lt-shell .lt-sidenav li > a:hover .menu-icon:not([style*="--c"]),
    .lt-shell .lt-sidenav li.submenu-open > a .menu-icon:not([style*="--c"]),
    .lt-shell .lt-sidenav li.current-page > a .menu-icon:not([style*="--c"]) {
        color: var(--color-shell-accent);
    }

    .lt-shell .lt-sidenav > li > a .menu-label {
        flex: 1;
        min-width: 0;
    }

    .lt-shell .lt-sidenav .menu-chevron {
        flex: 0 0 var(--size-chevron);
        width: var(--size-chevron);
        text-align: center;
        margin-left: auto;
        font-size: var(--font-size-2xs);
        color: var(--color-muted);
        transition: transform var(--motion-base);
    }

    .lt-shell .lt-sidenav li.submenu-open > a > .menu-chevron {
        transform: rotate(180deg);
    }

    /* nested levels (shown/hidden by the script): thin guide line */
    .lt-shell .lt-sidenav ul.child_menu {
        display: none;
        margin: 0;
        padding: 0;
        background: transparent;
    }

.lt-shell.nav-md .lt-sidenav ul.child_menu {
    margin: var(--shell-nav-child-margin);
    padding: 0 0 0 var(--space-md);
    border-left: var(--border-width-strong) solid var(--color-card-border);
    border-radius: 0;
}

    .lt-shell.nav-md .lt-sidenav ul.child_menu ul.child_menu {
        margin: var(--shell-nav-child-nested-margin);
    }

.lt-shell .lt-sidenav ul.child_menu > li > a {
    min-height: var(--size-nav-child);
    gap: var(--shell-gap);
    margin: 0;
    padding: var(--shell-nav-child-padding);
    border-radius: var(--radius-icon);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    color: var(--color-muted);
}

.lt-shell .lt-sidenav ul.child_menu > li.has-submenu > a {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
}

.lt-shell .lt-sidenav ul.child_menu > li > a:hover {
    color: var(--color-text);
}

.lt-shell .lt-sidenav ul.child_menu li.current-page > a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    background: transparent;
}
.nav li.current-page:hover, .nav li li li.current-page {
    background: transparent !important;
}
/* beats Gentelella ".nav.child_menu > li.current-page a:hover { background: #fff !important; color: ... !important }" */
.lt-shell .lt-sidenav ul.child_menu li.current-page > a:hover {
    color: var(--color-primary) !important;
    font-weight: var(--font-weight-semibold);
    background: transparent !important;
}

.lt-shell .lt-sidenav ul.child_menu li::before, .lt-shell .lt-sidenav ul.child_menu li::after, .lt-shell .lt-sidenav ul.child_menu::after {
    display: none;
}

.lt-shell .lt-sidenav .menu-flyout-heading {
    display: none;
}

/* collapsed sidebar: icons only, sub-menus open as floating flyouts (custom.js sets top/left/width) */
.lt-shell.nav-sm .lt-sidenav > li > a {
    display: grid;
    place-items: center;
    gap: 0;
    width: var(--size-nav-collapsed-item);
    min-height: var(--size-nav-collapsed-item-h);
    margin: 0 auto var(--space-xs);
    padding: var(--shell-nav-collapsed-padding);
}

    .lt-shell.nav-sm .lt-sidenav > li > a > .menu-label,
    .lt-shell.nav-sm .lt-sidenav > li > a > .menu-chevron {
        display: none;
    }

.lt-shell.nav-sm .lt-sidenav > li.has-submenu > ul.child_menu {
    position: fixed;
    top: 0;
    left: var(--size-sidebar-collapsed);
    width: var(--size-flyout);
    max-height: calc(100vh - var(--space-lg));
    overflow: auto;
    scrollbar-width: none;
    padding: var(--shell-flyout-padding);
    background: var(--color-shell-flyout);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-nav);
    box-shadow: var(--shadow-menu);
    z-index: var(--z-flyout);
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu ul.child_menu {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu li {
    padding: 0;
    border: 0;
}
/* beats Gentelella flyout li padding / active border */
.lt-shell.nav-sm .lt-sidenav ul.child_menu .menu-label {
    display: block;
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu .menu-chevron {
    display: inline-block;
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu > li > a {
    padding: var(--shell-flyout-item-padding);
    font-size: var(--font-size-xs-plus);
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu ul.child_menu > li > a {
    padding-left: var(--shell-flyout-indent-2);
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu ul.child_menu ul.child_menu > li > a {
    padding-left: var(--shell-flyout-indent-3);
}

.lt-shell.nav-sm .lt-sidenav ul.child_menu li.menu-flyout-heading { /* li. + ul.child_menu: outranks the flyout li padding reset above */
    display: block;
    padding: var(--shell-flyout-heading-padding);
    margin-bottom: var(--shell-hairline-gap);
    font-size: var(--font-size-sm-plus);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-heading);
    color: var(--color-text);
    border-bottom: var(--border-width) solid var(--color-card-border);
}

/* menu search (first <li> written by master-shell.js) */
.lt-shell .lt-sidenav .nav-item-search {
    position: relative;
    margin: 0;
    padding: 0 0 var(--space-md);
}

.lt-shell.nav-md .lt-sidenav .nav-item-search {
    padding-bottom: var(--space-sm);
}

.lt-shell .lt-sidenav .sidebar-search-toggle {
    display: none;
}

.lt-shell .lt-sidenav .search-wrap,
.lt-shell.nav-md .lt-sidenav .search-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
}
/* beats Theme.css inline-block */
.lt-shell .lt-sidenav .search-input-icon {
    display: block;
    position: absolute;
    top: 50%;
    left: var(--space-md);
    transform: translateY(-50%);
    width: var(--font-size-lg-plus);
    margin: 0;
    font-size: var(--font-size-lg-plus);
    color: var(--color-muted);
    pointer-events: none;
}

.lt-shell .lt-sidenav .b-auto-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: var(--size-control);
    padding: var(--shell-search-input-padding);
    font-size: var(--font-size-xs-plus);
    color: var(--color-text);
    background: var(--color-surface);
    border: 0;
    border-radius: var(--radius-xs);
    box-shadow: none; /* borderless box on the frame */
}

    .lt-shell .lt-sidenav .b-auto-input:focus {
        outline: 0;
        box-shadow: 0 0 0 var(--border-width-accent) var(--color-primary-ring);
    }

.lt-shell .lt-sidenav .b-auto-result {
    display: none;
    position: absolute;
    top: calc(var(--size-control) + var(--space-xs));
    left: 0;
    right: 0;
    margin: 0;
    padding: var(--shell-menu-padding);
    max-height: var(--size-menu-results-h);
    overflow: auto;
    scrollbar-width: none;
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-menu);
    z-index: var(--z-flyout-search);
}

.lt-shell.nav-md .lt-sidenav .b-auto-result {
    width: calc(100% - (var(--space-md) * 2));
}

.lt-shell .lt-sidenav .b-auto-result > li,
.lt-shell .lt-sidenav .b-auto-result > li > a {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    white-space: normal;
}
/* style.css sets 500px rows */
.lt-shell .lt-sidenav .b-auto-result > li {
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

    .lt-shell .lt-sidenav .b-auto-result > li > a {
        display: block;
        min-height: 0;
        margin: 0;
        padding: var(--shell-menu-item-padding);
        color: var(--color-text);
        background: transparent;
        border: 0;
        border-radius: var(--radius-icon);
        box-shadow: none;
    }

        .lt-shell .lt-sidenav .b-auto-result > li.active > a,
        .lt-shell .lt-sidenav .b-auto-result > li > a:hover {
            background: var(--color-shell-active);
            color: var(--color-text);
        }

.lt-shell .lt-sidenav .search-result-label {
    display: block;
    font-size: var(--font-size-sm-plus);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    white-space: normal;
}

    .lt-shell .lt-sidenav .search-result-label b {
        color: var(--color-primary);
    }

.lt-shell .lt-sidenav .search-result-path {
    display: block;
    margin-top: var(--shell-hairline-gap);
    font-size: var(--font-size-xs);
    line-height: var(--line-height);
    color: var(--color-muted);
    white-space: normal;
    overflow-wrap: anywhere;
}

.lt-shell .lt-sidenav .search-empty {
    padding: var(--space-md);
    font-size: var(--font-size-xs-plus);
    color: var(--color-muted);
}

/* collapsed: search becomes an icon that opens a floating box (custom.js positions it) */
.lt-shell.nav-sm .lt-sidenav .sidebar-search-toggle {
    display: grid;
    place-items: center;
    width: var(--size-sidebar-search-toggle);
    height: var(--size-sidebar-search-toggle);
    margin: 0 auto var(--shell-menu-padding);
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-muted);
    cursor: pointer;
}

    .lt-shell.nav-sm .lt-sidenav .sidebar-search-toggle i {
        margin: 0;
        font-size: var(--font-size-xl);
    }

.lt-shell.nav-sm .lt-sidenav .search-wrap {
    display: none;
    position: fixed;
    width: var(--size-flyout-search);
    padding: 0;
    background: transparent;
    z-index: var(--z-flyout-search);
}

.lt-shell.nav-sm .lt-sidenav .nav-item-search.search-open > .search-wrap {
    display: block;
}

.lt-shell.nav-sm .lt-sidenav .b-auto-result {
    position: fixed;
    right: auto;
    width: var(--size-flyout-search);
}

/* ---- 13.4 main panel: top bar + page in one rounded card ----------------------------------------- */
.lt-shell .lt-main {
    position: relative;
    min-width: 0;
    margin: var(--shell-gap) var(--shell-gap) var(--shell-gap) var(--size-sidebar);
    padding: var(--shell-main-padding);
    min-height: calc(100vh - (var(--shell-gap) * 2));
    display: flex; /* column: header, page, footer - the page area takes the spare height so the footer sits at the bottom */
    flex-direction: column;
    background: var(--color-page);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-xl);
    transition: margin-left var(--motion-base);
}

.lt-shell.nav-sm .lt-main {
    margin-left: var(--size-sidebar-collapsed);
}

.lt-shell .lt-main > .lt-header {
    float: none;
    display: block;
    margin-left: 0;
    width: auto;
}

/* ---- 13.5 top bar --------------------------------------------------------------------------------- */
.lt-shell .lt-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    float: none;
    width: auto;
    margin: 0;
    padding: var(--shell-topbar-padding);
    background: var(--color-topbar);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

/* global search */
.lt-shell .lt-search {
    position: relative;
    flex: 1;
    min-width: var(--size-search-min);
    display: flex;
    align-items: center;
    gap: var(--shell-gap);
    margin: 0;
    padding: var(--shell-search-padding);
    font-weight: var(--font-weight-regular);
    color: var(--color-muted);
}

.lt-shell .lt-search-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--size-icon-box);
    height: var(--size-icon-box);
    border-radius: var(--radius-icon);
    font-size: var(--font-size-md-plus);
    color: var(--color-on-primary);
    background: var(--color-primary);
}

.lt-shell .lt-search-input {
    flex: 1;
    min-width: 0;
    height: var(--size-search-input);
    padding: 0;
    outline: 0;
    font-size: var(--font-size-md);
    color: var(--color-text);
    border: 0;
    background: transparent;
    box-shadow: none;
}

    .lt-shell .lt-search-input::-webkit-search-cancel-button {
        cursor: pointer;
    }

.lt-shell .lt-kbd {
    flex: none;
    padding: var(--shell-kbd-padding);
    font-size: var(--font-size-2xs);
    color: var(--color-muted);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-2xs);
}

/* search results panel (items written by master-shell.js: be-sr-head, be-sr-item, be-sr-ic, be-sr-txt, be-sr-note) */
.lt-shell .lt-search-results {
    position: absolute;
    z-index: var(--z-search-results);
    left: var(--shell-topbar-padding);
    top: calc(100% + var(--shell-menu-padding));
    width: min(var(--size-search-results), calc(100% - (var(--shell-topbar-padding) * 2)));
    max-height: min(70vh, var(--size-search-results-h));
    overflow: auto;
    padding: var(--shell-menu-padding);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-popover);
    box-shadow: var(--shadow-menu);
}

    .lt-shell .lt-search-results[hidden] {
        display: none;
    }

    .lt-shell .lt-search-results .be-sr-head {
        padding: var(--shell-result-head-padding);
        font-size: var(--font-size-3xs);
        font-weight: var(--font-weight-semibold);
        letter-spacing: var(--letter-spacing-wide);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .lt-shell .lt-search-results .be-sr-item {
        display: flex;
        align-items: center;
        gap: var(--shell-gap);
        padding: var(--shell-menu-item-padding);
        border-radius: var(--radius-icon);
        color: var(--color-text);
        text-decoration: none;
    }

        .lt-shell .lt-search-results .be-sr-item:hover, .lt-shell .lt-search-results .be-sr-item.active {
            background: var(--color-shell-active);
            color: var(--color-text);
        }

    .lt-shell .lt-search-results .be-sr-ic {
        display: grid;
        place-items: center;
        flex: none;
        width: var(--size-control-sm);
        height: var(--size-control-sm);
        border-radius: var(--radius-round);
        font-size: var(--font-size-sm-plus);
        font-weight: var(--font-weight-semibold);
        color: var(--color-primary);
        background: var(--color-primary-soft);
    }

    .lt-shell .lt-search-results .be-sr-txt {
        flex: 1;
        min-width: 0;
        line-height: var(--line-height-snug);
    }

        .lt-shell .lt-search-results .be-sr-txt b {
            display: block;
            font-weight: var(--font-weight-medium);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            .lt-shell .lt-search-results .be-sr-txt b mark {
                padding: 0;
                background: transparent;
                color: var(--color-primary);
                font-weight: var(--font-weight-bold);
            }

        .lt-shell .lt-search-results .be-sr-txt small {
            display: block;
            font-size: var(--font-size-xs);
            color: var(--color-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .lt-shell .lt-search-results .be-sr-note {
        padding: var(--shell-gap);
        font-size: var(--font-size-sm);
        color: var(--color-muted);
    }

/* top-bar chips: Online, location, theme switch, notifications */
.lt-shell .lt-bar-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--shell-chip-gap);
    height: var(--size-chip);
    padding: var(--shell-chip-padding);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    background: var(--color-surface);
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-chip);
    transition: var(--transition-control);
}

.lt-shell a.lt-bar-chip:hover, .lt-shell button.lt-bar-chip:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    text-decoration: none;
}

.lt-shell .lt-bar-chip:focus-visible {
    outline: var(--border-width-strong) solid var(--color-primary);
    outline-offset: var(--border-width-strong);
}

.lt-shell .lt-bar-icon {
    position: relative;
    justify-content: center;
    width: var(--size-chip);
    padding: 0;
    font-size: var(--font-size-lg);
}

.lt-shell .lt-status {
    --lt-c: var(--color-success);
    color: var(--lt-c);
}

    .lt-shell .lt-status.is-offline {
        --lt-c: var(--color-danger);
    }

    .lt-shell .lt-status > i {
        width: var(--size-dot);
        height: var(--size-dot);
        border-radius: var(--radius-round);
        background: currentColor;
    }

.lt-shell .lt-bar-loc {
    max-width: var(--size-chip-max);
}

    .lt-shell .lt-bar-loc span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lt-shell .lt-bar-loc .fa {
        color: var(--color-primary);
    }

.lt-shell .lt-count {
    position: absolute;
    top: var(--shell-count-offset);
    right: var(--shell-count-offset);
    min-width: var(--size-count);
    height: var(--size-count);
    padding: var(--shell-count-padding);
    font-size: var(--font-size-3xs);
    font-weight: var(--font-weight-semibold);
    line-height: var(--size-count);
    text-align: center;
    color: var(--color-on-primary);
    background: var(--color-danger);
    border-radius: var(--radius-sm);
}

    .lt-shell .lt-count.hidden {
        display: none;
    }

/* drop-down panels in the bar (notifications, user menu) */
.lt-shell .lt-notif {
    position: relative;
}

.lt-shell .lt-topbar .lt-menu {
    margin-top: var(--shell-menu-padding);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-nav);
    box-shadow: var(--shadow-menu);
}

    .lt-shell .lt-topbar .lt-menu > li > a {
        padding: var(--shell-dropdown-item-padding);
        color: var(--color-text);
        border-radius: var(--radius-sm);
    }

        .lt-shell .lt-topbar .lt-menu > li > a:hover {
            color: var(--color-primary);
            background: var(--color-primary-soft);
        }

.lt-shell .lt-topbar .lt-notif-menu {
    width: var(--size-notif-menu);
    padding: var(--shell-menu-padding);
    border-radius: var(--radius-popover);
}

.lt-shell .lt-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--shell-menu-head-padding);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

    .lt-shell .lt-menu-head a {
        font-size: var(--font-size-xs-plus);
        font-weight: var(--font-weight-medium);
    }
/* notification rows (written by master-shell.js: be-notif-item, be-notif-date, be-notif-txt, be-sr-note) */
.lt-shell .lt-notif-menu .be-notif-item {
    display: flex;
    gap: var(--shell-gap);
    padding: var(--shell-menu-item-padding);
    border-radius: var(--radius-icon);
}

    .lt-shell .lt-notif-menu .be-notif-item + .be-notif-item {
        border-top: var(--border-width) solid var(--color-card-border);
    }

.lt-shell .lt-notif-menu .be-notif-date {
    flex: none;
    width: var(--size-avatar);
    padding: var(--shell-date-padding);
    text-align: center;
    line-height: var(--line-height-compact);
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: var(--radius-icon);
}

    .lt-shell .lt-notif-menu .be-notif-date b {
        display: block;
        font-size: var(--font-size-lg-plus);
    }

    .lt-shell .lt-notif-menu .be-notif-date small {
        font-size: var(--font-size-4xs);
        text-transform: uppercase;
    }

.lt-shell .lt-notif-menu .be-notif-txt {
    min-width: 0;
    color: var(--color-text);
}

    .lt-shell .lt-notif-menu .be-notif-txt b {
        display: block;
        font-weight: var(--font-weight-medium);
    }

    .lt-shell .lt-notif-menu .be-notif-txt small {
        color: var(--color-muted);
    }

.lt-shell .lt-notif-menu .be-sr-note {
    padding: var(--shell-gap);
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}

/* user menu (server control ul#log1) */
.lt-shell .lt-user {
    display: flex;
    float: none;
    margin: 0;
}

    .lt-shell .lt-user > li {
        position: relative;
        float: none;
    }

.lt-shell .lt-user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: var(--size-control);
    padding: var(--shell-user-padding);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: transparent;
    border-radius: var(--radius-md);
}
/* beats Gentelella/Bootstrap navbar link colours and the blue ".top_nav .nav > li > a:hover" (all !important) */
.lt-shell .lt-topbar .lt-user > li > .lt-user-btn {
    color: var(--color-text) !important;
    background: transparent !important;
}

    .lt-shell .lt-topbar .lt-user > li > .lt-user-btn:hover,
    .lt-shell .lt-topbar .lt-user > li.open > .lt-user-btn {
        background: var(--color-surface) !important;
    }

.lt-shell .lt-user-img {
    width: var(--size-control);
    height: var(--size-control);
    margin: 0;
    border: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.lt-shell .lt-user-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--size-control);
    height: var(--size-control);
    font-size: var(--font-size-sm-plus);
    font-weight: var(--font-weight-semibold);
    color: var(--color-on-primary);
    /*    background: var(--color-avatar);*/
    background: var(--color-primary);
    border-radius: var(--radius-md);
}

.lt-shell .lt-user-name {
    max-width: var(--size-name-max);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-shell .lt-user .lt-menu {
    right: 0;
    left: auto;
    min-width: var(--size-user-menu);
}

/* ---- 13.6 mode buttons: Dashboard / Modules / Student Advance Search ---------------------------- */
.lt-shell .lt-modes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    height: auto;
    margin: var(--shell-modes-margin);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

    .lt-shell .lt-modes .lt-mode-btn {
        display: inline-block;
        vertical-align: middle;
        text-align: center;
        white-space: nowrap;
        user-select: none;
        font-family: var(--font-family);
        letter-spacing: var(--letter-spacing-control);
        width: auto;
        min-height: var(--size-control);
        margin: 0;
        padding: var(--shell-mode-btn-padding);
        font-size: var(--font-size-md);
        font-weight: var(--font-weight-semibold);
        line-height: var(--line-height-control);
        color: var(--color-primary);
        background: var(--color-surface);
        border: var(--border-width) solid var(--color-primary);
        border-radius: var(--radius-pill);
        box-shadow: none;
        cursor: pointer;
        transition: var(--transition-control);
    }

        .lt-shell .lt-modes .lt-mode-btn:hover {
            color: var(--color-primary);
            background: var(--color-primary-soft);
        }

        .lt-shell .lt-modes .lt-mode-btn:focus-visible {
            outline: 0;
            box-shadow: 0 0 0 var(--border-width-accent) var(--color-primary-ring);
        }
        /* current mode: lt-is-active, or btnprimaryActive which master-shell.js sets */
        .lt-shell .lt-modes .lt-mode-btn.lt-is-active, .lt-shell .lt-modes .lt-mode-btn.btnprimaryActive,
        .lt-shell .lt-modes .lt-mode-btn.lt-is-active:hover, .lt-shell .lt-modes .lt-mode-btn.btnprimaryActive:hover {
            color: var(--color-on-primary);
            background: var(--color-primary);
        }

/* ---- 13.7 page area + footer ---------------------------------------------------------------------- */
.lt-shell .container.body .lt-content {
    margin-left: 0;
    width: auto;
    background: transparent;
    padding: 0 !important; /* beats Gentelella ".right_col { padding: 10px !important }" */
    min-height: 0 !important; /* beats the min-height custom.js writes inline */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.lt-shell .lt-content-card {
    margin: 0;
    padding: var(--shell-content-padding);
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-lg);
    box-shadow: none;
    flex: 1 0 auto; /* fills the page area on short pages, grows with long ones (never a fixed height) */
}

.lt-shell.be-dash .lt-content-card {
    padding: 0;
    background: transparent;
    border: 0;
}
/* dashboards: their own panels are the cards */
.lt-shell .lt-footer {
    margin-top: var(--space-lg);
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-muted);
}

    .lt-shell .lt-footer a {
        color: var(--color-muted);
    }

/* ---- 13.8 small screens + print ------------------------------------------------------------------- */
@media (max-width: 991px) {
    .lt-shell.nav-md .lt-main, .lt-shell.nav-sm .lt-main {
        margin-left: var(--size-sidebar-collapsed);
    }

    .lt-shell.nav-md .container.body .lt-sidebar {
        display: block;
        box-shadow: var(--shadow-sidebar-overlay);
    }
    /* Gentelella hides it here */
}

@media (max-width: 700px) {
    .lt-shell .lt-main {
        margin: 0 0 0 var(--size-sidebar-collapsed);
        padding: var(--shell-main-padding-sm);
        border-radius: var(--radius-main-sm) 0 0 0;
    }

    .lt-shell .lt-user-name, .lt-shell .lt-kbd, .lt-shell .lt-status span {
        display: none;
    }

    .lt-shell .lt-bar-loc {
        max-width: var(--size-chip-max-sm);
    }
}

@media print {
    html:has(> body.lt-shell), body.lt-shell, .lt-shell .container.body, .lt-shell .main_container {
        background: var(--color-print);
    }

    .lt-shell .lt-header, .lt-shell .lt-footer {
        display: none;
    }

    .lt-shell:is(.nav-md, .nav-sm) .lt-main {
        margin: 0;
        padding: 0;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lt-shell .lt-main, .lt-shell .lt-sidenav .menu-chevron, .lt-shell .lt-sidenav li > a {
        transition: none;
    }
}

/* =====================================================================================================
   14. SIGN-IN PAGES  (Account/Login.aspx, Views/Admin/LocationSelect.aspx)
   <div class="lt-auth"><div class="lt-auth-card"><div class="lt-auth-hero">..</div><div class="lt-auth-form">..</div></div></div>
   Both pages render inside Site.Master, so the general page rules (.right_col headings, field heights, buttons)
   also reach them; rules marked "beats ..." carry !important for that reason.
   STATE / SCRIPT CLASSES kept on the markup: show_pass, login_pass, Icon, be-greeting (Login.aspx script), :disabled.
   ===================================================================================================== */

/* the shell is hidden on sign-in pages: the card fills the window */
body:has(.lt-auth) .lt-main {
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: 0;
}
    /* beats the sidebar margin */
    body:has(.lt-auth) .lt-main .lt-content-card {
        padding: 0;
        border: 0;
        background: transparent;
    }

body:has(.lt-auth) .lt-sidebar, body:has(.lt-auth) .lt-header, body:has(.lt-auth) .lt-footer, body:has(.lt-auth) .lt-loader {
    display: none !important;
}
/* beats layout rules + script-shown loader */

.lt-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: var(--space-xl);
    background: var(--color-shell-frame);
}

.lt-auth-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: 100%;
    max-width: var(--size-auth-card);
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius-auth);
    box-shadow: var(--shadow-auth);
}

/* long forms (sign-up): wider card, narrower hero column; stacks like the normal card on phones */
.lt-auth-card.lt-auth-card-wide {
    grid-template-columns: var(--auth-hero-col-wide) minmax(0, 1fr);
    max-width: var(--size-auth-card-wide);
}

html body .lt-auth .lt-auth-card-wide .lt-auth-title {
    font-size: var(--font-size-2xl);
}

/* left: brand panel */
.lt-auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--auth-gap);
    padding: var(--auth-hero-padding);
    color: var(--color-on-primary);
    background: var(--auth-hero-bg);
}
/* "html body .lt-auth" beats the general page-heading rules (body .right_col h1, list-page titles) */
html body .lt-auth .lt-auth-hero, html body .lt-auth .lt-auth-hero * {
    color: var(--color-on-primary) !important;
}

html body .lt-auth .lt-auth-hero-icon {
    font-size: var(--font-size-auth-icon);
    line-height: 1;
}

html body .lt-auth .lt-auth-title {
    margin: 0;
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-heading);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
}

html body .lt-auth .lt-auth-lead {
    margin: 0;
    font-size: var(--font-size-md);
    opacity: var(--opacity-on-color-muted);
}

/* right: form panel */
.lt-auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--auth-form-padding);
    text-align: left;
    color: var(--color-text);
}

html body .lt-auth .lt-auth-heading {
    margin: 0 0 var(--auth-space);
    font-size: var(--font-size-auth-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.lt-auth-form .lt-auth-sub {
    margin: 0 0 var(--auth-space);
    color: var(--color-muted);
}

.lt-auth-form label.lt-auth-label {
    display: block;
    margin: var(--auth-label-margin);
    font-size: var(--font-size-xs-plus);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

body .lt-auth-form .lt-auth-input,
body .lt-auth-form select.lt-auth-input {
    width: 100%;
    height: var(--size-auth-input);
    padding: var(--auth-input-padding);
    color: var(--color-text);
    background-color: var(--color-page);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-xs);
    box-shadow: none;
}

    body .lt-auth-form .lt-auth-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 var(--border-width-accent) var(--color-primary-ring);
    }

/* password + show/hide button */
.lt-auth-pass {
    position: relative;
}

    .lt-auth-pass .lt-auth-input {
        padding-right: var(--size-auth-input);
    }

    .lt-auth-pass .lt-auth-pass-toggle {
        position: absolute;
        right: var(--auth-toggle-offset);
        top: 50%;
        transform: translateY(-50%);
        width: var(--size-auth-toggle);
        height: var(--size-auth-toggle);
        color: var(--color-muted);
        background: transparent;
        border: 0;
        border-radius: var(--radius-icon);
    }

        .lt-auth-pass .lt-auth-pass-toggle:hover {
            color: var(--color-primary);
            background: var(--color-primary-soft);
        }

/* remember me + forgot password */
.lt-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--auth-gap);
    margin: var(--auth-space) 0;
    font-size: var(--font-size-sm);
}

    .lt-auth-row label {
        display: flex;
        align-items: center;
        gap: var(--shell-chip-gap);
        margin: 0;
        font-weight: var(--font-weight-medium);
        color: var(--color-text);
    }

        .lt-auth-row label input {
            width: auto;
            margin: 0;
        }

.lt-auth a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

    .lt-auth a:hover {
        text-decoration: underline;
    }

/* buttons */
body .lt-auth .lt-auth-btn {
    width: 100%;
    height: auto;
    padding: var(--space-md);
    border: 0;
    border-radius: var(--radius-nav);
    font-weight: var(--font-weight-semibold);
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-on-primary) !important;
    background: var(--color-primary) !important; /* beats legacy .button / .btn colours */
    box-shadow: var(--shadow-auth-btn);
}

    body .lt-auth .lt-auth-btn:hover {
        background: var(--color-primary-hover) !important;
    }

    body .lt-auth .lt-auth-btn:disabled {
        opacity: var(--opacity-busy);
    }

    body .lt-auth .lt-auth-btn.lt-auth-btn-outline {
        color: var(--color-text) !important;
        background: var(--color-page) !important;
        border: var(--border-width) solid var(--color-card-border);
        box-shadow: none;
    }

        body .lt-auth .lt-auth-btn.lt-auth-btn-outline:hover {
            background: var(--color-primary-soft) !important;
        }

.lt-auth-actions {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--auth-gap);
    margin-top: var(--auth-actions-margin);
}

/* footer links + messages */
.lt-auth-foot {
    margin: var(--auth-space) 0 0;
    text-align: center;
    font-size: var(--font-size-xs-plus);
}

    .lt-auth-foot .lt-auth-muted-link {
        font-weight: var(--font-weight-regular);
        color: var(--color-muted);
    }

.lt-auth .lt-auth-error {
    margin: var(--auth-error-margin) 0 0;
    padding: var(--auth-error-padding);
    border-radius: var(--radius-icon);
    font-size: var(--font-size-sm);
    color: var(--color-danger);
    background: color-mix(in srgb, var(--color-danger) var(--tint-error), transparent);
}

    .lt-auth .lt-auth-error:empty {
        display: none;
    }

@media (max-width: 700px) {
    .lt-auth-card, .lt-auth-card.lt-auth-card-wide {
        grid-template-columns: 1fr;
    }

    .lt-auth-hero {
        padding: var(--auth-hero-padding-sm);
    }

    .lt-auth-form {
        padding: var(--auth-form-padding-sm);
    }
}

/* =====================================================================================================
   15. LIST SCREENS  (reference: Views/Admin/Configuration/FamilyConfig/CstContactTypes.ascx)
   <div class="lt-list">  h1.lt-page-title  .lt-alert  toolbar(.lt-list-actions + .lt-filter)  grid(.lt-table-wrap > .lt-table)
                          pager bar (.lt-list-footer)  + the edit dialog (.lt-modal ... .lt-form-table)
   SCRIPT CLASSES that stay on the markup and are read here: btn-group (toolbar, master-shell.js appends the
   drag-to-scroll tools into it), table-responsive / shared-list-grid, tfootdiv, pagination (+ the items the pager
   plugin writes), btndelete / btnactive / btn-danger / btn-success on row icons, info (selected row), has-error.
   ===================================================================================================== */
.lt-page-title {
    margin: 0 0 var(--list-space);
    font-size: var(--font-size-heading-page);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    color: var(--color-text);
}

.lt-list .lt-alert {
    margin-bottom: var(--list-space);
}

.lt-alert.divError {
    margin-bottom: var(--list-space);
}
/* the no-records note, also on screens without a list wrapper (as today) */

/* toolbar: Add New / Print / Excel / status filter on the right, search on the left */
.lt-list-actions {
    float: right;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--list-gap);
    margin-bottom: var(--list-space);
}

    .lt-list-actions > .lt-btn,
    .lt-list-actions > select.lt-list-status {
        float: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: var(--size-control);
        margin: 0;
        border-radius: var(--radius-btn);
        box-shadow: none;
    }

        .lt-list-actions > .lt-btn:not(.lt-btn-outline) {
            padding: var(--space-btn-y-toolbar) var(--space-btn-x);
            font-weight: var(--font-weight-semibold);
        }

    .lt-list-actions > .lt-btn-square {
        width: var(--size-control);
        padding: 0;
        color: var(--color-text);
        background: var(--color-surface);
        border: var(--border-width) solid var(--color-card-border);
        box-shadow: none;
    }

        .lt-list-actions > .lt-btn-square:hover, .lt-list-actions > .lt-btn-square:focus {
            color: var(--color-primary);
            background: var(--color-primary-soft);
            border-color: var(--color-card-border);
        }

        .lt-list-actions > .lt-btn-square .fa-lg {
            font-size: var(--font-size-lg);
        }

    .lt-list-actions > select.lt-list-status {
        width: var(--size-list-status);
        padding: var(--list-status-padding);
        letter-spacing: var(--letter-spacing-control);
        font-weight: var(--font-weight-medium);
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        color: var(--color-text);
        background-color: var(--color-surface);
        border: var(--border-width) solid var(--color-card-border);
        box-shadow: none;
    }
        /* extra toolbar filters next to the status filter (category etc.): width follows the text, normal control border */
        .lt-list-actions > select.lt-list-status.lt-list-filter {
            width: auto;
            padding: var(--list-filter-padding);
            background-color: var(--color-field-bg);
            border-color: var(--color-border);
        }
/* drag-to-scroll button that master-shell.js adds into the toolbar when the grid overflows */
html body .lt-list-actions > select.lt-list-status {
    border-radius: var(--radius-btn) !important;
}
/* beats be-theme s.15 field corners */
.lt-list-actions .list-grid-tools {
    display: inline-flex;
    margin: 0;
}

    .lt-list-actions .list-grid-tools .btn {
        display: block;
        width: var(--size-control);
        min-width: var(--size-control);
        height: var(--size-control);
        margin: 0;
        padding: 0;
        color: var(--color-text);
        background: var(--color-surface);
        border: var(--border-width) solid var(--color-card-border);
        border-radius: var(--radius-btn);
        box-shadow: none;
    }

        .lt-list-actions .list-grid-tools .btn[aria-pressed="true"] {
            color: var(--color-on-primary);
            background: var(--color-primary);
            border-color: var(--color-primary);
        }

/* filter bar: a row = search column + a column of options and buttons (GLBill: search | [x] Apply Late Fee  Print  Post  Cancel)
   one aligned line; the search takes the free space, the options and buttons stay together on the right.
   lt-filter-bar on the .row, lt-filter-bar-search / lt-filter-bar-actions on its columns, lt-check-chip on a check box label */
.lt-filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-group-gap) var(--space-filter-bar-gap-x); margin-bottom: var(--space-md);
}
.lt-filter-bar::before, .lt-filter-bar::after { display: none; }
.lt-filter-bar > .lt-filter-bar-search { flex: 1 1 var(--size-filter-bar-search); width: auto; float: none; }
.lt-filter-bar > .lt-filter-bar-search .lt-filter { margin-bottom: 0; }
.lt-filter-bar > .lt-filter-bar-actions {
    flex: 0 1 auto; width: auto; float: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-sm);
}
.lt-filter-bar > .lt-filter-bar-actions > .lt-btn { margin: 0; }
html body .lt-check-chip {
    /* !important like the old filter-row rule: the generic form-label rules (block, 20px line, 5px below) must not apply */
    display: inline-flex !important; align-items: center; gap: var(--space-sm); min-height: 0 !important; height: var(--size-control); margin: 0 var(--space-check-chip-after) 0 0 !important;
    padding: 0 var(--space-md); border: var(--border-width) solid var(--color-card-border); border-radius: var(--radius-xs); background: var(--color-page);
    font-weight: var(--font-weight-medium); color: var(--color-text); white-space: nowrap; cursor: pointer; line-height: 1 !important;
}
html body .right_col .lt-check-chip > input:is([type=checkbox], [type=radio]) { margin: 0 !important; vertical-align: middle; }

/* search box: one rounded field with the icon inside */
.lt-filter {
    position: relative;
    display: flex !important;   /* like the old search-box rule: shown even when the markup also says "hidden" (as today) */
    align-items: center;
    gap: var(--list-filter-gap);
    min-width: var(--size-list-filter-min);
    max-width: var(--size-list-filter-max);
    height: var(--size-control);
    margin-bottom: var(--list-space);
    padding: 0 var(--space-md);
    color: var(--color-muted);
    background: var(--color-page);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-xs);
}

    .lt-filter:focus-within {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 var(--border-width-accent) var(--color-primary-ring);
    }

.lt-filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: var(--size-addon-min);
    vertical-align: middle;
    text-align: center;
    font-size: var(--font-size-md);
    line-height: 1;
    white-space: nowrap;
    color: var(--color-muted);
}

html body .lt-filter > input.lt-filter-input { /* html body: beats the general field-size rules in ui-kit / be-theme */
    position: relative;
    z-index: 2;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    height: var(--size-control);
    padding: 0;
    font-size: var(--font-size-md);
    color: var(--color-text);
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    outline: 0; /* !important beats be-theme s.15 */
}

@media (min-width: 1200px) {
    .lt-filter {
        width: 25%;
    }
}

/* grid: row actions are plain icons, no box (edit = link colour, delete = red trash, activate = green).
   Each icon keeps its click area (size-row-action), so row heights do not change. */
.lt-row-actions {
    display: inline-flex;
    width: auto;
    gap: 0;
    vertical-align: middle;
    border-radius: 0;
    overflow: visible;
}

.lt-row-action {
    display: inline-grid !important;   /* like the old row-icon rule: shown even when the markup also says "hidden" (as today) */
    place-items: center;
    width: var(--size-row-action);
    height: var(--size-row-action-h);
    min-height: var(--size-control);
    margin: 0;
    padding: 0;
    float: none;
    vertical-align: middle;
    font-size: var(--font-size-md-plus);
    line-height: var(--size-row-action-h);
    letter-spacing: var(--letter-spacing-control);
    text-transform: capitalize;
    white-space: nowrap;
    color: var(--row-action-edit);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

    .lt-row-action.btndelete {
        color: var(--row-action-delete);
        background: transparent;
    }

        .lt-row-action.btndelete::before {
            content: var(--icon-row-delete);
        }

        /* <button> delete actions keep their close (x) glyph text for the scripts: hide it, the trash comes from ::before */
        button.lt-row-action.btndelete {
            font-size: 0;
            grid-auto-flow: column; /* hidden text beside the icon, not in a second row: icon stays centred */
        }

            button.lt-row-action.btndelete::before {
                font-size: var(--font-size-md-plus);
            }

    .lt-row-action.btnactive {
        color: var(--row-action-active);
        background: transparent;
    }

    .lt-row-action:hover, .lt-row-action:focus {
        color: var(--row-action-edit-hover);
        filter: none;
    }

    .lt-row-action.btndelete:hover, .lt-row-action.btndelete:focus {
        color: var(--row-action-delete);
        filter: var(--row-action-hover-filter);
    }

    .lt-row-action.btnactive:hover, .lt-row-action.btnactive:focus {
        color: var(--row-action-active);
        filter: var(--row-action-hover-filter);
    }

/* pager bar: page buttons left, "Showing ..." pill + rows/page right.
   lt-list-footer sits on .tfootdiv; lt-pager wraps the .pagination the pager plugin fills (master-shell.js).
   !important mirrors be-theme s.10 so the bar wins over custom.style.css .shared-list-footer (set by master-shell.js). */
.lt-list-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-group-gap);
    margin: var(--list-footer-margin) 0 0 !important;
    padding: var(--list-space) !important;
    border: 0 !important;
    border-radius: var(--radius-nav) !important;
    background: color-mix(in srgb, var(--color-primary) var(--tint-list-footer), var(--color-surface)) !important;
}

.lt-pager {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

    .lt-pager .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: var(--list-gap);
        margin: 0;
    }

        .lt-pager .pagination > li > a, .lt-pager .pagination > li > span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            float: none;
            min-width: var(--size-page-item);
            height: var(--size-page-item);
            margin: 0 !important;
            padding: var(--page-item-padding);
            font-weight: var(--font-weight-semibold);
            color: var(--color-primary);
            background: var(--color-surface);
            border: var(--border-width) solid var(--color-card-border) !important;
            border-radius: var(--radius-sm) !important;
        }

        .lt-pager .pagination > .active > a, .lt-pager .pagination > .active > span {
            color: var(--color-on-primary) !important;
            background: var(--color-primary) !important;
            border-color: var(--color-primary) !important;
            box-shadow: none;
        }

        .lt-pager .pagination > .disabled > a, .lt-pager .pagination > .disabled > span {
            color: var(--color-muted);
            background: var(--color-surface);
            border-color: var(--color-card-border) !important;
            opacity: var(--opacity-faded);
        }

@media print {
    .lt-list-footer {
        display: none !important;
    }
}

/* printed / saved-as-PDF report heading centred on the Employee Allowed Leaves screen */
@media print {
    .EmployeeAllowedLeaves .lt-page-title {
        text-align: center;
    }
}

.lt-rows-per-page {
    display: flex;
    align-items: center;
    gap: var(--list-filter-gap);
    width: auto;
    float: none;
    margin: 0;
}

.lt-rows-count, .lt-rows-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--size-addon-min);
    flex-shrink: 0;   /* keep their natural width on narrow screens (like the old table cells), so the pill never wraps */
    vertical-align: middle;
    text-align: center;
}

.lt-rows-count {
    padding: var(--rows-count-padding);
    border-radius: var(--radius-tag);
    font-size: var(--font-size-xs-plus);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-pill);
    white-space: normal;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) var(--tint-rows-count), transparent);
}

    .lt-rows-count:has(> span:empty) {
        display: none;
    }

.lt-rows-icon {
    margin-left: calc(var(--border-width) * -1);
    font-size: var(--font-size-md);
    line-height: var(--line-height-pill);
    white-space: nowrap;
    color: var(--color-muted);
}

html body .lt-rows-per-page > .lt-rows-select { /* html body: beats the general field-size rules */
    width: auto;
    min-width: var(--size-rows-select-min);
    height: var(--size-control);
    border: var(--border-width) solid var(--color-card-border);
    border-radius: var(--radius-icon);
    background-color: var(--color-surface);
}

/* edit dialog: label / field rows laid out by a table */
.lt-form-table > tbody > tr > td > .lt-form-label {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 var(--space-btn-gap);
    padding: 0;
    font-weight: var(--font-weight-medium);
    white-space: normal;
}

/* edit dialog laid out in field rows (reference: Views/Admin/Configuration/AccountingConfig/BillCycle.ascx)
   <div class="lt-form-row [hidden]"> <div class="lt-form-row-label"><label class="lt-form-label"> </div> <div class="lt-form-row-field"> .lt-input-group </div> </div>
   The columns always sit side by side at their natural width (as Gentelella floats every column); from 768px they get
   fixed widths (label 25%, field 58%). The "hidden" class stays (scripts read it). */
.lt-form-row {
    margin: 0 calc(var(--form-row-gutter) * -1) var(--form-row-gap);
}

    .lt-form-row::before, .lt-form-row::after {
        content: " ";
        display: table;
    }

    .lt-form-row::after {
        clear: both;
    }

.lt-form-row-label, .lt-form-row-field {
    position: relative;
    float: left;
    min-height: var(--border-width);
    padding: 0 var(--form-row-gutter);
}

    .lt-form-row-label > .lt-form-label {
        display: block;
        min-height: var(--size-label-line);
        line-height: var(--size-label-line);
        margin: 0 0 var(--space-btn-gap);
    }
/* a field group that follows a (hidden) label in its column has no bottom gap, so it lines up with the next row */
.lt-form-row > * > label:first-child ~ .lt-input-group,
[class*="col-"] > label:first-child ~ .lt-input-group { margin-bottom: 0; }
@media (min-width: 768px) {
    .lt-form-row-label { width: var(--form-row-label-width); }
    .lt-form-row-field { width: var(--form-row-field-width); }
}

/* =====================================================================================================
   RESPONSIVE
   ===================================================================================================== */
@media (max-width: 991px) {
    .lt-grid {
        --lt-cols: 2;
    }

    .lt-cols-3, .lt-cols-4 {
        --lt-cols: 2;
    }
}

@media (max-width: 640px) {
    .lt-grid, .lt-form-grid {
        --lt-cols: 1;
    }

    .lt-toolbar-end {
        margin-left: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lt-btn, .lt-input, .lt-page, .lt-tab, .lt-segment-item, .lt-progress-bar {
        transition: none;
    }
}
