/* =========================================================
   Σύστημα Παραγγελιών — front-end styles
   Mobile-first, δουλεύει μέσα σε οποιοδήποτε WordPress theme.
   ========================================================= */

.os-app {
	/* Τα χρώματα ορίζονται και από τις ρυθμίσεις του plugin
	   (inline CSS που υπερισχύει αυτών των προεπιλογών). */
	--os-primary: #6d5efc;
	--os-primary-dark: #5544e6;
	--os-primary-light: #9b8dfd;
	--os-primary-soft: #eeecff;
	--os-primary-shadow: rgba(109, 94, 252, .3);

	/* Μπάρα (λογότυπο + μενού) — ρυθμίζεται από τις ρυθμίσεις. */
	--os-bar: #ffffff;
	--os-bar-text: #1d1e2c;
	--os-bar-muted: #6c6d85;
	--os-bar-border: #e7e7f1;
	--os-bar-soft: #f5f5fa;
	--os-bar-active: #ffffff;
	--os-bar-accent: #6d5efc;

	/* Γράμματα κουμπιών — ρυθμίζονται από τις ρυθμίσεις. */
	--os-btn-text: #ffffff;
	--os-btn-alt-text: #1d1e2c;
	--os-btn-alt-muted: #6c6d85;

	--os-bg: #f5f5fa;
	--os-surface: #ffffff;
	--os-surface-2: #fafaff;
	--os-text: #1d1e2c;
	--os-muted: #6c6d85;
	--os-border: #e7e7f1;
	--os-border-strong: #d5d5e6;

	--os-green: #12a150;
	--os-green-soft: #e4f7ec;
	--os-green-ink: #0c6d36;
	--os-orange: #ef8a17;
	--os-orange-soft: #fdf0dd;
	--os-orange-ink: #a25e0f;
	--os-red: #e02f52;
	--os-red-soft: #fde8ec;
	--os-red-ink: #982038;
	--os-grey: #8c8fa6;
	--os-grey-soft: #eeeef4;
	--os-grey-ink: #5f6171;

	--os-radius-sm: 10px;
	--os-radius: 16px;
	--os-radius-lg: 22px;

	--os-shadow-sm: 0 1px 2px rgba(29, 30, 44, .06), 0 1px 3px rgba(29, 30, 44, .04);
	--os-shadow: 0 4px 16px rgba(29, 30, 44, .07);
	--os-shadow-lg: 0 18px 50px rgba(29, 30, 44, .18);

	--os-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	font-family: var(--os-font);
	color: var(--os-text);
	background: var(--os-bg);
	line-height: 1.45;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 0 96px;
}

.os-app *,
.os-app *::before,
.os-app *::after {
	box-sizing: border-box;
}

.os-app p,
.os-app h1,
.os-app h2,
.os-app h3,
.os-app h4,
.os-app ul,
.os-app ol,
.os-app figure {
	margin: 0;
	padding: 0;
}

.os-app ul,
.os-app ol {
	list-style: none;
}

.os-app button {
	font: inherit;
	cursor: pointer;
}

/* Το reset του χρώματος μπαίνει με μηδενική ειδικότητα (:where), αλλιώς το
   «.os-app button» θα νικούσε κάθε κανόνα χρώματος κουμπιού — π.χ. το
   .os-btn--primary — και τα γράμματα θα έπαιρναν το χρώμα του κειμένου. */
:where(.os-app) :where(button) {
	color: inherit;
}

.os-app a {
	text-decoration: none;
}

/* Ίδιος λόγος με τα κουμπιά: μηδενική ειδικότητα, ώστε ένας σύνδεσμος με
   κλάση (π.χ. .os-btn--ghost, .os-biz-value) να κρατά το χρώμα του. */
:where(.os-app) :where(a) {
	color: inherit;
}

.os-icon {
	width: 20px;
	height: 20px;
	flex: none;
}

/* ---------------------------------------------------------
   Topbar & navigation
   --------------------------------------------------------- */

.os-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	background: var(--os-bar);
	color: var(--os-bar-text);
	border-bottom: 1px solid var(--os-bar-border);
	position: sticky;
	top: 0;
	z-index: 30;
}

.os-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -.01em;
}

.os-brand-mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: linear-gradient(140deg, var(--os-primary), var(--os-primary-light));
	color: #fff;
}

.os-brand-mark svg {
	width: 20px;
	height: 20px;
}

.os-brand-logo {
	display: block;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

@media (max-width: 599px) {
	.os-brand-logo {
		max-width: 150px;
		max-height: 40px;
	}
}

.os-topbar-end {
	display: flex;
	align-items: center;
	gap: 10px;
}

.os-topbar-tools {
	display: flex;
	gap: 6px;
}

.os-nav {
	display: flex;
	gap: 4px;
	background: var(--os-bar-soft);
	padding: 4px;
	border-radius: 999px;
}

.os-nav-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	color: var(--os-bar-muted);
	transition: background .18s ease, color .18s ease;
	white-space: nowrap;
}

.os-nav-link:hover {
	color: var(--os-bar-text);
}

.os-nav-link.is-active {
	background: var(--os-bar-active);
	color: var(--os-bar-accent);
	box-shadow: var(--os-shadow-sm);
}

/* Κάτω μπάρα πλοήγησης σε κινητά */
@media (max-width: 767px) {
	.os-nav {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 12px;
		z-index: 40;
		background: var(--os-bar);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border: 1px solid var(--os-bar-border);
		box-shadow: var(--os-shadow-lg);
		padding: 6px;
		justify-content: space-around;
	}

	.os-nav-link {
		flex-direction: column;
		gap: 2px;
		flex: 1;
		padding: 8px 4px;
		font-size: 11px;
		justify-content: center;
	}

	.os-nav-link .os-icon {
		width: 22px;
		height: 22px;
	}
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.os-main {
	padding: 16px;
}

@media (min-width: 768px) {
	.os-main {
		padding: 24px;
	}
}

.os-page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.os-page-title {
	font-size: 22px;
	font-weight: 750;
	letter-spacing: -.02em;
}

.os-page-sub {
	color: var(--os-muted);
	font-size: 13px;
	margin-top: 2px;
}

.os-loading {
	display: grid;
	place-items: center;
	gap: 12px;
	padding: 64px 16px;
	color: var(--os-muted);
}

.os-spinner {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 3px solid var(--os-border);
	border-top-color: var(--os-primary);
	animation: os-spin .8s linear infinite;
	display: block;
}

@keyframes os-spin {
	to { transform: rotate(360deg); }
}

.os-empty {
	text-align: center;
	padding: 48px 20px;
	color: var(--os-muted);
	background: var(--os-surface);
	border: 1px dashed var(--os-border-strong);
	border-radius: var(--os-radius);
}

.os-empty h3 {
	color: var(--os-text);
	font-size: 17px;
	margin-bottom: 6px;
}

.os-card {
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-sm);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.os-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface);
	color: var(--os-btn-alt-text);
	font-weight: 600;
	font-size: 14.5px;
	transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
	-webkit-tap-highlight-color: transparent;
}

.os-btn:hover {
	border-color: var(--os-primary);
	color: var(--os-primary);
}

.os-btn:active {
	transform: scale(.975);
}

.os-btn--primary {
	background: var(--os-primary);
	border-color: var(--os-primary);
	color: var(--os-btn-text);
	box-shadow: 0 6px 18px var(--os-primary-shadow);
}

.os-btn--primary:hover {
	background: var(--os-primary-dark);
	border-color: var(--os-primary-dark);
	color: var(--os-btn-text);
}

.os-btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--os-btn-alt-muted);
}

.os-btn--ghost:hover {
	background: var(--os-bg);
}

.os-btn--danger {
	color: var(--os-red);
	border-color: #f6c9d3;
	background: var(--os-red-soft);
}

.os-btn--danger:hover {
	background: var(--os-red);
	border-color: var(--os-red);
	color: var(--os-btn-text);
}

.os-btn--block {
	width: 100%;
}

.os-btn[disabled] {
	opacity: .55;
	pointer-events: none;
}

.os-btn-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(140deg, var(--os-primary), var(--os-primary-light));
	color: var(--os-btn-text);
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 8px 22px var(--os-primary-shadow);
	transition: transform .12s ease, box-shadow .2s ease;
}

.os-btn-add:active {
	transform: scale(.96);
}

.os-btn-add svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 599px) {
	.os-btn-add {
		position: fixed;
		right: 16px;
		bottom: 84px;
		z-index: 39;
		width: 58px;
		height: 58px;
		padding: 0;
		border-radius: 50%;
	}

	.os-btn-add .os-btn-add-text {
		display: none;
	}

	.os-btn-add svg {
		width: 26px;
		height: 26px;
	}
}

.os-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--os-border);
	background: var(--os-surface);
	color: var(--os-muted);
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.os-icon-btn:hover {
	color: var(--os-primary);
	border-color: var(--os-primary);
	background: var(--os-primary-soft);
}

/* Τα κουμπιά της μπάρας ακολουθούν τα χρώματά της. */
.os-topbar .os-icon-btn {
	background: transparent;
	border-color: var(--os-bar-border);
	color: var(--os-bar-muted);
}

.os-topbar .os-icon-btn:hover {
	background: var(--os-bar-soft);
	border-color: var(--os-bar-accent);
	color: var(--os-bar-accent);
}

/* ---------------------------------------------------------
   Ειδοποιήσεις (καμπανάκι μπάρας)
   --------------------------------------------------------- */

.os-notif {
	position: relative;
	display: flex;
}

.os-notif-btn {
	position: relative;
	overflow: visible;
}

.os-notif-btn.has-notifications {
	color: var(--os-bar-text);
}

.os-notif-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	border: 2px solid var(--os-bar);
	background: var(--os-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	text-align: center;
}

.os-notif-badge--red {
	background: var(--os-red);
}

.os-notif-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 50;
	width: min(340px, calc(100vw - 24px));
	max-height: min(440px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--os-surface);
	color: var(--os-text);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-lg);
}

/* Το display:flex παραπάνω νικά τον κανόνα [hidden] του browser, οπότε το
   κλείσιμο του πάνελ πρέπει να δηλωθεί ρητά. */
.os-notif-panel[hidden],
.os-notif-badge[hidden] {
	display: none;
}

.os-notif-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--os-border);
}

.os-notif-head strong {
	font-size: 15px;
}

.os-notif-head span {
	font-size: 12.5px;
	color: var(--os-muted);
}

.os-notif-body {
	overflow-y: auto;
}

.os-notif-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--os-border);
	text-align: left;
	transition: background .16s ease;
}

.os-notif-item:last-child {
	border-bottom: 0;
}

.os-notif-item:hover {
	background: var(--os-surface-2);
}

.os-notif-item-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.os-notif-item-title {
	font-weight: 650;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.os-notif-item-sub {
	font-size: 12.5px;
	color: var(--os-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.os-notif-item-when {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex: none;
	text-align: right;
}

.os-notif-item-count {
	font-size: 12.5px;
	font-weight: 650;
	white-space: nowrap;
}

.os-notif-item-count--orange { color: var(--os-orange-ink); }
.os-notif-item-count--red    { color: var(--os-red-ink); }

.os-notif-item-date {
	font-size: 11.5px;
	color: var(--os-muted);
	white-space: nowrap;
}

.os-notif-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 16px;
	color: var(--os-muted);
	font-size: 13.5px;
	text-align: center;
}

/* ---------------------------------------------------------
   Status colours
   --------------------------------------------------------- */

.os-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex: none;
}

.os-dot--green  { background: var(--os-green); box-shadow: 0 0 0 3px var(--os-green-soft); }
.os-dot--orange { background: var(--os-orange); box-shadow: 0 0 0 3px var(--os-orange-soft); }
.os-dot--red    { background: var(--os-red); box-shadow: 0 0 0 3px var(--os-red-soft); }
.os-dot--grey   { background: var(--os-grey); box-shadow: 0 0 0 3px var(--os-grey-soft); }

.os-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px 5px 9px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 650;
	white-space: nowrap;
}

.os-badge--green  { background: var(--os-green-soft); color: var(--os-green-ink); }
.os-badge--orange { background: var(--os-orange-soft); color: var(--os-orange-ink); }
.os-badge--red    { background: var(--os-red-soft); color: var(--os-red-ink); }
.os-badge--grey   { background: var(--os-grey-soft); color: var(--os-grey-ink); }

.os-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 14px 0 0;
	font-size: 12.5px;
	color: var(--os-muted);
}

.os-legend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

/* ---------------------------------------------------------
   Toolbar (calendar controls / filters)
   --------------------------------------------------------- */

.os-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.os-toolbar-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.os-segment {
	display: inline-flex;
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: 999px;
	padding: 4px;
	gap: 2px;
	overflow-x: auto;
	max-width: 100%;
	scrollbar-width: none;
}

.os-segment::-webkit-scrollbar {
	display: none;
}

.os-segment button {
	border: 0;
	background: transparent;
	padding: 8px 15px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 650;
	color: var(--os-btn-alt-muted);
	white-space: nowrap;
	transition: background .16s ease, color .16s ease;
}

.os-segment button.is-active {
	background: var(--os-primary);
	color: var(--os-btn-text);
}

.os-period {
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: -.01em;
	min-width: 150px;
	text-align: center;
}

@media (max-width: 599px) {
	.os-period {
		min-width: 0;
		font-size: 15px;
	}
}

.os-search {
	position: relative;
	flex: 1 1 200px;
	min-width: 160px;
}

.os-search svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--os-muted);
	pointer-events: none;
}

.os-search input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 38px;
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface);
	font-size: 15px;
	color: var(--os-text);
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.os-search input:focus {
	border-color: var(--os-primary);
	box-shadow: 0 0 0 3px var(--os-primary-soft);
}

/* ---------------------------------------------------------
   Calendar
   --------------------------------------------------------- */

.os-calendar {
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-sm);
	overflow: hidden;
}

/* Week view */
.os-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.os-week-day {
	border-right: 1px solid var(--os-border);
	min-height: 220px;
	display: flex;
	flex-direction: column;
}

.os-week-day:last-child {
	border-right: 0;
}

.os-day-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--os-border);
	background: var(--os-surface-2);
	position: sticky;
	top: 0;
}

.os-day-name {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--os-muted);
}

.os-day-num {
	font-size: 17px;
	font-weight: 700;
}

.os-week-day.is-today .os-day-head {
	background: var(--os-primary-soft);
}

.os-week-day.is-today .os-day-num {
	color: var(--os-primary);
}

.os-day-body {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.os-day-empty {
	font-size: 12.5px;
	color: #b3b4c6;
	text-align: center;
	padding: 12px 0;
}

/* Order chip */
.os-chip {
	display: block;
	width: 100%;
	text-align: left;
	border: 1px solid transparent;
	border-left: 4px solid var(--os-grey);
	border-radius: 10px;
	padding: 8px 10px;
	background: var(--os-grey-soft);
	transition: transform .12s ease, box-shadow .18s ease;
}

.os-chip:hover {
	transform: translateY(-1px);
	box-shadow: var(--os-shadow);
}

.os-chip-time {
	font-size: 11.5px;
	font-weight: 700;
	opacity: .8;
	display: block;
}

.os-chip-name {
	font-size: 13.5px;
	font-weight: 650;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.os-chip-meta {
	font-size: 11.5px;
	opacity: .75;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.os-chip--green  { background: var(--os-green-soft); border-left-color: var(--os-green); color: var(--os-green-ink); }
.os-chip--orange { background: var(--os-orange-soft); border-left-color: var(--os-orange); color: var(--os-orange-ink); }
.os-chip--red    { background: var(--os-red-soft); border-left-color: var(--os-red); color: var(--os-red-ink); }
.os-chip--grey   { background: var(--os-grey-soft); border-left-color: var(--os-grey); color: var(--os-grey-ink); }

.os-chip--grey .os-chip-name {
	text-decoration: line-through;
	opacity: .8;
}

/* Week view στα κινητά: κάθετη λίστα ημερών */
@media (max-width: 899px) {
	.os-week {
		grid-template-columns: 1fr;
	}

	.os-week-day {
		border-right: 0;
		border-bottom: 1px solid var(--os-border);
		min-height: 0;
	}

	.os-week-day:last-child {
		border-bottom: 0;
	}

	.os-day-head {
		position: static;
	}

	.os-day-body {
		padding: 10px 12px 14px;
	}

	/* Οι κενές ημέρες γίνονται μια λεπτή γραμμή */
	.os-week-day.is-empty .os-day-body {
		display: none;
	}

	.os-week-day.is-empty .os-day-head {
		opacity: .55;
		padding: 8px 12px;
	}
}

/* Day view */
.os-dayview {
	display: flex;
	flex-direction: column;
}

.os-hour {
	display: grid;
	grid-template-columns: 68px 1fr;
	border-bottom: 1px solid var(--os-border);
	min-height: 58px;
}

.os-hour:last-child {
	border-bottom: 0;
}

.os-hour-label {
	padding: 10px 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--os-muted);
	border-right: 1px solid var(--os-border);
	background: var(--os-surface-2);
}

.os-hour-body {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.os-hour.is-now .os-hour-label {
	color: var(--os-primary);
	background: var(--os-primary-soft);
}

/* Month view */
.os-month-head {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	background: var(--os-surface-2);
	border-bottom: 1px solid var(--os-border);
}

.os-month-head span {
	padding: 10px 4px;
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--os-muted);
}

.os-month {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.os-month-cell {
	border-right: 1px solid var(--os-border);
	border-bottom: 1px solid var(--os-border);
	min-height: 108px;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--os-surface);
}

.os-month-cell:nth-child(7n) {
	border-right: 0;
}

.os-month-cell.is-out {
	background: var(--os-surface-2);
	color: #b3b4c6;
}

.os-month-cell-num {
	font-size: 13px;
	font-weight: 700;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	align-self: flex-end;
}

.os-month-cell.is-today .os-month-cell-num {
	background: var(--os-primary);
	color: #fff;
}

.os-month-more {
	font-size: 11.5px;
	font-weight: 650;
	color: var(--os-primary);
	text-align: center;
	padding: 2px;
	background: none;
	border: 0;
}

.os-chip--mini {
	padding: 4px 7px;
	border-radius: 7px;
	border-left-width: 3px;
}

.os-chip--mini .os-chip-name {
	font-size: 11.5px;
}

@media (max-width: 767px) {
	.os-month-cell {
		min-height: 62px;
		padding: 4px 3px;
		gap: 3px;
	}

	.os-month-cell-num {
		align-self: center;
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.os-chip--mini .os-chip-time,
	.os-chip--mini .os-chip-meta {
		display: none;
	}

	.os-month-dots {
		display: flex;
		gap: 3px;
		justify-content: center;
		flex-wrap: wrap;
	}

	.os-month-dots i {
		width: 7px;
		height: 7px;
		border-radius: 50%;
		display: block;
	}
}

/* Year view */
.os-year {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
	padding: 14px;
}

.os-mini-month {
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-sm);
	padding: 10px;
	background: var(--os-surface);
	text-align: center;
}

.os-mini-month h4 {
	font-size: 13.5px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--os-primary);
	cursor: pointer;
}

.os-mini-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.os-mini-grid span,
.os-mini-grid button {
	font-size: 10.5px;
	line-height: 1;
	padding: 5px 0;
	border: 0;
	background: none;
	border-radius: 6px;
	color: var(--os-muted);
	position: relative;
}

.os-mini-grid .os-mini-wd {
	font-weight: 700;
	color: #b3b4c6;
}

.os-mini-grid button.has-orders {
	font-weight: 700;
	color: #fff;
}

.os-mini-grid button.c-green  { background: var(--os-green); }
.os-mini-grid button.c-orange { background: var(--os-orange); }
.os-mini-grid button.c-red    { background: var(--os-red); }
.os-mini-grid button.c-grey   { background: var(--os-grey); }

.os-mini-grid button.is-today {
	outline: 2px solid var(--os-primary);
	outline-offset: -2px;
}

@media (max-width: 480px) {
	.os-year {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 10px;
	}

	.os-mini-month {
		padding: 7px 5px;
	}

	.os-mini-grid span,
	.os-mini-grid button {
		font-size: 9px;
		padding: 3px 0;
	}
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */

.os-table-wrap {
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-sm);
	overflow: hidden;
}

.os-table {
	width: 100%;
	border-collapse: collapse;
}

.os-table thead th {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--os-muted);
	padding: 13px 16px;
	background: var(--os-surface-2);
	border-bottom: 1px solid var(--os-border);
	white-space: nowrap;
}

.os-table thead th:first-child {
	text-align: center;
	width: 70px;
}

.os-table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--os-border);
	font-size: 14.5px;
	text-align: left;
	vertical-align: middle;
}

.os-table tbody td:first-child {
	text-align: center;
	color: var(--os-muted);
	font-variant-numeric: tabular-nums;
	font-weight: 650;
}

.os-table tbody tr {
	cursor: pointer;
	transition: background .14s ease;
}

.os-table tbody tr:hover {
	background: var(--os-primary-soft);
}

.os-table tbody tr:last-child td {
	border-bottom: 0;
}

.os-cell-strong {
	font-weight: 650;
}

.os-cell-sub {
	display: block;
	font-size: 12.5px;
	color: var(--os-muted);
	margin-top: 2px;
}

.os-table-status {
	width: 1%;
	white-space: nowrap;
}

.os-table thead th:last-child,
.os-table tbody td:last-child {
	text-align: right;
}

/* Πίνακες ως κάρτες σε κινητά */
@media (max-width: 767px) {
	.os-table,
	.os-table tbody,
	.os-table tr,
	.os-table td {
		display: block;
		width: 100%;
	}

	.os-table thead {
		display: none;
	}

	.os-table-wrap {
		background: transparent;
		border: 0;
		box-shadow: none;
		border-radius: 0;
	}

	.os-table tbody tr {
		background: var(--os-surface);
		border: 1px solid var(--os-border);
		border-radius: var(--os-radius);
		box-shadow: var(--os-shadow-sm);
		margin-bottom: 10px;
		padding: 12px 14px;
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-areas:
			"num  name   status"
			"num  type   status"
			"num  date   status";
		align-items: center;
		column-gap: 12px;
	}

	.os-table tbody tr:hover {
		background: var(--os-surface);
	}

	.os-table tbody td {
		border: 0;
		padding: 0;
		text-align: left;
	}

	.os-table td[data-col="num"] {
		grid-area: num;
		font-size: 13px;
		font-weight: 700;
		color: var(--os-muted);
		background: var(--os-bg);
		border-radius: 10px;
		width: 40px;
		height: 40px;
		display: grid;
		place-items: center;
	}

	.os-table td[data-col="name"] {
		grid-area: name;
		font-weight: 700;
		font-size: 15px;
	}

	.os-table td[data-col="type"] {
		grid-area: type;
		font-size: 12.5px;
		color: var(--os-muted);
	}

	.os-table td[data-col="date"] {
		grid-area: date;
		font-size: 12.5px;
		color: var(--os-muted);
	}

	.os-table td[data-col="status"] {
		grid-area: status;
		text-align: right;
	}

	.os-table td[data-col="status"] .os-badge span {
		display: none;
	}

	.os-table td[data-col="status"] .os-badge {
		padding: 8px;
		border-radius: 50%;
	}
}

/* ---------------------------------------------------------
   Detail pages
   --------------------------------------------------------- */

.os-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 650;
	color: var(--os-muted);
	margin-bottom: 12px;
	background: none;
	border: 0;
	padding: 6px 0;
}

.os-back:hover {
	color: var(--os-primary);
}

.os-detail {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.os-detail {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
	}
}

.os-panel {
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-sm);
	padding: 18px;
}

.os-panel + .os-panel {
	margin-top: 16px;
}

.os-panel-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--os-muted);
	margin-bottom: 14px;
}

.os-detail-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.os-detail-name {
	font-size: 24px;
	font-weight: 750;
	letter-spacing: -.02em;
}

.os-detail-num {
	font-size: 13px;
	font-weight: 700;
	color: var(--os-primary);
	background: var(--os-primary-soft);
	padding: 3px 10px;
	border-radius: 999px;
	display: inline-block;
	margin-bottom: 6px;
}

.os-kv {
	display: grid;
	gap: 1px;
	background: var(--os-border);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--os-border);
}

.os-kv > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	background: var(--os-surface);
	font-size: 14.5px;
}

.os-kv dt,
.os-kv .os-kv-key {
	color: var(--os-muted);
	font-size: 13px;
	font-weight: 600;
	flex: none;
}

.os-kv dd,
.os-kv .os-kv-val {
	margin: 0;
	font-weight: 650;
	text-align: right;
	word-break: break-word;
}

.os-design-img {
	display: block;
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--os-border);
	cursor: zoom-in;
}

.os-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.os-actions .os-btn {
	flex: 1 1 150px;
}

/* Κρυφές τιμές (PIN) */
.os-amount {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-variant-numeric: tabular-nums;
}

.os-amount-value {
	font-weight: 700;
	transition: filter .2s ease;
}

.os-amount.is-locked .os-amount-value {
	filter: blur(7px);
	user-select: none;
	color: var(--os-muted);
}

.os-eye {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	border: 1px solid var(--os-border);
	background: var(--os-surface-2);
	color: var(--os-muted);
	flex: none;
}

.os-eye:hover {
	color: var(--os-primary);
	border-color: var(--os-primary);
}

.os-eye svg {
	width: 17px;
	height: 17px;
}

.os-money-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.os-money-box {
	background: var(--os-surface-2);
	border: 1px solid var(--os-border);
	border-radius: 12px;
	padding: 12px;
	text-align: center;
}

.os-money-box .os-money-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--os-muted);
	margin-bottom: 6px;
}

.os-money-box .os-amount {
	justify-content: center;
	font-size: 17px;
}

@media (max-width: 480px) {
	.os-money-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------
   Modal / bottom sheet
   --------------------------------------------------------- */

.os-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 20, 40, .5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: os-fade .2s ease;
	overflow-y: auto;
}

@keyframes os-fade {
	from { opacity: 0; }
}

.os-modal {
	background: var(--os-surface);
	border-radius: var(--os-radius-lg);
	box-shadow: var(--os-shadow-lg);
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: os-pop .22s cubic-bezier(.2, .9, .3, 1.1);
	font-family: var(--os-font);
	color: var(--os-text);
}

.os-modal--wide {
	max-width: 720px;
}

.os-modal--narrow {
	max-width: 380px;
}

@keyframes os-pop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
}

.os-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--os-border);
}

.os-modal-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.os-modal-body {
	padding: 18px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1;
}

.os-modal-foot {
	padding: 14px 20px;
	border-top: 1px solid var(--os-border);
	display: flex;
	gap: 10px;
	background: var(--os-surface-2);
}

.os-modal-foot .os-btn {
	flex: 1;
}

.os-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 0;
	background: var(--os-bg);
	color: var(--os-muted);
	flex: none;
}

.os-close:hover {
	background: var(--os-red-soft);
	color: var(--os-red);
}

@media (max-width: 599px) {
	.os-modal-backdrop {
		padding: 0;
		align-items: flex-end;
	}

	.os-modal {
		max-width: none;
		max-height: 94vh;
		border-radius: 24px 24px 0 0;
		animation: os-sheet .26s cubic-bezier(.2, .9, .3, 1);
	}

	@keyframes os-sheet {
		from { transform: translateY(100%); }
	}

	.os-modal-head::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		transform: translateX(-50%);
		width: 44px;
		height: 4px;
		border-radius: 999px;
		background: var(--os-border-strong);
	}

	.os-modal-head {
		position: relative;
		padding-top: 22px;
	}

	.os-modal-foot {
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}
}

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */

.os-form {
	display: grid;
	gap: 14px;
}

.os-row {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
	.os-row {
		grid-template-columns: 1fr;
	}
}

.os-field label,
.os-label {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: var(--os-muted);
	margin-bottom: 6px;
}

.os-input,
.os-select,
.os-textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface);
	font-family: inherit;
	font-size: 16px; /* αποτρέπει το zoom στο iOS */
	color: var(--os-text);
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease;
	-webkit-appearance: none;
	appearance: none;
}

.os-input:focus,
.os-select:focus,
.os-textarea:focus {
	border-color: var(--os-primary);
	box-shadow: 0 0 0 3px var(--os-primary-soft);
}

.os-textarea {
	min-height: 92px;
	resize: vertical;
	line-height: 1.5;
}

.os-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6d85' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 38px;
}

.os-hint {
	font-size: 12.5px;
	color: var(--os-muted);
	margin-top: 5px;
}

.os-error {
	background: var(--os-red-soft);
	color: #a5183a;
	border-radius: var(--os-radius-sm);
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
}

/* Επιλογή τύπου (τούρτα / άλλο) */
.os-choice {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.os-choice button {
	border: 1.5px solid var(--os-border-strong);
	background: var(--os-surface);
	border-radius: var(--os-radius-sm);
	padding: 14px 10px;
	display: grid;
	gap: 6px;
	justify-items: center;
	font-weight: 650;
	font-size: 14px;
	color: var(--os-muted);
	transition: all .16s ease;
}

.os-choice button svg {
	width: 24px;
	height: 24px;
}

.os-choice button.is-active {
	border-color: var(--os-primary);
	background: var(--os-primary-soft);
	color: var(--os-primary);
}

/* Combobox πελάτη */
.os-combo {
	position: relative;
}

.os-combo-list {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 240px;
	overflow-y: auto;
	background: var(--os-surface);
	border: 1px solid var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	box-shadow: var(--os-shadow-lg);
	padding: 6px;
	display: none;
}

.os-combo-list.is-open {
	display: block;
}

.os-combo-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	background: none;
	border-radius: 9px;
	text-align: left;
	font-size: 14.5px;
}

.os-combo-item:hover,
.os-combo-item.is-highlighted {
	background: var(--os-primary-soft);
	color: var(--os-primary);
}

.os-combo-item small {
	color: var(--os-muted);
	font-size: 12.5px;
}

.os-combo-empty {
	padding: 12px;
	text-align: center;
	color: var(--os-muted);
	font-size: 13.5px;
}

/* Ανέβασμα εικόνας */
.os-upload {
	border: 1.5px dashed var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	padding: 18px;
	text-align: center;
	color: var(--os-muted);
	font-size: 13.5px;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease;
	display: block;
}

.os-upload:hover {
	border-color: var(--os-primary);
	background: var(--os-primary-soft);
	color: var(--os-primary);
}

.os-upload svg {
	width: 26px;
	height: 26px;
	margin-bottom: 6px;
}

.os-upload input {
	display: none;
}

/* Πλέγμα μικρογραφιών (πολλαπλές εικόνες) */
.os-thumb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 8px;
}

.os-thumb {
	position: relative;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--os-border);
	background: var(--os-surface-2);
	padding: 0;
	display: block;
	width: 100%;
}

.os-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}

.os-thumb-remove {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 0;
	background: rgba(20, 20, 40, .68);
	color: #fff;
	display: grid;
	place-items: center;
}

.os-thumb-remove:hover {
	background: var(--os-red);
}

.os-thumb--add {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 4px;
	border: 1.5px dashed var(--os-border-strong);
	color: var(--os-muted);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.os-thumb--add:hover {
	border-color: var(--os-primary);
	background: var(--os-primary-soft);
	color: var(--os-primary);
}

.os-thumb--add input {
	display: none;
}

.os-thumb--loading {
	display: grid;
	place-items: center;
}

/* Επιλογές με checkbox (εξαγωγή δεδομένων) */
.os-check-group {
	display: grid;
	gap: 8px;
}

.os-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface);
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease;
}

.os-check:hover {
	border-color: var(--os-primary);
	background: var(--os-primary-soft);
}

.os-check input {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--os-primary);
	flex: none;
}

.os-check-label {
	display: block;
	font-weight: 650;
	font-size: 15px;
}

.os-check-hint {
	display: block;
	font-size: 12.5px;
	color: var(--os-muted);
	margin-top: 2px;
}

.os-file-chip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface-2);
	color: var(--os-primary);
}

.os-notice {
	background: var(--os-surface-2);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-sm);
	padding: 14px;
	font-size: 13.5px;
	color: var(--os-muted);
}

.os-notice strong {
	display: block;
	color: var(--os-text);
	margin-bottom: 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.os-notice ul {
	display: grid;
	gap: 5px;
	padding-left: 16px !important;
	list-style: disc !important;
}

.os-error-list {
	display: grid;
	gap: 6px;
	font-size: 13px;
	color: var(--os-red);
	max-height: 220px;
	overflow-y: auto;
}

/* ---------------------------------------------------------
   PIN pad
   --------------------------------------------------------- */

.os-pin {
	text-align: center;
}

.os-pin-dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 18px 0 20px;
}

.os-pin-dots i {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--os-border-strong);
	transition: transform .16s ease, background .16s ease;
}

.os-pin-dots i.is-filled {
	background: var(--os-primary);
	transform: scale(1.15);
}

.os-pin.is-error .os-pin-dots {
	animation: os-shake .4s;
}

.os-pin.is-error .os-pin-dots i {
	background: var(--os-red);
}

@keyframes os-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-8px); }
	40% { transform: translateX(8px); }
	60% { transform: translateX(-5px); }
	80% { transform: translateX(5px); }
}

.os-pin-pad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-width: 280px;
	margin: 0 auto;
}

.os-pin-pad button {
	height: 60px;
	border: 1px solid var(--os-border);
	border-radius: 14px;
	background: var(--os-surface-2);
	font-size: 22px;
	font-weight: 650;
	transition: background .12s ease, transform .1s ease;
}

.os-pin-pad button:active {
	transform: scale(.94);
	background: var(--os-primary-soft);
}

.os-pin-pad button.os-pin-action {
	font-size: 14px;
	font-weight: 700;
	color: var(--os-muted);
}

.os-pin-msg {
	font-size: 13.5px;
	color: var(--os-muted);
	min-height: 20px;
	margin-top: 14px;
}

.os-pin.is-error .os-pin-msg {
	color: var(--os-red);
	font-weight: 650;
}

/* ---------------------------------------------------------
   Toasts
   --------------------------------------------------------- */

.os-toast-root {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 100001;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	pointer-events: none;
	width: max-content;
	max-width: calc(100vw - 32px);
}

.os-toast {
	background: #23243a;
	color: #fff;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--os-shadow-lg);
	animation: os-toast-in .25s ease;
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--os-font);
}

.os-toast--error {
	background: var(--os-red);
}

.os-toast--success {
	background: var(--os-green);
}

@keyframes os-toast-in {
	from { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 767px) {
	.os-toast-root {
		bottom: 96px;
	}
}

/* Lightbox εικόνας */
.os-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100002;
	background: rgba(10, 10, 20, .9);
	display: grid;
	place-items: center;
	padding: 20px;
	cursor: zoom-out;
}

.os-lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 12px;
}

/* Κλείδωμα scroll όταν είναι ανοιχτό modal */
body.os-modal-open {
	overflow: hidden;
}

/* Tabs */
.os-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--os-border);
	margin-bottom: 16px;
	overflow-x: auto;
	scrollbar-width: none;
}

.os-tabs::-webkit-scrollbar {
	display: none;
}

.os-tabs button {
	border: 0;
	background: none;
	padding: 12px 16px;
	font-size: 14.5px;
	font-weight: 650;
	color: var(--os-muted);
	border-bottom: 2.5px solid transparent;
	white-space: nowrap;
	margin-bottom: -1px;
}

.os-tabs button.is-active {
	color: var(--os-primary);
	border-bottom-color: var(--os-primary);
}

/* Στατιστικά */
.os-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.os-stat {
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	padding: 14px;
	box-shadow: var(--os-shadow-sm);
}

.os-stat-num {
	font-size: 24px;
	font-weight: 750;
	letter-spacing: -.02em;
	line-height: 1.1;
}

.os-stat-label {
	font-size: 12.5px;
	color: var(--os-muted);
	margin-top: 3px;
	display: flex;
	align-items: center;
	gap: 6px;
}

@media (max-width: 599px) {
	.os-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.os-stat {
		padding: 12px;
	}

	.os-stat-num {
		font-size: 20px;
	}
}

/* Προεπισκόπηση παραγγελίας μέσα σε modal */
.os-preview-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.os-preview-avatar {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--os-primary-soft);
	color: var(--os-primary);
	display: grid;
	place-items: center;
	font-weight: 750;
	font-size: 17px;
	flex: none;
}

.os-preview-name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

.os-preview-sub {
	font-size: 13px;
	color: var(--os-muted);
}

@media print {
	.os-topbar,
	.os-nav,
	.os-btn-add,
	.os-actions,
	.os-toolbar {
		display: none !important;
	}
}

/* ---------------------------------------------------------
   Οθόνη σύνδεσης (gate)
   --------------------------------------------------------- */

.os-gate {
	/* Η οθόνη σύνδεσης ζει έξω από το .os-app, οπότε ορίζει δικά της tokens.
	   Τα χρώματα ξαναγράφονται από το inline CSS των ρυθμίσεων. */
	--os-primary: #6d5efc;
	--os-primary-dark: #5544e6;
	--os-primary-soft: #eeecff;
	--os-primary-shadow: rgba(109, 94, 252, .3);
	--os-btn-text: #ffffff;
	--os-surface: #ffffff;
	--os-text: #1d1e2c;
	--os-muted: #6c6d85;
	--os-border-strong: #d5d5e6;
	--os-red-soft: #fde8ec;
	--os-red-ink: #982038;
	--os-radius: 16px;
	--os-radius-sm: 10px;

	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	display: flex;
	justify-content: center;
	padding: 40px 16px;
	color: var(--os-text);
	line-height: 1.45;
}

.os-gate *,
.os-gate *::before,
.os-gate *::after {
	box-sizing: border-box;
}

.os-gate-card {
	width: 100%;
	max-width: 400px;
	background: var(--os-surface);
	border-radius: var(--os-radius);
	box-shadow: 0 14px 50px rgba(20, 20, 50, .1);
	padding: 32px 28px;
	text-align: center;
}

.os-gate-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 22px;
	font-size: 17px;
}

.os-gate-brand img {
	max-width: 200px;
	object-fit: contain;
}

.os-gate h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 750;
}

.os-gate-sub {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--os-muted);
	line-height: 1.5;
}

.os-gate-form {
	text-align: left;
	display: grid;
	gap: 4px;
}

.os-gate-label {
	font-size: 13px;
	font-weight: 650;
	color: var(--os-muted);
	margin-top: 10px;
}

.os-gate-input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--os-border-strong);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface);
	font-family: inherit;
	font-size: 16px;
	color: var(--os-text);
	outline: none;
	box-sizing: border-box;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.os-gate-input:focus {
	border-color: var(--os-primary);
	box-shadow: 0 0 0 3px var(--os-primary-soft);
}

.os-gate-remember {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 14px 0 4px;
	font-size: 14px;
	color: var(--os-muted);
	cursor: pointer;
}

.os-gate-remember input {
	width: 18px;
	height: 18px;
	accent-color: var(--os-primary);
}

.os-gate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 14px;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--os-radius-sm);
	background: var(--os-primary);
	color: var(--os-btn-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 18px var(--os-primary-shadow);
	transition: background .16s ease, transform .1s ease;
}

.os-gate-btn:hover {
	background: var(--os-primary-dark);
	color: var(--os-btn-text);
}

.os-gate-btn:active {
	transform: translateY(1px);
}

.os-gate-error {
	background: var(--os-red-soft);
	color: var(--os-red-ink);
	border-radius: var(--os-radius-sm);
	padding: 12px 14px;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 16px;
	text-align: left;
}

.os-gate-meta {
	margin-top: 22px;
	text-align: left;
	font-size: 12.5px;
	color: var(--os-muted);
}

.os-gate-meta summary {
	cursor: pointer;
	text-align: center;
}

.os-gate-meta ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 4px;
	word-break: break-word;
}

.os-gate-meta code {
	font-size: 12px;
}

.os-gate-link {
	display: inline-block;
	margin-top: 18px;
	font-size: 13.5px;
	color: var(--os-muted);
	text-decoration: none;
}

.os-gate-link:hover {
	color: var(--os-primary);
	text-decoration: underline;
}

/* ---------------------------------------------------------
   Σελίδα λογαριασμού
   --------------------------------------------------------- */

.os-profile-head {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.os-profile-avatar {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	background: var(--os-primary-soft);
	display: grid;
	place-items: center;
}

.os-profile-avatar--text {
	color: var(--os-primary);
	font-size: 26px;
	font-weight: 750;
	letter-spacing: .02em;
}

.os-profile-id {
	flex: 1;
	min-width: 0;
}

.os-profile-name {
	margin: 0 0 7px;
	font-size: 21px;
	font-weight: 750;
	line-height: 1.2;
	word-break: break-word;
}

.os-profile-user {
	margin-top: 6px;
	font-size: 13px;
	color: var(--os-muted);
}

.os-role-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--os-primary-soft);
	color: var(--os-primary);
	font-size: 12.5px;
	font-weight: 700;
}

/* Επιλογή φωτογραφίας προφίλ */
.os-avatar-picker {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 4px;
}

.os-avatar-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.os-avatar-actions input[type="file"] {
	display: none;
}

/* Στοιχεία επιχείρησης */
.os-biz-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.os-biz-logo {
	max-height: 52px;
	max-width: 150px;
	object-fit: contain;
}

.os-biz-name {
	font-size: 18px;
	font-weight: 750;
}

.os-biz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.os-biz-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 14px;
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-sm);
	background: var(--os-surface-2);
}

.os-biz-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--os-primary-soft);
	color: var(--os-primary);
	flex: none;
}

.os-biz-text {
	min-width: 0;
	flex: 1;
}

.os-biz-label {
	display: block;
	font-size: 12px;
	font-weight: 650;
	color: var(--os-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 3px;
}

.os-biz-value {
	display: block;
	font-size: 15px;
	font-weight: 650;
	color: var(--os-primary);
	text-decoration: none;
	word-break: break-word;
	white-space: pre-line;
}

.os-biz-value:hover {
	text-decoration: underline;
}

.os-biz-value--plain {
	color: var(--os-text);
}

.os-biz-value--plain:hover {
	text-decoration: none;
}

@media (max-width: 599px) {
	.os-profile-head {
		gap: 14px;
	}

	.os-profile-head .os-btn {
		width: 100%;
	}

	.os-profile-avatar {
		width: 62px;
		height: 62px;
	}

	.os-profile-name {
		font-size: 19px;
	}
}
