* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reserve space for the vertical scrollbar so width (and the navbar) does not reflow */
html {
    scrollbar-gutter: stable;
    overflow-anchor: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header logo: capped size (matches the old inline max-width: 280px on all viewports) */
.site-logo {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.table-inactive {
    background-color: #f1c2c2;
}

body {
    background-color: #000000;
    /* clip avoids the overflow-x:hidden + overflow-y:visible => y becomes auto quirk (breaks scroll lock) */
    overflow-x: clip;
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

/* Mobile drawer: scrolling the link list must not scroll the page behind it */
#siteNav .offcanvas-body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Standalone login: centered card, safe areas on notched phones */
body.page-login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

body.page-login .login {
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 48px auto;
    padding: 0;

}
.login h1 {
    text-align: center;
    color: #222222;
    font-size: 24px;
    padding: 20px 16px;
    border-bottom: 1px solid #dee0e4;
}
.login form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px 16px 0 16px;
}
/* Grid keeps icon + field on one row on mobile Safari (flex + text nodes can stack) */
.login-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    column-gap: 0;
}
.login-row + .login-row {
    margin-top: 12px;
}
.login form .login-row > label {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    width: 50px;
    height: 50px;
    margin: 0;
    background-color: #444444;
    color: #ffffff;
}
.login form .login-row > input[type="password"],
.login form .login-row > input[type="text"] {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: 50px;
    border: 1px solid #dee0e4;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 16px; /* avoids iOS zoom on focus */
}
.login form .login-row > input[type="password"]:focus,
.login form .login-row > input[type="text"]:focus {
    outline: 2px solid #2f3947;
    outline-offset: -1px;
    border-color: #2f3947;
}
.login form > a {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #2f3947;
    font-size: 0.9375rem;
    line-height: 1.4;
}
.login form > a:hover {
    color: #1a2129;
}
.login form > a:focus-visible {
    outline: 2px solid #2f3947;
    outline-offset: 2px;
    border-radius: 0;
}
.login-submit-wrap {
    align-self: stretch;
    width: calc(100% + 32px);
    max-width: none;
    margin-top: 20px;
    margin-left: -16px;
    margin-right: -16px;
    box-sizing: border-box;
}
.login form .login-submit-wrap input[type="submit"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px;
    background-color: #444444;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s;
}
.login form .login-submit-wrap input[type="submit"]:hover {
    background-color: #3d4654;
    transition: background-color 0.2s;
}
.login form .login-submit-wrap input[type="submit"]:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.navtop {
	background-color: #2f3947;
	height: 60px;
	width: 100%;
	border: 0;
}
.navtop div {
	display: flex;
	margin: 0 auto;
	width: 100%;
	max-width: 1000px;
	height: 100%;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: 24px;
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: normal;
}
.navtop div a {
	padding: 0 20px;
	text-decoration: none;
	color: #c1c4c8;
	font-weight: bold;
}
.navtop div a i {
	padding: 2px 8px 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}
body.loggedin {
	background-color: #f3f4f7;
}
.content {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 16px;
}
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content > p, .content > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}

.circular--portrait { 
    position: relative; width: 200px; height: 200px; overflow: hidden; border-radius: 50%;
    
} 

.circular--portrait img { 
    width: 100%; height: auto; margin-top: -0px;  
}

.instructors {
    margin: 15px 15px 15px 15px;
    display: inline-block;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
    .table-schedule-compact th,
    .table-schedule-compact td {
        font-size: 0.75rem;
        padding: 0.35rem 0.25rem;
        vertical-align: top;
    }
}

.trainings-page-toolbar .trainings-page-select {
    width: auto;
    min-width: 7rem;
    max-width: 12rem;
}

@media (max-width: 767.98px) {
    .table.table-trainings-list th.trainings-compact-cols,
    .table.table-trainings-list td.trainings-compact-cols {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        white-space: nowrap;
    }
}

.training-note-modal-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.table.table-trainings-list .trainings-day-cell {
    vertical-align: top;
}

.table.table-trainings-list .trainings-day-date {
    margin-bottom: 0.15rem;
}

.table.table-trainings-list .trainings-day-actions {
    font-size: 0.8125rem;
    line-height: 1.2;
}

.table.table-trainings-list .trainings-day-remove {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.1rem;
    margin-left: 0.15rem;
    vertical-align: middle;
}

@media (min-width: 576px) {
    .login {
        margin: 100px auto;
        padding: 0;
    }

    body.page-login .login {
        margin: 0 auto;
        padding: 0;
    }
}

/* addpayments.php — kontantfaktura / medlemsök */
.addpayments-form select {
    margin-right: 20px;
    overflow-y: auto;
}

.addpayments-form select option:focus {
    background-color: #cecece !important;
    outline: none;
}

.addpayments-form .card-glass {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.addpayments-form #user-search-wrap .member-suggestions {
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.25rem;
    background: #303030;
}

.addpayments-form #user-search-wrap .member-suggestions .list-group-item {
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.08);
}

.addpayments-form #user-search-wrap .member-suggestions .list-group-item:hover,
.addpayments-form #user-search-wrap .member-suggestions .list-group-item:focus {
    background-color: #375a7f;
    color: #fff;
}