.fx-apprentices-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  color: #0f172a;
  font-family: inherit;
}

.fx-apprentices-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.fx-apprentices-heading h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.fx-apprentices-heading p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.fx-apprentices-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.fx-apprentices-icon--title {
  width: 32px;
  height: 32px;
  color: #2563eb;
}

.fx-apprentices-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  align-items: stretch;
  gap: 24px;
}

.fx-apprentices-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.fx-apprentices-card,
.fx-apprentices-actions {
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.fx-apprentices-card {
  padding: 24px;
}

.fx-apprentices-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #2563eb;
  font-size: 18px;
  font-weight: 600;
}

.fx-apprentices-summary {
  display: grid;
  grid-template-columns: 1.2fr 1.15fr 1fr 1.2fr 1fr;
  padding: 16px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
}

.fx-apprentices-kpi {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}

.fx-apprentices-kpi:first-child { padding-left: 0; }
.fx-apprentices-kpi:last-child { padding-right: 0; }
.fx-apprentices-kpi + .fx-apprentices-kpi { border-left: 1px solid #e6e9ef; }

.fx-apprentices-kpi > span {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-apprentices-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.fx-apprentices-value--company {
  justify-content: flex-start;
  color: #0f172a;
  font-size: 14px;
}

.fx-apprentices-value--quantity {
  background: #eff6ff;
  color: #2563eb;
}

.fx-apprentices-table-card { flex: 1; }
.fx-apprentices-table-card h2 { margin-bottom: 16px; }

.fx-apprentices-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
}

.fx-apprentices-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #1f2937;
  font-size: 14px;
}

.fx-apprentices-table-wrap th,
.fx-apprentices-table-wrap td {
  height: 56px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e9ef;
  text-align: left;
}

.fx-apprentices-table-wrap th {
  color: #0f172a;
  font-weight: 600;
}

.fx-apprentices-table-wrap tbody:empty::after {
  display: table-row;
  height: 56px;
  content: '';
}

.fx-apprentices-table-wrap tfoot td {
  height: 48px;
  border-bottom: 0;
  color: #6b7280;
  font-size: 12px;
}

.fx-apprentices-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 16px;
}

.fx-apprentices-actions button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.fx-apprentices-actions button:hover { background: #f8fafc; }

.fx-apprentices-actions button.is-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.fx-apprentices-actions button.is-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

body:has(.fx-apprentices-page) #shell.fx-system .fx-workspace {
  grid-template-columns: minmax(0, 1fr);
}

body:has(.fx-apprentices-page) #shell.fx-system .fx-workspace > .fx-actions {
  display: none !important;
}

@media (max-width: 1100px) {
  .fx-apprentices-page { padding: 16px; }
  .fx-apprentices-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
  .fx-apprentices-summary { min-width: 920px; }
  .fx-apprentices-card { overflow-x: auto; }
}

@media (max-width: 760px) {
  .fx-apprentices-layout { grid-template-columns: 1fr; }
  .fx-apprentices-actions { min-height: auto; }
}
