/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Mobile: Allow normal body scroll */
@media (max-width: 640.98px) {
    .page[b-b5bxsk851t] {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    main[b-b5bxsk851t] {
        flex: 1;
    }

    article.content[b-b5bxsk851t] {
        /* Let body handle scroll on mobile */
    }
}

/* Desktop: Simplified scroll approach */
@media (min-width: 641px) {
    .page[b-b5bxsk851t] {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    main[b-b5bxsk851t] {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    article.content[b-b5bxsk851t] {
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pan-x pinch-zoom;
    }
}

.sidebar[b-b5bxsk851t] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-b5bxsk851t] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-b5bxsk851t]  a, .top-row[b-b5bxsk851t]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-b5bxsk851t]  a:hover, .top-row[b-b5bxsk851t]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-b5bxsk851t]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-b5bxsk851t] {
        justify-content: space-between;
    }

    .top-row[b-b5bxsk851t]  a, .top-row[b-b5bxsk851t]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-b5bxsk851t] { flex-direction: row; }
    .sidebar[b-b5bxsk851t] { width: 250px; height: 100dvh; position: sticky; top: 0; flex-shrink: 0; }
}

#blazor-error-ui[b-b5bxsk851t] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-b5bxsk851t] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-brand-wrapper[b-wg1ukis4tx] {
    background: #ffffff;
    padding: .75rem 1rem .5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.nav-brand-logo[b-wg1ukis4tx] {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

.navbar-toggler[b-wg1ukis4tx] {
    appearance: none;
    cursor: pointer;
    width: 3rem;
    height: 2.25rem;
    color: #333;
    position: absolute;
    top: .75rem;
    left: .75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    z-index: 20;
}

.navbar-toggler:checked[b-wg1ukis4tx] {
    background-color: #f2f2f2;
}

/* Entfernte dunkle Top-Bar */
.top-row[b-wg1ukis4tx] { display:none; }

.nav-item[b-wg1ukis4tx] { font-size: .95rem; padding-bottom: .35rem; }
.nav-item:first-of-type[b-wg1ukis4tx] { padding-top: .75rem; }
.nav-item:last-of-type[b-wg1ukis4tx] { padding-bottom: 1rem; }

   .nav-item[b-wg1ukis4tx]  .nav-link {
      color: #444;
      background: none;
      border: none;
      border-radius: 6px;
      height: 2.75rem;
      display: flex;
      align-items: center;
      line-height: 2.75rem;
      width: 100%;
      font-weight: 500;
      gap: 0.85rem; /* etwas kompakter */
   }

/* Einheitlicher Icon-Block sorgt für gleichen Abstand zum Text */
.nav-item[b-wg1ukis4tx]  .nav-link > span[aria-hidden="true"],
.nav-item[b-wg1ukis4tx]  .nav-link > i[aria-hidden="true"] {
    width: 1.4rem; /* fixe Breite */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    /* Firmenrot */
    color: #e30613; /* Basis-Rot */
    transition: color .15s ease;
}

/* Hover/Active: leicht dunkler, ohne Textfarbe zu ändern */
.nav-item[b-wg1ukis4tx]  .nav-link:hover > span[aria-hidden="true"],
.nav-item[b-wg1ukis4tx]  .nav-link:hover > i[aria-hidden="true"],
.nav-item[b-wg1ukis4tx]  a.active > span[aria-hidden="true"],
.nav-item[b-wg1ukis4tx]  a.active > i[aria-hidden="true"] {
    color: #c50511; /* dunkleres Rot */
}

.nav-item[b-wg1ukis4tx]  a.active { background: #f0f0f0; color: #222; } /* grau statt blau */
.nav-item[b-wg1ukis4tx]  .nav-link:hover { background: #f5f5f5; color: #111; }

/* Icons im hellen Layout -> Grautöne / currentColor */
.bi[b-wg1ukis4tx] { filter: none; }
.bi-house-door-fill-nav-menu[b-wg1ukis4tx],
.bi-plus-square-fill-nav-menu[b-wg1ukis4tx],
.bi-list-nested-nav-menu[b-wg1ukis4tx],
.bi-lock-nav-menu[b-wg1ukis4tx],
.bi-person-nav-menu[b-wg1ukis4tx],
.bi-person-badge-nav-menu[b-wg1ukis4tx],
.bi-person-fill-nav-menu[b-wg1ukis4tx],
.bi-arrow-bar-left-nav-menu[b-wg1ukis4tx] {
    /* SVGs waren weiß; wir färben um auf currentColor via filter invert? => ersetzen: */
    background-size: 1.1rem 1.1rem;
    opacity: .85;
}

/* Scrollcontainer heller Hintergrund */
.nav-scrollable[b-wg1ukis4tx] {
    background: #fff;
    border-right: 1px solid #e3e3e3;
    box-shadow: 2px 0 4px -2px rgba(0,0,0,.06);
    display: none;
}

/* Mobile (unter 641px) off-canvas Verhalten */
@media (max-width:640.98px){
  .nav-scrollable[b-wg1ukis4tx]{position:fixed;top:0;left:0;width:250px;height:100vh;overflow:auto;transform:translateX(-100%);transition:transform .25s ease;display:block;z-index:19;}
  .navbar-toggler:checked ~ .nav-scrollable[b-wg1ukis4tx]{transform:translateX(0);} /* slide in */
  body.menu-open[b-wg1ukis4tx]{overflow:hidden;} /* optional future use */
}

/* Desktop - Navigation bleibt fixiert */
@media (min-width:641px){
  .navbar-toggler[b-wg1ukis4tx]{display:none;}
  .nav-scrollable[b-wg1ukis4tx]{display:flex;flex-direction:column;height:100vh;position:fixed;top:0;left:0;width:250px;overflow:hidden;z-index:10;}
  .nav-main[b-wg1ukis4tx]{flex:1 1 auto;overflow:auto;min-height:0;padding-bottom:.5rem;}
  .nav-footer[b-wg1ukis4tx]{flex-shrink:0;padding:.75rem 1rem 1rem;background:#fff;}
}

/* Divider Styling */
.nav-section-divider[b-wg1ukis4tx] {
    margin: .35rem 1rem .65rem;
    border-color: #e5e5e5;
    opacity: 1;
}

.logout-btn[b-wg1ukis4tx] { color:#444; border-color:#ccc; }
.logout-btn:hover[b-wg1ukis4tx] { background:#f5f5f5; color:#111; }

.logout-link[b-wg1ukis4tx] {
  background:none;
  border:none;
  padding:0;
  text-align:left;
  width:100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:.85rem;
  height:2.75rem;
}
.logout-link:hover[b-wg1ukis4tx] { background:#f5f5f5; }
.logout-link:focus[b-wg1ukis4tx] { outline:none; }

.mobile-brand-wrapper[b-wg1ukis4tx] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .75rem .25rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.mobile-brand-logo[b-wg1ukis4tx] {
    max-width: 20rem;
    height: auto;
}

@media (min-width:641px) {
  .mobile-brand-wrapper[b-wg1ukis4tx] {
    display: none;
  }
}
/* /Components/Layout/PopupLayout.razor.rz.scp.css */
/* Mobile: Allow normal body scroll */
@media (max-width: 640.98px) {
    .page[b-vjsec0x2vr] {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    main[b-vjsec0x2vr] {
        flex: 1;
    }

    article.content[b-vjsec0x2vr] {
        /* Let body handle scroll on mobile */
    }
}

/* Desktop: Simplified scroll approach */
@media (min-width: 641px) {
    .page[b-vjsec0x2vr] {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    main[b-vjsec0x2vr] {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    article.content[b-vjsec0x2vr] {
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pan-x pinch-zoom;
    }
}

.sidebar[b-vjsec0x2vr] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-vjsec0x2vr] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-vjsec0x2vr]  a, .top-row[b-vjsec0x2vr]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-vjsec0x2vr]  a:hover, .top-row[b-vjsec0x2vr]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-vjsec0x2vr]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-vjsec0x2vr] {
        justify-content: space-between;
    }

    .top-row[b-vjsec0x2vr]  a, .top-row[b-vjsec0x2vr]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-vjsec0x2vr] { flex-direction: row; }
    .sidebar[b-vjsec0x2vr] { width: 250px; height: 100dvh; position: sticky; top: 0; flex-shrink: 0; }
}

#blazor-error-ui[b-vjsec0x2vr] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-vjsec0x2vr] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/NewOrder.razor.rz.scp.css */
:root[b-x2uc5wmt6r] {
	--camera-bar-height: 160px;
}

.new-order-page[b-x2uc5wmt6r] {
	max-width: 100%;
	padding: 0 .75rem 1rem; /* statt 3rem unten -> weniger Leerraum, kein Scroll wenn Inhalt kurz */
}

.order-card[b-x2uc5wmt6r] {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem 1.25rem 2rem;
	box-shadow: 0 2px 20px rgba(34,34,34,.08);
	margin-top: 1rem;
	overflow: hidden;
}

@media (max-width:575.98px) {
	.order-card[b-x2uc5wmt6r] {
		border-radius: 0;
		box-shadow: none;
		margin-top: 0;
		/* Entfernt künstliche Mindesthöhe, die unnötigen Leerraum erzeugt hat */
		min-height: auto;
	}
}

.close-btn[b-x2uc5wmt6r] {
	position: absolute;
	top: .6rem;
	right: .6rem;
	background: transparent;
	border: none;
	font-size: 1.4rem;
	color: var(--brand-black);
}

.camera-area[b-x2uc5wmt6r] {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
	transition: background-color 0.2s ease, border 0.2s ease;
	border-radius: 12px;
	border: 2px dashed transparent;
	padding: 0.5rem;
}

	.camera-area.drag-over[b-x2uc5wmt6r] {
		background-color: #f5f5f5;
		border: 2px dashed var(--brand-red);
	}

.pick-button[b-x2uc5wmt6r] {
	display: none;
}
/* replaced by bootstrap button */
.ssr-checkbox[b-x2uc5wmt6r] {
	display: none;
}
/* replaced by form-check in markup */
.thumbnail-strip .thumb[b-x2uc5wmt6r] {
	flex: 0 0 auto;
}

.placeholder-text[b-x2uc5wmt6r] {
	color: #666;
	font-size: .95rem;
	margin-top: 1rem;
	text-align: center;
}

.thumbs[b-x2uc5wmt6r] {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	width: 100%;
	margin-top: .5rem;
	justify-content: center;
}

.thumb[b-x2uc5wmt6r] {
	position: relative;
	width: 90px;
	height: 90px;
	border-radius: 10px;
	overflow: hidden;
	background: #eee;
	border: 3px solid transparent;
	transition: border-color 0.2s ease;
}

	.thumb.selected-image[b-x2uc5wmt6r] {
		border-color: #72c685 !important;
		box-shadow: 0 0 0 1px #72c685;
	}

	.thumb img[b-x2uc5wmt6r] {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.thumb .del[b-x2uc5wmt6r] {
		position: absolute;
		top: 2px;
		right: 2px;
		background: rgba(0,0,0,.5);
		border: none;
		color: #fff;
		width: 22px;
		height: 22px;
		border-radius: 50%;
		font-size: .85rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}

.actions[b-x2uc5wmt6r] {
	margin-top: 1.5rem;
}

.saving-overlay[b-x2uc5wmt6r], .modal-overlay[b-x2uc5wmt6r] {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.saving-box[b-x2uc5wmt6r], .modal-box[b-x2uc5wmt6r] {
	background: #222;
	color: #fff;
	padding: 1.6rem 1.4rem;
	border-radius: 14px;
	width: 90%;
	max-width: 360px;
	text-align: center;
}

.modal-box[b-x2uc5wmt6r] {
	background: #fff;
	color: #222;
}

/* Camera overlay */
.camera-overlay[b-x2uc5wmt6r] {
	position: fixed;
	inset: 0;
	background: #000;
	z-index: 3000;
	display: flex;
	flex-direction: column;
}

	.camera-overlay.hidden[b-x2uc5wmt6r] {
		display: none;
	}

.camera-video[b-x2uc5wmt6r] {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

.camera-top-bar[b-x2uc5wmt6r] {
	height: var(--camera-bar-height);
	background: rgba(0,0,0,.35);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	width: 100%;
	flex: 0 0 auto;
	position: relative;
	box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
/* Center reticle across the entire camera area above the bottom bar */
.camera-reticle[b-x2uc5wmt6r] {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: var(--camera-bar-height);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	height: 100%;
}
/* responsive square size: cap at 260px */
.reticle[b-x2uc5wmt6r] {
	position: relative;
	width: 10rem;
	height: 10rem;
}

	.reticle .corner[b-x2uc5wmt6r] {
		position: absolute;
		width: 2.5rem;
		height: 2.5rem;
		border: 0.5rem solid #fff;
	}

@media (max-width:420px) {
	.reticle .corner[b-x2uc5wmt6r] {
		width: 40px;
		height: 40px;
		border-width: 5px;
	}
}

.reticle .corner.tl[b-x2uc5wmt6r] {
	top: 0;
	left: 0;
	border-right: none;
	border-bottom: none;
	border-radius: 12px 0 0 0;
}

.reticle .corner.tr[b-x2uc5wmt6r] {
	top: 0;
	right: 0;
	border-left: none;
	border-bottom: none;
	border-radius: 0 12px 0 0;
}

.reticle .corner.bl[b-x2uc5wmt6r] {
	bottom: 0;
	left: 0;
	border-right: none;
	border-top: none;
	border-radius: 0 0 0 12px;
}

.reticle .corner.br[b-x2uc5wmt6r] {
	bottom: 0;
	right: 0;
	border-left: none;
	border-top: none;
	border-radius: 0 0 12px 0;
}

.camera-bottom-bar[b-x2uc5wmt6r] {
	position: relative;
	margin-top: auto;
	background: rgba(0,0,0,.35);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	padding: .6rem .9rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	height: var(--camera-bar-height);
	box-shadow: 0 -2px 12px rgba(0,0,0,.35);
}

.thumb-strip[b-x2uc5wmt6r] {
	display: flex;
	gap: .4rem;
	overflow-x: auto;
	padding: .2rem 0;
	flex-wrap: wrap;
}

.thumb-mini[b-x2uc5wmt6r] {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	flex: 0 0 auto;
	background: #222;
	border: 2px solid transparent;
	transition: border-color 0.2s ease;
}

	.thumb-mini.selected-image[b-x2uc5wmt6r] {
		border-color: #72c685 !important;
		box-shadow: 0 0 0 1px #72c685;
	}

	.thumb-mini img[b-x2uc5wmt6r] {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.thumb-mini .select-mini[b-x2uc5wmt6r] {
		position: absolute;
		bottom: 2px;
		left: 2px;
		background: rgba(255,255,255,.9);
		border: 2px solid #dee2e6;
		color: #6c757d;
		min-width: 25px;
		width: 25px;
		height: 26px;
		border-radius: 25px;
		font-size: .5rem;
		font-weight: 600;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.2s ease;
		z-index: 2;
		padding: 0;
		white-space: nowrap;
	}

		.thumb-mini .select-mini span[b-x2uc5wmt6r] {
			display: none;
		}

		.thumb-mini .select-mini:hover[b-x2uc5wmt6r] {
			background: rgba(255,255,255,1);
			border-color: #72c685;
			color: #72c685;
		}

		.thumb-mini .select-mini.selected[b-x2uc5wmt6r] {
			background: #72c685 !important;
			border-color: #72c685 !important;
			color: white !important;
			padding: 0 8px;
			width: auto;
		}

			.thumb-mini .select-mini.selected span[b-x2uc5wmt6r] {
				display: inline-block;
			}

	.thumb-mini .del-mini[b-x2uc5wmt6r] {
		position: absolute;
		top: 1px;
		right: 1px;
		background: rgba(0,0,0,.55);
		border: none;
		color: #fff;
		width: 20px;
		height: 20px;
		border-radius: 50%;
		font-size: .7rem;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 2;
	}

.controls-row[b-x2uc5wmt6r] {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: .2rem;
}

.shutter-btn[b-x2uc5wmt6r] {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	border: 5px solid #fff;
	background: rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 0 12px rgba(0,0,0,.4);
	padding: 0;
	box-sizing: border-box;
	aspect-ratio: 1/1; /* ensure perfect circle on iOS Safari */
}

	.shutter-btn .inner[b-x2uc5wmt6r] {
		width: 64px;
		height: 64px;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 0 0 1px rgba(0,0,0,.08);
		display: block;
	}

	.shutter-btn:active:not(:disabled) .inner[b-x2uc5wmt6r] {
		transform: scale(.92);
		transition: transform .08s ease;
	}

	.shutter-btn:disabled[b-x2uc5wmt6r] {
		opacity: .4;
	}

.done-btn[b-x2uc5wmt6r] {
	position: absolute;
	right: .6rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: .9rem;
	padding: .45rem .85rem;
}

.camera-status[b-x2uc5wmt6r] {
	min-height: 18px;
}

.debug-toggle[b-x2uc5wmt6r] {
	position: absolute;
	top: .5rem;
	left: .6rem;
	background: rgba(255,255,255,.15);
	color: #fff;
	border: none;
	font-size: .7rem;
	padding: .25rem .5rem;
	border-radius: 4px;
}

.debug-panel[b-x2uc5wmt6r] {
	background: rgba(0,0,0,.4);
	padding: .3rem .5rem;
	border-radius: 4px;
}

.camera-button[b-x2uc5wmt6r] {
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: #f1f1f1;
	border: 4px dashed var(--brand-red);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-red);
	font-size: 3rem;
	transition: background .2s, transform .15s;
	position: relative;
	flex-direction: column;
	padding: .75rem;
}

	camera-button .order-img[b-x2uc5wmt6r] {
		max-width: 70%;
		height: auto;
		object-fit: contain;
		margin-bottom: .6rem; /* Abstand zum Icon */
		border-radius: 8px;
	}

	camera-button .order-icon[b-x2uc5wmt6r] {
		color: var(--brand-red);
	}

@media (min-width:576px) {
	.camera-button[b-x2uc5wmt6r] {
		width: 210px;
		height: 210px;
		font-size: 3.2rem;
	}
}

@media (min-width:992px) {
	.camera-button[b-x2uc5wmt6r] {
		width: 230px;
		height: 230px;
		font-size: 3.4rem;
	}
}

.thumbnail-grid[b-x2uc5wmt6r] {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(66px,1fr));
	gap: .65rem;
}

@media (min-width:420px) {
	.thumbnail-grid[b-x2uc5wmt6r] {
		grid-template-columns: repeat(auto-fill,minmax(78px,1fr));
	}
}

@media (min-width:576px) {
	.thumbnail-grid[b-x2uc5wmt6r] {
		grid-template-columns: repeat(auto-fill,minmax(90px,1fr));
	}
}

.thumbnail-grid .thumb[b-x2uc5wmt6r] {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #eee;
	position: relative;
}

/* Image selection button */
.image-select-btn[b-x2uc5wmt6r] {
	position: absolute !important;
	bottom: 4px;
	right: 4px;
	min-width: 25px;
	height: 26px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 25px !important;
	background: rgba(255,255,255,.9);
	border: 2px solid #dee2e6;
	color: #6c757d;
	font-size: 0.5rem;
	font-weight: 600;
	transition: all 0.2s ease;
	z-index: 2;
	white-space: nowrap;
}

	.image-select-btn:not(.selected)[b-x2uc5wmt6r] {
		padding: 0;
		width: 25px;
	}

		.image-select-btn:not(.selected) i[b-x2uc5wmt6r] {
			font-size: 0.9rem;
		}

	.image-select-btn i[b-x2uc5wmt6r] {
		font-size: 0.7rem;
	}

	.image-select-btn span[b-x2uc5wmt6r] {
		display: none; /* Hidden by default */
	}

	.image-select-btn:hover[b-x2uc5wmt6r] {
		background: rgba(255,255,255,1);
		border-color: #72c685;
		color: #72c685;
	}

	.image-select-btn.selected[b-x2uc5wmt6r] {
		background: #72c685 !important;
		border-color: #72c685 !important;
		color: white !important;
	}

		.image-select-btn.selected span[b-x2uc5wmt6r] {
			display: inline-block; /* Show text when selected */
		}

		.image-select-btn.selected:hover[b-x2uc5wmt6r] {
			background: #5fb575 !important;
		}

.thumb-del[b-x2uc5wmt6r] {
	position: absolute !important;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50% !important;
	background: rgba(0,0,0,.55);
	border: none;
	z-index: 2;
}

	.thumb-del i[b-x2uc5wmt6r] {
		pointer-events: none;
	}

.upload-label.disabled[b-x2uc5wmt6r] {
	pointer-events: none;
	opacity: .45;
}
/* Brand accent color for all checkboxes (modern browsers) */
.form-check-input[b-x2uc5wmt6r] {
	accent-color: var(--brand-red);
}

	.form-check-input:checked[b-x2uc5wmt6r] {
		background-color: var(--brand-red);
		border-color: var(--brand-red);
	}


	.form-check-input:focus[b-x2uc5wmt6r] {
		box-shadow: 0 0 0 .15rem rgba(208,2,27,.25);
	}
/* FORCE brand red accent for Bootstrap check/radio */
.order-card .form-check-input[b-x2uc5wmt6r] {
	accent-color: var(--brand-red);
}

	.order-card .form-check-input:checked[b-x2uc5wmt6r] {
		background-color: var(--brand-red) !important;
		border-color: var(--brand-red) !important;
	}

	.order-card .form-check-input:focus[b-x2uc5wmt6r] {
		box-shadow: 0 0 0 .18rem rgba(208,2,27,.35) !important;
		border-color: var(--brand-red) !important;
	}

	.order-card .form-check-input:active[b-x2uc5wmt6r] {
		filter: brightness(.95);
	}

/* Restrict horizontal scrolling to thumbnails row only */
.thumbnail-scroll[b-x2uc5wmt6r] {
	display: flex;
	flex-wrap: nowrap;
	gap: .55rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: .25rem .25rem .4rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

	.thumbnail-scroll[b-x2uc5wmt6r]::-webkit-scrollbar {
		height: 8px;
	}

	.thumbnail-scroll[b-x2uc5wmt6r]::-webkit-scrollbar-thumb {
		background: rgba(0,0,0,.25);
		border-radius: 4px;
	}

	.thumbnail-scroll .thumb[b-x2uc5wmt6r] {
		flex: 0 0 auto;
		width: 76px;
		height: 76px;
		border-radius: 14px;
		overflow: hidden;
		background: #eee;
		position: relative;
	}

	/* Vehicle document badge */
	.veh-doc-badge[b-x2uc5wmt6r] {
		position: absolute;
		top: 4px;
		left: 4px;
		background: #18a558; /* green */
		color: #fff;
		width: 24px;
		height: 24px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: .9rem;
		box-shadow: 0 0 0 2px rgba(255,255,255,.75), 0 2px 4px rgba(0,0,0,.25);
		z-index: 3;
	}

	/* Vehicle document classification spinner */
.veh-doc-spinner[b-x2uc5wmt6r] {
	position: absolute;
	top: 4px;
	left: 4px;
	background: rgba(255,255,255,.50);
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	box-shadow: 0 0 0 2px rgba(255,255,255,.75), 0 2px 4px rgba(0,0,0,.25);
	z-index: 3;
}

@media (min-width:576px) {
	.thumbnail-scroll .thumb[b-x2uc5wmt6r] {
		width: 84px;
		height: 84px;
	}
}

@media (min-width:992px) {
	.thumbnail-scroll .thumb[b-x2uc5wmt6r] {
		width: 90px;
		height: 90px;
	}
}

/* Ensure order card itself does not create horizontal scroll */
.order-card[b-x2uc5wmt6r] {
	overflow: hidden;
}
/* Disabled state styles (retain) */
.camera-button:disabled[b-x2uc5wmt6r] {
	opacity: .35;
	cursor: not-allowed;
}

.btn-primary:disabled[b-x2uc5wmt6r], .btn-primary[disabled][b-x2uc5wmt6r] {
	background: #929292 !important;
	border-color: #929292 !important;
	color: #fff !important;
}

.thumb-strip-overlay[b-x2uc5wmt6r] {
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	gap: .45rem;
	padding: .3rem .4rem .3rem .25rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

	.thumb-strip-overlay .thumb-mini[b-x2uc5wmt6r] {
		width: 64px;
		height: 64px;
	}

@media (min-width:576px) {
	.thumb-strip-overlay .thumb-mini[b-x2uc5wmt6r] {
		width: 70px;
		height: 70px;
	}
}

.overlay-controls-row[b-x2uc5wmt6r] {
	position: relative;
	justify-content: center;
	align-items: center;
}

.done-btn-float[b-x2uc5wmt6r] {
	position: absolute;
	right: 1.2rem;
	top: 50%;
	transform: translateY(-50%);
	margin-left: 0 !important;
	height: 50px;
	display: flex;
	align-items: center;
	padding: .6rem 1.05rem;
}

.thumb-fade-indicator[b-x2uc5wmt6r] {
	flex: 0 0 auto;
	width: 42px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #fff;
	font-weight: 600;
	text-shadow: 0 0 4px rgba(0,0,0,.6);
}

@media (min-width:576px) {
	.thumb-fade-indicator[b-x2uc5wmt6r] {
		height: 70px;
	}
}

.shutter-btn[b-x2uc5wmt6r], .shutter-btn .inner[b-x2uc5wmt6r] {
	border-radius: 50% !important;
}

/* Variant 2: Flex right side bar for camera controls on larger screens */

@media (orientation: landscape) {
	.camera-overlay.flex-right[b-x2uc5wmt6r] {
		flex-direction: row-reverse;
	}
		/*
  .camera-overlay.flex-right .camera-video-wrapper { flex:1 1 auto; }
  .camera-overlay.flex-right .camera-reticle { bottom:0; right:220px; }*/

		.camera-overlay.flex-right .camera-bottom-bar[b-x2uc5wmt6r] {
			display: flex;
			flex-direction: row;
			align-items: stretch;
			padding: .75rem .8rem 1rem;
			height: 100%;
			gap: .9rem;
		}

		.camera-overlay.flex-right .thumb-strip[b-x2uc5wmt6r] {
			flex: 1 1 auto;
			display: flex;
			flex-direction: column;
			overflow-y: auto;
			overflow-x: hidden;
			gap: .55rem;
			padding: .1rem .25rem .2rem .1rem;
		}

			.camera-overlay.flex-right .thumb-strip .thumb-mini[b-x2uc5wmt6r] {
				width: 100%;
				height: 5rem;
				width: 5rem;
			}

		.camera-overlay.flex-right .controls-row[b-x2uc5wmt6r] {
			flex: 0 0 auto; /* fixe Breite für Buttons */
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			gap: 1.4rem;
			margin-top: 0;
		}

			.camera-overlay.flex-right .controls-row .shutter-btn[b-x2uc5wmt6r] {
				position: absolute;
				padding: 0 0.5rem;
			}

		.camera-overlay.flex-right .done-btn[b-x2uc5wmt6r], .camera-overlay.flex-right .done-btn-float[b-x2uc5wmt6r] {
			position: relative;
			transform: none;
			right: 0;
			width: auto;
			height: auto;
			margin: 0 0 2.5rem 0;
			bottom: 0;
		}
}
/* /Components/Pages/OrderEdit.razor.rz.scp.css */
.upload-loading-overlay[b-env6q1qryt] {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   background-color: rgba(255, 255, 255, 0.9);
   z-index: 10;
   border-radius: 0.375rem;
}

.upload-loading-overlay p[b-env6q1qryt] {
   margin: 0;
   color: #0d6efd;
   font-size: 0.9rem;
   font-weight: 500;
}

.document-upload-box.drag-over[b-env6q1qryt] {
   background-color: #e9ecef !important;
   transform: translateY(-2px);
}

.section-header[b-env6q1qryt] {
   font-size: 1.1rem;
   font-weight: 600;
   padding: 0.5rem 1rem;
   border-radius: 0.375rem 0.375rem 0 0;
   color: #fff;
   margin-bottom: 0 !important; /* Override mb-3 */
}

.section-header[b-env6q1qryt] {
   background-color: #990000;
}


.section-content[b-env6q1qryt] {
   border: 1px solid #dee2e6;
   border-top: none;
   padding: 1.5rem;
   border-radius: 0 0 0.375rem 0.375rem;
   background-color: #fff;
}

.form-section[b-env6q1qryt] {
   margin-bottom: 2rem;
}

.form-section h5[b-env6q1qryt] {
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.readonly-field[b-env6q1qryt] {
    background-color: #f8f9fa;
}

.btn-action[b-env6q1qryt] {
    min-width: 120px;
}

/* German License Plate Styling */
.license-plate-container[b-env6q1qryt] {
    margin-bottom: 1rem;
}

.license-plate[b-env6q1qryt] {
    border: 2px solid #000;
    border-radius: 8px;
    background: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    height: 50px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #000;
    overflow: hidden;
}

.country-code[b-env6q1qryt] {
    background: #003399;
    color: white;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    min-width: 40px;
}

.plate-number[b-env6q1qryt] {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: white;
}

.license-input[b-env6q1qryt] {
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #000;
    text-align: center;
    box-shadow: none !important;
    outline: none !important;
}

.license-input:focus[b-env6q1qryt] {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Colored Section Headers */
.section-header[b-env6q1qryt] {
    padding: 4px 16px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

.background-light[b-env6q1qryt] {
    background-color: #dfdfdf;
}

.mb-4[b-env6q1qryt] {
   margin-bottom: 1rem !important;
}

.document-upload-box[b-env6q1qryt] {
    position: relative;
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Allow arrows to overflow */
    /* iOS touch handling */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.document-upload-container[b-env6q1qryt] {
    overflow: visible !important;
}

.document-upload-box:hover[b-env6q1qryt] {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.border-success-dashed[b-env6q1qryt] {
    border-color: #28a745 !important;
}

.border-danger-dashed[b-env6q1qryt] {
    border-color: #dc3545 !important;
}

.icon-main[b-env6q1qryt] {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.icon-upload[b-env6q1qryt] {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 10px;
}

.document-upload-box p[b-env6q1qryt] {
    margin: 5px 0;
    font-weight: 500;
    color: #495057;
}

/* Thumbnail Gallery */
.thumbnail-gallery[b-env6q1qryt] {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: visible; 
    padding: 5px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
    justify-content: center; /* Center the content */
    position: relative; /* Allow z-index stacking context */
    z-index: 1; /* Ensure gallery is above parent container */
    flex-wrap: nowrap; /* Prevent wrapping */
    max-width: 100%; /* Never exceed container width */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.thumbnail-gallery[b-env6q1qryt]::-webkit-scrollbar {
    display: none;
}

/* Responsive thumbnail sizing */
.thumbnail-gallery img[b-env6q1qryt] {
    width: clamp(40px, 15vw, 60px); /* Responsive size between 40px-60px */
    height: clamp(40px, 15vw, 60px); /* Maintain square aspect ratio */
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa; /* Fallback background while loading */
    flex-shrink: 1; /* Allow thumbnails to shrink */
    min-width: 40px; /* Minimum size */
    min-height: 40px; /* Minimum size */
}

.thumbnail-gallery img:hover[b-env6q1qryt] {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.thumbnail-container[b-env6q1qryt] {
    position: relative;
    display: inline-block;
    flex-shrink: 1; /* Allow container to shrink */
    width: clamp(40px, 15vw, 60px); /* Match image size */
    height: clamp(40px, 15vw, 60px); /* Match image size */
    min-width: 40px; /* Minimum size */
    min-height: 40px; /* Minimum size */
}

/* Make PDF icons same size as image thumbnails */
.thumbnail-container .fa-file-pdf[b-env6q1qryt] {
    width: clamp(40px, 15vw, 60px) !important; /* Responsive size */
    height: clamp(40px, 15vw, 60px) !important; /* Responsive size */
    min-width: 40px !important; /* Minimum size */
    max-width: 60px !important; /* Maximum size */
    min-height: 40px !important; /* Minimum size */
    max-height: 60px !important; /* Maximum size */
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 1;
    box-sizing: border-box;
    font-size: clamp(20px, 7vw, 30px) !important; /* Responsive icon size */
}

.thumbnail-container .fa-file-pdf:hover[b-env6q1qryt] {
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Loading states for images */
.thumbnail-loading[b-env6q1qryt] {
    width: clamp(40px, 15vw, 60px); /* Responsive size */
    height: clamp(40px, 15vw, 60px); /* Responsive size */
    border-radius: 6px;
    border: 2px solid #dee2e6;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-b-env6q1qryt 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: clamp(10px, 3vw, 12px); /* Responsive font */
}

@keyframes loading-b-env6q1qryt {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.thumbnail-error[b-env6q1qryt] {
    width: clamp(40px, 15vw, 60px); /* Responsive size */
    height: clamp(40px, 15vw, 60px); /* Responsive size */
    border-radius: 6px;
    border: 2px solid #dc3545;
    background-color: #f8d7da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #721c24;
    font-size: clamp(8px, 2.5vw, 10px); /* Responsive font */
    text-align: center;
}

.thumbnail-nav[b-env6q1qryt] {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.thumbnail-nav:hover[b-env6q1qryt] {
    background: #0056b3;
}

.thumbnail-nav:disabled[b-env6q1qryt] {
    background: #6c757d;
    cursor: not-allowed;
}

/* New Font Awesome navigation buttons */
.thumbnail-nav-fa[b-env6q1qryt] {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    width: clamp(12px, 4vw, 16px); /* Responsive width */
    height: clamp(28px, 9vw, 36px); /* Responsive height */
    cursor: pointer;
    font-size: clamp(10px, 3vw, 12px); /* Responsive font */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0; /* Prevent button from shrinking */
    position: relative; /* Allow z-index to work */
    z-index: 5; /* Ensure arrows appear above adjacent sections */
    padding: 0;
    min-width: 12px; /* Minimum width */
    min-height: 28px; /* Minimum height */
}

.thumbnail-nav-fa:hover[b-env6q1qryt] {
    background: #5a6268;
}

.thumbnail-nav-fa:disabled[b-env6q1qryt] {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Thumbnail placeholders for minimum 2 slots */
.thumbnail-placeholder[b-env6q1qryt] {
    width: clamp(40px, 15vw, 60px); /* Responsive size */
    height: clamp(40px, 15vw, 60px); /* Responsive size */
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: clamp(16px, 5vw, 20px); /* Responsive font */
    min-width: 40px; /* Minimum size */
    min-height: 40px; /* Minimum size */
}

.thumbnail-placeholder[b-env6q1qryt]::before {
    content: '+';;
}

/* Lightbox Overlay */
.lightbox-overlay[b-env6q1qryt] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.lightbox-content[b-env6q1qryt] {
    position: relative;
    max-width: 50vw;
    max-height: 50vh;
}

.lightbox-image[b-env6q1qryt] {
    width: 50vw;
    height: 50vh;
    object-fit: contain;
}

.lightbox-close[b-env6q1qryt] {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
}

.lightbox-nav[b-env6q1qryt] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.lightbox-nav:hover[b-env6q1qryt] {
    background: rgba(255, 255, 255, 0.9);
}

.lightbox-nav.prev[b-env6q1qryt] {
    left: -60px;
}

.lightbox-nav.next[b-env6q1qryt] {
    right: -60px;
}

.lightbox-counter[b-env6q1qryt] {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}

/* Document Icons */
.document-icon[b-env6q1qryt] {
    text-align: center;
    flex: 1;
}

.document-icon-large[b-env6q1qryt] {
    font-size: 2rem;
    margin-bottom: 4px;
}

.document-icon small[b-env6q1qryt] {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Form adjustments for better alignment */
.form-floating > label[b-env6q1qryt] {
    display: flex;
    align-items: center;
}

.form-floating > label i[b-env6q1qryt] {
    margin-right: 4px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .col-lg-4[b-env6q1qryt] {
        margin-bottom: 2rem;
    }
    
    .license-plate[b-env6q1qryt] {
        width: 100%;
        max-width: 300px;
    }
    
    .document-icon-large[b-env6q1qryt] {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .document-upload-box[b-env6q1qryt] {
        min-height: 100px;
        padding: 15px;
    }
    
    .icon-main[b-env6q1qryt] {
        font-size: 2rem;
    }
    
    .thumbnail-gallery[b-env6q1qryt] {
        gap: 3px; /* Reduce gap on smaller screens */
    }
    
    .thumbnail-gallery img[b-env6q1qryt] {
        width: clamp(35px, 12vw, 50px); /* Smaller on mobile */
        height: clamp(35px, 12vw, 50px); /* Smaller on mobile */
        min-width: 35px;
        min-height: 35px;
    }
    
    .thumbnail-container[b-env6q1qryt] {
        width: clamp(35px, 12vw, 50px); /* Smaller on mobile */
        height: clamp(35px, 12vw, 50px); /* Smaller on mobile */
        min-width: 35px;
        min-height: 35px;
    }
    
    .thumbnail-container .fa-file-pdf[b-env6q1qryt] {
        width: clamp(35px, 12vw, 50px) !important; /* Smaller on mobile */
        height: clamp(35px, 12vw, 50px) !important; /* Smaller on mobile */
        min-width: 35px !important;
        min-height: 35px !important;
        font-size: clamp(18px, 6vw, 25px) !important; /* Smaller icon on mobile */
    }
    
    .thumbnail-loading[b-env6q1qryt],
    .thumbnail-error[b-env6q1qryt],
    .thumbnail-placeholder[b-env6q1qryt] {
        width: clamp(35px, 12vw, 50px); /* Smaller on mobile */
        height: clamp(35px, 12vw, 50px); /* Smaller on mobile */
        min-width: 35px;
        min-height: 35px;
    }
    
    .thumbnail-nav-fa[b-env6q1qryt] {
        width: clamp(10px, 3vw, 14px); /* Smaller on mobile */
        height: clamp(24px, 8vw, 32px); /* Smaller on mobile */
        font-size: clamp(8px, 2.5vw, 10px); /* Smaller font on mobile */
        min-width: 10px;
        min-height: 24px;
    }
    
    .thumb-del[b-env6q1qryt],
    .thumbnail-selected-badge[b-env6q1qryt] {
        width: clamp(18px, 5vw, 20px) !important; /* Smaller on mobile */
        height: clamp(18px, 5vw, 20px) !important; /* Smaller on mobile */
        min-width: 18px !important;
        min-height: 18px !important;
    }
    
    .thumb-del i[b-env6q1qryt] {
        font-size: clamp(10px, 3vw, 12px); /* Smaller icon on mobile */
    }
    
    .thumbnail-selected-badge i[b-env6q1qryt] {
        font-size: clamp(12px, 3.5vw, 14px); /* Smaller icon on mobile */
    }
    
    .lightbox-nav.prev[b-env6q1qryt] {
        left: 10px;
    }
    
    .lightbox-nav.next[b-env6q1qryt] {
        right: 10px;
    }
}

/* --- Fix for floating label overlay issue in OrderEdit --- */
.form-floating > .form-control[b-env6q1qryt],
.form-floating > .form-select[b-env6q1qryt],
.form-floating > textarea[b-env6q1qryt] {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label[b-env6q1qryt] {
    opacity: 1 !important;
    transform: scale(.85) translateY(-0.8rem) translateX(0.15rem) !important;
    background: transparent;
    padding: 0 0.25em;
    z-index: 2;
    left: 0.75rem;
    top: 0.2rem;
    pointer-events: none;
    position: absolute;
}

/* Custom Time Input with Arrows */
.time-input-wrapper[b-env6q1qryt] {
    position: relative;

}

.small-time-input-wrapper[b-env6q1qryt] {
    position: relative;
    width: 78%;
    margin-right: 2px;
}

.time-input-with-arrows[b-env6q1qryt] {
    /* Add padding to the right to avoid text overlapping with arrows */
    padding-right: 2.5rem !important; 
}

/* Style for both up and down arrow buttons */
.time-arrow-btn[b-env6q1qryt] {
    position: absolute;
    right: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d;
    width: 24px;
    height: 50%; /* Each button takes half the height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 3; /* Ensure buttons are above the input field */
}

.time-arrow-btn:hover[b-env6q1qryt] {
    color: #000;
}

/* Position the 'up' arrow button on the top half */
.time-arrow-btn.up[b-env6q1qryt] {
    top: 0;
}

/* Position the 'down' arrow button on the bottom half */
.time-arrow-btn.down[b-env6q1qryt] {
    bottom: 0;
}

/* Adjust symbol size and position */
.time-arrow-btn[b-env6q1qryt] {
    font-size: 0.7rem;
    line-height: 1;
}

/* Ensure the floating label is not overlapped by the buttons */
.time-input-wrapper .time-label[b-env6q1qryt] {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

/* Modal styles for order type change confirmation */
.modal-overlay[b-env6q1qryt] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-box[b-env6q1qryt] {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Delete confirmation modal - wider */
.modal-box-delete[b-env6q1qryt] {
    max-width: 800px;
    width: 90%;
}

.modal-box h2[b-env6q1qryt] {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.modal-box p[b-env6q1qryt] {
    margin-bottom: 0.5rem;
}

.modal-box .form-select[b-env6q1qryt] {
    margin-bottom: 1rem;
}

/* --- Insurance Dropdown Custom Styling --- */
.insurance-dropdown-menu[b-env6q1qryt],
.dropdown-menu.show[style*="width: 100%"][b-env6q1qryt] {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-height: 220px;
    overflow-y: auto;
    min-width: 220px;
    padding: 0.25rem 0;
    z-index: 1050;
    word-break: break-word;
    white-space: normal;
}

.insurance-dropdown-menu .dropdown-item[b-env6q1qryt],
.dropdown-menu.show[style*="width: 100%"] .dropdown-item[b-env6q1qryt] {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0.5rem 1rem;
}

.insurance-dropdown-menu .dropdown-item-text[b-env6q1qryt],
.dropdown-menu.show[style*="width: 100%"] .dropdown-item-text[b-env6q1qryt] {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0.5rem 1rem;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Custom scrollbar for insurance dropdown */
.insurance-dropdown-menu[b-env6q1qryt]::-webkit-scrollbar,
.dropdown-menu.show[style*="width: 100%"][b-env6q1qryt]::-webkit-scrollbar {
    width: 8px;
    background: #f1f1f1;
    border-radius: 4px;
}
.insurance-dropdown-menu[b-env6q1qryt]::-webkit-scrollbar-thumb,
.dropdown-menu.show[style*="width: 100%"][b-env6q1qryt]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.insurance-dropdown-menu[b-env6q1qryt]::-webkit-scrollbar-thumb:hover,
.dropdown-menu.show[style*="width: 100%"][b-env6q1qryt]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Image selection for AS WEGAS upload */

/* Selection button in lightbox */
.lightbox-select-btn[b-env6q1qryt] {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 7px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lightbox-select-btn:hover[b-env6q1qryt] {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-select-btn.selected[b-env6q1qryt] {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.lightbox-select-btn.selected:hover[b-env6q1qryt] {
    background-color: #218838;
    border-color: #1e7e34;
}

.lightbox-select-btn i[b-env6q1qryt] {
    font-size: 16px;
}

/* Convert to Image button in lightbox */
.lightbox-convert-btn[b-env6q1qryt] {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
    border: 2px solid #0d6efd;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lightbox-convert-btn:hover:not(:disabled)[b-env6q1qryt] {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-convert-btn:disabled[b-env6q1qryt] {
    cursor: not-allowed;
    opacity: 0.6;
}

.lightbox-convert-btn.converting[b-env6q1qryt] {
    background-color: #6c757d;
    border-color: #6c757d;
}

.lightbox-convert-btn i[b-env6q1qryt] {
    font-size: 16px;
}

/* Green indicator badge on thumbnails */
.thumbnail-selected-badge[b-env6q1qryt] {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    width: clamp(20px, 6vw, 24px); /* Responsive size */
    height: clamp(20px, 6vw, 24px); /* Responsive size */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 3.5vw, 14px); /* Responsive font */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
    min-width: 20px; /* Minimum size */
    min-height: 20px; /* Minimum size */
}

.thumbnail-selected-badge i[b-env6q1qryt] {
    font-size: clamp(14px, 4vw, 16px); /* Responsive icon size */
}

/* Ensure thumbnail container is positioned relative and wraps content */
.thumbnail-container[b-env6q1qryt] {
    position: relative !important;
    display: inline-block !important;
    vertical-align: top;
    line-height: 0; /* Remove extra spacing */
}

/* Delete button for thumbnails - positioned at bottom-right corner, matching green badge format */
.thumb-del[b-env6q1qryt] {
    position: absolute !important;
    bottom: -5px !important;
    right: -5px !important;
    width: clamp(20px, 6vw, 24px) !important; /* Responsive size */
    height: clamp(20px, 6vw, 24px) !important; /* Responsive size */
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background-color: #dc3545 !important;
    border: none !important;
    z-index: 20 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 1;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    min-width: 20px !important; /* Minimum size */
    min-height: 20px !important; /* Minimum size */
}

.thumb-del:hover[b-env6q1qryt] {
    background: rgba(220, 53, 69, 1) !important;
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    border-color: white !important;
}

.thumb-del:active[b-env6q1qryt] {
    transform: scale(1.05);
}

.thumb-del i[b-env6q1qryt] {
    pointer-events: none;
    font-size: clamp(12px, 3.5vw, 14px); /* Responsive icon size */
    color: white;
}

/* Ensure thumbnails inside container don't break positioning */
.thumbnail-container img[b-env6q1qryt],
.thumbnail-container i.fa-file-pdf[b-env6q1qryt] {
    display: block;
    position: relative;
    margin: 0;
}

/* jQuery UI draggable helper */
.ui-draggable-dragging[b-env6q1qryt] {
    opacity: 0.9 !important;
}
#info-delete[b-env6q1qryt]{
    z-index:1500!important;
}

/* Traffic Light Status Buttons */
.traffic-light-btn[b-env6q1qryt] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    line-height: 0;
    font-size: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    background-color: transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.traffic-light-btn.status-red[b-env6q1qryt] {
    background-color: #990000 !important;
}

.traffic-light-btn.status-orange[b-env6q1qryt] {
    background-color: #ffc107 !important;
}

.traffic-light-btn.status-green[b-env6q1qryt] {
    background-color: #28a745 !important;
}

.traffic-light-btn:hover:not(.active)[b-env6q1qryt] {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.traffic-light-btn.active[b-env6q1qryt] {
    width: 24px;
    height: 24px;
    border: 4px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.traffic-light-btn.active.status-red[b-env6q1qryt] {
    background-color: #990000 !important;
}

.traffic-light-btn.active.status-orange[b-env6q1qryt] {
    background-color: #ffc107 !important;
}

.traffic-light-btn.active.status-green[b-env6q1qryt] {
    background-color: #28a745 !important;
}

.traffic-light-btn:active[b-env6q1qryt] {
    transform: scale(0.95);
}

.traffic-light-btn-group[b-env6q1qryt] {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dokumente header specific styles */
.dokumente-file-count[b-env6q1qryt] {
    max-width: 150px;
}

.dokumente-title[b-env6q1qryt] {
    padding: 0 0.5rem;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .traffic-light-btn-group[b-env6q1qryt] {
        padding: 2px 4px;
    }
    
    .traffic-light-btn[b-env6q1qryt] {
        width: 16px;
        height: 16px;
    }
    
    .traffic-light-btn.active[b-env6q1qryt] {
        width: 20px;
        height: 20px;
        border-width: 3px !important;
    }
    
    .section-header-dokumente[b-env6q1qryt] {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .dokumente-file-count[b-env6q1qryt] {
        max-width: 80px;
        font-size: 0.75rem !important;
    }
    
    .dokumente-title[b-env6q1qryt] {
        padding: 0 0.25rem;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .dokumente-file-count[b-env6q1qryt] {
        max-width: 50px;
    }
}

.traffic-light-btn-group .traffic-light-btn:not(.active).status-red[b-env6q1qryt] {
    background-color: rgba(139, 0, 0, 0.7) !important;
}

.traffic-light-btn-group .traffic-light-btn:not(.active).status-orange[b-env6q1qryt] {
    background-color: rgba(184, 134, 11, 0.7) !important;
}

.traffic-light-btn-group .traffic-light-btn:not(.active).status-green[b-env6q1qryt] {
    background-color: rgba(34, 139, 34, 0.7) !important;
}

/* ========================================
   Camera Overlay Styles for Schadenbilder
   ======================================== */
:root[b-env6q1qryt] {
    --camera-bar-height: 160px;
}

/* Camera overlay - full screen */
.camera-overlay[b-env6q1qryt] {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 3000;
    display: flex;
    flex-direction: column;
}

.camera-overlay.hidden[b-env6q1qryt] {
    display: none;
}

.camera-video[b-env6q1qryt] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* Center reticle across the entire camera area above the bottom bar */
.camera-reticle[b-env6q1qryt] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--camera-bar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    height: 100%;
}

/* Responsive square size for reticle */
.reticle[b-env6q1qryt] {
    position: relative;
    width: 10rem;
    height: 10rem;
}

.reticle .corner[b-env6q1qryt] {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border: 0.5rem solid #fff;
}

@media (max-width: 420px) {
    .reticle .corner[b-env6q1qryt] {
        width: 40px;
        height: 40px;
        border-width: 5px;
    }
}

.reticle .corner.tl[b-env6q1qryt] {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
}

.reticle .corner.tr[b-env6q1qryt] {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 12px 0 0;
}

.reticle .corner.bl[b-env6q1qryt] {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 12px;
}

.reticle .corner.br[b-env6q1qryt] {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 12px 0;
}

/* Camera bottom bar with controls */
.camera-bottom-bar[b-env6q1qryt] {
    position: relative;
    margin-top: auto;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: .6rem .9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: var(--camera-bar-height);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .35);
}

/* Thumbnail strip in camera overlay */
.thumb-strip[b-env6q1qryt] {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .2rem 0;
    flex-wrap: wrap;
}

.thumb-strip-overlay[b-env6q1qryt] {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: .45rem;
    padding: .3rem .4rem .3rem .25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.thumb-strip-overlay .thumb-mini[b-env6q1qryt] {
    width: 64px;
    height: 64px;
}

@media (min-width: 576px) {
    .thumb-strip-overlay .thumb-mini[b-env6q1qryt] {
        width: 70px;
        height: 70px;
    }
}

.thumb-mini[b-env6q1qryt] {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #222;
}

.thumb-mini img[b-env6q1qryt] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-mini .del-mini[b-env6q1qryt] {
    position: absolute;
    top: 1px;
    right: 1px;
    background: rgba(0, 0, 0, .55);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Controls row */
.controls-row[b-env6q1qryt] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: .2rem;
}

.overlay-controls-row[b-env6q1qryt] {
    position: relative;
    justify-content: center;
    align-items: center;
}

/* Shutter button */
.shutter-btn[b-env6q1qryt] {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 12px rgba(0, 0, 0, .4);
    padding: 0;
    box-sizing: border-box;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.shutter-btn .inner[b-env6q1qryt] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    display: block;
}

.shutter-btn:active:not(:disabled) .inner[b-env6q1qryt] {
    transform: scale(.92);
    transition: transform .08s ease;
}

.shutter-btn:disabled[b-env6q1qryt] {
    opacity: .4;
    cursor: not-allowed;
}

.shutter-btn[b-env6q1qryt], .shutter-btn .inner[b-env6q1qryt] {
    border-radius: 50% !important;
}

/* Done button */
.done-btn[b-env6q1qryt] {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .9rem;
    padding: .45rem .85rem;
}

.done-btn-float[b-env6q1qryt] {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0 !important;
    height: 50px;
    display: flex;
    align-items: center;
    padding: .6rem 1.05rem;
}

/* Mobile view visibility - hide elements on mobile */
@media (max-width: 768px) {

    /* Hide elements on mobile */
    .hide-on-mobile[b-env6q1qryt] {
        display: none !important;
    }

    /* Show elements on mobile */
    .show-on-mobile[b-env6q1qryt] {
        display: block !important;
    }

    /* Ensure specific mobile-visible containers display properly */
    .mobile-visible-row[b-env6q1qryt] {
        display: flex !important;
    }

    .mobile-visible-form-floating[b-env6q1qryt] {
        display: block !important;
    }

    /* Reorder Scheibeninfo to appear first on mobile */
    .section-content>.row[b-env6q1qryt] {
        display: flex;
        flex-wrap: wrap;
    }

    .scheibeninfo-container[b-env6q1qryt] {
        order: -1 !important;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Make input fields and checkboxes side by side on mobile */
    .section-content .row.gx-3.gy-3>.col-12.col-md-4[b-env6q1qryt],
    .section-content .row.gx-3.gy-3>.col-6.col-md-4[b-env6q1qryt] {
        width: calc(100% - 50px) !important;
        flex: 0 0 auto !important;
    }

    .section-content .row.gx-3.gy-3>.col-12.col-md-2[b-env6q1qryt] {
        width: 50px !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Landscape mode adjustments */
@media (orientation: landscape) {
    .camera-overlay.flex-right[b-env6q1qryt] {
        flex-direction: row-reverse;
    }

    .camera-overlay.flex-right .camera-bottom-bar[b-env6q1qryt] {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        padding: .75rem .8rem 1rem;
        height: 100%;
        gap: .9rem;
    }

    .camera-overlay.flex-right .thumb-strip[b-env6q1qryt] {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        gap: .55rem;
        padding: .1rem .25rem .2rem .1rem;
    }

    .camera-overlay.flex-right .thumb-strip .thumb-mini[b-env6q1qryt] {
        width: 5rem;
        height: 5rem;
    }

    .camera-overlay.flex-right .controls-row[b-env6q1qryt] {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.4rem;
        margin-top: 0;
    }

    .camera-overlay.flex-right .controls-row .shutter-btn[b-env6q1qryt] {
        position: absolute;
        padding: 0 0.5rem;
    }

    .camera-overlay.flex-right .done-btn[b-env6q1qryt],
    .camera-overlay.flex-right .done-btn-float[b-env6q1qryt] {
        position: relative;
        transform: none;
        right: 0;
        width: auto;
        height: auto;
        margin: 0 0 2.5rem 0;
        bottom: 0;
    }
}

/* New Upload Blocking Styles */
.upload-blocking-overlay[b-env6q1qryt] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.upload-blocking-message[b-env6q1qryt] {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.upload-blocking-message h4[b-env6q1qryt] {
    color: #333;
    margin-bottom: 1rem;
}

.upload-blocking-message p[b-env6q1qryt] {
    color: #666;
    margin-bottom: 0.5rem;
}
/* /Components/Pages/OrderOverview.razor.rz.scp.css */
.clickable-row[b-4rjunefrah] {
    cursor: pointer;
    border: 1px solid #e0e0e0; /* Light border for cards */
    border-radius: .25rem; /* Rounded corners */
}
.clickable-row:hover[b-4rjunefrah] {
    background-color: #f8f9fa;
}
.nav-pills .btn-light.active[b-4rjunefrah] {
    background-color: #007bff; /* Example active color for light buttons */
    color: white;
}
.nav-pills .btn-danger.active[b-4rjunefrah] {
    background-color: #dc3545; /* Ensure danger button stays red when active */
    color: white;
}

.license-input[b-4rjunefrah] {
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #000;
    text-align: center;
    box-shadow: none !important;
    outline: none !important;
}

    .license-input:focus[b-4rjunefrah] {
        border: none;
        box-shadow: none;
        background: transparent;
    }

.plate-number[b-4rjunefrah] {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: white;
}

/* German License Plate Styling */
.license-plate-container[b-4rjunefrah] {
    margin-bottom: 0rem !important; /* Adjust margin for table-like display */
    width: 100%;
}

.license-plate[b-4rjunefrah] {
    border: 2px solid #000;
    border-radius: 8px;
    background: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    height: 35px; /* Adjusted height for table row */
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px; /* Adjusted font size for table row */
    color: #000;
    overflow: hidden;
    width: 100%;
    white-space: nowrap; 
}

.country-code[b-4rjunefrah] {
    background: #003399;
    color: white;
    padding: 0 6px; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* Adjusted font size */
    font-weight: bold;
    min-width: 30px; /* Adjusted min-width */
}

.license-input[b-4rjunefrah] {
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px; /* Adjusted font size */
    color: #000;
    text-align: center;
    box-shadow: none !important;
    outline: none !important;
}

    .license-input:focus[b-4rjunefrah] {
        border: none;
        box-shadow: none;
        background: transparent;
    }

.table-responsive-scroll[b-4rjunefrah] {
    width: 100%; /* Ensure the container takes full width */
    display: block; /* Ensure it behaves as a block for overflow */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.table-responsive-scroll .card[b-4rjunefrah] {
    min-width: max-content; /* Force cards to expand to content width */
}

.order-overview-row[b-4rjunefrah] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    min-width: max-content; /* Ensure the row expands to fit content */
}

.order-col-checkbox[b-4rjunefrah] {
    flex-shrink: 0;
    min-width: 50px; /* Adjust as needed */
    padding-right: 0.5rem;
}

.order-col-plate[b-4rjunefrah] {
    flex-shrink: 0;
    min-width: 180px; /* Min width for license plate */
    max-width: 180px;
    padding-right: 0.5rem;
    white-space: normal; /* Allow text wrapping */
    word-break: break-word; /* Ensure long words break */
    cursor: default; /* Override pointer cursor for this column */
}

.order-col-plate .plate-number[b-4rjunefrah] {
    cursor: text; /* Show text cursor for selectable license plate */
    white-space: nowrap; /* Prevent text wrapping inside plate */
}

.order-col-vehicle[b-4rjunefrah] {
    flex-shrink: 0;
    min-width: 280px; /* Doubled width for vehicle description */
    max-width: 280px;
    padding-right: 0.5rem;
    white-space: normal; /* Allow text wrapping */
    word-break: break-word; /* Ensure long words break */
    align-self: center;
    font-size: 0.85rem; /* Smaller font size like Termin column */
    line-height: 1.3;
}

.order-col[b-4rjunefrah] {
    flex-shrink: 0;
    min-width: 120px; /* Standard width for other columns */
    max-width: 120px;
    padding-right: 0.5rem;
    white-space: normal; /* Allow text wrapping */
    word-break: break-word; /* Ensure long words break */
    align-self: center;
}

.header-row .order-col[b-4rjunefrah],
.header-row .order-col-plate[b-4rjunefrah],
.header-row .order-col-vehicle[b-4rjunefrah],
.header-row .order-col-checkbox[b-4rjunefrah] {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.order-col-auftragsart[b-4rjunefrah] {
    min-width: 120px;
    max-width: 120px;
}

.order-col-scheibeninfo[b-4rjunefrah] {
    min-width: 350px;
    max-width: 350px;
    font-size: 0.85rem; 
    line-height: 1.3;
}

.scheibeninfo-text[b-4rjunefrah] {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show up to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    max-width: 100%;
}

/* Centered column for checkboxes */
.order-col-centered[b-4rjunefrah] {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* OnSite checkbox styling - larger with green checkmark only */
.checkbox-onsite[b-4rjunefrah] {
    width: 25px;
    height: 25px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    position: relative;
    transition: border-color 0.2s;
}

.checkbox-onsite:hover[b-4rjunefrah] {
    border-color: #28a745;
}

.checkbox-onsite:checked[b-4rjunefrah] {
    border-color: #28a745;
    background-color: white;
}

.checkbox-onsite:checked[b-4rjunefrah]::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 15px;
    border: solid #28a745;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}


/* Fallback: allow card-body to scroll if needed */

.loading-placeholder[b-4rjunefrah], .loading-placeholder-input[b-4rjunefrah] {
    display: inline-block;
    height: 1em;
    width: 80%;
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: pulse-b-4rjunefrah 1.5s infinite ease-in-out;
}

.loading-placeholder-input[b-4rjunefrah] {
    height: 31px; /* Match form-control-sm height */
    width: 100%;
}

@keyframes pulse-b-4rjunefrah {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

/* Modal Overlay Styles */
.modal-overlay[b-4rjunefrah] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-box[b-4rjunefrah] {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1051;
}
/* /Components/Pages/PdfTemplate.razor.rz.scp.css */
.pdf-container[b-xi88z280fs] {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #fff;
    width: 794px; /* A4 width at 96dpi */
    height: 1123px; /* A4 height at 96dpi - STRICT constraint for single page */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent content overflow */
}

.pdf-row-flex[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    flex-wrap: nowrap; /* Prevent wrapping */
    min-width: 0;
    position: relative;
}

.pdf-row-flex > .pdf-section-box[b-xi88z280fs],
.pdf-row-flex > .pdf-section-box-blue[b-xi88z280fs] {
    flex: 1 1 50%; /* Each takes up 50% of the width */
    min-width: 0; /* Allow shrinking */
}

.header[b-xi88z280fs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.license-plate-section[b-xi88z280fs] {
    flex-grow: 1;
}

.license-plate-display[b-xi88z280fs] {
    display: inline-flex;
    align-items: center;
    border: 2px solid #000;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

.country-code[b-xi88z280fs] {
    background-color: #003399; /* Dark blue for Germany */
    color: #fff;
    padding: 5px 8px;
    margin-right: 10px;
    border-radius: 3px;
}

.plate-number[b-xi88z280fs] {
    letter-spacing: 1px;
}

.logo[b-xi88z280fs] {
    text-align: right;
}

.section-grid[b-xi88z280fs] {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 15px;
    margin-bottom: 30px;
}

.section-grid-bottom[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 3px;
}

.scheibeninfo-box[b-xi88z280fs] {
    grid-column: 1 / -1; /* Span all columns */
}

.pdf-teile-row[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.pdf-teile-row > .pdf-section-box[b-xi88z280fs] {
    flex: 1;
}

/* --- Custom rows for Wischer and KAM --- */
.pdf-wischer-row[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 0;
    margin-bottom: 0;
}

.pdf-wischer-row .wischer-box[b-xi88z280fs] {
    flex: 2 1 0;
    min-width: 0;
}

.pdf-wischer-row .kundenstatus-placeholder[b-xi88z280fs] {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    /* Optionally, keep height for alignment */
}

.pdf-kam-row[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 0;
    margin-bottom: 0;
}

.pdf-kam-row > .pdf-section-box[b-xi88z280fs] {
    flex: 1 1 0;
    min-width: 0;
}

.section-box[b-xi88z280fs] {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.section-header-small[b-xi88z280fs] {
    font-weight: bold;
    margin-bottom: 2px;
    color: #555;
    font-size: 0.9em;
}

.section-content-small p[b-xi88z280fs] {
    margin: 0;
    font-size: 1em;
}

.section-full-width[b-xi88z280fs] {
    margin-bottom: 2px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden; /* Ensures border-radius applies to children */
}

.section-header-red[b-xi88z280fs] {
    background-color: #dc3545; /* Bootstrap danger red */
    color: #fff;
    padding: 5px 10px;
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.section-content-red[b-xi88z280fs] {
    padding: 15px;
    background-color: #fff;
}

.field-row[b-xi88z280fs] {
    display: flex;
    margin-bottom: 8px;
}

.field-label[b-xi88z280fs] {
    font-weight: bold;
    margin-right: 10px;
    min-width: 120px; /* Align labels */
}

.field-value[b-xi88z280fs] {
    flex-grow: 1;
}

.vehicle-document-image[b-xi88z280fs] {
    max-width: 100%;
    max-height: 100%; /* Use all available space dynamically */
    height: auto;
    width: auto;
    object-fit: contain; /* Ensure the entire image is visible within the bounds */
    display: block;
    margin: 0 auto;
    border: none;
}

/* --- PDF Template Custom Styles for New Markup --- */

.pdf-top-section[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 28px;
    position: relative;
}

.pdf-blue-bar[b-xi88z280fs] {
    position: absolute;
    left: -20px; /* Move into the left margin */
    top: 0px; /* Move into the top margin */
    bottom: -26px; /* Stretch to the bottom margin */
    width: 15px;
    background: #0066e6;
    border-radius: 4px;
}

.pdf-top-content[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
}

.pdf-header-row[b-xi88z280fs] {
    align-items: center;
}

.pdf-license-plate-area[b-xi88z280fs] {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.pdf-license-plate[b-xi88z280fs] {
    display: flex;
    align-items: center;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
    min-width: 220px;
    min-height: 44px;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 1px 1px 2px #bbb;
    position: relative;
    padding: 0 8px;
}

.pdf-eu-section[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #003399;
    color: #fff;
    border-radius: 4px 0 0 4px;
    width: 38px;
    height: 54px;
    margin-right: 14px;
    position: relative;
    font-size: 0.7em;
    border-right: 2px solid #fff;
}

.pdf-eu-stars[b-xi88z280fs] {
    font-size: 1.1em;
    margin-bottom: 2px;
    /* You can use a background image for EU stars if needed */
}

.pdf-country-code[b-xi88z280fs] {
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
}

.pdf-plate-number[b-xi88z280fs] {
    color: #111;
    letter-spacing: 2px;
    margin-left: 2px;
}

.pdf-logo-area[b-xi88z280fs] {
    flex: 0 0 220px;
    text-align: right;
    min-height: 80px;
    /* Placeholder for logo */
}

.pdf-section-grid[b-xi88z280fs] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.pdf-section-box[b-xi88z280fs] {
    border: 2px solid #bbb;
    border-radius: 7px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3px 5px;
    min-width: 0;
}

.pdf-section-header[b-xi88z280fs] {
    font-weight: 400;
    color: #555;
    font-size: 0.58em; /* ~7pt */
    padding: 2px 0;
}

.pdf-section-content p[b-xi88z280fs] {
    margin: 0;
    font-size: 0.83em; /* ~10pt */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.pdf-section-box-blue[b-xi88z280fs] {
    border: 2px solid #007bff;
    min-height: 35px;
}

.pdf-section-header-blue[b-xi88z280fs] {
    display: flex;
    align-items: center;
}

    .pdf-section-header-blue span[b-xi88z280fs] {
        font-size: larger;
    }

    .pdf-section-box-dashed-green[b-xi88z280fs] {
        border: 2px dashed #3bb143;
        background: #f7fff7;
    }

.pdf-section-header-dashed-green[b-xi88z280fs] {
    color: #3bb143;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.pdf-section-box-dashed-red[b-xi88z280fs] {
    border: 2px dashed #d32f2f;
    background: #fff7f7;
}

.pdf-section-header-dashed-red[b-xi88z280fs] {
    color: #d32f2f;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.pdf-section-header-dashed-green span[b-xi88z280fs],
.pdf-section-header-dashed-red span[b-xi88z280fs] {
    font-size: 0.8em; /* Smaller font size for the text only */
}

/* SVG icon sizing and coloring for grid */
.pdf-section-header svg[b-xi88z280fs],
.pdf-section-header-blue svg[b-xi88z280fs],
.pdf-section-header-dashed-green svg[b-xi88z280fs],
.pdf-section-header-dashed-red svg[b-xi88z280fs] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 4px;
    vertical-align: middle;
}

.pdf-section-header-blue svg path[b-xi88z280fs] {
    fill: #007bff; /* Explicitly set fill color for Reinigung */
}

.pdf-section-header-dashed-green svg path[b-xi88z280fs] {
    fill: #3bb143; /* Explicitly set fill color for Schadenbilder */
}

.pdf-section-header-dashed-red svg path[b-xi88z280fs] {
    fill: #d32f2f; /* Explicitly set fill color for Versicherungspolice */
}

.pdf-license-plate-fahrzeug-column[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* This will make it take the same width as the license plate area */
    margin-bottom: 10px;
}

/* --- New: Flex layout for license plate + fahrzeug + logo --- */
.pdf-license-plate-fahrzeug-inner[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.pdf-license-plate-fahrzeug-left[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.pdf-license-plate-fahrzeug-logo[b-xi88z280fs] {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 60px;
    min-width: 60px;
    text-align: right;
    margin-left: auto;
}

/* --- Custom layout for new PdfTemplate markup --- */
.small-fahrzeug-width[b-xi88z280fs] {
    max-width: 260px;
    min-width: 200px;
    flex: 0 0 220px;
}

.pdf-grouped-sections-area[b-xi88z280fs] {
    flex: 1 1 0;
    display: flex;
    align-items: flex-start;
}

.pdf-grouped-sections[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 60px;
}

.pdf-grouped-left[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 0;
    min-width: 180px;
}

.pdf-grouped-right[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 0;
    min-width: 180px;
}

.pdf-section-box-dashed-group[b-xi88z280fs] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/*@media (max-width: 900px) {
    .pdf-grouped-sections {
        flex-direction: column;
        gap: 18px;
    }
    .pdf-grouped-left,
    .pdf-grouped-right {
        min-width: 0;
    }
    .small-fahrzeug-width {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}*/

.page-break-after[b-xi88z280fs] {
    page-break-after: always;
}

/* Auftragsinfo Section Styles */
.section-auftragsinfo[b-xi88z280fs] {
    border: none;
    margin-top: -12px;
    margin-bottom: 24px;
}

/* Kunde Section Styles */
.section-kunde[b-xi88z280fs] {
    border: none; /* Remove the wrapper border */
    margin-top: -20px; /* Reduce space to the top section */
    overflow: visible; /* Allow header to curve outside */
    margin-bottom: 4px; /* Add small bottom margin */
}

.section-kunde .section-header-red[b-xi88z280fs] {
    background-color: #9a0d0d; /* Darker red color */
    border-radius: 10px; /* Curved borders */
    padding: 6px 12px;
}

.section-kunde .section-content-red[b-xi88z280fs] {
    padding: 0; /* Remove padding to use box model */
    margin-top: 8px; /* Space between header and content boxes */
}

.kunde-content-flex[b-xi88z280fs] {
    display: flex;
    gap: 15px; /* Space between the two boxes */
    align-items: stretch; /* Make boxes same height */
}

.kunde-info-box[b-xi88z280fs] {
    flex: 3; /* Takes up 3 parts of the space */
    min-width: 0;
}

.vorsteuer-box[b-xi88z280fs] {
    flex: 1; /* Takes up 1 part of the space */
}

/* Versicherung Section Styles */
.section-versicherung[b-xi88z280fs] {
    border: none; /* Remove the wrapper border */
}

.section-versicherung .section-header-red[b-xi88z280fs] {
    background-color: #9a0d0d; /* Darker red color */
    border-radius: 10px; /* Curved borders */
    padding: 6px 12px;
}

.section-versicherung .section-content-red[b-xi88z280fs] {
    padding: 0; /* Remove padding to use box model */
    margin-top: 8px; /* Space between header and content boxes */
}

.versicherung-content-flex[b-xi88z280fs] {
    display: flex;
    gap: 15px; /* Space between the boxes */
    align-items: stretch; /* Make boxes same height */
}

.versicherung-info-box[b-xi88z280fs] {
    flex: 2; /* Takes up 2 parts of the space */
}

.selbstbeteiligung-box[b-xi88z280fs],
.werkstattbindung-box[b-xi88z280fs] {
    flex: 1; /* Each takes up 1 part of the space */
}

.section-fahrzeugschein[b-xi88z280fs] {
    margin: 0;
    flex: 1; /* Take all remaining vertical space */
    min-height: 0; /* Allow shrinking if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ensure all sections except fahrzeugschein don't shrink */
.pdf-top-section[b-xi88z280fs],
.section-full-width[b-xi88z280fs],
.section-grid-bottom[b-xi88z280fs],
.section-kunde[b-xi88z280fs],
.section-versicherung[b-xi88z280fs] {
    flex-shrink: 0; /* Don't shrink these sections */
}

/* Text truncation utility classes */
.max-lines-1[b-xi88z280fs] {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
}

.max-lines-4[b-xi88z280fs] {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
}

/* --- New Layout Styles for Schlüsselblatt Redesign --- */

/* Row layouts */
.pdf-header-row[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.pdf-row-4col[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
}

.pdf-row-4col > .pdf-section-box[b-xi88z280fs] {
    flex: 1;
    min-width: 0;
}

.pdf-row-5col[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
}

.pdf-row-5col > .pdf-section-box[b-xi88z280fs] {
    flex: 1;
    min-width: 0;
}

.pdf-row-5col > .pdf-section-box.pdf-col-2[b-xi88z280fs] {
    flex: 2;
}

/* Bottom row with 7 items */
.pdf-bottom-row[b-xi88z280fs] {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

.pdf-bottom-row > .pdf-section-box[b-xi88z280fs] {
    flex: 1;
    min-width: 0;
}

/* Empty boxes for handwritten notes */
.pdf-empty-box[b-xi88z280fs] {
    border: 2px solid #bbb;
    border-radius: 7px;
    background: #fff; /* White background like other boxes */
    min-height: 35px;
}

/* Schadennummer box in Versicherung section */
.schadennummer-box[b-xi88z280fs] {
    flex: 1;
}

/* Update Versicherung content flex for 5 items */
.versicherung-content-flex[b-xi88z280fs] {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
}

.versicherung-content-flex > .pdf-section-box[b-xi88z280fs] {
    flex: 1;
    min-width: 0;
}

.versicherung-content-flex .versicherung-info-box[b-xi88z280fs] {
    flex: 1.5;
}

/* Update row flex to handle 3 items properly */
.pdf-row-flex > .pdf-section-box[b-xi88z280fs] {
    flex: 1;
}
