
/* =========================================================
   BASE WRAPPER
   ========================================================= */

#tnl-fn-log-app {
	font-family: Arial, sans-serif;
	padding: 15px;
	background: #f6f7f7;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.tnl-fn-log-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
	padding: 10px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}
.tnl-fn-log-toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tnl-fn-log-toolbar select,
.tnl-fn-log-toolbar input {
	padding: 6px 8px;
	border: 1px solid #ccd0d4;
	border-radius: 3px;
	font-size: 13px;
}

.tnl-fn-log-toolbar button {
	padding: 6px 12px;
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #fff;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
}

.tnl-fn-log-toolbar button:hover {
	background: #135e96;
}

/* =========================================================
   GRID TABLE
   ========================================================= */

#tnl-grid {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	overflow-x: auto;
}

.tnl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 800px;
}

.tnl-table thead {
	background: #f0f0f1;
}

.tnl-table th,
.tnl-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	white-space: nowrap;
}

.tnl-table tr:hover {
	background: #f9f9f9;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.tnl-pagination {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tnl-pagination button {
	padding: 6px 10px;
	border: 1px solid #ccd0d4;
	background: #fff;
	cursor: pointer;
	border-radius: 3px;
}

.tnl-pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* =========================================================
   LOADING STATE
   ========================================================= */

.tnl-loading {
	padding: 20px;
	text-align: center;
	font-style: italic;
	color: #666;
}

/* =========================================================
   MODAL
   ========================================================= */

.tnl-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.tnl-modal-content {
	background: #fff;
	width: 420px;
	max-width: 95%;
	padding: 20px;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tnl-modal-content h3 {
	margin-top: 0;
}

.tnl-modal-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 15px;
}

.tnl-modal-buttons button {
	padding: 6px 12px;
	border-radius: 3px;
	cursor: pointer;
	border: 1px solid #ccd0d4;
	background: #fff;
}

.tnl-modal-buttons .tnl-danger {
	background: #d63638;
	color: #fff;
	border-color: #d63638;
}

.tnl-modal-buttons .tnl-danger:hover {
	background: #b32d2e;
}

/* =========================================================
   WARNING BOX
   ========================================================= */

.tnl-warning {
	background: #fcf9e8;
	border-left: 4px solid #dba617;
	padding: 10px;
	margin-top: 10px;
	font-size: 13px;
}

/* =========================================================
   ADMIN NOTICES
   ========================================================= */

#tnl-admin-notice {
	margin-bottom: 10px;
}

.tnl-notice {
	padding: 10px 12px;
	border-left: 4px solid;
	background: #fff;
	margin-bottom: 10px;
	border-radius: 3px;
	position: relative;
}

.tnl-notice-success {
	border-color: #00a32a;
}

.tnl-notice-error {
	border-color: #d63638;
}

.tnl-notice-warning {
	border-color: #dba617;
}

.tnl-notice-info {
	border-color: #2271b1;
}

.tnl-close {
	position: absolute;
	right: 10px;
	top: 6px;
	cursor: pointer;
	font-size: 16px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

	.tnl-fn-log-toolbar {
		flex-direction: column;
	}

	.tnl-table {
		font-size: 12px;
	}
}

/* =========================================================
   Buttons
   ========================================================= */

.tnl-button:disabled {
    opacity: 0.45;
	border-radius: 3px;
    cursor: not-allowed;
    pointer-events: none;
    background: #e5e5e5;
    border: 1px solid #c3c4c7;
    color: #8c8f94;
    box-shadow: none;
	font-size: 13px;
	padding: 6px 12px;
}

