/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* Prevent text size adjustment on orientation change */
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

:root {
	--primary-color: #007bff;
	--secondary-color: #6c757d;
	--success-color: #28a745;
	--danger-color: #dc3545;
	--warning-color: #ffc107;
	--light-bg: #f8f9fa;
	--dark-text: #212529;
	--border-color: #dee2e6;
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--dark-text);
	background-color: var(--light-bg);
	/* Improve touch scrolling on iOS */
	-webkit-overflow-scrolling: touch;
}

/* Better tap target spacing */
a,
button,
input,
select,
textarea,
label {
	-webkit-tap-highlight-color: rgba(0, 123, 255, 0.1);
}

/* Login Page */
.login-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
	width: 100%;
	max-width: 400px;
	padding: 20px;
}

.login-box {
	background: white;
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-box h1 {
	text-align: center;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.login-box h2 {
	text-align: center;
	font-size: 1.2rem;
	color: var(--secondary-color);
	margin-bottom: 30px;
}

/* Navigation */
.navbar {
	background: white;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-brand h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-menu a {
	color: var(--dark-text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
	color: var(--primary-color);
}

.nav-menu a.logout {
	color: var(--danger-color);
}

/* Main Content */
.main-content {
	max-width: 1400px;
	margin: 2rem auto;
	padding: 0 2rem;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.page-header h1 {
	font-size: 2rem;
	color: var(--dark-text);
}

.button-group {
	display: flex;
	gap: 1rem;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s;
	text-align: center;
}

.btn-primary {
	background: var(--primary-color);
	color: white;
}

.btn-primary:hover {
	background: #0056b3;
}

.btn-secondary {
	background: var(--secondary-color);
	color: white;
}

.btn-secondary:hover {
	background: #545b62;
}

.btn-success {
	background: var(--success-color);
	color: white;
}

.btn-success:hover {
	background: #218838;
}

.btn-danger {
	background: var(--danger-color);
	color: white;
}

.btn-danger:hover {
	background: #c82333;
}

.btn-sm {
	padding: 0.25rem 0.75rem;
	font-size: 0.875rem;
}

.btn-block {
	width: 100%;
	display: block;
}

/* Forms */
.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1rem;
	font-family: inherit;
}

.form-group small {
	display: block;
	margin-top: 0.25rem;
	color: var(--secondary-color);
	font-size: 0.875rem;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.form-section {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

.form-section h2 {
	margin-bottom: 1.5rem;
	color: var(--primary-color);
}

.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.checkbox-group,
.radio-group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.5rem;
}

.checkbox-label,
.radio-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.checkbox-scroll {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid var(--border-color);
	padding: 1rem;
	border-radius: 5px;
}

/* Alerts */
.alert {
	padding: 1rem;
	border-radius: 5px;
	margin-bottom: 1rem;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

/* Badges */
.badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	background: var(--primary-color);
	color: white;
}

.badge-monthly {
	background: var(--success-color);
}

.badge-bimonthly {
	background: var(--warning-color);
	color: var(--dark-text);
}

.badge-small {
	padding: 0.125rem 0.5rem;
	font-size: 0.75rem;
}

/* Properties Grid */
.properties-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 1.5rem;
}

.property-card {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.property-card h3 {
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.property-card .address {
	color: var(--secondary-color);
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.property-info {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.property-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: var(--light-bg);
	border-radius: 5px;
}

.stat {
	display: flex;
	flex-direction: column;
}

.stat .label {
	font-size: 0.875rem;
	color: var(--secondary-color);
}

.stat .value {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--dark-text);
}

.card-actions {
	display: flex;
	gap: 0.5rem;
}

/* Detail Pages */
.detail-grid {
	display: grid;
	gap: 2rem;
}

.detail-section {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.detail-section h2 {
	margin-bottom: 1.5rem;
	color: var(--primary-color);
}

.detail-list {
	display: grid;
	gap: 1rem;
}

.detail-list dt {
	font-weight: 600;
	color: var(--secondary-color);
}

.detail-list dd {
	margin-bottom: 1rem;
}

/* Data Table */
.data-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.data-table th,
.data-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

.data-table th {
	background: var(--light-bg);
	font-weight: 600;
}

/* Stats Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	text-align: center;
}

.stat-label {
	font-size: 0.875rem;
	color: var(--secondary-color);
	margin-bottom: 0.5rem;
}

.stat-value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary-color);
}

.stat-value.warning {
	color: var(--warning-color);
}

.stat-value.success {
	color: var(--success-color);
}

/* Route List */
.route-list {
	list-style: none;
	counter-reset: route-counter;
}

.route-stop {
	background: white;
	padding: 1.5rem;
	margin-bottom: 1rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	gap: 1rem;
	counter-increment: route-counter;
	position: relative;
}

.route-stop::before {
	content: counter(route-counter);
	background: var(--primary-color);
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

.route-stop.shop-stop {
	background: var(--success-color);
	color: white;
	counter-increment: none;
}

.route-stop.shop-stop::before {
	content: "🏠";
	background: white;
}

.route-stop.completed {
	background: #d4edda;
	border-left: 4px solid var(--success-color);
}

.stop-info {
	flex: 1;
}

.stop-info strong {
	display: block;
	margin-bottom: 0.25rem;
}

.stop-address {
	color: var(--secondary-color);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.stop-stats {
	display: flex;
	gap: 1rem;
}

.stat-small {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.5rem;
	background: var(--light-bg);
	border-radius: 5px;
}

.stat-small .label {
	font-size: 0.75rem;
	color: var(--secondary-color);
}

.stat-small .value {
	font-weight: 600;
}

.stop-checkbox input {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.stop-actions {
	display: flex;
	gap: 0.5rem;
}

/* Equipment */
.equipment-item {
	background: var(--light-bg);
	padding: 1rem;
	border-radius: 5px;
	margin-bottom: 1rem;
}

.equipment-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	background: var(--primary-color);
	color: white;
	border-radius: 5px;
	font-size: 0.875rem;
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
}

/* Notes */
.notes-list {
	margin-bottom: 1.5rem;
}

.note-item {
	background: var(--light-bg);
	padding: 1rem;
	border-radius: 5px;
	margin-bottom: 1rem;
	position: relative;
}

.note-item p {
	margin-bottom: 0.5rem;
}

.note-item small {
	color: var(--secondary-color);
}

.note-form textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-family: inherit;
	resize: vertical;
}

.property-notes {
	background: #fff3cd;
	padding: 0.75rem;
	border-radius: 5px;
	margin-top: 0.5rem;
	border-left: 4px solid var(--warning-color);
}

.note-text {
	margin: 0.25rem 0;
	font-size: 0.9rem;
}

/* Supplies */
.supplies-summary,
.supplies-checklist {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

.supplies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.supply-item {
	display: flex;
	justify-content: space-between;
	padding: 1rem;
	background: var(--light-bg);
	border-radius: 5px;
}

.supply-label {
	font-weight: 500;
}

.supply-value {
	font-weight: 700;
	color: var(--primary-color);
}

/* Break Schedule */
.break-schedule {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

.break-list {
	list-style: none;
}

.break-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-color);
}

.break-list li:last-child {
	border-bottom: none;
}

/* Filters */
.filters {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

.filter-form .form-row {
	align-items: flex-end;
}

/* Date/Month Selector */
.date-selector,
.month-selector {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background: white;
	margin: 5% auto;
	padding: 2rem;
	border-radius: 10px;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
}

.close {
	float: right;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	color: var(--secondary-color);
}

.close:hover {
	color: var(--dark-text);
}

/* No Data */
.no-data {
	text-align: center;
	padding: 3rem;
	color: var(--secondary-color);
}

.no-schedule {
	text-align: center;
	padding: 3rem;
	background: white;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

/* Map */
.route-map-container {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
}

/* Responsive - Mobile First for Field Work */
@media (max-width: 768px) {
	/* Larger touch targets for mobile */
	body {
		font-size: 16px;
	}

	/* Reduce all heading sizes */
	h1 {
		font-size: 1.3rem;
		margin-bottom: 0.5rem;
	}

	h2 {
		font-size: 1.1rem;
		margin-bottom: 0.5rem;
	}

	h3 {
		font-size: 1rem;
		margin-bottom: 0.25rem;
	}

	/* Hamburger-style navigation */
	.nav-container {
		padding: 0.75rem 1rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.nav-brand h1 {
		font-size: 1.1rem;
		margin: 0;
	}

	.nav-menu {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		width: 100%;
		margin: 0;
	}

	.nav-menu li {
		flex: 1 1 calc(50% - 0.25rem);
		min-width: 0;
	}

	.nav-menu a {
		display: block;
		padding: 0.6rem 0.5rem;
		background: var(--light-bg);
		border-radius: 5px;
		text-align: center;
		font-size: 0.85rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.nav-menu a.active {
		background: var(--primary-color);
		color: white;
	}

	/* Main content spacing */
	.main-content {
		padding: 1rem;
		margin: 0;
	}

	/* Reduce spacing for overview sections */
	.daily-overview {
		margin-bottom: 1rem;
	}

	/* Alerts more compact */
	.alert {
		padding: 0.75rem;
		font-size: 0.9rem;
		margin: 0.75rem 0;
	}

	/* Page headers */
	.page-header {
		flex-direction: column;
		gap: 1rem;
		margin-bottom: 1rem;
		align-items: flex-start;
	}

	.page-header h1 {
		font-size: 1.3rem;
		margin: 0;
	}

	.button-group {
		width: 100%;
		flex-direction: column;
		gap: 0.5rem;
	}

	.button-group .btn {
		width: 100%;
	}

	/* Buttons - larger for touch */
	.btn,
	button,
	input[type="submit"] {
		min-height: 48px;
		padding: 0.75rem 1.5rem;
		font-size: 1rem;
	}

	/* Stats grid - 2 columns on mobile */
	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
		margin-bottom: 1rem;
	}

	.stat-card {
		padding: 0.75rem;
	}

	.stat-label {
		font-size: 0.7rem;
		margin-bottom: 0.25rem;
	}

	.stat-value {
		font-size: 1.3rem;
		line-height: 1.2;
	}

	/* Date selector */
	.date-selector {
		margin-bottom: 1rem;
		padding: 0.75rem;
		width: 100%;
		box-sizing: border-box;
	}

	.date-selector form {
		width: 100%;
	}

	.date-selector .form-group {
		margin-bottom: 0;
		width: 100%;
	}

	.date-selector .form-row {
		display: block;
		width: 100%;
		margin-bottom: 0;
		grid-template-columns: 1fr;
	}

	.date-selector label {
		display: block;
		margin-bottom: 0.25rem;
		font-size: 0.9rem;
	}

	.date-selector input[type="date"] {
		min-height: 44px;
		font-size: 1rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		display: block;
	}

	/* Route stops - stack vertically on mobile */
	.route-stop {
		flex-direction: column;
		align-items: flex-start;
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.route-stop::before {
		width: 32px;
		height: 32px;
		font-size: 0.9rem;
	}

	.stop-info {
		width: 100%;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.stop-info strong {
		font-size: 0.95rem;
		line-height: 1.3;
	}

	.stop-address {
		font-size: 0.85rem;
		margin: 0.25rem 0;
		word-wrap: break-word;
	}

	.stop-stats {
		flex-direction: row;
		gap: 0.5rem;
		width: 100%;
		flex-wrap: wrap;
	}

	.stat-small {
		flex: 1;
		min-width: 80px;
		padding: 0.5rem;
	}

	.stat-small .label {
		font-size: 0.7rem;
	}

	.stat-small .value {
		font-size: 0.9rem;
	}

	.stop-checkbox {
		order: -1;
		align-self: flex-start;
	}

	.equipment-list {
		margin-top: 0.5rem;
	}

	.equipment-badge {
		font-size: 0.75rem;
		padding: 0.2rem 0.4rem;
		margin-right: 0.25rem;
		margin-bottom: 0.25rem;
	}

	/* Stop actions - navigation buttons */
	.stop-actions {
		width: 100%;
		flex-direction: column;
		gap: 0.5rem;
		margin-top: 0.5rem;
	}

	.stop-actions .btn {
		width: 100%;
		padding: 0.6rem;
		font-size: 0.9rem;
		text-align: center;
	}

	.stop-actions .btn-primary {
		font-weight: 600;
	}

	/* Map container - full width on mobile */
	#map {
		height: 250px !important;
		margin-bottom: 1rem;
		border-radius: 8px;
	}

	/* Route list - optimized for viewing while driving */
	.route-list {
		margin-top: 0.5rem;
		padding: 0;
	}

	.route-details {
		padding: 0;
	}

	.route-details h3 {
		font-size: 1.1rem;
		margin-bottom: 0.75rem;
	}

	/* Property card (for properties list page) */
	.property-card {
		margin-bottom: 0.75rem;
		padding: 0.75rem;
	}

	/* Completion checkbox - larger for easy tapping */
	.property-actions {
		margin-top: 0.75rem;
		padding-top: 0.75rem;
	}

	.property-actions label {
		font-size: 1rem;
		padding: 0.75rem;
		cursor: pointer;
	}

	.property-actions input[type="checkbox"] {
		width: 24px;
		height: 24px;
		cursor: pointer;
	}

	/* Break cards - clearly visible */
	.break-card {
		padding: 0.75rem;
		margin: 0.75rem 0;
	}

	.break-card h3 {
		font-size: 1rem;
		margin-bottom: 0.25rem;
	}

	.break-time {
		font-size: 1.1rem;
	}

	/* Supplies checklist */
	.supplies-checklist {
		margin-bottom: 1rem;
		padding: 0.75rem;
	}

	.supplies-checklist h3 {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.supplies-grid {
		gap: 0.5rem;
	}

	.supply-item label {
		padding: 0.6rem;
		font-size: 0.9rem;
	}

	.supply-item input[type="checkbox"] {
		width: 20px;
		height: 20px;
		margin-right: 0.5rem;
	}

	/* Property notes */
	.property-notes textarea {
		min-height: 120px;
		font-size: 1rem;
	}

	/* Forms */
	.form-group {
		margin-bottom: 1rem;
	}

	.form-group label {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.form-group input,
	.form-group select,
	.form-group textarea {
		min-height: 48px;
		font-size: 1rem;
		padding: 0.75rem;
	}

	.form-actions {
		flex-direction: column;
		gap: 0.75rem;
	}

	.form-actions .btn {
		width: 100%;
	}

	/* Properties grid */
	.properties-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	/* Monthly planner */
	.plan-card {
		padding: 1rem;
	}

	/* Radio buttons - smaller on mobile */
	.radio-group {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 0.4rem;
	}

	.radio-label {
		font-size: 0.85rem;
		gap: 0.3rem;
	}

	.radio-label input[type="radio"] {
		width: 16px;
		height: 16px;
	}

	.calendar-grid {
		gap: 0.5rem;
	}

	.calendar-day {
		min-height: 80px;
		font-size: 0.85rem;
	}

	/* Alerts */
	.alert {
		padding: 1rem;
		font-size: 1rem;
		margin-bottom: 1rem;
	}

	/* Modal/overlays */
	.modal {
		padding: 1rem;
	}

	.modal-content {
		padding: 1.5rem;
		max-width: 100%;
	}

	/* Tables */
	table {
		font-size: 0.9rem;
	}

	table th,
	table td {
		padding: 0.75rem 0.5rem;
	}

	/* Hide less important columns on mobile */
	.hide-mobile {
		display: none;
	}
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.nav-menu li {
		flex: 1 1 100%;
	}

	.property-number {
		font-size: 1.25rem;
	}

	.stat-value {
		font-size: 1.25rem;
	}
}

/* Landscape mode - optimize for horizontal viewing */
@media (max-width: 768px) and (orientation: landscape) {
	#map {
		height: 250px !important;
	}

	.stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Tab Styles for Property Detail */
.tabs {
	margin-bottom: 2rem;
}

.tab-buttons {
	display: flex;
	gap: 0.5rem;
	border-bottom: 2px solid var(--border-color);
	margin-bottom: 1.5rem;
}

.tab-button {
	padding: 0.75rem 1.5rem;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 1rem;
	font-weight: 500;
	color: var(--secondary-color);
	cursor: pointer;
	transition: all 0.3s;
	white-space: nowrap;
}

.tab-button:hover {
	color: var(--primary-color);
	background-color: rgba(0, 123, 255, 0.05);
}

.tab-button.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
	font-weight: 600;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Service History Styles */
.service-history-table {
	width: 100%;
	margin-top: 1rem;
}

.service-history-table th {
	background-color: var(--light-bg);
	font-weight: 600;
	text-align: left;
}

.prca-item {
	margin-bottom: 1rem;
	padding: 1rem;
	background-color: var(--light-bg);
	border-radius: 8px;
}

.prca-item h4 {
	margin-bottom: 0.75rem;
	color: var(--primary-color);
	font-size: 1rem;
}

.prca-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.prca-field {
	text-align: center;
}

.prca-label {
	display: block;
	font-size: 0.75rem;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.25rem;
}

.prca-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--dark-text);
}

.prca-value.positive {
	color: var(--success-color);
}

.prca-value.negative {
	color: var(--danger-color);
}

.no-history {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--secondary-color);
}

.service-record-form {
	background-color: white;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.service-record-form h3 {
	margin-bottom: 1rem;
	color: var(--primary-color);
}

.equipment-service-item {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

.equipment-service-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.equipment-service-item h4 {
	margin-bottom: 1rem;
	color: var(--dark-text);
	font-size: 1rem;
}

.prca-input-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.calculated-consumed {
	background-color: var(--light-bg);
	padding: 0.75rem;
	border-radius: 4px;
	text-align: center;
	margin-top: 0.5rem;
}

.calculated-consumed strong {
	color: var(--primary-color);
	font-size: 1.1rem;
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
	.tab-button {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
		flex: 1;
		text-align: center;
	}

	.prca-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.prca-input-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.prca-value {
		font-size: 1.25rem;
	}
}
