* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #102a43;
    color: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    max-width: 100%;
}

.site-logo {
    display: block;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.site-header h1 {
    margin: 0;
    font-size: 1.4rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.user-menu,
#login-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 0;
}

.user-menu {
    margin-left: auto;
    position: relative;
}

#user-info {
    overflow-wrap: anywhere;
    max-width: 100%;
}

.site-header [hidden],
#login-form[hidden],
#login-button[hidden],
#user-avatar[hidden],
#user-dropdown[hidden] {
    display: none;
}

button.action-button,
.site-header button,
.site-header input {
    font: inherit;
    padding: 0.5rem 0.75rem;
    border: 1px solid #bcccdc;
    border-radius: 0.35rem;
    max-width: 100%;
    min-width: 0;
}

button.action-button,
.site-header button {
    background: #fff;
    color: #102a43;
    cursor: pointer;
}

button.action-button:hover,
.site-header button:hover {
    background: #d9e2ec;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-header .icon-button,
.site-header .avatar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
}

.site-header .avatar-button {
    border-radius: 50%;
    background: #d9e2ec;
    border-color: #d9e2ec;
    font-weight: 700;
}

.site-header .avatar-button:hover {
    box-shadow: 0 0 0 2px #f0b429;
}

.icon-button svg,
.account-action svg,
.logout-action svg {
    display: block;
    width: 22px;
    height: 22px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(18rem, calc(100vw - 3rem));
    padding: 0.5rem;
    border: 1px solid #bcccdc;
    border-radius: 0.5rem;
    background: #fff;
    color: #102a43;
    box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-bottom: 1px solid #d9e2ec;
    overflow-wrap: anywhere;
}

.user-status {
    font-size: 0.875rem;
    color: #52606d;
}

.site-header .logout-action,
.site-header .account-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    margin-top: 0.5rem;
    border: 0;
    text-align: left;
}

.site-header :focus-visible {
    outline: 3px solid #f0b429;
    outline-offset: 3px;
}

main {
    flex: 1;
    padding: 1.5rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #52606d;
}

.item {
    flex: 1 1 250px;
    padding: 1.5rem;
    min-width: 0;
    min-height: 18rem;
    border-top: 2px solid #bcccdc;
    background: #f0f4f8;
}

footer {
    padding: 1rem 1.5rem;
}

@media (max-width: 600px) {
    .site-header {
        flex-wrap: nowrap;
    }

    .site-brand {
        flex: 1;
    }

    .site-header h1 {
        font-size: 1.1rem;
    }

    .user-menu {
        flex-shrink: 0;
    }

    main,
    footer {
        padding: 0.75rem 1rem;
    }
}

.header, .footer {
    background-color: #f8f9fa;
    padding: 20px;
    width: 100%;
    text-align: center;
}

.main {
    display: flex;
    flex: 1;
    width: 100%;
}

.sidebar {
    background-color: #e9ecef;
    padding: 20px;
    width: 250px;
}

.content {
    flex: 1;
    padding: 20px;
}

.button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background-color: #0056b3;
}

.hidden{
    display: none;
}

.scroll_to_top_wrap{
	position: fixed;
	bottom: 20px;
	right: 20px;
	border:1px solid black;
	background-color: #ffffff;
	font-size:1.8rem;
	padding-left:15px;
	padding-right:15px;
	padding-top:5px;
	padding-bottom:5px;
}

.scroll-to-top-action{
    position: fixed;
    bottom: 20px;
    right: 20px;
}