/* ===============================
        表格樣式
   =============================== */

/* 表格基本樣式 */
.sys-table {
	width: 100%;
	border-collapse: collapse;
    overflow-x: auto;
}

/* 表格標題行 */
.sys-table thead tr {
	background: rgba(0, 217, 255, 0.1);
	border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

/* 表格標題 */
.sys-table th {
	padding: 12px 15px;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: #00d9ff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* 排序連結 */
.sort-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #00d9ff;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.sort-link:hover {
	color: #fff;
}

.sort-link i {
	font-size: 0.75rem;
	opacity: 0.6;
	transition: all 0.2s ease;
}

.sort-link:hover i {
	opacity: 1;
}

/* 表格內容行 */
.sys-table tbody tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.2s ease;
}

.sys-table tbody.sorting {
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.sys-table tbody tr:hover {
	background: rgba(0, 217, 255, 0.05);
}

/* 表格儲存格 */
.sys-table td {
	padding: 15px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

/* 圖標欄位 */
.td-icon {
	color: rgba(255, 255, 255, 0.7);
	white-space: nowrap;
}

.td-icon i {
	margin-right: 5px;
	color: #00d9ff;
}

/* OAuth 圖示樣式 */
.oauth-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* 訊息欄位 */
.td-message,
.td-description {
	word-break: break-word;
}

/* 位置欄位 */
.td-location {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
}

.td-tags .tags,
.td-categories .categories,
.td-badges .badges {
	justify-content: center;
}



/* 分頁 */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-info {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}




/* ========================================
   表格特殊欄位樣式
   ======================================== */

.td-model {
	font-family: 'Courier New', monospace;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.05);
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
	width: fit-content;
    margin: auto;
}

.td-id {
	font-family: 'Courier New', monospace;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

.td-description {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.4;
}

.td-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}




/* ========================================
   響應式欄位隱藏工具類別
   ======================================== */

/* 在大螢幕以下隱藏 (1440px 以下) */
@media (max-width: 1440px) {
	.hide-lg {
		display: none !important;
	}
}

/* 在大螢幕以下隱藏 (1200px 以下) */
@media (max-width: 1200px) {
	.hide-md {
		display: none !important;
	}
}

/* 在平板以下隱藏 (992px 以下) */
@media (max-width: 992px) {
	.hide-sm {
		display: none !important;
	}
}

/* 在小平板以下隱藏 (768px 以下) */
@media (max-width: 768px) {
	.hide-md, .hide-lg, .hide-sm {
		display: grid !important;
	}
}


/* ========================================
   響應式設計
   ======================================== */

/* 平板 (992px 以下) */
@media (max-width: 992px) {
	.sys-table-wrapper {
		margin: -20px;
		padding: 20px;
	}

	.sys-table th,
	.sys-table td {
		padding: 12px;
		font-size: 0.9rem;
	}
}

/* 手機 (768px 以下) - 卡片式佈局 */
@media (max-width: 768px) {
	.sys-table-wrapper {
		margin: -15px;
		padding: 15px;
	}

	/* 隱藏表格標題 */
	.sys-table thead {
		display: none;
	}

	/* 表格改為區塊顯示 */
	.sys-table,
	.sys-table tbody,
	.sys-table tr {
		display: block;
		width: 100%;
	}

	/* 每一行變成卡片 */
	.sys-table tbody tr {
		background: rgba(255, 255, 255, 0.02);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 12px;
		margin-bottom: 15px;
		display: grid;
		grid-template-columns: 1fr;
		padding: 12px;
		gap: 8px;
	}

	.sys-table tbody tr:hover {
		background: rgba(0, 217, 255, 0.05);
		border-color: rgba(0, 217, 255, 0.3);
	}

	/* 儲存格樣式 - 左右佈局 */
	.sys-table td {
		display: grid;
		grid-template-columns: 75px 1fr;
		grid-template-areas: "label content";
		align-items: center;
		padding: 8px 0;
		border: none;
		font-size: 0.8rem;
		gap: 12px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.sys-table td:last-child {
		border-bottom: none;
	}

	/* 在每個儲存格前添加標籤 - 左側 */
	.sys-table td::before {
		content: attr(data-label);
		grid-area: label;
		font-weight: 600;
		color: #00d9ff;
		font-size: 0.8rem;
		text-align: left;
	}

	/* 分頁 */
	.pagination {
		flex-direction: column;
		gap: 10px;
	}

	.pagination .btn {
		width: 100%;
		justify-content: center;
	}

	.td-description {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}



}


