/* ============================================================
   rescue.css  — 救助待ち一覧ページ専用スタイル
   ============================================================ */

/* ---- 救助待ち操作 ---- */

.rescue_filter_form {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	flex-wrap: wrap;
	background: rgba(247, 245, 251, 0.78);
	border: 1px solid #9fc9dd;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 12px;
	box-shadow: inset 0 1px 0 rgba(75, 161, 207, 0.12), 0 2px 6px rgba(65, 122, 145, 0.10);
}

.rescue_filter_form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 220px;
	min-width: 0;
}

.rescue_filter_form span {
	color: #4d8fb4;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

.rescue_check_wrap {
	flex: 0 0 auto;
	padding-bottom: 7px;
}

.rescue_filter_form .rescue_check_label {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

.rescue_check_label input {
	accent-color: #3ba7cf;
	cursor: pointer;
}

.rescue_filter_form select {
	width: 100%;
	background: rgba(255, 255, 255, 0.74);
	color: #3f3a4d;
	border: 1px solid #9fc9dd;
	border-radius: 4px;
	padding: 7px 28px 7px 10px;
	font-size: 0.9rem;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234d8fb4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	transition: border-color 0.15s;
}

.rescue_filter_form select:hover,
.rescue_filter_form select:focus {
	border-color: #4d8fb4;
	outline: none;
}

.rescue_apply_btn {
	flex: 0 0 auto;
	background: #3ba7cf;
	color: #ffffff;
	border: 1px solid #2d8fb6;
	border-radius: 4px;
	padding: 7px 18px;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.rescue_apply_btn:hover,
.rescue_apply_btn:focus {
	background: #2d8fb6;
	border-color: #247899;
}

.rescue_filter_toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: rgba(238, 250, 255, 0.94);
	border: 1px solid #9fc9dd;
	border-radius: 4px;
	color: #4d8fb4;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.rescue_filter_toggle:hover {
	border-color: #2d8fb6;
	color: #2d8fb6;
}

.rescue_filter_toggle:focus {
	outline: none;
}

.rescue_filter_toggle[aria-expanded="true"] {
	background: #3ba7cf;
	border-color: #2d8fb6;
	color: #ffffff;
}

.rescue_filter_toggle svg {
	display: block;
}

/* ---- 救助待ちテーブル ---- */

.rescue_table th,
.rescue_table td {
	width: 50%;
	white-space: nowrap;
}

.rescue_table_mine th,
.rescue_table_mine td {
	width: auto;
}

.rescue_table_mine th:nth-child(1),
.rescue_table_mine td:nth-child(1) {
	width: 26%;
}

.rescue_table_mine th:nth-child(2),
.rescue_table_mine td:nth-child(2) {
	width: 20%;
}

.rescue_time {
	white-space: nowrap;
}

.rescue_boss_icon {
	display: inline-block;
	width: 0.72em;
	height: 0.72em;
	margin-left: 6px;
	background: linear-gradient(135deg, #e8f9ff 0%, #43b8de 52%, #1f7fa8 100%);
	border: 1px solid #2d8fb6;
	border-radius: 2px;
	box-shadow: 0 0 0 2px rgba(67, 184, 222, 0.16);
	color: #2d8fb6;
	transform: rotate(45deg);
	vertical-align: 0.02em;
}

.rescue_boss_note {
	margin: 10px 2px 0;
	color: #557082;
	font-size: 0.82rem;
	line-height: 1.6;
}

@media (max-width: 600px) {
	.rescue_filter_form {
		align-items: stretch;
		gap: 8px;
		max-height: 0;
		overflow: hidden;
		padding-top: 0;
		padding-bottom: 0;
		margin-bottom: 0;
		border-width: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: max-height 0.2s, padding 0.2s, margin 0.2s, border-width 0.2s, opacity 0.15s, visibility 0.2s;
	}

	.rescue_filter_form.rescue_filter_open {
		max-height: 230px;
		padding-top: 10px;
		padding-bottom: 10px;
		margin-bottom: 12px;
		border-width: 1px;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.rescue_filter_form label {
		flex-basis: 100%;
	}

	.rescue_check_wrap {
		padding-bottom: 0;
	}

	.rescue_apply_btn {
		width: 100%;
	}

	.rescue_filter_toggle {
		display: flex;
	}

	.rescue_table_mine th:nth-child(n+3),
	.rescue_table_mine td:nth-child(n+3) {
		display: none;
	}
}
