@font-face {
    font-family: Patron-Bold;
    src: url('fonts/PatronBold.ttf');
}

@font-face {
    font-family: Arial-Bold;
    src: url('fonts/ArialBold.ttf');
}

* {
	vertical-align: middle;
	color: inherit;
	margin: 0;
	padding: 0;
	box-sizing: border-box
}

.close-btn {
    cursor: pointer; margin-left: auto; padding-left: 8px; margin-right: -6px; margin-top: -4px;
}

body {
	overflow-x: hidden;
}

select {
    cursor: pointer;
}

label {
	font-size: .875rem;
	vertical-align: baseline
}

a, b, i, span, strong, em, code {
	vertical-align: baseline
}

a, button, .button {
    white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	border: none;
	font-family: inherit;
	outline: inherit;
	justify-content: center
}

a, button, .button, i, label {
	-webkit-user-select: none;
	user-select: none
}

body {
	font-size: .875rem;
	line-height: 1.5rem;
	letter-spacing: .0313rem
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
	display: block;
	align-items: center;
	line-height: normal
}

h1 {
	font-size: 3.5625rem
}

h2 {
	font-size: 2.8125rem
}

h3 {
	font-size: 2.25rem
}

h4 {
	font-size: 2rem
}

h5 {
	font-size: 1.75rem
}

h6 {
	font-size: 1.5rem
}

h1.small {
	font-size: 3.0625rem
}

h2.small {
	font-size: 2.3125rem
}

h3.small {
	font-size: 1.75rem
}

h4.small {
	font-size: 1.5rem
}

h5.small {
	font-size: 1.25rem
}

h6.small {
	font-size: 1rem
}

h1.large {
	font-size: 4.0625rem
}

h2.large {
	font-size: 3.3125rem
}

h3.large {
	font-size: 2.75rem
}

h4.large {
	font-size: 2.5rem
}

h5.large {
	font-size: 2.25rem
}

h6.large {
	font-size: 2rem
}

.help-text-heading {
    text-transform: uppercase;
    text-decoration: underline;
}

pre {
	border-radius: 0;
	background-color: white;
	white-space: pre-wrap;
	padding: 1rem;
	border-inline-start: .25rem solid black;
	font-family: inherit
}

blockquote {
	border-radius: 0;
	padding: 1rem;
	border-inline-start: .25rem solid black;
	font-family: inherit
}

code {
	border-radius: 0;
	background-color: white;
	white-space: pre-wrap;
	padding: .25rem
}

.role-info {
    padding: 4px;
    border: 1px #eee solid;
}

:root, body {
    ul, ol {
        margin-left: 24px;
        margin-bottom: 12px;
    }

    button {
        padding: 12px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        margin: 12px 0 12px 0;
    }

    p {
        margin: 0 0 12px 0;   
    }
}

.material-symbols-outlined {
    font-weight: 200 !important;
}

h6 {
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 21px;
}

html {
    height: 100%;
}

span.for-form {
    margin-top: 8px;
}

input[type=checkbox] {
    width: 20px;
    height: 20px;
    accent-color: #000;
}

span.text-button {
    color: black;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 24px;
    font-size: .875rem;
    padding: 8px 0 8px 0;    
    user-select: none;
}

select.for-form {
    margin: 12px 0 12px 0;
    user-select: none;
}

label {
    font-size: 0.875rem;
}

label.for-form {
    margin-top: 8px;
    color: gray;
    user-select: none;
    font-size: .875rem;
}

.right-aligned {
    margin-left: auto;
    text-align: right;
}

button.icon-button {
    background-color: black;
    color: white;
    border-radius: 8px;
    font-size: .875rem;
    user-select: none;
    display: inline-flex;
    align-items: center;
    border-width: 0;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    margin: 0;
}

button.for-form {
    margin-top: 24px;
    margin-left: auto;
    background-color: black;
    color: white;
    font-size: .875rem;
    user-select: none;
    display: inline-flex;
    align-items: center;
    border-width: 0;
    cursor: pointer;
}

button.for-form:disabled {
    background-color: #999999 !important;
    color: white;
    opacity: 1 !important;
}

select {
    background-color: #eeeeee !important;
}

textarea {
    font-family: inherit;
}

input {
    font-family: inherit;
}

textarea.for-form {
    background-color: #eeeeee !important;
    font-size: .875rem;
    padding: 8px;
    border-radius: 4px;
    border-width: 0px;
    outline: none;
}

input[type=text].for-form, [type=password].for-form {
    background-color: #eeeeee !important;
    font-family: inherit;
    font-size: .875rem;
    padding: 8px;
    border-radius: 4px;
    border-width: 0px;
    outline: none;
}

input[type=number].for-form, [type=password].for-form {
    background-color: #eeeeee !important;
    font-size: .875rem;
    padding: 8px;
    border-radius: 4px;
    border-width: 0px;
    outline: none;
}

select.for-form {
    background-color: #eeeeee !important;
    font-size: .875rem;
    padding: 8px;
    border-radius: 4px;
    border-width: 0px;
    outline: none;
}

input[type=textarea].for-form {
    background-color: #eeeeee !important;
    font-family: inherit;
    font-size: .875rem;
    padding: 12px;
    border-radius: 4px;
    border-width: 0px;
    outline: none;
}

.link-text {
    color: black;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}

a {
    color: black;
    text-decoration: underline;
}

body {
    margin: 0;
    height: 100%;
    background-color: white;
    font-family: Patron-Bold;
}

button {
    padding: 8px;
}

.centered {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.left-modeless-dialog {
    max-width: min(450px, 40%);
    min-width: min-content;
    width: 25%;
    max-height: calc(100% - 140px);
    user-select: none;
    padding: 8px;
    width: fit-content;
    background-color: rgb(255, 255, 255, 0.95);
    z-index: 5;
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 10px;
    top: 10px;
}

#geocoder {
    position: absolute;
    z-index: 6;
    left: 10px;
    bottom: 40px;
    max-width: 25%;
    width: 25%;
}

.mapboxgl-ctrl-geocoder--button {
    padding: 0 !important;
}

/* Reposition search results from geocoder */
.suggestions {
    border: solid 1px lightgray;
    -webkit-transform: translateY(-50vh);
    transform: translateY(-50vh);
}

.dialog {
    width: fit-content;
    min-width: 50%;
    background-color: white;
    position: fixed;
    left: 50vw;
    top: 45vh;
    max-width: 98%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: solid 1px lightgray; padding: 24px;
}

.dialog-name {
    font-size: 20px;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: solid 1px lightgray;
    user-select: none;
}

.dialog-footer {
    display: flex; 
    flex-direction: row; 
    align-items: normal; 
    width: 100%; 
    gap: 8px; 
    padding-top: 16px; 
    bottom: 0;

    border-top: solid 1px lightgray;    
}

.two-columns {
    display: grid;
    grid-template-columns: auto auto;
    grid-row-gap: 2px;

    :nth-child(1n) {
        justify-content: left;
        display: flex;
        align-items: center;
    }
}

.one-column {
    margin-top: 12px;
    display: grid;
    grid-template-columns: auto;
    grid-row-gap: 2px;
}

.modal {
    display: none;
    position: fixed; 
    left: 0;
    right: 0; 
    top: 0;
    bottom: 0;
    width: auto !important;
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1006; /* This needs to be higher than the z-index of the event calendar now indicator (red line) */
    -webkit-overflow-scrolling: touch;
    outline: 0;    
}

.show {display:block;}

.header-with-controls {
    display: flex;
    flex-direction: row;
    padding: 12px;
    grid-column-gap: 0px;
    align-items: center;
}

.buttons-container {
    margin-left: auto;
    white-space: nowrap;
    user-select: none;
}

.button-dropdown-content-button-container {
    position: relative; display: inline-block;
}

.button-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 3;
    right: 0;
}

.top-nav-item-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 6;
    right: 0;
    top: 22px;
    margin: -6px;
}

.top-nav-item:hover .top-nav-item-dropdown-content {
    display: block;
}

.dropdown-menu-item {
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 4px 8px 4px 8px;
    white-space: nowrap;
    user-select: none;
    background-color: white;
    border-width: 2px 0 2px 0;
    border-color: white;
    border-style: solid;
    color: black;    
}

.active-dropdown-menu-item {
    background-color: #d0f6ee;
    border-width: 2px 0 2px 0;
    border-color: #90e7d3;
    border-style: solid;
    color: black;
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 8px;
    user-select: none;
}

.dropdown-menu-item:hover {
    cursor: pointer;
    border-width: 2px 0 2px 0;
    border-color: #eeeeee;
    border-style: solid;

    background-color: #eeeeee;
}

.dropdown-menu-item:hover > material-symbols-outlined {
    color: white;   
}

.dropdown-menu-item > material-symbols-outlined:hover {
    color: white;
}

.dropdown-menu-item > material-symbols-outlined {
    color: black;
    padding-right: 4px;
    font-size: 16px !important;
    vertical-align: middle;
    line-height: normal !important;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: white;
    overflow: auto;
    border: solid lightgray;
    border-width: 0 1px 0 0;
    flex-shrink: 0;
}

/* Not currently used as we don't avatars yet */
.user-nav-item-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Main content area and main menu */
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: white;
    position: relative;
}

.container-right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 60%;
    background-color: white;
}

.top-nav-items {
    justify-content: flex-end;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    margin-left: auto;
    flex-wrap: wrap;
}

.top-nav-title {
    display: flex;
    align-self: start;
    flex-direction: row;
    white-space: nowrap;
    flex-wrap: wrap;
}

.page-title {
    padding: 0;
    margin-left: 8px;
    white-space: nowrap;
}

.top-nav {
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 4px;
    border: solid lightgray;
    border-width: 0 0 1px 0;
    user-select: none;
    background-color: black;
    color: white;
}

.top-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    user-select: none;
    cursor: pointer;
    margin: 0 8px 0 8px;
    line-height: normal;
}

.active-top-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    user-select: none;
    margin: 0 8px 0 8px;
}

.content {
    align-items: top;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;    
    background-color: white;
}

.content-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.responsive-columns-container {
    display: flex;
    flex-direction: row;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 1;
    column-gap: 10px;
    background-color: #eee;
    padding: 10px 10px 0 10px;
}

.one-quarter-column {
    display: flex;
    flex-grow: 1;    
    flex-shrink: 0;
    flex-basis: 25%;
    flex-direction: column;
    background-color: transparent;
    border-radius: 8px;
}

.three-quarters-column {
    display: flex;
    flex-grow: 2;    
    flex-shrink: 0;
    flex-basis: 75%;
    flex-direction: column;
    background-color: transparent;
    border-radius: 8px;
}

.one-third-column {
    display: flex;
    flex-grow: 1;    
    flex-shrink: 0;
    flex-basis: 0;
    flex-direction: column;
    width: 33%;
    background-color: transparent;
    border-radius: 8px;
}

.two-thirds-column {
    display: flex;
    flex-grow: 2;    
    flex-shrink: 0;
    flex-basis: 0;
    flex-direction: column;
    width: 66%;
    background-color: transparent;
    border-radius: 8px;
}

.top-nav-pickers-and-nav-items {
    margin-left: auto;
    display: flex;
    flex-direction: row;
}

.top-nav-pickers {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    background-color: white;
}

.form-builder-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 1rem 4rem 2rem 4rem;
}

.responsive-tabs-container {
    display: flex;
    flex-direction: row;
    margin-top: 16px;
    margin-bottom: 16px;
}

.responsive-tab {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
    padding: 8px;
    white-space: nowrap;
    background-color: white;
    user-select: none;
    margin: 0 1px 0 1px;
}

.responsive-tab-active {
    background-color: #d0f6ee;
    border: solid 2px #90e7d3;
    cursor: unset;
    margin: 0;
}

.responsive-tab:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.responsive-tab:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.responsive-tab-panels-container {
    display: flex;
    flex-grow: 1;
}

.responsive-tab-panel {
    background-color: white;
    display: flex;
    border-radius: 8px;
    border: 1px solid color(srgb 0.0941176 0.113725 0.121569 / 0.15); /* This is the same color as the AG-Grid border */
    padding: 8px;

    flex-direction: column; 
    flex: 1 1 auto; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    overflow-y: auto; 
    /* height: 0; */
}

.responsive-simple-tabs-container {
    display: flex;
    flex-direction: row;
    margin-left: 4px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.responsive-simple-tab-panels-container {
    display: flex;
    flex-grow: 1;
}

.responsive-simple-tab {
    display: flex;
    flex-direction: row;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
    padding: 8px;
    white-space: nowrap;
    background-color: white;
    user-select: none;
    border: 0;
    color: black;
    margin-bottom: 2px;
}

.responsive-simple-tab-active {
    cursor: unset;
    color: #8147DB;
    border-bottom: solid 2px #8147DB;
    margin-bottom: 0;
}

.responsive-simple-tab-panel {
    background-color: white;
    display: flex;
    flex-direction: column; 
    flex: 1 1 auto; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    overflow-y: auto; 
    /* height: 0; */
}

.responsive-simple-tab-label {
    display: block;
}

.responsive-simple-tab-label-active {
    display: block;    
}

.two-wide-columns {
    display: flex;
    flex-direction: row;
    column-gap: 24px;
}

.column-in-two-wide-columns {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.service-category-pictogram {
    max-width: 350px;
}

/* Responsive layouts */

@media screen and (max-width: 960px) {
    .service-category-pictogram {
        max-width: 200px;
    }

    .left-modeless-dialog {
        width: 60%;
        max-width: min(450px, 60%);
    }

    #geocoder {
        width: 60%;
        max-width: min(300px, 60%);
    }

    .two-wide-columns {
        flex-direction: column;
    }

    .column-in-two-wide-columns {
        width: 100%;
    }

    .dialog {
        min-width: 98%;
    }

    .responsive-tab {
        margin: 1px 0 1px 0;
    }

    .responsive-tab-active {
        margin: 0;
    }
    
    .responsive-simple-tab-label {
        display: none;
    }

    .responsive-tab:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 0;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 0;
    }
    
    .responsive-tab:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 8px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 8px;
    }
   
    .form-builder-container {
        margin: 0;
    }

    .responsive-tabs-container {
        flex-direction: column;
    }

    .responsive-simple-tabs-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .responsive-columns-container {
        flex-direction: column;
        row-gap: 10px;
    }

    .one-quarter-column {
        width: 100%;
    }

    .three-quarters-column {
        width: 100%;
    }

    .one-third-column {
        width: 100%;
    }

    .two-thirds-column {
        width: 100%;
    }

    .ec-toolbar {
        flex-direction: column
    }
}

@media screen and (max-width: 800px) {
    .top-nav {
        flex-direction: column;
    }

    .top-nav-club-switcher-dropdown-content {
        right: unset;
    }

    .full-viewport-modal-footer-button-container {
        margin-right: 10%;
    }

    .header-with-controls {
        flex-direction: column;
        align-items: end;
    }

    .top-nav-pickers-and-nav-items {
        flex-direction: column;
        margin-left: unset;
    }

    .top-nav-pickers {
        margin-left: auto;
        margin-right: auto;
    }

    .buttons-container {
        margin-left: 0;
    }

    .container-right {
        width: 100%;
    }
}

/* Div radio buttons */

.div-radio-group {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    width: 100%;
}

.div-radio-group-item {
    align-items: center;
    display: flex;
    border: solid 1px black;
    padding: 4px;
    cursor: pointer;
    background-color: white;
    color: black;
}

.active {
    background-color: black;
    color: white;
}
  
/* Collapsible panel */

.collapsible-container {
    background-color: black;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: start;
    margin-bottom: 8px;
}

.collapsible {
    cursor: pointer;
    padding: 0 8px 0 8px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    user-select: none;    
}

.collapsible-content {
    margin-top: 4px;
    padding: 0 8px;
    display: none;
    background-color: white;
    user-select: none;    
    margin-bottom: 8px;
}


