/* =========================================================
   Variables & Reset
   ========================================================= */
:root {
	--timegrid-slot-height: 52px;
	--now-line-thickness: 3px;
	--now-dot-size: 20px;
	--riskAlpha: 0.1;
	--fc-now-indicator-color: #F0C808;
	--event-bar-w: 1px;
	--event-bar-gap: 10px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	height: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100%;
}

html {
	height: auto;
	min-height: 100%;
}

/* =========================================================
   Global Layout & Backgrounds
   ========================================================= */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: url('background.jpg') center/cover no-repeat fixed;
	z-index: -2;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .35);
	z-index: -1;
}

body.theme-saas::after {
	background: rgba(0, 0, 0, .20);
}

body.theme-lux::after {
	background: rgba(0, 0, 0, .20);
}

body.theme-dark #calendar .mobile-menu-dropdown {
	background: rgba(17, 26, 46, 0.86);
	border-color: rgba(31, 42, 68, 0.9);
}

body.modal-open {
	overflow: hidden;
}

body.theme-dark .settings-btn {
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(17, 26, 46, 0.35);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

body.theme-dark .settings-dropdown {
	background: rgba(17, 26, 46, 0.78);
	border-color: rgba(31, 42, 68, 0.9);
}

body.theme-dark .settings-item:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .legend-color {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35) inset;
}

body.theme-dark .notify-icon {
	border-color: rgba(31, 42, 68, 0.9);
	background: rgba(17, 26, 46, 0.55);
}

body.theme-dark .notify-x:hover {
	border-color: rgba(31, 42, 68, 0.9);
	background: rgba(255, 255, 255, 0.06);
}

body.theme-dark input {
	background: rgba(17, 26, 46, 0.65);
}

body.theme-dark select {
	background: rgba(17, 26, 46, 0.65);
}

body.theme-dark textarea {
	background: rgba(17, 26, 46, 0.65);
}

body.theme-dark .reviewBox {
	background: rgba(17, 26, 46, 0.55);
}

body.theme-dark .turnover-card {
	background: rgba(17, 26, 46, 0.55);
}

body.theme-dark .cardish {
	background: rgba(17, 26, 46, 0.55);
}

body.theme-dark .turnover-table-wrap {
	border-color: rgba(31, 42, 68, 0.9);
}

body.theme-dark .turnover-th {
	border-bottom-color: rgba(31, 42, 68, 0.8);
	background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .turnover-td {
	border-bottom-color: rgba(31, 42, 68, 0.8);
}

/* =========================================================
   Utilities
   ========================================================= */
.muted {
	color: var(--muted);
}

.hidden {
	display: none !important;
}

/* =========================================================
   Buttons, Forms & Tables
   ========================================================= */
.btn {
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--card);
	color: var(--text);
	cursor: pointer;
	user-select: none;
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-weight: 600;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	transition: transform .04s ease, box-shadow .12s ease, border-color .12s ease;
	appearance: none;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-soft);
	filter: brightness(1.1);
	background: rgba(255, 255, 255, .06);
}

.btn:active {
	transform: translateY(1px);
	filter: brightness(0.9);
	background: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.btn-primary {
	background: var(--primary);
	border-color: rgba(37, 99, 235, 0.45);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-2);
}

button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

label {
	display: block;
	margin-top: 10px;
	font-weight: 600;
	margin: 12px 0 6px;
}

input {
	width: 100%;
	padding: 10px 12px;
	margin-top: 6px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.65);
	color: var(--text);
}

select {
	width: 100%;
	padding: 10px 12px;
	margin-top: 6px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.65);
	color: var(--text);
}

textarea {
	width: 100%;
	padding: 10px 12px;
	margin-top: 6px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.65);
	color: var(--text);
	min-height: 70px;
	resize: vertical;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}

th {
	border-bottom: 1px solid var(--border);
	padding: 10px 10px;
	vertical-align: top;
	background: rgba(255, 255, 255, .06);
	text-align: left;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: uppercase;
}

td {
	border-bottom: 1px solid var(--border);
	padding: 10px 10px;
	vertical-align: top;
}

.btn-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .55);
	border-top-color: transparent;
	animation: spin .8s linear infinite;
	display: none;
}

.btn:focus {
	outline: 3px solid rgba(37, 99, 235, 0.25);
	outline-offset: 2px;
}

.btn-danger {
	border-color: rgba(239, 68, 68, 0.35);
	background: #ef4444;
	color: #fff;
}

.btn-danger:hover {
	filter: brightness(0.95);
}

.btn-ghost {
	background: transparent;
	border: 1px solid var(--border);
}

input::-ms-reveal {
	display: block;
	filter: invert(1);
}

input::-ms-clear {
	display: block;
	filter: invert(1);
}

input[type="password"]::-webkit-textfield-decoration-container {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	padding-right: 10px !important;
}

#clientsModal table th {
	vertical-align: middle;
	border-bottom: none;
}

#clientsModal table td {
	vertical-align: middle;
	border-bottom: none;
}

/* Client list: keep a full-width separator line under each row */
#clientsModal table {
	border-collapse: collapse;
}

/* Draw separator on the whole row so the line lines up across all cells */
#clientsModal table tbody tr:not(:last-child) {
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.client-phone-cell {
	font-weight: 700;
}


#clientsModal table thead th:nth-child(1) {
	text-align: center;
}

#clientsModal table tbody td:nth-child(1) {
	text-align: center;
}

#clientsModal table thead th:nth-child(2) {
	text-align: center;
}

#clientsModal table tbody td:nth-child(2) {
	text-align: center;
}

#clientsModal table tbody td:nth-child(3) textarea {
	display: block;
	margin: 0 auto;
	width: min(520px, 100%);
}

#clientsModal table thead th:nth-child(4) {
	text-align: center;
	white-space: nowrap;
}

#clientsModal table tbody td.actions-cell {
	text-align: center;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

#clientsModal table tbody td.actions-cell button {
	margin: 0;
}

/* =========================================================
   Settings Menu
   ========================================================= */
.settings-btn {
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.22);
	color: var(--text);
	cursor: pointer;
	user-select: none;
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-weight: 500;
	box-shadow: 0 10px 20px rgba(2, 6, 23, 0.12);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	width: 40px;
	height: 40px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.settings-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	filter: brightness(1.1);
	background: rgba(255, 255, 255, .06);
}

.settings-menu {
	position: relative;
}

.settings-icon {
	width: 20px;
	height: 20px;
	display: block;
	transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.settings-btn:hover .settings-icon {
	transform: rotate(180deg);
}

.settings-menu.open .settings-icon {
	transform: rotate(360deg);
}

.settings-dropdown {
	position: absolute;
	top: 48px;
	right: 0;
	min-width: 230px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px) scale(.98);
	transform-origin: 90% 0%;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	z-index: 50;
	width: 280px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	display: none;
}

.settings-menu.open .settings-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	transition-delay: 0s;
	display: block;
}

.settings-item {
	width: 100%;
	padding: 10px;
	border: 1px solid transparent;
	background: transparent;
	text-align: left;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	color: var(--text);
	display: flex;
	align-items: center;
	gap: 10px;
}

.settings-item:hover {
	background: rgba(15, 23, 42, 0.06);
	border-color: rgba(15, 23, 42, 0.06);
}

.settings-item.danger {
	color: #ef4444;
}

.settings-divider {
	height: 1px;
	background: var(--border);
	margin: 10px 6px;
	opacity: 0.8;
}

.settings-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.10));
	opacity: .55;
	pointer-events: none;
}

.settings-btn .settings-icon {
	position: relative;
	z-index: 1;
}

.settings-btn:active {
	transform: translateY(0px);
}

.settings-head {
	padding: 8px 10px 10px;
}

.settings-head-title {
	font-weight: 700;
}

.settings-head-sub {
	font-size: 12px;
	margin-top: 2px;
}

.settings-legend {
	padding: 2px 10px 8px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 10px;
}

/* Prevent Greek status labels from wrapping onto two lines in the settings dropdown */
.settings-legend .legend-item {
	font-size: 11px;
}

.settings-legend .legend-label {
	white-space: nowrap;
}

/* Language buttons inside settings dropdown (inline, small flags) */
.settings-lang {
	display: flex;
	gap: 8px;
	padding: 0 10px;
}

.settings-lang .settings-lang-btn {
	flex: 1;
	justify-content: center;
	gap: 8px;
	padding: 10px 8px;
}

.settings-lang .settings-lang-btn .item-icon {
	font-size: 16px;
	line-height: 1;
}

/* twemoji replaces emojis with <img> */
.settings-lang .settings-lang-btn .item-icon img {
	width: 18px;
	height: 18px;
}

/* =========================================================
   Modals & Notifications
   ========================================================= */
.modal {
	position: fixed;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	background: rgba(2, 6, 23, 0.45);
	transition: opacity .18s ease;
	padding-top: 70px;
	overflow: auto;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.modal.show {
	opacity: 1;
	pointer-events: auto;
	display: flex;
}

.modal.modal-center {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 0;
}

.modal-content {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	margin: auto;
	padding: 16px 16px 14px;
	width: min(560px, 100%);
	transform: translateY(14px);
	transition: transform .18s ease;
	position: relative;
	max-height: calc(100vh - 32px);
	overflow: auto;
}

.modal.show .modal-content {
	transform: translateY(0);
}

.modal-wide {
	width: min(980px, 100%);
}

.close {
	float: right;
	font-size: 26px;
	cursor: pointer;
	color: var(--muted);
	position: absolute;
	right: 14px;
	top: 10px;
	line-height: 26px;
}

.modal-content.modal-notify {
	width: 420px;
	max-width: calc(100vw - 32px);
	padding: 16px;
	border-radius: 20px;
}

.notify-header {
	display: grid;
	gap: 8px;
	align-items: center;
	grid-template-columns: 40px 1fr 40px;
	margin-bottom: 8px;
}

.notify-icon {
	width: 32px;
	height: 32px;
	border-radius: 12px;
	display: flex;
	place-items: center;
	color: #fff;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(226, 232, 240, 0.8);
}

#notifyModal[data-kind="danger"] .notify-icon {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	box-shadow: 0 18px 44px rgba(239, 68, 68, 0.45);
}

#notifyModal[data-kind="confirm"] .notify-icon {
	background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.turnover-table {
	width: 100%;
	font-size: 13px;
	border-collapse: collapse;
}

.turnover-th {
	font-weight: 800;
	background: rgba(15, 23, 42, 0.03);
	padding: 10px 12px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.7);
	text-align: left;
	font-size: 12px;
	color: var(--muted);
}

.turnover-td {
	padding: 10px 12px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.services-admin {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 14px;
}

.services-admin-col table {
	width: 100%;
}

.svc-chooser {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 10px;
}

.svc-card {
	text-align: left;
	padding: 16px;
	border-radius: var(--radius-lg);
	background: var(--card);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
}

.svc-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.svc-card-title {
	font-weight: 800;
	font-size: 16px;
}

.svc-card-sub {
	margin-top: 4px;
	color: var(--muted);
	font-size: 13px;
}

.svc-filter {
	gap: 10px;
	align-items: center;
	margin: 6px 0 10px;
}

.svc-bottom-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}

.svc-editor {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.svc-editor-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.45);
}

.svc-editor-panel {
	position: relative;
	width: min(520px, calc(100vw - 24px));
	margin: 80px auto 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 14px;
}

.svc-editor-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.svc-editor-title {
	font-weight: 900;
	font-size: 16px;
}

.svc-editor-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
}

.svc-form {
	display: grid;
	gap: 10px;
	margin-top: 4px;
}

.svc-form .field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 4px;
}

.svc-form .field input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
}

.svc-form .field select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.section-title {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .2px;
}

.modal-notify {
	width: min(720px, 100%);
}

.notify-title-wrap {
	text-align: center;
}

.notify-title-wrap .modal-title {
	margin: 0;
}

.notify-x {
	justify-self: end;
	width: 32px;
	height: 32px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.notify-x:hover {
	color: var(--text);
	border-color: rgba(226, 232, 240, 0.85);
	background: rgba(15, 23, 42, 0.03);
}

.notify-body {
	padding-top: 2px;
}

.notify-actions {
	margin-top: 14px;
}

.modal-title {
	margin: 2px 0 6px;
}

.actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 14px;
}

.reviewBox {
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
}

.reviewRow {
	display: flex;
	justify-content: space-between;
	padding: 8px 4px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.reviewRow:last-child {
	border-bottom: none;
}

.reviewKey {
	color: var(--muted);
	font-weight: 600;
}

.turnover-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.turnover-meta {
	font-size: 13px;
}

.turnover-range {
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--text);
}

.turnover-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.turnover-card {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
	padding: 10px;
}

.turnover-card-label {
	font-size: 12px;
	color: var(--muted);
	font-weight: 700;
}

.turnover-card-value {
	font-size: 22px;
	font-weight: 800;
	margin-top: 4px;
}

.turnover-tabs {
	display: flex;
	gap: 8px;
}

.turnover-tabs .btn {
	flex: 1;
}

.cardish {
	border: 1px solid var(--border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.55);
	padding: 12px;
}

.turnover-title {
	font-weight: 800;
	margin-bottom: 10px;
}

.turnover-kv {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.turnover-kv-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 6px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.turnover-kv-row:last-child {
	border-bottom: none;
}

.turnover-k {
	color: var(--muted);
	font-weight: 700;
}

.turnover-v {
	font-weight: 800;
}

.turnover-table-wrap {
	overflow: auto;
	border-radius: 14px;
	border: 1px solid rgba(226, 232, 240, 0.8);
}

.turnover-th--right {
	text-align: right;
}

.turnover-td--num {
	text-align: right;
}

.turnover-td--name {
	font-weight: 700;
}

.modal-content.modal-notify .notify-body {
	text-align: center;
	margin-top: 10px;
	margin-bottom: 16px;
	line-height: 1.4;
}

.modal-content.modal-notify .notify-header {
	align-items: center;
}

#notifyModal[data-kind="confirm"] .notify-body {
	text-align: center;
}

#notifyModal[data-kind="confirm"] .modal-title {
	text-align: center;
	width: 100%;
}

.modal.show .notify-icon {
	animation: notifyPulse 1.6s ease-in-out infinite;
}

#notifyModal .notify-icon {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(226, 232, 240, 0.85);
	backdrop-filter: blur(10px) saturate(160%);
	-webkit-backdrop-filter: blur(10px) saturate(160%);
	color: var(--text);
}

#notifyModal.show .notify-icon {
	animation: notifyPulse 1.8s ease-in-out infinite;
}

#notifyModal[data-kind="danger"].show .notify-icon {
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.18);
}

/* =========================================================
   FullCalendar Layout
   ========================================================= */
#calendar {
	--shop-gap-pct: 0.28;
	--shop-gap-min: 45;
	--shop-gap-max: 100;
	--shop-divider-px: 2;
	--shop-safe-px: 2;
	--shop-shrink-extra: 40;
	width: 90%;
	max-width: 1500px;
	margin: 20px auto 40px;
	padding: 0 8px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	overflow: hidden;
	--staff-cols: 1;
	--time-axis-width: 0px;
	height: auto;
	min-height: 100vh;
}

.fc .fc-button {
	padding: 10px 14px;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	background: transparent;
	color: var(--text) !important;
	cursor: pointer;
	user-select: none;
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-weight: 500;
	box-shadow: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fc .fc-button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	filter: brightness(1.1);
	background: rgba(255, 255, 255, .06);
}

.fc .fc-button:active {
	transform: translateY(0px);
	filter: brightness(0.9);
	background: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.fc .fc-button-active {
	transform: translateY(0px);
	filter: brightness(0.9);
	background: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.fc .fc-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.fc .fc-header-toolbar {
	padding: 12px 10px;
	margin-bottom: 0 !important;
	background: transparent;
}

.fc .fc-toolbar-title {
	color: rgba(255, 255, 255, .92);
	text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
	font-weight: 900;
}

.fc .fc-toolbar-chunk {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fc .fc-button-group {
	gap: 6px;
	display: flex;
}

.fc .fc-button-group>.fc-button {
	margin: 0 !important;
	border-radius: var(--radius) !important;
}

#calendar .fc-header-toolbar.is-mobile-hdr {
	display: block;
}

#calendar .fc-header-toolbar.is-mobile-hdr .mobile-hdr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
}

#calendar .fc-header-toolbar.is-mobile-hdr .mh-row {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-title #pageTitle {
	color: #fff !important;
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	margin: 0;
	line-height: 1.1;
}

#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-date .fc-toolbar-title {
	color: #fff !important;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	margin: 0;
	line-height: 1.1;
	white-space: normal;
}

#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-nav {
	justify-content: space-between;
	padding: 0 10px;
}

#calendar .mh-nav-left {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

#calendar .mh-nav-right {
	display: inline-flex;
	align-items: center;
}

#calendar .mh-nav-left .fc-button {
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border-radius: var(--radius) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#calendar .mobile-menu-btn {
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border-radius: var(--radius) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.20);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
}

#calendar .mobile-menu {
	position: relative;
}

#calendar .mobile-menu-btn .lines {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#calendar .mobile-menu-btn .line {
	width: 18px;
	height: 2px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 2px;
	display: block;
	transition: transform .22s ease, opacity .18s ease;
}

#calendar .mobile-menu.open .mobile-menu-btn .line:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

#calendar .mobile-menu.open .mobile-menu-btn .line:nth-child(2) {
	opacity: 0;
}

#calendar .mobile-menu.open .mobile-menu-btn .line:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

#calendar .mobile-menu-dropdown {
	position: absolute;
	right: 0;
	top: 52px;
	width: min(320px, calc(100vw - 24px));
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(226, 232, 240, 0.85);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 10px;
	display: none;
	z-index: 9999;
}

#calendar .mobile-menu.open .mobile-menu-dropdown {
	display: block;
}

#calendar .fc-scrollgrid {
	background: transparent !important;
}

#calendar .fc-scrollgrid-section {
	background: transparent !important;
}

#calendar .fc-view-harness {
	background: transparent !important;
}

#calendar .fc-timegrid-axis {
	background: transparent !important;
}

#calendar .fc-timegrid-col-frame {
	background: transparent !important;
}

#calendar .fc-daygrid-day-frame {
	background: transparent !important;
}

#calendar .fc-scroller {
	background: transparent !important;
}

#calendar .fc-timegrid-axis-cushion {
	color: #ffffff !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

.emp-columns-cell {
	color: #ffffff !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

#calendar .fc-day-today {
	background-color: rgba(11, 20, 23, 0.6) !important;
}

#calendar .in-calendar-title {
	color: #ffffff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   FullCalendar Headers
   ========================================================= */
#calendar .fc-col-header {
	background: #233F41 !important;
	border-bottom: 1px solid #233F41 !important;
}

#calendar .fc-scrollgrid-section-header {
	background: #233F41 !important;
	border-bottom: 1px solid #233F41 !important;
	vertical-align: middle !important;
	height: 50px;
}

#calendar .fc-scrollgrid-section-header table {
	background: #233F41 !important;
	border-bottom: 1px solid #233F41 !important;
}

#calendar .fc-scrollgrid-section-header td {
	background: #233F41 !important;
	border-bottom: 1px solid #233F41 !important;
}

#calendar .fc-scrollgrid-section-header th {
	background: #233F41 !important;
	border-bottom: 1px solid #233F41 !important;
	vertical-align: middle !important;
	height: 50px;
}

#staffColsHeader.staff-cols-header {
	background: #233F41 !important;
	border-bottom: 1px solid #233F41 !important;
	display: grid;
	grid-template-columns: repeat(var(--staff-cols, 1), 1fr);
	width: calc(100% - var(--time-axis-width, 0px));
	margin-left: var(--time-axis-width, 0px);
	position: sticky;
	top: 0;
	z-index: 20;
}

#calendar .fc-col-header-cell-cushion {
	color: #ffffff !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	opacity: 1 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
}

.staff-cols-header-cell {
	color: #ffffff !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	opacity: 1 !important;
	text-align: center;
	padding: 0 !important;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	background: #233F41 !important;
	vertical-align: middle !important;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex-direction: column;
	gap: 2px;
	line-height: 1.15;
}

#staffColsHeader.staff-cols-header::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(-1 * var(--time-axis-width, 0px));
	width: var(--time-axis-width, 0px);
	background: #233F41;
	border-bottom: 1px solid #233F41;
}

#calendar .fc-col-header-cell {
	background: #233F41 !important;
	vertical-align: middle !important;
	height: 50px;
}

.staff-grid-header {
	position: sticky;
	top: 0;
	z-index: 5;
}

.staff-cols-header-cell .staff-name {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.staff-cols-header-cell .staff-free-hours {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.85;
}

/* =========================================================
   FullCalendar Events & Timeline
   ========================================================= */
#calendar .fc-timegrid-slot-label {
	background: transparent !important;
}

#calendar .fc-timegrid-slot-label-cushion {
	color: #ffffff !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

.fc-event {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(105, 105, 105, 0.596) !important;
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
	cursor: pointer;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fc-event::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: var(--status-color, rgba(255, 255, 255, 0.55));
	border-radius: 8px 0 0 8px;
}

.fc .fc-event-main {
	padding-left: 10px;
	background: transparent !important;
}

.fc .fc-event-main-frame {
	padding-left: 10px;
	background: transparent !important;
}

.fc .fc-event-time {
	background: transparent !important;
}

.fc .fc-event-title {
	background: transparent !important;
}

.fc .fc-event-title-container {
	background: transparent !important;
}

.fc-event .fc-event-title {
	color: #fff !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.fc-event .fc-event-time {
	color: #fff !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.fc-event:hover {
	z-index: 50 !important;
	transform: scale(1.03);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
	filter: saturate(1.2) brightness(1.05);
}

.fc .appt {
	height: 100%;
	padding: 6px 8px 6px calc(8px + var(--event-bar-w) + var(--event-bar-gap));
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.15;
	font-size: 12px;
	font-weight: 600;
	color: #fff !important;
}

.fc .appt-name {
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fc .appt-time {
	opacity: 0.9;
}

.fc .appt-notes {
	font-style: normal;
	opacity: 0.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fc .appt-notes--empty {
	display: none;
}

.fc-event.status-pending {
	--status-color: #007BFF;
	color: #fff !important;
}

.fc-event.status-confirmed {
	--status-color: #00B050;
	color: #fff !important;
}

.fc-event.status-cancelled {
	--status-color: #FFD400;
	color: #fff !important;
}

.fc-event.status-not-appeared {
	--status-color: #FF0000;
	color: #fff !important;
}

.fc-timeGridDay-view .fc-timegrid-slot {
	height: var(--timegrid-slot-height);
}

.fc-timeGridDay-view .fc-timegrid-slot-label {
	height: var(--timegrid-slot-height);
}

.fc .fc-timegrid-now-indicator-line {
	border-top: 0 !important;
	height: var(--now-line-thickness);
	background: var(--fc-now-indicator-color);
	position: relative;
}

.fc .fc-timegrid-now-indicator-line::before {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: var(--now-dot-size);
	height: var(--now-dot-size);
	border-radius: 50%;
	background: var(--fc-now-indicator-color);
	left: calc(var(--now-dot-size) / -2);
}

.fc .fc-timegrid-now-indicator-line::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: var(--now-dot-size);
	height: var(--now-dot-size);
	border-radius: 50%;
	background: var(--fc-now-indicator-color);
	right: calc(var(--now-dot-size) / -2);
}

.fc-event .fc-event-main {
	padding-left: 14px !important;
}

.fc-event .fc-event-main-frame {
	padding-left: 14px !important;
}

.fc-event * {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Special Views & Overlays
   ========================================================= */
#calendar .staff-col-dividers {
	position: absolute;
	top: 0;
	left: var(--time-axis-width, 0px);
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 50;
}

#calendar .staff-col-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: rgba(122, 122, 122, 0.59);
}

#calendar.allcols-mode .fc-timegrid-cols {
	background-image: repeating-linear-gradient(to right,
			transparent 0,
			transparent calc((100% / var(--emp-cols)) - 3px),
			rgba(0, 0, 0, 0.85) calc((100% / var(--emp-cols)) - 3px),
			rgba(0, 0, 0, 0.85) calc((100% / var(--emp-cols))));
	background-size: 100% 100%;
}

/* =========================================================
   Keyframes (Auth)
   ========================================================= */
@keyframes authIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(.985);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================================================
   Auth / Login
   ========================================================= */
.login-body::after {
	background: radial-gradient(700px 360px at 20% 20%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%), rgba(0, 0, 0, .38);
}

.auth-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px;
}

.auth-card {
	width: 460px;
	max-width: 100%;
	border-radius: 22px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
	animation: authIn .35s ease both;
}

.auth-brand {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.auth-logo {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
	font-weight: 900;
}

.auth-title {
	margin: 0;
	font-size: 22px;
	font-weight: 900;
	color: rgba(255, 255, 255, .96);
}

.input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 15px;
	opacity: .85;
}

.login-body input {
	padding-left: 40px;
	font-size: 16px;
	line-height: 1.2;
	background: transparent;
	color: #fff !important;
}

.auth-submit {
	width: 100%;
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

#loginBtn.is-loading .btn-spinner {
	display: inline-block;
}

#loginSubtitle {
	color: rgba(255, 255, 255, .92) !important;
}

.login-body .input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.login-body .input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: .9;
}

.login-body input:focus {
	background: transparent !important;
	outline: none;
	border-color: rgba(255, 255, 255, .35);
}

.login-body .icon-btn:hover {
	filter: brightness(1.1);
}

.login-body .icon-btn:active {
	transform: translateY(-50%) scale(0.98);
}

.login-body #password {
	padding-right: 46px;
}

.login-body input:-webkit-autofill {
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff !important;
	box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	transition: background-color 9999s ease-out 0s;
}

.login-body input:-webkit-autofill:hover {
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff !important;
	box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	transition: background-color 9999s ease-out 0s;
}

.login-body input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff !important;
	box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	transition: background-color 9999s ease-out 0s;
}

.login-body input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff !important;
	box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
	transition: background-color 9999s ease-out 0s;
}

.login-body input:autofill {
	background: transparent !important;
	color: var(--text) !important;
}

.login-body {
	color: #fff;
}

.login-body * {
	color: #fff;
}

.login-body label {
	color: rgba(255, 255, 255, .95);
}

.login-body input::placeholder {
	color: rgba(255, 255, 255, .6);
}

/* =========================================================
   Toolbar User Chip
   ========================================================= */
.toolbar-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	margin-right: 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.20);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	color: rgba(255, 255, 255, .92);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.toolbar-user .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 900;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.toolbar-user .user-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.toolbar-user .user-name {
	font-weight: 800;
	font-size: 13px;
	max-width: 170px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.toolbar-user .user-role {
	font-size: 12px;
	opacity: .80;
}

/* =========================================================
   Client List (Risk Heatmap)
   ========================================================= */
#clientsModal tbody tr.client-risk {
	background: rgba(239, 68, 68, var(--riskAlpha, 0.0));
}

#clientsModal tbody tr.client-risk:hover {
	background: rgba(239, 68, 68, calc(var(--riskAlpha, 0.0) + 0.08));
}

/* =========================================================
   Keyframes (Notify)
   ========================================================= */
/* =========================================================
   Notify icon — subtle pulse animation
   ========================================================= */
@keyframes notifyPulse {
	0% {
		transform: scale(1);
		box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
	}

	50% {
		transform: scale(1.06);
		box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
	}
}

/* =========================================================
   Misc
   ========================================================= */
.legend-color {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	display: inline-block;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
}

.legend-color.pending {
	background: #007BFF;
}

.legend-color.confirmed {
	background: #00B050;
}

.legend-color.cancelled {
	background: #FFD400;
}

.legend-color.no-show {
	background: #FF0000;
}

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

.status-pending {
	--status-color: #007BFF;
}

.status-confirmed {
	--status-color: #00B050;
}

.status-cancelled {
	--status-color: #FFD400;
}

.status-not-appeared {
	--status-color: #FF0000;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
}

#pageTitle {
	color: #ffffff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.phone-field {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 10px;
	/*
	  IMPORTANT:
	  The country code picker uses an absolutely positioned custom dropdown
	  (.cc-dropdown). If this wrapper clips overflow, the dropdown is cut off
	  and it looks like it "doesn't open".
	*/
	overflow: visible;
	background: #fff;
}

.country-select-wrap {
	position: relative;
	flex: 0 0 auto;
}

/*
  Custom country-code dropdown
  (We avoid native <select> pickers because browser autofill/history UIs can
  hijack clicks and show a dark suggestions popup, and because native select
  popups differ across browsers.)
*/
.cc-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 340px;
	max-width: min(340px, 85vw);
	background: #fff;
	border: 1px solid #e3e7ef;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
	z-index: 99999;
	padding: 10px;
}

.cc-dropdown .cc-search {
	display: flex;
	gap: 8px;
	align-items: center;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef1f6;
	margin-bottom: 10px;
}

.cc-dropdown .cc-search input {
	width: 100%;
	border: 1px solid #e3e7ef;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	outline: none;
}

.cc-dropdown .cc-list {
	max-height: 240px;
	overflow: auto;
	padding-right: 2px;
}

.cc-dropdown .cc-item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 0;
	background: transparent;
	padding: 10px 10px;
	border-radius: 12px;
	cursor: pointer;
	text-align: left;
}

.cc-dropdown .cc-item:hover {
	background: #f3f6fb;
}

.cc-dropdown .cc-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cc-dropdown .cc-flag {
	font-size: 18px;
	line-height: 1;
}

.cc-dropdown .cc-name {
	font-size: 14px;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

.cc-dropdown .cc-code {
	font-size: 13px;
	color: #4b5563;
	flex: 0 0 auto;
}

.cc-dropdown .cc-empty {
	padding: 14px 10px;
	color: #6b7280;
	font-size: 14px;
}

.country-select {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border: none;
	background: #f8f9fb;
	cursor: pointer;
	font-size: 14px;
	height: 100%;
}

.country-select:hover {
	background: #eef1f5;
}

.country-select .flag {
	font-size: 18px;
	line-height: 1;
}

.country-select .arrow {
	font-size: 12px;
	opacity: 0.6;
}

.phone-field input {
	flex: 1;
	border: none;
	padding: 10px 12px;
	font-size: 15px;
	outline: none;
	min-width: 0;
}

.country-select-wrap select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* NOTE:
	   Keeping the native <select> *fully* transparent (opacity: 0) can produce
	   a blank/black popup list in some browsers (especially Safari/WebKit).
	   Using a near-zero opacity keeps it visually hidden but still renders the
	   native picker correctly.
	*/
	opacity: 0.001;
	cursor: pointer;
	border: none;
	z-index: 2;
	pointer-events: auto;
	display: block;
	/* Ensure the popup list is readable regardless of the page theme */
	background: #fff;
	color: #111;
}

.country-select-wrap select option {
	background: #fff;
	color: #111;
}

.phone-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.phone-row select {
	width: 150px;
	min-width: 150px;
}

.phone-row input {
	flex: 1;
}

.country-select .flag img {
	width: 18px;
	height: 18px;
	vertical-align: -3px;
}

.appt-details {
	margin-top: 12px;
	padding: 14px 14px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 14px;
	background: rgba(255, 255, 255, .92);
}

.appt-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 14px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.appt-summary .summary-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, .04);
	font-size: 18px;
}

.appt-summary .summary-title {
	font-weight: 700;
	color: rgba(0, 0, 0, .92);
	font-size: 1.05rem;
	line-height: 1.2;
}

.appt-summary .summary-sub {
	margin-top: 2px;
	font-weight: 500;
	color: rgba(0, 0, 0, .6);
	font-size: 0.95rem;
}

.appt-meta {
	padding: 12px 10px 6px 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}

.appt-meta .meta-item {
	padding: 10px 10px;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 12px;
	background: rgba(255, 255, 255, .75);
}

.appt-meta .meta-label {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(0, 0, 0, .55);
}

.appt-meta .meta-value {
	margin-top: 4px;
	font-size: 0.98rem;
	font-weight: 600;
	color: rgba(0, 0, 0, .9);
	line-height: 1.25;
}

.appt-meta .meta-notes {
	grid-column: 1 / -1;
}

.appt-meta .meta-time {
	grid-column: 1 / -1;
}

.appt-meta .meta-cost {
	grid-column: 1 / -1;
}

.meta-value-cost {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.meta-value-cost .cost-input {
	max-width: 110px;
	width: 90px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.8);
	font-size: 1.05rem;
	text-align: center;
}

.meta-value-cost .meta-value-cost .btn-icon {
	width: 42px;
	height: 42px;
	border: none;
	background: #f1f5f9;
	border-radius: 999px;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.meta-value-cost .btn-icon:hover:not(:disabled) {
	background: #e2e8f0;
	transform: scale(1.05);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
}

.meta-value-cost .btn-icon:active:not(:disabled) {
	background: #cbd5f5;
	transform: scale(0.96);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.meta-value-cost .btn-icon:disabled {
	opacity: 0.5;
	cursor: default;
	box-shadow: none;
}


.appt-meta .meta-notes .meta-value {
	white-space: pre-wrap;
	font-weight: 500;
}

.country-picker {
	position: relative;
	flex: 0 0 auto;
}

.country-picker select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.001;
	cursor: pointer;
	border: none;
	z-index: 2;
	pointer-events: auto;
	display: block;
	background: #fff;
	color: #111;
}

.country-picker select option {
	background: #fff;
	color: #111;
}

/* =========================================================
   Responsive / Media Queries (kept at bottom)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media (max-width: 600px) {

	/* Stack everything vertically */
	#calendar .fc-header-toolbar {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	/* Make the injected shop title behave like a full-width row */
	#calendar #pageTitle.in-calendar-title,
	#calendar .in-calendar-title {
		width: 100%;
		margin: 0;
		text-align: center;
		line-height: 1.15;
		white-space: normal;
	}

	/* Calendar date title: force its own row and allow wrapping */
	#calendar .fc-toolbar-title {
		width: 100%;
		text-align: center;
		white-space: normal;
	}

	/* Toolbar chunks become centered rows */
	#calendar .fc-toolbar-chunk {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		min-width: 0;
	}

	/* Keep the settings/menu chunk pinned to the right if present */
	#calendar .fc-toolbar-chunk:last-child {
		justify-content: flex-end;
	}
}

@media (max-width: 360px) {
	.fc .fc-header-toolbar {
		padding: 10px 8px;
	}

	.fc .fc-toolbar-chunk {
		gap: 6px;
	}

	/* Smaller buttons */
	.fc .fc-button,
	.settings-btn,
	.btn {
		padding: 8px 10px;
		font-size: 12px;
	}

	/* Allow button groups (especially the view switcher) to wrap */
	.fc .fc-button-group {
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
		gap: 6px;
	}

	.fc .fc-button-group>.fc-button {
		flex: 1 1 30%;
		min-width: 72px;
		line-height: 1.1;
		white-space: normal;
		/* allow "Shop\nView" etc. */
		padding: 8px 8px;
	}

	/* Prevent any single long label from forcing overflow */
	.fc .fc-button {
		max-width: 100%;
	}

	/* In the custom mobile header, keep prev/next navigation on ONE row.
     (The generic .fc-button-group wrapping is needed for the view switcher,
      but it should not stack the nav arrows.) */
	#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-nav {
		flex-wrap: nowrap;
	}

	#calendar .mh-nav-left,
	#calendar .mh-nav-right {
		flex-wrap: nowrap;
		width: auto;
	}

	#calendar .mh-nav-left .fc-button-group {
		flex-wrap: nowrap;
		width: auto;
	}

	#calendar .mh-nav-left .fc-button-group>.fc-button {
		flex: 0 0 auto;
		min-width: 44px;
		padding: 10px 12px;
		white-space: nowrap;
	}
}

@media (min-width: 600px) and (max-width: 1099px) {
	#calendar .fc-header-toolbar:not(.is-mobile-hdr) {
		flex-wrap: wrap;
		row-gap: 10px;
		align-items: center;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-chunk {
		min-width: 0;
		flex: 0 1 auto;
	}

	/* Let the middle chunk flex so the title naturally centers between left/right */
	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-chunk:nth-child(2) {
		position: static;
		transform: none;
		width: auto;
		flex: 1 1 auto;
		justify-content: center;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-title {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
		font-size: clamp(18px, 2.4vw, 28px);
	}
}

@media (min-width: 1500px) {
	#calendar .fc-header-toolbar:not(.is-mobile-hdr) {
		position: relative;
		flex-wrap: nowrap;
		align-items: center;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-chunk {
		min-width: 0;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-chunk:nth-child(2) {
		position: static;
		transform: none;
		width: auto;
		flex: 1 1 auto;
		justify-content: center;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-title {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
	}
}

@media (min-width: 1100px) and (max-width: 1499px) {
	#calendar .fc-header-toolbar:not(.is-mobile-hdr) {
		position: relative;
		flex-wrap: nowrap;
		align-items: center;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-chunk {
		min-width: 0;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-chunk:nth-child(2) {
		position: static;
		transform: none;
		width: auto;
		flex: 1 1 auto;
		justify-content: center;
	}

	#calendar .fc-header-toolbar:not(.is-mobile-hdr) .fc-toolbar-title {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
	}
}

@media (max-width: 860px) {
	.services-admin {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.svc-chooser {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.turnover-summary {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.modal.show .notify-icon {
		animation: none;
	}
}

@media (max-width: 1450px) {

	/* Calendar sizing */
	#calendar {
		width: 98.5%;
		max-width: 1500px;
		margin: 10px auto;
		overflow: visible;
		/* your gap vars (shop view spacing) */
		--shop-gap-pct: 0.05;
		--shop-gap-min: 30;
		--shop-gap-max: 50;
		--shop-divider-px: 5;
		--shop-safe-px: 0.5;
		--shop-shrink-extra: 30;
	}

	/* Let the view area scroll horizontally on phones */
	#calendar .fc-view-harness {
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		width: 100%;
	}

	/* Force the grid wider than the phone (so events don’t get squeezed) */
	#calendar .fc-view-harness>.fc-view {
		min-width: 1100px !important;
	}

	.fc .fc-daygrid-body table {
		min-width: 980px;
	}

	.fc .fc-timegrid-body table {
		min-width: 900px;
	}

	/* ---------------------------------------------------------
     Header: use the JS-built mobile shell (.mobile-hdr)
     --------------------------------------------------------- */
	#calendar .fc-header-toolbar {
		flex-wrap: wrap;
		gap: 10px;
		align-items: center;
	}

	#calendar .fc-header-toolbar.is-mobile-hdr {
		display: block;
		/* shell drives layout */
	}

	#calendar .fc-header-toolbar.is-mobile-hdr .mobile-hdr {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		width: 100%;
	}

	#calendar .fc-header-toolbar.is-mobile-hdr .mh-row {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	/* Shop title */
	#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-title #pageTitle {
		color: #fff !important;
		font-size: 28px;
		font-weight: 700;
		text-align: center;
		margin: 0;
		line-height: 1.1;
	}

	/* Calendar date (FullCalendar title) */
	#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-date .fc-toolbar-title {
		color: #fff !important;
		font-size: 20px;
		font-weight: 700;
		text-align: center;
		margin: 0;
		line-height: 1.1;
		white-space: normal;
	}

	/* Nav row: left buttons / right hamburger */
	#calendar .fc-header-toolbar.is-mobile-hdr .mh-row-nav {
		justify-content: space-between;
		padding: 0 10px;
	}

	#calendar .mh-nav-left {
		display: inline-flex;
		gap: 10px;
		align-items: center;
	}

	#calendar .mh-nav-right {
		display: inline-flex;
		align-items: center;
	}

	/* Make the nav buttons the same size */
	#calendar .mh-nav-left .fc-button,
	#calendar .mobile-menu-btn {
		width: 44px;
		height: 44px;
		padding: 0 !important;
		border-radius: var(--radius) !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Hamburger button styling */
	#calendar .mobile-menu-btn {
		border: 1px solid rgba(255, 255, 255, 0.22);
		background: rgba(255, 255, 255, 0.20);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		cursor: pointer;
	}

	#calendar .mobile-menu-btn .lines {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	#calendar .mobile-menu-btn .line {
		width: 18px;
		height: 2px;
		background: rgba(255, 255, 255, 0.95);
		border-radius: 2px;
		display: block;
		transition: transform .22s ease, opacity .18s ease;
	}

	#calendar .mobile-menu.open .mobile-menu-btn .line:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	#calendar .mobile-menu.open .mobile-menu-btn .line:nth-child(2) {
		opacity: 0;
	}

	#calendar .mobile-menu.open .mobile-menu-btn .line:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	/* Dropdown panel */
	#calendar .mobile-menu {
		position: relative;
	}

	#calendar .mobile-menu-dropdown {
		position: absolute;
		right: 0;
		top: 52px;
		width: min(320px, calc(100vw - 24px));
		background: rgba(255, 255, 255, 0.86);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border: 1px solid rgba(226, 232, 240, 0.85);
		border-radius: 16px;
		box-shadow: var(--shadow);
		padding: 10px;
		display: none;
		z-index: 9999;
	}

	body.theme-dark #calendar .mobile-menu-dropdown {
		background: rgba(17, 26, 46, 0.86);
		border-color: rgba(31, 42, 68, 0.9);
	}

	#calendar .mobile-menu.open .mobile-menu-dropdown {
		display: block;
	}

	/* Buttons inside dropdown */
	#calendar .mobile-menu-dropdown .fc-button-group {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
	}

	#calendar .mobile-menu-dropdown .fc-button {
		flex: 1 1 auto;
	}

	#calendar .mobile-menu-dropdown #settingsMenu {
		display: block !important;
	}

	/* =========================================================
   MOBILE (360–480): SHOP VIEW (timeGridDay) — real sticky header + time axis (iOS-safe)
   ========================================================= */
	/* IMPORTANT:
   For Shop View, let the FC scroller handle scrolling (X + Y).
   Sticky elements must live inside the SAME scrolling element.
*/
	#calendar .fc-timeGridDay-view .fc-view-harness {
		overflow: visible !important;
		/* stop using harness as the horizontal scroller */
	}

	/* Make the timeGrid scroller do BOTH directions */
	#calendar .fc-timeGridDay-view .fc-scroller-harness,
	#calendar .fc-timeGridDay-view .fc-scroller-harness .fc-scroller {
		overflow: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	/* If your header is tall, this prevents the grid from "ending" early and keeps scrolling sane */
	#calendar .fc-timeGridDay-view .fc-scroller-harness .fc-scroller {
		/* tweak 220px if your mobile header is taller/shorter */
		max-height: calc(100vh - 220px);
	}

	/* ---- Sticky STAFF header (USER / USER2 / ...) ---- */
	#calendar .fc-timeGridDay-view #staffColsHeader {
		position: sticky !important;
		top: 0 !important;
		z-index: 5000 !important;
		background: #233F41 !important;
		/* solid (no glass) */
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	/* ---- Sticky TIME AXIS (left time column) — iOS-safe: stick the inner frames ---- */
	/* Keep the axis column above the grid when it sticks */
	#calendar .fc-timeGridDay-view .fc-timegrid-axis {
		z-index: 4500 !important;
	}

	/* iOS Safari: sticky works reliably on the inner frame divs, not table-cells */
	#calendar .fc-timeGridDay-view .fc-timegrid-axis-frame,
	#calendar .fc-timeGridDay-view .fc-timegrid-slot-label-frame {
		position: sticky !important;
		left: 0 !important;
		z-index: 4600 !important;
		background: #233F41 !important;
		/* solid (no glass) */
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	/* Ensure the cushion doesn't reintroduce transparency/glass */
	#calendar .fc-timeGridDay-view .fc-timegrid-axis-cushion,
	#calendar .fc-timeGridDay-view .fc-timegrid-slot-label-cushion {
		background: #233F41 !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		font-size: 10px !important;
		/* smaller time text */
		line-height: 1.1 !important;
		padding: 0 6px !important;
	}

	/* Keep events above sticky backgrounds */
	#calendar .fc-timeGridDay-view .fc-timegrid-event-harness,
	#calendar .fc-timeGridDay-view .fc-timegrid-event {
		z-index: 7000 !important;
	}

	/* ===== Make dropdown view buttons easier to read ===== */
	#calendar .mobile-menu-dropdown .fc-button-group {
		width: 100%;
	}

	#calendar .mobile-menu-dropdown .fc-button {
		padding: 10px 12px !important;
		font-size: 14px !important;
		line-height: 1 !important;
		border-radius: 12px !important;
	}

	/* ACTIVE view button (Week/Day/etc) */
	#calendar .mobile-menu-dropdown .fc-button.fc-button-active,
	#calendar .mobile-menu-dropdown .fc-button:focus {
		background: #233F41 !important;
		border-color: #233F41 !important;
		color: #fff !important;
		font-weight: 800 !important;
		opacity: 1 !important;
		text-shadow: none !important;
	}

	/* Non-active buttons still readable */
	#calendar .mobile-menu-dropdown .fc-button:not(.fc-button-active) {
		color: #0f172a !important;
		background: rgba(255, 255, 255, 0.75) !important;
		border-color: rgba(15, 23, 42, 0.12) !important;
	}

	body.theme-dark #calendar .mobile-menu-dropdown .fc-button:not(.fc-button-active) {
		color: #e5e7eb !important;
		background: rgba(255, 255, 255, 0.10) !important;
		border-color: rgba(255, 255, 255, 0.16) !important;
	}

	/* ===== Center the gear button inside the dropdown ===== */
	#calendar .mobile-menu-dropdown #settingsMenu {
		width: 100%;
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		margin-top: 10px !important;
	}

	#calendar .mobile-menu-dropdown #settingsMenu .settings-btn {
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		margin: 0 auto !important;
		border-radius: 14px !important;
	}

	#calendar .mobile-menu-dropdown #settingsMenu .settings-icon {
		width: 22px !important;
		height: 22px !important;
		display: block !important;
	}

	/* (Optional but recommended) make the settings dropdown panel behave nicely inside the mobile menu */
	#calendar .mobile-menu-dropdown #settingsMenu .settings-dropdown {
		position: static !important;
		top: auto !important;
		right: auto !important;
		min-width: 0 !important;
		width: 100% !important;
		margin-top: 10px !important;
		transform: none !important;
	}

	/* =========================================================
   TIME GRID (LEFT AXIS) — GLASS BACKGROUND (NO SOLID COLOR)
   ========================================================= */
	/* Axis container stays on top */
	#calendar .fc-timeGridDay-view .fc-timegrid-axis {
		z-index: 4500 !important;
	}

	/* Sticky inner frames (iOS-safe) */
	#calendar .fc-timeGridDay-view .fc-timegrid-axis-frame,
	#calendar .fc-timeGridDay-view .fc-timegrid-slot-label-frame {
		position: sticky !important;
		left: 0 !important;
		z-index: 4600 !important;
		/* GLASS EFFECT */
		background: rgba(255, 255, 255, 0.12) !important;
		backdrop-filter: blur(14px) saturate(1.2);
		-webkit-backdrop-filter: blur(14px) saturate(1.2);
		border-right: 1px solid rgba(255, 255, 255, 0.22);
	}

	/* Cushion (actual time text cell) */
	#calendar .fc-timeGridDay-view .fc-timegrid-axis-cushion,
	#calendar .fc-timeGridDay-view .fc-timegrid-slot-label-cushion {
		background: transparent !important;
		color: rgba(255, 255, 255, 0.95) !important;
		font-weight: 600 !important;
		font-size: 11px !important;
		line-height: 1.1 !important;
		padding: 0 8px !important;
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	}

	/* Optional: slightly darker glass for dark themes */
	body.theme-dark #calendar .fc-timeGridDay-view .fc-timegrid-axis-frame,
	body.theme-dark #calendar .fc-timeGridDay-view .fc-timegrid-slot-label-frame {
		background: rgba(17, 26, 46, 0.35) !importaground: rgba(17, 26, 46, 0.35) !important;
	}

	/* =========================
     Client list font scaling
     ========================= */
	/* Table text */
	#clientsModal table,
	#clientsModal tbody,
	#clientsModal td,
	#clientsModal th {
		font-size: 12px;
	}

	/* Client name emphasis */
	#clientsModal tbody td:nth-child(2) {
		font-size: 12px;
		font-weight: 600;
	}

	/* Phone number slightly smaller */
	#clientsModal tbody td:nth-child(1) {
		font-size: 11px;
	}

	/* Notes textarea */
	#clientsModal textarea {
		font-size: 11px;
		line-height: 1.25;
	}

	/* Action buttons */
	#clientsModal .actions-cell .btn {
		font-size: 11px;
		padding: 5px 4px;
	}

	/* =========================
     Client list: wider Notes
     ========================= */
	/* Give Notes column more space */
	#clientsModal table {
		table-layout: fixed;
		/* required for width control */
	}

	/* Phone */
	#clientsModal colgroup col:nth-child(1) {
		width: 16%;
	}

	/* Name */
	#clientsModal colgroup col:nth-child(2) {
		width: 20%;
	}

	/* Notes (WIDER) */
	#clientsModal colgroup col:nth-child(3) {
		width: 44%;
	}

	/* Actions */
	#clientsModal colgroup col:nth-child(4) {
		width: 20%;
	}

	/* Make textarea fill the column nicely */
	#clientsModal textarea {
		width: 100%;
		min-width: 100%;
		resize: vertical;
	}

	#clientsModal textarea {
		min-height: 34px;
		/* default (shorter) */
		height: 34px;
		line-height: 1.25;
		padding: 6px 8px;
		resize: vertical;
		/* user can expand if needed */
	}

	/* Optional: expand slightly on focus for better editing */
	#clientsModal textarea:focus {
		min-height: 70px;
	}

	/* Allow the Actions cell to wrap instead of overflowing */
	#clientsModal table thead th:nth-child(4),
	#clientsModal table tbody td.actions-cell {
		white-space: normal !important;
		/* overrides your nowrap */
	}

	/* Make the actions cell a wrapping flex row */
	#clientsModal table tbody td.actions-cell {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		justify-content: center;
		align-items: center;
	}

	/* Buttons should stay inside the cell and be smaller */
	#clientsModal table tbody td.actions-cell .btn {
		font-size: 11px;
		padding: 5px 8px;
		margin: 0 !important;
		/* overrides old margin: 0 4px */
		min-width: 52px;
		/* keeps "Delete" from squeezing weirdly */
	}

	/* If you want 2 buttons per row (Info/Save on first row, Delete on second) */
	#clientsModal table tbody td.actions-cell .btn {
		flex: 0 0 auto;
	}

	/* Optional: give Actions a bit more room (since Notes is wide now) */
	#clientsModal colgroup col:nth-child(4) {
		width: 26% !important;
	}

	#clientsModal colgroup col:nth-child(3) {
		width: 38% !important;
	}
}

@media (max-width: 520px) {
	.toolbar-user .user-meta {
		display: none;
	}

	.toolbar-user {
		padding: 7px;
		margin-right: 8px;
	}
}

@media (min-width: 768px) {
	/* md */
}

@media (min-width: 1024px) {
	/* lg */
}

@media (min-width: 1280px) {
	/* xl */
}

@media (min-width: 1536px) {
	/* 2xl */
}

@media (max-width: 520px) {
	.appt-meta {
		grid-template-columns: 1fr;
	}
}

/* Ultra-wide screens: enforce minimum 85% viewport width for the calendar */
@media (min-width: 1650px) {
	#calendar {
		min-width: 85vw;
		max-width: none;
	}
}

/* ================================
   Settings menu: flags only
   ================================ */
/* ================================
   Dropdowns: make text bolder
   ================================ */
select,
.dropdown,
.dropdown-menu,
.dropdown-menu li,
.dropdown-menu button {
	font-weight: 600;
}

/* ================================
   Settings menu: language flags FIX
   ================================ */
/* Hide ONLY text, keep icons */
.settings-lang-btn span[data-i18n] {
	display: none !important;
}

/* Ensure flag container is visible & square */
.settings-lang-btn {
	width: 36px;
	height: 36px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Square flag icon */
.settings-lang-btn .item-icon,
.settings-lang-btn img {
	width: 22px;
	height: 22px;
	display: block;
}

/* ================================
   Settings menu: larger square flags
   ================================ */
.settings-lang-btn {
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.settings-lang-btn .item-icon,
.settings-lang-btn img {
	width: 26px;
	height: 26px;
	display: block;
}

/* ================================
   Settings menu: perfectly square, centered flags
   ================================ */
/* Square clickable area */
.settings-lang-btn {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	min-height: 44px;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
}

/* Center the flag icon */
.settings-lang-btn .item-icon,
.settings-lang-btn img {
	width: 26px;
	height: 26px;
	line-height: 1;
	display: block;
}

/* ================================
   Settings menu: prevent flag buttons from stretching (fix rectangle)
   ================================ */
.settings-lang .settings-lang-btn,
.settings-lang-btn {
	flex: 0 0 auto !important;
	width: 44px !important;
	height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	padding: 0 !important;
	gap: 0 !important;
}

/* ================================
   Settings menu: center flags row + perfectly centered icons
   ================================ */
.settings-lang {
	display: flex;
	justify-content: center;
	/* center both flags on the row */
	align-items: center;
}

/* Square buttons must NOT stretch; keep them centered */
.settings-lang .settings-lang-btn {
	flex: 0 0 auto !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Center the icon inside */
.settings-lang .settings-lang-btn .item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	line-height: 0;
}

.settings-lang .settings-lang-btn .item-icon img {
	width: 26px;
	height: 26px;
	display: block;
}






.view-order-controls .btn {
	min-width: 32px;
	padding: 4px 6px;
	font-size: 13px;
	line-height: 1;
	margin-left: 4px;
}






































.view-order-list {
	margin: 24px auto 12px;
	max-width: 440px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.view-order-row {
	width: 100%;
	max-width: 360px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.04);
	cursor: grab;
	user-select: none;
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.view-order-row:hover {
	background: rgba(255, 255, 255, 0.10);
	box-shadow: 0 8px 20px rgba(0,0,0,0.26);
	transform: translateY(-2px);
}

.view-order-row.dragging {
	opacity: 0.96;
	transform: scale(1.02);
	box-shadow: 0 10px 24px rgba(0,0,0,0.32);
}

.view-order-row.drag-over {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.view-order-index {
	min-width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	margin-right: 12px;
	background: rgba(0,0,0,0.35);
}

.view-order-name {
	flex: 1;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.view-order-handle {
	margin-left: 12px;
	font-size: 18px;
	opacity: 0.75;
}


.staff-cols-header-cell .staff-name-row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.staff-cols-header-cell .staff-absence-btn {
	border: none;
	background: rgba(15, 23, 42, 0.3);
	color: #ffffff;
	border-radius: 999px;
	width: 22px;
	height: 22px;
	font-size: 12px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.staff-cols-header-cell .staff-absence-btn:hover:not(:disabled) {
	background: rgba(239, 68, 68, 0.9);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
	transform: scale(1.05);
}

.staff-cols-header-cell .staff-absence-btn:active:not(:disabled) {
	background: rgba(185, 28, 28, 0.95);
	transform: scale(0.95);
	box-shadow: 0 0 0 rgba(0,0,0,0);
}

.staff-cols-header-cell .staff-absence-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}



/* Drag & drop handles for Services / Categories tables */
.drag-handle-cell {
	width: 48px;
	min-width: 48px;
	padding: 0 !important;
	vertical-align: middle !important;
}

.drag-handle {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.drag-handle:hover {
	opacity: 1;
	transform: scale(1.05);
}

tr.dragging .drag-handle {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	user-select: none;
	touch-action: none;
}

/* Visual cue while a row is a drop target */
tr.drag-over {
	outline: 2px dashed var(--accent, #4dabf7);
	outline-offset: -2px;
	background-color: rgba(77, 171, 247, 0.05);
}


.drag-handle svg {
	width: 22px;
	height: 22px;
	vertical-align: middle;
	display: block;
	opacity: 0.85;
}


.drag-handle-box {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}


/* Client list: name + swap button */
#clientsModal table tbody td.client-name-cell {
	white-space: nowrap;
}

#clientsModal table tbody td.client-name-cell .client-name-text {
	display: inline-block;
	margin-right: 0.5rem;
	vertical-align: middle;
}

#clientsModal table tbody td.client-name-cell .client-swap-btn {
	vertical-align: middle;
}

/* Swap-name icon button – small, round, and blended with existing UI */
#clientsModal table tbody td.client-name-cell .client-swap-btn {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.75);
	background: #f8fafc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

#clientsModal table tbody td.client-name-cell .client-swap-btn svg {
	display: block;
	opacity: 0.9;
}

#clientsModal table tbody tr:hover .client-swap-btn {
	opacity: 1;
}

#clientsModal table tbody td.client-name-cell .client-swap-btn:hover {
	background: #e0f2fe;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
	transform: translateY(-1px) scale(1.04);
}

#clientsModal table tbody td.client-name-cell .client-swap-btn:active {
	transform: translateY(0) scale(0.96);
	box-shadow: none;
}



.client-info-cell { white-space: nowrap; }

.client-info-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.client-phone {
  color: #687280;
  font-weight: 500;

	line-height: 1.3;
}

.client-name {
  font-weight: 600;
  color: #111827;
}


/* Client list: phone + name + swap layout */
#clientsModal table tbody td.client-info-cell {
	white-space: nowrap;
}

#clientsModal table tbody td.client-info-cell .client-info-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

#clientsModal table tbody td.client-info-cell .client-phone {
	color: #687280;
	font-weight: 500;
}

#clientsModal table tbody td.client-info-cell .client-name {
	font-weight: 600;
	color: #111827;
	display: inline-block;
	white-space: normal; /* allow name to wrap if needed */
	max-width: 220px;
}

#clientsModal table tbody td.client-info-cell .client-swap-btn {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.75);
	background: #f8fafc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

#clientsModal table tbody td.client-info-cell .client-swap-btn:hover {
	background: #e0f2fe;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
	transform: translateY(-1px) scale(1.04);
}

#clientsModal table tbody td.client-info-cell .client-swap-btn:active {
	transform: translateY(0) scale(0.96);
	box-shadow: none;
}

/* Notes column should simply fill its cell */
#clientsModal table tbody td textarea {
	width: 100%;
	box-sizing: border-box;
	min-width: 120px;
}



/* Client list rows: keep columns on same baseline */
#clientsModal table tbody td {
	vertical-align: middle;
	padding-top: 10px;
	padding-bottom: 10px;
}




@media (max-width: 600px) {
	#clientsModal table tbody td.client-name-cell {
		white-space: normal;
	}
	#clientsModal table tbody td.client-name-cell .client-name-text {
		max-width: 65vw;
		white-space: normal;
		word-break: break-word;
	}
}


/* Small swap icon on phones */

@media (max-width: 600px) {
	#clientsModal table tbody td.client-name-cell .client-swap-btn {
		transform: scale(0.7);
		width: 24px !important;
		height: 24px !important;
	}
	#clientsModal table tbody td.client-name-cell .client-swap-btn svg {
		width: 14px !important;
		height: 14px !important;
	}
}


/* Ensure Actions column cells use the same vertical padding as the rest */
#clientsModal table tbody td.actions-cell {
	padding-top: 10px;
	padding-bottom: 10px;
}


/* Mini availability calendar inside create/edit form */
.mini-availability {
	margin-top: 10px;
	padding: 8px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid rgba(0,0,0,0.08);
	font-size: 12px;
}

.mini-availability-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.mini-availability-month {
	font-weight: 600;
}

.mini-availability-grid {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 6px;
}

.mini-availability-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.mini-availability-cell {
	text-align: center;
	padding: 3px 0;
	border-radius: 4px;
	min-height: 22px;
}

.mini-availability-weekday {
	font-weight: 600;
	opacity: 0.7;
}

.mini-availability-empty {
	background: transparent;
}

.mini-availability-day {
	cursor: pointer;
	background: rgba(255,255,255,0.03);
}

.mini-availability-day.mini-availability-past {
	cursor: default;
	opacity: 0.35;
}

.mini-availability-day.mini-availability-available {
	background: rgba(0, 200, 0, 0.3);
}

.mini-availability-day.mini-availability-full {
	background: rgba(220, 0, 0, 0.35);
}

.mini-availability-day.mini-availability-day-selected {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.mini-availability-slots select {
	width: 100%;
	margin-top: 2px;
}

.mini-availability-hint {
	padding: 4px 2px;
	opacity: 0.7;
}
