:root {
  --pro-font: var(--ui-font, 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --pro-bg: var(--ui-bg, #eef4fb);
  --pro-surface: var(--ui-surface, #ffffff);
  --pro-surface-soft: var(--ui-surface-2, #f8fbff);
  --pro-text: var(--ui-text, #10233b);
  --pro-muted: var(--ui-text-muted, #6b7d93);
  --pro-border: var(--ui-border, #d9e4f0);
  --pro-primary: var(--ui-primary, #1d4ed8);
  --pro-danger: var(--ui-danger, #b91c1c);
  --pro-success: var(--ui-success, #15803d);
  --pro-shadow: var(--ui-shadow-sm, 0 6px 18px rgba(16, 35, 59, 0.07));
  --pro-radius: 14px;
}

.pro-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--pro-text);
}

.pro-page--narrow {
  max-width: 760px;
}

.pro-page--center {
  min-height: calc(100vh - var(--ui-header-height, 74px) - 72px);
  align-items: center;
  justify-content: center;
}

.pro-head,
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.pro-head-main,
.page-head-main {
  min-width: 0;
}

.pro-eyebrow {
  margin-bottom: 8px;
  font-size: .73rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--pro-primary);
}

.pro-title,
.page-head-title {
  margin: 0;
  font-family: var(--pro-font);
  font-size: 2.02rem;
  line-height: 1.08;
  font-weight: 760;
  color: #25364a;
}

.pro-subtitle,
.page-head-subtitle {
  margin: 8px 0 0;
  max-width: 760px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--pro-muted);
}

.pro-actions,
.page-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-card,
.table-card,
.filter-card,
.form-card {
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow);
}

.pro-card {
  padding: 20px;
}

.pro-card--compact {
  padding: 16px;
}

.pro-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.pro-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
  font-weight: 800;
  color: #26384e;
}

.pro-card-subtitle {
  margin: 5px 0 0;
  font-size: .84rem;
  color: var(--pro-muted);
}

.pro-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 0;
}

.dashboard-card,
.pro-module-card {
  display: flex;
  min-height: 148px;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--pro-shadow);
  color: var(--pro-text);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-card:hover,
.pro-module-card:hover {
  transform: translateY(-2px);
  border-color: #b8cee6;
  box-shadow: 0 14px 34px rgba(16, 35, 59, 0.10);
}

.card-icon,
.pro-module-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--ui-primary-soft, #dbeafe);
  color: var(--pro-primary);
}

.card-icon i,
.pro-module-icon i {
  width: 22px;
  height: 22px;
}

.card-text h3,
.pro-module-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
  font-weight: 800;
  color: #24364c;
}

.card-text p,
.pro-module-card p {
  margin: 7px 0 0;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--pro-muted);
}

.pro-form,
.pro-form-grid {
  display: grid;
  gap: 14px;
}

.pro-form-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.pro-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-shell select:not([multiple]),
.mobile-shell select:not([multiple]),
.modal-content select:not([multiple]) {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--pro-border);
  border-radius: 8px !important;
  padding: 8px 38px 8px 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2352667e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  color: var(--pro-text);
  font-size: .86rem;
  line-height: 1.2;
  box-shadow: none;
  appearance: none;
}

.app-shell select:not([multiple]):focus,
.mobile-shell select:not([multiple]):focus,
.modal-content select:not([multiple]):focus {
  border-color: color-mix(in srgb, var(--settings-accent, #2563eb) 42%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-accent, #2563eb) 12%, transparent);
  outline: none;
}

.pro-field--span-2 { grid-column: span 2; }
.pro-field--span-3 { grid-column: span 3; }
.pro-field--span-4 { grid-column: span 4; }
.pro-field--span-5 { grid-column: span 5; }
.pro-field--span-6 { grid-column: span 6; }
.pro-field--span-8 { grid-column: span 8; }
.pro-field--span-12 { grid-column: 1 / -1; }

.pro-check-option,
.settings-check-option {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: #29415c;
  font-size: .84rem !important;
  font-weight: 820 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.pro-check-option input,
.settings-check-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--settings-accent, #2563eb);
}

.pro-label,
.pro-page label,
.field-block label,
.page-head-tool-label {
  margin: 0;
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #52667e;
}

.pro-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.pro-page select,
.pro-page textarea,
.verbali-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.verbali-box select,
.verbali-box textarea,
.convocazione-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.convocazione-page select,
.convocazione-page textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--pro-border);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--pro-text);
  box-shadow: none;
}

.pro-page textarea,
.verbali-box textarea,
.convocazione-page textarea {
  min-height: 92px;
  resize: vertical;
}

.pro-page input:focus,
.pro-page select:focus,
.pro-page textarea:focus,
.verbali-box input:focus,
.verbali-box select:focus,
.verbali-box textarea:focus,
.convocazione-page input:focus,
.convocazione-page select:focus,
.convocazione-page textarea:focus {
  border-color: #93b4de;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .10);
  outline: none;
}

.pro-actions-row,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pro-btn,
.pro-page .btn,
.pro-page button:not(.btn):not(.btn-close),
.verbali-btn,
.convocazione-page .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--pro-border);
  padding: 8px 14px;
  background: #fff;
  color: #29415c;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.pro-btn:hover,
.pro-page .btn:hover,
.pro-page button:not(.btn):not(.btn-close):hover,
.verbali-btn:hover,
.convocazione-page .btn:hover {
  transform: translateY(-1px);
  border-color: #bfd1e4;
  background: #f7fbff;
  color: #19304a;
}

.pro-btn--primary,
.pro-page .btn-primary,
.convocazione-page .btn-primary {
  border-color: var(--pro-primary);
  background: var(--pro-primary);
  color: #fff;
}

.pro-btn--primary:hover,
.pro-page .btn-primary:hover,
.convocazione-page .btn-primary:hover {
  background: var(--ui-primary-hover, #1e40af);
  color: #fff;
}

.pro-btn--success,
.pro-page .btn-success {
  border-color: var(--pro-success);
  background: var(--pro-success);
  color: #fff;
}

.pro-btn--danger,
.pro-page .btn-danger,
.pro-page .btn-outline-danger:hover {
  border-color: var(--pro-danger);
  background: var(--pro-danger);
  color: #fff;
}

.pro-page .btn-sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: .8rem;
}

.pro-page table:not(.table):not(.conti-table) {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
}

.pro-page table:not(.table):not(.conti-table) th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pro-border);
  background: #f6f9fd !important;
  color: #53667e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pro-page table:not(.table):not(.conti-table) td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: .88rem;
  vertical-align: middle;
}

.pro-table-wrap {
  overflow: auto;
}

.pro-table,
.pro-page .table,
.conti-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.pro-table thead th,
.pro-page .table thead th,
.conti-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pro-border);
  background: #f6f9fd;
  color: #53667e;
  font-size: .72rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pro-table tbody td,
.pro-page .table tbody td,
.conti-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: .88rem;
  vertical-align: middle;
}

.pro-table tbody tr:hover td,
.pro-page .table tbody tr:hover td,
.conti-table tbody tr:hover td {
  background: #f8fbff;
}

.pro-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pro-status--ok { background: var(--ui-success-soft, #dcfce7); color: var(--pro-success); }
.pro-status--muted { background: #eef2f6; color: #53657b; }
.pro-status--warn { background: var(--ui-warning-soft, #fef3c7); color: var(--ui-warning, #b45309); }
.pro-status--danger { background: var(--ui-danger-soft, #fee2e2); color: var(--pro-danger); }

.doc-actions-col {
  width: 1%;
}

.doc-actions-cell {
  white-space: nowrap;
}

.doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.doc-actions form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.doc-action-btn,
.pro-page .doc-action-btn,
.pro-page button.doc-action-btn:not(.btn):not(.btn-close) {
  width: 42px;
  min-width: 42px;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6d6e8;
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  color: #39546f;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 43, 61, .05);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
}

.doc-action-btn:hover,
.pro-page .doc-action-btn:hover,
.pro-page button.doc-action-btn:not(.btn):not(.btn-close):hover {
  transform: translateY(-1px);
  border-color: #a9bdd3;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  color: #233e5b;
  box-shadow: 0 4px 10px rgba(31, 43, 61, .08);
}

.doc-action-btn i,
.doc-action-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.doc-action-btn--edit,
.pro-page .doc-action-btn--edit {
  border-color: #b7cff0;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
  color: #2448a8;
}

.doc-action-btn--edit:hover,
.pro-page .doc-action-btn--edit:hover {
  border-color: #95b8ed;
  background: linear-gradient(180deg, #f6fbff 0%, #eaf3ff 100%);
  color: #1f3f9b;
}

.doc-action-btn--delete,
.pro-page .doc-action-btn--delete,
.pro-page button.doc-action-btn--delete:not(.btn):not(.btn-close) {
  border-color: #f4b5b5;
  background: linear-gradient(180deg, #fffefe 0%, #fff5f5 100%);
  color: #b42323;
}

.doc-action-btn--delete:hover,
.pro-page .doc-action-btn--delete:hover,
.pro-page button.doc-action-btn--delete:not(.btn):not(.btn-close):hover {
  border-color: #ef9999;
  background: linear-gradient(180deg, #fff8f8 0%, #ffecec 100%);
  color: #991b1b;
}

.doc-action-btn--disabled,
.pro-page .doc-action-btn--disabled,
.pro-page button.doc-action-btn--disabled:not(.btn):not(.btn-close) {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
}

.doc-action-btn--publish,
.pro-page .doc-action-btn--publish,
.pro-page button.doc-action-btn--publish:not(.btn):not(.btn-close) {
  border-color: #9ed6c2;
  background: linear-gradient(180deg, #fbfffd 0%, #ecfbf5 100%);
  color: #0f766e;
}

.doc-hub-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.doc-hub-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
}

.doc-hub-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pro-muted);
  font-size: .78rem;
  font-weight: 800;
}

.doc-hub-summary strong {
  color: #26384e;
  font-size: .9rem;
}

.doc-hub-kpi {
  padding: 14px 16px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow);
}

.doc-hub-kpi strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  color: #24364d;
}

.doc-hub-kpi span {
  display: block;
  margin-top: 6px;
  color: var(--pro-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doc-hub-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 1fr) minmax(150px, .8fr) 132px 132px auto;
  gap: 12px;
  align-items: end;
}

.doc-hub-search input {
  min-width: 0;
}

.doc-hub-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.doc-hub-switch {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--pro-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--pro-shadow);
}

.doc-hub-switch-item {
  min-height: 36px;
  min-width: 154px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  color: #53667e;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.doc-hub-switch-item:hover {
  background: #f3f7fb;
  color: #10233b;
}

.doc-hub-switch-item.is-active {
  background: #10233b;
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 35, 59, 0.18);
}

.doc-hub-tools-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pro-border);
}

.doc-hub-create summary {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pro-primary);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.doc-hub-create summary::-webkit-details-marker {
  display: none;
}

.doc-hub-create summary i,
.doc-hub-create summary svg {
  width: 16px;
  height: 16px;
}

.doc-hub-create-panel {
  display: none;
}

.doc-hub-create-panel.is-open {
  display: block;
}

.doc-hub-create-row {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.doc-hub-create-row .pro-field {
  width: min(320px, 100%);
}

.doc-acquire-form {
  margin: 0;
}

.doc-camera-form {
  display: none;
}

.doc-camera-button {
  display: none;
}

.notifiche-filter-grid {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.notifiche-filter-actions,
.richieste-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.richieste-actions form {
  margin: 0;
}

.notifiche-table {
  min-width: 860px;
}

.notifiche-new-col {
  width: 44px;
}

.notifiche-new-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--ui-warning-soft, #fef3c7);
  color: var(--ui-warning, #b45309);
}

.notifiche-new-btn:hover {
  background: #fde68a;
  color: #92400e;
}

.notifiche-new-btn svg,
.notifiche-new-btn i {
  width: 16px;
  height: 16px;
}

.notifiche-row--new {
  background: #fffdf4;
}

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

  .notifiche-filter-actions {
    justify-content: stretch;
  }

  .notifiche-filter-actions .btn {
    flex: 1 1 auto;
  }
}

.doc-hub-table-wrap {
  min-height: 180px;
}

.doc-hub-table {
  min-width: 880px;
}

.doc-hub-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 300px;
}

.doc-hub-name strong {
  color: #25364a;
  font-weight: 800;
}

.doc-hub-name span {
  color: var(--pro-muted);
  font-size: .78rem;
}

.doc-hub-name small {
  color: #53667e;
  font-size: .8rem;
  font-weight: 650;
}

.doc-hub-page .doc-actions {
  gap: 6px;
}

.doc-action-slot {
  width: 34px;
  min-width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.doc-hub-page .doc-action-btn,
.doc-hub-page button.doc-action-btn:not(.btn):not(.btn-close) {
  width: 34px;
  min-width: 34px;
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
}

.doc-hub-page .doc-action-btn i,
.doc-hub-page .doc-action-btn svg {
  width: 16px;
  height: 16px;
}

.doc-more {
  display: inline-flex;
}

.doc-more-menu {
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.doc-more-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #29415c;
  font-size: .84rem;
  font-weight: 750;
}

.doc-more-menu .dropdown-item i,
.doc-more-menu .dropdown-item svg {
  width: 16px;
  height: 16px;
}

.doc-more-menu .dropdown-item:hover {
  background: #f1f6fb;
}

.doc-more-menu .doc-more-danger {
  color: var(--pro-danger);
}

.doc-dropdown-form {
  margin: 0;
}

.doc-inline-form {
  display: inline-flex;
  margin: 0;
}

.doc-modal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.doc-modal-summary div {
  padding: 10px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  background: var(--pro-surface-soft);
}

.doc-modal-summary span,
.doc-modal-summary strong {
  display: block;
}

.doc-modal-summary span {
  color: var(--pro-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.doc-modal-summary strong {
  margin-top: 3px;
  color: #26384e;
}

.verbali-box {
  border: 1px solid var(--pro-border) !important;
  border-radius: var(--pro-radius) !important;
  background: var(--pro-surface) !important;
  box-shadow: var(--pro-shadow);
}

.verbali-form,
.convocazione-form {
  display: grid;
  gap: 18px;
  max-width: 1280px;
}

.verbali-card-grid,
.convocazione-card-grid {
  display: grid;
  gap: 18px;
}

.verbali-registro-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.verbali-registro-layout .verbali-box {
  margin-bottom: 0 !important;
  padding: 14px !important;
}

.verbali-field {
  margin-bottom: 12px;
}

.verbali-field:last-child {
  margin-bottom: 0;
}

.verbali-form .verbali-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.verbali-form .verbali-box select {
  box-sizing: border-box;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  line-height: 1.2;
}

.verbali-form .verbali-box textarea {
  box-sizing: border-box;
  padding: 12px 14px !important;
  line-height: 1.35;
}

.verbali-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 180px));
  gap: 12px;
}

.verbali-time-grid .verbali-field {
  margin-bottom: 0;
}

.verbali-card-grid--main {
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
}

.verbali-card-grid--people {
  grid-template-columns: 1fr;
}

.verbali-card-grid .verbali-box,
.convocazione-card-grid .pro-card {
  margin-bottom: 0;
  min-width: 0;
}

.verbali-card-grid select,
.verbali-card-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.convocazione-card-grid select,
.convocazione-card-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  min-width: 0 !important;
}

.verbali-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.convocazione-card-grid {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
}

.convocazione-form .convocazione-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.convocazione-form .convocazione-card select {
  box-sizing: border-box;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  line-height: 1.2;
}

.convocazione-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.convocazione-card--wide {
  grid-column: 1 / -1;
}

.convocazione-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.convocazione-card:not(.convocazione-card--wide) .convocazione-fields-grid {
  grid-template-columns: 1fr;
}

.verbali-box h3,
.convocazione-page h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #26384e;
}

.verbali-info {
  color: var(--pro-muted);
  font-size: .88rem;
}

.lista-soci,
.preview-verbale {
  border-color: var(--pro-border) !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .32);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.modal-box {
  border: 1px solid var(--pro-border);
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18) !important;
}

.modal-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #26384e;
}

.modal-close {
  border-color: var(--pro-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #29415c;
  font-weight: 800;
}

.link-button {
  color: var(--pro-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.pro-auth-card {
  width: min(440px, 100%);
  padding: 28px;
}

.pro-receipt {
  max-width: 840px;
  margin: 0 auto;
}

.socio-tool-head {
  align-items: flex-start;
}

.socio-tool-head .pro-actions {
  flex: 0 1 760px;
}

.adesioni-head-actions {
  align-items: flex-start;
  gap: 14px;
}

.adesioni-state-filter {
  display: flex;
  flex: 0 0 190px;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}

.pro-page .adesioni-state-filter select {
  width: 100%;
}

.socio-selector-pro {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.socio-selector-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(620px, 100%);
  min-width: 420px;
}

.socio-selector-form > .pro-label {
  margin: 0;
}

.socio-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--pro-border);
  border-radius: 18px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 0 0 0 rgba(29, 78, 216, 0);
}

.socio-search-control:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.socio-selector-form .socio-search-input,
.pro-page .socio-selector-form .socio-search-input {
  min-height: 38px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 8px 12px;
  color: var(--pro-text);
  font-size: 1rem;
  font-weight: 650;
}

.socio-selector-form .socio-search-input:focus,
.pro-page .socio-selector-form .socio-search-input:focus {
  box-shadow: none;
  outline: none;
}

.socio-search-use {
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #111827 !important;
  padding: 0 16px !important;
  color: #fff !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
}

.socio-search-use:hover {
  background: #1f2937 !important;
}

.socio-search-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--pro-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 30, 50, .14);
  padding: 10px;
}

.socio-search-result {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  color: #111827;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
}

.socio-search-result:hover,
.socio-search-result[aria-selected="true"] {
  background: #f3f6fb;
}

@media (max-width: 640px) {
  .adesioni-head-actions,
  .socio-selector-pro {
    width: 100%;
  }

  .adesioni-state-filter {
    flex-basis: 100%;
    width: 100%;
  }

  .socio-selector-form {
    width: 100%;
    min-width: 0;
  }

  .socio-search-results {
    max-height: 280px;
  }
}

.pro-card > .card-header,
.pro-card > .card-body {
  padding: 0;
  border: 0;
  background: transparent;
}

.pro-card > .card-header {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #26384e;
}

.pro-color-input {
  min-width: 48px;
  padding: 4px !important;
}

.pro-color-swatch {
  width: 26px;
  height: 26px;
  display: inline-flex;
  border: 1px solid var(--pro-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.ricevuta-form-page {
  --receipt-line: #e3edf7;
}

.ricevuta-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 16px;
  align-items: start;
}

.ricevuta-editor-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.ricevuta-section {
  padding: 18px;
  border-bottom: 1px solid var(--receipt-line);
}

.ricevuta-section--compact {
  padding-top: 16px;
  padding-bottom: 16px;
}

.ricevuta-section--righe {
  padding-bottom: 18px;
}

.ricevuta-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ricevuta-section-head--actions {
  margin-bottom: 12px;
}

.receipt-step {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9dbef;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--pro-primary);
  font-size: .78rem;
  font-weight: 900;
}

.ricevuta-fields-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.ricevuta-fields-grid .pro-field {
  min-width: 0;
}

.ricevuta-fields-grid .pro-field--span-3 {
  grid-column: span 3;
}

.ricevuta-fields-grid .pro-field--span-4 {
  grid-column: span 4;
}

.ricevuta-fields-grid .pro-field--span-6 {
  grid-column: span 6;
}

.receipt-empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px dashed #bfd2e7;
  border-radius: 10px;
  background: #f7fbff;
  color: #53667e;
  font-size: .86rem;
  font-weight: 700;
}

.receipt-number-band {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.receipt-number-badge {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #c9dbef;
  border-radius: 14px;
  background: #eef6ff;
  color: #10233b;
}

.receipt-number-badge span {
  color: var(--pro-primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ricevuta-form-page .receipt-number-badge input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  width: 84px;
  min-height: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #10233b;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  text-align: right;
}

.ricevuta-form-page .receipt-number-badge input:focus {
  border-color: transparent;
  box-shadow: none;
}

.receipt-member-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.receipt-member-search {
  width: min(100%, 630px);
}

.receipt-member-simple {
  width: min(100%, 630px);
}

.receipt-member-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d9e6f3;
  border-radius: 12px;
  background: #f8fbff;
}

.receipt-member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pro-primary);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.receipt-member-card-head i {
  width: 16px;
  height: 16px;
}

.receipt-member-card > strong {
  color: #24364c;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.receipt-member-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: .8rem;
  line-height: 1.35;
}

.receipt-member-card dl {
  display: grid;
  grid-template-columns: minmax(90px, .55fr) minmax(180px, 1fr) minmax(260px, 1.2fr) minmax(260px, 1.2fr);
  gap: 8px 14px;
  margin: 0;
}

.receipt-member-card dt {
  margin-bottom: 2px;
  color: #6b7d93;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.receipt-member-card dd {
  margin: 0;
  color: #29415c;
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.receipt-member-card-wide {
  grid-column: auto;
}

.receipt-empty-state i,
.receipt-preview-note i,
.receipt-preview-icon i,
.receipt-line-toolbar i,
.receipt-submit-bar i {
  width: 17px;
  height: 17px;
}

.ricevuta-righe-wrap {
  border: 1px solid var(--pro-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 35, 59, .03);
}

.ricevuta-lines-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.ricevuta-form-page .ricevuta-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ricevuta-form-page .ricevuta-section select {
  min-height: 38px;
  height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.ricevuta-form-page .ricevuta-lines-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--pro-border);
  background: #f7faff !important;
}

.ricevuta-form-page .ricevuta-lines-table td {
  padding: 12px;
  border-bottom: 0;
}

.ricevuta-form-page .ricevuta-lines-table td:nth-child(2) {
  white-space: nowrap;
}

.ricevuta-form-page .ricevuta-lines-table td:nth-child(2) select {
  display: inline-block;
  width: calc(50% - 5px);
}

.ricevuta-form-page .ricevuta-lines-table td:nth-child(2) select + select {
  margin-left: 6px;
}

.receipt-icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0 !important;
  color: #52667e;
}

.receipt-icon-button i {
  width: 16px;
  height: 16px;
}

.ricevuta-righe-wrap th:first-child,
.ricevuta-righe-wrap td:first-child {
  min-width: 260px;
}

.ricevuta-righe-wrap th:nth-child(2),
.ricevuta-righe-wrap td:nth-child(2) {
  min-width: 260px;
}

.ricevuta-righe-wrap th:nth-child(3),
.ricevuta-righe-wrap td:nth-child(3) {
  width: 170px;
}

.receipt-line-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.receipt-submit-bar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
  background: #f8fbff;
}

.receipt-preview-panel {
  position: sticky;
  top: calc(var(--ui-header-height, 74px) + 18px);
}

.receipt-preview-card {
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .96) 0%, #ffffff 42%),
    #fff;
  box-shadow: var(--pro-shadow);
  padding: 16px;
}

.receipt-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.receipt-preview-kicker {
  color: var(--pro-primary);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.receipt-preview-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #53657b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-preview-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--receipt-line);
}

.receipt-preview-title-row h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.1;
  font-weight: 850;
  color: #24364c;
}

.receipt-preview-title-row p {
  margin: 6px 0 0;
  color: var(--pro-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.receipt-preview-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #dbeafe;
  color: var(--pro-primary);
}

.receipt-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 14px 0;
}

.receipt-preview-list div {
  min-width: 0;
}

.receipt-preview-list-wide {
  grid-column: 1 / -1;
}

.receipt-preview-list dt {
  margin-bottom: 4px;
  color: #6b7d93;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.receipt-preview-list dd {
  margin: 0;
  color: #24364c;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.receipt-preview-socio-lines {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}

.receipt-preview-line {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(74px, .65fr) minmax(82px, .65fr);
  gap: 8px;
  align-items: center;
}

.receipt-preview-line strong {
  text-align: right;
}

.receipt-preview-line {
  min-height: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
}

.receipt-preview-line span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-preview-line span:nth-child(2) {
  color: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.receipt-preview-line strong {
  color: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.receipt-preview-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: #f4f8fd;
}

.receipt-preview-total span {
  color: #53667e;
  font-size: .82rem;
  font-weight: 900;
}

.receipt-preview-total strong {
  color: #10233b;
  font-size: 1.22rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.receipt-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--pro-muted);
  font-size: .8rem;
  line-height: 1.45;
}

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

  .receipt-preview-panel {
    position: static;
  }
}

@media (max-width: 1040px) {
  .verbali-card-grid--main,
  .convocazione-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verbali-registro-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .convocazione-card--wide {
    grid-column: 1 / -1;
  }

  .receipt-member-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-member-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .verbali-form,
  .convocazione-form {
    max-width: none;
  }

  .verbali-registro-layout,
  .verbali-card-grid--main,
  .verbali-card-grid--people,
  .convocazione-card-grid,
  .convocazione-fields-grid {
    grid-template-columns: 1fr;
  }

  .convocazione-card--wide {
    grid-column: auto;
  }

  .verbali-time-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ricevuta-section,
  .receipt-submit-bar {
    padding: 16px;
  }

  .ricevuta-fields-grid {
    grid-template-columns: 1fr;
  }

  .ricevuta-fields-grid .pro-field--span-4,
  .ricevuta-fields-grid .pro-field--span-3,
  .ricevuta-fields-grid .pro-field--span-6 {
    grid-column: 1 / -1;
  }

  .receipt-number-badge {
    width: 100%;
  }

  .receipt-member-search {
    width: 100%;
  }

  .ricevuta-form-page .ricevuta-lines-table td:nth-child(2) select {
    width: 100%;
  }

  .ricevuta-form-page .ricevuta-lines-table td:nth-child(2) select + select {
    margin-top: 6px;
    margin-left: 0;
  }

  .receipt-preview-list {
    grid-template-columns: 1fr;
  }

  .receipt-line-toolbar,
  .receipt-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-line-toolbar .btn,
  .receipt-submit-bar .btn {
    width: 100%;
  }
}

.pro-page .sez-input[readonly] {
  background: #f8fbff;
  color: #51657c;
}

@media (max-width: 900px) {
  .doc-hub-summary {
    justify-content: flex-start;
    max-width: none;
  }

  .doc-hub-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-hub-search,
  .doc-hub-filter-actions {
    grid-column: 1 / -1;
  }

  .pro-head,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pro-actions,
  .page-head-tools {
    justify-content: flex-start;
  }

  .pro-title,
  .page-head-title {
    font-size: 1.72rem;
  }

  .pro-field--span-2,
  .pro-field--span-3,
  .pro-field--span-4,
  .pro-field--span-5,
  .pro-field--span-6,
  .pro-field--span-8 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .pro-card,
  .pro-auth-card {
    padding: 18px;
  }

  .dashboard-card,
  .pro-module-card {
    min-height: auto;
    padding: 18px;
  }
}

.settings-unified {
  --settings-radius: 8px;
  --settings-accent: #2563eb;
}

.settings-unified-head {
  margin-bottom: 0;
}

.settings-layout-switch {
  width: max-content;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--pro-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--pro-shadow);
}

.settings-layout-switch a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: #52667e;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.settings-layout-switch a.is-active {
  background: #10233b;
  color: #fff;
}

.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.settings-unified--two-rows .settings-card--accounts {
  order: 1;
  grid-column: span 2;
}

.settings-unified--two-rows .settings-card--accounting {
  order: 2;
  grid-column: span 2;
}

.settings-unified--two-rows .settings-card--affiliations {
  order: 3;
  grid-column: span 2;
}

.settings-unified--two-rows .settings-card--fees {
  order: 4;
  grid-column: span 2;
}

.settings-unified--two-rows .settings-card--deadlines {
  order: 5;
  grid-column: span 2;
}

.settings-unified--two-rows .settings-card-stack--association {
  order: 6;
  grid-column: span 2;
}

.settings-unified--three-rows .settings-card--accounts,
.settings-unified--three-rows .settings-card--accounting,
.settings-unified--three-rows .settings-card--affiliations,
.settings-unified--three-rows .settings-card--fees,
.settings-unified--three-rows .settings-card--deadlines,
.settings-unified--three-rows .settings-card-stack--association {
  grid-column: span 3;
}

.settings-unified--three-rows .settings-card-stack--association {
  grid-column: 4 / span 3;
}

.settings-card-stack {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
  align-self: start;
}

.settings-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--pro-border);
  border-top: 4px solid var(--settings-accent);
  border-radius: var(--settings-radius);
  background: #fff;
  box-shadow: var(--pro-shadow);
}

.settings-card--accounts { --settings-accent: #0f766e; }
.settings-card--accounting { --settings-accent: #4f46e5; }
.settings-card--affiliations { --settings-accent: #15803d; }
.settings-card--fees { --settings-accent: #b45309; }
.settings-card--deadlines { --settings-accent: #7c3aed; }
.settings-card--association { --settings-accent: #be123c; }
.settings-card--announcements { --settings-accent: #0369a1; }

.settings-card--deadlines,
.settings-card--association {
  align-self: start;
}

.settings-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.settings-card-head h2 {
  margin: 0;
  color: #25364a;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 820;
}

.settings-card-head p {
  margin: 5px 0 0;
  color: var(--pro-muted);
  font-size: .84rem;
  line-height: 1.4;
}

.settings-card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--settings-radius);
  background: color-mix(in srgb, var(--settings-accent) 12%, white);
  color: var(--settings-accent);
}

.settings-card-icon i,
.settings-card-btn i,
.settings-icon-btn i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.settings-unified .doc-action-btn {
  width: 38px;
  min-width: 38px;
  height: 36px;
  min-height: 36px;
  border-radius: 8px;
}

.settings-unified .doc-action-btn i,
.settings-unified .doc-action-btn svg {
  width: 18px;
  height: 18px;
}

.settings-form {
  display: grid;
  gap: 10px;
}

.settings-form label {
  display: block;
  margin-bottom: 5px;
  color: #52667e;
  font-size: .7rem;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.settings-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.settings-form select,
.settings-form textarea {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--pro-text);
  font-size: .86rem;
}

.settings-form input[type="file"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--pro-muted);
  font-size: .82rem;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
  border-color: color-mix(in srgb, var(--settings-accent) 42%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-accent) 12%, transparent);
  outline: none;
}

.settings-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.settings-form--default .settings-inline-form {
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 10px;
  align-items: stretch;
}

.settings-form select.settings-verbali-select,
.pro-page select.pro-verbali-select {
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  padding: 0 38px 0 14px;
  line-height: 1.2;
}

.tesseramenti-card {
  --settings-accent: #15803d;
}

.certificati-card {
  --settings-accent: #0369a1;
}

.socio-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
}

.socio-record-list-card,
.socio-record-actions-card {
  min-width: 0;
  width: 100%;
}

.socio-record-form {
  align-items: end;
}

.socio-record-form .pro-field {
  min-width: 0;
}

.socio-record-form--tesseramenti .socio-record-field--ente {
  grid-column: span 4;
}

.socio-record-form--tesseramenti .socio-record-field--date,
.socio-record-form--tesseramenti .socio-record-field--numero,
.socio-record-form--tesseramenti .socio-record-field--actions {
  grid-column: span 2;
}

.socio-record-form--certificati .socio-record-field--tipo,
.socio-record-form--certificati .socio-record-field--file {
  grid-column: span 3;
}

.socio-record-form--certificati .socio-record-field--date,
.socio-record-form--certificati .socio-record-field--actions {
  grid-column: span 2;
}

.socio-record-field--actions {
  align-self: end;
  margin-top: 0;
}

.socio-record-field--actions .btn {
  width: 100%;
  min-height: 46px;
}

.socio-record-pending td {
  background: #fff8f1;
}

.socio-record-pending:hover td {
  background: #fff3e6;
}

.pro-page select.tesseramenti-ente-select:focus,
.pro-page select.certificati-tipo-select:focus {
  border-color: color-mix(in srgb, var(--settings-accent) 42%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--settings-accent) 12%, transparent);
}

.tesscert-page {
  --tesscert-line: #d8e0ea;
  --tesscert-ink: #1f2937;
  --tesscert-muted: #64748b;
}

.tesscert-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--tesscert-line);
  border-radius: 8px;
  background: #fff;
}

.tesscert-switch-item {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--tesscert-muted);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.tesscert-switch-item:hover {
  color: var(--tesscert-ink);
  background: #f3f6fa;
}

.tesscert-switch-item.is-active {
  color: #fff;
  background: #2563eb;
}

.tesscert-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.tesscert-actions-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.tesscert-actions-grid--single .tesscert-form--tesseramenti {
  grid-template-columns: minmax(180px, 1.5fr) minmax(180px, 1.5fr) minmax(130px, .9fr) minmax(130px, .9fr) minmax(140px, .9fr) minmax(120px, auto);
}

.tesscert-actions-grid--single .tesscert-form--tesseramenti .tesscert-field--socio,
.tesscert-actions-grid--single .tesscert-form--tesseramenti .pro-field:nth-of-type(2),
.tesscert-actions-grid--single .tesscert-form--tesseramenti .pro-field,
.tesscert-actions-grid--single .tesscert-form--tesseramenti .tesscert-form-actions {
  grid-column: auto;
}

.tesscert-actions-grid--single .tesscert-form--certificati {
  grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(130px, .9fr) minmax(130px, .9fr) minmax(180px, 1.2fr) minmax(120px, auto);
}

.tesscert-actions-grid--single .tesscert-form--certificati .tesscert-field--socio,
.tesscert-actions-grid--single .tesscert-form--certificati .pro-field:nth-of-type(2),
.tesscert-actions-grid--single .tesscert-form--certificati .tesscert-field--file,
.tesscert-actions-grid--single .tesscert-form--certificati .pro-field,
.tesscert-actions-grid--single .tesscert-form--certificati .tesscert-form-actions {
  grid-column: auto;
}

.tesscert-action-card .pro-card-head {
  align-items: flex-start;
}

.tesscert-action-card .btn,
.tesscert-history-card .btn,
.tesscert-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tesscert-action-card .btn svg,
.tesscert-history-card .btn svg,
.tesscert-modal .btn svg {
  width: 16px;
  height: 16px;
}

.tesscert-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tesscert-form input,
.tesscert-form select.pro-verbali-select,
.tesscert-form .tesscert-form-actions .btn {
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
}

.tesscert-form input[type="file"] {
  padding-top: 10px;
  padding-bottom: 10px;
}

.tesscert-field--socio,
.tesscert-field--file {
  grid-column: span 2;
}

.tesscert-form--tesseramenti .tesscert-field--socio,
.tesscert-form--tesseramenti .pro-field:nth-of-type(2),
.tesscert-form--certificati .tesscert-field--socio,
.tesscert-form--certificati .pro-field:nth-of-type(2) {
  grid-column: span 2;
}

.tesscert-form--certificati .tesscert-field--file {
  grid-column: span 1;
}

.tesscert-form-actions {
  grid-column: span 1;
  align-self: end;
  justify-content: flex-end;
  margin-top: 0;
}

.tesscert-form-actions .btn {
  width: 100%;
  min-height: 46px;
}

.tesscert-member-search {
  position: relative;
  min-width: 0;
}

.tesscert-member-search-control {
  display: block;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.tesscert-member-search-control:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.tesscert-member-search-input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  padding: 0 10px;
  color: var(--pro-text);
  font-size: .9rem;
  font-weight: 400;
  box-shadow: none !important;
}

.tesscert-member-search-input:focus {
  outline: none;
  box-shadow: none !important;
}

.tesscert-member-search-results {
  position: absolute;
  z-index: 45;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--pro-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 30, 50, .14);
  padding: 8px;
}

.tesscert-member-search-result {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  color: #111827;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
}

.tesscert-member-search-result:hover,
.tesscert-member-search-result[aria-selected="true"] {
  background: #f3f6fb;
}

.tesscert-history-card {
  margin-top: 14px;
}

.tesscert-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 0 16px 14px;
}

.tesscert-filter-actions {
  align-self: end;
}

.tesscert-socio-filter {
  min-width: 0;
}

.tesscert-history-search-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 8px !important;
}

.tesscert-table th,
.tesscert-table td {
  white-space: nowrap;
}

.tesscert-table td:nth-child(2),
.tesscert-table td:nth-child(3) {
  white-space: normal;
}

.tesscert-category {
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}

.tesscert-category--tesseramento.tesscert-category--valido {
  color: #065f46;
  background: #d1fae5;
}

.tesscert-category--tesseramento.tesscert-category--scaduto {
  color: #92400e;
  background: #fde68a;
}

.tesscert-category--certificato.tesscert-category--valido {
  color: #1e40af;
  background: #dbeafe;
}

.tesscert-category--certificato.tesscert-category--scaduto {
  color: #991b1b;
  background: #fee2e2;
}

.tesscert-massivo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tesscert-massivo-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.tesscert-massivo-toolbar .pro-field {
  flex: 1;
}

.tesscert-massivo-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin-top: 12px;
  overflow: auto;
}

.tesscert-massivo-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--tesscert-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 650;
}

.tesscert-massivo-empty {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--tesscert-line);
  border-radius: 8px;
  color: var(--tesscert-muted);
  text-align: center;
}

.tesscert-massivo-count {
  margin-right: auto;
  color: var(--tesscert-muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .tesscert-actions-grid,
  .tesscert-actions-grid--single,
  .tesscert-form,
  .tesscert-filters,
  .tesscert-massivo-grid {
    grid-template-columns: 1fr;
  }

  .tesscert-field--socio,
  .tesscert-field--file,
  .tesscert-form-actions {
    grid-column: auto;
  }

  .tesscert-massivo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .socio-record-form--tesseramenti .socio-record-field--ente,
  .socio-record-form--tesseramenti .socio-record-field--date,
  .socio-record-form--tesseramenti .socio-record-field--numero,
  .socio-record-form--tesseramenti .socio-record-field--actions,
  .socio-record-form--certificati .socio-record-field--tipo,
  .socio-record-form--certificati .socio-record-field--date,
  .socio-record-form--certificati .socio-record-field--file,
  .socio-record-form--certificati .socio-record-field--actions {
    grid-column: 1 / -1;
  }
}

.settings-form--default .settings-card-btn {
  min-height: 46px;
}

.settings-mini-grid,
.settings-association-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.settings-field-wide {
  grid-column: span 2;
}

.settings-mini-grid > .settings-card-btn,
.settings-association-grid > .settings-card-btn {
  align-self: end;
}

.settings-deadlines-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(132px, 1fr) minmax(142px, 1fr);
  gap: 10px;
  align-items: end;
}

.settings-deadlines-form > div {
  min-width: 0;
}

.settings-deadlines-recurrence {
  grid-column: 1 / span 2;
}

.settings-deadlines-action {
  width: 100%;
  min-height: 46px;
}

.settings-association-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 12px;
  align-items: end;
}

.settings-association-field {
  min-width: 0;
}

.settings-association-field--name {
  grid-column: 1 / -1;
}

.settings-association-field--tax-code,
.settings-association-field--vat {
  grid-column: span 6;
}

.settings-association-field--pec,
.settings-association-field--email {
  grid-column: span 5;
}

.settings-association-field--asd {
  grid-column: span 2;
}

.settings-association-field--address {
  grid-column: span 9;
}

.settings-association-field--street-number {
  grid-column: span 3;
}

.settings-association-field--zip {
  grid-column: span 3;
}

.settings-association-field--city {
  grid-column: span 7;
}

.settings-association-field--province {
  grid-column: span 2;
}

.settings-association-actions {
  grid-column: 1 / -1;
  align-self: end;
}

.settings-association-actions .settings-card-btn {
  min-width: 160px;
}

.settings-card-btn,
.pro-page .settings-card-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #29415c;
  font-size: .84rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease, color .14s ease;
}

.settings-card-btn:hover,
.pro-page .settings-card-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--settings-accent) 32%, var(--pro-border));
  background: #f8fbff;
  color: #19304a;
}

.settings-card-btn--primary,
.pro-page .settings-card-btn--primary {
  border-color: var(--settings-accent);
  background: var(--settings-accent);
  color: #fff;
}

.settings-card-btn--primary:hover,
.pro-page .settings-card-btn--primary:hover,
.settings-card-btn--success:hover,
.pro-page .settings-card-btn--success:hover {
  background: color-mix(in srgb, var(--settings-accent) 88%, #000);
  color: #fff;
}

.settings-card-btn--success,
.pro-page .settings-card-btn--success {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}

.settings-card-btn--ghost {
  background: #f8fbff;
}

.settings-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #edf2f7;
  border-radius: 8px;
}

.settings-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.settings-table th {
  padding: 10px 11px;
  border-bottom: 1px solid var(--pro-border);
  background: #f6f9fd;
  color: #53667e;
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #edf2f7;
  color: #26384e;
  font-size: .82rem;
  vertical-align: middle;
}

.settings-table--deadlines th:nth-child(1),
.settings-table--deadlines td:nth-child(1) {
  width: 34%;
}

.settings-table--deadlines th:nth-child(2),
.settings-table--deadlines td:nth-child(2),
.settings-table--deadlines th:nth-child(3),
.settings-table--deadlines td:nth-child(3) {
  width: 17%;
}

.settings-table--deadlines th:nth-child(4),
.settings-table--deadlines td:nth-child(4) {
  width: 86px;
  white-space: nowrap;
}

.settings-table--deadlines th:nth-child(5),
.settings-table--deadlines td:nth-child(5) {
  width: 96px;
  text-align: right;
}

.settings-table--deadlines .settings-row-actions {
  justify-content: flex-end;
}

.settings-table tbody tr:last-child td {
  border-bottom: 0;
}

.settings-table tbody tr:hover td {
  background: #f8fbff;
}

.settings-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-row-actions form,
.settings-table td > form {
  display: inline-flex;
  margin: 0;
}

.settings-icon-btn,
.pro-page .settings-icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pro-border);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: #29415c;
  text-decoration: none;
  cursor: pointer;
}

.settings-icon-btn:hover,
.pro-page .settings-icon-btn:hover {
  border-color: color-mix(in srgb, var(--settings-accent) 32%, var(--pro-border));
  background: #f8fbff;
  color: var(--settings-accent);
  transform: translateY(-1px);
}

.settings-icon-btn--danger,
.pro-page .settings-icon-btn--danger {
  color: var(--pro-danger);
}

.settings-icon-btn--danger:hover,
.pro-page .settings-icon-btn--danger:hover {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--pro-danger);
}

.settings-icon-btn--disabled,
.pro-page .settings-icon-btn--disabled {
  opacity: .48;
  cursor: not-allowed;
}

.settings-icon-btn--active,
.pro-page .settings-icon-btn--active {
  border-color: #15803d;
  background: #dcfce7;
  color: #15803d;
}

.doc-action-btn--active,
.pro-page .doc-action-btn--active,
.pro-page button.doc-action-btn--active:not(.btn):not(.btn-close) {
  border-color: #86d7a2;
  background: linear-gradient(180deg, #f1fff6 0%, #dcfce7 100%);
  color: #15803d;
}

.settings-plain-input {
  min-height: 34px !important;
  padding: 6px 8px !important;
  font-size: .82rem !important;
}

.settings-plain-input[readonly] {
  background: #f8fbff !important;
  color: #52667e !important;
}

.settings-color-input {
  min-width: 48px;
  padding: 4px !important;
}

.settings-pill {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef2f6;
  color: #53657b;
  font-size: .66rem;
  font-weight: 820;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-pill--ok {
  background: #dcfce7;
  color: #15803d;
}

.settings-pill--soft {
  background: color-mix(in srgb, var(--settings-accent) 10%, white);
  color: var(--settings-accent);
}

.settings-pill--fiscal {
  background: #fef3c7;
  color: #92400e;
}

.settings-cell-muted {
  margin-top: 3px;
  color: var(--pro-muted);
  font-size: .75rem;
  line-height: 1.3;
}

.settings-row-muted td {
  color: var(--pro-muted);
}

.settings-announcements-form {
  flex: 1;
  grid-template-rows: minmax(0, 1fr) auto;
}

.settings-announcements-form textarea {
  min-height: 180px;
  resize: vertical;
}

.settings-announcements-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-announcements-actions .settings-card-btn {
  margin-left: auto;
}

.settings-muted-action {
  color: var(--pro-muted);
  font-size: .74rem;
  font-weight: 700;
}

.settings-empty {
  color: var(--pro-muted) !important;
  text-align: center;
}

.settings-center {
  text-align: center;
}

.settings-right {
  text-align: right;
}

@media (max-width: 1280px) {
  .settings-unified--two-rows .settings-card--accounts,
  .settings-unified--two-rows .settings-card--accounting,
  .settings-unified--two-rows .settings-card--affiliations,
  .settings-unified--two-rows .settings-card--fees,
  .settings-unified--two-rows .settings-card--deadlines,
  .settings-unified--two-rows .settings-card-stack--association,
  .settings-unified--three-rows .settings-card--accounts,
  .settings-unified--three-rows .settings-card--accounting,
  .settings-unified--three-rows .settings-card--affiliations,
  .settings-unified--three-rows .settings-card--fees,
  .settings-unified--three-rows .settings-card--deadlines,
  .settings-unified--three-rows .settings-card-stack--association {
    grid-column: span 3;
  }

  .settings-unified--two-rows .settings-card-stack--association,
  .settings-unified--three-rows .settings-card-stack--association {
    grid-column: 4 / span 3;
  }
}

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

  .settings-unified--two-rows .settings-card--accounts,
  .settings-unified--two-rows .settings-card--accounting,
  .settings-unified--two-rows .settings-card--affiliations,
  .settings-unified--two-rows .settings-card--fees,
  .settings-unified--two-rows .settings-card--deadlines,
  .settings-unified--two-rows .settings-card-stack--association,
  .settings-unified--three-rows .settings-card--accounts,
  .settings-unified--three-rows .settings-card--accounting,
  .settings-unified--three-rows .settings-card--affiliations,
  .settings-unified--three-rows .settings-card--fees,
  .settings-unified--three-rows .settings-card--deadlines,
  .settings-unified--three-rows .settings-card-stack--association {
    grid-column: 1 / -1;
  }

  .settings-mini-grid,
  .settings-association-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-deadlines-form {
    grid-template-columns: 1fr 1fr;
  }

  .settings-deadlines-title {
    grid-column: 1 / -1;
  }

  .settings-deadlines-recurrence {
    grid-column: auto;
  }

  .settings-association-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .settings-field-wide,
  .settings-association-grid .settings-field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .doc-hub-filter-grid,
  .doc-modal-summary {
    grid-template-columns: 1fr;
  }

  .doc-hub-switch {
    width: 100%;
  }

  .doc-hub-switch-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .doc-hub-summary {
    gap: 6px;
  }

  .doc-hub-summary span {
    flex: 1 1 100%;
  }

  .doc-hub-create-row,
  .doc-hub-tools-row,
  .doc-hub-filter-actions {
    align-items: stretch;
    justify-content: stretch;
  }

  .doc-hub-tools-row {
    flex-direction: column;
  }

  .doc-acquire-form,
  .doc-acquire-form .btn {
    width: 100%;
  }

  .doc-camera-form {
    display: block;
  }

  .doc-camera-button {
    display: inline-flex;
  }

  .doc-hub-create-row {
    flex-direction: column;
  }

  .doc-hub-create-row .btn,
  .doc-hub-filter-actions .btn,
  .doc-hub-create-row .pro-field {
    width: 100%;
  }

  .settings-layout-switch {
    width: 100%;
  }

  .settings-layout-switch a {
    flex: 1;
    justify-content: center;
  }

  .settings-inline-form,
  .settings-mini-grid,
  .settings-deadlines-form,
  .settings-association-grid {
    grid-template-columns: 1fr;
  }

  .settings-deadlines-title,
  .settings-deadlines-recurrence {
    grid-column: 1 / -1;
  }

  .settings-form--default .settings-inline-form {
    grid-template-columns: 1fr;
  }

  .settings-association-field--name,
  .settings-association-field--tax-code,
  .settings-association-field--address,
  .settings-association-field--street-number,
  .settings-association-field--zip,
  .settings-association-field--city,
  .settings-association-field--province,
  .settings-association-field--pec,
  .settings-association-field--email,
  .settings-association-field--asd,
  .settings-association-field--vat,
  .settings-association-actions {
    grid-column: 1 / -1;
  }

  .settings-card {
    padding: 15px;
  }

  .settings-card-btn,
  .pro-page .settings-card-btn {
    width: 100%;
  }

  .settings-announcements-actions .settings-card-btn {
    margin-left: 0;
  }
}
