/* submissions index */
.submissions.index.content {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submissions.index h3 {
	color: #349f75;
	/* メインカラー */
	margin-bottom: 20px;
}

/* テーブル */
.submissions.index .table-responsive {
	overflow-x: auto;
}

.submissions.index .table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.submissions.index .table th,
.submissions.index .table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.submissions.index .table thead th {
	background-color: #f8f9fa;
	color: #333;
	font-weight: 600;
}

/* ページネーション */
.submissions.index .paginator {
	text-align: center;
}

.submissions.index .pagination {
	display: inline-block;
	padding-left: 0;
	margin: 20px 0;
	border-radius: 4px;
}

.submissions.index .pagination li {
	display: inline;
}

.submissions.index .pagination li a,
.submissions.index .pagination li span {
	position: relative;
	float: left;
	padding: 6px 12px;
	margin-left: -1px;
	line-height: 1.42857143;
	color: #349f75;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid #ddd;
}

.submissions.index .pagination li:first-child a,
.submissions.index .pagination li:first-child span {
	margin-left: 0;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

.submissions.index .pagination li:last-child a,
.submissions.index .pagination li:last-child span {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

.submissions.index .pagination li a:hover,
.submissions.index .pagination li span:hover,
.submissions.index .pagination li a:focus,
.submissions.index .pagination li span:focus {
	color: #287f5b;
	background-color: #eee;
	border-color: #ddd;
}

.submissions.index .pagination .active a,
.submissions.index .pagination .active span,
.submissions.index .pagination .active a:hover,
.submissions.index .pagination .active span:hover,
.submissions.index .pagination .active a:focus,
.submissions.index .pagination .active span:focus {
	z-index: 3;
	color: #fff;
	cursor: default;
	background-color: #349f75;
	border-color: #349f75;
}

.submissions.index .pagination .disabled span,
.submissions.index .pagination .disabled span:hover,
.submissions.index .pagination .disabled span:focus,
.submissions.index .pagination .disabled a,
.submissions.index .pagination .disabled a:hover,
.submissions.index .pagination .disabled a:focus {
	color: #777;
	background-color: #fff;
	border-color: #ddd;
	cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.submissions.index .table {
		width: 100%;
		margin-bottom: 0;
	}

	.submissions.index .table-responsive {
		overflow-x: auto;
	}

	.submissions.index .table thead {
		display: none;
	}

	.submissions.index .table tbody tr {
		margin-bottom: 15px;
		display: block;
		border: 1px solid #ddd;
		border-radius: 4px;
	}

	.submissions.index .table tbody td {
		display: block;
		padding: 8px;
		text-align: right;
		border-bottom: none;
	}

	.submissions.index .table tbody td:before {
		content: attr(data-label);
		float: left;
		font-weight: bold;
	}

	.submissions.index .actions {
		text-align: center;
	}
}

/* customer-add-page */
.customer-add-page .container-fluid {
	max-width: 1200px;
	/* 必要なら幅を制限 */
	margin: 0 auto;
}

.customer-add-page .card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.customer-add-page .card-header {
	/* background-color: #349f75; */
	/* お好みの色 */
	color: #fff;
	padding: 0.75rem 1rem;
}

.customer-add-page .card-header h4 {
	margin: 0;
	font-size: 1.1rem;
}

.customer-add-page .card-body {
	padding: 1rem;
}

/* フォーム */
.customer-add-page .custom-form {
	background-color: #fff;
	padding: 1rem;
	border-radius: 4px;
}

/* フォームコントロール */
.customer-add-page .custom-form-control {
	display: block;
	width: 100%;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px;
}

/* ボタン */
.customer-add-page .custom-button {
	background-color: #349f75;
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.95rem;
	transition: background-color 0.3s ease;
}

.customer-add-page .custom-button:hover {
	/* background-color: #287f5b; */
}

/* 添付ファイル */
/* ▼ このラッパが全体を囲んでいる想定 */
.file-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	flex-direction: column;
	/* 縦並びにする */
	align-items: flex-start;
	/* 左寄せにする */
}

.customer-add-page .custom-form fieldset legend {
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 1rem;
	display: block;
	width: 100%;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #ccc;
}

/* 実際の <input type="file"> は隠す */
.custom-file-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* 見た目上のボタン */
.custom-file-label {
	/* background-color: #349f75; */
	/* お好みの色 */
	color: #fff;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* アイコンとテキストの余白 */
	transition: background-color 0.3s;
	font-size: 0.9rem;
	text-decoration: none;
	/* ラベルなので念のため */
	border: 1px solid #2f8d64;
	z-index: 1;
}

.custom-file-label:hover {
	/* background-color: #2f8d64; */
}

/* 選択されたファイル名の表示エリア */
.file-name-display {
	margin-left: 10px;
	font-size: 0.85rem;
	color: #333;
	/* テキスト色 */
}

.customer-add-page .custom-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: bold;
}

/* customer-edit-page */
.customer-edit-page .container-fluid {
	max-width: 1200px;
	/* 必要なら幅を制限 */
	margin: 0 auto;
}

.customer-edit-page .card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.customer-edit-page .card-header {
	/* background-color: #349f75; */
	/* お好みの色 */
	color: #fff;
	padding: 0.75rem 1rem;
}

.customer-edit-page .card-header h4 {
	margin: 0;
	font-size: 1.1rem;
}

.customer-edit-page .card-body {
	padding: 1rem;
}

/* フォーム */
.customer-edit-page .custom-form {
	background-color: #fff;
	padding: 1rem;
	border-radius: 4px;
}

/* フォームコントロール */
.customer-edit-page .custom-form-control {
	display: block;
	width: 100%;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px;
}

/* ボタン */
.customer-edit-page .custom-button {
	/* background-color: #349f75; */
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.95rem;
	transition: background-color 0.3s ease;
}

.customer-edit-page .custom-button:hover {
	/* background-color: #287f5b; */
}

/* 添付ファイル */
/* ▼ このラッパが全体を囲んでいる想定 */
.file-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	flex-direction: column;
	/* 縦並びにする */
	align-items: flex-start;
	/* 左寄せにする */
}

/* 既存ファイル */
.file-input-wrapper img {
	margin-bottom: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.file-input-wrapper a {
	margin-bottom: 0.5rem;
}

.file-input-wrapper .checkbox {
	margin-bottom: 0.5rem;
}

/* 実際の <input type="file"> は隠す */
.custom-file-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* 見た目上のボタン */
.custom-file-label {
	/* background-color: #349f75; */
	/* お好みの色 */
	color: #fff;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* アイコンとテキストの余白 */
	transition: background-color 0.3s;
	font-size: 0.9rem;
	text-decoration: none;
	/* ラベルなので念のため */
	border: 1px solid #2f8d64;
	z-index: 1;
}

.custom-file-label:hover {
	/* background-color: #2f8d64; */
}

/* 選択されたファイル名の表示エリア */
.file-name-display {
	margin-left: 10px;
	font-size: 0.85rem;
	color: #333;
	/* テキスト色 */
}

/* customer-view-page */
/* ▼ 全体を囲むコンテナ */
.customer-view-page .container-fluid {
	max-width: 1200px;
	margin: 0 auto;
}

/* ▼ カードのベース */
.customer-view-page .card {
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

/* ▼ カードヘッダー */
.customer-view-page .card-header {
	/* background-color: #349f75; */
	/* メインカラー */
	color: #fff;
	padding: 0.75rem 1rem;
}

.customer-view-page .card-header h4 {
	margin: 0;
	font-size: 1.1rem;
}

/* ▼ カードボディ */
.customer-view-page .card-body {
	padding: 1rem;
}

/* テーブルまわり */
.customer-view-page .table {
	width: 100%;
	margin-bottom: 1rem;
	color: #212529;
}

.customer-view-page .table th,
.customer-view-page .table td {
	padding: 0.75rem;
	vertical-align: top;
	border-top: 1px solid #dee2e6;
}

.customer-view-page .table thead th {
	vertical-align: bottom;
	border-bottom: 2px solid #dee2e6;
}

.customer-view-page .table tbody+tbody {
	border-top: 2px solid #dee2e6;
}

.customer-view-page .table-striped tbody tr:nth-of-type(odd) {
	background-color: rgba(0, 0, 0, 0.05);
}

/* 添付ファイルのプレビュー */
.attachment-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.attachment-preview {
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 0.5rem;
	text-align: center;
}

.attachment-preview img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.download-link {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.5rem 1rem;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	text-decoration: none;
	color: #495057;
}
