/* Component styles */
@font-face {
	font-family: 'SpaceGrotesk';
	src: url('../fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
  }
  
@font-face {
	font-family: 'AvenirMedium';
	src: url('../fonts/AvenirMedium.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
  }
  
.component {
	line-height: 1.5em;
	margin: 0 auto;
	padding: 2em 0 3em;
	width: 80%;
	max-width: 3000px;
	overflow: hidden;
}
body {
	font-family: 'SpaceGrotesk', sans-serif;
  }
.component .filler {
	font-family: "SpaceGrotesk", Arial, sans-serif;
	color: #d3d3d3;
}
table {
    border-collapse: collapse;
    margin-bottom: 3em;
    width: 100%;
    background: #fff;
}
td, th {
    padding: 0.75em 1.5em;
    text-align: left;
}
	td.err {
		background-color: #e992b9;
		color: #fff;
		font-size: 0.75em;
		text-align: center;
		line-height: 1;
	}
th {
    background-color: #97aca4;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}
tbody th {
	background-color: #151c19;
}
tbody tr:nth-child(2n-1) {
    background-color: #f5f5f5;
    transition: all .125s ease-in-out;
}
tbody tr:hover {
    background-color: rgba(129, 140, 135, 0.3);
}

/* For appearance */
.sticky-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	position: relative;
	margin: 3em 0;
	width: 100%;
}
.sticky-wrap .sticky-thead,
.sticky-wrap .sticky-col,
.sticky-wrap .sticky-intersect {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	transition: all .125s ease-in-out;
	z-index: 50;
	width: auto; /* Prevent table from stretching to full size */
}
	.sticky-wrap .sticky-thead {
		box-shadow: 0 0.25em 0.1em -0.1em rgba(69, 69, 69, 0.125);
		z-index: 100;
		width: 100%; /* Force stretch */
	}
	.sticky-wrap .sticky-intersect {
		opacity: 1;
		z-index: 150;

	}
		.sticky-wrap .sticky-intersect th {
			background-color: #666;
			color: #eee;
		}
.sticky-wrap td,
.sticky-wrap th {
	box-sizing: border-box;
}

/* Not needed for sticky header/column functionality */
td.user-name {
	text-transform: capitalize;
}
.sticky-wrap.overflow-y {
	overflow-y: auto;
	max-height: 50vh;
}

th {
	background-color: #282a29;
	color: white;
	font-weight: 600;
	padding: 12px 16px;
  }
  
  td {
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f0;
	color: #4b5563;
  }
  
  tr:hover {
	background-color: #f9fafb;
	transition: background-color 0.2s ease;
  }
  
nav {
	background-color: #d1d3d2;
	color: #fff;
	padding: 1em 2em;
	margin-bottom: 2em;
	display: flex;
}

th a {
	display: flex;
	align-items: center;
	gap: 0.5em; /* space between emoji and text */
	font-size: 1.1em;
	text-decoration: none;
  }
  
  th a span.emoji {
	font-size: 1.2em;
	line-height: 1;
  }
  .card-container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 1rem;
  }

  .card {
	background-color: #7a7a7a;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	padding: 2rem;
	margin: 1.5rem auto;
	width: 40%;
	height: 40%;
	max-width: 600px;
	font-family: 'SpaceGrotesk', sans-serif;
	color: #ffffff;
	transition: box-shadow 0.3s ease;
  }
  
  .card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  
  .card-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #3e4d4d;
  }
  
  .card-content p {
	margin: 0.5rem 0;
	font-size: 1.1rem;
  }
  
  .card-highlight {
	font-weight: 600;
	color: #008080;
  }



  .year-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	padding: 2rem 1rem;
	max-width: 800px;
	margin: auto;
  }
  
  .year-card {
	background-color: #1e1e1e;
	color: #fff;
	padding: 1rem;
	text-align: center;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: transform 0.2s, background-color 0.2s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .year-card:hover {
	background-color: #333;
	transform: translateY(-3px);
  }
  
  .highlight {
	background-color: #4490b0;
  }
  
  .year-section-label {
	grid-column: 1 / -1;
	text-align: center;
	margin-top: 2rem;
	font-weight: bold;
	font-size: 2rem;
  }
  
  .year-card span {
	color: #888;
  }
  
  .missing-payment {
	background-color: rgba(255, 0, 0, 0.05) !important;
}

table a {
	color: #4490b0;
	font-weight: 500;
}

table a:hover {
	color: rgb(29, 66, 109);
}

.tenancy-cards {
	display: none;
  }
  
  .card {
	border: 1px solid #ccc;
	border-radius: 0.75rem;
	padding: 1rem;
	margin-bottom: 1rem;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	font-size: 0.95rem;
	color: #333;
	width: 80%;  
	
	

	
  }
  .card a {
	color: #1a73e8; /* Replace with your preferred color */
	text-decoration: none; /* Optional: removes underline */
  }
  
	.card a:hover {
	color: #0c52b8; /* Darker on hover */
	text-decoration: underline; /* Optional: show underline on hover */
  }
  
  @media (max-width: 768px) {
	.tenancy-cards {
	  display: block;
	}

	.a {
		color: #4490b0;
	}
  
	.table-wrapper {
	  display: none; /* hide normal table on mobile */
	}
  }

  .table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
  }
  
  