*{
	box-sizing: border-box;
}

body{
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f4f6f8;
	color: #222;
}

/* =======================
   TOPBAR
======================= */

.topbar{
	background: #1f2937;
	color: #fff;
}

.topbar-inner{
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo{
	font-size: 18px;
	font-weight: bold;
}

.menu a{
	color: #cbd5e1;
	text-decoration: none;
	margin-left: 20px;
	font-size: 14px;
}

.menu a:hover{
	color: #fff;
}

.menu .logout{
	color: #fca5a5;
}

.menu .logout:hover{
	color: #fff;
}

/* =======================
   LAYOUT
======================= */

.container{
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

h1{
	margin-top: 0;
	font-size: 22px;
}

/* =======================
   TABLES
======================= */

table{
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

th, td{
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
}

th{
	background: #f9fafb;
	font-weight: 600;
}

/* =======================
   STATUS
======================= */

.status-ok{
	color: #16a34a;
	font-weight: bold;
}

.status-error{
	color: #dc2626;
	font-weight: bold;
}

.status-unknown{
	color: #6b7280;
}

/* =======================
   BUTTONS
======================= */

.button{
	display: inline-block;
	padding: 8px 14px;
	background: #2563eb;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	border: none;
	cursor: pointer;
}

.button:hover{
	background: #1d4ed8;
}

.button-secondary{
	background: #6b7280;
}

.button-secondary:hover{
	background: #4b5563;
}

/* =======================
   TABS (КРАСИВЫЕ КНОПКИ)
======================= */

.tabs{
	margin-bottom: 20px;
}

.tabs-inner{
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tab{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-size: 14px;
	color: #374151;
	text-decoration: none;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover{
	background: #e5e7eb;
	color: #111827;
}

.tab.active{
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	font-weight: 600;
	cursor: default;
}

/* =======================
   ERROR BOX
======================= */

.error-box{
	margin-top: 10px;
	padding: 10px 12px;
	background: #fee2e2;
	color: #991b1b;
	border-radius: 4px;
	font-size: 13px;
}

table td:nth-child(6),
table th:nth-child(6){
	max-width: 360px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pagination{
	margin-top: 30px;
}