/* ============================================
   有給休暇ステータス表示
   Limo Intranet プラグイン
   ============================================ */

.limo-paid-leave-status {
	margin: 2em 0;
	font-family: inherit;
}

.limo-leave-header {
	margin-bottom: 1.5em;
}

.limo-leave-user {
	font-size: 1.1em;
	font-weight: bold;
	margin: 0 0 .3em;
}

.limo-leave-period {
	font-size: .9em;
	color: #666;
	margin: 0;
}

/* カードレイアウト */
.limo-leave-cards {
	display: flex;
	gap: 16px;
	margin-bottom: 2em;
	flex-wrap: wrap;
}

.limo-leave-card {
	flex: 1;
	min-width: 140px;
	background: #f8f9fa;
	border-radius: 12px;
	padding: 20px 16px;
	text-align: center;
	border: 2px solid #e9ecef;
	transition: box-shadow .2s;
}

.limo-leave-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.limo-leave-label {
	display: block;
	font-size: .85em;
	color: #666;
	margin-bottom: 8px;
	font-weight: 500;
}

.limo-leave-value {
	display: block;
	font-size: 2.2em;
	font-weight: bold;
	line-height: 1.2;
}

.limo-leave-value small {
	font-size: .4em;
	font-weight: normal;
	margin-left: 2px;
}

/* カード色分け */
.limo-leave-card--available {
	background: #e8f5e9;
	border-color: #a5d6a7;
}
.limo-leave-card--available .limo-leave-value {
	color: #2e7d32;
}

.limo-leave-card--carryover {
	background: #f3e5f5;
	border-color: #ce93d8;
}
.limo-leave-card--carryover .limo-leave-value {
	color: #7b1fa2;
}

.limo-leave-card--used {
	background: #e3f2fd;
	border-color: #90caf9;
}
.limo-leave-card--used .limo-leave-value {
	color: #1565c0;
}

.limo-leave-card--remaining {
	background: #fff3e0;
	border-color: #ffcc80;
}
.limo-leave-card--remaining .limo-leave-value {
	color: #e65100;
}

.limo-leave-card--warning {
	background: #ffebee;
	border-color: #ef9a9a;
}
.limo-leave-card--warning .limo-leave-value {
	color: #c62828;
}

/* 取得履歴テーブル */
.limo-leave-history {
	margin-top: 1.5em;
}

.limo-leave-history h4 {
	font-size: 1em;
	margin: 0 0 .8em;
	padding-bottom: .5em;
	border-bottom: 2px solid #e9ecef;
}

.limo-leave-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9em;
}

.limo-leave-table th {
	background: #f5f5f5;
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
	font-size: .85em;
	color: #555;
}

.limo-leave-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
}

.limo-leave-table tbody tr:hover {
	background: #fafafa;
}

/* バッジ */
.limo-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: .8em;
	font-weight: 600;
	line-height: 1.4;
}

.limo-badge--approved {
	background: #e8f5e9;
	color: #2e7d32;
}

.limo-badge--rejected {
	background: #ffebee;
	color: #c62828;
}

.limo-badge--pending {
	background: #fff3e0;
	color: #e65100;
}

.limo-leave-no-history {
	color: #999;
	font-size: .9em;
	text-align: center;
	padding: 2em 0;
}

/* モバイル対応 */
@media screen and (max-width: 599px) {
	.limo-leave-cards {
		flex-direction: column;
	}
	.limo-leave-card {
		min-width: auto;
	}
	.limo-leave-value {
		font-size: 1.8em;
	}
	.limo-leave-table {
		font-size: .82em;
	}
	.limo-leave-table th,
	.limo-leave-table td {
		padding: 8px;
	}
}
