body {
	font-family: 'Roboto', sans-serif;
	background-color: #3b6e8f;
}

footer{
	text-align: center;
    margin-top: 24px;
    padding-top: 8px;
    color: #333;
    font-size: 11px;
    margin-bottom: 12px;
}

@media (orientation: portrait) {
    .landscape-only {
        display: none;
    }
}

@media (orientation: landscape) {
    .portrait-only {
        display: none;
    }
}

.text-autowrap { text-wrap: wrap; }

.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-normal { font-weight: normal; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

@media (min-width: 768px) {
    .font-sm-thin { font-weight: 100; }
    .font-sm-extralight { font-weight: 200; }
    .font-sm-light { font-weight: 300; }
    .font-sm-normal { font-weight: normal; }
    .font-sm-semibold { font-weight: 600; }
    .font-sm-bold { font-weight: 700; }
    .font-sm-extrabold { font-weight: 800; }
}

@media (min-width: 992px) {
    .font-md-thin { font-weight: 100; }
    .font-md-extralight { font-weight: 200; }
    .font-md-light { font-weight: 300; }
    .font-md-normal { font-weight: normal; }
    .font-md-semibold { font-weight: 600; }
    .font-md-bold { font-weight: 700; }
    .font-md-extrabold { font-weight: 800; }
}

@media (min-width: 1200px) {
    .font-lg-thin { font-weight: 100; }
    .font-lg-extralight { font-weight: 200; }
    .font-lg-light { font-weight: 300; }
    .font-lg-normal { font-weight: normal; }
    .font-lg-semibold { font-weight: 600; }
    .font-lg-bold { font-weight: 700; }
    .font-lg-extrabold { font-weight: 800; }
}

.valign-middle {
    vertical-align: middle;
}

/* sm 768–991px */
@media (min-width: 768px) {
    .text-sm-left   { 
        text-align: left !important; 
    }
    .text-sm-right  { 
        text-align: right !important; 
    }
    .text-sm-center { 
        text-align: center !important; 
    }
}

/* md 992–1199px */
@media (min-width: 992px){ 
    .text-md-left   { 
        text-align: left !important; 
    }
    .text-md-right  { 
        text-align: right !important; 
    }
    .text-md-center { 
        text-align: center !important; 
    }
}

@media (min-width: 1200px) {
    .text-lg-left   { 
        text-align: left !important; 
    }
    .text-lg-right  { 
        text-align: right !important; 
    }
    .text-lg-center { 
        text-align: center !important; 
    }
}

/* Width utilities (mobile-first, matches Bootstrap 4/5 convention) */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

@media (min-width: 768px) {
    .w-sm-25 { width: 25% !important; }
    .w-sm-50 { width: 50% !important; }
    .w-sm-75 { width: 75% !important; }
    .w-sm-100 { width: 100% !important; }
    .w-sm-auto { width: auto !important; }
}

@media (min-width: 992px) {
    .w-md-25 { width: 25% !important; }
    .w-md-50 { width: 50% !important; }
    .w-md-75 { width: 75% !important; }
    .w-md-100 { width: 100% !important; }
    .w-md-auto { width: auto !important; }
}

@media (min-width: 1200px) {
    .w-lg-25 { width: 25% !important; }
    .w-lg-50 { width: 50% !important; }
    .w-lg-75 { width: 75% !important; }
    .w-lg-100 { width: 100% !important; }
    .w-lg-auto { width: auto !important; }
}

.btn-success {
    background-color: #5e9732;
	border-color: #4b7928;
}

.btn-cancel{
	background-color: #d1001f;
	border-color: #a70019;
}


.btn-primary{
	background-color: #4F758B;
	border-color: #3F5A69;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  	background-color: #3E5B6B;
	border-color: #464F57;
}

.container {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 2px 2px 5px #666;
}

.logo, .logo-small, .logo-big {
	/*display: inline;*/
	background-image: url("../images/pin-logo.jpg");
	background-repeat: no-repeat;
	background-size: contain;
	
	display: block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.reports-image {
	width: 42px;
    height: 42px;
    background-image: url("../images/reports.png");
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: auto;
}

.logo-big {
	width: 110px;
    height: 65px;
}

.logo {
	width: 120px;
	height: 77px;
}

.logo-small{
	width: 80px;
	height: 51px;
}

.background-logo{
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	z-index: -1;
	width: initial;
	height: initial;
	background-color: #E5E5E5;
}

.login{
	padding-top: 25vh;
}


.login-container {
	max-width: 400px;
	margin: 0px auto;
	box-shadow: 2px 2px 6px #333;
}

.login-header{
	border-top-right-radius: 4px;
	border-top-left-radius: 4px;
	border-bottom: 1px solid #ddd;
	background-color: #5e9732;
	color: #fff;
	padding: 12px;
	font-size: 120%;
	text-align: center;
    text-shadow: 0px 1px 3px #333;
}

.login-logo {
    width: 100%;
    height: auto;
    /*max-height: 105px;*/
    /*max-width: 300px;*/
    display: block;
    margin: -12px auto 12px;
}

.login-body{
	background-color: #fff;
	border-bottom-right-radius: 4px;
	border-bottom-left-radius: 4px;
    padding: 24px 24px 12px 24px;
}

.button-height{
	height: 38px;
	line-height: 38px;
}

.home-header {
	border-bottom: 1px solid #ccc;
	overflow: auto;
	margin: 0px -15px;
	padding: 12px;
	margin-bottom: 12px;
}

.help-center-banner {
    background-color: #3b6e8f;
	padding: 8px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.submission-banner {
    background-color: #d1001f;
    color: white;
	padding: 8px;
    display: block;
    align-items: center;
    text-align: center;
    text-wrap: wrap;
    clear: both;
    margin-top: 20px;
}

.help-center-text {
	color: white;
	font-size: 14px;
}

.sponsor-name{
	display: inline-block;
	font-size: 32px;
	margin-left: 12px;
	margin-top: 12px;
	clear: both;
	font-variant: small-caps;
	font-weight: bold;
	color: #555;
}

.sponsor-name > a{
	color: #333;
}

a.sponsor-name:hover,
a.sponsor-name:focus{
	text-decoration: none;
	color: #888;
}
.user-name-logout {
	float: right;
    margin-top: 20px;
}

.user-name-logout form{
	display: inline-block;
}

.site-nav{
	margin: 0px 0px 12px;
	box-shadow: 2px 2px 2px #ccc;
}

.site-nav-title{
	display: inline-block;
}

.site-nav-panel-header.admin{
	background-color:  #f5bb33;
}

.site-nav-panel-header:focus,
.site-nav-panel-header:hover{
	color: #eee;
	text-decoration: none;
}
.site-nav-panel-body{
	 padding: 12px;
}

.row-title-no-border{
	font-size: 24px;
	font-weight: 500;
	border-bottom: 0px solid #ccc;
	margin-bottom: 8px;
	margin-right: 12px;
}

.row-title {
	font-size: 24px;
	font-weight: 500;
	border-bottom: 1px solid #ccc;
	margin-bottom: 8px;
	margin-right: 12px;
}

.row-title-sub{
	font-size: 20px;
	font-weight: 200;
	border-bottom: 1px solid #ccc;
	margin-bottom: 8px;
	margin-right: 12px;
}

.row-data{
	padding: 12px;
	margin-bottom: 24px;
}
.content-container {
	padding: 12px 4px;
	margin-bottom: 24px;
}

.global-back-button{
	margin-bottom: 12px;
}

.form-title{
	text-align: right;
	line-height: 32px;
}

.form-title-left{
	line-height: 32px;
}

.input-row{
	margin-bottom: 4px;
	align-content: inherit;
}

.row-gap { margin-bottom: 15px; }

.column-data{
	padding: 5px;
	margin-bottom: 5px;
	display: flex;
	flex-direction: row;
	
}

.input-row-space{
	margin-bottom: 15px;
	align-content: inherit;
}

.sensible-input-width{
	max-width: 320px;
	display: inline-block;
}

.search-container input,
.search-container select{
	border-radius: 0;
	border: none;
	box-shadow: none;
}


.search-header,
.search-container select{
	color: #777;
	line-height: 34px;
	cursor: default;
	display: inline-block;
}

.min-header-width.search-container select{
	min-width: 160px;
}

.search-container input::-webkit-input-placeholder,
.search-container select::-webkit-input-placeholder {
	color: #777;
}
.search-container input::-webkit-input-placeholder,
.search-container select::-webkit-input-placeholder {
	color: #777;
}

.search-container input::-webkit-input-placeholder,
.search-container select::-webkit-input-placeholder {
	color: #777;
}

.search-container input::-webkit-input-placeholder,
.search-container select::-webkit-input-placeholder {
	color: #777;
}

.search-container input:focus,
.search-container select:focus{
	outline: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.search-container .input-group-btn button{
	border-radius: 0;
	border: none;
}

.table-input.form-control{
	/* I don't think this actually needs any additional styling, for now at least */
}

.min-cell-width{
	min-width: 114px;
}

.note-add-container {
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 2px;
	padding: 12px;
	margin-bottom: 12px;
	box-shadow: 1px 2px 2px #ccc;
}

.note-add-textarea {
	border: none;
	height: 48px;
	width: 100%;
	margin-right: 24px;
	border-radius: 4px;
	padding: 4px 8px;
}

.note-container {
	margin-bottom: 12px;
	border: 1px solid #ccc;
	padding: 8px 24px;
	box-shadow: 2px 2px 2px #ccc;
	border-radius: 2px;
}

.note-text{

}

.note-author{
	text-align: right;
	font-weight: bold;
}

.table-calendar { }

.table-fixed {
    table-layout: fixed;
}

.calendar-cell{
	border: 1px solid #ccc;
	padding: 0;
	position: relative;
}

.calendar-cell-inner {
	aspect-ratio: 1.65 / 1;
	overflow-y: auto;
}

.calendar-date-cell{
	content: "";
	display: table;
	margin-right: auto;
	margin-bottom: 10px;
}

.milk-purchased{
	width: 50%;
	padding: 10px;
}

.calendar-date{
	width: 50%;
}

.calendar-day-overlay {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	flex-direction: column;
}

.calendar-cell:hover > .calendar-day-overlay {
	display: flex;
}
.calendar-content {
	padding-left: 24px;
	margin-bottom: 12px;
	min-width: 80px;
}

.different-month, .calendar-cell small{
	color: #999;
}

.input-time-width{
   min-width: 128px;
}

.margin-r-small{
	margin-right: 4px;
}

.food-label {
	min-width: 142px;
	display: inline-block;
	padding: 4px;
	font-size: 90%;
}

.bold{
	font-weight: bold;
}

.margin-top{
	margin-top: 24px;
}

.margin-bottom{
	margin-bottom: 12px;
}

.min-header-width{
	min-width: 136px;
}

.btn-inline{
	display: inline-block;
}

.site-staff-menu-item {
	display: inline-block;
	margin: 8px;
	/* color: #658D1B; */
	padding: 10px;
	border: 1px solid #eee;
	min-width: 112px;
	text-align: center;
	border-radius: 12px;
	box-shadow: 1px 1px 1px #ccc;
}
.site-staff-menu-item:hover,
.site-staff-menu-item:focus{
	text-decoration: none;
	/*color: #45630F;*/
	box-shadow: inset 1px 1px 1px #ccc;
}

.site-staff-menu-item:hover,
.site-staff-menu-item:focus{
}

.site-staff-menu-item-image{
	text-shadow: 0px 1px rgba(0,0,0,.5);
	margin-bottom: 12px;
}

.site-staff-menu-item-text{
	/*color: #3E5611;*/
	font-size: 16px;
}

.landing-container-todo-small{
	padding-top: 4px;
	font-size: 12px;
}

.landing-container{
	width: 160px;
	display: inline-block;
	height: 120px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background-color: #5e9732;
	color: white;
	box-shadow: 2px 2px 2px #ccc;
	vertical-align: top;
	overflow: hidden;
	margin: 8px;
}

.landing-container-left{
	float: left;
	height: 120px;
    margin-top: 46px;
	width: 46px;
}

.landing-container-right {
	float: right;
	min-height: 120px;
	width: 108px;
	background-color: white;
	color: #555;
	padding: 2px;
}

.landing-container-todo {
	font-size: 24px;
	border-bottom: 1px solid #ccc;
	height: 60px;
	line-height: 60px;
}

.landing-container-todo-description{
	padding-top: 8px;
}

.landing-container-todo-image {
	padding-bottom: 2px;
	padding-top: 2px;
}

.landing-container-row-container {
    display: flex;
    flex-direction: column;
}

.landing-container-row {
    display: flex;
    width: 160px;
    height: 24px;
}

.landing-container-row-left {
    background-color: #5e9732;
    width: 42px;
    min-width: 42px;
}

.landing-container-row-content {
    width: 100%;
    background-color: white;
    padding: 2px;
    color: black;
    font-size: 10px;
    text-align: left;
    padding-left: 8px;
}

.bg-red-status {
    background-color: #d1001f;
}

.bg-red-status .landing-container-todo{
	font-size: 20px;
}

.bg-grey-status {
	background-color: #ccc;
}

.bg-grey-status .landing-container-todo{
	font-size: 20px;
}

.bg-yellow-status {
    background-color: #f5bb33;
}

.bg-yellow-status .landing-container-todo{
	font-size: 16px;
	line-height: 16px;
    padding-top: 14px;
}

@media (min-width: 990px){
	.site-staff-menu-item{
		margin: 8px 12px;
	}
}

@media (min-width: 1200px){
	.site-staff-menu-item{
		margin: 8px 20px;
	}
}


@media (max-width: 770px){
	
	/* fix tables for small screens*/
	table.table{
		background-color: white;
		border: 1px solid #ccc;
		border-radius: 4px;
	}

	table.table .search-container .input-group-btn{
		display: none;
	}

	table.table .search-container input.form-control{
		padding: 0px;
	}
}

/* Media Queries */
/* -------------------------------*/
/* for small screens */
@media (max-width: 480px) {
	/* hide the site-nav-title unless it is active */
	.site-nav .btn-group > .btn-group.selected {
		width: 2%;
	}
	.site-nav-title{
		display: none;
	}

	.active .site-nav-title{
		display: inline-block;
	}


	/* re-justify the form title's to be left aligned */
	.form-title{
		text-align: left;
	}
}


/* bootstrap overrides */
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus{
	border-top-right-radius: 8px;
	border-top-left-radius: 8px;
	background-color: #31b0d5;
	color: #fff;
}

.nav-tabs.nav-justified > * > a {
	color: #555555;
}


.btn-group > .btn-group > .btn,
.btn-group > .btn-group > .dropdown-toggle{
	border-radius: 0px;
}

.btn-block-custom {
	margin-bottom: 6px;
	min-width: 260px;
}

.select-button-group{
	width:200px;
}

.select-button-group > button{
	 margin-left: -3px;
	 border-top-left-radius: 0px;
	 border-bottom-left-radius: 0px;
 }
.select-button-group > select{
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	max-width: 160px;
	line-height: 30px;
	height: 30px;
	padding: 0px 4px;
}

.row-title-sub.buttons-right,
.row-title.buttons-right {
	padding-bottom: 8px;
}

/* Button group for row-title that wraps cleanly on narrow screens */
.row-title-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    float: right;
    margin-bottom: 4px;
}

/* Forms inside btn-group need to remove margin-bottom */
.row-title-btn-group form {
    margin-bottom: unset;
}

/* Clear the float after the row-title when using btn-group */
.row-title:has(.row-title-btn-group) {
    overflow: hidden;
}

/* Remove button margin-right inside row-title-btn-group (uses gap for spacing) */
.row-title-btn-group .btn {
    margin-right: 0;
}

.food-menu-container{
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0px 1px 1px #eee;
}

.food-menu-existing-items-container{
    background-color: #f8f8f8;
    padding: 12px;
    border-radius: 4px;
}

.divider {
	border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
    font-weight: bold;
}
.padding-bottom{
	padding-bottom: 12px;
}
.border-bottom {
	border-bottom: 1px solid #ddd;
}

.input-group-btn button[type="submit"].btn{
	height: 34px;
}

.signature-border {
	border-style: solid;
	border-width: 1px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
  vertical-align: middle;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #3b6e8f;
}

input:focus + .slider {
  box-shadow: 0 0 1px #3b6e8f;
}

input:checked + .slider:before {
  -webkit-transform: translateX(19px);
  -ms-transform: translateX(19px);
  transform: translateX(19px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 26px;
}

.slider.round:before {
  border-radius: 50%;
}

/* utility class to hide scrollbars on all browsers */
.hide-scrollbar {
    -ms-overflow-style: none; /* For Internet Explorer and Edge (legacy) */
    scrollbar-width: none;    /* For Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge (Chromium) */
}
.hide-scrollbar::-webkit-scrollbar-track,
.hide-scrollbar::-webkit-scrollbar-thumb,
.hide-scrollbar::-webkit-scrollbar-corner {
    background: transparent;
    border: none;
}

.custom-heart-checkbox {
	display: none; /* Hide the default checkbox input */
}

/* Heart shape when unchecked */
.custom-heart-checkbox + .custom-heart-label::before   {
	content: '\2661'; /* Unicode for an empty heart (outline) */
	display: inline-block;
	font-size: 21px;
	color: #ccc; /* Color of the outline heart */
	cursor: pointer;
	margin-left: 10px;
}

/* Heart shape when checked */
.custom-heart-checkbox:checked + .custom-heart-label::before {
	content: '\2665'; /* Unicode for a filled heart */
	color: #d1001f; /* Color when checked (e.g., red) */
}

.site-address-breadcrumb {
	margin-top: -20px;
	margin-bottom: 15px;
	color: #777777;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.inline {
    display: inline;
}

:root {
    --card-gap: 8px;
    --card-padding: 15px;
    --label-width: 45%;
}

/* our other row-title has a padding bottom due to font size being greater than row-title-sub */
html[data-responsive] .row-title-sub {
    padding-bottom: 4px;
    line-height: 34px;
}

html[data-responsive] .row-title,
html[data-responsive] .row-title-sub {
    /* I dont think these classes need a margin-right */
    margin-right: unset;
}

/* partially copied from search-header */
html[data-responsive] table th {
    color: #777;
    cursor: default;
    vertical-align: middle;
}

/* Search containers use form-controls which have a font-size: 14pox, this is to match that */
html[data-responsive] table th .form-control-static {
    font-size: 14px;
}

/* font awesome sets icons to line-height: 1, which sucks since BS3 is line-height: 1.42857143;  */
html[data-responsive] .input-group-btn .btn .fa {
    line-height: inherit;
}

html[data-responsive] .checkbox > label {
    font-weight: bold;
}

/* Specifically to deal with state select fragment which I cannot remove the sensible-input-width from yet */
html[data-responsive] .sensible-input-width {
    max-width: unset;
}

/* On very small screens, change label and checkbox ordering to [LABEL --- CHECKBOX]  */
@media (max-width: 500px) {
    html[data-responsive] .checkbox > label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 0;
        width: 100%;
    }

    html[data-responsive] .checkbox > label > input[type="checkbox"] {
        margin-top: 2px;
        position: relative;
        order: 1;
    }
}

/* 
   TABLE → CARDS (DOWNWARD)
   supported: xs, sm, md and lg (always) screens
   - these work downward instead of upward like BS styles. This is because there is no way to "opt out" of cards. ie. If upward and using cards-xs, there would be no way to make md+ screens not use cards.
   - cards-lg has no media query and no max-width — cards are always active at every viewport size.
*/

/* ---------- LG (always) ---------- */
html[data-responsive] table.cards-lg {
    display: grid;
    margin: 0 auto 15px;
    max-width: 400px;
    border: none;
    font-size: 14px;
}

html[data-responsive] table.cards-lg > thead:not(.cards-opt-out) { display: none; }

html[data-responsive] table.cards-lg > tbody:not(.cards-opt-out) {
    display: grid;
    gap: var(--card-gap);
}

html[data-responsive] table.cards-lg > tbody > tr:not(.cards-opt-out) {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--card-gap);
    padding: var(--card-padding);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    border: 1px solid #e1e1e1;
}

html[data-responsive] table.cards-lg > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 0;
    order: 999;
}

html[data-responsive] table.cards-lg > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) > div {
    flex: 1 1 100%;
    text-wrap: wrap;
}

html[data-responsive] table.cards-lg > tbody > tr:not(.cards-opt-out) > td[data-label]::before {
    content: attr(data-label);
    color: #777;
    font-weight: bold;
    width: var(--label-width);
    margin-right: 10px;
    flex-shrink: 0;
}

html[data-responsive] table.cards-lg td.cards-span-full { grid-column: 1 / -1; }

/* Change card border to danger color when containing error elements */
html[data-responsive] table.cards-lg > tbody > tr:not(.cards-opt-out):has(.label-danger, .text-danger, .has-error, .alert-danger) {
    border-color: #a94442;
}

/* Remove table-responsive border when using cards */
.table-responsive:has(table.cards-lg) {
    border: none;
}

/* Remove button margin-right inside cards (flexbox handles spacing) */
html[data-responsive] table.cards-lg .btn {
    margin-right: 0;
}

/* ---------- MD and down ---------- */
@media (max-width: 1199px) {
    html[data-responsive] table.cards-md {
        display: grid;
        margin: 0 auto 15px;
        max-width: 400px;
        border: none;
        font-size: 14px;
    }

    html[data-responsive] table.cards-md > thead:not(.cards-opt-out) { display: none; }

    html[data-responsive] table.cards-md > tbody:not(.cards-opt-out) {
        display: grid;
        gap: var(--card-gap);
    }

    html[data-responsive] table.cards-md > tbody > tr:not(.cards-opt-out) {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--card-gap);
        padding: var(--card-padding);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,.12);
        border: 1px solid #e1e1e1;
    }

    html[data-responsive] table.cards-md > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0;
        order: 999;
    }

    html[data-responsive] table.cards-md > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) > div {
        flex: 1 1 100%;
        text-wrap: wrap;
    }

    html[data-responsive] table.cards-md > tbody > tr:not(.cards-opt-out) > td[data-label]::before {
        content: attr(data-label);
        color: #777;
        font-weight: bold;
        width: var(--label-width);
        margin-right: 10px;
        flex-shrink: 0;
    }

    html[data-responsive] table.cards-md td.cards-span-full { grid-column: 1 / -1; }

    /* Change card border to danger color when containing error elements */
    html[data-responsive] table.cards-md > tbody > tr:not(.cards-opt-out):has(.label-danger, .text-danger, .has-error, .alert-danger) {
        border-color: #a94442;
    }

    /* Remove table-responsive border when using cards */
    .table-responsive:has(table.cards-md) {
        border: none;
    }

    /* Remove button margin-right inside cards (flexbox handles spacing) */
    html[data-responsive] table.cards-md .btn {
        margin-right: 0;
    }
}

/* ---------- SM and down ---------- */
@media (max-width: 991px) {
    html[data-responsive] table.cards-sm {
        display: grid;
        margin: 0 auto 15px;
        max-width: 400px;
        border: none;
        font-size: 14px;
    }

    html[data-responsive] table.cards-sm > thead:not(.cards-opt-out) { display: none; }

    html[data-responsive] table.cards-sm > tbody:not(.cards-opt-out) {
        display: grid;
        gap: var(--card-gap);
    }

    html[data-responsive] table.cards-sm > tbody > tr:not(.cards-opt-out) {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--card-gap);
        padding: var(--card-padding);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,.12);
        border: 1px solid #e1e1e1;
    }

    html[data-responsive] table.cards-sm > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0;
        order: 999;
    }

    html[data-responsive] table.cards-sm > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) > div {
        flex: 1 1 100%;
        text-wrap: wrap;
    }

    html[data-responsive] table.cards-sm > tbody > tr:not(.cards-opt-out) > td[data-label]::before {
        content: attr(data-label);
        color: #777;
        font-weight: bold;
        width: var(--label-width);
        margin-right: 10px;
        flex-shrink: 0;
    }

    html[data-responsive] table.cards-sm td.cards-span-full { grid-column: 1 / -1; }

    /* Change card border to danger color when containing error elements */
    html[data-responsive] table.cards-sm > tbody > tr:not(.cards-opt-out):has(.label-danger, .text-danger, .has-error, .alert-danger) {
        border-color: #a94442;
    }

    /* Remove table-responsive border when using cards */
    .table-responsive:has(table.cards-sm) {
        border: none;
    }

    /* Remove button margin-right inside cards (flexbox handles spacing) */
    html[data-responsive] table.cards-sm .btn {
        margin-right: 0;
    }
}

/* ---------- XS only ---------- */
@media (max-width: 767px) {
    html[data-responsive] table.cards-xs {
        display: grid;
        margin: 0 auto 15px;
        max-width: 400px;
        border: none;
        font-size: 14px;
    }

    html[data-responsive] table.cards-xs > thead:not(.cards-opt-out) { display: none; }

    html[data-responsive] table.cards-xs > tbody:not(.cards-opt-out) {
        display: grid;
        gap: var(--card-gap);
    }

    html[data-responsive] table.cards-xs > tbody > tr:not(.cards-opt-out) {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--card-gap);
        padding: var(--card-padding);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,.12);
        border: 1px solid #e1e1e1;
    }

    html[data-responsive] table.cards-xs > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0;
        order: 999;
    }

    html[data-responsive] table.cards-xs > tbody > tr:not(.cards-opt-out) > td:not(.cards-opt-out) > div {
        flex: 1 1 100%;
        text-wrap: wrap;
    }

    html[data-responsive] table.cards-xs > tbody > tr:not(.cards-opt-out) > td[data-label]::before {
        content: attr(data-label);
        color: #777;
        font-weight: bold;
        width: var(--label-width);
        margin-right: 10px;
        flex-shrink: 0;
    }

    html[data-responsive] table.cards-xs td.cards-span-full { grid-column: 1 / -1; }

    /* Change card border to danger color when containing error elements */
    html[data-responsive] table.cards-xs > tbody > tr:not(.cards-opt-out):has(.label-danger, .text-danger, .has-error, .alert-danger) {
        border-color: #a94442;
    }

    /* Remove table-responsive border when using cards */
    .table-responsive:has(table.cards-xs) {
        border: none;
    }

    /* Remove button margin-right inside cards (flexbox handles spacing) */
    html[data-responsive] table.cards-xs .btn {
        margin-right: 0;
    }
}

/* LG (always) */
html[data-responsive] table.cards-lg td.cards-order-1 { order: 1 !important; }
html[data-responsive] table.cards-lg td.cards-order-2 { order: 2 !important; }
html[data-responsive] table.cards-lg td.cards-order-3 { order: 3 !important; }
html[data-responsive] table.cards-lg td.cards-order-4 { order: 4 !important; }
html[data-responsive] table.cards-lg td.cards-order-5 { order: 5 !important; }

/* MD and down */
@media (max-width: 1199px) {
    html[data-responsive] table.cards-md td.cards-order-1 { order: 1 !important; }
    html[data-responsive] table.cards-md td.cards-order-2 { order: 2 !important; }
    html[data-responsive] table.cards-md td.cards-order-3 { order: 3 !important; }
    html[data-responsive] table.cards-md td.cards-order-4 { order: 4 !important; }
    html[data-responsive] table.cards-md td.cards-order-5 { order: 5 !important; }
}

/* SM and down */
@media (max-width: 991px) {
    html[data-responsive] table.cards-sm td.cards-order-1 { order: 1 !important; }
    html[data-responsive] table.cards-sm td.cards-order-2 { order: 2 !important; }
    html[data-responsive] table.cards-sm td.cards-order-3 { order: 3 !important; }
    html[data-responsive] table.cards-sm td.cards-order-4 { order: 4 !important; }
    html[data-responsive] table.cards-sm td.cards-order-5 { order: 5 !important; }
}

/* XS only */
@media (max-width: 767px) {
    html[data-responsive] table.cards-xs td.cards-order-1 { order: 1 !important; }
    html[data-responsive] table.cards-xs td.cards-order-2 { order: 2 !important; }
    html[data-responsive] table.cards-xs td.cards-order-3 { order: 3 !important; }
    html[data-responsive] table.cards-xs td.cards-order-4 { order: 4 !important; }
    html[data-responsive] table.cards-xs td.cards-order-5 { order: 5 !important; }
}

/* LG (always) */
html[data-responsive] table.cards-lg td.cards-span-full {
    grid-column: 1 / -1;
}

/* MD and down */
@media (max-width: 1199px) {
    html[data-responsive] table.cards-md td.cards-span-full {
        grid-column: 1 / -1;
    }
}

/* SM and down */
@media (max-width: 991px) {
    html[data-responsive] table.cards-sm td.cards-span-full {
        grid-column: 1 / -1;
    }
}

/* XS only */
@media (max-width: 767px) {
    html[data-responsive] table.cards-xs td.cards-span-full {
        grid-column: 1 / -1;
    }
}

.btn-google,
.btn-microsoft,
.btn-facebook {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	text-decoration: none;
	border-radius: 8px;
	padding: 12px;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s ease, background-color 0.2s ease;
}

.btn-google,
.btn-microsoft {
	background: white;
	color: #222;
	border: 1px solid #d9d9d9;
}

.btn-google:hover,
.btn-microsoft:hover {
	background: #f5f5f5;
}

.btn-facebook {
	background-color: #1877F2;
	color: white;
	border: 1px solid #1877F2;
}

.btn-facebook:hover {
	background-color: #166FE5;
	color: white;
}