.sms-app,
.sms-login-page {
	--sms-ink: #1f2937;
	--sms-muted: #6b7280;
	--sms-border: #e5e7eb;
	--sms-paper: #ffffff;
	--sms-ground: #f7f8fa;
	--sms-primary: #134563;
	--sms-accent: #14b8a6;
	--sms-danger: #b42318;
	color: var(--sms-ink);
	font-family: Aptos, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.sms-app *,
.sms-login-page * {
	box-sizing: border-box;
}

.sms-app {
	background: var(--sms-ground);
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	margin: 0 auto;
	min-height: 100vh;
	max-width: 1600px;
	text-align: left;
}

.sms-sidebar {
	background: var(--sms-paper);
	border-right: 1px solid var(--sms-border);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 28px 18px 20px;
}

.sms-brand {
	color: var(--sms-primary) !important;
	display: inline-flex;
	flex-direction: column;
	font-size: 17px;
	font-weight: 750;
	line-height: 1.2;
	margin: 0 8px 34px;
	text-decoration: none !important;
}

.sms-brand span {
	color: var(--sms-muted);
	font-size: 11px;
	font-weight: 600;
	margin-top: 5px;
}

.sms-sidebar nav {
	display: grid;
	gap: 4px;
}

.sms-sidebar nav a {
	border-left: 3px solid transparent;
	border-radius: 0 4px 4px 0;
	color: #455260 !important;
	display: block;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 12px;
	text-decoration: none !important;
}

.sms-sidebar nav a:hover,
.sms-sidebar nav a:focus-visible {
	background: #f0f5f6;
	color: var(--sms-primary) !important;
}

.sms-sidebar nav a.is-active {
	background: #eaf2f4;
	border-color: var(--sms-accent);
	color: var(--sms-primary) !important;
}

.sms-sidebar-user {
	border-top: 1px solid var(--sms-border);
	display: grid;
	gap: 8px;
	margin-top: auto;
	padding: 18px 8px 0;
}

.sms-sidebar-user > span {
	font-weight: 650;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.sms-sidebar-user a,
.sms-logout {
	background: none;
	border: 0;
	color: var(--sms-muted) !important;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-align: left;
	text-decoration: none !important;
}

.sms-sidebar-user a:hover,
.sms-logout:hover {
	color: var(--sms-primary) !important;
}

.sms-main {
	min-width: 0;
}

.sms-content {
	margin: 0 auto;
	max-width: 1320px;
	padding: 36px clamp(20px, 4vw, 58px) 56px;
}

.sms-page-heading {
	margin: 0 0 23px;
}

.sms-page-heading h1,
.sms-login-panel h1 {
	color: var(--sms-ink);
	font-size: 25px;
	font-weight: 720;
	line-height: 1.25;
	margin: 0;
}

.sms-page-heading p,
.sms-login-panel > p {
	color: var(--sms-muted);
	margin: 7px 0 0;
}

.sms-mobile-header {
	display: none;
}

.sms-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	justify-content: center;
	line-height: 1.3;
	min-height: 40px;
	padding: 8px 14px;
	text-decoration: none !important;
}

.sms-button:focus-visible,
.sms-app a:focus-visible,
.sms-app button:focus-visible,
.sms-app input:focus-visible,
.sms-app select:focus-visible,
.sms-app textarea:focus-visible,
.sms-login-page input:focus-visible,
.sms-login-page button:focus-visible {
	box-shadow: 0 0 0 3px rgb(20 184 166 / 25%);
	outline: 2px solid var(--sms-accent);
	outline-offset: 1px;
}

.sms-primary {
	background: var(--sms-primary);
	color: #fff !important;
}

.sms-primary:hover {
	background: #0d364d;
}

.sms-secondary {
	background: var(--sms-paper);
	border-color: #cbd5dc;
	color: var(--sms-primary) !important;
}

.sms-secondary:hover {
	background: #f2f7f8;
}

.sms-danger {
	background: #fff;
	border-color: #e3b6b2;
	color: var(--sms-danger) !important;
}

.sms-danger:hover {
	background: #fff5f4;
}

.sms-stats {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 28px;
}

.sms-stat {
	background: var(--sms-paper);
	border: 1px solid var(--sms-border);
	border-radius: 5px;
	min-height: 91px;
	padding: 15px 17px;
}

.sms-stat span {
	color: var(--sms-muted);
	display: block;
	font-size: 13px;
	font-weight: 600;
}

.sms-stat strong {
	color: var(--sms-primary);
	display: block;
	font-size: 25px;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
	margin-top: 5px;
}

.sms-dashboard-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1.45fr) minmax(240px, .8fr);
}

.sms-section {
	margin: 26px 0 0;
}

.sms-dashboard-grid .sms-section {
	background: var(--sms-paper);
	border: 1px solid var(--sms-border);
	border-radius: 5px;
	margin: 0;
	min-width: 0;
	padding: 18px;
}

.sms-section h2 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
}

.sms-table-wrap {
	margin: 17px 0 0;
	overflow-x: auto;
	width: 100%;
}

.sms-table {
	border-collapse: collapse;
	font-size: 13px;
	min-width: 680px;
	text-align: left;
	width: 100%;
}

.sms-table th {
	background: #f4f6f7;
	color: #53606b;
	font-size: 11px;
	font-weight: 700;
	padding: 11px 12px;
	text-transform: uppercase;
}

.sms-table td {
	border-bottom: 1px solid var(--sms-border);
	padding: 12px;
	vertical-align: middle;
}

.sms-table tbody tr:last-child td {
	border-bottom: 0;
}

.sms-table a,
.sms-actions a {
	color: var(--sms-primary) !important;
	font-weight: 650;
	text-decoration: none !important;
}

.sms-table a:hover,
.sms-actions a:hover {
	text-decoration: underline !important;
}

.sms-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.sms-inline-form {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sms-inline-form button.sms-link-danger {
	background: none;
	border: 0;
	color: var(--sms-danger);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	padding: 0;
}

.sms-status {
	background: #eff2f4;
	border-radius: 3px;
	color: #4b5563;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	padding: 5px 7px;
	white-space: nowrap;
}

.status-active,
.status-completed {
	background: #e4f5ef;
	color: #126c4f;
}

.status-pending,
.status-in_progress {
	background: #fff3d8;
	color: #805500;
}

.status-cancelled,
.status-expired,
.status-inactive {
	background: #fbe9e7;
	color: #a12c23;
}

.sms-filters {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 19px 0 6px;
}

.sms-filters label,
.sms-field {
	color: #44515c;
	display: grid;
	font-size: 13px;
	font-weight: 650;
	gap: 6px;
}

.sms-filters input,
.sms-filters select,
.sms-field input,
.sms-field select,
.sms-field textarea,
.sms-status-form select {
	background: #fff;
	border: 1px solid #cbd3d9;
	border-radius: 4px;
	color: var(--sms-ink);
	font: inherit;
	font-size: 14px;
	min-height: 40px;
	min-width: 150px;
	padding: 8px 10px;
}

.sms-field textarea {
	min-height: 118px;
	resize: vertical;
}

.sms-form {
	display: grid;
	gap: 17px;
	margin-top: 20px;
	max-width: 680px;
}

.sms-field {
	font-size: 14px;
}

.sms-field input,
.sms-field select,
.sms-field textarea {
	width: 100%;
}

.sms-form-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 4px;
}

.sms-empty {
	background: #fff;
	border: 1px dashed #cbd3d9;
	border-radius: 4px;
	color: var(--sms-muted);
	margin: 20px 0;
	padding: 22px;
}

.sms-details {
	display: grid;
	grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
	margin: 22px 0;
	max-width: 800px;
}

.sms-details dt,
.sms-details dd {
	border-bottom: 1px solid var(--sms-border);
	margin: 0;
	padding: 11px 8px;
}

.sms-details dt {
	color: var(--sms-muted);
	font-size: 13px;
	font-weight: 650;
}

.sms-description {
	max-width: 850px;
	white-space: normal;
}

.sms-profile-summary {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.sms-upcoming {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sms-upcoming li {
	align-items: flex-start;
	border-bottom: 1px solid var(--sms-border);
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 0;
}

.sms-upcoming li:first-child {
	padding-top: 0;
}

.sms-upcoming li:last-child {
	border-bottom: 0;
}

.sms-upcoming a {
	color: var(--sms-primary) !important;
	font-weight: 650;
	text-decoration: none !important;
}

.sms-upcoming time {
	color: var(--sms-muted);
	font-size: 12px;
}

.sms-notice {
	border: 1px solid transparent;
	border-radius: 4px;
	margin: 0 0 17px;
	padding: 11px 13px;
}

.sms-notice.is-success {
	background: #e9f5f0;
	border-color: #b9dfd0;
	color: #126c4f;
}

.sms-notice.is-error {
	background: #fff1ef;
	border-color: #edc4bf;
	color: #9d2b21;
}

.sms-standalone {
	margin: 20px auto;
	max-width: 700px;
}

.sms-delete-form {
	margin-top: 15px;
}

.sms-login-page {
	align-items: center;
	background: linear-gradient(120deg, #f1f5f4 0%, #f7f8fa 55%, #eef3f6 100%);
	display: flex;
	justify-content: center;
	min-height: 100vh;
	padding: 32px 16px;
}

.sms-login-panel {
	background: var(--sms-paper);
	border: 1px solid var(--sms-border);
	border-radius: 6px;
	max-width: 440px;
	padding: 30px;
	width: 100%;
}

.sms-login-panel .sms-brand {
	margin: 0 0 30px;
}

.sms-login-panel h1 {
	font-size: 23px;
}

.sms-login-panel .sms-form {
	gap: 15px;
}

.sms-login-panel .sms-button {
	width: 100%;
}

.sms-check {
	align-items: center;
	color: var(--sms-muted);
	display: flex;
	font-size: 13px;
	gap: 8px;
}

.sms-check input {
	accent-color: var(--sms-primary);
	height: 16px;
	width: 16px;
}

.sms-forgot {
	color: var(--sms-primary) !important;
	display: inline-block;
	font-size: 13px;
	font-weight: 650;
	margin-top: 17px;
	text-decoration: none !important;
}

@media (max-width: 900px) {
	.sms-app {
		grid-template-columns: 190px minmax(0, 1fr);
	}

	.sms-content {
		padding: 28px 22px 40px;
	}

	.sms-dashboard-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.sms-app {
		display: block;
		min-height: 100vh;
	}

	.sms-sidebar {
		border-bottom: 1px solid var(--sms-border);
		border-right: 0;
		padding: 12px 16px;
	}

	.sms-sidebar > .sms-brand {
		display: none;
	}

	.sms-sidebar nav {
		display: none;
		padding-top: 10px;
	}

	.sms-sidebar.is-open nav {
		display: grid;
	}

	.sms-sidebar-user {
		align-items: center;
		border: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 13px;
		margin: 0;
		padding: 0;
	}

	.sms-sidebar-user > span {
		margin-right: auto;
	}

	.sms-mobile-header {
		align-items: center;
		background: var(--sms-primary);
		color: #fff;
		display: flex;
		font-weight: 700;
		gap: 14px;
		min-height: 52px;
		padding: 8px 16px;
	}

	.sms-menu-toggle {
		background: transparent;
		border: 1px solid rgb(255 255 255 / 55%);
		border-radius: 3px;
		color: #fff;
		cursor: pointer;
		font: inherit;
		font-size: 13px;
		min-height: 34px;
		padding: 5px 9px;
	}

	.sms-content {
		padding: 24px 16px 34px;
	}

	.sms-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sms-stat {
		min-height: 82px;
		padding: 12px;
	}

	.sms-stat strong {
		font-size: 22px;
	}

	.sms-table-wrap {
		margin-left: -4px;
		max-width: calc(100% + 8px);
	}

	.sms-filters {
		align-items: stretch;
		flex-direction: column;
	}

	.sms-filters label,
	.sms-filters input,
	.sms-filters select {
		width: 100%;
	}

	.sms-details {
		grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
	}

	.sms-details dt,
	.sms-details dd {
		padding: 10px 5px;
		word-break: break-word;
	}

	.sms-login-page {
		min-height: 100vh;
		padding: 16px 10px;
	}

	.sms-login-panel {
		padding: 23px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

.sms-module-view {
	position: relative;
}

.sms-module-view.is-loading::after {
	background: rgb(247 248 250 / 72%);
	content: "";
	inset: 0;
	position: absolute;
}

.sms-module-view.is-loading::before {
	animation: sms-spin .8s linear infinite;
	border: 2px solid #c6d8da;
	border-radius: 50%;
	border-top-color: var(--sms-primary);
	content: "";
	height: 24px;
	left: calc(50% - 12px);
	position: absolute;
	top: 110px;
	width: 24px;
	z-index: 1;
}

.sms-modal[hidden] {
	display: none;
}

.sms-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 100000;
}

.sms-modal-overlay {
	background: rgb(17 31 40 / 54%);
	border: 0;
	cursor: default;
	inset: 0;
	position: absolute;
}

.sms-modal-content {
	background: #fff;
	border: 1px solid var(--sms-border);
	border-radius: 6px;
	box-shadow: 0 18px 52px rgb(18 39 48 / 22%);
	display: flex;
	flex-direction: column;
	max-height: min(88vh, 820px);
	max-width: 700px;
	position: relative;
	width: min(100%, 700px);
}

.sms-modal-header,
.sms-modal-footer {
	align-items: center;
	background: #fff;
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 14px 19px;
}

.sms-modal-header {
	border-bottom: 1px solid var(--sms-border);
}

.sms-modal-header h2 {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
}

.sms-modal-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--sms-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 26px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	width: 34px;
}

.sms-modal-body {
	overflow: auto;
	padding: 18px 20px;
}

.sms-modal-body .sms-form {
	margin-top: 0;
}

.sms-modal-body .sms-details {
	margin-top: 0;
}

.sms-modal-footer {
	border-top: 1px solid var(--sms-border);
	gap: 8px;
	justify-content: flex-end;
}

.sms-modal-footer:empty {
	display: none;
}

.sms-modal-open {
	overflow: hidden;
}

.sms-modal-open .sms-modal.is-open {
	animation: sms-modal-in .14s ease-out both;
}

.sms-loading {
	align-items: center;
	color: var(--sms-muted);
	display: flex;
	gap: 10px;
	justify-content: center;
	min-height: 130px;
}

.sms-spinner {
	animation: sms-spin .8s linear infinite;
	border: 2px solid #c6d8da;
	border-radius: 50%;
	border-top-color: var(--sms-primary);
	display: inline-block;
	height: 20px;
	width: 20px;
}

.sms-field.has-error input,
.sms-field.has-error select,
.sms-field.has-error textarea {
	border-color: #b42318;
	box-shadow: 0 0 0 2px rgb(180 35 24 / 10%);
}

.sms-field-error {
	color: #a12c23;
	font-size: 12px;
	font-weight: 500;
}

.sms-toast-region {
	display: grid;
	gap: 9px;
	max-width: min(400px, calc(100vw - 32px));
	position: fixed;
	right: 20px;
	top: 18px;
	z-index: 100010;
}

.sms-toast {
	animation: sms-toast-in .18s ease-out both;
	background: #e9f5f0;
	border: 1px solid #b9dfd0;
	border-radius: 4px;
	box-shadow: 0 8px 22px rgb(18 39 48 / 12%);
	color: #126c4f;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 15px;
}

.sms-toast.is-error {
	background: #fff1ef;
	border-color: #edc4bf;
	color: #9d2b21;
}

.sms-toast.is-leaving {
	opacity: 0;
	transform: translateY(-5px);
}

.sms-field input[readonly] {
	background: #f4f6f7;
	color: #596570;
}

@keyframes sms-spin {
	to { transform: rotate(360deg); }
}

@keyframes sms-modal-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sms-toast-in {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
	.sms-modal {
		align-items: flex-end;
		padding: 0;
	}

	.sms-modal-content {
		border-radius: 7px 7px 0 0;
		max-height: 92vh;
		width: 100%;
	}

	.sms-modal-header,
	.sms-modal-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.sms-modal-body {
		padding: 16px;
	}

	.sms-toast-region {
		left: 12px;
		right: 12px;
		top: 12px;
	}
}