.ut-print-main {
  background: #fdfdfd;
}

.ut-print-shell {
  display: grid;
  gap: 24px;
  padding: 30px 34px 160px;
}

.ut-print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.ut-print-shell.is-teacher {
  gap: 18px;
}

.ut-print-teacher-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ut-print-teacher-summary article {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #dedfdb;
  border-radius: 22px;
  background: #fdfdfd;
}

.ut-print-teacher-summary strong {
  color: #102817;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.ut-print-teacher-summary span {
  color: #667069;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.ut-print-teacher-card {
  overflow: visible;
}

.ut-print-teacher-card-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #dedfdb;
}

.ut-print-teacher-card-head h2 {
  margin: 0;
  color: #102817;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.ut-print-teacher-card-head p {
  margin: 5px 0 0;
  color: #667069;
  font-size: 13px;
  font-weight: 750;
}

.ut-print-teacher-card .ut-print-primary-button {
  min-width: 190px;
  min-height: 48px;
}

.fd-role-docente .ut-print-main {
  overflow: hidden;
}

.fd-role-docente .ut-print-topbar {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.fd-role-docente .ut-print-topbar .fd-page-title {
  max-width: none;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.98;
}

.fd-role-docente .ut-print-topbar .fd-topbar-actions {
  width: 100%;
  justify-content: flex-end;
}

.fd-role-docente .ut-print-topbar .fd-search {
  width: min(100%, 520px);
}

.fd-role-docente .ut-print-shell {
  padding: 24px 28px 120px;
}

.fd-role-docente .ut-print-teacher-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fd-role-docente .ut-print-teacher-summary article {
  min-width: 0;
  min-height: 68px;
  gap: 12px;
  padding: 12px 14px;
}

.fd-role-docente .ut-print-teacher-summary strong {
  font-size: 28px;
}

.fd-role-docente .ut-print-teacher-summary span {
  min-width: 0;
  font-size: 11px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.fd-role-docente .ut-print-teacher-card-head {
  align-items: stretch;
  flex-direction: column;
}

.fd-role-docente .ut-print-teacher-card-head p {
  max-width: 560px;
}

.fd-role-docente .ut-print-teacher-card .ut-print-primary-button {
  width: 100%;
  max-width: 320px;
  min-width: 0;
}

.fd-role-docente .ut-print-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}

.fd-role-docente .ut-print-tab {
  min-width: 0;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  text-align: center;
  white-space: normal;
}

.fd-role-docente .ut-print-table-wrap {
  overflow-x: auto;
}

.ut-print-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #dedfdb;
}

.ut-print-title-group {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.ut-print-title-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #1f8d59, #0f2a12);
  color: #fff;
}

.ut-print-title-icon svg {
  width: 28px;
  height: 28px;
}

.ut-print-hero h1 {
  margin: 0;
  color: #101914;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.ut-print-hero p {
  margin: 8px 0 0;
  color: #687267;
  font-size: 16px;
  font-weight: 650;
}

.ut-print-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.ut-print-filter-button,
.ut-print-primary-button {
  min-height: 58px;
  border-radius: 14px;
}

.ut-print-filter-button {
  min-width: 122px;
  text-transform: none;
}

.ut-print-filter-button svg {
  width: 19px;
  height: 19px;
}

.ut-print-primary-button {
  min-width: 250px;
  border-color: #0f2a12;
  background: #0f2a12;
  color: #fff;
  text-transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ut-print-primary-button:hover,
.ut-print-primary-button:focus-visible {
  border-color: #0a1d0c;
  background: #0a1d0c;
  color: #fff;
}

.ut-print-filter-panel {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid #dedfdb;
  border-radius: 22px;
  background: #fdfdfd;
}

.ut-print-filter-panel[hidden] {
  display: none;
}

.ut-print-filter-panel label,
.ut-print-modal label {
  display: grid;
  gap: 8px;
  color: #687267;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ut-print-filter-panel input,
.ut-print-modal input {
  min-height: 48px;
  border: 1px solid #dedfdb;
  border-radius: 14px;
  background: #fdfdfd;
  color: #102817;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
  padding: 0 14px;
}

.ut-print-modal input[type="file"] {
  min-height: auto;
  padding: 12px 14px;
}

.ut-print-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #dedfdb;
}

.ut-print-tab {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border: 0;
  background: transparent;
  color: #657066;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
}

.ut-print-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.ut-print-tab span {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #eef3ef;
  color: #657066;
  font-size: 13px;
}

.ut-print-tab.is-active {
  color: #0f5b2d;
}

.ut-print-tab.is-active::after {
  background: #0f5b2d;
}

.ut-print-tab.is-active span {
  background: #e4f4e8;
  color: #0f5b2d;
}

.ut-print-table-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border: 1px solid #dedfdb;
  border-radius: 20px;
  background: #fdfdfd;
}

.ut-print-table-wrap {
  position: relative;
  z-index: 20;
  max-width: 100%;
  overflow: visible;
  border-radius: 20px 20px 0 0;
}

.ut-print-table-card.is-actions-open .ut-print-table-wrap {
  z-index: 520;
}

.ut-print-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.ut-print-teacher-table {
  min-width: 760px;
  table-layout: fixed;
}

.ut-print-teacher-table th:nth-child(1),
.ut-print-teacher-table td:nth-child(1) {
  width: 36%;
}

.ut-print-teacher-table th:nth-child(2),
.ut-print-teacher-table td:nth-child(2) {
  width: 9%;
  text-align: center;
}

.ut-print-teacher-table th:nth-child(3),
.ut-print-teacher-table td:nth-child(3) {
  width: 12%;
  text-align: center;
}

.ut-print-teacher-table th:nth-child(4),
.ut-print-teacher-table td:nth-child(4) {
  width: 17%;
  text-align: center;
}

.ut-print-teacher-table th:nth-child(5),
.ut-print-teacher-table td:nth-child(5) {
  width: 16%;
  text-align: center;
}

.ut-print-teacher-table th:nth-child(6),
.ut-print-teacher-table td:nth-child(6) {
  width: 10%;
  text-align: right;
}

.ut-print-table th,
.ut-print-table td {
  padding: 22px 18px;
  border-bottom: 1px solid #e6e7e3;
  text-align: left;
  vertical-align: middle;
}

.ut-print-table th:last-child,
.ut-print-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fdfdfd;
  box-shadow: -16px 0 24px rgba(253, 253, 253, 0.88);
}

.ut-print-table th:last-child {
  z-index: 3;
}

.ut-print-table tr.is-actions-open td:last-child {
  z-index: 560;
}

.ut-print-table th {
  color: #778178;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ut-print-table td {
  color: #162033;
  font-size: 13px;
  font-weight: 700;
}

.ut-print-requester,
.ut-print-document,
.ut-print-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ut-print-requester strong,
.ut-print-document strong {
  display: block;
  color: #162033;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.ut-print-teacher-table .ut-print-document strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ut-print-requester span:not(.ut-print-avatar) {
  display: block;
  margin-top: 4px;
  color: #66708a;
  font-size: 14px;
  font-weight: 650;
}

.ut-print-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.tone-green {
  background: #dff3e7;
  color: #1f8d59;
}

.tone-blue {
  background: #e4effd;
  color: #356fb4;
}

.tone-purple {
  background: #eee5f7;
  color: #7457a7;
}

.tone-amber {
  background: #fff1d7;
  color: #b9781d;
}

.tone-red {
  background: #fae7e7;
  color: #bd4242;
}

.ut-file-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
}

.ut-file-icon.is-pdf {
  background: #fae7e7;
  color: #cf3737;
}

.ut-file-icon.is-doc {
  background: #e4effd;
  color: #356fb4;
}

.ut-file-icon.is-img {
  background: #fef3c7;
  color: #b45309;
}

.ut-print-status {
  display: inline-flex;
  min-width: 82px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ut-print-status.in-attesa {
  background: #fff1d7;
  color: #b9781d;
}

.ut-print-status.in-stampa {
  background: #e4effd;
  color: #356fb4;
}

.ut-print-status.completata {
  background: #e4f4e8;
  color: #1f8d59;
}

.ut-print-action-button,
.ut-print-complete-button,
.ut-print-more-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dedfdb;
  border-radius: 10px;
  background: #fdfdfd;
  color: #102817;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.ut-print-action-button {
  min-width: 104px;
}

.ut-print-action-button svg,
.ut-print-complete-button svg {
  width: 16px;
  height: 16px;
}

.ut-print-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.ut-print-complete-button {
  min-width: 116px;
  border-color: #0f5b2d;
  background: #0f5b2d;
  color: #fff;
}

.ut-print-complete-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ut-print-more-button {
  width: 38px;
  min-width: 38px;
  border-color: transparent;
  background: transparent;
  font-size: 22px;
}

.ut-print-more {
  position: relative;
  z-index: 1;
}

.ut-print-more.is-open {
  z-index: 570;
}

.ut-print-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  z-index: 580;
  display: none;
  min-width: 158px;
  padding: 8px;
  border: 1px solid #dedfdb;
  border-radius: 16px;
  background: #fdfdfd;
  box-shadow: 0 18px 45px rgba(16, 40, 23, 0.12);
}

.ut-print-more.is-open .ut-print-more-menu {
  display: grid;
  gap: 4px;
}

.ut-print-more-menu button {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #102817;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  text-align: left;
}

.ut-print-more-menu button:hover,
.ut-print-more-menu button:focus-visible {
  background: #eef3ef;
  outline: none;
}

.ut-print-more-menu [data-ut-print-action="delete"] {
  color: #bd4242;
}

.ut-print-pagination {
  position: relative;
  z-index: 30;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  color: #687267;
  font-size: 14px;
  font-weight: 650;
  overflow: visible;
}

.ut-print-pagination:has(.ut-service-dropdown.is-open) {
  z-index: 600;
}

.ut-print-pagination label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ut-print-empty {
  padding: 42px 28px;
  color: #687267;
  font-weight: 750;
  text-align: center;
}

.ut-print-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 40, 23, 0.28);
}

.ut-print-modal-layer[hidden] {
  display: none;
}

.ut-print-modal {
  display: grid;
  width: min(540px, 100%);
  gap: 18px;
  padding: 22px;
  border: 1px solid #dedfdb;
  border-radius: 22px;
  background: #fdfdfd;
  box-shadow: 0 24px 60px rgba(16, 40, 23, 0.14);
}

.ut-print-modal header,
.ut-print-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ut-print-modal h2 {
  margin: 0;
  color: #102817;
  font-size: 22px;
}

.ut-print-modal header button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dedfdb;
  border-radius: 12px;
  background: #fdfdfd;
  color: #102817;
  cursor: pointer;
  font-size: 24px;
}

.ut-print-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ut-service-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ut-service-dropdown {
  position: relative;
  min-width: 0;
}

.ut-print-pagination .ut-service-dropdown {
  min-width: 86px;
}

.ut-service-dropdown-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid #bfc2bb;
  border-radius: 15px;
  background: #fdfdfd;
  color: #102817;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
}

.ut-print-pagination .ut-service-dropdown-toggle {
  min-height: 42px;
  border-radius: 12px;
}

.ut-service-dropdown-toggle:hover,
.ut-service-dropdown-toggle:focus-visible,
.ut-service-dropdown.is-open .ut-service-dropdown-toggle {
  border-color: #92998e;
  outline: none;
}

.ut-service-dropdown-arrow {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: 7px solid #102817;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

.ut-service-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 45;
  display: none;
  padding: 8px;
  border: 1px solid #dedfdb;
  border-radius: 18px;
  background: #fdfdfd;
  box-shadow: 0 18px 45px rgba(16, 40, 23, 0.12);
}

.ut-print-pagination .ut-service-dropdown-menu {
  top: calc(100% + 8px);
  bottom: auto;
}

.ut-service-dropdown.is-open .ut-service-dropdown-menu {
  display: grid;
  gap: 4px;
}

.ut-service-dropdown-option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #102817;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.ut-service-dropdown-option:hover,
.ut-service-dropdown-option:focus-visible {
  background: #eef3ef;
  outline: none;
}

.ut-service-dropdown-option.is-selected {
  background: #e7eee5;
  font-weight: 850;
}

.ut-service-dropdown-option.is-selected::after {
  content: "";
  width: 12px;
  height: 7px;
  margin-left: 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.ut-print-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 40, 23, 0.34);
}

.ut-print-dialog-layer[hidden] {
  display: none;
}

.ut-print-dialog {
  display: grid;
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  grid-template-rows: auto minmax(320px, 1fr) auto;
  overflow: hidden;
  border: 1px solid #dedfdb;
  border-radius: 24px;
  background: #fdfdfd;
  box-shadow: 0 24px 70px rgba(16, 40, 23, 0.18);
}

.ut-print-dialog header,
.ut-print-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.ut-print-dialog h2 {
  margin: 0;
  color: #102817;
  font-size: 20px;
}

.ut-print-dialog p {
  margin: 4px 0 0;
  color: #687267;
  font-size: 14px;
  font-weight: 750;
}

.ut-print-dialog header button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dedfdb;
  border-radius: 12px;
  background: #fdfdfd;
  color: #102817;
  cursor: pointer;
  font-size: 24px;
}

.ut-print-dialog iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-block: 1px solid #e6e7e3;
  background: #f5f6f3;
}

.ut-service-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid #dedfdb;
  border-radius: 16px;
  background: #102817;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 18px 45px rgba(16, 40, 23, 0.18);
}

.ut-service-toast[hidden] {
  display: none;
}

.ut-print-notification-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.ut-print-live-notification {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(16, 40, 23, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 55px rgba(16, 40, 23, 0.18);
  color: #102817;
  backdrop-filter: blur(18px);
  animation: utPrintNotifyIn 220ms ease-out both;
}

.ut-print-live-notification.is-hiding {
  animation: utPrintNotifyOut 220ms ease-in both;
}

.ut-print-live-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #e7eee5;
  color: #1e5b2b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.ut-print-live-notification strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.2;
}

.ut-print-live-notification p {
  margin: 0;
  color: #58705e;
  font-size: 13px;
  line-height: 1.35;
}

@keyframes utPrintNotifyIn {
  from {
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes utPrintNotifyOut {
  to {
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
  }
}

@media (max-width: 1200px) {
  .ut-print-hero {
    flex-direction: column;
  }

  .ut-print-hero-actions {
    justify-content: flex-start;
  }

  .ut-print-teacher-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ut-print-shell {
    padding: 24px 18px;
  }

  .ut-print-title-group,
  .ut-print-hero-actions,
  .ut-print-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .ut-print-filter-panel,
  .ut-print-modal-grid {
    grid-template-columns: 1fr;
  }

  .ut-print-teacher-summary {
    grid-template-columns: 1fr;
  }

  .ut-print-teacher-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ut-print-tabs {
    overflow-x: auto;
  }
}

/* Final docente layout: keep the personal print area compact at tablet widths. */
.ut-print-app .ut-print-shell.is-teacher {
  gap: 16px;
  padding: 22px 26px 120px;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-teacher-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-teacher-summary article {
  min-height: 62px;
  min-width: 0;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-teacher-summary strong {
  flex: 0 0 auto;
  font-size: 25px;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-teacher-summary span {
  min-width: 0;
  font-size: 10px;
  line-height: 1.08;
  overflow-wrap: normal;
}

.ut-print-app .ut-print-teacher-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
  align-items: center;
  gap: 14px;
}

.ut-print-app .ut-print-teacher-card-head h2 {
  font-size: 24px;
  line-height: 1.05;
}

.ut-print-app .ut-print-teacher-card-head p {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.28;
}

.ut-print-app .ut-print-teacher-card .ut-print-primary-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  font-size: 13px;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-tab {
  min-height: 50px;
  min-width: 0;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
}

.ut-print-app .ut-print-shell.is-teacher .ut-print-tab span {
  min-width: 22px;
  height: 22px;
  font-size: 11px;
}

.ut-print-teacher-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 28px 18px 34px;
  border-top: 1px solid #e5e6e2;
}

.ut-print-teacher-empty h3 {
  margin: 0;
  color: #102817;
  font-size: 18px;
  font-weight: 950;
}

.ut-print-teacher-empty p {
  max-width: 390px;
  margin: 0;
  color: #667069;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .ut-print-app .ut-print-shell.is-teacher {
    padding-inline: 18px;
  }

  .ut-print-app .ut-print-shell.is-teacher .ut-print-teacher-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ut-print-app .ut-print-teacher-card-head {
    grid-template-columns: 1fr;
  }
}

/* Docente standalone print center, matching the approved "buona" screen. */
body.fd-role-docente {
  background: #fdfdfd;
}

body.fd-role-docente .ut-print-docente-page {
  min-height: 100vh;
  padding: 30px;
  background: #fdfdfd;
  color: #102817;
}

.ut-print-docente-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.ut-print-docente-role,
.ut-print-docente-date {
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid #dedfdb;
  border-radius: 14px;
  background: #fdfdfd;
  color: #5f695f;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.ut-print-docente-date {
  color: #2e3a32;
}

.ut-print-docente-date svg {
  width: 32px;
  height: 32px;
}

.ut-print-docente-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 34px;
}

.ut-print-docente-kpis article {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 34px;
  padding: 24px 34px;
  border: 1px solid #dedfdb;
  border-radius: 36px;
  background: #fdfdfd;
}

.ut-print-docente-kpis strong {
  color: #102817;
  font-size: 64px;
  font-weight: 950;
  line-height: 1;
}

.ut-print-docente-kpis span {
  color: #667069;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.08;
  text-transform: uppercase;
}

.ut-print-docente-panel {
  overflow: hidden;
  border: 1px solid #dedfdb;
  border-radius: 36px;
  background: #fdfdfd;
}

.ut-print-docente-panel > header {
  display: flex;
  min-height: 144px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  border-bottom: 1px solid #dedfdb;
}

.ut-print-docente-panel h1 {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  color: #102817;
  font-size: 32px;
  font-weight: 950;
}

.ut-print-docente-panel h1 span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: #e4f4e8;
  color: #1f8d59;
}

.ut-print-docente-panel h1 svg {
  width: 38px;
  height: 38px;
}

.ut-print-docente-primary {
  display: inline-flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  border: 1px solid #0f2a12;
  border-radius: 26px;
  background: #0f2a12;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.ut-print-docente-primary:hover,
.ut-print-docente-primary:focus-visible {
  background: #0a1d0c;
  outline: none;
}

.ut-print-docente-empty {
  display: grid;
  justify-items: start;
  gap: 22px;
  min-height: 360px;
  padding: 70px 34px;
}

.ut-print-docente-empty h2 {
  margin: 0;
  color: #102817;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.12;
}

.ut-print-docente-empty p {
  max-width: 1100px;
  margin: 0;
  color: #667069;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.3;
}

.ut-print-docente-empty .ut-print-docente-primary {
  min-height: 82px;
  margin-top: 16px;
}

.ut-print-docente-list {
  display: grid;
}

.ut-print-docente-list article {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 34px;
  border-bottom: 1px solid #e5e6e2;
}

.ut-print-docente-list strong {
  display: block;
  overflow: hidden;
  color: #162033;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ut-print-docente-list span:not(.ut-print-status) {
  display: block;
  margin-top: 4px;
  color: #66708a;
  font-size: 14px;
  font-weight: 760;
}

.ut-print-docente-list a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #dedfdb;
  border-radius: 12px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  body.fd-role-docente .ut-print-docente-page {
    padding: 24px;
  }

  .ut-print-docente-role,
  .ut-print-docente-date {
    min-height: 52px;
    padding: 0 18px;
    font-size: 17px;
  }

  .ut-print-docente-kpis {
    gap: 16px;
  }

  .ut-print-docente-kpis article {
    min-height: 108px;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
  }

  .ut-print-docente-kpis strong {
    font-size: 42px;
  }

  .ut-print-docente-kpis span {
    font-size: 17px;
  }

  .ut-print-docente-panel > header {
    min-height: 104px;
  }

  .ut-print-docente-empty {
    min-height: 280px;
    padding: 46px 34px;
  }

  .ut-print-docente-empty h2 {
    font-size: 32px;
  }

  .ut-print-docente-empty p {
    font-size: 21px;
  }

  .ut-print-docente-primary {
    min-height: 62px;
    padding: 0 28px;
    border-radius: 20px;
    font-size: 18px;
  }
}

@media (max-width: 780px) {
  .ut-print-docente-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ut-print-docente-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ut-print-docente-panel > header {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    padding-block: 22px;
  }

  .ut-print-docente-panel > header .ut-print-docente-primary {
    width: 100%;
  }
}

/* Ticket Assistenza parity layer. */
.ut-print-main,
.ut-print-shell {
  background: #fdfdfd;
}

.ut-print-shell {
  gap: 24px;
  padding: 24px 30px 120px;
}

.ut-print-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ut-print-kpi {
  display: flex;
  min-height: 130px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #dedfdb;
  border-radius: 20px;
  background: #fff;
  color: #102417;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ut-print-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 40, 23, 0.08);
}

.ut-print-kpi.is-active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.ut-print-kpi-icon {
  display: flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.ut-print-kpi-icon svg {
  width: 26px;
  height: 26px;
}

.ut-print-kpi strong,
.ut-print-teacher-summary strong {
  display: block;
  color: #102417;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.1;
}

.ut-print-kpi em {
  display: block;
  color: #102417;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.ut-print-kpi small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 750;
}

.ut-print-kpi.style-open {
  border-color: #d92331;
}

.ut-print-kpi.style-open .ut-print-kpi-icon {
  background: #ffe7e8;
  color: #d92331;
}

.ut-print-kpi.style-open small {
  color: #d92331;
}

.ut-print-kpi.style-progress {
  border-color: #2563eb;
}

.ut-print-kpi.style-progress .ut-print-kpi-icon {
  background: #dbeafe;
  color: #2563eb;
}

.ut-print-kpi.style-progress small {
  color: #2563eb;
}

.ut-print-kpi.style-resolved {
  border-color: #16a34a;
}

.ut-print-kpi.style-resolved .ut-print-kpi-icon {
  background: #dcfce7;
  color: #16a34a;
}

.ut-print-kpi.style-resolved small {
  color: #16a34a;
}

.ut-print-kpi.style-closed {
  border-color: #9ca3af;
}

.ut-print-kpi.style-closed .ut-print-kpi-icon {
  background: #f3f4f6;
  color: #6b7280;
}

.ut-print-kpi.style-closed small {
  color: #6b7280;
}

.ut-print-teacher-summary {
  gap: 16px;
}

.ut-print-teacher-summary article {
  min-height: 116px;
  border-radius: 20px;
  background: #fff;
}

.ut-print-teacher-summary span {
  color: #687267;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.ut-print-toolbar {
  align-items: center;
  justify-content: flex-end;
}

.ut-print-filter-button,
.ut-print-primary-button,
.ut-print-teacher-card .ut-print-primary-button {
  min-height: 42px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.ut-print-filter-button {
  border-color: #cfd5cc;
  background: #fdfdfd;
  color: #102417;
}

.ut-print-primary-button {
  border-color: #0f2a12;
  background: #0f2a12;
  color: #fff;
}

.ut-print-tabs {
  border-bottom-color: #dedfdb;
}

.ut-print-tab {
  min-height: 48px;
  color: #626b61;
  font-size: 14px;
  font-weight: 750;
}

.ut-print-tab.is-active {
  color: #102417;
}

.ut-print-tab.is-active::after {
  background: #102417;
}

.ut-print-tab span {
  background: #eef3ec;
  color: #687267;
}

.ut-print-tab.is-active span {
  background: #dcfce7;
  color: #15803d;
}

.ut-print-table-card,
.ut-print-teacher-card {
  overflow: hidden;
  border-color: #dedfdb;
  border-radius: 20px;
  background: #fdfdfd;
  box-shadow: none;
}

.ut-print-table-wrap {
  overflow-x: auto;
}

.ut-print-table {
  min-width: 1140px;
}

.ut-print-table th {
  color: #687267;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.ut-print-table td {
  border-bottom-color: #e5e6e2;
  color: #102417;
}

.ut-print-table tbody tr:hover {
  background: #f5f8f4;
}

.ut-print-status,
.ut-print-type-pill {
  border-radius: 999px;
  font-weight: 750;
}

.ut-print-more-button,
.ut-print-actions button,
.ut-print-actions a {
  border-radius: 8px;
  color: #687267;
}

.ut-print-more-button:hover,
.ut-print-actions button:hover,
.ut-print-actions a:hover {
  background: #f5f8f4;
  color: #102417;
}

.ut-print-more-menu,
.ut-print-modal {
  border-color: #dedfdb;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16, 40, 23, 0.12);
}

.ut-print-more-menu button:hover {
  background: #eef3ec;
  color: #102417;
}

@media (max-width: 1180px) {
  .ut-print-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ut-print-shell {
    padding: 30px;
  }

  .ut-print-kpis {
    grid-template-columns: 1fr;
  }

  .ut-print-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ut-print-filter-button,
  .ut-print-primary-button {
    width: 100%;
    justify-content: center;
  }
}
