.employees-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.employees-layout--full {
  gap: 0;
}

.employees-layout--full .employees-sidebar {
  display: none;
}

.employees-layout--full .employees-content {
  width: 100%;
}

.employees-sidebar {
  width: 280px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 4px;
}

.employees-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.employees-sidebar-title {
  font-weight: bold;
}

.employees-sidebar--collapsed .employees-sidebar-body {
  display: none;
}

.employees-toggle-filters {
  white-space: nowrap;
}

.employees-block {
  margin-bottom: 16px;
}

.employees-block-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.employees-field {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employees-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.employees-content {
  flex: 1;
}

.employees-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.employees-toolbar .button {
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #f7f7f7;
  padding: 4px 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.employees-toolbar .button:hover {
  background: #eef3fb;
}

.employees-toolbar .button--active {
  background: #2b6cb0;
  border-color: #2b6cb0;
  color: #fff;
}

.employees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.employees-card {
  display: flex;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  align-items: flex-start;
}

.employees-card-avatar {
  flex: 0 0 auto;
}

.employees-card-body {
  min-width: 0;
  flex: 1 1 auto;
}

.employees-grid--large .employees-card {
  flex-direction: column;
}

.employees-grid--large .employees-card-avatar {
  margin-bottom: 8px;
}

.employees-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.employees-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.employees-avatar--missing {
  border-radius: 8px;
  background: #e6e6e6;
}

.employees-avatar-placeholder {
  border-radius: 8px;
  display: block;
}

.employees-card-name {
  font-weight: bold;
  font-size: 15px;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.employees-card-tags,
.employees-issue-tags {
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.employees-tag {
  display: inline-flex;
  align-items: center;
  background: #e8eef6;
  color: #2a4b8d;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.employees-card-line {
  display: flex;
  gap: 6px;
  line-height: 1.4;
  flex-wrap: wrap;
}

.employees-card-label {
  color: #777;
  flex: 0 1 auto;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.employees-card-value {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.employees-card-secondary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.employees-card-empty,
.employees-issue-empty {
  margin-top: 8px;
  color: #666;
  font-style: italic;
}

.employees-card-primary,
.employees-issue-primary {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #f3f7ff;
}

.employees-issue-primary {
  margin-bottom: 8px;
}

.employees-list td.avatar {
  width: 52px;
}

.employees-list th,
.employees-list td {
  border-right: 1px solid #e3e3e3;
}

.employees-list th:last-child,
.employees-list td:last-child {
  border-right: none;
}

.employees-list thead th {
  background: #f3f3f3;
}

.employees-list tbody td {
  vertical-align: top;
}

.employees-list-tags {
  margin-top: 4px;
}

.employees-empty {
  padding: 20px;
  color: #666;
}

.employees-content ul.pages {
  list-style: none;
  padding: 0;
}

.employees-content ul.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 16px;
}

.employees-content ul.pages a,
.employees-content ul.pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #f7f7f7;
  color: #333;
  text-decoration: none;
}

.employees-content ul.pages a:hover {
  background: #e9eef5;
}

.employees-content ul.pages li.current span {
  background: #2b6cb0;
  border-color: #2b6cb0;
  color: #fff;
}

.employees-content ul.pages li.previous span,
.employees-content ul.pages li.next span {
  color: #999;
  background: #f1f1f1;
  border-color: #e5e5e5;
}

.employees-content ul.pages li.previous span,
.employees-content ul.pages li.next span,
.employees-content ul.pages li.previous a,
.employees-content ul.pages li.next a {
  padding: 0 12px;
}

.employees-content ul.pages li.current span,
.employees-content ul.pages li.page a {
  font-weight: 600;
}

.employees-content ul.pages li {
  margin: 0;
}

.employees-content ul.pages {
  margin-bottom: 4px;
}

.employees-content ul.pages + p {
  color: #666;
  margin-top: 4px;
}

body.employees-context table.issues th.checkbox,
body.employees-context table.issues td.checkbox,
body.employees-context table.issues th.id,
body.employees-context table.issues td.id,
body.employees-context table.issues th.tracker,
body.employees-context table.issues td.tracker {
  display: none;
}

.employees-issue-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 12px;
}

.employees-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  border: 1px solid #c8d4e3;
  background: #f3f7ff;
  color: #1f4b7a;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
}

.employees-back-button:hover {
  background: #e6eefc;
  border-color: #b5c6dd;
}

.employees-issue-panel {
  margin: 16px 0;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.employees-issue-panel-title {
  padding: 10px 14px;
  font-weight: 600;
  color: #1f4b7a;
  border-bottom: 1px solid #d7dee8;
  background: linear-gradient(90deg, #eef5ff, #f8fbff);
  border-radius: 10px 10px 0 0;
}

.employees-issue-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.employees-issue-line {
  display: flex;
  gap: 6px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.employees-issue-line .employees-card-value {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.employees-issue-body {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 960px) {
  .employees-layout {
    flex-direction: column;
  }

  .employees-sidebar {
    width: 100%;
  }
}
