/** simple datatables mobile responsive with cards **/
@media (max-width: 767px) {
    /* Apply responsive design only to tables with the "mobile-responsive" class */
    table.mobile-responsive thead {
        display: none;
    }

    table.mobile-responsive tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        padding: 0.5rem;
    }

    table.mobile-responsive td {
        display: block;
        text-align: left;
        padding-left: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    table.mobile-responsive td:before {
        content: attr(data-label); /* Uses the data-label attribute to provide context */
        font-weight: bold;
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        text-align: left;
    }

    table.mobile-responsive td:last-child {
        border-bottom: none;
    }
}

/** print training **/
    /* PDF Print Styling */
.pdf-print-style {
    /* General styles */
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #000;
    background: none;
}

.pdf-print-style #training-content {
    width: 100%;
    padding: 20px;
}

/* Hide elements that should not appear in the PDF */
.pdf-print-style .print-button, 
.pdf-print-style .site-navigation, 
.pdf-print-style .footer, 
.pdf-print-style .remove-on-print {
    display: none !important;
}

/* Ensure each exercise-content starts on a new page */
.pdf-print-style .exercise-content {
    break-before: page;
    page-break-before: always;
}

/* Avoid a page break after the last exercise */
.pdf-print-style .exercise:last-of-type::after {
    display: none;
}

/* Scale down images to fit within the page */
.pdf-print-style .exercise img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    page-break-inside: avoid;
}

/* Adjust iframes (e.g., YouTube videos) */
.pdf-print-style iframe {
    max-width: 100%;
    height: auto;
}

/* Optional: Adjust margins for printed pages */
@page {
    margin: 20mm;
}

@media print {
    /* Hide elements that should not appear in the printout */
    .print-button, .site-navigation, .footer, .remove-on-print {
        display: none !important;
    }

    /* Ensure each exercise-content starts on a new page */
    .exercise-content {
        break-before: page; /* Modern property for page breaks */
        page-break-before: always; /* Fallback for older browsers */
    }

    /* Avoid a page break after the last exercise */
    .exercise:last-of-type::after {
        display: none;
    }

    /* Other styling specific to printing */
    #training-content {
        width: 100%;
        padding: 20px;
    }

    /* General print styling */
    body {
        font-family: Arial, sans-serif;
        line-height: 1.5;
        color: #000;
        background: none;
    }

    /* Reset borders and shadows for cleaner print output */
    .exercise, .card, .card-header, .card-body {
        box-shadow: none;
        border: none;
    }

    /* Scale down images to fit within the page */
    .exercise img {
        max-width: 100%;
        max-height: 90vh; /* Ensures the image height does not exceed 90% of the viewport height */
        object-fit: contain; /* Maintains aspect ratio */
        page-break-inside: avoid; /* Prevents images from breaking across pages */
    }

    /* Adjust iframes (e.g., YouTube videos) */
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Optional: Adjust margins for printed pages */
    @page {
        margin: 20mm;
    }
}

/** design buttons **/

.fa-icon-margin {
  margin-right: 0.5rem; 
}

#toast-container .toast-header {
  display: flex;
  align-items: center; /* Vertically align all items in the header */
  padding: 0.5rem 1rem; /* Adjust padding for a balanced layout */
}

#toast-container .toast-header i {
  margin-right: 0.5rem; /* Space between the icon and the title */
  font-size: 1.2rem; /* Adjust icon size if necessary */
}

#toast-container .toast-header .toast-title {
  margin-right: auto; /* Ensures the title stays aligned to the left */
  font-weight: bold; /* Keeps the title bold */
  display: flex;
  align-items: center; /* Ensures the title text is aligned vertically with the icon */
}




/** exercises **/
.img-exer {
	height: 205px;
	overflow: hidden; 
}


.oefening h3,
.oefening h1 {
    background: rgb(22, 64, 129) none repeat scroll 0 0;
    color: rgb(255, 255, 255);   
    border: 1px solid #cccccc;
    border-radius: 3px; 
}

.oefening h5 {
    color: rgb(22, 64, 129);
    font-size: 18px;
    font-weight: 600;
    background: #f1f1f1 none repeat scroll 0 0;
    border: 1px solid #cccccc;
    border-radius: 3px;
}
/** end execises **/
 
/** activity data **/
.card.present {
    border-color: #d6e9c6;
}

.card.present .card-header {
    background-color: #dff0d8;
    color: #3c763d;
}

.card.not-responded {
    border-color: #faebcc;
}

.card.not-responded .card-header {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.card.absent {
    border-color: #ebccd1;
}

.card.absent .card-header {
    background-color: #f2dede;
    color: #a94442;
}
/** end activity data **/


/** editor **/
.drawingset {
	text-align: center;
}
.drawingset #drawing {
	margin-bottom: 15px;
}
.drawingpopup .draw {
	float: left;
	width: 65%;
}
.drawingpopup .drawingsidebar {
	float: right;
	width: 33%;
}

.drawingpopup .draw .canvas-container canvas {
	height: auto !important;
	width: 100% !important;
}
.drawingpopup {
	background: #ffffff none repeat scroll 0 0;
	box-shadow: 0 0 20px 0 #888888;
	display: none;
	left: 0;
	margin: 80px auto;
	max-width: 997px;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 95%;
	z-index: 99999;
}
.drawingpopup.showdrawingpopup {
	display: block;
}
.drawingclose > a {
	background: #ffffff none repeat scroll 0 0;
	border-radius: 50%;
	float: right;
	font-weight: bold;
	height: 23px;
	line-height: 23px;
	text-align: center;
	width: 23px;
}
.drawingclose {
	background: #164081 none repeat scroll 0 0;
	display: inline-block;
	padding: 6px;
	width: 100%;
}
.drawing-body {
	display: inline-block;
	padding: 15px;
    width: 100%;
}
.savedrawing {
	border-top: 1px solid #cccccc;
	display: inline-block;
	padding: 15px;
	text-align: right;
	width: 100%;
}
.siderbar-top {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}
.cabinetcontrol .siderbar-content {
  margin-bottom: 20px;
}
 
.col-fields-img {
  float: left; text-align:center;
}
.cabinetcontrol .siderbar-content {
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  display: inline-block;
  padding: 10px 15px 15px;
  width: 100%;
}
.velden-col .col-fields-img {
  margin-bottom: 10px;
  padding: 0 5px;
  width: 50%;
}
.velden-col .col-fields-img:nth-child(2n-1) {
  clear: left;
  color: rgb(0, 255, 0);
}

.fields-group {
  display: inline-block;
  width: 100%;
}
.attributen-col .col-fields-img {
  margin-bottom: 5px;
  padding: 5px 0;
  width: 40px;
}
.player-group .col-fields-img {
  margin-bottom: 0;
  padding: 5px 0;
  text-align: center;
  width: 35px;
}
.bewegingen-col .col-fields-img {
  margin-bottom: 10px;
  text-align: center;
  width: 50px;
}
.col-fields-img:hover {
  border-radius: 3px;
  box-shadow: 0 0 2px rgb(23, 64, 130);
  cursor: move;
}
#rasterize {
  float: right;
}
.object-controls {
  margin-bottom: 5px;
}
/** end editor **/

/** loading **/
.loading-blur {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 998;
}
.loading-img{
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background: url('http://localhost/wp-content/themes/twentysixteen-child/img/loading.gif') center center no-repeat;
}  
.loading-overlay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	opacity: 0.5;
	filter: alpha(opacity:50);
	background: #ffffff;
}
/** end loading **/

/** legenda **/
.tooltip-legenda {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black;
}
.tooltip-legenda .tooltiptext-legenda {
    display: none;
    position: absolute;
    width: 350px;
    bottom: 10px;
	border-radius: 3px;
    border: 3px solid black;
}
.tooltip-legenda:hover .tooltiptext-legenda {
	display:block;
}

.tooltiptext-legenda img {
  max-width: 100%;
}
/** end legenda images **/

/** 4-phases images **/
.tooltip-phase {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black;
}
.tooltip-phase .tooltiptext-phase {
	background-color: rgb(0, 0, 0);
	border-radius: 6px;
	color: rgb(255, 255, 255);
	display: none;
	padding: 5px;
	position: absolute;
	top: 10%;
  left: 50%;
	text-align: center;
	width: 600px;
	z-index: 1;
}
.tooltip-phase:hover .tooltiptext-phase {
	display:block;
}

.tooltiptext-phase img {
  max-width: 100%;
}

/** end 4-phases images **/

/** periodization
.weeks {
  border: 4px solid #f1f1f1;
  margin-bottom: 10px;
}
.weeks {
  border: 1px solid #f1f1f1;
  display: inline-block;
  margin-bottom: 30px;
  padding: 15px;
  width: 100%;
}
#selectedprd .weeks h3 {
  display: inline-block;
}

.hed-weeks {
  display: inline-block;
  margin-bottom: 10px;
  width: 100%;
}
.weeks.show_weeks {
    width: 24%;
}
.periodization_trainngs .weeks {
    border: medium none;
    padding: 0;
}
end periodization **/

sup.required {
    color: red;
}

.error {
    color: red;
}

input[type=submit], input[type=button], button {
    cursor: pointer !important;
}

img.hockeyclub {
    max-width: 120px;
    max-height: 120px;
}

.input-group-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: block;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: .375rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5em;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
}

@media (max-width: 768px) {
    #adddrawing {
        pointer-events: none;
        opacity: 0.5;
        cursor: not-allowed;
    }
}