/**
 * Nonprofit Timesheets — public (staff-facing) styles.
 *
 * Scoped under .tts-public to avoid colliding with the host theme. Uses a clean
 * card-on-page pattern with conservative defaults so it looks reasonable on any
 * theme without inheriting weird theme typography.
 */

.tts-public {
	--tts-bg: #f6f7f9;
	--tts-card-bg: #ffffff;
	--tts-text: #1d2327;
	--tts-text-muted: #50575e;
	--tts-text-dim: #8c8f94;
	--tts-border: #e2e4e7;
	--tts-border-strong: #c3c4c7;
	--tts-primary: #2271b1;
	--tts-primary-hover: #135e96;
	--tts-success-bg: #dff5e1;
	--tts-success-text: #1f6b32;
	--tts-error-bg: #fbe5e5;
	--tts-error-text: #8a2424;
	--tts-warn-bg: #fdf2dc;
	--tts-warn-text: #8a5a00;
	--tts-radius: 10px;
	--tts-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--tts-text);
	line-height: 1.55;
	font-size: 15px;
	max-width: 560px;
	margin: 32px auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.tts-public *,
.tts-public *::before,
.tts-public *::after {
	box-sizing: border-box;
}

/* --- Card ----------------------------------------------------------- */

.tts-card {
	background: var(--tts-card-bg);
	border: 1px solid var(--tts-border);
	border-radius: var(--tts-radius);
	box-shadow: var(--tts-shadow);
	padding: 28px;
}

@media (max-width: 480px) {
	.tts-card { padding: 22px 20px; }
}

.tts-card__header {
	margin-bottom: 18px;
}

.tts-card__header--row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 8px;
}

.tts-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tts-text-muted);
	margin-bottom: 6px;
}

.tts-heading {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 600;
	color: var(--tts-text);
	line-height: 1.3;
}

.tts-sub {
	margin: 0;
	font-size: 14px;
	color: var(--tts-text-muted);
	line-height: 1.5;
}

.tts-foot {
	margin: 18px 0 0;
	font-size: 13px;
	color: var(--tts-text-dim);
	text-align: center;
}

.tts-foot a { color: var(--tts-primary); }

/* --- Form fields ---------------------------------------------------- */

.tts-form { margin: 0; }

.tts-stack > * + * { margin-top: 14px; }

.tts-field { display: block; }

.tts-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--tts-text);
	margin-bottom: 6px;
}

.tts-input {
	display: block;
	width: 100%;
	font: inherit;
	font-size: 16px; /* prevent iOS zoom */
	color: var(--tts-text);
	background: #fff;
	border: 1px solid var(--tts-border-strong);
	border-radius: 8px;
	padding: 11px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tts-input:focus {
	outline: none;
	border-color: var(--tts-primary);
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
}

.tts-checkbox {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: var(--tts-text);
	cursor: pointer;
}

.tts-checkbox input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
}

/* --- Buttons -------------------------------------------------------- */

.tts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tts-btn--block { width: 100%; }

.tts-btn--primary {
	background: var(--tts-primary);
	color: #fff;
}
.tts-btn--primary:hover,
.tts-btn--primary:focus {
	background: var(--tts-primary-hover);
	color: #fff;
}

.tts-btn--ghost {
	background: transparent;
	color: var(--tts-text-muted);
	border-color: var(--tts-border-strong);
}
.tts-btn--ghost:hover,
.tts-btn--ghost:focus {
	background: #fafafa;
	color: var(--tts-text);
}

.tts-btn-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* --- Links ---------------------------------------------------------- */

.tts-link { color: var(--tts-primary); text-decoration: none; }
.tts-link:hover { text-decoration: underline; }
.tts-link--muted { color: var(--tts-text-muted); font-size: 13px; }

/* --- Notices -------------------------------------------------------- */

.tts-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	border: 1px solid transparent;
}

.tts-notice--success {
	background: var(--tts-success-bg);
	color: var(--tts-success-text);
	border-color: rgba(31, 107, 50, 0.2);
}
.tts-notice--error {
	background: var(--tts-error-bg);
	color: var(--tts-error-text);
	border-color: rgba(138, 36, 36, 0.2);
}
.tts-notice--warning {
	background: var(--tts-warn-bg);
	color: var(--tts-warn-text);
	border-color: rgba(138, 90, 0, 0.2);
}

/* --- Icons (for link-sent / link-invalid screens) ------------------- */

.tts-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin: 4px auto 18px;
}
.tts-icon--mail {
	background: #e1ecf7;
	color: var(--tts-primary);
}
.tts-icon--warn {
	background: var(--tts-warn-bg);
	color: var(--tts-warn-text);
}

.tts-login {
	text-align: left;
}
.tts-login .tts-heading,
.tts-login .tts-sub {
	text-align: inherit;
}
/* Icon-led views (link sent / invalid) center their headings. */
.tts-icon + .tts-heading,
.tts-icon ~ .tts-sub {
	text-align: center;
}
.tts-icon ~ .tts-btn--block { margin-top: 18px; }

/* --- Privacy ack modal --------------------------------------------- */

.tts-modal-backdrop {
	/* Render in-flow, not as a fixed overlay — we're already in the content area. */
	background: var(--tts-bg);
	margin: -32px -16px;
	padding: 32px 16px;
	min-height: 600px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.tts-modal {
	max-width: 600px;
	width: 100%;
}

.tts-prose {
	background: #fafafa;
	border: 1px solid var(--tts-border);
	border-radius: 8px;
	padding: 18px 20px;
	margin: 18px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--tts-text);
}
.tts-prose p { margin: 0 0 12px; }
.tts-prose p:last-child { margin-bottom: 0; }
.tts-prose ul, .tts-prose ol { margin: 0 0 12px 20px; }
.tts-prose a { color: var(--tts-primary); }
.tts-prose strong { color: var(--tts-text); }

.tts-scroll {
	max-height: 280px;
	overflow-y: auto;
}

/* --- Dashboard placeholder ----------------------------------------- */

.tts-info {
	margin-top: 22px;
	padding: 16px 18px;
	border: 1px solid var(--tts-border);
	border-radius: 8px;
	background: #fafafa;
}
.tts-info > strong {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tts-text-muted);
	margin-bottom: 8px;
}
.tts-dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 16px;
	margin: 0;
	font-size: 13px;
}
.tts-dl dt {
	color: var(--tts-text-muted);
	font-weight: 500;
}
.tts-dl dd { margin: 0; color: var(--tts-text); }

/* ============================================================
   Phase (c) — entry UI styles
   ============================================================ */

.tts-card--page {
	max-width: 760px;
}

.tts-banner {
	max-width: 760px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fff7e6;
	border: 1px solid #ffd591;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.tts-entry__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.tts-entry__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 8px;
	flex-wrap: wrap;
}

.tts-entry__actions {
	display: flex;
	gap: 16px;
	font-size: 14px;
	flex-wrap: wrap;
}

.tts-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: #eee;
	color: #333;
	white-space: nowrap;
}
.tts-pill--draft            { background: #e8eaed; color: #444; }
.tts-pill--submitted        { background: #e3f2fd; color: #0d47a1; }
.tts-pill--approved         { background: #e8f5e9; color: #1b5e20; }
.tts-pill--needs_correction { background: #fff7e6; color: #ad6800; }
.tts-pill--rejected         { background: #fde7e9; color: #a8071a; }

.tts-saved {
	font-size: 12px;
	color: #888;
	font-style: italic;
}

.tts-entry__totals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 16px 0 20px;
	padding: 16px;
	background: #fafafa;
	border-radius: 8px;
}
.tts-stat__label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tts-stat__value {
	font-size: 24px;
	font-weight: 700;
	color: #222;
	margin-top: 4px;
}

.tts-plus {
	display: inline-block;
	margin-right: 4px;
	font-weight: 700;
}

/* Inline entry form ----------------------------------------- */

.tts-entry-form {
	margin: 16px 0;
	padding: 18px;
	background: #f6f9ff;
	border: 1px solid #c7d6ee;
	border-radius: 10px;
}

.tts-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.tts-row--times {
	align-items: flex-end;
}

.tts-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tts-field--grow {
	flex: 1 1 200px;
}

.tts-label {
	font-size: 13px;
	color: #444;
	font-weight: 600;
}
.tts-label-opt {
	font-weight: normal;
	color: #888;
	font-size: 12px;
	margin-left: 4px;
}
.tts-label-inline {
	font-size: 13px;
	color: #555;
	margin-right: 4px;
}

.tts-time-pickers {
	display: flex;
	gap: 4px;
}
.tts-input--time {
	width: auto;
	min-width: 56px;
}

.tts-overnight {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	margin: 8px 0 4px;
	cursor: pointer;
}

.tts-overnight-day2 {
	margin: 12px 0;
	padding: 12px;
	background: #fff;
	border: 1px dashed #c7d6ee;
	border-radius: 8px;
}
.tts-day2-date {
	font-weight: 600;
	color: #222;
}
.tts-day2-startnote {
	display: block;
	font-size: 12px;
	color: #888;
}

.tts-form-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #c7d6ee;
	flex-wrap: wrap;
}
.tts-form-actions {
	display: flex;
	gap: 8px;
}
.tts-hours-preview {
	font-size: 15px;
	color: #222;
}
.tts-hours-preview strong {
	font-size: 18px;
	color: #1a73e8;
}
.tts-form-error {
	margin-top: 12px;
	padding: 10px;
	background: #fff1f0;
	border: 1px solid #ffa39e;
	border-radius: 6px;
	color: #a8071a;
	font-size: 13px;
}

/* Shifts list ----------------------------------------------- */

.tts-shifts {
	margin: 16px 0;
}

.tts-shift {
	display: grid;
	grid-template-columns: 1.3fr 1.5fr auto;
	gap: 8px 16px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	margin-bottom: 8px;
	align-items: center;
}
.tts-shift--overnight {
	border-left: 3px solid #5a8dee;
}
.tts-shift--editing {
	opacity: 0.4;
}
.tts-shift__date {
	font-weight: 600;
	color: #222;
}
.tts-shift__times {
	color: #444;
}
.tts-shift__hours {
	text-align: right;
	color: #222;
}
.tts-shift__hours strong {
	font-size: 16px;
}
.tts-shift__detail {
	grid-column: 1 / -1;
	padding-top: 4px;
	border-top: 1px dashed #eee;
	font-size: 13px;
	color: #555;
}
.tts-shift__desc {
	color: #666;
	font-style: italic;
}
.tts-shift__actions {
	grid-column: 1 / -1;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	padding-top: 4px;
}

.tts-arrow {
	color: #888;
	margin: 0 4px;
}
.tts-tag {
	display: inline-block;
	font-size: 11px;
	padding: 2px 6px;
	background: #eaeef5;
	color: #445;
	border-radius: 4px;
	margin-left: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tts-tag--warn {
	background: #fff7e6;
	color: #ad6800;
}
.tts-tag--cat {
	background: #e8f5e9;
	color: #1b5e20;
	text-transform: none;
	letter-spacing: 0;
}

.tts-empty {
	padding: 24px;
	text-align: center;
	color: #888;
	background: #fafafa;
	border-radius: 8px;
	border: 1px dashed #ddd;
}

.tts-link--danger {
	color: #c0392b;
}
.tts-link--muted {
	color: #888;
}

/* Signature ------------------------------------------------- */

.tts-sign {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}
.tts-sign__h {
	margin: 0 0 6px;
	font-size: 16px;
	color: #222;
}
.tts-input--signature {
	font-family: 'Brush Script MT', cursive;
	font-size: 22px;
	color: #1a3a6e;
}

/* Modals ---------------------------------------------------- */

.tts-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}
.tts-modal-overlay[hidden] {
	display: none;
}
.tts-modal-box {
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.tts-modal-box h3 {
	margin: 0 0 12px;
	font-size: 18px;
}
.tts-modal-box p {
	margin: 0 0 18px;
	color: #444;
	line-height: 1.5;
}

.tts-btn--danger {
	background: #c0392b;
	color: #fff;
	border: 1px solid #c0392b;
}
.tts-btn--danger:hover {
	background: #a52a1f;
}
.tts-btn--small {
	font-size: 13px;
	padding: 6px 12px;
}
.tts-btn--block {
	display: block;
	width: 100%;
	margin-top: 16px;
}

/* Past timesheets table ------------------------------------ */

.tts-history {
	width: 100%;
	margin-top: 16px;
	border-collapse: collapse;
}
.tts-history th, .tts-history td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}
.tts-history th {
	background: #fafafa;
	font-weight: 600;
	color: #555;
}

/* Mobile ---------------------------------------------------- */

@media (max-width: 540px) {
	.tts-shift {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.tts-shift__hours {
		text-align: left;
	}
	.tts-entry__totals {
		grid-template-columns: 1fr;
	}
	.tts-row--times {
		flex-direction: column;
	}
}

/* ============================================================
   Phase (d) — submit, confirmation, no-work
   ============================================================ */

.tts-submit-area {
	margin-top: 16px;
}

.tts-sub--small {
	font-size: 12px;
	color: #888;
	text-align: center;
	margin-top: 8px;
}

.tts-confirmation {
	text-align: center;
	padding: 40px 32px;
}
.tts-confirm-icon {
	width: 64px;
	height: 64px;
	background: #4caf50;
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin: 0 auto 16px;
	line-height: 1;
}
.tts-confirm-actions {
	margin-top: 24px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.tts-confirm-foot {
	margin-top: 24px;
	font-size: 13px;
}

/* Phase (e): rejection banner on employee entry view */
.tts-banner--reject {
	background: #fff1f0;
	border-color: #ffa39e;
	color: #a8071a;
	align-items: flex-start;
}
.tts-banner--reject em { font-style: normal; color: #555; }

.tts-history__note {
	margin-top: 4px;
	font-size: 12px;
	color: #666;
	max-width: 360px;
}
.tts-history__note em { color: #888; font-style: normal; font-weight: 600; }

.tts-banner--correction {
	background: #fff8e6;
	border-color: #ffd591;
	color: #ad6800;
	align-items: flex-start;
}
.tts-banner--correction em { font-style: normal; color: #555; font-weight: 600; }

.tts-pill--notstarted { background: #f0f0f0; color: #888; font-style: italic; }

/* ============================================================
   Flyer acknowledgment gate + library
   ============================================================ */

.tts-flyer-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 25, 35, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.tts-flyer-modal {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 760px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.tts-flyer-modal__head {
	padding: 20px 24px 16px;
	border-bottom: 1px solid #eef0f2;
}
.tts-flyer-modal__eyebrow {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #b45309;
	font-weight: 700;
	margin-bottom: 6px;
}
.tts-flyer-modal__title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #1d2327;
}
.tts-flyer-modal__desc {
	margin: 0;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}

.tts-flyer-modal__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #525659;
	min-height: 320px;
	position: relative;
}
.tts-flyer-pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 8px;
}
.tts-flyer-page {
	display: block;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	border-radius: 2px;
}
.tts-flyer-loading {
	padding: 60px 24px;
	text-align: center;
	color: #ddd;
}
.tts-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	margin: 0 auto 12px;
	animation: tts-spin 0.8s linear infinite;
}
@keyframes tts-spin { to { transform: rotate( 360deg ); } }
.tts-flyer-fallback {
	padding: 48px 24px;
	text-align: center;
	color: #f0f0f0;
}
.tts-flyer-fallback-note { font-size: 13px; color: #bbb; margin-top: 12px; }
#tts-flyer-scroll-sentinel { height: 1px; }

.tts-flyer-modal__foot {
	padding: 16px 24px 20px;
	border-top: 1px solid #eef0f2;
	background: #fff;
}
.tts-flyer-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	color: #1d2327;
	cursor: pointer;
}
.tts-flyer-check input { margin-top: 3px; }
.tts-flyer-check input:disabled + span { color: #999; }

.tts-flyer-scrollhint {
	margin: 8px 0 0;
	font-size: 12px;
	color: #b45309;
}

.tts-flyer-actions {
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tts-flyer-error {
	margin-top: 12px;
	padding: 10px 12px;
	background: #fff1f0;
	border: 1px solid #ffa39e;
	border-radius: 6px;
	color: #a8071a;
	font-size: 14px;
}

@media (max-width: 600px) {
	.tts-flyer-actions { flex-direction: column-reverse; align-items: stretch; }
	.tts-flyer-actions .tts-btn { width: 100%; }
}

/* Library list */
.tts-flyer-list { list-style: none; margin: 16px 0 0; padding: 0; }
.tts-flyer-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #eef0f2;
}
.tts-flyer-list__item:last-child { border-bottom: none; }
.tts-flyer-list__title { font-weight: 600; color: #1d2327; }
.tts-flyer-list__desc { font-size: 13px; color: #666; margin-top: 3px; }
.tts-flyer-list__status { margin-top: 6px; }
.tts-flyer-list__action { flex: 0 0 auto; }

/* ============================================================
   Certifications (staff banner + list + renewal)
   ============================================================ */

.tts-banner--cert-expired {
	background: #fff1f0;
	border-color: #ffa39e;
	color: #a8071a;
	align-items: flex-start;
}

.tts-cert-list { list-style: none; margin: 16px 0 0; padding: 0; }
.tts-cert-item {
	padding: 16px 0;
	border-bottom: 1px solid #eef0f2;
}
.tts-cert-item:last-child { border-bottom: none; }
.tts-cert-item__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.tts-cert-item__name { font-weight: 600; font-size: 16px; color: #1d2327; }
.tts-cert-item__meta { font-size: 13px; color: #555; margin-top: 4px; }
.tts-cert-item__notes { font-size: 13px; color: #666; margin-top: 6px; }
.tts-cert-item__file { flex: 0 0 auto; }

.tts-cert-toggle {
	background: none;
	border: none;
	padding: 8px 0 0;
	cursor: pointer;
	font-size: 14px;
}

.tts-cert-renew {
	margin-top: 12px;
	padding: 16px;
	background: #f7f9fb;
	border-radius: 8px;
}
.tts-cert-field { margin-bottom: 12px; }
.tts-cert-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #2c3338;
}
.tts-cert-field input[type="file"],
.tts-cert-field input[type="date"] {
	width: 100%;
	max-width: 360px;
	box-sizing: border-box;
	padding: 8px;
	font-size: 15px;
}
.tts-cert-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tts-cert-msg { font-size: 14px; }
.tts-cert-msg--error { color: #a8071a; }
.tts-cert-msg--ok { color: #237804; }

@media (max-width: 600px) {
	.tts-cert-item__head { flex-direction: column; gap: 6px; }
}

/* ============================================================
   Contract signing (gate + signing page)
   ============================================================ */

.tts-contract-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 25, 35, 0.78);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.tts-contract-gate__modal {
	background: #fff;
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.tts-contract-gate__icon { font-size: 42px; margin-bottom: 8px; }
.tts-contract-gate__title { margin: 0 0 10px; font-size: 22px; color: #1d2327; }
.tts-contract-gate__lead { color: #555; margin: 0 0 16px; line-height: 1.5; }
.tts-contract-gate__list {
	text-align: left;
	display: inline-block;
	margin: 0 auto 20px;
	padding: 0 0 0 20px;
	color: #1d2327;
}
.tts-contract-gate__list li { margin: 4px 0; }
.tts-contract-gate__btn { display: inline-block; width: 100%; box-sizing: border-box; }
.tts-contract-gate__foot { margin: 16px 0 0; }

.tts-sign-page { max-width: 820px; margin: 0 auto; }
.tts-sign-head { margin-bottom: 16px; }
.tts-sign-doc {
	background: #fff;
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	padding: 28px 32px;
	max-height: 60vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	line-height: 1.6;
	color: #1a1a1a;
}
.tts-sign-doc h1, .tts-sign-doc h2, .tts-sign-doc h3 { color: #1a3a6e; }
.tts-sign-doc table { width: 100%; border-collapse: collapse; }
.tts-sign-doc td, .tts-sign-doc th { padding: 4px 6px; vertical-align: top; }

.tts-sign-block {
	margin-top: 20px;
	background: #f7f9fb;
	border-radius: 10px;
	padding: 22px 24px;
}
.tts-sign-block__title { margin: 0 0 8px; font-size: 17px; color: #1d2327; }
.tts-sign-block__intro { color: #555; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.tts-sign-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: #2c3338; }
.tts-sign-input {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 12px 14px;
	font-size: 22px;
	font-family: "Brush Script MT", "Segoe Script", cursive;
	border: 1px solid #c7ced6;
	border-radius: 8px;
	background: #fff;
	margin-bottom: 16px;
}
.tts-sign-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #1d2327; margin-bottom: 18px; cursor: pointer; }
.tts-sign-consent input { margin-top: 3px; }
.tts-sign-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tts-sign-msg { font-size: 14px; }
.tts-sign-msg--error { color: #a8071a; }
.tts-sign-msg--ok { color: #237804; }

@media (max-width: 600px) {
	.tts-sign-doc { padding: 18px 16px; }
	.tts-sign-actions .tts-btn { width: 100%; }
}

/* ============================================================
   Reimbursements
   ============================================================ */

.tts-reimb {
	margin-top: 24px;
	padding: 20px;
	background: #f7f9fb;
	border-radius: 10px;
}
.tts-reimb__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.tts-reimb__h { margin: 0; font-size: 17px; color: #1d2327; }
.tts-reimb__total { text-align: right; }
.tts-reimb__total .tts-sub { margin-right: 6px; }
.tts-reimb__total strong { font-size: 18px; color: #1d2327; }

.tts-reimb__list { list-style: none; margin: 14px 0 0; padding: 0; }
.tts-reimb__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #e6eaee;
}
.tts-reimb__item:last-child { border-bottom: none; }
.tts-reimb__main { flex: 1 1 auto; min-width: 0; }
.tts-reimb__desc { font-weight: 600; color: #1d2327; word-break: break-word; }
.tts-reimb__meta { font-size: 12.5px; color: #667; margin-top: 2px; }
.tts-reimb__warn { color: #b45309; }
.tts-reimb__noreceipt { color: #8a94a0; }
.tts-reimb__amt { flex: 0 0 auto; font-weight: 600; color: #1d2327; }
.tts-reimb__del {
	flex: 0 0 auto;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #a0a8b0;
	cursor: pointer;
	padding: 0 4px;
}
.tts-reimb__del:hover { color: #a8071a; }

.tts-reimb__empty { margin: 12px 0 0; color: #8a94a0; font-size: 14px; }

.tts-reimb__form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e6eaee; }
.tts-reimb__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.tts-reimb__row .tts-field { flex: 0 0 auto; }
.tts-reimb__row .tts-field--grow { flex: 1 1 220px; min-width: 0; }
.tts-reimb__row .tts-field--amt { flex: 0 0 120px; }
.tts-reimb__row--file { align-items: flex-end; }

.tts-reimb__msg { font-size: 14px; min-height: 18px; }
.tts-reimb__msg--error { color: #a8071a; }
.tts-reimb__msg--ok { color: #237804; }

@media (max-width: 600px) {
	.tts-reimb { padding: 16px; }
	.tts-reimb__row { flex-direction: column; align-items: stretch; }
	.tts-reimb__row .tts-field,
	.tts-reimb__row .tts-field--amt,
	.tts-reimb__row .tts-field--grow { flex: 1 1 auto; width: 100%; }
	.tts-reimb__row .tts-btn { width: 100%; }
}
