body {
	padding: 50px;
	font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
	color: #00B7FF;
}

.font80px {
	font-size: 80px;
}

.font50px {
	font-size: 50px;
}

.font32px {
	font-size: 32px;
}

.font21px {
	font-size: 21px;
}

.font20px {
	font-size: 20px;
}

.font14px {
	font-size: 14px;
}

.font12px {
	font-size: 12px;
}

.font10px {
	font-size: 10px;
}

.font9px {
	font-size: 9px;
}

.font8px {
	font-size: 8px;
}

.gray {
	color: gray;
	vertical-align: middle;
}

.sort_icon {
	color: white;
	vertical-align: middle;
	font-size: 15px;
	background-color: #0d6efd;
	padding: 1px 2px;
	border-radius: 4px;
}

.sort_icon:hover {
	background-color: #0b5ed7;
}

.pdf_icon {
	color: #990000;
	vertical-align: middle;
	font-size: 80px;
}

#preview {
	overflow: hidden;
}

#preview img {
	width: 100px;
	float: left;
	margin: 10px;
	cursor: move;
}

.wsi_thumbnail {
	background-color: #ddddddc7;
	width: 6em;
	height: 6em;
	margin: 0.5em;
	padding: 0;
	position: relative;
}

.pdf_thumbnail {
	background-color: #fcfcfc;
	width: 6em;
	height: 6em;
	margin: 0.5em;
	padding: 0;
	position: relative;
}

.wsi_thumbnail img,
.pdf_thumbnail img {
	margin: 0px;
	padding: 0px;
	width: 6em;
	height: 6em;
	object-fit: cover;
	cursor: pointer;
}

.wsi_inside {
	position: absolute;
	top: 0;
	left: 0;
	margin: auto;
	color: #fff;
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.5);
	/* 背景色（透明度を調整できます） */
	border-radius: 5px;
	padding: 5px;
	font-size: 0.75em;
}

.pdf_inside {
	position: absolute;
	top: 5;
	left: 5;
	right: 5;
	bottom: 5;
	margin: auto;
	color: #fff;
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.5);
	/* 背景色（透明度を調整できます） */
	border-radius: 5px;
	padding: 5px;
	font-size: 0.75em;
}

.divider:after,
.divider:before {
	content: "";
	flex: 1;
	height: 1px;
	background: #eee;
}

img {
	font-weight: 300;
	cursor: pointer;
}

.wsi_thumbnail:before {
	content: "";
	margin-top: 1em;
	display: block;
	background-color: rgb(230, 230, 230);
}

ul.pagination {
	margin-top: 10px;
}


/*　bootstrapからの変更　*/
input[type="text"]:not(:disabled),
input[type="number"]:not(:disabled),
input[type="email"]:not(:disabled),
input[type="date"]:not(:disabled),
input[type="password"]:not(:disabled),
textarea:not(:disabled),
select:not(:disabled) {
	background-color: #f6f6f6 !important;
}


.custom-checkbox .form-check-input {
	background-color: #ffffff;
	/* 初期状態の背景を白 */
	border: 1px solid #6c757d;
	/* 灰色のボーダー */
	width: 1rem;
	/* サイズ調整 */
	height: 1rem;
	/* サイズ調整 */
}

.custom-checkbox .form-check-input:checked {
	background-color: #000000;
	/* チェック状態の背景を黒 */
	border-color: #000000;
	/* ボーダーも黒 */
	color: #ffffff;
	/* チェックマークの色を白 */
}

.custom-checkbox .form-check-input:checked::before {
	display: inline-block;
	color: #ffffff;
	/* チェックマークの色を白 */
	text-align: center;
	line-height: 1rem;
}

.custom-checkbox .form-check-label {
	margin-left: 10px;
	/* チェックボックスとラベルの間隔 */
	color: #000000;
	/* ラベルの初期色 */
}

/* li にマウスが乗ったらドロップダウンを表示 */
.nav-item.dropdown:hover>.dropdown-menu {
	display: block;
}

/* 変な隙間が空くのを防ぐ用（必要に応じて） */
.nav-item.dropdown>.dropdown-menu {
	margin-top: 0;
}

.dropdown-header {
	font-size: 0.7rem;
	font-weight: 600;
	color: #333 !important;
}

.thumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.thumb-item {
	flex: 0 0 120px;
	width: 120px;
}

.thumb-card {
	position: relative;
	display: block;
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.thumb-card--pdf {
	text-decoration: none;
}

.thumb-media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #f7f7f7;
}

.thumb-icon {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
	font-size: 3rem;
}

.thumb-title {
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.1;
}

.thumb-meta {
	padding: 4px 5px 5px;
}

.thumb-comment {
	font-size: 0.9rem;
	line-height: 1.05;
	color: #666;
	word-break: break-word;
	padding: 4px;
}

.thumb-stain {
	font-size: 0.9rem;
	line-height: 1.05;
	color: #0d6efd;
	background: rgba(13, 110, 253, 0.12);
	word-break: break-word;
	padding: 4px;
}

.thumb-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	display: inline-block;
	margin-left: 4px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #dc3545;
	color: #fff;
	padding: 3px 7px;
	font-size: 0.7rem;
	font-weight: 700;
}

.thumb-add {
	margin-top: 12px;
}


.thumb-edit-btn {
	position: absolute;
	right: -6px;
	bottom: -6px;
	/* ← top → bottom に変更 */

	width: 34px;
	height: 34px;

	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 999px;
	background: #0d6efd;
	color: #fff;
	text-decoration: none;

	font-size: 16px;
	z-index: 30;

	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
	border: 2px solid #fff;

	opacity: 0.28;
}

.thumb-edit-btn:hover {
	background: #0b5ed7;
	color: #fff;
	transform: scale(1.06);
}

.thumb-card:hover .thumb-edit-btn {
	opacity: 1;
}

.storage-mini {
	gap: 6px;
	white-space: nowrap;
}

.storage-label,
.storage-rate {
	flex: 0 0 auto;
}

.storage-meter {
	width: 120px;
	height: 12px;
	flex: 0 0 auto;
	background-color: #e9ecef;
	border-radius: 6px;
	overflow: hidden;
}

.storage-meter-fill {
	height: 100%;
	display: block;
}

.storage-main-bar {
	background-color: #0d6efd;
}

.storage-backup-bar {
	background-color: #fd7e14;
}

.imgeditor-page {
  width: 100%;
  height: 62vh;
  min-height: 520px;
  max-height: 760px;

  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

#tui-image-editor {
  width: 100%;
  height: 100%;
}

/* TOAST UI ロゴ */
.tui-image-editor-header-logo {
	display: none !important;
}

/* Load / Download */
.tui-image-editor-header-buttons {
	display: none !important;
}

.viewer-container {
  z-index: 999999 !important;
}

.viewer-backdrop {
  z-index: 999998 !important;
}