body {
    background: #f6f7f9;
    color: #17202a;
}

.app-shell {
    min-height: 100vh;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #212529;
    color: #ffffff;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    min-height: 62px;
    margin: 0 auto;
    padding: 0 22px;
    gap: 16px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.site-brand:hover {
    color: #ffffff;
}

.wt-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.app-context {
    margin-right: auto;
    color: #adb5bd;
    font-size: 0.92rem;
    text-decoration: none;
}

.app-context:hover {
    color: #ffffff;
}

.menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #343a40;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    position: absolute;
    left: 0;
    content: '';
}

.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

.main-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: max(20px, calc((100% - 1100px) / 2 + 22px));
    width: min(330px, calc(100vw - 32px));
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    border: 1px solid #343a40;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #212529;
    box-shadow: 0 8px 28px rgba(23, 32, 42, 0.06);
}

.main-menu.active {
    display: block;
}

.main-menu ul {
    margin: 0;
    padding: 8px;
    list-style: none;
}

.main-menu a,
.submenu-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.main-menu a:hover,
.main-menu a:focus-visible,
.main-menu a.active,
.submenu-toggle:hover,
.submenu-toggle:focus-visible {
    background: #343a40;
    outline: none;
}

.submenu-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.menu-group.open > .submenu-toggle .submenu-chevron {
    transform: rotate(225deg);
}

.submenu {
    display: none;
    margin: 0 0 5px 12px !important;
    padding: 3px 0 3px 10px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.28);
}

.menu-group.open .submenu {
    display: block;
}

.submenu a {
    font-size: 0.94rem;
}

.menu-label {
    margin: 8px 12px 3px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.card {
    border-color: #d8dee8;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(23, 32, 42, 0.06);
}

.table td,
.table th {
    vertical-align: middle;
}

.form-label {
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .app-context {
        display: none;
    }
}
