/* CPool standalone pages uniform v11.3.17d */

:root {
  --cpool-standalone-width: 960px;
}

.cpool-parent-context-slot {
  box-sizing: border-box;
  width: 100%;
}

.cpool-parent-section-shell {
  box-sizing: border-box;
  width: min(var(--cpool-standalone-width), calc(100% - 32px));
  max-width: var(--cpool-standalone-width);
  min-width: 0;
  margin: 28px auto 0;
}

.cpool-parent-section-shell .cpool-v2-hero {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 82px;
  margin: 0 0 24px;
  padding: 0;
}

.cpool-parent-section-shell .cpool-v2-hero h1 {
  margin: 0;
  color: #0b1220;
}

.cpool-parent-section-shell .cpool-v2-hero p {
  max-width: 650px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.cpool-parent-section-shell .cpool-v2-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

/*
 * Il wrapper principale del layout rimane quello originale.
 * Viene uniformata esclusivamente la radice della pagina interna.
 */
body[data-cpool-controller="cpool_documents"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_client_documents"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_one_off_documents"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_dynamic_documents"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_dynamic_documents"][data-cpool-action="preview"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_clients"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_clients"][data-cpool-action="create"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_assignments"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_assignments"][data-cpool-action="create"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_templates"][data-cpool-action="new"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_templates"][data-cpool-action="create"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_templates"][data-cpool-action="edit"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_templates"][data-cpool-action="update"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_collection_batches"][data-cpool-action="show"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_archive"][data-cpool-action="show"]
> div.max-w-6xl > :not(script):not(style),

body[data-cpool-controller="cpool_archive"][data-cpool-action="collection"]
> div.max-w-6xl > :not(script):not(style) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--cpool-standalone-width) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Elimina i vecchi limiti 3xl, 4xl e narrow solo nelle pagine elencate. */
body[data-cpool-controller="cpool_documents"][data-cpool-action="new"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_client_documents"][data-cpool-action="new"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_one_off_documents"][data-cpool-action="new"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_dynamic_documents"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_clients"][data-cpool-action="new"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_collection_assignments"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_collection_templates"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_collection_batches"][data-cpool-action="show"]
> div.max-w-6xl > :first-child,

body[data-cpool-controller="cpool_archive"][data-cpool-action="show"]
> div.max-w-6xl > :first-child {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body[data-cpool-controller="cpool_collection_assignments"]
.cpool-v2-page-narrow,

body[data-cpool-controller="cpool_collection_templates"]
.cpool-v2-page-narrow,

body[data-cpool-controller="cpool_collection_templates"]
.cpool-builder-page {
  width: 100% !important;
  max-width: var(--cpool-standalone-width) !important;
}

/* Intestazione interna della singola operazione: diventa un sottotitolo pagina. */
body[data-cpool-controller="cpool_collection_assignments"]
.cpool-v2-hero-compact,

body[data-cpool-controller="cpool_collection_templates"]
.cpool-v2-hero-compact {
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

/* Campi e pulsanti coerenti con il sistema generale. */
body[data-cpool-controller="cpool_documents"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_client_documents"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_one_off_documents"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_dynamic_documents"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_clients"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_collection_assignments"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_collection_templates"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_collection_batches"] .btn:not(.btn-sm),
body[data-cpool-controller="cpool_archive"][data-cpool-action="show"] .btn:not(.btn-sm) {
  min-height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 767px) {
  .cpool-parent-section-shell {
    width: calc(100% - 28px);
    max-width: none;
    margin-top: 20px;
  }

  .cpool-parent-section-shell .cpool-v2-hero {
    display: block;
    min-height: 0;
  }

  .cpool-parent-section-shell .cpool-v2-actions {
    justify-content: flex-start;
    width: 100%;
    margin-top: 18px;
  }
}

/* CPOOL_MACROTITLE_EXACT_CLASSES_17L
 * Tipografia non definita qui:
 * usa direttamente class="text-3xl font-bold" nell'HTML.
 */
