
html
{
	overflow: -moz-scrollbars-vertical;
	overflow: scroll;
}
body
{
	background-color:#88d2ff;
	/*padding-top:100px !important;*/
	color :#66472B;
}

.main-content
{
	padding-left:0px;
	padding-right:0px;
}
.menu-group
{
	box-shadow: none;
	border-radius: 15px;
}

.menu-group h3
{
    text-align: center;
    font-size: 20px;
    margin-left: 20px;
    margin-right:20px;
    padding: 10px;
    font-weight: 100;
    padding-top: 7px;
	font-family: 'acme';
}
.list-group-item
{
	border:none;
	background-color:inherit;
	padding-top:1px;
	padding-bottom:1px;
	padding-left:20px;
}

a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus, button.list-group-item:hover
{
	background-color:inherit;
	font-weight:600;
	color:#8D623B;
}
.list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover
{
	background-color:inherit;
	border-color: #DAD97E;
	color:#8D623B;
	font-weight: 600;
}

.navbar-inverse
{
	background-color:transparent;
	border:none;

}

.navbar
{

}

.nav-stats
{
	margin-top:10px;
	padding:10px;
	margin-bottom:0px;
}

:root {
	--eq-card-bg:
		radial-gradient(920px 220px at 0% 0%, rgba(235, 183, 61, 0.28), transparent 58%),
		linear-gradient(165deg, #fffaf0 0%, #f4e7d0 100%);
}

.panel
{
	box-shadow: none;
	background: var(--eq-card-bg);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
	padding: 15px;
	color: #333;
	border: 1px solid #e0d9bc;
	border-radius: 12px;
}

.panel .panel
{
	background: #fffef9;
}

@media( max-width: 992px ){
	.panel {
		padding: 10px;
		border-radius: 0;
	}
}
.panel-footer, .panel-default>.panel-heading
{
	background-color: transparent;
}

/* Modal z-index fix - altijd boven alles */
.modal {
	z-index: 10000 !important;
	padding-right: 0 !important;
}
.modal.in,
.modal.show,
.modal[style*="display: block"],
.modal[style*="display:block"] {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.modal-dialog {
	margin: 30px auto !important;
	position: relative;
}
.modal-backdrop {
	z-index: 9999 !important;
}
.cover {
	z-index: 10000 !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
}
.cover .window {
	z-index: 10001 !important;
	position: relative;
}


.btn-primary, .btn-default
{
	display: inline-flex;
    border: 0;
    padding: 6px 12px;
    border-radius: 26px;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    background: #744213!important;
    color: #fff!important;
    cursor: pointer;
}

.btn-primary:hover, .btn-default:hover
{
	/* $secondary: #EBB73D; */
/* $secondary-dark: #ce9000; */
	background: #EBB73D!important; /* Old browsers */
	color:#ffffff!important;
}

.btn-primary.active, .btn-primary:active, .btn-primary:focus, .open>.dropdown-toggle.btn-primary, .btn-default.active, .btn-default:active, .btn-default:focus, .open>.dropdown-toggle.btn-default

{
	background: #EBB73D!important; /* Old browsers */
	color:#ffffff!important;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6
{
   /* font-family: 'Acme'; */
   margin-top:0px;
}

label
{
	font-weight:normal;
}

.ui
{
	width: 241px;
	height: 55px;
	background-repeat: no-repeat;
	padding-top:17px;
	/* font-family: 'Acme'; */
	font-size:19px;
	color: #fff;
}

.ui-coins
{
	background-image: url('/images/ui/coins_bg.png');
}

.ui-xp
{
	background-image: url('/images/ui/xp_bg.png');
}

.ui-empty
{
	background-image: url('/images/ui/empty_bg.png');
}

.doublexp_ui
{
	text-align: right;
    color: #fff;
    font-weight: bold;
    margin-top:-6px;
    margin-right:20px;
}


.menu-title
{
	background-image: url('/images/custom_layout/ribbon.png');
	background-repeat:no-repeat;
	position:absolute;
	margin-left:0px;
	margin-top:-20px;
	width: 100%;
	color:#fff;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
	max-width: 185px;
}

.list-group-item:first-child {
	border-radius: 30px;
}

.table-striped>tbody>tr, .table>tbody>tr.success>td, .table>tbody>tr.success>th, .table>tbody>tr>td.success, .table>tbody>tr>th.success, .table>tfoot>tr.success>td, .table>tfoot>tr.success>th, .table>tfoot>tr>td.success, .table>tfoot>tr>th.success, .table>thead>tr.success>td, .table>thead>tr.success>th, .table>thead>tr>td.success, .table>thead>tr>th.success
{
	background-color: #fff !important;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th
{
	border-top: 1px solid #FFF6D7;
}

a:not(.btn) 
{
	color: #76091a !important;
}
a:not(.btn):hover
{
	color:#23527c!important;
}

/* Admin en moderator link kleuren moeten altijd zichtbaar zijn */
a.admin,
a.admin strong {
	color: #b00 !important;
	font-weight: bold !important;
}

a.moderator,
a.mod,
a.moderator strong,
a.mod strong {
	color: #8a009e !important;
	font-weight: bold !important;
}

a.forum-moderator,
a.forum-mod,
a.forum-moderator strong,
a.forum-mod strong {
	color: #2474d6 !important;
	font-weight: bold !important;
}

a.chat-moderator,
a.chat-mod,
a.chat-moderator strong,
a.chat-mod strong {
	color: blue !important;
	font-weight: bold !important;
}

a.hoofdmoderator,
a.main-mod,
a.hoofdmoderator strong,
a.main-mod strong {
	color: #0d7e8a !important;
	font-weight: bold !important;
}

a.community-manager,
a.community-manager strong {
	color: #9333ea !important;
	font-weight: bold !important;
}

a.fod,
a.fod strong {
	color: #2474d6 !important;
	font-weight: bold !important;
}

.admin,
.admin strong {
	color: #bd0006 !important;
	font-weight:bold;
}

.hoofdmoderator,
.hoofdmoderator strong {
	color: #0d7e8a !important;
	font-weight:bold;
}

.moderator,
.moderator strong {
	color: purple !important;
	font-weight:bold;
}

.forum-moderator,
.forum-moderator strong,
.forum-mod,
.forum-mod strong {
	color: #2474d6 !important;
	font-weight:bold;
}

.chat-moderator,
.chat-moderator strong,
.chat-mod,
.chat-mod strong {
	color: blue !important;
	font-weight:bold;
}

.community-manager,
.community-manager strong {
	color: #9333ea !important;
	font-weight:bold;
}

.icon-info
{
	color: #1C97DD;
}

.modal-footer
{
	text-align: left;
}

.dataTables_filter {
   float: right;
   text-align: right;
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover
{
	background-color: #E1BB7F;
	border-color:#FFF6D7;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover
{
	background-color: #E1BB7F;
}

.nav>li>a:focus, .nav>li>a:hover
{
	background-color: #e0c293;
}

@media screen and (max-width: 767px)
{
	/*.tutorial
	{
		display:none;
	}*/
}

.button_training
{
	display:none !important;
}
@media screen and (max-width: 767px)
{
	.button_training
	{
		display:block !important;
	}
}

/* Tutorial */
.tutorial > .panel
{
	padding-bottom:0px;
	border-bottom:none;
}
.tutorial img
{
	width: 100%;
	height:auto;
}
/* End Tutorial */


/* Tooltip wrapper: geen volle breedte, geen eigen achtergrond */
.tooltip {
	width: auto !important;
	max-width: none !important;
	background: transparent !important;
}
/* Dichter bij het getriggerde element */
.tooltip.top { margin-top: -8px !important; }
.tooltip.bottom { margin-top: 8px !important; }
.tooltip.left { margin-left: -8px !important; }
.tooltip.right { margin-left: 8px !important; }
.tooltip-inner {
	max-width: 280px;
	width: max-content;
	padding: 8px 10px;
	background-color: #FAE6A4;
	color: #734726;
}

.tooltip.in
{
	opacity:1;
}

/* Inspector badge tooltip: geen pijl (volgt cursor) */
.tooltip.inspector-badge-tooltip .tooltip-arrow { display: none !important; }

/* Inspector badges: ruimte tussen medailles */
.inspector-badges-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
	align-items: center;
}
.inspector-badges-wrap .inspector_badge { margin: 0 !important; }

/* Prestaties tab */
.row-prestaties-cards { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row-prestaties-cards .col-prestatie-card { padding: 0 8px 16px; flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
	.row-prestaties-cards .col-prestatie-card { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
	.row-prestaties-cards .col-prestatie-card { flex: 0 0 20%; max-width: 20%; }
}
.prestaties-discipline-card { margin-bottom: 16px; height: 100%; }
.prestaties-discipline-card:last-child { margin-bottom: 0; }
.prestaties-card-title { margin-top: 0; margin-bottom: 4px; font-size: 1em; font-weight: bold; }
.prestaties-trainpunten { margin-bottom: 10px; }
.prestaties-scores-box {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(0,0,0,.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.prestaties-scores-box .prestaties-score-label { font-weight: bold; align-self: flex-start; }
.prestaties-scores-box .prestaties-score-img {
	display: block;
	max-height: 48px;
	max-width: 64px;
	object-fit: contain;
}
.prestaties-scores-box .prestaties-score-value,
.prestaties-scores-box .prestaties-score-value + small { align-self: center; }
.prestaties-scores-box .prestaties-score-value { font-size: 1.1em; }
.prestaties-progress {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2em;
	margin-bottom: 10px;
}
.prestaties-progress .progress-bar { position: absolute; left: 0; top: 0; height: 100%; pointer-events: none; }
.prestaties-progress .prestaties-progress-value { position: relative; z-index: 2; }
.prestaties-medailles-row { margin-top: 20px; }
.prestaties-medailles-row .prestaties-card-title { margin-bottom: 12px; }

/* Horse picture tooltip trigger (span, no link = no jump/flip) */
.horse-pic-tooltip-trigger {
	cursor: pointer;
	display: inline;
}

/* Horse picture tooltip: image contained inside the tooltip box */
.tooltip-inner .horse-pic-tooltip-content {
	display: block;
	max-width: 240px;
	width: 240px;
	padding: 0;
	margin: 0;
	line-height: 0;
	overflow: hidden;
	box-sizing: border-box;
}
.tooltip-inner .horse-pic-tooltip-content img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
	vertical-align: top;
	border-radius: 4px;
	background: #f5f5f5;
	box-sizing: border-box;
}
/* Tooltip box: 8px rand rond de afbeelding zodat de achtergrond overal zichtbaar is */
.tooltip-inner:has(.horse-pic-tooltip-content) {
	display: block;
	width: 256px;
	max-width: 256px;
	min-width: 256px;
	padding: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0,0,0,.12);
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
	color: #333;
	box-sizing: border-box;
}
.tooltip:has(.tooltip-inner .horse-pic-tooltip-content).top .tooltip-arrow {
	border-top-color: rgba(0,0,0,.12);
}
.tooltip:has(.tooltip-inner .horse-pic-tooltip-content).bottom .tooltip-arrow {
	border-bottom-color: rgba(0,0,0,.12);
}

.content img, .content table, .content div
{
	max-width:100%;
}

.content img, .content table
{
	width:100% !important;
}

.col-sm-12
{
	width: 100% !important;
}

.horse_sick
{
	color:red !important;
}

/* Zieke paarden in fok-/dekhengsttabellen: subtiele rij-achtergrond */
tr.horse-row-sick {
	background-color: #fff5f5 !important;
}
tr.horse-row-sick:hover {
	background-color: #ffe8e8 !important;
}

.form-control
{
	background-color: #E9D7B4;
	border: 1px solid #C19B6C;
	color:#000;
}

ul.ui-autocomplete {
    z-index: 1100;
}
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
    background-color: #844e19;
    border-color:#E1BB7F;

}
.ui-widget-content .ui-state-active {
    background-color: #844e19; /* any color you like */
    border-color:#E1BB7F;
}

.nav-tabs.nav-justified
{
	margin-bottom: 20px;
	margin-top:-15px;
	margin-left:-15px;
	margin-right:-15px;
	width:104%;
}
.nav-tabs.nav-justified > li > a, .nav-tabs.nav-justified>.active>a
{
	border-radius: 10px;
	border-bottom:none;
}


/* Horse Image */
.horse_image_wrapper{
	position:relative;
}
.horse_image_wrapper > .horse_image_overlay{
	position:absolute;
	top:0px;
	left:0px;
}

.bg-success
{
	color: #3c763d;
	background-color: #dff0d8 !important;
	border-color: #d6e9c6 !important;
}

.crew{
	text-align: center;
}

.crew a.user{
	text-align: center;
	vertical-align: top;
	display: inline-block;
	margin: 15px;
}

.crew a.user .avatar{
	display: inline-block;
	width: 120px;
	height: 120px;
	position: relative;
	border-radius: 60px;
	border: 5px solid #844e19;
	overflow: hidden;
	background-size: cover;
	background-position: center center;
}

.crew a.user strong{
	display: block;
	color: #844e19;
}

.crew a.user small{
	line-height: 14px;
	display: inline-block;
	background: #eee;
	border-radius: 4px;
	font-size: 10px;
	padding: 1px 4px;
}

.crew a.user:hover{
	text-decoration: none;
	color: #000;
}
.crew a.user:hover strong{
	color: #000;
}

.crew a.user.admin:hover .avatar{
	border-color: #bd0006
}
.crew a.user.main-mod:hover .avatar{
	border-color: #0d7e8a
}
.crew a.user.mod:hover .avatar{
	border-color: #8a009e
}
.crew a.user.forum-mod:hover .avatar{
	border-color: #2474d6
}
.crew a.user.chat-mod:hover .avatar{
	border-color: #1abb87
}

.crew a.user.admin small{
	background: #bd0006
}

.crew a.user.main-mod small{
	background: #0d7e8a
}

.crew a.user.mod small{
	background: #8a009e
}

.crew a.user.forum-mod small{
	background: #2474d6
}

.crew a.user.chat-mod small{
	background: #1abb87
}

#thread {
	word-break: break-word;
}

#thread .author-info {
	max-width: 300px;
	min-width: 70px;
}

/* Houd <pre>-blokken binnen mobiel viewport in forum threads */
#thread .content pre {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	#thread table.table {
		width: 100%;
		table-layout: fixed;
	}

	#thread td.content {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	/* Op mobiel: pre mag regels afbreken zodat threadbreedte niet uitrekt */
	#thread .content pre,
	#thread .content pre code {
		max-width: 100%;
		white-space: pre-wrap;
		word-break: break-word;
		overflow-wrap: anywhere;
	}
}
/* Table styling aangepast aan panel kleuren */
.table {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #E9ECEF;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table > thead > tr > th {
	background: #faf8ee;
	color: #4a341f;
	font-weight: 600;
	border-bottom: 2px solid #E9ECEF;
	border-top: 0;
	font-size: 13px;
	padding: 8px 6px;
	text-shadow: none;
}

.table > tbody > tr {
	color: #3b2b1a;
	border: 1px solid #E9ECEF;
	background-color: #fff !important;
}

.table > tbody > tr > td {
	background-color: inherit !important;
	border-top: 0;
	font-size: 13px;
	padding: 6px;
	vertical-align: middle;
	border: 1px solid #E9ECEF;
}

.table-striped > tbody > tr:nth-of-type(odd) {
	background-color: #faf8ee !important;
	border: 1px solid #E9ECEF;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
	background-color: #faf8ee !important;
	border: 1px solid #E9ECEF;
}

.table-striped > tbody > tr:nth-of-type(even) {
	background-color: #fff !important;
	border: 1px solid #E9ECEF;
}

.table-striped > tbody > tr:nth-of-type(even) > td {
	background-color: #fff !important;
	border: 1px solid #E9ECEF;
}

.table > tbody > tr:hover {
	background-color: #f5ead0 !important;
}

.table > tbody > tr:hover > td {
	background-color: #f5ead0 !important;
}

.notification-badge {
    background-color: #b00;
    color: white;
    padding: 5px 7px!important;
    border-radius: 50%;
    font-size: 12px;
    position: absolute;
    top: 35px!important;
    right: 0;
}

/* Stal-afbeelding (paspoort, verzorgen, veulentraining, …) */
.paspoort-horse-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
    height: 400px;
    border-radius: 16px;
    isolation: isolate;
}

/* Cosmetica: 400×400-referentie uit de editor, daarna meeschalen met het paardbeeld */
.horse-cosmetic-stack {
    --cosmetic-ref: 400px;
    --cosmetic-scale: 1;
    --cosmetic-flip: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: var(--cosmetic-ref);
    height: var(--cosmetic-ref);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(calc(var(--cosmetic-scale) * var(--cosmetic-flip)), var(--cosmetic-scale));
    transform-origin: center center;
}

.horse-cosmetic-stack--mirrored,
.horse-cosmetic-stack[data-cosmetic-mirror="1"] {
    --cosmetic-flip: -1;
}

.horse-cosmetic-gear-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    pointer-events: none;
    /* Zelfde pas-maat als de editor (min. 400px), in vaste pixels.
       Een percentage volgt het scherm of de zoom en past grote lagen
       (deken, dekje, zadel) een tweede keer in. */
    width: auto;
    height: auto;
    max-width: var(--cosmetic-ref, 400px) !important;
    max-height: var(--cosmetic-ref, 400px) !important;
    object-fit: contain;
}

.paspoort-horse-image-wrap--stable-bg {
    background: url('/images/horses/stable-image.png') center center no-repeat;
    background-size: cover;
}

.paspoort-horse-image-wrap > .img_horse {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.paspoort-horse-image-wrap--custom > .img_horse {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.paspoort-horse-image-wrap--toggle {
    cursor: pointer;
}

@media (max-width: 767px) {
    .paspoort-horse-image-wrap:not(.paspoort-horse-image-wrap--compact) {
        min-height: 280px;
        height: 280px;
    }
}

/* Veulen alleen (zonder moeder): zelfde schaal als voorheen */
.paspoort-horse-image-wrap.horse-image-wrap--foal,
.horse-image-wrap--foal {
    align-items: flex-end !important;
    justify-content: center;
}

.paspoort-horse-image-wrap.horse-image-wrap--foal > .img_horse,
.horse-image-wrap--foal > .img_horse {
    transform: scale(var(--foal-scale, 0.48));
    transform-origin: bottom center;
}

/* Moeder + veulen: moeder = normaal stalformaat, veulen = overlay met één schaal */
.paspoort-horse-image-wrap.horse-image-wrap--with-mother {
    align-items: flex-end !important;
    justify-content: center;
}

.horse-stable-pair {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.horse-stable-pair > .horse-cosmetic-stack {
    z-index: 1;
}

.horse-stable-pair > .img_horse--mare {
    position: relative;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    transform: translateX(10%);
    transform-origin: bottom center;
}

.horse-stable-pair__foal-slot {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Zelfde basisgrootte als solo-veulen (volledige stalhoogte), daarna schalen + links positioneren */
.horse-stable-pair__foal-slot .img_horse--foal {
    position: absolute;
    bottom: 0;
    left: 50%;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    transform: translateX(-64%) scaleX(-1) scale(var(--foal-scale, 0.48));
    transform-origin: bottom center;
}

.paspoort-horse-image-wrap--compact {
    min-height: 200px;
    height: 200px;
    max-height: 200px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.paspoort-horse-image-wrap--compact.horse-image-wrap--with-mother .horse-stable-pair > .img_horse--mare {
    max-height: 90%;
    transform: translateX(8%) scale(0.9);
    transform-origin: bottom center;
}

.profile-horse-tile__image--foal .profile-horse-tile__img {
    transform: scale(var(--foal-scale, 0.48));
    transform-origin: bottom center;
}

.takecare-thumb-wrap--foal.takecare-thumb-wrap--photo img {
    transform: scale(var(--foal-scale, 0.48));
    transform-origin: bottom center;
}