﻿/* 
    Tabs.css
    Styling for Financial Results Tabs Interface
*/
:root {
	--clr-primary: #2da54b;
	--clr-primary-light: #b5d19b;
	--clr-primary-dark: #457020;
	--clr-red: #e81d26;
	--clr-dark: #1b3a35;
	--clr-dark-light: #5c5c5c;
	--clr-grey: #ababab;
	--clr-dark-grey: #444444;
	--clr-white: #ffffff;
	--bg-body: #ffffff;
	--bg-section-light: #f8fff9;
	--bg-light: #fdfffd;
	--bg-light-green: #f8fff9;
	--bg-dark-green: #1b2322;
	--section-border-clr: rgba(68, 152, 85, 0.1);
	--fs-15: 15px;
	--fs-14: 14px;
}
/* Tabs Navigation */
.tabs-container {
	width: 100%;
}
.tabs-nav {
	display: flex;
	gap: 0;
	margin-bottom: clamp(20px, 3vw, 40px);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-bottom: 2px solid hsla(170, 36%, 17%, 0.5);
}
.tabs-nav::-webkit-scrollbar {
	display: none;
}
.tab-btn {
	flex-shrink: 0;
	flex: 1;
	padding-block: 12px;
	padding-inline: clamp(10px, 2vw, 40px);
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: var(--fs-18);
	font-weight: var(--fw-bold);
	color: var(--clr-dark);
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
}
.tab-btn:hover {
	color: var(--clr-primary);
}
.tab-btn.active {
	color: var(--clr-primary);
	border-bottom-color: var(--clr-primary);
}
/* Tab Content */
.tab-content {
	display: none;
	animation: fadeIn 0.4s ease-in-out;
}
.tab-content.active {
	display: block;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* Quarter Sections */
.quarter-section {
	margin-bottom: 50px;
}
.quarter-section:last-child {
	margin-bottom: 0;
}
.quarter-title {
	font-size: var(--fs-20);
	font-weight: var(--fw-bold);
	color: var(--clr-red);
	margin-bottom: 20px;
}
/* Documents List */
.documents-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.document-item {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	column-gap: 20px;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid hsla(170, 36%, 17%, 0.3);
	transition: border-color 0.2s ease;
}
.document-item:hover {
	border-color: var(--clr-primary);
}
.document-date {
	font-size: var(--fs-14);
	color: var(--clr-dark-grey);
	font-weight: var(--fw-medium);
}
.document-title {
	font-size: var(--fs-20);
	color: var(--clr-dark);
	font-weight: var(--fw-medium);
}
/* Download Button */
.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--clr-dark);
	text-decoration: none;
	font-size: var(--fs-16);
	font-weight: var(--fw-medium);
	transition: color 0.3s ease;
}
.download-btn:hover {
	text-decoration: underline;
	color: var(--clr-primary);
}
.download-btn .download-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid hsla(170, 36%, 17%, 0.5);
	color: var(--clr-dark);
	transition: background-color 0.3s ease;
}
.download-btn:hover .download-icon {
	border-color: var(--clr-primary);
	background-color: var(--clr-primary);
	color: var(--clr-white);
}
/* Placeholder Text */
.placeholder-text {
	padding: 40px 20px;
	text-align: center;
	color: var(--tab-text-grey);
	font-size: 16px;
}
/* Responsive Design - Tablet */
@media (max-width: 768px) {
	.document-item {
		grid-template-columns: 110px 1fr auto;
	}
}
/* Responsive Design - Mobile */
@media (max-width: 640px) {
	.tab-btn {
		font-size: var(--fs-14);
	}
	.document-item {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.placeholder-text {
		padding: 30px 15px;
		font-size: 15px;
	}
}
/* Print Styles */
@media print {
	.download-btn {
		display: none;
	}

	.tab-btn:not(.active) {
		display: none;
	}

	.tab-content:not(.active) {
		display: none;
	}
}
