* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #212529;
  background-color: #f4f6f9;
}

.app-header {
  height: 56px;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-brand h1 {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.5px;
}

.header-brand h1 span {
  color: #0d6efd;
}

.header-nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.header-nav-right a {
  color: #0d6efd;
  text-decoration: none;
}

.header-nav-right a:hover {
  text-decoration: underline;
}

.header-nav-right .divider {
  color: #cccccc;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 220px;
  background-color: #ffffff;
  border-right: 1px solid #dee2e6;
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  z-index: 900;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.sidebar-menu li a {
  display: block;
  padding: 10px 18px;
  color: #495057;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
  background-color: #f8f9fa;
  color: #000000;
}

.sidebar-menu li.active a,
.sidebar-menu li a.active {
  background-color: #e7f1ff;
  color: #0d6efd;
  font-weight: 600;
  border-left-color: #0d6efd;
}

.app-main {
  margin-left: 220px;
  margin-top: 56px;
  flex: 1;
  padding: 20px;
  min-height: calc(100vh - 56px);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.page-heading h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

.content-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 20px;
}

.card-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

.card-title-bar h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
}

.filter-form-box {
  background-color: #fafbfc;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #495057;
}

.form-control {
  width: 100%;
  height: 33px;
  padding: 5px 9px;
  font-size: 13px;
  color: #495057;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 3px;
  outline: none;
}

.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

textarea.form-control {
  height: auto;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  color: #ffffff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

.btn-default {
  color: #212529;
  background-color: #ffffff;
  border-color: #ced4da;
}

.btn-default:hover {
  background-color: #e9ecef;
}

.btn-danger {
  color: #ffffff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #bb2d3b;
}

.btn-sm {
  padding: 3px 8px;
  font-size: 11.5px;
}

.table-responsive {
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dee2e6;
  font-size: 12.5px;
}

.table-custom th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

.table-custom td {
  padding: 8px 10px;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

.table-custom tbody tr:hover {
  background-color: #f8f9fa;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 3px;
}

.badge-success {
  background-color: #d1e7dd;
  color: #0f5132;
}
.badge-info {
  background-color: #cff4fc;
  color: #055160;
}
.badge-warning {
  background-color: #fff3cd;
  color: #664d03;
}
.badge-danger {
  background-color: #f8d7da;
  color: #842029;
}
.badge-default {
  background-color: #e2e3e5;
  color: #41464b;
}
.badge-secondary,
.badge-neutral {
  background-color: #64748b;
  color: #ffffff;
}
.badge-incomplete {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.table-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: #6c757d;
}

.pagination-list {
  display: inline-flex;
  list-style: none;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  overflow: hidden;
}

.pagination-list button {
  background: #ffffff;
  border: none;
  border-right: 1px solid #dee2e6;
  padding: 5px 10px;
  font-size: 12px;
  color: #0d6efd;
  cursor: pointer;
}

.pagination-list button:last-child {
  border-right: none;
}

.pagination-list button:hover:not(:disabled) {
  background: #f8f9fa;
}

.pagination-list button.active {
  background: #0d6efd;
  color: #ffffff;
  font-weight: 600;
}

.pagination-list button:disabled {
  color: #adb5bd;
  cursor: not-allowed;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.modal-body {
  padding: 16px;
}

.modal-footer {
  padding: 10px 16px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
