* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	font-family: Arial, sans-serif;
}

body {
	min-height: 100vh;
	display: flex;
}

.sidebar {
	width: 240px;
	min-height: 100vh;
	padding: 20px;
	background: #222;
	color: #fff;

	display: flex;
	flex-direction: column;
}

.sidebar h1 {
	margin: 0 0 25px;
	font-size: 22px;
}

.navigation {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.navigation a {
	display: block;
	padding: 10px;
	color: #fff;
	text-decoration: none;
	background: #333;
}

.navigation a:hover {
	background: #444;
}

.navigation a.active-nav {
    background: #444;
    border-left: 4px solid #4b84c4;
    padding-left: 16px;
	pointer-events: none;
	cursor: default;
}


.dashboard-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.dashboard-card {
	display: flex;
	align-items: center;
	gap: 16px;

	width: 320px;
	padding: 18px;

	border: 1px solid #d8d8d8;
	border-radius: 8px;

	background: #fff;
	color: inherit;
	text-decoration: none;

	box-shadow: 0 2px 8px rgba(0,0,0,.08);

	transition:
		transform .15s ease,
		box-shadow .15s ease,
		border-color .15s ease;
}

.dashboard-card:hover {
	transform: translateY(-2px);

	border-color: #4b84c4;

	box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.dashboard-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 56px;
	height: 56px;

	font-size: 30px;

	border-radius: 8px;

	background: #eef5fb;
}

.dashboard-card-body {
	flex: 1;
}

.dashboard-card-body h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.dashboard-card-body p {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.4;
}



.logout-form {
	margin-top: auto;
}

.logout-form button {
	width: 100%;
	padding: 10px;
	color: #fff;
	background: #8b1d1d;
	border: 0;
	cursor: pointer;
}

.logout-form button:hover {
	background: #a52323;
}

.content {
	flex: 1;
	padding: 30px;
}




.record-action-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.record-action-table th,
.record-action-table td {
	padding: 14px 16px;
	text-align: left;
}

.record-action-table th {
	background: #333;
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.record-action-table th:last-child,
.record-action-table td:last-child {
	min-width: 20%;
	text-align: center;
}

.record-action-table tbody tr {
	display: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.record-action-table tbody tr:nth-child(even) {
	background: #f5f5f5;
}

.record-action-table tbody tr:hover {
	background: #e8f1f8;
}

.record-action-table tbody tr:not(:last-child) td {
	border-bottom: 1px solid #ddd;
}

.record-action-table .record-action {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid #777;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		border-color 0.15s ease;
}

.record-action-table .record-action:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.record-action-table .record-action:focus-visible {
	outline: 3px solid rgba(50, 120, 180, 0.35);
	outline-offset: 2px;
}


.record-action-table-container {
	width: 60%;
}

.record-action-table-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
}

.record-action-table-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin-top: 12px;
}

.pagination-left,
.pagination-center,
.pagination-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pagination-left {
	justify-content: flex-start;
}

.pagination-center {
	justify-content: center;
}

.pagination-right {
	justify-content: flex-end;
}



.record-action-table-page-status {
	min-width: 120px;
	text-align: center;
	font-size: 13px;
}

.record-action-table-pagination button {
	padding: 7px 12px;
	border: 1px solid #aaa;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-weight: bold;
	cursor: pointer;
}

.record-action-table-pagination button:hover:not(:disabled) {
	background: #333;
	border-color: #333;
	color: #fff;
}

.record-action-table-pagination button:disabled {
	opacity: .4;
	cursor: default;
}


.table-sort-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.table-sort-button::after {
  display: inline-block;
  margin-left: 8px;
  content: "↕";
  opacity: 0.45;
}
.table-sort-button.sort-asc::after {
  content: "▲";
  opacity: 1;
}
.table-sort-button.sort-desc::after {
  content: "▼";
  opacity: 1;
}
.table-sort-button:hover {
  text-decoration: underline;
}
.table-sort-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


.table-search {
	width: 300px;
	max-width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #bbb;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.table-search:focus {
	border-color: #4b84c4;
	box-shadow: 0 0 0 3px rgba(75,132,196,.2);
}
