/* Pagina Formazione - standard grafico VINK */

body {
  min-height: 100vh;
  background-color: #fff;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(255, 204, 0, .07) 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, rgba(255, 204, 0, .045) 2px, transparent 2px);
  background-size: 100px 100px;
}

.formazione-header {
  min-height: 94px;
  padding: 14px 28px;
  border-bottom: 3px solid #d6aa00;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .09);
}

.formazione-header .logo,
.formazione-header .logo-right {
  width: 92px;
  height: 58px;
  object-fit: contain;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 14px;
  background: rgba(255, 255, 255, .58);
}

.formazione-header-title {
  flex: 1;
  padding: 0 18px;
  text-align: center;
}

.formazione-header-title h1 {
  margin: 0;
  color: #111;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: .2px;
}

.formazione-header-title p {
  margin: 6px 0 0;
  color: #574600;
  font-size: 14px;
  font-weight: 700;
}

main.container {
  max-width: 1400px;
  margin-top: 28px;
  padding: 0 24px 44px;
}

.stats {
  gap: 16px;
  margin-bottom: 18px;
}

.stat {
  min-height: 96px;
  padding: 17px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .055);
}

.stat .value {
  color: #111827;
  font-size: 29px;
  font-weight: 900;
}

.alerts {
  margin-bottom: 18px;
}

.alert {
  box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.grid {
  grid-template-columns: minmax(350px, 430px) minmax(0, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid #e2e6ec;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .075);
}

.card-head {
  min-height: 78px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff4b3, #fffaf0);
  border-bottom: 1px solid #eadb91;
}

.card-head h2 {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.card-head p {
  max-width: 760px;
  color: #5f6470;
  line-height: 1.4;
}

.card-body {
  padding: 20px 18px;
}

label {
  color: #252b36;
}

input,
select,
textarea {
  min-height: 43px;
  border-color: #cfd5dd;
  border-radius: 11px;
  background: #fff;
}

textarea {
  min-height: 94px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #d6aa00;
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .18);
}

button {
  border-radius: 11px;
}

button.primary {
  background: #ffcc00;
  color: #111;
  box-shadow: 0 4px 12px rgba(194, 154, 0, .22);
}

button.secondary {
  background: #171717;
}

button.ghost {
  border: 1px solid #dce1e8;
  background: #f1f4f8;
}

.calendar-head button {
  min-width: 150px;
}

.calendar-title {
  color: #111827;
  text-transform: capitalize;
  font-weight: 900;
}

.day-name {
  background: #fff4bd;
  border-color: #ecd981;
}

.day-cell {
  min-height: 124px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
}

.table-wrap {
  border-color: #dce1e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

thead th {
  background: #fff2ae;
  color: #242424;
}

.home-return-btn {
  top: 112px;
}

.ui-collapse-toggle {
  flex: 0 0 auto;
  border: 1px solid #d2aa05;
  background: #fff;
  color: #171717;
}

.ui-collapsible.ui-collapsed {
  padding-bottom: 0;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .formazione-header {
    min-height: 78px;
    padding: 10px 14px;
  }

  .formazione-header .logo,
  .formazione-header .logo-right {
    width: 58px;
    height: 45px;
    padding: 4px;
  }

  .formazione-header-title {
    padding: 0 8px;
  }

  .formazione-header-title h1 {
    font-size: 21px;
  }

  .formazione-header-title p {
    display: none;
  }

  main.container {
    margin-top: 24px;
    padding: 0 12px 32px;
  }

  .home-return-btn {
    top: 88px;
  }

  .calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-title {
    order: -1;
    padding: 4px 0;
    text-align: center;
  }

  .calendar-head button {
    width: 100%;
  }
}

@media print {
  .formazione-header {
    position: static;
  }

  .home-return-btn,
  .actions,
  .toolbar,
  .calendar-head button {
    display: none !important;
  }
}

/* Anagrafica dipendenti condivisa Ferie/Formazione + allegati */
.employee-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.mini-add-btn,.mini-close-btn{border:1px solid #d5a900;background:#fff8d7;color:#0b1d2d;border-radius:8px;padding:9px 10px;font-weight:700;cursor:pointer;white-space:nowrap}.field-help{display:block;margin-top:5px;color:#677386}.quick-employee-panel,.attachments-box{border:1px dashed #c9d3df;background:#f8fafc;border-radius:10px;padding:12px}.quick-employee-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.quick-employee-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.attachments-list{display:grid;gap:7px;margin-top:10px}.attachment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d9e1ea;background:#fff;border-radius:8px;padding:8px 10px}.attachment-row.pending{background:#fffbea}.attachment-actions{display:flex;gap:6px}.empty-attachments{color:#7a8795;font-size:13px}@media(max-width:700px){.employee-picker-row,.quick-employee-grid{grid-template-columns:1fr}.attachment-row{align-items:flex-start;flex-direction:column}}
