/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.chat-thread {
	max-height: 560px;
	overflow-y: auto;
	background: #f7f9fc;
	border-radius: 0.5rem;
}

.chat-row {
	display: flex;
	margin-bottom: 0.75rem;
}

.chat-row-inbound {
	justify-content: flex-start;
}

.chat-row-outbound {
	justify-content: flex-end;
}

.chat-bubble {
	max-width: 78%;
	padding: 0.75rem;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(21, 37, 63, 0.08);
}

.chat-bubble-inbound {
	background: #ffffff;
	border: 1px solid #e3eaf4;
}

.chat-bubble-outbound {
	background: #e8f1ff;
	border: 1px solid #c5dbff;
}

.chat-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.78rem;
	margin-bottom: 0.45rem;
}

.chat-body {
	font-size: 0.92rem;
	white-space: normal;
}

.chat-submeta {
	margin-top: 0.5rem;
}

.chat-media-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	height: 1.2rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	background: #e8edf5;
	color: #274063;
	border: 1px solid #ced8e6;
	line-height: 1;
}

.chat-media-image {
	background: #e8f4ff;
	border-color: #c9dff8;
	color: #1f4d80;
}

.chat-media-audio {
	background: #e8fbf2;
	border-color: #bfe8d2;
	color: #1c6b4d;
}

.chat-media-video {
	background: #fff4e8;
	border-color: #f2d6b3;
	color: #8a4c10;
}

.chat-media-document {
	background: #f1edff;
	border-color: #d8cff8;
	color: #4b3e8f;
}

.chat-media-sticker {
	background: #fef3eb;
	border-color: #f6d7c4;
	color: #7f3f13;
}

.chat-toast {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1080;
	min-width: 220px;
	max-width: 320px;
	padding: 0.75rem 0.85rem;
	border-radius: 0.65rem;
	border: 1px solid #bcd5ff;
	background: #f5f9ff;
	box-shadow: 0 8px 20px rgba(18, 43, 77, 0.18);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-toast-visible {
	opacity: 1;
	transform: translateY(0);
}

.chat-toast-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f3e63;
	margin-bottom: 0.5rem;
}

.chat-toast-button {
	border: 1px solid #9fc2fb;
	background: #ffffff;
	color: #1f4d80;
	border-radius: 0.45rem;
	padding: 0.3rem 0.55rem;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}

.chat-toast-button:hover {
	background: #ecf4ff;
}

.app-footer {
	padding: 0.9rem 1rem;
	border-top: 1px solid #dce2eb;
}

.app-footer-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.95rem;
}

.app-footer-copy {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	justify-self: start;
}

.app-footer-brand-logo {
	width: 32px;
	height: auto;
	display: block;
}

.app-footer-trademark {
	color: #2f3f5a;
}

.app-footer-links {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	justify-self: center;
}

.app-footer-links a {
	white-space: nowrap;
}

.app-footer-developed-by {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	justify-self: end;
	white-space: nowrap;
}

.app-brand-block {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	line-height: 1.2;
}

.app-header {
	background: #ffffff;
	border-bottom: 1px solid #dce2eb;
}

.app-header .container-xl {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
}

.app-brand-title {
	display: flex;
	align-items: center;
}

.app-brand-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-align: left;
}

.app-brand-logo {
	height: 36px;
	width: auto;
	display: block;
}

.app-brand-subtitle {
	font-size: 0.8rem;
	color: #5f6f86;
}

.app-brand-description {
	font-size: 0.74rem;
	color: #8090a6;
}

.account-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.6rem;
	background: #f7f9fc;
	border: 1px solid #d8e0ec;
	border-radius: 999px;
}

.account-chip-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: #305aa6;
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.account-chip-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.account-chip-name {
	font-size: 0.8rem;
	font-weight: 600;
	color: #1f2a44;
}

.account-chip-role {
	font-size: 0.7rem;
	color: #4b5f7f;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.messages-index .table td {
	vertical-align: top;
}

.dashboard-actions {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.dashboard-filter-actions {
	flex-wrap: wrap;
}

.admin-navbar-shell .navbar-toggler {
	border: 1px solid #d0d7e3;
	background: #ffffff;
}

@media (max-width: 767.98px) {
	.app-header .container-xl {
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.5rem;
	}

	.app-header .navbar-nav {
		margin-left: auto;
		flex: 0 0 auto;
	}

	.app-brand-block {
		min-width: 0;
		flex: 1 1 auto;
		gap: 0.45rem;
	}

	.app-brand-copy {
		min-width: 0;
	}

	.app-brand-subtitle {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: calc(100vw - 165px);
	}

	#navbar-menu {
		border-top: 1px solid #dce2eb;
	}

	#navbar-menu .navbar-nav {
		width: 100%;
		padding: 0.45rem 0;
	}

	#navbar-menu .nav-item {
		width: 100%;
	}

	#navbar-menu .nav-link {
		padding: 0.65rem 0;
	}

	.app-brand-logo {
		height: 30px;
	}

	.app-brand-description {
		display: none;
	}

	.app-header .container-xl {
		padding-top: 0.55rem;
		padding-bottom: 0.55rem;
	}

	.account-chip {
		padding: 0.2rem 0.3rem;
	}

	.account-chip-meta {
		display: none;
	}

	.account-chip-avatar {
		width: 1.55rem;
		height: 1.55rem;
		font-size: 0.72rem;
	}

	.messages-index-header {
		flex-direction: column;
		align-items: stretch !important;
		gap: 0.75rem;
	}

	.messages-index-header .btn {
		width: 100%;
	}

	.messages-filter-actions {
		flex-wrap: wrap;
	}

	.messages-filter-actions .btn {
		flex: 1 1 100%;
	}

	.messages-index .table-responsive {
		overflow-x: visible;
	}

	.messages-index .table thead {
		display: none;
	}

	.messages-index .table,
	.messages-index .table tbody,
	.messages-index .table tr,
	.messages-index .table td {
		display: block;
		width: 100%;
	}

	.messages-index .table tr {
		padding: 0.75rem 0.5rem;
		border-bottom: 1px solid #dce2eb;
		border-left: 3px solid transparent;
		border-radius: 0.4rem;
		margin: 0.35rem 0;
	}

	.messages-index .table tr.conversation-inbound {
		background: #f5fbf5;
		border-left-color: #5cb85c;
	}

	.messages-index .table tr.conversation-outbound {
		background: #f4f8ff;
		border-left-color: #3f7ad9;
	}

	.messages-index .table td {
		padding: 0.35rem 0.25rem;
		white-space: normal !important;
		word-break: break-word;
		border-top: 0;
	}

	.messages-index .message-mobile-meta .badge {
		margin-right: 0.25rem;
	}

	.messages-index .table td.direction-column,
	.messages-index .table td.status-column,
	.messages-index .table td.updated-column,
	.messages-index .table td.actions-column {
		display: none !important;
	}

	.messages-index .contact-column,
	.messages-index .message-column {
		min-width: 0;
	}

	.messages-index .contact-extra {
		display: none;
	}

	.messages-index .contact-topline {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0.5rem;
	}

	.messages-index .contact-name {
		margin-bottom: 0.1rem;
	}

	.messages-index .contact-phone {
		font-size: 0.8rem;
	}

	.messages-index .contact-updated {
		white-space: nowrap;
		font-size: 0.75rem;
	}

	.messages-index .message-type {
		display: none;
	}

	.messages-index .message-column > div:first-child {
		display: -webkit-box;
		line-clamp: 3;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.dashboard-header {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 0.75rem;
	}

	.dashboard-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.dashboard-actions .btn,
	.dashboard-filter-actions .btn {
		flex: 1 1 100%;
	}

	.table-responsive .table {
		font-size: 0.86rem;
	}

	.table-responsive .table th,
	.table-responsive .table td {
		white-space: nowrap;
	}

	.chat-toast {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		max-width: none;
	}

	.app-footer-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		row-gap: 0.4rem;
	}

	.app-footer-copy,
	.app-footer-links,
	.app-footer-developed-by {
		justify-self: center;
	}

	.app-footer-developed-by {
		margin-left: 0;
	}
}

@media (max-width: 575.98px) {
	.app-brand-subtitle {
		display: none;
	}
}
