:root {
	--sod-green: #2f6f3e;
	--sod-green-dark: #1f522d;
	--sod-green-soft: #eaf4ec;
	--sod-ink: #17211a;
	--sod-muted: #667069;
	--sod-line: #dfe5e0;
	--sod-bg: #f4f6f4;
	--sod-white: #fff;
}

body:has(.sod-portal),
body:has(.sod-login-shell) {
	margin: 0 !important;
	overflow-x: clip !important;
	background: var(--sod-bg) !important;
	color: var(--sod-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.sod-portal) > header,
body:has(.sod-portal) > footer,
body:has(.sod-login-shell) > header,
body:has(.sod-login-shell) > footer,
body:has(.sod-portal) .wp-site-blocks > header,
body:has(.sod-portal) .wp-site-blocks > footer,
body:has(.sod-login-shell) .wp-site-blocks > header,
body:has(.sod-login-shell) .wp-site-blocks > footer {
	display: none !important;
}

body:has(.sod-portal) main,
body:has(.sod-login-shell) main,
body:has(.sod-portal) .wp-site-blocks,
body:has(.sod-login-shell) .wp-site-blocks {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

.sod-portal *,
.sod-login-shell * {
	box-sizing: border-box;
}

.sod-portal {
	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	min-height: 100vh;
	background: var(--sod-bg);
}

.sod-portal-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	padding: 12px clamp(18px, 4vw, 56px);
	background: var(--sod-white);
	border-bottom: 1px solid var(--sod-line);
	box-shadow: 0 2px 12px rgba(19, 46, 27, .05);
}

.sod-brand,
.sod-user-menu,
.sod-order-id,
.sod-proof-complete,
.sod-sign-actions {
	display: flex;
	align-items: center;
}

.sod-brand {
	gap: 12px;
}

.sod-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(135deg, #3e8b4f, var(--sod-green-dark));
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	box-shadow: 0 8px 18px rgba(47, 111, 62, .22);
}

.sod-brand strong,
.sod-brand small {
	display: block;
	line-height: 1.15;
}

.sod-brand strong {
	font-size: 18px;
}

.sod-brand small {
	color: var(--sod-muted);
	font-size: 12px;
	margin-top: 3px;
}

.sod-user-menu {
	gap: 16px;
	font-size: 14px;
}

.sod-user-menu a,
.sod-password-link {
	color: var(--sod-green-dark);
	font-weight: 700;
	text-decoration: none;
}

.sod-password-link {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sod-password-link-short {
	display: none;
}

.sod-portal-main {
	width: min(1320px, calc(100% - 36px));
	margin: 0 auto;
	padding: 36px 0 64px;
}

.sod-toolbar {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 440px);
	gap: 28px;
	align-items: end;
}

.sod-toolbar h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.1;
}

.sod-toolbar p {
	margin: 8px 0 0;
	color: var(--sod-muted);
}

.sod-search input,
.sod-modal input[type="text"],
.sod-modal input[type="password"],
.sod-login-card input[type="text"],
.sod-login-card input[type="password"] {
	width: 100%;
	height: 48px;
	padding: 0 15px;
	border: 1px solid #cfd8d1;
	border-radius: 12px;
	background: var(--sod-white);
	color: var(--sod-ink);
	font-size: 15px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.sod-search input:focus,
.sod-modal input[type="text"]:focus,
.sod-modal input[type="password"]:focus,
.sod-login-card input:focus {
	border-color: var(--sod-green);
	box-shadow: 0 0 0 4px rgba(47, 111, 62, .12);
}

.sod-filters {
	display: flex;
	gap: 8px;
	margin: 28px 0 18px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.sod-filters button {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 1px solid var(--sod-line);
	border-radius: 999px;
	background: var(--sod-white);
	color: var(--sod-muted);
	font-weight: 700;
	cursor: pointer;
}

.sod-filters button.is-active {
	border-color: var(--sod-green);
	background: var(--sod-green);
	color: #fff;
}

.sod-delivery-list {
	display: grid;
	gap: 14px;
}

.sod-delivery-card {
	background: var(--sod-white);
	border: 1px solid var(--sod-line);
	border-radius: 18px;
	box-shadow: 0 8px 25px rgba(28, 56, 35, .055);
	overflow: hidden;
}

.sod-card-summary {
	padding: 20px 22px;
}

.sod-order-id {
	gap: 10px;
	flex-wrap: wrap;
}

.sod-order-id h2 {
	margin: 0;
	font-size: 21px;
}

.sod-site-badge,
.sod-status {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.sod-site-badge {
	background: #eef1ef;
	color: #4b554e;
}

.sod-status {
	margin-left: auto;
	background: #fff3d8;
	color: #7b5600;
}

.sod-status.is-signed {
	background: var(--sod-green-soft);
	color: var(--sod-green-dark);
}

.sod-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1.6fr;
	gap: 24px;
	margin-top: 18px;
}

.sod-summary-grid small,
.sod-summary-grid strong {
	display: block;
}

.sod-summary-grid small {
	margin-bottom: 4px;
	color: var(--sod-muted);
	font-size: 12px;
}

.sod-summary-grid strong {
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.sod-toggle-details {
	margin-top: 18px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sod-green-dark);
	font-weight: 800;
	cursor: pointer;
}

.sod-toggle-details::after {
	content: " ↓";
}

.sod-toggle-details[aria-expanded="true"]::after {
	content: " ↑";
}

.sod-card-details {
	padding: 22px;
	border-top: 1px solid var(--sod-line);
	background: #fbfcfb;
}

.sod-detail-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: 38px;
}

.sod-detail-columns > section,
.sod-items,
.sod-items li > div {
	min-width: 0;
}

.sod-card-details h3 {
	margin: 0 0 14px;
	font-size: 17px;
}

.sod-card-details dl {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 9px 14px;
	margin: 0;
	font-size: 14px;
}

.sod-card-details dt {
	color: var(--sod-muted);
}

.sod-card-details dd {
	margin: 0;
	font-weight: 650;
}

.sod-card-details a {
	color: var(--sod-green-dark);
}

.sod-note {
	margin-top: 18px;
	padding: 14px;
	border-radius: 12px;
	background: #fff5df;
	font-size: 14px;
}

.sod-note p {
	margin: 6px 0 0;
}

.sod-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sod-items li {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 13px;
	padding: 12px 0;
	border-top: 1px solid var(--sod-line);
}

.sod-items li:first-child {
	padding-top: 0;
	border-top: 0;
}

.sod-items img {
	width: 64px;
	height: 64px;
	border: 1px solid var(--sod-line);
	border-radius: 10px;
	object-fit: contain;
	background: #fff;
}

.sod-items strong {
	display: block;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.sod-items p,
.sod-items small {
	display: block;
	margin: 4px 0 0;
	color: var(--sod-muted);
	font-size: 12px;
}

.sod-proof-area {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--sod-line);
}

.sod-button {
	min-height: 44px;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-weight: 800;
	cursor: pointer;
}

.sod-button:disabled {
	opacity: .6;
	cursor: wait;
}

.sod-button-primary {
	background: var(--sod-green);
	color: #fff;
}

.sod-button-primary:hover {
	background: var(--sod-green-dark);
}

.sod-button-secondary {
	border-color: var(--sod-line);
	background: #fff;
	color: var(--sod-ink);
}

.sod-proof-complete {
	justify-content: space-between;
	gap: 20px;
	padding: 14px;
	border-radius: 12px;
	background: var(--sod-green-soft);
}

.sod-proof-complete strong,
.sod-proof-complete small {
	display: block;
}

.sod-proof-complete small {
	margin-top: 4px;
	color: var(--sod-muted);
}

.sod-proof-complete img {
	width: 150px;
	height: 58px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
}

.sod-empty,
.sod-no-results {
	padding: 42px 24px;
	border: 1px dashed #c7d1c9;
	border-radius: 16px;
	background: #fff;
	color: var(--sod-muted);
	text-align: center;
}

.sod-modal[hidden] {
	display: none;
}

.sod-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 18px;
}

.sod-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 24, 15, .58);
	backdrop-filter: blur(3px);
}

.sod-modal-card {
	position: relative;
	z-index: 1;
	width: min(620px, 100%);
	max-height: calc(100vh - 36px);
	overflow: auto;
	padding: 28px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
}

.sod-password-card {
	width: min(520px, 100%);
}

.sod-modal-card h2 {
	margin: 0;
}

.sod-modal-card > p {
	margin: 7px 0 22px;
	color: var(--sod-muted);
}

.sod-modal-card label {
	display: block;
	margin: 15px 0 7px;
	font-size: 14px;
	font-weight: 800;
}

.sod-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #eef1ef;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.sod-signature-picker {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px dashed #bdc9bf;
	border-radius: 14px;
	background: #f8faf8;
}

.sod-signature-status {
	color: var(--sod-muted);
	font-size: 13px;
	font-weight: 700;
}

.sod-signature-status.is-saved {
	color: var(--sod-green);
}

.sod-signature-screen[hidden] {
	display: none;
}

.sod-signature-screen {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: #fff;
}

.sod-signature-screen-bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 66px;
	padding: max(9px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left));
	border-bottom: 1px solid #edf0ed;
	background: rgba(255, 255, 255, .96);
}

.sod-signature-screen-heading,
.sod-signature-screen-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sod-signature-screen-heading strong,
.sod-signature-screen-heading small {
	display: block;
}

.sod-signature-screen-heading small {
	margin-top: 2px;
	color: var(--sod-muted);
	font-size: 12px;
}

.sod-signature-screen-close {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #eef1ef;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.sod-signature-screen-actions .sod-button {
	min-height: 46px;
}

.sod-signature-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	background: #fff;
	touch-action: none;
}

#sod-signature-canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.sod-signature-guide {
	position: absolute;
	right: 8vw;
	bottom: clamp(46px, 14vh, 90px);
	left: 8vw;
	border-bottom: 1px solid rgba(23, 33, 26, .2);
	pointer-events: none;
}

.sod-signature-guide span {
	position: absolute;
	bottom: 7px;
	left: 0;
	color: rgba(23, 33, 26, .25);
	font-size: 13px;
}

.sod-signature-screen-message {
	position: absolute;
	z-index: 3;
	right: 14px;
	bottom: max(12px, env(safe-area-inset-bottom));
	left: 14px;
	margin: 0;
	color: #a22;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	pointer-events: none;
}

.sod-sign-actions {
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

.sod-form-message {
	min-height: 20px;
	margin: 12px 0 0;
	color: #a22;
	font-size: 13px;
	font-weight: 700;
}

.sod-form-message.is-success {
	color: var(--sod-green);
}

.sod-password-hint {
	margin: 8px 0 0;
	color: var(--sod-muted);
	font-size: 12px;
}

.sod-login-shell {
	position: relative;
	display: grid;
	place-items: center;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	min-height: 100vh;
	padding: 20px;
	background:
		radial-gradient(circle at 20% 10%, rgba(65, 139, 80, .18), transparent 35%),
		var(--sod-bg);
}

.sod-login-card {
	width: min(430px, 100%);
	padding: 34px;
	border: 1px solid var(--sod-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(24, 52, 31, .12);
}

.sod-login-card > .sod-brand-mark {
	width: 50px;
	height: 50px;
	font-size: 26px;
}

.sod-login-card h1 {
	margin: 18px 0 6px;
	font-size: 28px;
}

.sod-login-card > p {
	margin: 0 0 22px;
	color: var(--sod-muted);
}

.sod-login-card label {
	display: block;
	margin: 14px 0 6px;
	font-size: 13px;
	font-weight: 800;
}

.sod-login-card .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.sod-login-card .login-submit input {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--sod-green);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.sod-lost-password {
	margin: 16px 0 0 !important;
	text-align: center;
}

.sod-lost-password a {
	color: var(--sod-green-dark);
	font-size: 14px;
	font-weight: 700;
}

body.sod-modal-open,
body.sod-signature-capture-open {
	overflow: hidden;
}

@media (max-width: 820px) {
	.sod-toolbar {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.sod-summary-grid,
	.sod-detail-columns {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.sod-summary-grid > div {
		padding-top: 10px;
		border-top: 1px solid #edf0ed;
	}

	.sod-status {
		margin-left: 0;
	}
}

@media (max-width: 560px) {
	.sod-portal-header {
		min-height: 62px;
		padding: 9px 14px;
	}

	.sod-brand-mark {
		width: 38px;
		height: 38px;
		border-radius: 11px;
	}

	.sod-user-menu span {
		display: none;
	}

	.sod-user-menu {
		gap: 10px;
		font-size: 13px;
	}

	.sod-password-link-full {
		display: none;
	}

	.sod-password-link-short {
		display: inline;
	}

	.sod-portal-main {
		width: min(100% - 24px, 1320px);
		padding-top: 24px;
	}

	.sod-card-summary,
	.sod-card-details {
		padding: 16px;
	}

	.sod-order-id h2 {
		order: -1;
		width: 100%;
	}

	.sod-card-details dl {
		grid-template-columns: 78px 1fr;
	}

	.sod-proof-complete {
		align-items: flex-start;
		flex-direction: column;
	}

	.sod-proof-complete img {
		width: 100%;
	}

	.sod-modal-card {
		padding: 22px 16px 18px;
	}

	.sod-sign-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.sod-sign-actions .sod-button {
		width: 100%;
	}

	.sod-login-card {
		padding: 26px 20px;
	}
}

@media (max-width: 760px) {
	.sod-signature-picker {
		align-items: stretch;
		flex-direction: column;
	}

	.sod-signature-picker .sod-button {
		width: 100%;
		min-height: 50px;
	}

	.sod-signature-screen-bar {
		min-height: 60px;
	}

	.sod-signature-screen-heading small {
		display: none;
	}

	.sod-signature-screen-actions {
		gap: 7px;
	}

	.sod-signature-screen-actions .sod-button {
		min-height: 44px;
		padding: 9px 12px;
	}
}

@media (max-width: 430px) {
	.sod-signature-screen-heading strong {
		display: none;
	}

	.sod-signature-screen-bar {
		gap: 8px;
	}

	.sod-signature-screen-actions .sod-button {
		font-size: 13px;
	}
}


/* Darbuotojų portalo skyriai */
.sod-tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 30px;
	padding: 6px;
	overflow-x: auto;
	border: 1px solid var(--sod-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(28, 56, 35, .045);
	scrollbar-width: thin;
}

.sod-tabs button {
	flex: 0 0 auto;
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--sod-muted);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.sod-tabs button.is-active {
	background: var(--sod-green);
	color: #fff;
	box-shadow: 0 5px 14px rgba(47, 111, 62, .2);
}

.sod-tab-panel[hidden],
.sod-field[hidden] {
	display: none !important;
}

.sod-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.sod-section-head h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.1;
}

.sod-section-head p {
	margin: 8px 0 0;
	color: var(--sod-muted);
}

.sod-work-card {
	margin-bottom: 20px;
	padding: 20px;
	border: 1px solid var(--sod-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(28, 56, 35, .05);
}

.sod-work-form {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(120px, .35fr) auto;
	gap: 14px;
	align-items: end;
}

.sod-help-form {
	grid-template-columns: minmax(135px, .35fr) minmax(260px, 1fr) minmax(110px, .25fr) auto;
}

.sod-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
}

.sod-field > span {
	color: var(--sod-ink);
	font-size: 13px;
	font-weight: 800;
}

.sod-field input,
.sod-field select,
.sod-field textarea,
.sod-work-table input,
.sod-work-table select {
	width: 100%;
	min-height: 46px;
	padding: 9px 12px;
	border: 1px solid #cfd8d1;
	border-radius: 11px;
	background: #fff;
	color: var(--sod-ink);
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.sod-field textarea {
	min-height: 70px;
	resize: vertical;
}

.sod-field input:focus,
.sod-field select:focus,
.sod-field textarea:focus,
.sod-work-table input:focus,
.sod-work-table select:focus {
	border-color: var(--sod-green);
	box-shadow: 0 0 0 4px rgba(47, 111, 62, .12);
}

.sod-work-form > .sod-button {
	min-height: 46px;
	margin-bottom: 0;
}

.sod-work-message {
	margin-bottom: 0;
}

.sod-table-wrap {
	overflow: hidden;
	border: 1px solid var(--sod-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(28, 56, 35, .05);
}

.sod-work-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
}

.sod-work-table th,
.sod-work-table td {
	padding: 15px 16px;
	border: 0;
	border-bottom: 1px solid var(--sod-line);
	text-align: left;
	vertical-align: middle;
}

.sod-work-table th {
	background: #f7f9f7;
	color: var(--sod-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.sod-work-table tbody tr:last-child td {
	border-bottom: 0;
}

.sod-work-table tbody tr {
	transition: background .2s;
}

.sod-work-table tbody tr:hover {
	background: #fbfcfb;
}

.sod-work-table td > strong,
.sod-work-table td > small {
	display: block;
}

.sod-work-table td > strong {
	overflow-wrap: anywhere;
	font-size: 14px;
	line-height: 1.4;
}

.sod-work-table td > small {
	margin-top: 5px;
	color: var(--sod-muted);
	font-size: 11px;
	line-height: 1.35;
}

.sod-work-table .sod-inline-number {
	width: 92px;
}

.sod-work-table select {
	min-width: 120px;
}

.sod-work-table .sod-save-work {
	min-height: 40px;
	white-space: nowrap;
}

.sod-row-message {
	min-height: 16px;
	color: var(--sod-green);
	font-weight: 800;
}

.sod-row-message.is-error {
	color: #a22;
}

.sod-type-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--sod-green-soft);
	color: var(--sod-green-dark);
	font-size: 12px;
	font-weight: 800;
}

.sod-table-empty td {
	padding: 38px 20px;
	color: var(--sod-muted);
	text-align: center;
}

@media (max-width: 980px) {
	.sod-work-form,
	.sod-help-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-field-wide {
		grid-column: 1 / -1;
	}

	.sod-work-form > .sod-button {
		width: 100%;
	}
}

@media (max-width: 700px) {
	.sod-tabs {
		margin-bottom: 22px;
		padding: 5px;
		border-radius: 13px;
	}

	.sod-tabs button {
		min-height: 42px;
		padding: 9px 14px;
		font-size: 13px;
	}

	.sod-work-card {
		padding: 16px;
	}

	.sod-work-form,
	.sod-help-form {
		grid-template-columns: 1fr;
	}

	.sod-field-wide {
		grid-column: auto;
	}

	.sod-work-form > .sod-button {
		min-height: 48px;
	}

	.sod-table-wrap {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.sod-work-table,
	.sod-work-table tbody,
	.sod-work-table tr,
	.sod-work-table td {
		display: block;
		width: 100%;
	}

	.sod-work-table thead {
		display: none;
	}

	.sod-work-table tbody {
		display: grid;
		gap: 12px;
	}

	.sod-work-table tr {
		padding: 14px;
		border: 1px solid var(--sod-line);
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 6px 18px rgba(28, 56, 35, .045);
	}

	.sod-work-table td {
		display: grid;
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 12px;
		align-items: center;
		padding: 10px 0;
		border-bottom: 1px solid #edf0ed;
	}

	.sod-work-table td::before {
		content: attr(data-label);
		color: var(--sod-muted);
		font-size: 12px;
		font-weight: 800;
	}

	.sod-work-table td:first-child {
		padding-top: 0;
	}

	.sod-work-table td:last-child {
		display: flex;
		align-items: center;
		gap: 10px;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.sod-work-table td:last-child::before {
		display: none;
	}

	.sod-work-table input,
	.sod-work-table select,
	.sod-work-table .sod-inline-number {
		width: 100%;
	}

	.sod-work-table .sod-save-work {
		flex: 1;
		min-height: 44px;
	}

	.sod-table-empty td {
		display: block;
		padding: 26px 12px;
		border: 0;
		text-align: center;
	}

	.sod-table-empty td::before {
		display: none;
	}
}

@media (max-width: 430px) {
	.sod-tabs {
		margin-right: -4px;
		margin-left: -4px;
	}

	.sod-section-head h1 {
		font-size: 27px;
	}

	.sod-work-table td {
		grid-template-columns: 92px minmax(0, 1fr);
	}
}

body:has(.sod-portal) .wp-block-post-title,
body:has(.sod-login-shell) .wp-block-post-title {
	display: none !important;
}

body:has(.sod-portal) #wp--skip-link--target > .wp-block-group,
body:has(.sod-login-shell) #wp--skip-link--target > .wp-block-group {
	padding-top: 0 !important;
}

body:has(.sod-portal) .wp-block-post-content,
body:has(.sod-login-shell) .wp-block-post-content {
	margin-block-start: 0 !important;
}


/* Vilniaus katalogai */
.sod-vilnius-heading {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 430px);
	align-items: end;
}

.sod-vilnius-search input {
	width: 100%;
}

.sod-folder-create-form {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(170px, .35fr) auto;
	gap: 14px;
	align-items: end;
}

.sod-vilnius-filters {
	display: flex;
	gap: 8px;
	margin: 0 0 18px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.sod-vilnius-filters button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid var(--sod-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sod-muted);
	font-weight: 800;
	cursor: pointer;
}

.sod-vilnius-filters button span {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: #eef1ef;
	color: var(--sod-ink);
	font-size: 12px;
}

.sod-vilnius-filters button.is-active {
	border-color: var(--sod-green);
	background: var(--sod-green);
	color: #fff;
}

.sod-vilnius-filters button.is-active span {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.sod-vilnius-panel[hidden] {
	display: none !important;
}

.sod-folder {
	margin-bottom: 18px;
	overflow: visible;
	border: 1px solid var(--sod-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(28, 56, 35, .055);
}

.sod-folder[hidden] {
	display: none !important;
}

.sod-folder-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--sod-line);
	background: linear-gradient(135deg, #f8fbf8, #fff);
	border-radius: 18px 18px 0 0;
}

.sod-folder-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sod-folder-icon {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 40px;
	height: 36px;
	border-radius: 10px;
	background: var(--sod-green-soft);
	color: var(--sod-green-dark);
	font-size: 20px;
	transform: rotate(90deg);
}

.sod-folder-title h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.sod-folder-title small {
	display: block;
	margin-top: 4px;
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-folder-count {
	flex: 0 0 auto;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef1ef;
	color: var(--sod-muted);
	font-size: 12px;
	font-weight: 800;
}

.sod-folder-body {
	padding: 18px;
}

.sod-folder-edit-form {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(155px, .32fr) auto auto;
	gap: 10px;
	align-items: end;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--sod-line);
}

.sod-folder-edit-form > .sod-row-message {
	grid-column: 1 / -1;
	margin: 0;
}

.sod-folder-item-form {
	position: relative;
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(120px, .22fr) auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 18px;
	padding: 16px;
	border: 1px solid #dbe7dd;
	border-radius: 14px;
	background: #f8fbf8;
}

.sod-folder-item-form > .sod-work-message {
	grid-column: 1 / -1;
	margin: 0;
}

.sod-product-picker {
	position: relative;
}

.sod-product-results {
	position: absolute;
	z-index: 30;
	top: calc(100% + 7px);
	right: 0;
	left: 0;
	max-height: 370px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--sod-line);
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(18, 42, 24, .18);
}

.sod-product-results[hidden] {
	display: none !important;
}

.sod-product-result {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 9px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--sod-ink);
	text-align: left;
	cursor: pointer;
}

.sod-product-result:hover,
.sod-product-result:focus {
	background: var(--sod-green-soft);
	outline: none;
}

.sod-product-result img {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: 1px solid var(--sod-line);
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}

.sod-product-result > span,
.sod-product-cell > div {
	min-width: 0;
}

.sod-product-result strong,
.sod-product-result small {
	display: block;
}

.sod-product-result strong {
	overflow-wrap: anywhere;
	font-size: 13px;
	line-height: 1.3;
}

.sod-product-result small {
	margin-top: 3px;
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-product-result-empty {
	padding: 16px 12px;
	color: var(--sod-muted);
	font-size: 13px;
	text-align: center;
}

.sod-product-cell {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.sod-product-cell img {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border: 1px solid var(--sod-line);
	border-radius: 9px;
	background: #fff;
	object-fit: contain;
}

.sod-product-cell a {
	color: var(--sod-green-dark);
	text-decoration: none;
}

.sod-product-cell a:hover {
	text-decoration: underline;
}

.sod-row-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

.sod-button-danger-outline {
	border-color: #e5b8b8;
	background: #fff;
	color: #9c2d2d;
}

.sod-button-danger-outline:hover {
	border-color: #c94b4b;
	background: #fff2f2;
	color: #7e1717;
}

.sod-folder-table {
	table-layout: auto;
}

.sod-folder-table th:first-child,
.sod-folder-table td:first-child {
	width: 46%;
}

.sod-vilnius-no-results {
	margin-top: 16px;
}

@media (max-width: 1040px) {
	.sod-folder-edit-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-folder-edit-form .sod-field-wide {
		grid-column: 1 / -1;
	}

	.sod-folder-item-form {
		grid-template-columns: minmax(240px, 1fr) minmax(110px, .28fr);
	}

	.sod-folder-item-form > .sod-button {
		grid-column: 1 / -1;
		width: 100%;
	}
}

@media (max-width: 820px) {
	.sod-vilnius-heading {
		grid-template-columns: 1fr;
	}

	.sod-folder-create-form {
		grid-template-columns: 1fr 1fr;
	}

	.sod-folder-create-form .sod-field-wide {
		grid-column: 1 / -1;
	}

	.sod-folder-create-form > .sod-button {
		width: 100%;
	}
}

@media (max-width: 700px) {
	.sod-folder-create-form,
	.sod-folder-edit-form,
	.sod-folder-item-form {
		grid-template-columns: 1fr;
	}

	.sod-folder-create-form .sod-field-wide,
	.sod-folder-edit-form .sod-field-wide,
	.sod-folder-item-form > .sod-button,
	.sod-folder-edit-form > .sod-row-message {
		grid-column: auto;
	}

	.sod-folder-create-form > .sod-button,
	.sod-folder-edit-form > .sod-button,
	.sod-folder-item-form > .sod-button {
		width: 100%;
		min-height: 46px;
	}

	.sod-folder-header {
		align-items: flex-start;
		padding: 15px;
	}

	.sod-folder-body {
		padding: 14px;
	}

	.sod-folder-title h2 {
		font-size: 18px;
	}

	.sod-folder-count {
		font-size: 11px;
	}

	.sod-product-results {
		position: fixed;
		top: 12vh;
		right: 12px;
		left: 12px;
		max-height: 70vh;
	}

	.sod-row-actions {
		flex: 1;
	}

	.sod-row-actions .sod-button {
		flex: 1;
		padding-right: 10px;
		padding-left: 10px;
	}

	.sod-product-cell {
		align-items: flex-start;
	}

	.sod-product-cell img {
		width: 46px;
		height: 46px;
	}
}

@media (max-width: 430px) {
	.sod-folder-icon {
		display: none;
	}

	.sod-folder-count {
		white-space: nowrap;
	}
}


/* Kompaktiški Vilniaus katalogai ir išskleidžiamos prekės – 1.2.1 */
.sod-vilnius-panel:not([hidden]) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.sod-vilnius-panel.is-folder-open {
	grid-template-columns: minmax(0, 1fr);
}

.sod-vilnius-panel.is-folder-open .sod-folder:not(.is-open) {
	display: none !important;
}

.sod-vilnius-folder-open .sod-folder-create-card {
	display: none;
}

.sod-folder {
	margin: 0;
	overflow: hidden;
}

.sod-folder-open-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 82px;
	padding: 17px 18px;
	border: 0;
	background: linear-gradient(135deg, #f8fbf8, #fff);
	color: var(--sod-ink);
	text-align: left;
	cursor: pointer;
}

.sod-folder-open-button:hover,
.sod-folder-open-button:focus-visible {
	background: var(--sod-green-soft);
	outline: 2px solid transparent;
}

.sod-folder.is-open .sod-folder-open-button {
	display: none;
}

.sod-folder-title-copy {
	display: block;
	min-width: 0;
}

.sod-folder-title-copy strong,
.sod-folder-title-copy small {
	display: block;
}

.sod-folder-title-copy strong {
	overflow: hidden;
	font-size: 17px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-folder-title-copy small {
	margin-top: 5px;
	color: var(--sod-muted);
	font-size: 12px;
}

.sod-folder-card-side {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 9px;
}

.sod-folder-arrow {
	color: var(--sod-green-dark);
	font-size: 28px;
	line-height: 1;
}

.sod-folder-body[hidden] {
	display: none !important;
}

.sod-folder-detail-top {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: -2px 0 17px;
}

.sod-folder-detail-top h2 {
	margin: 0;
	font-size: 23px;
	line-height: 1.25;
}

.sod-back-folders {
	flex: 0 0 auto;
	padding: 9px 12px;
	border: 1px solid var(--sod-line);
	border-radius: 10px;
	background: #fff;
	color: var(--sod-green-dark);
	font-weight: 800;
	cursor: pointer;
}

.sod-back-folders:hover {
	background: var(--sod-green-soft);
}

.sod-product-list {
	display: grid;
	gap: 8px;
}

.sod-product-list > .sod-table-empty {
	padding: 20px;
	border: 1px dashed var(--sod-line);
	border-radius: 12px;
	color: var(--sod-muted);
	text-align: center;
}

.sod-vilnius-item {
	overflow: hidden;
	border: 1px solid var(--sod-line);
	border-radius: 12px;
	background: #fff;
}

.sod-vilnius-item[hidden] {
	display: none !important;
}

.sod-vilnius-item-summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 13px;
	width: 100%;
	min-height: 52px;
	padding: 11px 14px;
	border: 0;
	background: #fff;
	color: var(--sod-ink);
	text-align: left;
	cursor: pointer;
}

.sod-vilnius-item-summary:hover,
.sod-vilnius-item-summary:focus-visible {
	background: #f8fbf8;
	outline: none;
}

.sod-vilnius-item-name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-vilnius-item-needed {
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--sod-green-soft);
	color: var(--sod-green-dark);
	font-size: 12px;
	white-space: nowrap;
}

.sod-work-arrow {
	color: var(--sod-muted);
	font-size: 19px;
	line-height: 1;
	transition: transform .16s ease;
}

.sod-vilnius-item.is-expanded .sod-work-arrow {
	transform: rotate(180deg);
}

.sod-vilnius-item-details {
	padding: 14px;
	border-top: 1px solid var(--sod-line);
	background: #fbfcfb;
}

.sod-vilnius-item-details[hidden] {
	display: none !important;
}

.sod-vilnius-product-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--sod-muted);
	font-size: 12px;
}

.sod-vilnius-product-meta a {
	color: var(--sod-green-dark);
	font-weight: 800;
	text-decoration: none;
}

.sod-vilnius-edit-grid {
	display: grid;
	grid-template-columns: minmax(110px, .32fr) minmax(110px, .32fr) minmax(150px, .45fr) auto;
	align-items: end;
	gap: 11px;
}

.sod-vilnius-edit-grid .sod-inline-number,
.sod-vilnius-edit-grid select {
	width: 100%;
	min-height: 42px;
}

.sod-vilnius-item-details > .sod-row-message {
	display: block;
	margin-top: 8px;
}

@media (max-width: 820px) {
	.sod-vilnius-edit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-vilnius-edit-grid .sod-row-actions {
		align-self: end;
	}
}

@media (max-width: 700px) {
	.sod-vilnius-panel:not([hidden]) {
		grid-template-columns: minmax(0, 1fr);
		gap: 11px;
	}

	.sod-folder-open-button {
		min-height: 72px;
		padding: 14px;
	}

	.sod-folder-detail-top {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.sod-folder-detail-top h2 {
		font-size: 20px;
	}

	.sod-vilnius-edit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-vilnius-edit-grid .sod-row-actions {
		grid-column: 1 / -1;
	}

	.sod-vilnius-item-summary {
		gap: 8px;
		padding: 10px 11px;
	}

	.sod-vilnius-item-name {
		font-size: 13px;
	}

	.sod-vilnius-item-needed {
		padding: 4px 7px;
		font-size: 11px;
	}

	.sod-vilnius-product-meta {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 430px) {
	.sod-folder-title-copy strong {
		font-size: 15px;
	}

	.sod-folder-open-button .sod-folder-icon {
		display: inline-grid;
		width: 34px;
		height: 31px;
		font-size: 17px;
	}

	.sod-folder-count {
		padding: 5px 7px;
	}
}


/* Greitas prekės gavimo veiksmas – 1.2.2 */
.sod-vilnius-item-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
}

.sod-vilnius-item-head .sod-vilnius-item-summary {
	min-width: 0;
}

.sod-receive-all {
	align-self: center;
	min-height: 36px;
	margin: 7px 10px 7px 0;
	padding: 7px 12px;
	border: 1px solid var(--sod-green);
	border-radius: 9px;
	background: var(--sod-green);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
	cursor: pointer;
}

.sod-receive-all:hover {
	background: var(--sod-green-dark);
}

.sod-receive-all:disabled {
	opacity: .65;
	cursor: wait;
}

@media (max-width: 520px) {
	.sod-receive-all {
		min-height: 34px;
		margin-right: 7px;
		padding: 6px 8px;
		font-size: 11px;
	}

	.sod-vilnius-item-summary {
		gap: 6px;
	}
}


/* Nuvežimų modulis – 1.3.0 */
.sod-tab-count {
	display: inline-grid;
	place-items: center;
	min-width: 23px;
	height: 23px;
	margin-left: 5px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(255,255,255,.22);
	font-size: 11px;
	font-weight: 900;
}

.sod-tabs button:not(.is-active) .sod-tab-count {
	background: var(--sod-green-soft);
	color: var(--sod-green-dark);
}

.sod-route-heading {
	display: grid;
	grid-template-columns: 1fr minmax(280px,430px);
	align-items: end;
}

.sod-route-heading .sod-search input {
	width: 100%;
}

.sod-route-add-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.sod-route-add-card {
	margin: 0;
}

.sod-route-add-card h2 {
	margin: 0 0 5px;
	font-size: 18px;
}

.sod-route-add-card > p,
.sod-route-card-heading p {
	margin: 0 0 14px;
	color: var(--sod-muted);
	font-size: 13px;
}

.sod-route-card-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.sod-route-card-heading > div {
	min-width: 0;
}

.sod-manual-route-form {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--sod-line);
}

.sod-manual-route-form[hidden] {
	display: none !important;
}

.sod-route-form-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.sod-route-form-grid .sod-field-wide {
	grid-column: 1 / -1;
}

.sod-route-order-results {
	max-height: 360px;
	margin-top: 9px;
	overflow-y: auto;
	border: 1px solid var(--sod-line);
	border-radius: 12px;
	background: #fff;
}

.sod-route-order-results[hidden] {
	display: none !important;
}

.sod-route-order-result {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-bottom: 1px solid var(--sod-line);
}

.sod-route-order-result:last-child {
	border-bottom: 0;
}

.sod-route-order-result strong,
.sod-route-order-result span,
.sod-route-order-result small {
	display: block;
}

.sod-route-order-result span {
	margin-top: 3px;
	font-size: 13px;
	font-weight: 700;
}

.sod-route-order-result small {
	margin-top: 3px;
	overflow: hidden;
	color: var(--sod-muted);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-route-order-empty {
	padding: 16px;
	color: var(--sod-muted);
	text-align: center;
}

.sod-route-filters,
.sod-help-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.sod-route-filters button,
.sod-help-filters button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid var(--sod-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sod-muted);
	font-weight: 800;
	cursor: pointer;
}

.sod-route-filters button span,
.sod-help-filters button span {
	display: inline-grid;
	place-items: center;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border-radius: 999px;
	background: #eef1ef;
	color: var(--sod-ink);
	font-size: 11px;
}

.sod-route-filters button.is-active,
.sod-help-filters button.is-active {
	border-color: var(--sod-green);
	background: var(--sod-green);
	color: #fff;
}

.sod-route-filters button.is-active span,
.sod-help-filters button.is-active span {
	background: rgba(255,255,255,.22);
	color: #fff;
}

.sod-help-filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 420px;
	margin-top: 18px;
}

.sod-help-filters button {
	justify-content: center;
}

.sod-work-table tr[hidden] {
	display: none !important;
}

.sod-route-list {
	display: grid;
	gap: 11px;
}

.sod-route-card {
	overflow: hidden;
	border: 1px solid var(--sod-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 7px 22px rgba(28,56,35,.045);
}

.sod-route-card[hidden] {
	display: none !important;
}

.sod-route-card.is-dragging {
	opacity: .55;
}

.sod-route-summary {
	display: grid;
	grid-template-columns: minmax(155px,.45fr) minmax(260px,1.35fr) minmax(155px,.55fr) auto;
	align-items: center;
	gap: 15px;
	padding: 14px 16px;
}

.sod-route-order {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.sod-route-order > strong {
	overflow: hidden;
	font-size: 17px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-route-customer {
	min-width: 0;
}

.sod-route-customer strong,
.sod-route-customer small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-route-customer small {
	margin-top: 3px;
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-route-summary-meta {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 3px;
}

.sod-route-summary-meta small {
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-route-status {
	display: inline-flex;
	padding: 5px 9px;
	border-radius: 999px;
	background: #edf1ee;
	color: var(--sod-muted);
	font-size: 11px;
	font-weight: 900;
}

.sod-route-status.is-en_route {
	background: #e8f2ff;
	color: #1f5c9a;
}

.sod-route-status.is-delivered {
	background: var(--sod-green-soft);
	color: var(--sod-green-dark);
}

.sod-route-status.is-failed {
	background: #fff0f0;
	color: #9c2d2d;
}

.sod-route-summary-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sod-route-order-button,
.sod-route-toggle {
	min-height: 36px;
	padding: 7px 10px;
	border: 1px solid var(--sod-line);
	border-radius: 9px;
	background: #fff;
	color: var(--sod-green-dark);
	font-weight: 900;
	cursor: pointer;
}

.sod-route-toggle {
	min-width: 78px;
}

.sod-route-details {
	padding: 16px;
	border-top: 1px solid var(--sod-line);
	background: #fbfcfb;
}

.sod-route-details[hidden] {
	display: none !important;
}

.sod-route-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.sod-route-quick-actions .sod-button {
	text-decoration: none;
}

.sod-route-proof {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 16px;
	padding: 12px;
	border: 1px solid #bcd9c2;
	border-radius: 12px;
	background: var(--sod-green-soft);
}

.sod-route-proof strong,
.sod-route-proof small {
	display: block;
}

.sod-route-proof small {
	margin-top: 3px;
	color: var(--sod-muted);
}

.sod-route-proof img {
	width: 130px;
	height: 54px;
	border-radius: 7px;
	background: #fff;
	object-fit: contain;
}

.sod-route-edit-form {
	margin-bottom: 17px;
	padding: 16px;
	border: 1px solid var(--sod-line);
	border-radius: 13px;
	background: #fff;
}

.sod-route-edit-form > .sod-form-message {
	margin-bottom: 0;
}

.sod-route-communication {
	display: grid;
	grid-template-columns: minmax(260px,.7fr) minmax(300px,1.3fr);
	gap: 16px;
}

.sod-route-note-form,
.sod-route-history {
	padding: 15px;
	border: 1px solid var(--sod-line);
	border-radius: 13px;
	background: #fff;
}

.sod-route-note-form .sod-button {
	margin-top: 10px;
}

.sod-route-history h3 {
	margin: 0 0 10px;
	font-size: 15px;
}

.sod-route-event {
	padding: 9px 0;
	border-top: 1px solid var(--sod-line);
}

.sod-route-event:first-of-type {
	border-top: 0;
}

.sod-route-event strong,
.sod-route-event small {
	display: block;
}

.sod-route-event p {
	margin: 4px 0;
	font-size: 13px;
}

.sod-route-event small {
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-card-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.sod-add-route-card:disabled {
	opacity: .65;
}


.sod-inventory-code-input {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.sod-inventory-code-input .sod-button {
	min-height: 45px;
	padding-inline: 12px;
	white-space: nowrap;
}

.sod-inventory-code-scan-modal .sod-modal-card {
	width: min(560px, calc(100vw - 28px));
}

.sod-inventory-code-scan-modal .sod-modal-card > p {
	color: var(--sod-muted);
}

.sod-inventory-replace-camera-wrap {
	position: relative;
	overflow: hidden;
	margin: 14px 0 10px;
	border-radius: 14px;
	background: #101a13;
}

.sod-inventory-replace-camera-wrap video {
	display: block;
	width: 100%;
	height: min(56vh, 360px);
	object-fit: cover;
}

@media (max-width: 1050px) {
	.sod-route-summary {
		grid-template-columns: minmax(140px,.5fr) minmax(220px,1fr) minmax(140px,.5fr);
	}

	.sod-route-summary-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}

	.sod-route-form-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}

@media (max-width: 820px) {
	.sod-route-heading,
	.sod-route-add-grid,
	.sod-route-communication {
		grid-template-columns: minmax(0,1fr);
	}

	.sod-route-summary {
		grid-template-columns: minmax(120px,.45fr) minmax(0,1fr);
	}

	.sod-route-summary-meta {
		align-items: flex-start;
	}

	.sod-route-summary-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.sod-route-card-heading {
		flex-direction: column;
	}

	.sod-route-form-grid,
	.sod-route-summary {
		grid-template-columns: minmax(0,1fr);
	}

	.sod-route-summary {
		gap: 9px;
	}

	.sod-route-summary-meta {
		display: grid;
		grid-template-columns: auto auto;
		align-items: center;
		justify-content: start;
		gap: 5px 9px;
	}

	.sod-route-summary-actions {
		justify-content: stretch;
	}

	.sod-route-toggle {
		flex: 1;
	}

	.sod-route-order-result {
		grid-template-columns: minmax(0,1fr);
	}

	.sod-route-order-result .sod-button,
	.sod-route-quick-actions .sod-button,
	.sod-route-card-heading .sod-button {
		width: 100%;
		text-align: center;
	}

	.sod-route-proof {
		align-items: flex-start;
		flex-direction: column;
	}

	.sod-route-proof img {
		width: 100%;
	}
}


.sod-route-recipient-details {
	margin: 16px 0;
	border: 1px solid #dbe4dc;
	border-radius: 12px;
	background: #fbfdfb;
	overflow: hidden;
}

.sod-route-recipient-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-weight: 700;
	color: #214b2c;
	cursor: pointer;
	list-style: none;
}

.sod-route-recipient-details > summary::-webkit-details-marker {
	display: none;
}

.sod-route-recipient-details > summary::after {
	content: "+";
	font-size: 22px;
	line-height: 1;
}

.sod-route-recipient-details[open] > summary::after {
	content: "−";
}

.sod-route-recipient-details .sod-route-edit-form {
	margin: 0;
	padding: 16px;
	border-top: 1px solid #e3ebe4;
	background: #fff;
}

.sod-route-delete {
	margin-left: auto;
}

@media (max-width: 700px) {
	.sod-route-delete {
		margin-left: 0;
	}
}


.sod-route-time-note {
	color: #8a5700;
	font-weight: 700;
}

.sod-route-time-highlight {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #f1d49a;
	border-radius: 10px;
	background: #fff8e8;
	color: #674000;
}

.sod-route-address-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 14px;
	padding: 14px 16px;
	border: 1px solid #bcd9c2;
	border-radius: 12px;
	background: #f3f9f4;
	color: var(--sod-ink);
}

.sod-route-address-card span {
	color: var(--sod-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.sod-route-address-card strong {
	font-size: 1rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.sod-route-mini-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.sod-route-mini-badge.is-loaded {
	background: #dff3e3;
	color: #19652d;
}

.sod-route-mini-badge.is-called {
	background: #e7efff;
	color: #244f9a;
}

.sod-route-quick-actions .sod-button.is-complete {
	border-color: #67a978;
	background: #e8f6eb;
	color: #175b2a;
}

.sod-route-flag-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: -4px 0 14px;
	color: #5d6b60;
}

.sod-route-tools-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
	gap: 14px;
	margin: 14px 0;
}

.sod-route-checklist-details,
.sod-route-photo-box {
	border: 1px solid #dbe4dc;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.sod-route-checklist-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-weight: 700;
	color: #214b2c;
	cursor: pointer;
	list-style: none;
}

.sod-route-checklist-details > summary::-webkit-details-marker {
	display: none;
}

.sod-route-checklist-details > summary::after {
	content: "+";
	margin-left: 4px;
	font-size: 21px;
	line-height: 1;
}

.sod-route-checklist-details[open] > summary::after {
	content: "−";
}

.sod-route-checklist-details [data-checklist-count] {
	margin-left: auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eef4ef;
	font-size: 12px;
}

.sod-route-checklist {
	display: grid;
	gap: 8px;
	padding: 4px 16px 16px;
	border-top: 1px solid #edf1ed;
}

.sod-route-checklist label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #edf1ed;
	cursor: pointer;
}

.sod-route-checklist input {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	flex: 0 0 auto;
	accent-color: #2f7d3f;
}

.sod-route-checklist input:checked + span {
	color: #718075;
	text-decoration: line-through;
}

.sod-route-photo-box {
	padding: 14px;
}

.sod-route-photo-box h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.sod-route-photo-box img {
	display: block;
	width: 100%;
	max-height: 240px;
	margin-bottom: 8px;
	border-radius: 9px;
	object-fit: cover;
}

.sod-route-photo-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
}

.sod-photo-picker {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 9px 13px;
	border: 1px dashed #7b9781;
	border-radius: 9px;
	background: #f7faf7;
	color: #214b2c;
	font-weight: 700;
	cursor: pointer;
}

.sod-photo-picker input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.sod-route-duplicate-warning,
.sod-route-duplicate-inline {
	display: block;
	margin: 10px 0;
	padding: 10px 12px;
	border: 1px solid #e4a84b;
	border-radius: 9px;
	background: #fff7e5;
	color: #724600;
	font-weight: 700;
}

.sod-route-duplicate-inline {
	margin: 6px 0 0;
	padding: 6px 8px;
	font-size: 12px;
}

@media (max-width: 760px) {
	.sod-route-tools-grid {
		grid-template-columns: 1fr;
	}

	.sod-route-photo-form .sod-button,
	.sod-photo-picker {
		width: 100%;
		justify-content: center;
	}
}

/* Specialūs užsakymai */
.sod-special-heading {
	align-items: end;
}

.sod-special-add-card {
	padding: 0;
	overflow: hidden;
}

.sod-special-add-card > details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	cursor: pointer;
	list-style: none;
}

.sod-special-add-card > details > summary::-webkit-details-marker,
.sod-special-card > summary::-webkit-details-marker {
	display: none;
}

.sod-special-add-card > details > summary span {
	color: var(--sod-muted, #68736a);
	font-size: .875rem;
	font-weight: 500;
}

.sod-special-form {
	padding: 20px;
	border-top: 1px solid var(--sod-border, #dfe6df);
}

.sod-special-form-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.sod-special-form-grid .sod-field-wide {
	grid-column: span 2;
}

.sod-special-form-grid .sod-field-full {
	grid-column: 1 / -1;
}

.sod-special-form textarea {
	resize: vertical;
	min-height: 78px;
}

.sod-special-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 18px 0;
}

.sod-special-filters button {
	border: 1px solid var(--sod-border, #dfe6df);
	background: #fff;
	color: #2f3931;
	border-radius: 999px;
	padding: 9px 13px;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
}

.sod-special-filters button.is-active {
	background: #173d27;
	border-color: #173d27;
	color: #fff;
}

.sod-special-filters button span {
	margin-left: 4px;
	opacity: .8;
}

.sod-special-list {
	display: grid;
	gap: 9px;
}

.sod-special-card {
	background: #fff;
	border: 1px solid var(--sod-border, #dfe6df);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(22, 45, 29, .04);
}

.sod-special-card[open] {
	border-color: #a7bfae;
	box-shadow: 0 8px 24px rgba(22, 45, 29, .09);
}

.sod-special-row {
	display: grid;
	grid-template-columns: 110px minmax(145px, 1.05fr) minmax(175px, 1.4fr) minmax(155px, 1.2fr) 165px 105px 20px;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 10px 16px;
	cursor: pointer;
	list-style: none;
}

.sod-special-row::after {
	content: '⌄';
	font-size: 1.1rem;
	color: #6b756d;
}

.sod-special-card[open] .sod-special-row::after {
	content: '⌃';
}

.sod-special-row > span,
.sod-special-row > strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-special-number {
	color: #173d27;
	font-size: .9rem;
}

.sod-special-item,
.sod-special-address {
	color: #667168;
	font-size: .875rem;
}

.sod-special-total-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	min-width: 0;
	overflow: visible !important;
	text-overflow: clip !important;
}

.sod-special-total {
	min-width: 100px;
	text-align: right;
	white-space: nowrap;
}

.sod-special-cod {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 6px 8px;
	border-radius: 999px;
	background: #b42318;
	color: #fff;
	font-size: .76rem;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 0 0 2px rgba(180, 35, 24, .12);
}

.sod-special-status {
	border-radius: 999px;
	padding: 6px 9px;
	text-align: center;
	font-size: .78rem;
	font-weight: 800;
}

.sod-special-status-not_ordered { background: #f1f3f1; color: #4e5850; }
.sod-special-status-in_cart { background: #e8e0ff; color: #56328a; }
.sod-special-status-ordered { background: #fff2c7; color: #705400; }
.sod-special-status-processing { background: #dcecff; color: #164b7a; }
.sod-special-status-shipped { background: #dcefe1; color: #176332; }
.sod-special-status-cancelled { background: #fde1e1; color: #842828; }

.sod-special-meta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 14px;
	color: #5f6961;
	font-size: .875rem;
}

.sod-special-meta .is-error {
	color: #a52323;
}

.sod-special-form-actions {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.sod-special-form-actions .sod-form-message {
	margin: 0 0 0 auto;
}

.sod-special-send {
	background: #174b2c;
	border-color: #174b2c;
	color: #fff;
}

@media (max-width: 1050px) {
	.sod-special-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-special-row {
		grid-template-columns: 90px minmax(120px, 1fr) minmax(145px, 1.2fr) minmax(135px, 1.1fr) 155px 95px 18px;
	}
}

@media (max-width: 700px) {
	.sod-special-add-card > details > summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.sod-special-form {
		padding: 16px;
	}

	.sod-special-form-grid {
		grid-template-columns: 1fr;
	}

	.sod-special-form-grid .sod-field-wide,
	.sod-special-form-grid .sod-field-full {
		grid-column: auto;
	}

	.sod-special-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-special-filters button {
		text-align: center;
	}

	.sod-special-row {
		grid-template-columns: 88px minmax(0, 1fr) auto;
		grid-template-areas:
			'number customer total'
			'status item item'
			'address address address';
		gap: 6px 9px;
		padding: 12px;
	}

	.sod-special-number { grid-area: number; }
	.sod-special-customer { grid-area: customer; }
	.sod-special-item { grid-area: item; }
	.sod-special-total-wrap {
		grid-area: total;
		align-items: flex-end;
		flex-direction: column;
		gap: 4px;
	}
	.sod-special-total { min-width: 0; }
	.sod-special-status { grid-area: status; }
	.sod-special-address { grid-area: address; }

	.sod-special-row::after {
		display: none;
	}

	.sod-special-form-actions .sod-button {
		flex: 1 1 calc(50% - 6px);
		justify-content: center;
	}

	.sod-special-form-actions .sod-form-message {
		flex-basis: 100%;
		margin-left: 0;
	}
}

.sod-special-edit-fields {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.sod-special-edit-fields:disabled input,
.sod-special-edit-fields:disabled select,
.sod-special-edit-fields:disabled textarea {
	background: #f5f7f5;
	border-color: #e3e8e3;
	color: #4f5951;
	cursor: default;
	opacity: 1;
}

.sod-special-edit-form.is-editing .sod-special-edit-fields {
	background: #fbfdfb;
	border-radius: 10px;
}

.sod-special-form-actions [hidden] {
	display: none !important;
}



.sod-special-items-field > span {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
}

.sod-special-items {
	display: grid;
	gap: 10px;
}

.sod-special-item-row {
	display: grid;
	grid-template-columns: minmax(220px, 2fr) 100px 190px auto;
	align-items: end;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--sod-border, #dfe6df);
	border-radius: 10px;
	background: #f8faf8;
}

.sod-special-item-row label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.sod-special-item-row label span {
	font-size: .8rem;
	font-weight: 700;
	color: #5c675e;
}

.sod-special-item-add {
	margin-top: 10px;
}

.sod-special-item-remove {
	white-space: nowrap;
}

.sod-special-edit-fields:disabled .sod-special-item-add,
.sod-special-edit-fields:disabled .sod-special-item-remove {
	display: none;
}

@media (max-width: 850px) {
	.sod-special-item-row {
		grid-template-columns: minmax(0, 1fr) 90px 160px;
	}

	.sod-special-item-remove {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 560px) {
	.sod-special-item-row {
		grid-template-columns: 1fr 1fr;
	}

	.sod-special-item-row label:first-child {
		grid-column: 1 / -1;
	}

	.sod-special-item-remove {
		grid-column: 1 / -1;
		width: 100%;
		justify-content: center;
	}
}


/* Privatus sandėlio valdymas */
.sod-inventory-heading {
	align-items: end;
}

.sod-inventory-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
	gap: 16px;
	margin-bottom: 18px;
}

.sod-inventory-add-card,
.sod-inventory-import-card,
.sod-inventory-warehouse-manager,
.sod-inventory-scanner,
.sod-inventory-history {
	margin: 0;
}

.sod-inventory-add-card > summary,
.sod-inventory-scanner > summary,
.sod-inventory-bulk-card > summary,
.sod-inventory-import-card > summary,
.sod-inventory-warehouse-manager > summary,
.sod-inventory-history > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 14px;
	cursor: pointer;
	list-style: none;
}

.sod-inventory-add-card > summary span,
.sod-inventory-import-card > summary span,
.sod-inventory-warehouse-manager > summary span,
.sod-inventory-history > summary span {
	color: var(--sod-muted);
	font-size: 12px;
	text-align: right;
}


.sod-inventory-scanner-body {
	padding: 0 14px 14px;
}

.sod-inventory-scanner-start {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 10px;
}

.sod-inventory-bulk-card {
	margin: 0 0 12px;
}

.sod-inventory-bulk-card .sod-inventory-bulk {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--sod-line);
	border-radius: 0 0 14px 14px;
}

.sod-inventory-bottom-tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.sod-inventory-bottom-tools .sod-inventory-import-card,
.sod-inventory-bottom-tools .sod-inventory-warehouse-manager {
	margin: 0;
}

.sod-inventory-mobile-warehouse {
	display: none;
}

.sod-inventory-form {
	padding: 0 18px 18px;
}

.sod-inventory-form-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px;
	margin-bottom: 14px;
}

.sod-inventory-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.sod-inventory-card-head h2 {
	margin: 0 0 4px;
	font-size: 1.12rem;
}

.sod-inventory-card-head p {
	margin: 0;
	color: var(--sod-muted);
	font-size: 13px;
}

.sod-inventory-scan-settings {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr);
	gap: 12px;
	margin-bottom: 12px;
}

.sod-inventory-camera-wrap {
	position: relative;
	overflow: hidden;
	margin-bottom: 12px;
	border-radius: 14px;
	background: #101a13;
}

.sod-inventory-camera-wrap[hidden] {
	display: none !important;
}

.sod-inventory-camera-wrap video {
	display: block;
	width: 100%;
	max-height: 330px;
	object-fit: cover;
}

.sod-inventory-scan-line {
	position: absolute;
	top: 50%;
	left: 10%;
	right: 10%;
	height: 2px;
	background: #5ee37c;
	box-shadow: 0 0 12px rgba(94,227,124,.9);
}

.sod-inventory-camera-actions {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.sod-inventory-camera-actions .sod-button {
	position: static;
	min-height: 50px;
}

.sod-inventory-scan-trigger,
.sod-inventory-replace-trigger {
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	touch-action: manipulation;
}

.sod-inventory-scan-trigger.is-armed,
.sod-inventory-replace-trigger.is-armed {
	background: #b42318;
	box-shadow: 0 0 0 4px rgba(180,35,24,.2);
}

.sod-inventory-replace-trigger {
	width: 100%;
	min-height: 52px;
	margin-top: 10px;
	justify-content: center;
}

.sod-inventory-manual-scan {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
}

.sod-inventory-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.sod-inventory-warehouse-manager {
	margin-bottom: 18px;
}

.sod-inventory-warehouse-manager-body {
	padding: 0 18px 18px;
}

.sod-inventory-warehouse-add-form {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) auto;
	align-items: end;
	gap: 10px;
	margin-bottom: 12px;
}

.sod-inventory-warehouse-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.sod-inventory-warehouse-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 10px 9px 13px;
	border: 1px solid var(--sod-line);
	border-radius: 12px;
	background: #fbfcfb;
}

.sod-inventory-warehouse-row > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sod-inventory-warehouse-row strong,
.sod-inventory-warehouse-row small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-inventory-warehouse-row small {
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-inventory-warehouse-tabs {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	margin-bottom: 14px;
	padding: 2px 0 5px;
	scrollbar-width: thin;
}

.sod-inventory-warehouse-tabs button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	min-height: 46px;
	padding: 10px 16px;
	border: 1px solid var(--sod-line);
	border-radius: 13px;
	background: #fff;
	color: var(--sod-ink);
	font-weight: 900;
	cursor: pointer;
}

.sod-inventory-warehouse-tabs button span {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: #edf2ee;
	font-size: 11px;
}

.sod-inventory-warehouse-tabs button.is-active {
	border-color: var(--sod-green);
	background: var(--sod-green);
	color: #fff;
	box-shadow: 0 5px 14px rgba(30,93,48,.18);
}

.sod-inventory-warehouse-tabs button.is-active span {
	background: rgba(255,255,255,.22);
	color: #fff;
}

.sod-inventory-bulk {
	display: grid;
	grid-template-columns: auto minmax(230px, 1fr) minmax(190px, .75fr) auto auto;
	align-items: end;
	gap: 10px;
	margin-bottom: 14px;
	padding: 13px;
	border: 1px solid #d9e5dc;
	border-radius: 14px;
	background: #f7faf7;
}

.sod-inventory-bulk [hidden] {
	display: none !important;
}

.sod-inventory-selection-actions {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 45px;
}

.sod-inventory-selection-actions .sod-button {
	min-height: 40px;
	padding: 8px 11px;
	font-size: 12px;
	white-space: nowrap;
}

.sod-inventory-selected-count {
	align-self: center;
	color: var(--sod-muted);
	font-size: 12px;
	white-space: nowrap;
}

.sod-inventory-bulk .sod-form-message {
	grid-column: 1 / -1;
	margin: 0;
}

.sod-inventory-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.sod-inventory-filters button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid var(--sod-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sod-muted);
	font-weight: 800;
	cursor: pointer;
}

.sod-inventory-filters button span {
	display: inline-grid;
	place-items: center;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border-radius: 999px;
	background: #eef1ef;
	color: var(--sod-ink);
	font-size: 11px;
}

.sod-inventory-filters button.is-active {
	border-color: var(--sod-green);
	background: var(--sod-green);
	color: #fff;
}

.sod-inventory-filters button.is-active span {
	background: rgba(255,255,255,.22);
	color: #fff;
}

.sod-inventory-print-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.sod-inventory-list {
	display: grid;
	gap: 10px;
}

.sod-inventory-item {
	overflow: hidden;
	border: 1px solid var(--sod-line);
	border-left: 5px solid #77a181;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(28,56,35,.045);
}

.sod-inventory-item[hidden] {
	display: none !important;
}

.sod-inventory-item.is-low {
	border-left-color: #e3a321;
}

.sod-inventory-item.is-out {
	border-left-color: #c53a32;
	background: #fffafa;
}

.sod-inventory-summary {
	display: grid;
	grid-template-columns: 30px minmax(230px, 1.6fr) minmax(120px, .65fr) 82px 170px 92px;
	align-items: center;
	gap: 12px;
	min-height: 68px;
	padding: 10px 14px;
}

.sod-inventory-select {
	display: grid;
	place-items: center;
}

.sod-inventory-select input {
	width: 19px;
	height: 19px;
	accent-color: var(--sod-green);
}

.sod-inventory-name {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 3px;
}

.sod-inventory-name strong,
.sod-inventory-name small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-inventory-name small {
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-inventory-warehouse {
	overflow: hidden;
	padding: 5px 9px;
	border-radius: 999px;
	background: #edf4ee;
	color: #245531;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sod-inventory-stock {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
}

.sod-inventory-stock strong {
	font-size: 1.45rem;
	line-height: 1;
}

.sod-inventory-stock small {
	color: var(--sod-muted);
}

.sod-inventory-item.is-low .sod-inventory-stock strong {
	color: #a96800;
}

.sod-inventory-item.is-out .sod-inventory-stock strong {
	color: #b42318;
}

.sod-inventory-quick {
	display: grid;
	grid-template-columns: 62px 42px 42px;
	gap: 6px;
}

.sod-inventory-quick input {
	width: 100%;
	min-height: 40px;
	padding: 7px;
	text-align: center;
}

.sod-inventory-minus,
.sod-inventory-plus,
.sod-inventory-toggle {
	min-height: 40px;
	border: 1px solid var(--sod-line);
	border-radius: 10px;
	background: #fff;
	font-weight: 900;
	cursor: pointer;
}

.sod-inventory-minus {
	color: #b42318;
}

.sod-inventory-plus {
	border-color: #8fbd99;
	background: #edf7ef;
	color: #17632a;
}

.sod-inventory-details {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 20px;
	padding: 18px;
	border-top: 1px solid var(--sod-line);
	background: #fbfdfb;
}

.sod-inventory-details[hidden] {
	display: none !important;
}

.sod-inventory-code-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: start;
	min-height: 170px;
	padding: 14px;
	border: 1px solid var(--sod-line);
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

.sod-inventory-code-preview img {
	display: block;
	width: 100%;
	max-width: 210px;
	height: 115px;
	object-fit: contain;
}

.sod-inventory-code-preview[data-code-type="qr"] img {
	max-width: 135px;
	height: 135px;
}

.sod-inventory-code-preview small {
	margin-top: 7px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
}

.sod-inventory-import-card {
	margin-bottom: 18px;
}

.sod-inventory-name small em {
	color: #b42318;
	font-style: normal;
	font-weight: 800;
}

.sod-inventory-no-code {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 84px;
	border: 1px dashed #d6aaa6;
	border-radius: 10px;
	background: #fff6f5;
	color: #b42318;
	font-size: 13px;
	font-weight: 800;
}

.sod-inventory-import-form {
	padding: 0 18px 18px;
}

.sod-inventory-import-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13px;
	margin-bottom: 12px;
}

.sod-inventory-import-grid .sod-field-wide {
	grid-column: span 2;
}

.sod-inventory-import-grid input[type="file"] {
	padding: 9px;
	background: #fff;
}

.sod-inventory-import-note {
	margin: 0 0 13px;
	color: var(--sod-muted);
	font-size: 12px;
	line-height: 1.45;
}

.sod-inventory-history {
	margin-top: 18px;
}

.sod-inventory-history-list {
	display: grid;
	gap: 0;
	padding: 0 18px 18px;
}

.sod-inventory-event {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 60px minmax(240px, auto);
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid var(--sod-line);
}

.sod-inventory-event > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sod-inventory-event small {
	color: var(--sod-muted);
	font-size: 11px;
}

.sod-inventory-event > span {
	font-size: 1.05rem;
	font-weight: 900;
	text-align: center;
}

.sod-inventory-event > span.is-plus {
	color: #17632a;
}

.sod-inventory-event > span.is-minus {
	color: #b42318;
}

@media (max-width: 1050px) {
	.sod-inventory-top {
		grid-template-columns: 1fr;
	}

	.sod-inventory-summary {
		grid-template-columns: 30px minmax(190px, 1fr) 110px 72px 164px 86px;
		gap: 9px;
	}

	.sod-inventory-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-inventory-bulk {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sod-inventory-bulk .sod-form-message {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.sod-inventory-heading {
		align-items: stretch;
		margin-bottom: 10px;
	}

	.sod-inventory-heading h1 {
		font-size: 28px;
	}

	.sod-inventory-warehouse-tabs {
		display: none;
	}

	.sod-inventory-mobile-warehouse {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 10px;
		margin: 8px 0 10px;
		padding: 9px 11px;
		border: 1px solid var(--sod-line);
		border-radius: 12px;
		background: #fff;
	}

	.sod-inventory-mobile-warehouse > span {
		font-size: 12px;
		font-weight: 800;
	}

	.sod-inventory-mobile-warehouse select {
		width: 100%;
		min-height: 40px;
		padding: 7px 34px 7px 10px;
		border: 1px solid #cfd8d1;
		border-radius: 10px;
		background: #fff;
		color: var(--sod-ink);
		font: inherit;
		font-size: 14px;
	}

	.sod-inventory-bottom-tools {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 12px;
	}

	.sod-inventory-bottom-tools details > summary,
	.sod-inventory-scanner > summary,
	.sod-inventory-bulk-card > summary,
	.sod-inventory-create > summary {
		min-height: 44px;
		padding: 9px 12px;
		font-size: 14px;
	}

	.sod-inventory-scanner-body {
		padding: 0 10px 10px;
	}

	.sod-inventory-scanner-start {
		margin-bottom: 8px;
	}

	.sod-inventory-scanner-start .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-camera-actions {
		grid-template-columns: 1fr;
	}

	.sod-inventory-camera-actions .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-toolbar {
		gap: 8px;
		margin-bottom: 10px;
	}

	.sod-inventory-card-head,
	.sod-inventory-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.sod-inventory-code-input {
		grid-template-columns: 1fr;
	}

	.sod-inventory-code-input .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-selection-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.sod-inventory-selection-actions .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-warehouse-add-form,
	.sod-inventory-warehouse-list,
	.sod-inventory-bulk {
		grid-template-columns: 1fr;
	}

	.sod-inventory-warehouse-add-form .sod-button,
	.sod-inventory-bulk > .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-bulk .sod-form-message {
		grid-column: auto;
	}

	.sod-inventory-warehouse-tabs button {
		min-height: 43px;
		padding: 9px 13px;
	}

	.sod-inventory-card-head .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-form-grid,
	.sod-inventory-import-grid,
	.sod-inventory-scan-settings {
		grid-template-columns: 1fr;
	}

	.sod-inventory-import-grid .sod-field-wide {
		grid-column: auto;
	}

	.sod-inventory-manual-scan {
		grid-template-columns: minmax(0, 1fr);
	}

	.sod-inventory-manual-scan .sod-button {
		width: 100%;
		justify-content: center;
	}

	.sod-inventory-filters {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
	}

	.sod-inventory-filters button {
		justify-content: center;
		min-width: 0;
		padding: 8px 7px;
		font-size: 12px;
	}

	.sod-inventory-print-actions {
		display: flex;
		gap: 7px;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.sod-inventory-print-actions .sod-button {
		flex: 0 0 auto;
		width: auto;
		min-height: 40px;
		padding: 8px 11px;
		justify-content: center;
		font-size: 12px;
	}

	.sod-inventory-summary {
		grid-template-columns: 26px minmax(0, 1fr) auto;
		grid-template-areas:
			'select name stock'
			'warehouse warehouse warehouse'
			'quick quick toggle';
		padding: 12px;
	}

	.sod-inventory-select { grid-area: select; }
	.sod-inventory-name { grid-area: name; }
	.sod-inventory-warehouse { grid-area: warehouse; justify-self: start; max-width: 100%; }
	.sod-inventory-stock { grid-area: stock; }
	.sod-inventory-quick { grid-area: quick; grid-template-columns: minmax(64px, 1fr) 46px 46px; }
	.sod-inventory-toggle { grid-area: toggle; padding: 8px 10px; }

	.sod-inventory-details {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.sod-inventory-code-preview {
		width: 100%;
	}

	.sod-inventory-event {
		grid-template-columns: minmax(0, 1fr) 48px;
	}

	.sod-inventory-event > small {
		grid-column: 1 / -1;
	}
}


.sod-special-cod[hidden] { display: none !important; }


.sod-inventory-page-size{display:flex;align-items:end;gap:6px}.sod-inventory-page-size label{display:grid;gap:3px;color:var(--sod-muted);font-size:10px;font-weight:800;white-space:nowrap}.sod-inventory-page-size input{box-sizing:border-box;width:70px;min-height:38px;padding:6px 8px;border:1px solid #cfd8d1;border-radius:9px;background:#fff;color:var(--sod-ink);font:inherit;font-size:13px}@media(max-width:760px){.sod-inventory-page-size{flex:0 0 auto}.sod-inventory-page-size input{width:64px}}


/* Ryškesnis telefono skeneris ir aiškesnės sąrašų eilutės */
.sod-inventory-camera-wrap video,
.sod-inventory-replace-camera-wrap video {
	filter: brightness(1.12) contrast(1.13) saturate(1.04);
	background: #050805;
}

.sod-inventory-camera-wrap::after,
.sod-inventory-replace-camera-wrap::after {
	content: '';
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 6%;
	width: 88%;
	height: 38%;
	transform: translateY(-50%);
	border: 2px solid rgba(255,255,255,.88);
	border-radius: 14px;
	box-shadow: 0 0 0 999px rgba(0,0,0,.12), inset 0 0 22px rgba(68,255,118,.12);
	pointer-events: none;
}

.sod-inventory-scan-line {
	z-index: 3;
	height: 3px;
}

.sod-inventory-camera-actions,
.sod-inventory-replace-trigger,
.sod-inventory-torch {
	z-index: 5;
}

.sod-inventory-camera-actions {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sod-inventory-torch.is-on {
	background: #ffd33d;
	border-color: #ffd33d;
	color: #1b261d;
}

.sod-inventory-code-scan-modal .sod-modal-card {
	width: min(760px, calc(100vw - 24px));
}

.sod-inventory-replace-camera-wrap video {
	height: min(68vh, 560px);
}

.sod-delivery-list > .sod-delivery-card:nth-of-type(odd),
.sod-special-list > .sod-special-card:nth-of-type(odd),
.sod-route-list > .sod-route-card:nth-of-type(odd),
.sod-product-list > .sod-vilnius-item:nth-of-type(odd) {
	background: #edf7ef;
}

.sod-delivery-list > .sod-delivery-card:nth-of-type(even),
.sod-special-list > .sod-special-card:nth-of-type(even),
.sod-route-list > .sod-route-card:nth-of-type(even),
.sod-product-list > .sod-vilnius-item:nth-of-type(even) {
	background: #fff;
}

.sod-vilnius-item-summary,
.sod-special-row,
.sod-route-summary,
.sod-card-summary {
	background: transparent;
}

@media (max-width: 820px) {
	body.sod-inventory-camera-open {
		overflow: hidden;
	}

	#sod-inventory-camera-wrap:not([hidden]) {
		position: fixed;
		z-index: 1000000;
		inset: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin: 0;
		padding: max(10px, env(safe-area-inset-top)) 8px max(86px, calc(72px + env(safe-area-inset-bottom)));
		border-radius: 0;
		background: #050805;
	}

	#sod-inventory-camera-wrap video {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 12px;
		object-fit: cover;
	}

	#sod-inventory-camera-wrap .sod-inventory-camera-actions {
		position: fixed;
		z-index: 1000002;
		left: 8px;
		right: 8px;
		bottom: max(9px, env(safe-area-inset-bottom));
		display: flex;
		gap: 7px;
	}

	#sod-inventory-camera-wrap .sod-inventory-camera-actions .sod-button {
		flex: 1 1 0;
		min-width: 0;
		min-height: 56px;
		padding: 8px 6px;
		font-size: 13px;
		white-space: normal;
	}

	.sod-inventory-code-scan-modal .sod-modal-card {
		width: 100vw;
		height: 100dvh;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: max(48px, calc(36px + env(safe-area-inset-top))) 10px max(10px, env(safe-area-inset-bottom));
		border-radius: 0;
		overflow: auto;
		background: #071009;
		color: #fff;
	}

	.sod-inventory-code-scan-modal .sod-modal-close {
		z-index: 10;
		top: max(10px, env(safe-area-inset-top));
		right: 10px;
		color: #fff;
	}

	.sod-inventory-code-scan-modal h2 {
		margin: 0 48px 8px 0;
		font-size: 18px;
	}

	.sod-inventory-replace-camera-wrap {
		margin: 6px 0 9px;
		border-radius: 12px;
	}

	.sod-inventory-replace-camera-wrap video {
		width: 100%;
		height: calc(100dvh - 250px);
		min-height: 310px;
		object-fit: cover;
	}

	.sod-inventory-code-scan-modal .sod-form-message {
		color: #fff;
	}

	.sod-inventory-code-scan-modal .sod-inventory-torch {
		width: 100%;
		min-height: 48px;
		margin-top: 7px;
	}
}


/* Pilnas „Prekės iš Vilniaus“ produkto pavadinimas */
.sod-vilnius-item-name {
	overflow: visible;
	white-space: normal;
	text-overflow: clip;
	overflow-wrap: anywhere;
	word-break: normal;
	line-height: 1.32;
}

.sod-vilnius-item-summary {
	min-height: 62px;
	align-items: center;
}


/* Prekės pavadinimas matomas „Nuvežti“ sąraše prie kliento */
.sod-route-customer .sod-route-summary-items {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	white-space: normal;
	text-overflow: clip;
	overflow-wrap: anywhere;
	color: var(--sod-green-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.32;
}
