/* Gosy Pago en Efectivo: lista de asistentes y cobro en la puerta. */

.gpe-pay-at-door {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.gpe-pay-at-door span {
	font-size: 12px;
	font-weight: 600;
	color: #ad360b;
	white-space: nowrap;
}

.gpe-cell-muted {
	color: #aaa;
}

.gpe-collect-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--gosy-brand, var(--theme-palette-color-1, #f15a24));
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.gpe-collect-btn:hover,
.gpe-collect-btn:focus-visible {
	background: var(--theme-palette-color-2, #ce400d);
}

.gpe-collect-btn:focus-visible {
	outline: 2px solid var(--gosy-brand, #f15a24);
	outline-offset: 2px;
}

.gpe-collect-btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.gpe-collected {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.gpe-collected__time {
	font-size: 12px;
	color: #1e6b45;
}

.gpe-paid-badge {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: #e8f5ee;
	color: #1e6b45;
	font-size: 12px;
	font-weight: 700;
}

.gpe-sheet__list li[hidden] {
	display: none;
}

.gpe-undo-btn {
	border: 0;
	background: none;
	padding: 2px 4px;
	font-size: 12px;
	color: #4a5873;
	text-decoration: underline;
	cursor: pointer;
}

.gpe-name-extra {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.gpe-name-extra--pending {
	color: #ad360b;
}

.gpe-name-extra--paid {
	color: #1e6b45;
}

/* Caja en efectivo */
.gpe-cashbox {
	box-sizing: border-box;
	width: calc(100% - 40px);
	margin: 12px 20px;
	padding: 14px;
	background: var(--gosy-brand-wash, #fef5f2);
	border: 1px solid #fbcebd;
	border-radius: 12px;
}

.gpe-cashbox__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-weight: 700;
}

.gpe-cashbox__title .material-icons-outlined {
	font-size: 20px;
	color: #ad360b;
}

.gpe-cashbox__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.gpe-cashbox__cell {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	background: #ffffff;
	border-radius: 10px;
	font-size: 12px;
	color: #4a5873;
}

.gpe-cashbox__cell b {
	font-size: 18px;
	line-height: 1.3;
}

.gpe-orange { color: #ad360b; }
.gpe-green { color: #1e6b45; }
.gpe-red { color: #b42318; }

/* Hoja de confirmación */
.gpe-sheet[hidden] {
	display: none;
}

.gpe-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.gpe-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 37, 56, 0.55);
}

.gpe-sheet__panel {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 22px 20px 26px;
	background: #ffffff;
	border-radius: 20px 20px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: #1a2538;
}

@media (min-width: 600px) {
	.gpe-sheet {
		align-items: center;
	}

	.gpe-sheet__panel {
		border-radius: 20px;
	}
}

.gpe-sheet__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.gpe-sheet__amount {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 16px;
	background: var(--gosy-brand-wash, #fef5f2);
	border: 1px solid #fbcebd;
	border-radius: 14px;
	font-size: 13px;
	color: #4a5873;
}

.gpe-sheet__money {
	font-size: 34px;
	line-height: 1.2;
	color: #1a2538;
}

.gpe-sheet__list {
	margin: 0;
	padding-left: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	line-height: 1.45;
}

.gpe-sheet__muted {
	color: #4a5873;
}

.gpe-sheet__error {
	margin: 0;
	color: #b42318;
	font-weight: 600;
}

.gpe-sheet__error[hidden] {
	display: none;
}

.gpe-sheet__confirm,
.gpe-sheet__cancel {
	min-height: 48px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.gpe-sheet__confirm {
	border: 0;
	background: #2f8a5c;
	color: #ffffff;
}

.gpe-sheet__confirm[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.gpe-sheet__cancel {
	border: 1.5px solid #d3def0;
	background: #ffffff;
	color: #1a2538;
	font-weight: 600;
}
