body, html { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; color: #1f2328; }
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #0969da; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* Drawer content area — must be the scroll container so position:sticky works
   inside pages. The overflow:hidden on k-drawer-container (needed to clip the
   sliding drawer panel) breaks sticky for any descendant; making k-drawer-content
   scroll instead restores the correct sticky context. */
.k-drawer-content {
    height: calc(100vh - var(--app-header-height));
    overflow-y: auto;
    overflow-x: hidden;
}

/* Telerik AppBar — must be global to reach Telerik's rendered DOM */
.cc-appbar.k-appbar {
    background-color: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    box-shadow: none;
    padding: 0 1rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 10003;
}

/* Hamburger button — dark icon/text on light AppBar (theme default assumes dark background) */
.cc-appbar .k-button-flat {
    color: #1f2328;
}
.cc-appbar .k-button-flat:hover,
.cc-appbar .k-button-flat:focus-visible {
    color: #1f2328;
    background-color: rgba(31, 35, 40, 0.08);
    box-shadow: none;
}

/* Drawer (overlay mode) — AppBar stays on top (z-index:10003 > drawer z-index:10002).
   The drawer panel is still position:fixed from top:0, so padding-top pushes the nav
   items below the AppBar. The backdrop is offset so it does not dim the AppBar. */
.k-drawer {
    padding-top: 56px;
}
.k-overlay {
    top: 56px;
    height: calc(100vh - 56px);
}

/* Drawer nav links — remove browser default underline; align with AppBar's 1rem left padding */
.k-drawer-link {
    padding-left: 1rem;
}
.k-drawer-link,
.k-drawer-link:hover,
.k-drawer-link:visited,
.k-drawer-link:focus {
    text-decoration: none;
}

/* Telerik input standardisation — consistent height for all text-style inputs */
.k-input {
    height: var(--app-input-height);
}

.k-input-inner {
    font-size: var(--app-input-font-size);
}

/* FormGroup heading — slightly larger, bolder, darker */
.k-form-legend {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1e23;
}

/* Drawer group header (non-clickable admin section label) */
.k-drawer-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--app-text-muted);
    user-select: none;
}

/* Suppress hover highlight on header items */
.k-drawer-item:has(.k-drawer-group-header) {
    cursor: default;
    pointer-events: none;
}

/* Indent drawer sub-items (admin children) */
.k-drawer-link--indented {
    padding-left: 2.5rem;
}

.equal-width-buttons .k-button {
    width: 140px;
}

/* Stretch button(s) to fill the form width */
.full-width-buttons {
    width: 100%;
}

.full-width-buttons .k-button {
    width: 100%;
}
