/* IPOS-297: Precision Ledger shift-close presentation. */
body.ipos-app-view-shift .ipos-admin-bar { display: none; }
body.ipos-app-view-shift .ipos-admin-content { padding: 24px 24px 36px 30px; }

.ipos-shift-close {
	--shift-surface: color-mix(in srgb, var(--ipos-surface) 92%, transparent);
	--shift-surface-soft: color-mix(in srgb, var(--ipos-surface-muted) 70%, var(--ipos-surface));
	--shift-danger-soft: color-mix(in srgb, var(--ipos-danger) 7%, var(--ipos-surface));
	--shift-success-soft: color-mix(in srgb, var(--ipos-success) 7%, var(--ipos-surface));
	display: grid;
	width: min(100%, 1480px);
	margin-inline: auto;
	gap: 18px;
	color: var(--ipos-ink);
	font-variant-numeric: tabular-nums;
}

.ipos-shift-close :where(h1, h2, h3, p, dl, dd) { margin: 0; }
.ipos-shift-close :where(button, input, textarea, a) { font: inherit; }
.ipos-shift-close :where(button, a) { -webkit-tap-highlight-color: transparent; }
.ipos-shift-close :where(button, a, input, textarea) {
	transition: color 160ms cubic-bezier(.2, .8, .2, 1), background-color 160ms cubic-bezier(.2, .8, .2, 1), border-color 160ms cubic-bezier(.2, .8, .2, 1), box-shadow 160ms cubic-bezier(.2, .8, .2, 1), transform 120ms cubic-bezier(.2, .8, .2, 1);
}

.ipos-shift-close__header {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 2px 0 4px;
}
.ipos-shift-close__header h1 { font-size: clamp(28px, 2.4vw, 36px); font-weight: 780; line-height: 1.12; letter-spacing: -.03em; }
.ipos-shift-close__header p { margin-top: 7px; color: var(--ipos-muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ipos-shift-close__status {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	gap: 9px;
	padding: 0 14px;
	border: 1px solid var(--ipos-line);
	border-radius: 8px;
	background: var(--shift-surface);
	color: var(--ipos-muted);
	font-size: 14px;
	font-weight: 720;
	white-space: nowrap;
}
.ipos-shift-close__status::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.ipos-shift-close__status.is-open { border-color: color-mix(in srgb, var(--ipos-success) 24%, var(--ipos-line)); background: var(--shift-success-soft); color: var(--ipos-success); }
.ipos-shift-close__status.is-pending { border-color: color-mix(in srgb, #c47b1a 28%, var(--ipos-line)); background: color-mix(in srgb, #c47b1a 8%, var(--ipos-surface)); color: #9a5b0a; }
.ipos-shift-close__status.is-closed { color: var(--ipos-muted); }
.ipos-shift-close__status.is-error { border-color: color-mix(in srgb, var(--ipos-danger) 30%, var(--ipos-line)); background: var(--shift-danger-soft); color: var(--ipos-danger); }

.ipos-shift-close__panel { display: grid; gap: 16px; min-width: 0; }
.ipos-shift-close__loading { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 14px; min-height: 190px; }
.ipos-shift-close__loading span { border: 1px solid var(--ipos-line); border-radius: 10px; background: var(--shift-surface); }
@media (prefers-reduced-motion: no-preference) {
	.ipos-shift-close__loading span { animation: ipos-shift-pulse 1.5s ease-in-out infinite alternate; }
	.ipos-shift-close__loading span:nth-child(2) { animation-delay: 120ms; }
	.ipos-shift-close__loading span:nth-child(3) { animation-delay: 240ms; }
	@keyframes ipos-shift-pulse { to { opacity: .48; } }
}

.ipos-shift-close__alert {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 78px;
	padding: 14px 16px;
	border: 1px solid var(--ipos-line);
	border-radius: 10px;
	background: var(--shift-surface);
}
.ipos-shift-close__alert.is-bad { border-color: color-mix(in srgb, var(--ipos-danger) 30%, var(--ipos-line)); background: var(--shift-danger-soft); color: var(--ipos-danger); }
.ipos-shift-close__alert.is-ok { border-color: color-mix(in srgb, var(--ipos-success) 28%, var(--ipos-line)); background: var(--shift-success-soft); color: var(--ipos-success); }
.ipos-shift-close__alert.is-pending { border-color: color-mix(in srgb, #c47b1a 30%, var(--ipos-line)); background: color-mix(in srgb, #c47b1a 8%, var(--ipos-surface)); color: #9a5b0a; }
.ipos-shift-close__alert-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; font-size: 24px; font-weight: 500; line-height: 1; }
.ipos-shift-close__alert.is-bad .ipos-shift-close__alert-icon { background: var(--ipos-danger); }
.ipos-shift-close__alert.is-ok .ipos-shift-close__alert-icon { background: var(--ipos-success); }
.ipos-shift-close__alert.is-pending .ipos-shift-close__alert-icon { background: #c47b1a; }
.ipos-shift-close__alert strong { display: block; font-size: 16px; font-weight: 780; }
.ipos-shift-close__alert p { margin-top: 3px; color: currentColor; font-size: 14px; font-weight: 560; line-height: 1.4; }
.ipos-shift-close__alert a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	border: 1px solid currentColor;
	border-radius: 8px;
	color: currentColor;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}
.ipos-shift-close__alert a:hover { background: color-mix(in srgb, currentColor 7%, transparent); transform: translateY(-1px); }

.ipos-shift-close__summary { display: grid; grid-template-columns: .78fr 1.2fr 1.12fr; gap: 14px; }
.ipos-shift-close__summary-group {
	display: grid;
	min-width: 0;
	align-content: start;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--ipos-line);
	border-radius: 10px;
	background: var(--shift-surface);
}
.ipos-shift-close__summary-group h2 { font-size: 15px; font-weight: 760; line-height: 1.3; }
.ipos-shift-close__summary-group.is-total > strong { margin-top: 2px; font-size: clamp(24px, 2vw, 30px); font-weight: 760; line-height: 1.1; letter-spacing: -.02em; }
.ipos-shift-close__summary-group.is-total > span { color: var(--ipos-muted); font-size: 14px; }
.ipos-shift-close__summary-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ipos-shift-close__summary-values > div { display: grid; min-width: 0; gap: 7px; padding: 2px 14px; border-left: 1px solid var(--ipos-line); }
.ipos-shift-close__summary-values > div:first-child { padding-left: 0; border-left: 0; }
.ipos-shift-close__summary-values span { color: var(--ipos-muted); font-size: 13px; font-weight: 570; }
.ipos-shift-close__summary-values strong { overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ipos-shift-close__summary-group.is-sources .ipos-shift-close__summary-values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
.ipos-shift-close__summary-group.is-sources .ipos-shift-close__summary-values > div:nth-child(3) { padding-top: 14px; padding-left: 0; border-top: 1px solid var(--ipos-line); border-left: 0; }
.ipos-shift-close__summary-group.is-sources .ipos-shift-close__summary-values > div:nth-child(4) { padding-top: 14px; border-top: 1px solid var(--ipos-line); }

.ipos-shift-close__workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: 14px; align-items: stretch; }
.ipos-shift-close__reconcile,
.ipos-shift-close__receipt {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--ipos-line);
	border-radius: 10px;
	background: var(--shift-surface);
}
.ipos-shift-close__reconcile { display: flex; flex-direction: column; }
.ipos-shift-close__reconcile > h2,
.ipos-shift-close__receipt > header h2 { font-size: 20px; font-weight: 780; line-height: 1.25; letter-spacing: -.015em; }

.ipos-shift-close__formula {
	display: grid;
	grid-template-columns: minmax(120px, .8fr) 20px minmax(180px, 1fr) 20px minmax(150px, .9fr);
	align-items: center;
	gap: 8px;
	margin-top: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ipos-line);
}
.ipos-shift-close__formula > div,
.ipos-shift-close__formula > label { display: grid; min-width: 0; gap: 9px; }
.ipos-shift-close__formula span { color: var(--ipos-muted); font-size: 13px; font-weight: 620; }
.ipos-shift-close__formula strong { font-size: 18px; font-weight: 720; white-space: nowrap; }
.ipos-shift-close__formula > b { color: var(--ipos-muted); font-size: 20px; font-weight: 500; text-align: center; }
.ipos-shift-close__formula input {
	width: 100%;
	min-height: 48px;
	padding: 0 13px;
	border: 1px solid var(--ipos-line-strong);
	border-radius: 8px;
	background: var(--ipos-surface);
	color: var(--ipos-ink);
	font-size: 17px;
	font-weight: 680;
}
.ipos-shift-close__formula input:hover { border-color: var(--ipos-action); }
.ipos-shift-close__formula input:focus { border-color: var(--ipos-action); box-shadow: 0 0 0 3px var(--ipos-focus); outline: 0; }
.ipos-shift-close__result { min-height: 70px; padding: 10px 12px; border-radius: 8px; }
.ipos-shift-close__result.is-ok { background: var(--shift-success-soft); }
.ipos-shift-close__result.is-bad { background: var(--shift-danger-soft); }
.ipos-shift-close__result small { color: var(--ipos-muted); font-size: 12px; font-weight: 620; line-height: 1.3; }
.ipos-shift-close__result.is-bad small { color: var(--ipos-danger); }
.ipos-shift-close__variance.is-ok { color: var(--ipos-success); }
.ipos-shift-close__variance.is-bad { color: var(--ipos-danger); }

.ipos-shift-close__note { display: grid; gap: 9px; margin-top: 22px; }
.ipos-shift-close__note > span { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ipos-shift-close__note b { font-size: 14px; font-weight: 700; }
.ipos-shift-close__note small { color: var(--ipos-muted); font-size: 12px; font-weight: 560; }
.ipos-shift-close__note textarea {
	width: 100%;
	min-height: 92px;
	resize: vertical;
	padding: 12px 13px;
	border: 1px solid var(--ipos-line);
	border-radius: 8px;
	background: var(--ipos-surface);
	color: var(--ipos-ink);
	font-size: 14px;
	line-height: 1.5;
}
.ipos-shift-close__note textarea:hover { border-color: var(--ipos-line-strong); }
.ipos-shift-close__note textarea:focus { border-color: var(--ipos-action); box-shadow: 0 0 0 3px var(--ipos-focus); outline: 0; }
.ipos-shift-close__field-error { margin-top: 8px; color: var(--ipos-danger); font-size: 13px; font-weight: 680; }
.ipos-shift-close__field-error[hidden] { display: none; }
.ipos-shift-close__close-row { display: flex; min-height: 54px; align-items: center; gap: 18px; margin-top: auto; padding-top: 20px; }
.ipos-shift-close__close-row button,
.ipos-shift-close__new-shift,
.ipos-shift-close__idle button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 18px;
	border: 1px solid var(--ipos-action);
	border-radius: 8px;
	background: var(--ipos-action);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
}
.ipos-shift-close__close-row button:hover:not(:disabled),
.ipos-shift-close__new-shift:hover,
.ipos-shift-close__idle button:hover { border-color: var(--ipos-action-hover); background: var(--ipos-action-hover); transform: translateY(-1px); }
.ipos-shift-close__close-row button:active:not(:disabled),
.ipos-shift-close__new-shift:active,
.ipos-shift-close__idle button:active { transform: translateY(1px) scale(.99); }
.ipos-shift-close__close-row button > span,
.ipos-shift-close__close-row p > span { position: relative; width: 14px; height: 12px; border: 2px solid currentColor; border-radius: 3px; }
.ipos-shift-close__close-row button > span::before,
.ipos-shift-close__close-row p > span::before { position: absolute; bottom: 8px; left: 2px; width: 6px; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; content: ""; }
.ipos-shift-close__close-row button:disabled { border-color: var(--ipos-line); background: var(--shift-surface-soft); color: var(--ipos-muted); cursor: not-allowed; opacity: .72; }
.ipos-shift-close__close-row button.is-request { background: #9a5b0a; border-color: #9a5b0a; }
.ipos-shift-close__close-row button.is-approve { background: var(--ipos-success); border-color: var(--ipos-success); }
.ipos-shift-close__close-row button.is-reject { background: transparent; border-color: var(--ipos-line); color: var(--ipos-ink); box-shadow: none; }
.ipos-shift-close__close-row button.is-reject:hover:not(:disabled) { border-color: var(--ipos-danger); color: var(--ipos-danger); background: var(--shift-danger-soft); }
.ipos-shift-close__formula.is-blind {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: end;
}
.ipos-shift-close__formula.is-blind .ipos-shift-close__result { min-height: 74px; }
.ipos-shift-close__formula.is-readonly { opacity: .95; pointer-events: none; }
.ipos-shift-close__pending-note { margin-top: 14px; color: var(--ipos-muted); font-size: 13px; line-height: 1.45; }
.ipos-shift-close__close-row p { display: inline-flex; align-items: center; gap: 10px; color: var(--ipos-muted); font-size: 13px; font-weight: 630; }
.ipos-shift-close__readonly { margin-top: 24px; color: var(--ipos-muted); line-height: 1.5; }

.ipos-shift-close__receipt { display: grid; align-content: start; padding: 0; overflow: hidden; }
.ipos-shift-close__receipt > header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--ipos-line); }
.ipos-shift-close__print,
.ipos-shift-close__history-table button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 13px;
	border: 1px solid var(--ipos-line);
	border-radius: 8px;
	background: var(--ipos-surface);
	color: var(--ipos-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.ipos-shift-close__print span { font-size: 20px; line-height: 1; }
.ipos-shift-close__print:hover,
.ipos-shift-close__history-table button:hover { border-color: var(--ipos-action); color: var(--ipos-action); transform: translateY(-1px); }

.ipos-shift-close__slip { display: grid; align-content: start; padding: 6px 18px 14px; }
.ipos-shift-close__slip-print-header,
.ipos-shift-close__slip-identity,
.ipos-shift-close__slip-section,
.ipos-shift-close__slip-reconcile,
.ipos-shift-close__slip-variance,
.ipos-shift-close__slip-note,
.ipos-shift-close__signatures,
.ipos-shift-close__slip > footer { display: none; }
.ipos-shift-close__slip-screen-ledger { display: grid; }
.ipos-shift-close__slip-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); gap: 14px; min-height: 34px; align-items: center; border-bottom: 1px solid var(--ipos-line); font-size: 12px; }
.ipos-shift-close__slip-row dt { color: var(--ipos-muted); font-weight: 590; }
.ipos-shift-close__slip-row dd { overflow-wrap: anywhere; color: var(--ipos-ink); font-weight: 680; text-align: right; }
.ipos-shift-close__slip-row.is-screen-variance { min-height: 44px; margin-top: 6px; padding-inline: 10px; border: 1px solid var(--ipos-line); border-radius: 8px; }
.ipos-shift-close__slip-row.is-screen-variance.is-ok { border-color: color-mix(in srgb, var(--ipos-success) 24%, var(--ipos-line)); background: var(--shift-success-soft); }
.ipos-shift-close__slip-row.is-screen-variance.is-bad { border-color: color-mix(in srgb, var(--ipos-danger) 24%, var(--ipos-line)); background: var(--shift-danger-soft); }

.ipos-shift-close__closed-workspace { display: grid; gap: 14px; }
.ipos-shift-close__closed-workspace .ipos-shift-close__receipt { width: min(100%, 780px); }
.ipos-shift-close__new-shift { justify-self: start; }

.ipos-shift-close__idle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto; align-items: end; gap: 18px; padding: 26px; border: 1px solid var(--ipos-line); border-radius: 10px; background: var(--shift-surface); }
.ipos-shift-close__idle > div > span { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 14px; border: 1px solid var(--ipos-line); border-radius: 8px; color: var(--ipos-action); font-weight: 800; }
.ipos-shift-close__idle h2 { font-size: 21px; }
.ipos-shift-close__idle p { max-width: 58ch; margin-top: 7px; color: var(--ipos-muted); font-size: 14px; line-height: 1.5; }
.ipos-shift-close__idle label { display: grid; gap: 7px; color: var(--ipos-muted); font-size: 13px; font-weight: 650; }
.ipos-shift-close__idle input { min-height: 46px; padding: 0 12px; border: 1px solid var(--ipos-line-strong); border-radius: 8px; background: var(--ipos-surface); color: var(--ipos-ink); }

.ipos-shift-close__history { border: 1px solid var(--ipos-line); border-radius: 10px; background: var(--shift-surface); }
.ipos-shift-close__history summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; cursor: pointer; list-style: none; }
.ipos-shift-close__history summary::-webkit-details-marker { display: none; }
.ipos-shift-close__history summary::after { color: var(--ipos-muted); content: "+"; font-size: 22px; transition: transform 180ms ease; }
.ipos-shift-close__history[open] summary::after { transform: rotate(45deg); }
.ipos-shift-close__history summary span { font-size: 15px; font-weight: 740; }
.ipos-shift-close__history summary small { margin-left: auto; color: var(--ipos-muted); font-size: 12px; }
.ipos-shift-close__history > div { padding: 0 18px 18px; }
.ipos-shift-close__history-empty { color: var(--ipos-muted); font-size: 14px; }
.ipos-shift-close__history-scroll { overflow-x: auto; }
.ipos-shift-close__history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ipos-shift-close__history-table th,
.ipos-shift-close__history-table td { padding: 10px 8px; border-top: 1px solid var(--ipos-line); text-align: left; vertical-align: middle; white-space: nowrap; }
.ipos-shift-close__history-table th { color: var(--ipos-muted); font-size: 11px; font-weight: 720; letter-spacing: .02em; text-transform: uppercase; }

@media (max-width: 1180px) {
	body.ipos-app-view-shift .ipos-admin-content { padding: 20px 20px 28px 24px; }
	.ipos-shift-close__summary { grid-template-columns: .8fr 1.2fr; }
	.ipos-shift-close__summary-group.is-sources { grid-column: 1 / -1; }
	.ipos-shift-close__workspace { grid-template-columns: 1fr; }
	.ipos-shift-close__receipt { width: 100%; }
}

@media (max-width: 700px) {
	.ipos-admin-sidebar__brand { position: absolute !important; }
	/* Use the shared lock-button offset above the mobile navigation. */
	body.ipos-app-view-shift .ipos-admin-content { padding: 74px 14px calc(106px + env(safe-area-inset-bottom)); }
	.ipos-shift-close { gap: 14px; }
	.ipos-shift-close__header { min-height: auto; align-items: start; padding: 0; }
	.ipos-shift-close__header h1 { font-size: 25px; }
	.ipos-shift-close__header p { max-width: 250px; font-size: 12px; }
	.ipos-shift-close__status { min-height: 38px; padding: 0 10px; font-size: 12px; }
	.ipos-shift-close__alert { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; min-height: 86px; padding: 12px; }
	.ipos-shift-close__alert-icon { width: 28px; height: 28px; font-size: 21px; }
	.ipos-shift-close__alert strong { font-size: 14px; }
	.ipos-shift-close__alert p { font-size: 12px; }
	.ipos-shift-close__alert a { min-height: 42px; padding: 0 10px; font-size: 12px; }
	.ipos-shift-close__summary { display: flex; gap: 10px; margin-inline: -14px; padding: 0 14px 8px; overflow-x: auto; scroll-padding-inline: 14px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
	.ipos-shift-close__summary-group { min-width: 235px; min-height: 142px; padding: 16px; scroll-snap-align: start; }
	.ipos-shift-close__summary-group.is-total { min-width: 210px; }
	.ipos-shift-close__summary-group.is-payments { min-width: 440px; }
	.ipos-shift-close__summary-group.is-sources { min-width: 390px; }
	.ipos-shift-close__summary-values strong { font-size: 14px; }
	.ipos-shift-close__workspace { display: grid; gap: 12px; }
	.ipos-shift-close__reconcile { padding: 18px 14px; }
	.ipos-shift-close__reconcile > h2,
	.ipos-shift-close__receipt > header h2 { font-size: 18px; }
	.ipos-shift-close__formula { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
	.ipos-shift-close__formula > b { display: none; }
	.ipos-shift-close__formula > div:first-child { padding-bottom: 2px; }
	.ipos-shift-close__result { display: grid; grid-template-columns: 1fr auto; min-height: 64px; align-items: center; }
	.ipos-shift-close__result small { grid-column: 1 / -1; text-align: right; }
	.ipos-shift-close__note > span { align-items: start; }
	.ipos-shift-close__note small { max-width: 145px; text-align: right; }
	.ipos-shift-close__close-row { display: grid; gap: 12px; }
	.ipos-shift-close__close-row button { width: 100%; min-height: 50px; }
	.ipos-shift-close__close-row p { justify-content: center; text-align: center; }
	.ipos-shift-close__receipt > header { min-height: 62px; padding: 0 14px; }
	.ipos-shift-close__slip { padding-inline: 14px; }
	.ipos-shift-close__slip-row { grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); }
	.ipos-shift-close__slip-variance { grid-template-columns: 1fr auto; }
	.ipos-shift-close__slip-variance small { grid-column: 1 / -1; }
	.ipos-shift-close__idle { grid-template-columns: 1fr; align-items: stretch; padding: 20px; }
	.ipos-shift-close__idle button { width: 100%; }
	.ipos-shift-close__history summary small { display: none; }
	.ipos-shift-close__history-table { min-width: 700px; }
}

/* IPOS-327: mobile reconciliation must scan without a clipped card carousel. */
@media (max-width: 700px) {
	.ipos-shift-close__summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
	.ipos-shift-close__summary-group,
	.ipos-shift-close__summary-group.is-total,
	.ipos-shift-close__summary-group.is-payments,
	.ipos-shift-close__summary-group.is-sources { min-width: 0; min-height: 0; scroll-snap-align: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ipos-shift-close *,
	.ipos-shift-close *::before,
	.ipos-shift-close *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@page { size: A4 portrait; margin: 12mm; }

@media print {
	body.ipos-app-shell.ipos-shift-printing { background-color: #fff !important; background-image: none !important; background-attachment: initial !important; }
	html,
	body.ipos-app-shell,
	body.ipos-app-shell .wp-site-blocks,
	body.ipos-app-shell .ipos-admin-shell,
	body.ipos-app-shell .ipos-admin-workspace,
	body.ipos-app-shell .ipos-admin-content { min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: #fff !important; overflow: visible !important; }
	body.ipos-shift-printing .ipos-admin-shell,
	body.ipos-shift-printing .ipos-admin-workspace,
	body.ipos-shift-printing .ipos-admin-content { display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important; }
	body.ipos-shift-printing .ipos-admin-sidebar,
	body.ipos-shift-printing .ipos-admin-bar,
	body.ipos-shift-printing .ipos-shift-close__header,
	body.ipos-shift-printing .ipos-shift-close__alert,
	body.ipos-shift-printing .ipos-shift-close__summary,
	body.ipos-shift-printing .ipos-shift-close__reconcile,
	body.ipos-shift-printing .ipos-shift-close__receipt > header,
	body.ipos-shift-printing .ipos-shift-close__history,
	body.ipos-shift-printing .ipos-shift-close__new-shift { display: none !important; }
	body.ipos-shift-printing .ipos-shift-close,
	body.ipos-shift-printing .ipos-shift-close__panel,
	body.ipos-shift-printing .ipos-shift-close__workspace,
	body.ipos-shift-printing .ipos-shift-close__closed-workspace,
	body.ipos-shift-printing .ipos-shift-close__receipt { display: block !important; width: auto !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; color: #172019 !important; box-shadow: none !important; }
	body.ipos-shift-printing .ipos-shift-close__slip { display: block; padding: 0; color: #172019; font-family: Arial, sans-serif; font-size: 10pt; line-height: 1.35; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	body.ipos-shift-printing .ipos-shift-close__slip-screen-ledger { display: none; }
	body.ipos-shift-printing .ipos-shift-close__slip-print-header { display: grid; grid-template-columns: 120px 1fr 150px; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid #197a35; }
	body.ipos-shift-printing .ipos-shift-close__slip-print-header img { display: block; width: 98px; height: auto; }
	body.ipos-shift-printing .ipos-shift-close__slip-print-header h2 { font-size: 18pt; font-weight: 800; text-align: center; }
	body.ipos-shift-printing .ipos-shift-close__slip-print-header time { font-size: 9pt; font-weight: 650; text-align: right; }
	body.ipos-shift-printing .ipos-shift-close__slip-identity { display: grid; gap: 3px; padding: 10px 0 8px; }
	body.ipos-shift-printing .ipos-shift-close__slip-identity > strong { display: block; font-size: 12pt; }
	body.ipos-shift-printing .ipos-shift-close__slip-identity > span { display: block; min-height: 0; border: 0; color: #172019; font-size: 9.5pt; }
	body.ipos-shift-printing .ipos-shift-close__slip-section { display: block; margin-top: 10px; break-inside: avoid; }
	body.ipos-shift-printing .ipos-shift-close__slip-section h3,
	body.ipos-shift-printing .ipos-shift-close__slip-reconcile h3,
	body.ipos-shift-printing .ipos-shift-close__slip-note h3 { display: block; margin-bottom: 4px; font-size: 10.5pt; font-weight: 800; text-transform: uppercase; }
	body.ipos-shift-printing .ipos-shift-close__slip-section dl { display: block; }
	body.ipos-shift-printing .ipos-shift-close__slip-row,
	body.ipos-shift-printing .ipos-shift-close__slip-section:first-of-type .ipos-shift-close__slip-row:first-child,
	body.ipos-shift-printing .ipos-shift-close__slip-row.is-total { display: grid; grid-template-columns: 1fr 190px; min-height: 24px; align-items: center; border-bottom: 1px solid #cfd6d1; font-size: 9.5pt; }
	body.ipos-shift-printing .ipos-shift-close__slip-row dt { color: #172019; }
	body.ipos-shift-printing .ipos-shift-close__slip-row.is-total { margin-top: 2px; border-top: 2px solid #172019; border-bottom: 0; font-weight: 800; }
	body.ipos-shift-printing .ipos-shift-close__slip-section.is-channel dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
	body.ipos-shift-printing .ipos-shift-close__slip-section.is-channel .ipos-shift-close__slip-row { grid-template-columns: 1fr auto; }
	body.ipos-shift-printing .ipos-shift-close__slip-reconcile { display: block; margin-top: 10px; break-inside: avoid; }
	body.ipos-shift-printing .ipos-shift-close__slip-reconcile > div { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: end; gap: 8px; }
	body.ipos-shift-printing .ipos-shift-close__slip-reconcile span { display: grid; gap: 3px; text-align: center; }
	body.ipos-shift-printing .ipos-shift-close__slip-reconcile span strong { font-size: 11pt; }
	body.ipos-shift-printing .ipos-shift-close__slip-reconcile b { padding-bottom: 2px; text-align: center; }
	body.ipos-shift-printing .ipos-shift-close__slip-variance { grid-template-columns: 1fr 1fr 1fr; min-height: 40px; margin-top: 8px; padding: 0 12px; border-color: #b42318; background: #fff6f5; color: #b42318; break-inside: avoid; }
	body.ipos-shift-printing .ipos-shift-close__slip-variance strong { font-size: 11pt; }
	body.ipos-shift-printing .ipos-shift-close__slip-note { display: block; margin-top: 10px; break-inside: avoid; }
	body.ipos-shift-printing .ipos-shift-close__slip-note p { min-height: 26px; padding-bottom: 4px; border-bottom: 1px solid #8c9890; color: #172019; font-size: 9.5pt; }
	body.ipos-shift-printing .ipos-shift-close__signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 16px; break-inside: avoid; }
	body.ipos-shift-printing .ipos-shift-close__signatures div { display: grid; min-height: 80px; align-content: start; gap: 2px; padding-top: 6px; border-bottom: 1px solid #172019; text-align: center; }
	body.ipos-shift-printing .ipos-shift-close__signatures strong { font-size: 9.5pt; }
	body.ipos-shift-printing .ipos-shift-close__signatures span { color: #5f685f; font-size: 8pt; font-style: italic; }
	body.ipos-shift-printing .ipos-shift-close__slip > footer { display: block; margin-top: 10px; color: #5f685f; font-size: 8pt; font-style: italic; text-align: center; }
}
