.ctlf-money-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ctlf-period-picker [data-custom-dates] {
	flex-wrap: wrap;
}

.ctlf-audit-tools form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 10px;
	align-items: end;
}

.ctlf-audit-tools label {
	font-size: 11px;
	font-weight: 850;
}

.ctlf-audit-tools input,
.ctlf-audit-tools select {
	box-sizing: border-box;
	width: 100%;
	min-height: 43px;
	margin-top: 5px;
	padding: 8px 10px;
	border: 1px solid #cfd6e1;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.ctlf-audit-tools button {
	min-height: 43px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #172033;
	color: #fff;
	font-weight: 900;
}

.ctlf-audit-tools > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.ctlf-audit-tools > div a {
	padding: 12px;
	border: 1px solid #d9b334;
	border-radius: 9px;
	background: #fff6d4;
	color: #172033 !important;
	text-decoration: none !important;
}

.ctlf-audit-tools > div strong,
.ctlf-audit-tools > div small {
	display: block;
}

.ctlf-audit-tools > div small {
	margin-top: 3px;
	color: #657186;
}

.ctlf-audit-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 15px 0;
}

.ctlf-audit-summary article {
	padding: 17px;
	border: 1px solid var(--lf-line);
	border-radius: 13px;
	background: #fff;
}

.ctlf-audit-summary span,
.ctlf-audit-summary strong,
.ctlf-audit-summary small {
	display: block;
}

.ctlf-audit-summary span,
.ctlf-audit-summary small {
	color: var(--lf-muted);
	font-size: 11px;
}

.ctlf-audit-summary strong {
	margin: 6px 0;
	font-size: 21px;
}

.ctlf-audit-list {
	display: grid;
	gap: 10px;
}

.ctlf-audit-list article {
	display: grid;
	grid-template-columns: 95px minmax(0, 1fr) 150px;
	align-items: center;
	gap: 15px;
	padding: 15px;
	border: 1px solid var(--lf-line);
	border-radius: 12px;
	background: #fff;
}

.ctlf-audit-list time strong,
.ctlf-audit-list time small,
.ctlf-audit-list article > div:last-child span,
.ctlf-audit-list article > div:last-child strong {
	display: block;
}

.ctlf-audit-list h2 {
	margin: 6px 0 3px;
	font-size: 15px;
}

.ctlf-audit-list p,
.ctlf-audit-list small,
.ctlf-audit-list article > div:last-child span {
	margin: 0;
	color: var(--lf-muted);
	font-size: 11px;
}

.ctlf-dashboard-audit {
	display: grid;
	grid-template-columns: minmax(180px, .8fr) minmax(420px, 2fr) auto;
	gap: 20px;
	align-items: center;
	margin: 16px 0;
	padding: 18px 22px;
	border: 1px solid #dbe2ec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(23, 32, 51, .04);
}

.ctlf-dashboard-audit h2 { margin: 0 0 4px; font-size: 20px; }
.ctlf-dashboard-audit p { margin: 0; color: #667085; font-size: 13px; }
.ctlf-dashboard-audit ol { display: flex; gap: 10px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.ctlf-dashboard-audit li { min-width: 150px; padding: 5px 10px; border-left: 3px solid #fbbc16; }
.ctlf-dashboard-audit li span,
.ctlf-dashboard-audit li small { display: block; color: #667085; font-size: 11px; }
.ctlf-dashboard-audit li strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ctlf-dashboard-audit > a { padding: 12px 15px; border-radius: 10px; background: #172033; color: #fff !important; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ctlf-dashboard-audit > a:hover { background: #fbbc16; color: #172033 !important; }

.ctlf-delivery-admin-link { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 15px 18px; border: 1px solid #f0c241; border-radius: 13px; background: #fff8dd; }
.ctlf-delivery-admin-link a { padding: 11px 15px; border-radius: 9px; background: #172033; color: #fff !important; font-weight: 850; text-decoration: none; }
.ctlf-delivery-admin-link a:hover { background: #fbbc16; color: #172033 !important; }
.ctlf-delivery-admin-link small { color: #667085; }
.ctlf-logistics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.ctlf-logistics-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 15px; }
.ctlf-logistics-heading h2,.ctlf-logistics-heading p { margin: 0 0 4px; }
.ctlf-logistics-heading p { color: #667085; font-size: 12px; }
.ctlf-logistics-heading > a { padding: 9px 12px; border: 1px solid #cfd6e1; border-radius: 8px; color: #172033 !important; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ctlf-logistics-list { display: grid; gap: 10px; }
.ctlf-logistics-list article { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e1e6ee; border-radius: 11px; }
.ctlf-logistics-list h3 { margin: 6px 0 3px; font-size: 15px; }
.ctlf-logistics-list small { display: block; color: #667085; }
.ctlf-logistics-list article > div:last-child { display: flex; align-items: center; gap: 8px; }
.ctlf-logistics-list article > div:last-child a,.ctlf-logistics-list button { padding: 8px 10px; border: 1px solid #cfd6e1; border-radius: 7px; background: #fff; color: #172033 !important; font-size: 12px; font-weight: 800; text-decoration: none; }
.ctlf-logistics-list button:disabled { opacity: .45; cursor: not-allowed; }
.ctlf-logistics-form { display: grid; gap: 11px; }
.ctlf-logistics-form h2,.ctlf-logistics-form p { margin-top: 0; }
.ctlf-logistics-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 800; }
.ctlf-logistics-form input,.ctlf-logistics-form select,.ctlf-logistics-form textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #cfd6e1; border-radius: 8px; background: #fff; font: inherit; }
.ctlf-logistics-form > button { min-height: 46px; border: 0; border-radius: 9px; background: #fbbc16; color: #172033; font-weight: 900; }
.ctlf-logistics-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ctlf-status.is-inactive,.ctlf-status.is-maintenance { background: #f2f4f7; color: #667085; }
.ctlf-status.is-busy { background: #fff0c7; color: #8a5a00; }

@media (max-width: 1050px) {
	.ctlf-logistics-grid { grid-template-columns: 1fr; }
	.ctlf-dashboard-audit { grid-template-columns: 1fr; }
	.ctlf-dashboard-audit ol { overflow-x: auto; }
	.ctlf-dashboard-audit > a { justify-self: start; }
	.ctlf-audit-tools form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ctlf-audit-tools button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.ctlf-delivery-admin-link,.ctlf-logistics-heading,.ctlf-logistics-list article { align-items: stretch; flex-direction: column; }
	.ctlf-logistics-list article > div:last-child { justify-content: flex-start; }
	.ctlf-logistics-dates { grid-template-columns: 1fr; }
	.ctlf-audit-tools form,
	.ctlf-audit-tools > div,
	.ctlf-audit-summary,
	.ctlf-audit-list article {
		grid-template-columns: 1fr;
	}

	.ctlf-audit-list article > div:last-child {
		padding-top: 9px;
		border-top: 1px solid var(--lf-line);
	}
	.ctlf-app-shell,
	.ctlf-app-main,
	.ctlf-app-panel,
	.ctlf-app-main > * {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}

	.ctlf-app-nav {
		overflow: hidden;
	}

	.ctlf-app-nav nav {
		display: flex !important;
		grid-template-columns: none !important;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.ctlf-app-nav nav a {
		box-sizing: border-box;
		flex: 0 0 56px;
		min-width: 56px;
	}

	.ctlf-app-nav nav a.is-active {
		flex-basis: auto;
		min-width: 104px;
		white-space: nowrap;
	}

	.ctlf-module-header h1 {
		font-size: clamp(26px, 8vw, 32px);
		letter-spacing: -.7px;
		overflow-wrap: anywhere;
	}

	.ctlf-add-button,
	.ctlf-form-actions button,
	.ctlf-form-actions a {
		box-sizing: border-box;
		justify-content: center;
		width: 100%;
		text-align: center;
	}

	.ctlf-app-shell button,
	.ctlf-app-shell input,
	.ctlf-app-shell select,
	.ctlf-app-shell textarea,
	.ctlf-app-shell a.ctlf-add-button {
		touch-action: manipulation;
	}

	.ctlf-form-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.ctlf-app-numbers article,
	.ctlf-financial-cards article,
	.ctlf-financial-pending article {
		min-width: 0;
	}

	.ctlf-app-numbers article > strong,
	.ctlf-financial-cards strong,
	.ctlf-financial-pending strong {
		font-size: 19px;
		overflow-wrap: anywhere;
	}

	.ctlf-client-search,
	.ctlf-shopping-list > div,
	.ctlf-quote-title,
	.ctlf-collection-title,
	.ctlf-account-payments article,
	.ctlf-financial-movements article {
		align-items: stretch;
		flex-direction: column;
	}

	.ctlf-client-search button,
	.ctlf-shopping-list a,
	.ctlf-production-list a,
	.ctlf-delivery-card > a,
	.ctlf-collection-list a,
	.ctlf-payment-history a {
		box-sizing: border-box;
		min-height: 44px;
		text-align: center;
	}

	.ctlf-quote-detail table,
	.ctlf-guide table,
	.ctlf-recipe-card table,
	.ctlf-production-grid table,
	.ctlf-order-screen table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.ctlf-quote-actions,
	.ctlf-delivery-actions,
	.ctlf-production-actions,
	.ctlf-money-form,
	.ctlf-payment-form,
	.ctlf-purchase-form {
		min-width: 0;
	}

	.ctlf-quote-form input,
	.ctlf-quote-form select,
	.ctlf-quote-form textarea,
	.ctlf-client-form input,
	.ctlf-client-form select,
	.ctlf-client-form textarea,
	.ctlf-purchase-form input,
	.ctlf-purchase-form select,
	.ctlf-payment-form input,
	.ctlf-payment-form select,
	.ctlf-payment-form textarea,
	.ctlf-money-form input,
	.ctlf-money-form select,
	.ctlf-money-form textarea,
	.ctlf-delivery-form input,
	.ctlf-delivery-form select,
	.ctlf-delivery-form textarea {
		box-sizing: border-box;
		max-width: 100%;
		font-size: 16px;
	}

	.ctlf-money-tabs a {
		flex: 1 1 145px;
		text-align: center;
	}
}

@media (min-width: 621px) and (max-width: 760px) {
	.ctlf-app-nav {
		overflow: visible;
	}

	.ctlf-app-nav nav {
		align-items: stretch;
		flex-direction: column;
		overflow: visible;
	}

	.ctlf-app-nav nav a,
	.ctlf-app-nav nav a.is-active {
		flex: 0 0 auto;
		min-width: 0;
	}
}

@media (max-width: 520px) {
	.ctlf-app-main {
		padding-right: 12px;
		padding-left: 12px;
	}

	.ctlf-app-panel {
		padding: 15px;
		border-radius: 13px;
	}

	.ctlf-quote-summary,
	.ctlf-collection-data,
	.ctlf-money-numbers {
		grid-template-columns: 1fr;
	}

	.ctlf-quote-summary > div,
	.ctlf-collection-data > div,
	.ctlf-money-numbers > div {
		padding: 10px;
	}

	.ctlf-guide {
		padding: 18px 14px;
	}

	.ctlf-guide header,
	.ctlf-guide section {
		display: block;
	}

	.ctlf-guide header > * {
		margin-bottom: 10px;
	}

	.ctlf-guide-download,
	.ctlf-guide header button {
		box-sizing: border-box;
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.ctlf-period-picker [data-custom-dates] label {
		width: 100%;
	}

	.ctlf-period-picker [data-custom-dates] input {
		box-sizing: border-box;
		width: 100%;
	}
}

@media (max-width: 390px) {
	.ctlf-app-numbers,
	.ctlf-app-actions > div {
		grid-template-columns: 1fr;
	}

	.ctlf-app-actions button {
		min-height: 82px;
	}
}
