.classes-workspace {
  --cw-blue: #1783e6;
  --cw-blue-dark: #0b5eae;
  --cw-text: #0c2747;
  --cw-muted: #5c7089;
  --cw-border: #d8e6f4;
  --cw-pale: #edf5fc;
  --cw-page: #f6f9fc;
  color: var(--cw-text);
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-bottom: 10px;
}

.classes-workspace button,
.classes-workspace input,
.classes-workspace select {
  font: inherit;
}

.cw-page-header {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.cw-breadcrumb {
  align-items: center;
  color: var(--cw-muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin-bottom: 7px;
}

.cw-breadcrumb button {
  background: none;
  border: 0;
  color: var(--cw-blue);
  cursor: pointer;
  padding: 0;
}

.cw-page-header h1 {
  font-size: 31px;
  line-height: 1.1;
  margin: 0;
}

.cw-page-header p {
  color: var(--cw-muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.cw-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.cw-header-actions button,
.cw-filter-actions button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  height: 41px;
  justify-content: center;
  padding: 0 15px;
  white-space: nowrap;
}

.cw-icon {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.cw-tabs {
  align-items: stretch;
  border-bottom: 1px solid var(--cw-border);
  display: flex;
  min-height: 44px;
}

.cw-tabs button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cw-border);
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #38536f;
  cursor: pointer;
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: -1px;
  min-width: 190px;
  padding: 0 22px;
}

.cw-tabs button + button {
  margin-left: -1px;
}

.cw-tabs button.active {
  background: #f7fbff;
  border-bottom-color: var(--cw-blue);
  color: var(--cw-blue);
}

.cw-filter-bar,
.cw-advanced,
.cw-kpi,
.cw-main-card,
.cw-chart-card,
.cw-attention {
  background: #fff;
  border: 1px solid var(--cw-border);
  border-radius: 12px;
}

.cw-filter-bar {
  align-items: end;
  display: grid;
  gap: 11px;
  padding: 13px;
}

.cw-list-filters {
  grid-template-columns: minmax(205px, 1.25fr) repeat(4, minmax(125px, .85fr)) minmax(145px, .9fr) auto;
}

.cw-capacity-filters {
  grid-template-columns: minmax(150px, .8fr) minmax(170px, .9fr) minmax(170px, .9fr) minmax(260px, 1.35fr) auto;
}

.cw-filter {
  color: var(--cw-text);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-width: 0;
}

.cw-filter select,
.cw-filter input,
.cw-search > div {
  background-color: #fbfdff;
  border: 1px solid #c9dced;
  border-radius: 7px;
  color: var(--cw-text);
  height: 40px;
  min-width: 0;
  outline: 0;
  padding: 0 11px;
  width: 100%;
}

.cw-filter select:focus,
.cw-filter input:focus,
.cw-search > div:focus-within {
  border-color: var(--cw-blue);
  box-shadow: 0 0 0 3px rgba(23, 131, 230, .1);
}

.cw-search > div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cw-search > div input {
  background: none;
  border: 0;
  box-shadow: none;
  height: 38px;
  padding: 0;
}

.cw-filter-actions {
  display: flex;
  gap: 8px;
}

.cw-filter-actions button {
  padding: 0 13px;
}

.cw-kpi-grid {
  display: grid;
  gap: 12px;
}

.cw-six-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cw-four-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cw-kpi {
  align-items: center;
  display: flex;
  gap: 12px;
  height: 100px;
  min-width: 0;
  padding: 14px;
}

.cw-kpi-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.cw-kpi-icon .cw-icon {
  height: 24px;
  width: 24px;
}

.cw-kpi-icon.blue { background: #e8f3ff; color: #147ce5; }
.cw-kpi-icon.teal { background: #e3f8f7; color: #0f9e9a; }
.cw-kpi-icon.violet { background: #f1eaff; color: #7b4ce2; }
.cw-kpi-icon.orange { background: #fff2df; color: #e77817; }
.cw-kpi-icon.green { background: #e5f8ec; color: #169b52; }

.cw-kpi > div {
  min-width: 0;
}

.cw-kpi p,
.cw-kpi strong,
.cw-kpi small {
  display: block;
  margin: 0;
}

.cw-kpi p {
  color: var(--cw-muted);
  font-size: 12.5px;
  line-height: 1.2;
}

.cw-kpi strong {
  color: var(--cw-text);
  font-size: 25px;
  line-height: 1.15;
  margin: 3px 0;
  white-space: nowrap;
}

.cw-kpi small {
  color: #537092;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-main-card {
  min-width: 0;
  overflow: hidden;
}

.cw-main-card > header,
.cw-chart-card > header,
.cw-attention > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 11px 16px;
}

.cw-main-card h2,
.cw-chart-card h2,
.cw-attention h2 {
  align-items: center;
  display: flex;
  font-size: 17px;
  gap: 8px;
  margin: 0;
}

.cw-view-toggle {
  display: flex;
}

.cw-view-toggle button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cw-border);
  color: var(--cw-muted);
  cursor: pointer;
  display: flex;
  font-size: 12.5px;
  font-weight: 700;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
}

.cw-view-toggle button:first-child { border-radius: 7px 0 0 7px; }
.cw-view-toggle button:last-child { border-radius: 0 7px 7px 0; margin-left: -1px; }
.cw-view-toggle button.active { border-color: var(--cw-blue); color: var(--cw-blue); position: relative; z-index: 1; }

.cw-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.cw-table {
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 1320px;
  width: 100%;
}

.cw-capacity-card .cw-table {
  min-width: 900px;
}

.cw-table th {
  background: var(--cw-pale);
  border-bottom: 1px solid #caddeb;
  color: #294661;
  font-size: 11.5px;
  font-weight: 700;
  height: 40px;
  padding: 0;
  text-align: left;
  white-space: nowrap;
}

.cw-table th > button {
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 6px;
  height: 40px;
  justify-content: space-between;
  padding: 0 10px;
  width: 100%;
}

.cw-table th > button i {
  color: #7892ac;
  font-style: normal;
}

.cw-actions-head {
  display: block;
  padding: 0 10px;
}

.cw-table td {
  border-bottom: 1px solid #e4edf5;
  color: #294661;
  height: 43px;
  padding: 6px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.cw-table tbody tr:nth-child(even) {
  background: #f8fbfe;
}

.cw-table tbody tr:hover {
  background: #eaf5ff;
}

.cw-table td.number {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cw-class-link,
.cw-inline-link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-align: left;
}

.cw-class-link {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
}

.cw-class-link:hover,
.cw-inline-link:hover {
  color: var(--cw-blue);
  text-decoration: underline;
}

.cw-cycle-dot {
  background: #1783e6;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 7px;
  height: 7px;
  width: 7px;
}

.cw-cycle-dot.primaire { background: #0f9e9a; }
.cw-cycle-dot.secondaire-cycle-dorientation { background: #7b4ce2; }
.cw-cycle-dot.secondaire-section { background: #e77817; }

.cw-occupancy {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 128px;
}

.cw-occupancy > span {
  background: #dfe8f0;
  border-radius: 5px;
  display: block;
  height: 6px;
  overflow: hidden;
  width: 78px;
}

.cw-occupancy > span i {
  background: #169b52;
  display: block;
  height: 100%;
}

.cw-occupancy.presque-complete > span i,
.cw-occupancy.complete > span i { background: #e77817; }
.cw-occupancy.surchargee > span i { background: #e23a4d; }
.cw-occupancy strong { font-size: 12px; min-width: 38px; }

.cw-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  padding: 5px 10px;
}

.cw-status.disponible { background: #e4f7eb; color: #14874a; }
.cw-status.bonne-capacite { background: #e8f7ed; color: #177c4a; }
.cw-status.presque-complete { background: #fff1df; color: #c76108; }
.cw-status.complete { background: #ffead8; color: #aa4f08; }
.cw-status.surchargee { background: #ffe8eb; color: #c62e42; }
.cw-status.capacite-non-definie { background: #edf1f5; color: #607286; }

.cw-capacity-missing {
  color: #71839a;
  font-size: 11.5px;
}

.cw-overload {
  color: #d72f43;
  display: block;
  font-size: 10px;
  font-weight: 700;
}

.cw-row-menu {
  position: relative;
}

.cw-row-menu summary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #45627f;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 28px;
  justify-content: center;
  list-style: none;
  width: 30px;
}

.cw-row-menu summary::-webkit-details-marker { display: none; }
.cw-row-menu summary:hover { background: #e7f3ff; border-color: #c8e0f5; color: var(--cw-blue); }

.cw-row-menu > div {
  background: #fff;
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(12, 39, 71, .16);
  display: grid;
  min-width: 190px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 31px;
  z-index: 30;
}

.cw-table tbody tr:nth-last-child(-n + 3) .cw-row-menu > div {
  bottom: 31px;
  top: auto;
}

.cw-row-menu button {
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--cw-text);
  cursor: pointer;
  font-size: 12px;
  padding: 8px 9px;
  text-align: left;
}

.cw-row-menu button:hover { background: #edf6ff; color: var(--cw-blue); }
.cw-row-menu button.danger { color: #c62e42; }

.cw-table-footer {
  align-items: center;
  color: var(--cw-muted);
  display: grid;
  font-size: 11.5px;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 61px;
  padding: 10px 15px;
}

.cw-table-footer > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.cw-table-footer > div:last-child {
  justify-content: flex-end;
}

.cw-table-footer label {
  align-items: center;
  display: flex;
  gap: 5px;
}

.cw-table-footer select {
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  height: 31px;
}

.cw-table-footer nav {
  display: flex;
  gap: 5px;
}

.cw-table-footer nav button {
  background: #fff;
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  color: #3e5b77;
  cursor: pointer;
  height: 31px;
  min-width: 31px;
}

.cw-table-footer nav button.active {
  background: var(--cw-blue);
  border-color: var(--cw-blue);
  color: #fff;
}

.cw-table-footer nav button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.cw-table-footer > div:last-child button,
.cw-card-link button,
.cw-attention footer button {
  align-items: center;
  background: none;
  border: 0;
  color: var(--cw-blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 700;
  gap: 5px;
}

.cw-class-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 15px 15px;
}

.cw-class-card {
  border: 1px solid var(--cw-border);
  border-radius: 10px;
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 14px;
}

.cw-class-card > header,
.cw-class-card > footer {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.cw-class-card > header > div {
  display: grid;
  grid-template-columns: auto 1fr;
  min-width: 0;
}

.cw-class-card > header .cw-cycle-dot { margin: 6px 8px 0 0; }
.cw-class-card > header button { background: none; border: 0; color: var(--cw-text); font-size: 14px; font-weight: 700; overflow: hidden; padding: 0; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.cw-class-card > header span { color: var(--cw-muted); font-size: 11.5px; grid-column: 2; }
.cw-class-card dl { display: grid; gap: 7px; margin: 0; }
.cw-class-card dl div { display: flex; font-size: 12px; gap: 12px; justify-content: space-between; }
.cw-class-card dt { color: var(--cw-muted); }
.cw-class-card dd { font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-card-numbers { background: #f3f8fc; border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px; }
.cw-card-numbers span { color: var(--cw-muted); font-size: 10.5px; text-align: center; }
.cw-card-numbers b { color: var(--cw-text); display: block; font-size: 16px; }
.cw-class-card > footer { align-items: center; }
.cw-class-card > footer > button { align-items: center; background: none; border: 0; color: var(--cw-blue); display: flex; font-size: 11.5px; font-weight: 700; gap: 5px; }

.cw-advanced {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  padding: 14px;
}

.cw-advanced-checks {
  align-content: center;
  display: grid;
  gap: 7px;
  grid-column: span 3;
}

.cw-advanced-checks label {
  align-items: center;
  color: #405e79;
  display: flex;
  font-size: 12px;
  gap: 8px;
}

.cw-advanced-actions {
  align-items: end;
  display: flex;
  gap: 8px;
  grid-column: span 2;
  justify-content: flex-end;
}

.cw-advanced-actions button {
  border-radius: 7px;
  height: 38px;
  padding: 0 13px;
}

.cw-chart-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cw-chart-card {
  height: 250px;
  min-width: 0;
  overflow: hidden;
}

.cw-chart-card > header {
  min-height: 48px;
}

.cw-chart-card h2 {
  font-size: 14px;
}

.cw-bar-chart {
  align-items: end;
  background: repeating-linear-gradient(to top, #edf2f7 0, #edf2f7 1px, transparent 1px, transparent 42px);
  display: flex;
  gap: clamp(18px, 5vw, 70px);
  height: 184px;
  justify-content: center;
  margin: 0 18px 16px;
  padding: 22px 15px 0;
}

.cw-bar-chart button {
  align-items: center;
  align-self: stretch;
  background: none;
  border: 0;
  color: var(--cw-muted);
  cursor: pointer;
  display: flex;
  flex: 0 1 84px;
  flex-direction: column;
  font-size: 11px;
  justify-content: flex-end;
  min-width: 50px;
}

.cw-bar-chart button strong {
  color: var(--cw-text);
  font-size: 12px;
  margin-bottom: 5px;
}

.cw-bar-chart button i {
  background: linear-gradient(#58aafb, #1783e6);
  border-radius: 5px 5px 0 0;
  height: var(--bar-height);
  min-height: 5px;
  width: 52px;
}

.cw-bar-chart button:nth-child(2) i { background: linear-gradient(#1e91ec, #0b69cb); }
.cw-bar-chart button:nth-child(3) i { background: linear-gradient(#6caefa, #3b7cdb); }
.cw-bar-chart button:nth-child(4) i { background: linear-gradient(#89bdf2, #4e8dce); }
.cw-bar-chart button span { line-height: 1.15; margin-top: 7px; min-height: 26px; text-align: center; }

.cw-donut-layout {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: 185px 1fr;
  height: 190px;
  padding: 0 28px 18px;
}

.cw-donut {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 150px;
  justify-content: center;
  position: relative;
  width: 150px;
}

.cw-donut::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  inset: 32px;
  position: absolute;
}

.cw-donut span {
  display: grid;
  position: relative;
  text-align: center;
  z-index: 1;
}

.cw-donut strong { font-size: 23px; }
.cw-donut small { color: var(--cw-muted); font-size: 11px; }
.cw-donut-legend { display: grid; gap: 7px; }
.cw-donut-legend button { align-items: center; background: none; border: 0; color: var(--cw-text); cursor: pointer; display: grid; font-size: 11.5px; gap: 8px; grid-template-columns: 9px minmax(120px, 1fr) auto; padding: 0; text-align: left; }
.cw-donut-legend button i { border-radius: 50%; height: 8px; width: 8px; }
.cw-donut-legend button strong { font-size: 11px; font-weight: 600; white-space: nowrap; }

.cw-lower-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
}

.cw-capacity-card .cw-table td,
.cw-capacity-card .cw-table th {
  height: 39px;
}

.cw-card-link {
  padding: 11px 16px 14px;
}

.cw-attention {
  overflow: hidden;
}

.cw-attention h2 {
  font-size: 14px;
}

.cw-attention > section {
  border-top: 1px solid #e5edf5;
  padding: 11px 14px;
}

.cw-attention h3 {
  align-items: center;
  color: #38546f;
  display: flex;
  font-size: 11.5px;
  justify-content: space-between;
  margin: 0 0 8px;
}

.cw-attention h3 b {
  background: #edf3f8;
  border-radius: 5px;
  font-size: 10px;
  padding: 3px 7px;
}

.cw-attention h3.red { color: #d72f43; }
.cw-attention h3.orange,
.cw-attention h3.amber { color: #c76108; }
.cw-attention > section > button {
  align-items: center;
  background: none;
  border: 0;
  color: #38546f;
  cursor: pointer;
  display: grid;
  font-size: 11.5px;
  gap: 8px;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  padding: 5px 0;
  text-align: left;
  width: 100%;
}

.cw-attention > section > button i {
  background: #f16a75;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.cw-attention > section > button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-attention > section > button strong {
  font-size: 10.5px;
}

.cw-attention footer {
  border-top: 1px solid #e5edf5;
  padding: 11px 14px;
}

.cw-updated {
  color: #70849a;
  font-size: 10.5px;
  margin: -5px 0 0;
  text-align: center;
}

.cw-empty {
  color: var(--cw-muted);
  padding: 30px;
  text-align: center;
}

.cw-empty.compact {
  padding: 22px 14px;
}

.cw-print-header {
  display: none;
}

.cw-print-table {
  display: none;
}

@media (max-width: 1180px) {
  .cw-list-filters,
  .cw-capacity-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cw-filter-actions {
    grid-column: auto;
  }
  .cw-four-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-chart-grid,
  .cw-lower-grid {
    grid-template-columns: 1fr;
  }
  .cw-class-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-table-footer {
    grid-template-columns: 1fr auto;
  }
  .cw-table-footer > div:last-child {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .cw-advanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .classes-workspace {
    gap: 12px;
  }
  .cw-page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }
  .cw-page-header h1 {
    font-size: 28px;
  }
  .cw-header-actions {
    flex-wrap: wrap;
  }
  .cw-header-actions button:first-child {
    flex: 1 0 100%;
  }
  .cw-header-actions button:not(:first-child) {
    flex: 1;
  }
  .cw-tabs {
    overflow-x: auto;
  }
  .cw-tabs button {
    flex: 1 0 auto;
    min-width: 175px;
    padding: 0 16px;
  }
  .cw-list-filters,
  .cw-capacity-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-search {
    grid-column: 1 / -1;
  }
  .cw-filter-actions {
    grid-column: 1 / -1;
  }
  .cw-filter-actions button {
    flex: 1;
  }
  .cw-six-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-kpi {
    height: 94px;
  }
  .cw-kpi strong {
    font-size: 23px;
  }
  .cw-main-card > header {
    align-items: flex-start;
    gap: 10px;
  }
  .cw-class-cards {
    grid-template-columns: 1fr;
  }
  .cw-table-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .cw-table-footer > div:last-child {
    align-items: flex-start;
    flex-direction: column;
    grid-column: auto;
  }
  .cw-table-footer nav {
    max-width: 100%;
    overflow-x: auto;
  }
  .cw-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cw-advanced-checks,
  .cw-advanced-actions {
    grid-column: 1 / -1;
  }
  .cw-donut-layout {
    gap: 14px;
    grid-template-columns: 145px 1fr;
    padding-inline: 15px;
  }
  .cw-donut {
    height: 130px;
    width: 130px;
  }
  .cw-donut::after {
    inset: 28px;
  }
}

@media (max-width: 480px) {
  .cw-page-header h1 {
    font-size: 26px;
  }
  .cw-header-actions button span {
    display: inline;
  }
  .cw-list-filters,
  .cw-capacity-filters,
  .cw-six-kpis,
  .cw-four-kpis,
  .cw-advanced {
    grid-template-columns: 1fr;
  }
  .cw-search,
  .cw-filter-actions,
  .cw-advanced-checks,
  .cw-advanced-actions {
    grid-column: auto;
  }
  .cw-kpi {
    height: 92px;
  }
  .cw-main-card > header {
    align-items: stretch;
    flex-direction: column;
  }
  .cw-view-toggle button {
    flex: 1;
    justify-content: center;
  }
  .cw-chart-card {
    height: auto;
    min-height: 270px;
  }
  .cw-bar-chart {
    gap: 8px;
    margin-inline: 8px;
    padding-inline: 0;
  }
  .cw-bar-chart button i {
    width: 36px;
  }
  .cw-donut-layout {
    grid-template-columns: 1fr;
    height: auto;
    justify-items: center;
  }
  .cw-donut-legend {
    width: 100%;
  }
  .cw-donut-legend button {
    grid-template-columns: 9px minmax(0, 1fr);
  }
  .cw-donut-legend button strong {
    grid-column: 2;
  }
}

@media print {
  @page {
    margin: 10mm;
    size: A4 landscape;
  }
  body.printing-classes-workspace .sidebar,
  body.printing-classes-workspace .topbar,
  body.printing-classes-workspace .cw-page-header,
  body.printing-classes-workspace .cw-tabs,
  body.printing-classes-workspace .cw-filter-bar,
  body.printing-classes-workspace .cw-advanced,
  body.printing-classes-workspace .cw-view-toggle,
  body.printing-classes-workspace .cw-row-menu,
  body.printing-classes-workspace .cw-table-footer,
  body.printing-classes-workspace .cw-card-link,
  body.printing-classes-workspace .cw-updated,
  body.printing-classes-workspace .floating-action {
    display: none !important;
  }
  body.printing-classes-workspace .cw-class-cards {
    display: none !important;
  }
  body.printing-classes-workspace .cw-print-table {
    display: block !important;
  }
  body.printing-classes-workspace .main,
  body.printing-classes-workspace .page-content {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }
  body.printing-classes-workspace .classes-workspace {
    display: block;
  }
  body.printing-classes-workspace .cw-print-header {
    align-items: center;
    border-bottom: 2px solid #0b5eae;
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  body.printing-classes-workspace .cw-print-header img {
    height: 52px;
    object-fit: contain;
    width: 52px;
  }
  body.printing-classes-workspace .cw-print-header strong,
  body.printing-classes-workspace .cw-print-header span,
  body.printing-classes-workspace .cw-print-header p {
    display: block;
  }
  body.printing-classes-workspace .cw-print-header h1 {
    font-size: 18px;
    margin: 4px 0 1px;
  }
  body.printing-classes-workspace .cw-print-header p,
  body.printing-classes-workspace .cw-print-header span {
    font-size: 9px;
    margin: 0;
  }
  body.printing-classes-workspace .cw-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 8px;
  }
  body.printing-classes-workspace [data-cw-tab="capacity"] .cw-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  body.printing-classes-workspace .cw-kpi {
    height: 58px;
    padding: 6px;
  }
  body.printing-classes-workspace .cw-kpi-icon {
    display: none;
  }
  body.printing-classes-workspace .cw-kpi strong {
    font-size: 14px;
  }
  body.printing-classes-workspace .cw-kpi p,
  body.printing-classes-workspace .cw-kpi small {
    font-size: 8px;
  }
  body.printing-classes-workspace .cw-main-card,
  body.printing-classes-workspace .cw-chart-card,
  body.printing-classes-workspace .cw-attention {
    break-inside: avoid;
    box-shadow: none;
  }
  body.printing-classes-workspace .cw-table {
    font-size: 7px;
    min-width: 0;
  }
  body.printing-classes-workspace .cw-table th,
  body.printing-classes-workspace .cw-table td {
    height: 20px;
    padding: 2px 4px;
  }
  body.printing-classes-workspace .cw-table th:last-child,
  body.printing-classes-workspace .cw-table td:last-child {
    display: none;
  }
  body.printing-classes-workspace .cw-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
  }
  body.printing-classes-workspace .cw-chart-card {
    height: 190px;
  }
  body.printing-classes-workspace .cw-lower-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
  }
}
