/* Variabili e base portale */
.ctp-portal{--ctp-border:#d9dee5;--ctp-muted:#667085;--ctp-bg:#fff;--ctp-bg-alt:#f8fafc;--ctp-text:#172033;--ctp-blue:#0e6eb8;--ctp-focus:#2271b1;font-family:inherit;color:var(--ctp-text)}

/* Intestazione portale */
.ctp-portal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 24px}
.ctp-portal-header h2{margin:4px 0;font-size:32px;line-height:1.15}
.ctp-portal-header p{margin:0;color:var(--ctp-muted)}
.ctp-eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--ctp-muted)}
.ctp-site-badge{border:1px solid var(--ctp-border);border-radius:999px;padding:8px 12px;font-size:13px;white-space:nowrap;background:#fff}

/* Switch cliente globale */
.ctp-customer-switcher{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:14px 16px;border:1px solid var(--ctp-border);border-radius:12px;background:var(--ctp-bg-alt)}
.ctp-switcher-label{font-size:14px;font-weight:700}
.ctp-switcher-help{margin-top:2px;color:var(--ctp-muted);font-size:12px}
.ctp-switcher-form{margin:0}
.ctp-customer-select{min-width:220px;max-width:100%;padding:8px 34px 8px 10px;border:1px solid var(--ctp-border);border-radius:8px;background:#fff;font:inherit}

/* Riepilogo */
.ctp-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.ctp-summary-card{border:1px solid var(--ctp-border);border-radius:12px;padding:18px;background:#fff}
.ctp-summary-label{color:var(--ctp-muted);font-size:13px}
.ctp-summary-value{font-size:27px;font-weight:700;margin-top:4px;overflow-wrap:anywhere}

/* Contenitori viste */
.ctp-view-card{margin:28px 0;background:var(--ctp-bg);color:var(--ctp-text);transition:background-color .15s,color .15s}
.ctp-view-heading{text-align:center;margin-bottom:12px}
.ctp-view-heading h3{margin:0;font-size:25px}
.ctp-view-heading p{margin:6px auto 0;max-width:760px;color:var(--ctp-muted);font-size:13px}

/* Barre strumenti */
.ctp-toolbar{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.ctp-toolbar-spacer{flex:1}
.ctp-btn{padding:7px 12px;border-radius:10px;border:1px solid #c8cdd3;cursor:pointer;font:inherit;background:#f1f1f1;color:#111}
.ctp-btn:hover{filter:brightness(.98)}
.ctp-btn:focus-visible{outline:2px solid var(--ctp-focus);outline-offset:2px}
.ctp-btn-csv{background:#d9f0ff;color:#005a8c;border-color:transparent}
.ctp-btn-pdf{background:#ffd9d9;color:#8c0000;border-color:transparent}

/* Tabelle */
.ctp-table-wrap{overflow-x:auto;border:1px solid var(--ctp-border);border-radius:2px}
.ctp-table{width:100%;border-collapse:collapse;background:var(--ctp-bg);color:var(--ctp-text);font-size:14px}
.ctp-table th{background:var(--ctp-blue);color:#fff;padding:7px;text-align:left;border-right:1px solid rgba(255,255,255,.2);line-height:1.15}
.ctp-table td{padding:7px;border-right:1px solid var(--ctp-border);border-bottom:1px solid var(--ctp-border);vertical-align:top}
.ctp-table tr:last-child td{border-bottom:0}
.ctp-table th:last-child,.ctp-table td:last-child{border-right:0}
.ctp-state-col{width:70px;white-space:nowrap;text-align:center!important}

/* Badge di stato */
.ctp-badge{display:inline-block;min-width:48px;text-align:center;padding:3px 6px;border-radius:4px;color:#fff;font-size:11px;font-weight:700}
.ctp-badge.OK,.ctp-badge.UP{background:#28a745}
.ctp-badge.WARN{background:#ffc107;color:#000}
.ctp-badge.CRIT,.ctp-badge.DOWN{background:#dc3545}
.ctp-badge.UNREACH{background:#6f42c1}
.ctp-badge.UNKNOWN{background:#6c757d}

/* Output servizi */
.ctp-output-short{display:block;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctp-output-short.ctp-output-expanded{white-space:normal;overflow:visible;text-overflow:clip;max-width:none}
.ctp-output-toggle{display:inline;padding:0;border:0;background:transparent;color:#0073aa;text-decoration:underline;cursor:pointer;font-size:11px}

/* Messaggi */
.ctp-ok,.ctp-message{border:1px solid var(--ctp-border);border-radius:10px;padding:18px;background:#fff}
.ctp-error{border:1px solid #d63638;border-radius:10px;padding:18px;background:#fff}

/* Barra ricerca CMDB */
.ctp-cmdb-search-panel{margin:20px 0 14px}
.ctp-search-label{display:block;margin-bottom:7px;font-weight:700;font-size:13px}
.ctp-cmdb-search-shell{position:relative;display:flex;align-items:center;width:100%;border:1px solid #cfd6df;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.03);transition:border-color .15s,box-shadow .15s}
.ctp-cmdb-search-shell:focus-within{border-color:var(--ctp-focus);box-shadow:0 0 0 3px rgba(34,113,177,.12)}
.ctp-search-icon{position:absolute;left:14px;color:#667085;font-size:20px;line-height:1;pointer-events:none}
.ctp-cmdb-search{width:100%;min-width:0;padding:13px 44px 13px 42px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;outline:0!important;font:inherit;font-size:15px;color:var(--ctp-text)}
.ctp-cmdb-search::placeholder{color:#98a2b3}
.ctp-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:#667085;font-size:22px;line-height:30px;cursor:pointer}
.ctp-search-clear:hover{background:#f2f4f7;color:#111827}
.ctp-cmdb-search-meta{display:flex;justify-content:space-between;gap:12px;margin-top:7px;color:var(--ctp-muted);font-size:12px}
.ctp-cmdb-search-meta [data-ctp-index-status].is-warning{color:#9a6700}

/* Barra strumenti CMDB */
.ctp-toolbar-cmdb{flex-wrap:wrap;margin-top:6px}

/* Righe CMDB interattive */
.ctp-cmdb-row{cursor:pointer;transition:background-color .12s,box-shadow .12s}
.ctp-cmdb-row:hover td{background:#f4f8fc}
.ctp-cmdb-row:focus-visible{outline:2px solid var(--ctp-focus);outline-offset:-2px}
.ctp-cmdb-row:focus-visible td{background:#eef6fd}
.ctp-cmdb-table td:nth-child(2){white-space:nowrap}
.ctp-row-open-hint{display:block;margin-top:2px;color:#667085;font-size:10px;font-weight:400;opacity:0;transition:opacity .12s}
.ctp-cmdb-row:hover .ctp-row-open-hint,.ctp-cmdb-row:focus-visible .ctp-row-open-hint{opacity:1}

/* Paginazione CMDB */
.ctp-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:8px 0}
.ctp-pagination-info{color:var(--ctp-muted);font-size:13px}
.ctp-pagination-controls{display:flex;align-items:center;gap:5px}
.ctp-page-numbers{display:flex;align-items:center;gap:5px}
.ctp-page-btn{min-width:34px;height:34px;padding:0 9px;border:1px solid var(--ctp-border);border-radius:8px;background:#fff;color:var(--ctp-text);font:inherit;font-size:13px;cursor:pointer}
.ctp-page-btn:hover:not(:disabled){background:#f2f4f7}
.ctp-page-btn.is-current{background:var(--ctp-blue);border-color:var(--ctp-blue);color:#fff;font-weight:700}
.ctp-page-btn:disabled{opacity:.4;cursor:not-allowed}
.ctp-page-btn:focus-visible{outline:2px solid var(--ctp-focus);outline-offset:2px}
.ctp-page-ellipsis{min-width:22px;text-align:center;color:var(--ctp-muted)}

/* Finestra dettagli host */
body.ctp-modal-open{overflow:hidden}
.ctp-host-modal[hidden]{display:none!important}
.ctp-host-modal{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;padding:24px}
.ctp-host-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(2px)}
.ctp-host-modal-dialog{position:relative;z-index:1;width:min(1180px,96vw);max-height:92vh;display:flex;flex-direction:column;border:1px solid #d0d5dd;border-radius:16px;background:#fff;color:#172033;box-shadow:0 24px 80px rgba(15,23,42,.28);overflow:hidden}
.ctp-host-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid #e4e7ec;background:#fff}
.ctp-host-modal-header h3{margin:4px 0 0;font-size:26px;line-height:1.2}
.ctp-modal-close{flex:0 0 auto;width:38px;height:38px;border:1px solid #d0d5dd;border-radius:50%;background:#fff;color:#344054;font-size:26px;line-height:32px;cursor:pointer}
.ctp-modal-close:hover{background:#f2f4f7}
.ctp-host-modal-body{overflow:auto;padding:22px 24px 30px;background:#f8fafc}
.ctp-modal-loading{padding:34px;text-align:center;color:#667085}
.ctp-host-detail-intro{margin-bottom:14px;color:#667085;font-size:13px}

/* Riepilogo dettagli host */
.ctp-host-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}
.ctp-host-overview-item{min-width:0;padding:12px 14px;border:1px solid #e4e7ec;border-radius:10px;background:#fff}
.ctp-host-overview-label{margin-bottom:3px;color:#667085;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.ctp-host-overview-value{font-size:14px;font-weight:600;overflow-wrap:anywhere}

/* Sezioni dettagli host */
.ctp-host-sections{display:grid;gap:10px}
.ctp-host-section{border:1px solid #e4e7ec;border-radius:10px;background:#fff;overflow:hidden}
.ctp-host-section>summary{padding:13px 15px;font-weight:700;cursor:pointer;background:#fff;user-select:none}
.ctp-host-section[open]>summary{border-bottom:1px solid #e4e7ec;background:#f9fafb}
.ctp-host-section>.ctp-data-grid,.ctp-host-section>.ctp-data-list,.ctp-host-section>.ctp-data-node,.ctp-host-section>.ctp-data-scalar{margin:14px 15px}
.ctp-source-error{margin:14px 15px;padding:10px 12px;border-radius:8px;background:#fff4f4;color:#b42318}

/* Albero dati Checkmk */
.ctp-data-grid{display:grid;grid-template-columns:minmax(150px,240px) minmax(0,1fr);margin:0;border-top:1px solid #f0f2f5}
.ctp-data-grid dt,.ctp-data-grid dd{margin:0;padding:8px 10px;border-bottom:1px solid #f0f2f5;overflow-wrap:anywhere}
.ctp-data-grid dt{color:#475467;font-size:12px;font-weight:700;background:#fafafa}
.ctp-data-grid dd{font-size:12px;background:#fff}
.ctp-data-grid.is-nested{grid-template-columns:minmax(120px,210px) minmax(0,1fr);margin:8px 0}
.ctp-data-key-nested{display:none}
.ctp-data-key-nested+dd{grid-column:1/-1;padding:4px 0 8px;background:#fff}
.ctp-data-node{margin:4px 0;border:1px solid #eaecf0;border-radius:7px;background:#fff}
.ctp-data-node>summary{padding:7px 9px;color:#344054;font-size:12px;font-weight:600;cursor:pointer;background:#f9fafb}
.ctp-data-node>.ctp-data-grid,.ctp-data-node>.ctp-data-list{margin:5px}
.ctp-data-list{display:grid;gap:5px}
.ctp-data-list-item{padding:5px 7px;border-bottom:1px solid #f2f4f7;font-size:12px;overflow-wrap:anywhere}
.ctp-data-list-item:last-child{border-bottom:0}
.ctp-data-scalar{overflow-wrap:anywhere;white-space:pre-wrap}

/* Modalità scura */

/* Responsive tablet */
@media(max-width:980px){.ctp-host-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.ctp-host-modal{padding:14px}.ctp-host-modal-dialog{width:98vw;max-height:95vh}}

/* Responsive mobile */
@media(max-width:760px){.ctp-summary{grid-template-columns:1fr}.ctp-portal-header,.ctp-customer-switcher{flex-direction:column;align-items:stretch}.ctp-customer-select{width:100%}.ctp-toolbar{align-items:stretch;flex-wrap:wrap}.ctp-toolbar-spacer{display:none}.ctp-btn{flex:1}.ctp-cmdb-search-meta{flex-direction:column;gap:3px}.ctp-pagination{flex-direction:column;align-items:stretch}.ctp-pagination-controls{justify-content:center}.ctp-host-overview{grid-template-columns:1fr}.ctp-host-modal{padding:0}.ctp-host-modal-dialog{width:100vw;max-height:100vh;height:100vh;border-radius:0;border:0}.ctp-host-modal-header{padding:16px}.ctp-host-modal-body{padding:16px}.ctp-data-grid{grid-template-columns:1fr}.ctp-data-grid dt{border-bottom:0;padding-bottom:2px}.ctp-data-grid dd{padding-top:2px}.ctp-data-key-nested+dd{grid-column:auto}.ctp-page-numbers .ctp-page-btn:nth-child(n+6){display:none}}

/* CMDB table layout */
.ctp-cmdb-table-wrap{border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ctp-cmdb-table{min-width:1040px;table-layout:fixed}
.ctp-cmdb-table th,.ctp-cmdb-table td{padding:9px 10px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}
.ctp-cmdb-table td{white-space:nowrap}
.ctp-cmdb-table .ctp-col-state{width:80px}
.ctp-cmdb-table .ctp-col-host{width:210px}
.ctp-cmdb-table .ctp-col-alias{width:190px}
.ctp-cmdb-table .ctp-col-ip{width:145px}
.ctp-cmdb-table .ctp-col-parent{width:190px}
.ctp-cmdb-table .ctp-col-type{width:165px}
.ctp-cmdb-table .ctp-col-check{width:125px}
.ctp-cmdb-table .ctp-col-open{width:42px}
.ctp-cmdb-table .ctp-host-cell strong{font-weight:700}
.ctp-open-cell{text-align:center}
.ctp-row-chevron{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:22px;line-height:1;color:#667085;transition:background-color .12s,color .12s,transform .12s}
.ctp-cmdb-row:hover .ctp-row-chevron,.ctp-cmdb-row:focus-visible .ctp-row-chevron{background:#e8f2fb;color:#0e6eb8;transform:translateX(2px)}

/* Clean host detail */
.ctp-host-sections-clean{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;margin-bottom:14px}
.ctp-host-sections-clean .ctp-host-section{height:auto}
.ctp-btn-primary{background:#0e6eb8;color:#fff;border-color:#0e6eb8}
.ctp-btn-primary:hover{background:#0b5f9f}
.ctp-inventory-panel{margin-top:14px;border:1px solid #d9dee5;border-radius:12px;background:#fff;overflow:hidden}
.ctp-inventory-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #e4e7ec}
.ctp-inventory-head h4{margin:0;font-size:18px}
.ctp-inventory-head p{margin:4px 0 0;color:#667085;font-size:12px}
.ctp-inventory-result{padding:0 18px 18px}
.ctp-inventory-result:empty{padding:0}
.ctp-inventory-result>.ctp-data-grid,.ctp-inventory-result>.ctp-data-list,.ctp-inventory-result>.ctp-data-node,.ctp-inventory-result>.ctp-data-scalar{margin-top:16px}

@media(max-width:900px){.ctp-host-sections-clean{grid-template-columns:1fr}.ctp-inventory-head{align-items:stretch;flex-direction:column}.ctp-inventory-head .ctp-btn{width:100%}}

/* CMDB 0.2.3 - stato indicizzazione proprietà */
.ctp-index-pill{display:inline-flex;align-items:center;gap:6px;margin-right:7px;padding:3px 8px;border-radius:999px;background:#eef4f8;color:#475467;font-size:11px;font-weight:700;vertical-align:middle}
.ctp-index-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:#98a2b3}
.ctp-index-pill.is-loading::before{background:#f0ad00;box-shadow:0 0 0 3px rgba(240,173,0,.12)}
.ctp-index-pill.is-ready{background:#edf8f0;color:#187a36}
.ctp-index-pill.is-ready::before{background:#28a745}
.ctp-index-pill.is-warning{background:#fff7e6;color:#8a5a00}

/* CMDB 0.2.3 - risultati ricerca dinamica */
.ctp-search-suggestions[hidden]{display:none!important}
.ctp-search-suggestions{margin-top:6px;border:1px solid #d9dee5;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(16,24,40,.12);overflow:hidden;position:relative;z-index:20}
.ctp-search-suggestion{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;cursor:pointer;border-bottom:1px solid #eef1f4;color:#172033;background:#fff}
.ctp-search-suggestion:last-child{border-bottom:0}
.ctp-search-suggestion:hover,.ctp-search-suggestion:focus-visible{background:#f3f8fc;outline:none}
.ctp-search-suggestion-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.ctp-search-suggestion-copy strong{font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctp-search-suggestion-copy small{color:#667085;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctp-search-suggestion-empty{padding:11px 13px;color:#667085;font-size:12px}
.ctp-badge-mini{min-width:42px;padding:2px 5px;font-size:9px;flex:0 0 auto}

/* CMDB 0.2.3 - pulsanti X indipendenti dal tema */
.ctp-modal-close,.ctp-search-clear{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;position:relative!important;display:inline-grid!important;place-items:center!important;padding:0!important;margin:0!important;font:inherit!important;text-decoration:none!important;box-shadow:none!important}
.ctp-modal-close{all:unset;box-sizing:border-box!important;display:grid!important;place-items:center!important;position:relative!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border:1px solid #d0d5dd!important;border-radius:50%!important;background:#fff!important;color:#344054!important;cursor:pointer!important;box-shadow:none!important}
.ctp-modal-close span,.ctp-search-clear span{display:block;width:14px;height:14px;position:relative}
.ctp-modal-close span::before,.ctp-modal-close span::after,.ctp-search-clear span::before,.ctp-search-clear span::after{content:"";position:absolute;left:6px;top:0;width:2px;height:14px;border-radius:2px;background:currentColor}
.ctp-modal-close span::before,.ctp-search-clear span::before{transform:rotate(45deg)}
.ctp-modal-close span::after,.ctp-search-clear span::after{transform:rotate(-45deg)}
.ctp-modal-close:hover{background:#f2f4f7!important;color:#101828!important}
.ctp-modal-close:focus-visible{outline:2px solid #2271b1!important;outline-offset:2px!important}
.ctp-search-clear{width:32px!important;height:32px!important;min-width:32px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#667085!important;cursor:pointer!important}
.ctp-search-clear:hover{background:#f2f4f7!important;color:#101828!important}

/* CMDB 0.2.3 - tabella più leggibile */
.ctp-cmdb-table{min-width:1080px;table-layout:fixed}
.ctp-cmdb-table th{white-space:normal;vertical-align:middle}
.ctp-cmdb-table td{white-space:nowrap;vertical-align:middle}
.ctp-cmdb-table .ctp-col-state{width:76px}
.ctp-cmdb-table .ctp-col-host{width:190px}
.ctp-cmdb-table .ctp-col-alias{width:170px}
.ctp-cmdb-table .ctp-col-ip{width:145px}
.ctp-cmdb-table .ctp-col-parent{width:185px}
.ctp-cmdb-table .ctp-col-type{width:155px}
.ctp-cmdb-table .ctp-col-folder{width:145px}
.ctp-cmdb-table .ctp-col-open{width:40px}
.ctp-cmdb-row td[data-ctp-field]:empty::after{content:"In caricamento…";color:#98a2b3;font-size:11px;font-style:italic}
.ctp-cmdb-row[data-ctp-enriched="1"] td[data-ctp-field]:empty::after{content:"—";font-style:normal}

/* CMDB 0.2.3 - configurazione host leggibile */
.ctp-config-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.ctp-config-group{min-width:0;border:1px solid #eaecf0;border-radius:9px;overflow:hidden;background:#fff}
.ctp-config-group h5{margin:0;padding:9px 11px;background:#f8fafc;border-bottom:1px solid #eaecf0;color:#344054;font-size:12px;font-weight:800}
.ctp-friendly-grid{display:grid;grid-template-columns:minmax(145px,42%) minmax(0,1fr);margin:0}
.ctp-friendly-grid dt,.ctp-friendly-grid dd{margin:0;padding:7px 9px;border-bottom:1px solid #f0f2f5;overflow-wrap:anywhere}
.ctp-friendly-grid dt{background:#fcfcfd;color:#475467;font-size:11px;font-weight:700}
.ctp-friendly-grid dd{background:#fff;color:#172033;font-size:12px}
.ctp-friendly-grid dt:nth-last-of-type(1),.ctp-friendly-grid dd:last-child{border-bottom:0}

/* CMDB 0.2.3 - inventario HW/SW leggibile */
.ctp-inventory-sections{display:grid;gap:10px;margin-top:14px}
.ctp-inventory-section{border:1px solid #e4e7ec;border-radius:9px;background:#fff;overflow:hidden}
.ctp-inventory-section>summary{padding:10px 12px;cursor:pointer;font-weight:800;color:#344054;background:#f8fafc;user-select:none}
.ctp-inventory-section[open]>summary{border-bottom:1px solid #e4e7ec}
.ctp-inventory-section-content{display:grid;gap:10px;padding:10px}
.ctp-inventory-depth-1{margin-left:10px}
.ctp-inventory-depth-2{margin-left:18px}
.ctp-inventory-depth-3,.ctp-inventory-depth-4{margin-left:24px}
.ctp-inventory-table-block h6{margin:3px 0 7px;font-size:12px;color:#475467}
.ctp-inventory-table-scroll{overflow:auto;border:1px solid #eaecf0;border-radius:7px}
.ctp-inventory-table{width:100%;border-collapse:collapse;min-width:620px;font-size:11px}
.ctp-inventory-table th{padding:7px 8px;background:#eef4f8;color:#344054;text-align:left;border-right:1px solid #dfe5eb;white-space:nowrap}
.ctp-inventory-table td{padding:7px 8px;border-top:1px solid #eaecf0;border-right:1px solid #eaecf0;vertical-align:top;overflow-wrap:anywhere}
.ctp-inventory-table th:last-child,.ctp-inventory-table td:last-child{border-right:0}


@media(max-width:760px){.ctp-config-groups{grid-template-columns:1fr;padding:10px}.ctp-friendly-grid{grid-template-columns:1fr}.ctp-friendly-grid dt{padding-bottom:2px;border-bottom:0}.ctp-friendly-grid dd{padding-top:2px}.ctp-inventory-depth-1,.ctp-inventory-depth-2,.ctp-inventory-depth-3,.ctp-inventory-depth-4{margin-left:0}}

.ctp-search-clear[hidden]{display:none!important}

/* CMDB 0.2.4 - contenimento nella larghezza del tema */
.ctp-portal,.ctp-view-card,.ctp-cmdb-search-panel,.ctp-toolbar-cmdb,.ctp-cmdb-table-wrap{box-sizing:border-box;max-width:100%;min-width:0}
.ctp-cmdb-table-wrap{display:block;width:100%;overflow-x:hidden}
.ctp-cmdb-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
.ctp-cmdb-table th,.ctp-cmdb-table td{box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-overflow:clip}
.ctp-cmdb-table .ctp-col-state{width:8%}
.ctp-cmdb-table .ctp-col-host{width:20%}
.ctp-cmdb-table .ctp-col-alias{width:17%}
.ctp-cmdb-table .ctp-col-ip{width:14%}
.ctp-cmdb-table .ctp-col-parent{width:18%}
.ctp-cmdb-table .ctp-col-type{width:13%}
.ctp-cmdb-table .ctp-col-services{width:7%}
.ctp-cmdb-table .ctp-col-open{width:3%}
.ctp-cmdb-table td[data-ctp-field="ip"],.ctp-cmdb-table .ctp-service-counts,.ctp-cmdb-table .ctp-open-cell{white-space:nowrap!important}

/* CMDB 0.2.4 - micro riepilogo servizi */
.ctp-service-counts{display:table-cell;text-align:left}
.ctp-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:28px;margin:1px 3px 1px 0;padding:2px 5px;border-radius:999px;font-size:9px;font-weight:800;line-height:1.35}
.ctp-count-pill.OK{background:#e9f7ee;color:#187a36}
.ctp-count-pill.WARN{background:#fff1b8;color:#735800}
.ctp-count-pill.CRIT{background:#ffe1e4;color:#a61b29}

/* CMDB 0.2.4 - riepilogo nei risultati ricerca */
.ctp-search-suggestion{grid-template-columns:auto minmax(0,1fr) auto}
.ctp-search-service-meta{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 auto}
.ctp-search-count{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}
.ctp-search-count.OK{background:#edf8f0;color:#187a36}
.ctp-search-count.WARN{background:#fff3c4;color:#725500}
.ctp-search-count.CRIT{background:#ffe4e6;color:#a61b29}

@media(max-width:900px){
  .ctp-cmdb-table .ctp-col-alias,.ctp-cmdb-table th:nth-child(3),.ctp-cmdb-table td:nth-child(3){display:none}
  .ctp-cmdb-table .ctp-col-host{width:24%}
  .ctp-cmdb-table .ctp-col-ip{width:17%}
  .ctp-cmdb-table .ctp-col-parent{width:22%}
  .ctp-cmdb-table .ctp-col-type{width:16%}
  .ctp-cmdb-table .ctp-col-services{width:9%}
  .ctp-cmdb-table .ctp-col-state{width:9%}
  .ctp-cmdb-table .ctp-col-open{width:3%}
}

@media(max-width:640px){
  .ctp-cmdb-table .ctp-col-parent,.ctp-cmdb-table th:nth-child(5),.ctp-cmdb-table td:nth-child(5){display:none}
  .ctp-cmdb-table .ctp-col-state{width:13%}
  .ctp-cmdb-table .ctp-col-host{width:31%}
  .ctp-cmdb-table .ctp-col-ip{width:22%}
  .ctp-cmdb-table .ctp-col-type{width:19%}
  .ctp-cmdb-table .ctp-col-services{width:11%}
  .ctp-cmdb-table .ctp-col-open{width:4%}
  .ctp-search-service-meta{display:none}
}

/* CMDB 0.2.4 - correzioni finali contenimento e suggerimenti */
.ctp-search-suggestion{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important}
.ctp-cmdb-browser,.ctp-cmdb-browser .ctp-view-card,.ctp-cmdb-browser .ctp-table-wrap,.ctp-cmdb-browser .ctp-cmdb-table-wrap{width:100%!important;max-width:100%!important;min-width:0!important}
.ctp-cmdb-browser .ctp-cmdb-table{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
.ctp-cmdb-browser .ctp-cmdb-table th,.ctp-cmdb-browser .ctp-cmdb-table td{padding:8px 9px!important;font-size:12px!important;line-height:1.25!important}
.ctp-cmdb-browser .ctp-cmdb-table td:nth-child(2){font-weight:700}
.ctp-cmdb-browser .ctp-table-wrap{overflow-x:clip!important}
@supports not (overflow:clip){.ctp-cmdb-browser .ctp-table-wrap{overflow-x:hidden!important}}


/* CMDB e monitoraggio 0.2.5 */
.ctp-btn-xls{background:#e8f3ec;color:#176b35;border-color:transparent}
.ctp-host-modal-actions,.ctp-inventory-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ctp-monitoring-search-panel{margin:18px 0 24px}
.ctp-monitor-search-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;color:var(--ctp-muted);font-size:12px}

/* Risultati CMDB compatti e tutti allineati a sinistra */
.ctp-search-suggestion{display:flex!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;gap:9px!important}
.ctp-search-suggestion-copy{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;flex:0 1 auto!important;min-width:0}
.ctp-search-suggestion-copy strong{min-width:175px;text-align:left}
.ctp-search-suggestion-copy small{display:inline-block;text-align:left;white-space:nowrap}
.ctp-search-suggestion-ip{color:#344054!important;font-weight:600}
.ctp-search-suggestion-type{color:#667085!important}
.ctp-search-service-meta{margin-left:0!important;justify-content:flex-start!important}

/* Tabella CMDB contenuta: Alias e colonna freccia rimosse */
.ctp-cmdb-table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
.ctp-cmdb-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
.ctp-cmdb-table .ctp-col-state{width:9%!important}
.ctp-cmdb-table .ctp-col-host{width:24%!important}
.ctp-cmdb-table .ctp-col-ip{width:18%!important}
.ctp-cmdb-table .ctp-col-parent{width:22%!important}
.ctp-cmdb-table .ctp-col-type{width:17%!important}
.ctp-cmdb-table .ctp-col-services{width:10%!important}
.ctp-cmdb-table th,.ctp-cmdb-table td{padding:8px 9px!important;overflow-wrap:anywhere!important;white-space:normal!important}
.ctp-cmdb-table td[data-ctp-field="ip"],.ctp-cmdb-table .ctp-service-counts{white-space:nowrap!important}
.ctp-count-link{text-decoration:none!important;transition:filter .12s,box-shadow .12s}
.ctp-count-link:hover{filter:brightness(.96);box-shadow:0 0 0 2px rgba(14,110,184,.10)}
.ctp-count-pill.OK{background:#eaf7ee;color:#177236}
.ctp-count-pill.WARN{background:#fff4cc;color:#755b00}
.ctp-count-pill.CRIT{background:#ffe7e9;color:#a61b29}

/* Stato cache: non è una progress bar globale */
.ctp-index-pill.is-loading::before{animation:ctp-pulse 1.1s ease-in-out infinite}
@keyframes ctp-pulse{0%,100%{opacity:.45}50%{opacity:1}}

@media(max-width:900px){
  .ctp-cmdb-table .ctp-col-parent,.ctp-cmdb-table th:nth-child(4),.ctp-cmdb-table td:nth-child(4){display:none}
  .ctp-cmdb-table .ctp-col-state{width:12%!important}.ctp-cmdb-table .ctp-col-host{width:29%!important}.ctp-cmdb-table .ctp-col-ip{width:23%!important}.ctp-cmdb-table .ctp-col-type{width:22%!important}.ctp-cmdb-table .ctp-col-services{width:14%!important}
  .ctp-search-suggestion-copy{flex-wrap:wrap!important}.ctp-search-suggestion-copy strong{min-width:140px}
}
@media(max-width:620px){
  .ctp-host-modal-actions{gap:5px}.ctp-host-modal-actions .ctp-btn{display:none}.ctp-inventory-actions{justify-content:stretch}.ctp-inventory-actions .ctp-btn{flex:1}
  .ctp-search-suggestion{align-items:flex-start!important;flex-wrap:wrap}.ctp-search-suggestion-copy{width:calc(100% - 52px)}.ctp-search-service-meta{padding-left:51px;width:100%}
  .ctp-cmdb-table .ctp-col-type,.ctp-cmdb-table th:nth-child(5),.ctp-cmdb-table td:nth-child(5){display:none}
  .ctp-cmdb-table .ctp-col-state{width:15%!important}.ctp-cmdb-table .ctp-col-host{width:35%!important}.ctp-cmdb-table .ctp-col-ip{width:31%!important}.ctp-cmdb-table .ctp-col-services{width:19%!important}
  .ctp-monitor-search-meta{flex-direction:column;align-items:flex-start}
}

@media(max-width:900px){.ctp-cmdb-table th:nth-child(3),.ctp-cmdb-table td:nth-child(3){display:table-cell!important}}

/* Cloud Task Business Platform 0.2.6 - host detail status and alerts */
.ctp-host-alerts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 14px}
.ctp-host-alert{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;font-size:12px;font-weight:800;text-decoration:none!important;border:1px solid transparent}
.ctp-host-alert.OK{background:#edf8f0;color:#177236;border-color:#ccebd5}
.ctp-host-alert.WARN{background:#fff7d6;color:#725500;border-color:#f4df8a}
.ctp-host-alert.CRIT{background:#ffe8ea;color:#a61b29;border-color:#f4bcc3}
.ctp-host-alert:hover{filter:brightness(.98);box-shadow:0 0 0 2px rgba(14,110,184,.08)}
.ctp-host-overview-item{border-left:4px solid #d0d5dd}
.ctp-host-overview-item.is-state-UP{background:#f2fbf5;border-left-color:#22a447}
.ctp-host-overview-item.is-state-DOWN,.ctp-host-overview-item.is-state-CRIT{background:#fff3f4;border-left-color:#dc3545}
.ctp-host-overview-item.is-state-UNREACH,.ctp-host-overview-item.is-state-UNKNOWN{background:#f6f3ff;border-left-color:#6f42c1}
.ctp-host-overview-item.is-type{background:#f2f8fd;border-left-color:#0e6eb8}
.ctp-host-overview-item.is-network{background:#f7f9fc;border-left-color:#7f8fa6}

/* Cloud Task Business Platform 0.2.6 - paginazione sopra e sotto la tabella */
.ctp-pagination-top{margin:2px 0 10px;padding-top:0;border-top:0;border-bottom:1px solid #eef1f4;padding-bottom:10px}
.ctp-pagination-bottom{margin-top:14px}
.ctp-pagination-top .ctp-pagination-info,.ctp-pagination-bottom .ctp-pagination-info{font-weight:600;color:#667085}

/* Cloud Task Business Platform 0.2.6 - header portale senza badge site duplicato */
.ctp-portal-header{align-items:flex-start}

@media(max-width:760px){
  .ctp-host-alerts{align-items:stretch;flex-direction:column}
  .ctp-host-alert{justify-content:center}
}


/* Cloud Task Business Platform 0.2.7 - collegamenti CMDB nel monitoraggio */
.ctp-monitor-host-ref{display:flex;align-items:center;gap:7px;min-width:0}
.ctp-monitor-host-ref>span{min-width:0;overflow-wrap:anywhere}
.ctp-cmdb-chip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:2px 7px;border-radius:999px;background:#e8f2fb;color:#0e6eb8!important;font-size:10px;font-weight:800;line-height:1.4;text-decoration:none!important}
.ctp-cmdb-chip:hover{background:#d7eafb;color:#095a98!important}
.ctp-monitor-host-context{display:flex;align-items:center;gap:8px;margin-top:8px;color:#475467;font-size:12px}
.ctp-monitor-filter-empty{margin-top:10px;background:#f7fbf8;border-color:#cfe9d6;color:#176b32}
.ctp-btn:disabled{opacity:.65;cursor:progress}

/* CMDB resta contenuto nella larghezza del portale */
.ctp-cmdb-table{min-width:0!important;width:100%!important;table-layout:fixed}
.ctp-cmdb-table th,.ctp-cmdb-table td{white-space:normal!important;overflow-wrap:anywhere}


/* Cloud Task Business Platform 0.2.8 - controlli visibilità e contesto cliente */
.ctp-inventory-actions [hidden]{display:none!important}
.ctp-host-alert[target="_blank"]::after{content:"↗";font-size:10px;opacity:.7;margin-left:2px}

/* Accesso utenti Cloud Task */
.ctp-login-card{max-width:520px;margin:30px auto;padding:24px;border:1px solid #d8dee8;border-radius:14px;background:#fff;box-sizing:border-box}
.ctp-login-card h3{margin-top:0}
.ctp-login-card label{display:block;font-weight:600;margin-bottom:6px}
.ctp-login-card input[type="text"],.ctp-login-card input[type="password"]{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px}
.ctp-login-card .login-submit input,.ctp-login-card .ctp-btn-primary{display:inline-block;border:0;border-radius:8px;background:#0e6eb8;color:#fff;text-decoration:none;padding:10px 18px;cursor:pointer}
.ctp-login-links{margin-bottom:0}

/* Cloud Task Business Platform - dashboard servizi */
.ctp-portal-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:24px 0}
.ctp-portal-module-card{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid #d7dfe9;border-radius:14px;background:#fff;text-decoration:none!important;color:#101828!important;box-shadow:0 2px 8px rgba(16,24,40,.03)}
.ctp-portal-module-card:hover{border-color:#0e6eb8;box-shadow:0 8px 24px rgba(16,24,40,.08)}
.ctp-portal-module-card strong{font-size:20px}.ctp-portal-module-card span:last-child{color:#667085;line-height:1.45}.ctp-module-kicker{font-size:11px;letter-spacing:.08em;color:#0e6eb8;font-weight:700}

/* Cloud Task Business Platform - supporto Jira */
.ctp-support-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);gap:18px;margin-top:18px}.ctp-support-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.ctp-support-list{display:flex;flex-direction:column;gap:8px}.ctp-support-item{width:100%;text-align:left;border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:12px;display:grid;gap:4px;cursor:pointer}.ctp-support-item:hover{border-color:#0e6eb8;background:#f8fbff}.ctp-support-key{font-size:12px;color:#0e6eb8;font-weight:700}.ctp-support-status{font-size:12px;color:#667085}.ctp-support-detail{min-height:340px}.ctp-support-empty{color:#667085;padding:24px}.ctp-support-request-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.ctp-support-request-head h3{margin:0}.ctp-support-fields,.ctp-support-comments{display:grid;gap:10px}.ctp-support-comment{padding:12px;border:1px solid #e4e7ec;border-radius:10px;background:#fff}.ctp-support-comment-meta{font-size:12px;color:#667085;margin-bottom:6px}.ctp-support-comment-form textarea,.ctp-support-new-form textarea,.ctp-support-new-form input,.ctp-support-new-form select{width:100%}.ctp-support-new-form{display:grid;gap:14px}.ctp-support-new-form label{display:grid;gap:6px;font-weight:600}.ctp-support-new-dialog{max-width:760px}.ctp-support-form-status{margin-left:10px;font-size:13px;color:#667085}

/* Cloud Task Business Platform - registrazione B2B */
.ctp-b2b-registration{max-width:1040px;margin:0 auto;padding:24px;border:1px solid #d7dfe9;border-radius:16px;background:#fff}.ctp-b2b-registration h2{margin-top:4px}.ctp-b2b-form{display:grid;gap:20px}.ctp-b2b-form fieldset{border:1px solid #e2e8f0;border-radius:12px;padding:18px}.ctp-b2b-form legend{font-weight:700;padding:0 8px}.ctp-b2b-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ctp-b2b-form label{display:grid;gap:6px;font-weight:600}.ctp-b2b-form input,.ctp-b2b-form select,.ctp-b2b-form textarea{width:100%;box-sizing:border-box}.ctp-b2b-wide{margin-top:14px}.ctp-consent{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px!important}.ctp-consent input{width:auto!important;margin-top:4px}
@media(max-width:800px){.ctp-support-grid,.ctp-b2b-grid{grid-template-columns:1fr}}

/* Cloud Task Business Platform 0.3.0 - campi dinamici Request Type Jira */
.ctp-support-extra-fields{display:grid;gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.ctp-support-field-hint{font-size:12px;color:#667085}
.ctp-support-jira-field{display:grid;gap:6px;font-weight:600}
.ctp-support-jira-field small{font-weight:400;color:#667085;line-height:1.35}
.ctp-support-jira-field input,.ctp-support-jira-field select,.ctp-support-jira-field textarea{width:100%;box-sizing:border-box}

/* Cloud Task Business Platform 0.3.1 - richieste e incident Jira */
.ctp-support-meta{font-size:11px;font-weight:700;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.ctp-support-item[data-ctp-support-kind="incident"]{border-left:4px solid #0e6eb8;background:#fbfdff}
.ctp-support-item[data-ctp-support-kind="incident"] .ctp-support-key{color:#095a98}
/* Supporto - viste richieste, incident monitoraggio e storico */
.ctp-support-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0}
.ctp-support-tabs{display:flex;gap:8px;flex-wrap:wrap}
.ctp-support-tab{appearance:none;border:1px solid #d0d7e2;background:#fff;color:#344054;border-radius:999px;padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}
.ctp-support-tab:hover{border-color:#0e6eb8;color:#0e6eb8}
.ctp-support-tab.is-active{background:#0e6eb8;border-color:#0e6eb8;color:#fff}
.ctp-support-list-status{font-size:13px;color:#667085;margin-bottom:10px}
.ctp-support-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #e4e7ec}
.ctp-support-pagination .ctp-btn:disabled{cursor:not-allowed}
.ctp-btn-secondary{background:#fff;color:#344054;border-color:#d0d5dd}
@media(max-width:760px){.ctp-support-toolbar{align-items:stretch}.ctp-support-toolbar>.ctp-btn{width:100%}.ctp-support-tabs{display:grid;grid-template-columns:1fr}.ctp-support-tab{width:100%}.ctp-support-pagination{flex-wrap:wrap;justify-content:center}}

/* Dashboard servizi - stato attivo e non attivo */
.ctp-portal-module-card.is-active{background:#f4fbf7;border-color:#bfe4cb}
.ctp-portal-module-card.is-active .ctp-module-kicker{color:#177236}
.ctp-portal-module-card.is-inactive{background:#f7f8fa;border-color:#e4e7ec;color:#667085!important;box-shadow:none;cursor:default}
.ctp-portal-module-card.is-inactive .ctp-module-kicker{color:#98a2b3}
.ctp-portal-module-card.is-inactive strong{color:#475467}
.ctp-portal-module-card.is-inactive:hover{border-color:#e4e7ec;box-shadow:none}

/* Supporto ITSM - console e descrizione */
.ctp-support-portal-header{margin-bottom:8px}
.ctp-support-portal-header p{max-width:900px;color:#667085}
.ctp-support-console{display:grid;gap:16px;margin-top:18px}
.ctp-support-actions{display:flex;align-items:stretch;justify-content:space-between;gap:14px}
.ctp-support-tabs{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px;flex:1}
.ctp-support-tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border-radius:12px;padding:12px 14px;text-align:left}
.ctp-support-tab span{font-weight:800}
.ctp-support-tab small{font-size:11px;font-weight:500;opacity:.78}
.ctp-support-tab.is-active small{color:#e7f3fc}
.ctp-support-search-panel{display:grid;gap:6px}
.ctp-support-list-card{padding:16px!important}
.ctp-support-list-full{gap:7px}

/* Supporto ITSM - righe ticket a piena larghezza */
.ctp-support-item-row{grid-template-columns:minmax(130px,.55fr) minmax(320px,2.4fr) minmax(145px,.7fr) minmax(125px,.65fr) 20px;align-items:center;gap:14px;padding:13px 15px;border-radius:10px}
.ctp-support-item-row>span{min-width:0}
.ctp-support-row-key,.ctp-support-row-summary,.ctp-support-row-date{display:flex;flex-direction:column;gap:3px;min-width:0}
.ctp-support-row-key strong{color:#0e6eb8;font-size:13px}
.ctp-support-row-key small,.ctp-support-row-summary small,.ctp-support-row-date small{font-size:11px;color:#667085;font-weight:500}
.ctp-support-row-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#101828}
.ctp-support-row-date strong{font-size:12px;color:#475467;font-weight:650}
.ctp-support-row-arrow{font-size:24px;color:#98a2b3;text-align:right}
.ctp-support-item-row:hover .ctp-support-row-arrow{color:#0e6eb8;transform:translateX(2px)}
.ctp-support-status{display:inline-flex;justify-content:center;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:#eef6fc;color:#0b5d97;font-weight:750;text-align:center}

/* Supporto ITSM - popup grande di gestione ticket */
.ctp-support-detail-dialog{width:min(1180px,calc(100vw - 36px))!important;max-width:1180px!important;max-height:92vh}
.ctp-support-detail-modal .ctp-host-modal-body{padding:20px 24px 28px;overflow:auto}
.ctp-support-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #e4e7ec}
.ctp-support-detail-head h2{margin:5px 0 3px;font-size:27px;line-height:1.2}
.ctp-support-detail-subtitle{color:#667085;font-weight:650}
.ctp-support-status-large{font-size:13px;padding:7px 12px;white-space:nowrap}
.ctp-support-detail-section{margin-top:18px;padding:18px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}
.ctp-support-detail-section h3{margin:0 0 12px;font-size:18px}
.ctp-support-detail-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e4e7ec;border-radius:10px;overflow:hidden}
.ctp-support-detail-row{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);gap:10px;padding:10px 12px;border-bottom:1px solid #eef1f4}
.ctp-support-detail-row:nth-child(odd){background:#f8fafc}
.ctp-support-detail-row span{font-size:12px;color:#667085}
.ctp-support-detail-row strong{font-size:13px;overflow-wrap:anywhere}
.ctp-support-description{padding:14px;border-radius:9px;background:#f8fafc;line-height:1.55;white-space:normal}
.ctp-support-host-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;padding:10px 12px;border-radius:10px;background:#f2f8fd}
.ctp-support-host-link>span{font-size:12px;font-weight:700;color:#475467}
.ctp-support-transition-box{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;background:#f5faff;border-color:#cfe5f5}
.ctp-support-transition-box>div p{margin:0}
.ctp-support-transition-box form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.ctp-support-transition-box form label{display:grid;gap:5px;font-weight:650;min-width:260px}
.ctp-support-transition-box select{width:100%}
.ctp-support-comment-form{margin-top:14px;display:grid;gap:10px}
.ctp-support-comment-form label{display:grid;gap:6px;font-weight:650}
.ctp-support-comment-form textarea{width:100%;box-sizing:border-box}

/* Registrazione B2B - form più compatto */
.ctp-b2b-registration{max-width:1180px;padding:22px 26px}
.ctp-b2b-intro{max-width:920px;margin-bottom:18px;color:#667085}
.ctp-b2b-form{gap:14px}
.ctp-b2b-form fieldset{padding:14px 16px}
.ctp-b2b-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}
.ctp-b2b-grid-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.ctp-b2b-form label{gap:4px;font-size:13px}
.ctp-b2b-form input,.ctp-b2b-form select,.ctp-b2b-form textarea{min-height:40px;padding:7px 9px}
.ctp-b2b-multiselect select{min-height:138px;padding:4px}
.ctp-b2b-multiselect small{font-weight:400;color:#667085}
.ctp-b2b-interest-flags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.ctp-b2b-choice{display:flex!important;align-items:center;grid-template-columns:none!important;gap:9px!important;padding:11px 12px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc;cursor:pointer}
.ctp-b2b-choice input[type="checkbox"]{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;flex:0 0 18px}
.ctp-basket-icon{font-size:19px;line-height:1}
.ctp-demo-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:#0e6eb8;color:#fff;font-size:10px}
.ctp-biancorossa{display:inline-grid;grid-template-columns:1fr 1fr;width:24px;height:15px;border:1px solid #cfd5dc;border-radius:3px;overflow:hidden;margin-left:auto;background:#fff}
.ctp-biancorossa i:first-child{background:#fff}.ctp-biancorossa i:last-child{background:#c9202f}
.ctp-b2b-submit{width:100%;justify-content:center}

/* Registrazione B2B - checkbox privacy nativa e cliccabile */
.ctp-consent{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:11px 12px;border-left:4px solid #0e6eb8;background:#f7fbff;border-radius:8px;font-weight:650}
.ctp-consent input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;position:static!important;opacity:1!important;visibility:visible!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:1px 0 0!important;padding:0!important;border:initial!important;box-shadow:none!important;accent-color:#0e6eb8;cursor:pointer}
.ctp-consent span{line-height:1.4}

/* Header sito - usa quasi tutta la larghezza sulle pagine Cloud Task Business Platform */
body.ctp-portal-page header.wp-block-template-part>.wp-block-group,
body.ctp-portal-page header.wp-block-template-part .wp-block-group.alignwide,
body.ctp-portal-page #masthead .ast-container,
body.ctp-portal-page .site-header .container,
body.ctp-portal-page .site-header .site-header-inner,
body.ctp-portal-page .site-primary-header-wrap[data-section="section-primary-header-builder"]{max-width:none!important;width:100%!important;padding-left:18px!important;padding-right:18px!important}

/* Header sito - avvicina il menu al logo e lascia spazio alle voci */
body.ctp-portal-page .site-primary-header-wrap .ast-builder-grid-row{grid-template-columns:auto minmax(0,1fr) auto!important;column-gap:20px!important}
body.ctp-portal-page .site-header-primary-section-center{justify-content:flex-start!important;margin-left:0!important;min-width:0!important}
body.ctp-portal-page header .wp-block-navigation,
body.ctp-portal-page .main-navigation,
body.ctp-portal-page .ast-builder-menu-1{margin-left:18px!important;margin-right:auto!important;justify-content:flex-start!important}
body.ctp-portal-page header .wp-block-navigation__container,
body.ctp-portal-page .main-header-menu{gap:clamp(14px,1.45vw,26px)!important}

/* Supporto e registrazione - adattamento responsive */
@media(max-width:980px){
  .ctp-support-actions{flex-direction:column}.ctp-support-tabs{grid-template-columns:1fr}.ctp-support-actions>.ctp-btn{width:100%}
  .ctp-support-item-row{grid-template-columns:120px minmax(0,1fr) 120px 20px}.ctp-support-row-date{display:none}
  .ctp-support-detail-table{grid-template-columns:1fr}.ctp-support-transition-box{align-items:stretch;flex-direction:column}.ctp-support-transition-box form{align-items:stretch}
  .ctp-b2b-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .ctp-support-item-row{grid-template-columns:1fr auto;padding:12px}.ctp-support-row-key,.ctp-support-row-summary{grid-column:1}.ctp-support-row-date{display:none}.ctp-support-status{grid-column:2;grid-row:1/3}.ctp-support-row-arrow{display:none}
  .ctp-support-detail-dialog{width:calc(100vw - 16px)!important}.ctp-support-detail-modal .ctp-host-modal-body{padding:14px}.ctp-support-detail-head{flex-direction:column}.ctp-support-detail-row{grid-template-columns:1fr}
  .ctp-b2b-grid-compact,.ctp-b2b-grid-options,.ctp-b2b-interest-flags{grid-template-columns:1fr}
}

/* Header sito - compatibilità con Kadence, Blocksy e GeneratePress */
body.ctp-portal-page .site-header-row-container-inner>.site-container,
body.ctp-portal-page .site-header .inside-header,
body.ctp-portal-page header [data-row*="middle"]>.ct-container,
body.ctp-portal-page header [data-row*="middle"]>div{max-width:none!important;width:100%!important;padding-left:18px!important;padding-right:18px!important}
body.ctp-portal-page .site-main-header-inner-wrap{grid-template-columns:auto minmax(0,1fr) auto!important;column-gap:20px!important}
body.ctp-portal-page .site-header-main-section-center,
body.ctp-portal-page header [data-column="middle"]{justify-content:flex-start!important;margin-left:0!important;min-width:0!important}
body.ctp-portal-page .inside-header>.main-navigation{margin-left:20px!important;margin-right:auto!important}


/* v0.3.5 - entitlement visibile ma accessibile agli operatori Cloud Task */
.ctp-portal-module-card.is-operator{background:#f4f8fc;border-color:#b9d7ed;color:#17324d;text-decoration:none}
.ctp-portal-module-card.is-operator .ctp-module-kicker{color:#446982}
.ctp-portal-module-card.is-operator small{display:block;margin-top:8px;color:#0e6eb8;font-weight:700}
.ctp-portal-module-card.is-operator:hover{border-color:#0e6eb8;box-shadow:0 7px 18px rgba(14,110,184,.08)}

/* v0.3.5 - gruppi multi-scelta B2B con checkbox espliciti */
.ctp-b2b-grid-options{align-items:start}
.ctp-b2b-check-group{margin:0!important;padding:10px 12px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;background:#fbfcfe}
.ctp-b2b-check-group legend{font-size:13px;font-weight:700;padding:0 5px}
.ctp-b2b-check-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.ctp-b2b-check-option{display:flex!important;align-items:center!important;grid-template-columns:none!important;gap:7px!important;font-weight:500!important;cursor:pointer;min-width:0}
.ctp-b2b-form input[type="checkbox"],.ctp-b2b-check-option input[type="checkbox"],.ctp-b2b-choice input[type="checkbox"],.ctp-consent input[type="checkbox"]{-webkit-appearance:checkbox!important;appearance:auto!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;padding:0!important;margin:0!important;position:static!important;opacity:1!important;clip:auto!important;transform:none!important;accent-color:#0e6eb8}
.ctp-b2b-choice:before,.ctp-b2b-choice:after,.ctp-b2b-check-option:before,.ctp-b2b-check-option:after,.ctp-consent:before,.ctp-consent:after{content:none!important;display:none!important}
.ctp-basket-icon{position:relative;display:inline-block;width:20px;height:20px;min-width:20px;border-radius:50%;background:#ef9b25;border:1px solid #b86d00;box-sizing:border-box}
.ctp-basket-icon:before{content:""!important;display:block!important;position:absolute!important;left:8px!important;top:0!important;width:2px!important;height:18px!important;background:#7a4900!important;transform:rotate(18deg)!important;transform-origin:center!important}
.ctp-basket-icon:after{content:""!important;display:block!important;position:absolute!important;left:1px!important;top:8px!important;width:16px!important;height:2px!important;background:#7a4900!important;transform:rotate(-10deg)!important}
.ctp-biancorossa{display:inline-grid!important;grid-template-columns:1fr 1fr!important;width:24px!important;height:16px!important;overflow:hidden!important;border:1px solid #d0d5dd!important;border-radius:2px!important;margin-left:auto!important;background:#fff!important}
.ctp-biancorossa i:first-child{background:#fff!important}.ctp-biancorossa i:last-child{background:#d62035!important}
.ctp-demo-icon{position:relative;display:inline-flex;width:21px;height:21px;min-width:21px;border-radius:50%;background:#0e6eb8}
.ctp-demo-icon:after{content:""!important;display:block!important;position:absolute!important;left:8px!important;top:6px!important;border-left:7px solid #fff!important;border-top:5px solid transparent!important;border-bottom:5px solid transparent!important}
.ctp-consent{cursor:pointer}
@media(max-width:760px){.ctp-b2b-check-options{grid-template-columns:1fr}}
/* v0.3.5 - neutralizza icone checkbox aggiunte dal tema */
.ctp-b2b-form input[type="checkbox"]:before,.ctp-b2b-form input[type="checkbox"]:after{content:none!important;display:none!important}


/* Supporto ITSM - conteggi e paginazione superiore/inferiore */
.ctp-support-counts{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}
.ctp-support-count{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:9px 13px;border:1px solid #d9e2ec;border-radius:11px;background:#f8fafc}
.ctp-support-count small{font-size:11px;font-weight:750;color:#475467}.ctp-support-count strong{font-size:20px;line-height:1}
.ctp-support-count.is-user{background:#f1f8fd;border-color:#c9e3f5}.ctp-support-count.is-user strong{color:#0e6eb8}
.ctp-support-count.is-monitor{background:#fff8e8;border-color:#f2d28b}.ctp-support-count.is-monitor strong{color:#9b6500}
.ctp-support-count.is-closed{background:#eef9f2;border-color:#bfe4ca}.ctp-support-count.is-closed strong{color:#18733b}
.ctp-support-count.is-total{background:#f4f4f7;border-color:#d9d9e2}.ctp-support-count.is-total strong{color:#344054}
.ctp-support-pagination-top{margin:0 0 12px;padding:0 0 12px;border-top:0;border-bottom:1px solid #e4e7ec}
.ctp-support-pagination-bottom{margin-top:12px}
@media(max-width:760px){.ctp-support-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.3.8 - SLA Jira nelle righe Supporto */
.ctp-support-item-row{grid-template-columns:minmax(110px,.55fr) minmax(260px,1.8fr) minmax(120px,.65fr) minmax(145px,.8fr) minmax(145px,.8fr) minmax(120px,.65fr) minmax(120px,.65fr) 18px;gap:10px;padding:12px 13px}
.ctp-support-row-sla{display:flex;flex-direction:column;gap:4px;min-width:0}
.ctp-support-row-sla>small{font-size:10px;color:#667085;font-weight:600}
.ctp-sla-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:24px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;line-height:1.2;background:#f2f4f7;color:#475467;border:1px solid #e4e7ec;white-space:normal}
.ctp-sla-badge.is-running{background:#eef7ff;color:#075b9c;border-color:#c5def2}
.ctp-sla-badge.is-paused{background:#fff7e8;color:#8a5b00;border-color:#efd18d}
.ctp-sla-badge.is-respected{background:#eef9f2;color:#18733b;border-color:#bfe4ca}
.ctp-sla-badge.is-breached{background:#fff0f1;color:#b42318;border-color:#f4c2c7}
.ctp-sla-badge.is-missing,.ctp-sla-badge.is-loading{background:#f7f8fa;color:#667085;border-color:#e4e7ec}
.ctp-support-sla-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ctp-support-sla-grid>div{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc}
.ctp-support-sla-grid small{font-size:11px;font-weight:700;color:#667085}.ctp-support-sla-grid strong{font-size:13px;color:#344054}

/* v0.3.8 - pagina report SLA */
.ctp-sla-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:18px 0;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.ctp-sla-filter label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#475467}.ctp-sla-filter input{min-height:40px}
.ctp-sla-report-status{margin:10px 0 14px;color:#667085;font-size:13px}
.ctp-sla-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ctp-sla-report-card{padding:18px;border:1px solid #d9e2ec;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.04)}
.ctp-sla-report-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ctp-sla-report-card-head small{font-size:10px;font-weight:800;letter-spacing:.08em;color:#667085}.ctp-sla-report-card-head h3{margin:3px 0 2px;font-size:21px}.ctp-sla-report-card-head span{font-size:12px;color:#667085}.ctp-sla-report-card-head>strong{font-size:30px;color:#0e6eb8}
.ctp-sla-report-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:16px}.ctp-sla-report-stats>span{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px;border-radius:10px}.ctp-sla-report-stats small{font-size:11px;font-weight:700}.ctp-sla-report-stats strong{font-size:18px}.ctp-sla-report-stats .is-ok{background:#eef9f2;color:#18733b}.ctp-sla-report-stats .is-breach{background:#fff0f1;color:#b42318}.ctp-sla-report-stats .is-neutral{background:#f2f4f7;color:#475467}


/* v0.3.10 - filtri rapidi e report SLA esportabile */
.ctp-sla-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0 0}
.ctp-sla-preset{appearance:none;border:1px solid #cfd8e3;border-radius:999px;background:#fff;color:#344054;padding:8px 13px;font:700 12px/1.2 inherit;cursor:pointer;transition:.16s ease}
.ctp-sla-preset:hover{border-color:#8dbbdc;background:#f5faff;color:#075b9c}.ctp-sla-preset.is-active{background:#0e6eb8;color:#fff;border-color:#0e6eb8;box-shadow:0 2px 7px rgba(14,110,184,.18)}
.ctp-sla-report-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ctp-sla-report-actions .ctp-btn[disabled]{opacity:.48;cursor:not-allowed}
.ctp-sla-filter-note{margin:-8px 0 14px;color:#667085;font-size:11px;line-height:1.45}
.ctp-sla-distribution{display:flex;height:10px;margin-top:14px;overflow:hidden;border-radius:999px;background:#eef1f5}.ctp-sla-distribution span{display:block;min-width:0}.ctp-sla-distribution .is-ok{background:#24a148}.ctp-sla-distribution .is-breach{background:#d92d20}.ctp-sla-distribution .is-neutral{background:#98a2b3}
.ctp-sla-report-card-note{display:block;margin-top:7px;color:#667085;font-size:10px}

/* v0.3.8 - centro notifiche operatori Cloud Task */
.ctp-operator-notifications{position:fixed;right:20px;bottom:20px;z-index:100000;font-family:inherit}
.ctp-notification-toggle{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border:0;border-radius:50%;background:#0e6eb8;color:#fff;box-shadow:0 10px 28px rgba(15,48,77,.28);cursor:pointer}
.ctp-notification-toggle svg{width:24px;height:24px;fill:currentColor}.ctp-notification-badge{position:absolute;right:-3px;top:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;font-size:10px;font-weight:800;line-height:20px;border:2px solid #fff}
.ctp-notification-drawer{position:absolute;right:0;bottom:64px;width:min(460px,calc(100vw - 28px));max-height:min(72vh,680px);overflow:hidden;border:1px solid #d0d9e4;border-radius:14px;background:#fff;box-shadow:0 18px 55px rgba(16,24,40,.25)}
.ctp-notification-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#0e6eb8;color:#fff}.ctp-notification-head>div{display:flex;flex-direction:column;gap:2px}.ctp-notification-head span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;opacity:.85}.ctp-notification-head strong{font-size:18px}.ctp-notification-head button{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.ctp-notification-list{display:grid;gap:8px;max-height:calc(min(72vh,680px) - 66px);overflow:auto;padding:10px;background:#f7f9fc}
.ctp-notification-card{display:grid;gap:7px;padding:11px;border:1px solid #dce3eb;border-radius:11px;background:#fff}.ctp-notification-card.is-new,.ctp-notification-card.is-reminder_due{border-color:#f0b7b4;background:#fff8f8}.ctp-notification-card.is-ack{opacity:.72}.ctp-notification-card-top,.ctp-notification-card-meta,.ctp-notification-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.ctp-notification-card-top span{font-size:11px;font-weight:800;color:#0e6eb8}.ctp-notification-card-top small{font-size:10px;font-weight:700;color:#667085}.ctp-notification-card>strong{font-size:13px;color:#101828}.ctp-notification-card-meta{font-size:11px;color:#667085}.ctp-notification-card-actions{justify-content:flex-start}.ctp-notification-card-actions .ctp-btn{font-size:11px;padding:6px 9px;min-height:30px}
.ctp-notification-toasts{position:fixed;right:20px;top:22px;display:grid;gap:9px;width:min(390px,calc(100vw - 40px));pointer-events:none;z-index:100001}.ctp-notification-toast{display:grid;gap:4px;padding:13px 15px;border-left:5px solid #0e6eb8;border-radius:10px;background:#fff;box-shadow:0 12px 36px rgba(16,24,40,.24);pointer-events:auto;animation:ctpNotifyIn .2s ease-out}.ctp-notification-toast small{font-size:10px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}.ctp-notification-toast strong{font-size:15px;color:#0e6eb8}.ctp-notification-toast span{font-size:13px;color:#344054}.ctp-notification-toast a{font-size:12px;font-weight:800;color:#0e6eb8}
@keyframes ctpNotifyIn{from{transform:translateY(-8px);opacity:0}to{transform:translateY(0);opacity:1}}

@media(max-width:1180px){
  .ctp-support-item-row{grid-template-columns:105px minmax(220px,1.5fr) 115px minmax(125px,.8fr) minmax(125px,.8fr) 115px 18px}.ctp-support-row-date.is-closed{display:none}
}
@media(max-width:900px){
  .ctp-support-item-row{grid-template-columns:100px minmax(0,1fr) minmax(130px,.8fr) minmax(130px,.8fr) 110px 18px}.ctp-support-row-date{display:none!important}
  .ctp-support-sla-grid,.ctp-sla-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .ctp-support-item-row{grid-template-columns:1fr auto!important}.ctp-support-row-key,.ctp-support-row-summary,.ctp-support-row-sla{grid-column:1}.ctp-support-row-sla{margin-top:3px}.ctp-support-status{grid-column:2;grid-row:1/3}.ctp-support-row-arrow{display:none}.ctp-support-row-date{display:none!important}
  .ctp-support-sla-grid,.ctp-sla-report-grid,.ctp-sla-report-stats{grid-template-columns:1fr}.ctp-notification-drawer{width:calc(100vw - 24px)}.ctp-operator-notifications{right:12px;bottom:12px}
}

/* Moduli Jira nel supporto Cloud Task */
.ctp-support-fields-title{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#667085;margin-bottom:2px}.ctp-support-form-head{display:grid;gap:2px;margin-top:4px;padding-top:12px;border-top:1px solid #dbe4ec}.ctp-support-form-head strong{font-size:15px;color:#142033}.ctp-support-form-head small{font-weight:400;color:#667085}.ctp-support-form-question{display:grid;gap:6px}.ctp-support-form-question-title{font-weight:600;color:#24364b}.ctp-support-form-question-description{font-weight:400;color:#667085;line-height:1.4}.ctp-support-form-question input,.ctp-support-form-question select,.ctp-support-form-question textarea{width:100%;box-sizing:border-box}.ctp-support-form-choices{display:grid;gap:7px;padding:8px 0}.ctp-support-form-choice{display:flex!important;grid-template-columns:none!important;align-items:center;gap:9px!important;font-weight:400!important}.ctp-support-form-choice input{width:auto!important;margin:0}.ctp-support-form-note{padding:10px 12px;border-radius:8px;background:#eef5f8;color:#496273;font-size:13px;line-height:1.4}.ctp-support-form-note.is-warning{background:#fff7e6;color:#73510b}

/* v0.4.7 - Anteprima portale cliente per operatori Cloud Task */
.ctp-customer-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:11px 14px;border:1px solid #bfd0db;border-radius:11px;background:#f5f9fb;color:#2d4a5e}.ctp-customer-preview-banner>div{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}.ctp-customer-preview-banner strong{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#527489}.ctp-customer-preview-banner span{font-size:13px}

/* v0.4.7 - Popup nuova richiesta compatto e più leggibile */
.ctp-support-new-dialog{width:min(1060px,calc(100vw - 28px))!important;max-width:1060px!important;max-height:94vh;border-radius:16px;overflow:hidden;box-shadow:0 24px 70px rgba(20,38,55,.28)}
.ctp-support-new-header{padding:16px 20px!important;background:linear-gradient(135deg,#f8fbfd 0%,#eef4f7 100%);border-bottom:1px solid #dce5eb}.ctp-support-new-header h3{margin:2px 0 3px;font-size:23px;color:#18364c}.ctp-support-new-header p{margin:0;color:#667d8f;font-size:12px}.ctp-support-new-body{padding:14px 16px 0!important;background:#f4f7f9;overflow:auto}.ctp-support-new-form{gap:10px!important}.ctp-support-new-card{padding:12px 13px;border:1px solid #dce5eb;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(24,48,68,.035)}.ctp-support-new-card-head{display:flex;align-items:center;gap:9px;margin-bottom:9px}.ctp-support-new-card-head>div{display:flex;flex-direction:column;gap:1px}.ctp-support-new-card-head strong{font-size:14px;color:#1b354a}.ctp-support-new-card-head small{font-size:10.5px;color:#74889a}.ctp-support-step{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:8px;background:#7898ad;color:#fff;font-size:11px;font-weight:850}
.ctp-support-new-footer{position:sticky;bottom:0;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -16px;padding:11px 16px 12px;border-top:1px solid #dce5eb;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}.ctp-support-new-footer>div{display:flex;gap:8px}.ctp-support-form-status{margin:0!important;color:#607486;font-size:12px}

/* v0.4.7 - Menu dei tipi richiesta organizzato per categorie Jira */
.ctp-support-request-type-native{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important}.ctp-support-type-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:235px;overflow:auto;padding:1px 3px 1px 1px}.ctp-support-type-group{border:1px solid #e1e8ee;border-radius:10px;overflow:hidden;background:#fbfcfd}.ctp-support-type-group-title{padding:7px 10px;background:#f0f4f7;color:#587185;font-size:9.5px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.ctp-support-type-group-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px}.ctp-support-type-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:#fff;color:#243d50;text-align:left;font-size:11.5px;font-weight:650;line-height:1.25;cursor:pointer}.ctp-support-type-choice:hover{border-color:#c7d8e3;background:#f5f9fb;color:#486a80}.ctp-support-type-choice.is-active{border-color:#7898ad;background:#7898ad;color:#fff}.ctp-support-type-choice svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.72}

/* v0.4.7 - Campi Jira Forms e sezioni condizionali */
.ctp-support-extra-fields{display:grid;gap:9px}.ctp-support-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 11px}.ctp-support-fields-title,.ctp-support-form-head{grid-column:1/-1}.ctp-support-form-head{margin-top:0!important;padding-top:8px!important}.ctp-support-form-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 11px;padding:9px;border:1px solid #e6ebf0;border-radius:9px;background:#fbfcfd}.ctp-support-form-section[hidden]{display:none!important}.ctp-support-form-section-head{grid-column:1/-1;font-size:11px;font-weight:800;color:#526b7e;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e8edf1;padding-bottom:6px}.ctp-support-form-question{min-width:0;align-content:start}.ctp-support-form-question[hidden]{display:none!important}.ctp-support-form-question[data-ctp-form-type="tl"],.ctp-support-form-question[data-ctp-form-type="rt"],.ctp-support-form-question[data-ctp-form-type="pg"],.ctp-support-form-question[data-ctp-form-type="cm"],.ctp-support-form-question[data-ctp-form-type="cs"]{grid-column:1/-1}.ctp-support-form-question-title{font-size:11.5px}.ctp-support-form-question-description{font-size:10.5px}.ctp-support-form-question input,.ctp-support-form-question select,.ctp-support-form-question textarea,.ctp-support-base-field input,.ctp-support-base-field textarea{min-height:37px;padding:8px 9px;border:1px solid #ccd8e2;border-radius:8px;background:#fff;font:inherit;font-size:12px;outline:none}.ctp-support-form-question textarea,.ctp-support-base-field textarea{min-height:76px}.ctp-support-form-question input:focus,.ctp-support-form-question select:focus,.ctp-support-form-question textarea:focus,.ctp-support-base-field input:focus,.ctp-support-base-field textarea:focus{border-color:#7898ad;box-shadow:0 0 0 3px rgba(120,152,173,.14)}.ctp-support-form-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:3px 0}.ctp-support-form-choice{min-height:32px;padding:6px 8px;border:1px solid #e1e8ee;border-radius:8px;background:#fff}.ctp-support-form-choice:hover{background:#f5f9fb;border-color:#cbdbe5}

/* v0.4.7 - Richiesta base e ricerca CMDB in tempo reale */
.ctp-support-base-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 11px}.ctp-support-base-field{display:grid;gap:4px;font-size:11.5px;font-weight:700;color:#425d71}.ctp-support-description-field{grid-column:1/-1}.ctp-support-description-field textarea{min-height:82px;resize:vertical}.ctp-support-asset-field{position:relative}.ctp-support-asset-field>small{font-size:9.5px;font-weight:400;color:#75899a}.ctp-support-asset-picker{position:relative}.ctp-support-asset-search-shell{position:relative;display:flex;align-items:center;border:1px solid #ccd8e2;border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}.ctp-support-asset-search-shell:focus-within{border-color:#7898ad;box-shadow:0 0 0 3px rgba(120,152,173,.14)}.ctp-support-asset-search-shell input{border:0!important;box-shadow:none!important;padding-left:31px!important;padding-right:34px!important;min-height:37px!important}.ctp-support-asset-search-icon{position:absolute;left:10px;top:50%;transform:translateY(-52%);font-size:17px;color:#7898ad;pointer-events:none}.ctp-support-asset-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:25px;height:25px;padding:0;border:0;border-radius:50%;background:transparent;color:#708493;font-size:18px;line-height:25px}.ctp-support-asset-clear:hover{background:#edf3f6;color:#314f63}.ctp-support-asset-results{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:60;max-height:275px;overflow:auto;padding:5px;border:1px solid #cdd9e2;border-radius:9px;background:#fff;box-shadow:0 14px 35px rgba(22,47,67,.2)}.ctp-support-asset-result{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 9px;border:0;border-radius:7px;background:#fff;text-align:left;cursor:pointer}.ctp-support-asset-result:hover,.ctp-support-asset-result.is-active{background:#edf3f6}.ctp-support-asset-result-main{font-size:12px;font-weight:800;color:#1e3c51}.ctp-support-asset-result-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;color:#718696}.ctp-support-asset-empty{padding:10px;color:#75899a;font-size:11px}

@media(max-width:820px){.ctp-support-type-catalog,.ctp-support-base-grid,.ctp-support-field-group,.ctp-support-form-section{grid-template-columns:1fr}.ctp-support-type-group-options{grid-template-columns:1fr}.ctp-support-form-question[data-ctp-form-type]{grid-column:auto}.ctp-support-new-footer{align-items:stretch;flex-direction:column}.ctp-support-new-footer>div{justify-content:flex-end}}

/* v0.5.0 - Documenti, Knowledge Base e Download / Tools */
.ctp-content-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:13px 15px;border:1px solid #dce5ec;border-radius:12px;background:#fff}.ctp-content-toolbar>div{display:grid;gap:2px}.ctp-content-toolbar strong{font-size:13px;color:#183a52}.ctp-content-toolbar span{font-size:10.5px;color:#75899a}.ctp-content-toolbar input{width:min(380px,42vw);min-height:38px;border:1px solid #cedae3;border-radius:10px;padding:8px 11px;background:#f9fbfc;outline:none}.ctp-content-toolbar input:focus{border-color:#7898ad;box-shadow:0 0 0 3px rgba(120,152,173,.13)}.ctp-document-archive{display:grid;gap:18px}.ctp-doc-type-group{display:grid;gap:12px}.ctp-doc-type-head,.ctp-doc-year-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ctp-doc-type-head{padding:14px 16px;border:1px solid #dce5ec;border-radius:14px;background:#fbfcfd}.ctp-doc-type-head>div{display:grid;gap:2px}.ctp-doc-type-kicker{font-size:8.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7898ad}.ctp-doc-type-head h2{margin:0;font-size:18px;color:#173a53}.ctp-doc-type-count,.ctp-doc-year-head span{font-size:10px;font-weight:700;color:#6d8394}.ctp-doc-year-group{display:grid;gap:10px}.ctp-doc-year-head{padding:0 2px}.ctp-doc-year-head strong{font-size:15px;color:#173a53}.ctp-document-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px}.ctp-document-card{display:flex;flex-direction:column;min-width:0;padding:15px;border:1px solid #dce5ec;border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(22,45,62,.04);min-height:100%}.ctp-document-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ctp-document-type{align-self:flex-start;padding:4px 7px;border-radius:999px;background:#edf3f6;color:#57768a;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.ctp-document-year{font-size:9px;font-weight:800;color:#93a4b0;letter-spacing:.05em}.ctp-document-card h3{margin:9px 0 3px;font-size:16px;color:#163a54}.ctp-document-card>p{margin:0 0 11px;min-height:30px;color:#718596;font-size:10.5px}.ctp-document-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;margin:0 0 12px}.ctp-document-card dl>div{display:grid;gap:2px;padding:7px 8px;border:1px solid #edf1f4;border-radius:10px;background:#fbfcfd}.ctp-document-card dt{font-size:8.5px;color:#8494a1;text-transform:uppercase;letter-spacing:.04em}.ctp-document-card dd{margin:0;font-size:10px;font-weight:700;color:#344f63;line-height:1.35;word-break:break-word}.ctp-document-actions{display:flex;gap:8px;margin-top:auto;align-items:center;flex-wrap:wrap}.ctp-primary-button,.ctp-secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border-radius:9px;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer;transition:.16s ease}.ctp-primary-button{border:1px solid #7898ad;background:#7898ad;color:#fff}.ctp-primary-button:hover{background:#5d8299;border-color:#5d8299;color:#fff}.ctp-secondary-button{border:1px solid #d5e0e7;background:#fff;color:#567a91}.ctp-secondary-button:hover{border-color:#7898ad;color:#2d546f;background:#f7fafb}.ctp-muted-badge{align-self:flex-start;margin-top:auto;padding:6px 8px;border-radius:8px;background:#fff7e8;color:#785719;font-size:9.5px;font-weight:700}.ctp-document-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px}.ctp-document-modal[hidden]{display:none}.ctp-document-modal-backdrop{position:absolute;inset:0;background:rgba(15,31,44,.58)}.ctp-document-modal-dialog{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1120px,calc(100vw - 40px));height:min(86vh,840px);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 24px 60px rgba(13,31,45,.28)}.ctp-document-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #e8eef2;background:#fbfcfd}.ctp-document-modal-head>div:first-child{display:grid;gap:2px;min-width:0}.ctp-document-modal-head span{font-size:8.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7898ad}.ctp-document-modal-head strong{font-size:14px;color:#173a53;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:64vw}.ctp-document-modal-actions{display:flex;align-items:center;gap:8px}.ctp-document-modal-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d5e0e7;border-radius:10px;background:#fff;color:#567a91;font-size:22px;line-height:1;cursor:pointer}.ctp-document-modal-close:hover{background:#f7fafb}.ctp-document-modal-body{min-height:0;background:#eef3f6}.ctp-document-modal-body iframe{display:block;width:100%;height:100%;border:0;background:#eef3f6}.ctp-modal-open{overflow:hidden}.ctp-kb-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ctp-kb-card{padding:18px;border:1px solid #dce5ec;border-radius:14px;background:#fff}.ctp-kb-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#74899a;font-size:9.5px;text-transform:uppercase;letter-spacing:.04em}.ctp-kb-meta span{font-weight:800;color:#5c7a8e}.ctp-kb-card h2{margin:8px 0 6px;font-size:18px;color:#173b54}.ctp-kb-excerpt{margin:0 0 10px;color:#667f91;font-size:11px;font-weight:600}.ctp-kb-content{color:#3d5568;font-size:11px;line-height:1.55}.ctp-kb-content p{margin:7px 0}.ctp-kb-attachments{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #e9eef2;font-size:9.5px}.ctp-kb-attachments a{padding:5px 8px;border:1px solid #d7e1e8;border-radius:7px;background:#f8fafb;color:#416882;font-weight:700}.ctp-download-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:12px}.ctp-download-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:15px;border:1px solid #dce5ec;border-radius:13px;background:#fff}.ctp-download-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#edf3f6;color:#55788f;font-size:22px;font-weight:700}.ctp-download-category{font-size:8.5px;font-weight:800;color:#718899;text-transform:uppercase;letter-spacing:.06em}.ctp-download-card h3{margin:4px 0 4px;font-size:15px;color:#173a53}.ctp-download-card p{margin:0 0 8px;color:#6c8293;font-size:10.5px;line-height:1.45}.ctp-download-meta{display:flex;gap:10px;margin-bottom:9px;color:#85949f;font-size:9.5px}.ctp-filter-empty{margin-top:12px}
@media(max-width:1180px){.ctp-document-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}.ctp-download-grid{grid-template-columns:repeat(2,minmax(250px,1fr))}}@media(max-width:760px){.ctp-content-toolbar{align-items:stretch;flex-direction:column}.ctp-content-toolbar input{width:100%}.ctp-document-grid,.ctp-kb-list,.ctp-download-grid{grid-template-columns:1fr}.ctp-document-card dl{grid-template-columns:1fr}.ctp-document-modal{padding:10px}.ctp-document-modal-dialog{width:calc(100vw - 20px);height:min(90vh,900px)}.ctp-document-modal-head{align-items:flex-start;flex-direction:column}.ctp-document-modal-actions{width:100%;justify-content:space-between}}

/* Dashboard cliente - contenuti recenti */
.ctp-dashboard-content{margin-top:22px}.ctp-dashboard-content-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 12px}.ctp-dashboard-content-head h2{margin:2px 0 2px;font-size:19px;color:#173a53}.ctp-dashboard-content-head p{margin:0;color:#748899;font-size:10.5px}.ctp-dashboard-eyebrow{font-size:8.5px;font-weight:800;letter-spacing:.09em;color:#7898ad}.ctp-dashboard-content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ctp-dashboard-panel{min-width:0;border:1px solid #dce5ec;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(22,45,62,.035);overflow:hidden}.ctp-dashboard-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #edf1f4;background:#fbfcfd}.ctp-dashboard-panel-head>div{display:grid;gap:1px;min-width:0}.ctp-dashboard-panel-head span{font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#7898ad}.ctp-dashboard-panel-head strong{font-size:13px;color:#183a52}.ctp-dashboard-panel-head>a{flex:0 0 auto;font-size:9.5px;font-weight:700;color:#567a91;text-decoration:none}.ctp-dashboard-panel-head>a:hover{text-decoration:underline}.ctp-dashboard-list{display:grid}.ctp-dashboard-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:11px 14px;border-top:1px solid #f0f3f5}.ctp-dashboard-list-row:first-child{border-top:0}.ctp-dashboard-list-row>div{display:grid;gap:2px;min-width:0}.ctp-dashboard-item-kicker{font-size:8.3px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#8798a5}.ctp-dashboard-list-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#27475d}.ctp-dashboard-list-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:9.5px;color:#788b99}.ctp-dashboard-list-row.is-link{text-decoration:none}.ctp-dashboard-list-row.is-link:hover{background:#f8fafb}.ctp-dashboard-mini-action{flex:0 0 auto;padding:5px 7px;border:1px solid #d5e0e7;border-radius:7px;background:#f8fafb;color:#57788d;font-size:8.5px;font-weight:800;text-decoration:none}.ctp-dashboard-mini-action:hover{background:#7898ad;border-color:#7898ad;color:#fff}.ctp-dashboard-chevron{flex:0 0 auto;font-size:20px;line-height:1;color:#9aabb6}.ctp-dashboard-panel-empty{padding:18px 14px;color:#83939f;font-size:10px}

/* Dashboard cliente - responsive contenuti */
@media(max-width:1180px){.ctp-dashboard-content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.ctp-dashboard-content-grid{grid-template-columns:1fr}.ctp-dashboard-content-head{align-items:flex-start;flex-direction:column}.ctp-dashboard-panel-head{align-items:flex-start}.ctp-dashboard-list-row small{white-space:normal}}

/* Documenti - categorie e anni */
.ctp-document-category-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 13px;padding:5px;border:1px solid #dce5ec;border-radius:12px;background:#fff}.ctp-document-category-tab{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#587084;font:700 11px/1.2 inherit;cursor:pointer}.ctp-document-category-tab strong{display:grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#edf2f5;color:#6e8494;font-size:9px}.ctp-document-category-tab:hover{background:#f3f7f9;color:#34566e}.ctp-document-category-tab.is-active{background:#7898ad;color:#fff}.ctp-document-category-tab.is-active strong{background:rgba(255,255,255,.22);color:#fff}.ctp-document-category-panel[hidden]{display:none!important}.ctp-document-year-section{margin:0 0 17px}.ctp-document-year-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 2px 8px;padding-bottom:7px;border-bottom:1px solid #dfe7ec}.ctp-document-year-head>div{display:flex;align-items:baseline;gap:8px}.ctp-document-year-head span{font-size:8px;font-weight:850;letter-spacing:.09em;color:#8a9aa6}.ctp-document-year-head h2{margin:0;font-size:17px;color:#25455b}.ctp-document-year-head>strong{font-size:9.5px;font-weight:700;color:#7a8e9d}.ctp-document-filter-empty{margin-top:12px}

/* Documenti - scheda compatta e dettagli */
.ctp-document-card{height:226px;min-height:226px;padding:12px 13px!important}.ctp-document-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.ctp-document-status{overflow:hidden;max-width:52%;text-overflow:ellipsis;white-space:nowrap;font-size:8px;font-weight:750;color:#7898ad}.ctp-document-card h3{margin:7px 0 1px!important;font-size:15px!important;line-height:1.18}.ctp-document-reference{overflow:hidden;min-height:16px!important;margin:0 0 7px!important;text-overflow:ellipsis;white-space:nowrap;color:#708493!important;font-size:9.5px!important}.ctp-document-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 9px!important;margin:0 0 8px!important;overflow:hidden}.ctp-document-detail-grid>div{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1px!important;min-width:0;padding:4px 0!important;border-top:1px solid #edf1f4!important}.ctp-document-detail-grid dt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7.8px!important;line-height:1.1;text-transform:uppercase;letter-spacing:.035em;color:#8a99a5!important}.ctp-document-detail-grid dd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left!important;font-size:9.2px!important;line-height:1.2;font-weight:750!important;color:#304e62!important}.ctp-document-actions{display:flex;align-items:center;gap:6px;margin-top:auto}.ctp-document-action{display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:6px 9px;border:1px solid #d3dee6;border-radius:7px;background:#fff;color:#4d7087;font:750 9.5px/1 inherit;text-decoration:none;cursor:pointer}.ctp-document-action:hover{border-color:#7898ad;background:#f2f6f8;color:#34566e}.ctp-document-action.is-preview{background:#7898ad;border-color:#7898ad;color:#fff}.ctp-document-action.is-preview:hover{background:#68899f;color:#fff}

/* Documenti - anteprima PDF */
html.ctp-document-preview-open{overflow:hidden}.ctp-document-preview[hidden]{display:none!important}.ctp-document-preview{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:22px}.ctp-document-preview-backdrop{position:absolute;inset:0;background:rgba(13,31,45,.62);backdrop-filter:blur(4px)}.ctp-document-preview-window{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(1120px,calc(100vw - 34px));height:min(88vh,900px);overflow:hidden;border:1px solid rgba(255,255,255,.32);border-radius:15px;background:#fff;box-shadow:0 26px 80px rgba(9,27,40,.38)}.ctp-document-preview-window>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;border-bottom:1px solid #dce5ec;background:#f8fafb}.ctp-document-preview-window>header>div{display:grid;gap:2px;min-width:0}.ctp-document-preview-window>header span{font-size:8px;font-weight:850;letter-spacing:.09em;color:#7898ad}.ctp-document-preview-window>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#183a52}.ctp-document-preview-window>header button{display:grid;place-items:center;width:31px;height:31px;border:1px solid #d5e0e7;border-radius:9px;background:#fff;color:#526b7d;font-size:22px;line-height:1;cursor:pointer}.ctp-document-preview-frame{min-height:0;background:#eef2f5}.ctp-document-preview-frame iframe{display:block;width:100%;height:100%;min-height:420px;border:0;background:#fff}.ctp-document-preview-window>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #dce5ec;background:#fff}.ctp-document-preview-window>footer span{font-size:9.5px;color:#7b8e9c}.ctp-document-preview-window>footer .ctp-primary-button{margin:0}

/* Supporto - radio e checkbox Jira compatti */
.ctp-support-form-choice input[type="radio"],.ctp-support-form-choice input[type="checkbox"]{-webkit-appearance:auto!important;appearance:auto!important;position:static!important;display:inline-block!important;visibility:visible!important;opacity:1!important;flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:initial!important;box-shadow:none!important;transform:none!important;accent-color:#7898ad!important;cursor:pointer}.ctp-support-form-choice input[type="radio"]:focus,.ctp-support-form-choice input[type="checkbox"]:focus{outline:2px solid rgba(120,152,173,.24)!important;outline-offset:2px!important;box-shadow:none!important}.ctp-support-form-choice input[type="radio"]:before,.ctp-support-form-choice input[type="radio"]:after,.ctp-support-form-choice input[type="checkbox"]:before,.ctp-support-form-choice input[type="checkbox"]:after{content:none!important;display:none!important}

/* Documenti - responsive */
@media(max-width:760px){.ctp-document-card{height:auto;min-height:220px}.ctp-document-category-tabs{align-items:stretch}.ctp-document-category-tab{flex:1 1 calc(50% - 7px);justify-content:space-between}.ctp-document-preview{padding:8px}.ctp-document-preview-window{width:100%;height:94vh;border-radius:12px}.ctp-document-preview-window>footer{align-items:flex-start;flex-direction:column}.ctp-document-preview-window>footer .ctp-primary-button{width:100%;text-align:center}}

/* Documenti - navigazione categorie corrente */
.ctp-document-category-nav{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:5px;border:1px solid #dce5ec;border-radius:12px;background:#fff}.ctp-document-category-nav a{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 11px;border-radius:8px;color:#557185;font-size:10.5px;font-weight:750;text-decoration:none}.ctp-document-category-nav a:hover{background:#f2f6f8;color:#31566f}.ctp-document-category-nav a strong{display:grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#edf2f5;color:#6f8494;font-size:8.5px}.ctp-document-library{display:grid;gap:18px}.ctp-document-category{display:grid;gap:10px;scroll-margin-top:18px}.ctp-document-category-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid #dce5ec;border-radius:11px;background:#fbfcfd}.ctp-document-category-head>div{display:flex;align-items:baseline;gap:8px}.ctp-document-category-head span{font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#7898ad}.ctp-document-category-head h2{margin:0;font-size:16px;color:#173a53}.ctp-document-category-head>strong{font-size:9px;color:#758a9a}.ctp-document-year{display:grid;gap:8px}.ctp-document-year>.ctp-document-year-head{margin:0;padding:0 2px 6px}.ctp-document-year>.ctp-document-year-head h3{margin:0;font-size:14px;color:#23475f}.ctp-document-year>.ctp-document-year-head span{display:grid;place-items:center;min-width:22px;height:20px;border-radius:999px;background:#eef3f6;color:#668094;font-size:8.5px;font-weight:800}

/* Documenti - contenuto scheda corrente */
.ctp-document-subject{overflow:hidden!important;min-height:16px!important;margin:0 0 5px!important;text-overflow:ellipsis;white-space:nowrap!important;color:#6f8493!important;font-size:9.5px!important}.ctp-document-reference{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-height:24px!important;margin:0 0 5px!important;padding:4px 6px;border-radius:7px;background:#f6f8fa;color:#738795!important;font-size:8.5px!important}.ctp-document-reference span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ctp-document-reference strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#34536a;font-size:9px}.ctp-document-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 6px!important;margin:0 0 6px!important}.ctp-document-facts>div{gap:1px!important;padding:4px 5px!important;border-radius:7px!important}.ctp-document-facts dt{font-size:7.3px!important;line-height:1.05}.ctp-document-facts dd{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8.8px!important;line-height:1.15}.ctp-document-preview-action{min-height:29px!important;padding:0 9px!important;font-size:9px!important}.ctp-document-actions .ctp-primary-button{min-height:29px!important;padding:0 9px!important;font-size:9px!important}

/* Documenti - pulsanti dashboard */
.ctp-dashboard-mini-actions{display:flex;align-items:center;gap:5px}.ctp-dashboard-mini-actions button{font-family:inherit;cursor:pointer}


/* Barra entitlement compatta persistente */
.ctp-entitlement-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:5px 7px;border:1px solid #dbe5eb;border-radius:11px;background:#fff;box-shadow:0 3px 12px rgba(21,48,67,.025);overflow:hidden}.ctp-entitlement-links{display:flex;align-items:center;gap:3px;min-width:0;overflow-x:auto;scrollbar-width:thin}.ctp-entitlement-link{flex:0 0 auto;display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border-radius:7px;color:#607789;font-size:9.5px;font-weight:750;text-decoration:none;white-space:nowrap}.ctp-entitlement-link:hover{background:#f2f6f8;color:#31566f}.ctp-entitlement-link.is-active{background:#7898ad;color:#fff}.ctp-entitlement-link.is-operator:not(.is-active){border:1px dashed #d6e0e6;color:#7e909c}.ctp-entitlement-overdue{flex:0 0 auto;display:grid;grid-template-columns:auto auto auto;align-items:center;gap:6px;min-height:30px;padding:0 8px;border:1px solid #efc9c9;border-radius:7px;background:#fff7f7;color:#a52929;text-decoration:none;white-space:nowrap}.ctp-entitlement-overdue span{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.ctp-entitlement-overdue strong{font-size:10.5px}.ctp-entitlement-overdue small{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#c83b3b;color:#fff;font-size:8px;font-weight:850}.ctp-entitlement-overdue:hover{background:#fff0f0;border-color:#dfabab;color:#8f1d1d}

/* Navigazione archivio documentale per categoria e anno */
.ctp-document-category-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px;padding:5px;border:1px solid #dce5ec;border-radius:11px;background:#fff}.ctp-document-category-tab{display:flex;align-items:center;gap:7px;min-height:32px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#587184;font:750 10px/1.2 inherit;cursor:pointer}.ctp-document-category-tab:hover{background:#f2f6f8}.ctp-document-category-tab.is-active{background:#7898ad;color:#fff}.ctp-document-category-tab strong{display:grid;place-items:center;min-width:20px;height:19px;padding:0 5px;border-radius:999px;background:#edf2f5;color:#6f8494;font-size:8px}.ctp-document-category-tab.is-active strong{background:rgba(255,255,255,.22);color:#fff}.ctp-document-category-panel[hidden],.ctp-document-year-panel[hidden]{display:none!important}.ctp-document-category-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px;padding:8px 11px;border:1px solid #dce5ec;border-radius:10px;background:#fbfcfd}.ctp-document-category-heading>div:first-child{display:flex;align-items:baseline;gap:7px}.ctp-document-category-heading>div:first-child>span{font-size:7.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#7898ad}.ctp-document-category-heading h2{margin:0;font-size:15px;color:#173a53}.ctp-document-year-tabs{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}.ctp-document-year-tab{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:0 8px;border:1px solid #d9e3e9;border-radius:7px;background:#fff;color:#61798b;font:750 9px/1 inherit;cursor:pointer}.ctp-document-year-tab:hover{border-color:#a9bdca;background:#f5f8fa}.ctp-document-year-tab.is-active{border-color:#7898ad;background:#edf3f6;color:#31566f}.ctp-document-year-tab strong{font-size:7.5px;color:#8799a5}.ctp-document-payment-filter{display:flex;align-items:center;gap:7px;margin:0 0 9px;padding:7px 9px;border:1px solid #efc9c9;border-radius:9px;background:#fff7f7;color:#9f2929;font-size:9px}.ctp-document-payment-filter span{font-size:7.5px;font-weight:850;text-transform:uppercase}.ctp-document-payment-filter strong{font-size:9.5px}.ctp-document-payment-filter button{margin-left:auto;border:0;background:transparent;color:#8f1f1f;font:750 8.5px/1 inherit;text-decoration:underline;cursor:pointer}

/* Schede documenti compatte con azioni interne */
.ctp-document-grid{grid-template-columns:repeat(4,minmax(210px,1fr));gap:10px}.ctp-document-card{height:244px;min-height:244px;padding:11px 12px!important;overflow:hidden}.ctp-document-status.is-paid{color:#198754}.ctp-document-status.is-due{color:#a96a00}.ctp-document-status.is-overdue{color:#b32626;font-weight:850}.ctp-document-object{display:grid;gap:1px;margin:4px 0 5px;padding:5px 6px;border-radius:7px;background:#f4f7f9;min-width:0}.ctp-document-object span{font-size:7px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;color:#8295a3}.ctp-document-object strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.3px;color:#34536a}.ctp-document-card-actions{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:7px;border-top:1px solid #edf1f4}.ctp-document-card-actions .ctp-primary-button,.ctp-document-card-actions .ctp-secondary-button{min-height:29px!important;padding:0 9px!important;font-size:8.8px!important}.ctp-document-year-empty{margin-top:10px}

/* Pulsante chiusura anteprima PDF */
.ctp-document-modal-close{position:relative!important;display:block!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid #d5e0e7!important;border-radius:9px!important;background:#fff!important;appearance:none!important;cursor:pointer!important}.ctp-document-modal-close::before,.ctp-document-modal-close::after{content:"";position:absolute;left:50%;top:50%;width:13px;height:1.5px;border-radius:2px;background:#567184;transform-origin:center}.ctp-document-modal-close::before{transform:translate(-50%,-50%) rotate(45deg)}.ctp-document-modal-close::after{transform:translate(-50%,-50%) rotate(-45deg)}.ctp-document-modal-close:hover{background:#f2f6f8!important;border-color:#b9cbd6!important}.ctp-document-modal-actions{flex:0 0 auto}.ctp-document-modal-head .ctp-primary-button{min-height:34px;padding:0 11px}

/* Responsive archivio e barra entitlement */
@media(max-width:1320px){.ctp-document-grid{grid-template-columns:repeat(3,minmax(210px,1fr))}}@media(max-width:900px){.ctp-entitlement-bar{align-items:stretch;flex-direction:column}.ctp-entitlement-overdue{align-self:flex-start}.ctp-document-category-heading{align-items:flex-start;flex-direction:column}.ctp-document-year-tabs{justify-content:flex-start}.ctp-document-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}}@media(max-width:620px){.ctp-document-grid{grid-template-columns:1fr}.ctp-document-card{height:auto;min-height:230px}.ctp-document-category-tab{flex:1 1 calc(50% - 6px);justify-content:space-between}.ctp-document-modal-dialog{width:calc(100vw - 12px);height:94vh}.ctp-document-modal-head{padding:9px}.ctp-document-modal-head strong{max-width:50vw}}

/* Pulsante chiusura anteprima Dashboard */
.ctp-document-preview-close{position:relative!important;display:block!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid #d5e0e7!important;border-radius:9px!important;background:#fff!important;appearance:none!important;cursor:pointer!important}.ctp-document-preview-close::before,.ctp-document-preview-close::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1.5px;border-radius:2px;background:#567184;transform-origin:center}.ctp-document-preview-close::before{transform:translate(-50%,-50%) rotate(45deg)}.ctp-document-preview-close::after{transform:translate(-50%,-50%) rotate(-45deg)}.ctp-document-preview-close:hover{background:#f2f6f8!important;border-color:#b9cbd6!important}

/* v0.5.6 - Navigazione documentale reale e azioni sempre visibili */
.ctp-document-category-tabs{position:relative;z-index:2}
.ctp-document-category-tab{appearance:none;-webkit-appearance:none;text-decoration:none!important;cursor:pointer;pointer-events:auto}
.ctp-document-category-tab:hover{text-decoration:none!important}
.ctp-document-category-heading{justify-content:flex-start;margin-bottom:5px}
.ctp-document-year-tabs{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:wrap;margin:0 0 10px}
.ctp-document-year-tab{appearance:none;-webkit-appearance:none;text-decoration:none!important;cursor:pointer;pointer-events:auto}
.ctp-document-year-tab:hover{text-decoration:none!important}
.ctp-document-payment-filter{position:relative;z-index:2}
.ctp-document-payment-filter a{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border:1px solid #e7b7b7;border-radius:7px;background:#fff;color:#8f1f1f;font-size:8.8px;font-weight:800;text-decoration:none;cursor:pointer;pointer-events:auto}
.ctp-document-payment-filter a:hover{background:#fff0f0;border-color:#d99b9b;color:#771818;text-decoration:none}
.ctp-document-grid{align-items:stretch}
.ctp-document-card{height:auto!important;min-height:274px!important;overflow:visible!important}
.ctp-document-card .ctp-document-facts{margin-bottom:6px!important;gap:5px 7px!important}
.ctp-document-card .ctp-document-facts>div{padding:5px 6px!important;min-height:32px}
.ctp-document-card-actions{position:relative;z-index:2;flex:0 0 auto;margin-top:auto!important;padding-top:7px!important;background:#fff}
.ctp-document-card-actions .ctp-primary-button,.ctp-document-card-actions .ctp-secondary-button{pointer-events:auto;cursor:pointer;white-space:nowrap}
.ctp-document-year-panel{min-width:0}

/* v0.5.6 - Scorciatoie ticket cliccabili */
.ctp-support-shortcut-row .ctp-support-count.is-action{appearance:none;-webkit-appearance:none;width:100%;font:inherit;text-align:left;cursor:pointer;pointer-events:auto;position:relative}
.ctp-support-shortcut-row .ctp-support-count.is-action span{font-size:9px;font-weight:800;color:#5f7788;white-space:nowrap}
.ctp-support-shortcut-row .ctp-support-count.is-action:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(35,67,90,.08)}
.ctp-support-shortcut-row .ctp-support-count.is-action.is-active{box-shadow:0 0 0 2px rgba(120,152,173,.22)}

/* v0.5.6 - Barra entitlement sempre realmente interattiva */
.ctp-entitlement-bar{position:relative;z-index:3}
.ctp-entitlement-link,.ctp-entitlement-overdue{pointer-events:auto;cursor:pointer}

@media(max-width:620px){.ctp-document-card{min-height:0!important}.ctp-document-year-tabs{margin-bottom:8px}}

/* v0.5.7 - Contratti disponibili nell'area cliente */
.ctp-customer-contracts{margin:0 0 14px;padding:13px 14px;border:1px solid #dce5ec;border-radius:12px;background:#fff}.ctp-customer-contracts-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.ctp-customer-contracts-head>div{display:grid;gap:2px}.ctp-customer-contracts-head strong{font-size:13px;color:#183c55}.ctp-customer-contracts-head span{font-size:9.5px;color:#758a98}.ctp-customer-contract-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ctp-customer-contract-card{display:grid;gap:4px;padding:11px;border:1px solid #e0e8ed;border-radius:10px;background:#fbfcfd}.ctp-customer-contract-card>span{font-size:8px;font-weight:800;color:#7790a0;letter-spacing:.05em}.ctp-customer-contract-card>strong{font-size:12px;color:#1c4058}.ctp-customer-contract-card>small{font-size:9px;color:#728694}.ctp-customer-contract-card>div{display:flex;align-items:center;gap:9px;margin-top:3px}.ctp-customer-contract-card>div>a:not(.ctp-primary-button){font-size:9px;font-weight:700;color:#55798f}.ctp-customer-contract-card .ctp-primary-button{padding:6px 9px;font-size:9px}
@media(max-width:900px){.ctp-customer-contract-grid{grid-template-columns:1fr}}

/* Barra servizi sempre cliccabile */
.ctp-entitlement-bar{position:relative!important;z-index:1000!important;isolation:isolate;overflow:visible!important;pointer-events:auto!important}
.ctp-entitlement-bar::before,.ctp-entitlement-bar::after{pointer-events:none!important}
.ctp-entitlement-links{position:relative;z-index:2;pointer-events:auto!important}
.ctp-entitlement-link{position:relative;z-index:3;pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation}

/* Fatture scadute accanto al cliente */
.ctp-portal-customer-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:25px}
.ctp-portal-customer-row>p{margin:0!important}
.ctp-portal-overdue-inline{display:inline-flex;align-items:center;gap:6px;min-height:25px;padding:0 8px;border:1px solid #e7aaaa;border-radius:7px;background:#fff4f4;color:#a12626;text-decoration:none!important;pointer-events:auto!important;position:relative;z-index:4}
.ctp-portal-overdue-inline span{font-size:7.5px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.ctp-portal-overdue-inline strong{font-size:9.5px}
.ctp-portal-overdue-inline small{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#bf3030;color:#fff;font-size:7px;font-weight:850}
.ctp-portal-overdue-inline:hover{background:#ffecec;color:#861b1b}

/* Esplora risorse documenti */
.ctp-document-explorer{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:start}
.ctp-document-folder-pane{position:sticky;top:12px;min-width:0;padding:8px;border:1px solid #dbe5eb;border-radius:11px;background:#f9fbfc}
.ctp-document-folder-root,.ctp-document-folder-category,.ctp-document-folder-year{display:flex;align-items:center;gap:7px;text-decoration:none!important;color:#425f73}
.ctp-document-folder-root{min-height:34px;padding:0 8px;border-bottom:1px solid #e3eaee;font-size:10px}
.ctp-document-folder-root strong{flex:1;font-size:10.5px;color:#274960}
.ctp-document-folder-root small,.ctp-document-folder-category strong,.ctp-document-folder-year strong{margin-left:auto;min-width:19px;text-align:right;font-size:7.8px;color:#8295a3}
.ctp-document-folder-icon{position:relative;display:inline-block;width:14px;height:10px;border:1px solid #7898ad;border-radius:2px;background:#edf4f7;flex:0 0 auto}
.ctp-document-folder-icon::before{content:"";position:absolute;left:1px;top:-4px;width:6px;height:4px;border:1px solid #7898ad;border-bottom:0;border-radius:2px 2px 0 0;background:#edf4f7}
.ctp-document-folder-pane nav{display:grid;gap:3px;padding-top:6px}
.ctp-document-folder-group{display:grid;gap:2px}
.ctp-document-folder-category{min-height:32px;padding:0 7px;border-radius:7px;font-size:9.7px;font-weight:750}
.ctp-document-folder-category:hover,.ctp-document-folder-year:hover{background:#eef4f7;color:#244c66}
.ctp-document-folder-category.is-active{background:#e9f1f5;color:#244c66}
.ctp-document-folder-years{display:grid;gap:1px;margin-left:13px;padding-left:13px;border-left:1px solid #d7e2e8}
.ctp-document-folder-year{min-height:27px;padding:0 7px;border-radius:6px;font-size:9px}
.ctp-document-folder-year::before{content:"";width:7px;height:1px;background:#c4d2db;flex:0 0 7px}
.ctp-document-folder-year.is-active{background:#7898ad;color:#fff;font-weight:800}
.ctp-document-folder-year.is-active strong{color:#fff}
.ctp-document-explorer-content{min-width:0}
.ctp-document-explorer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0 0 9px;padding:8px 11px;border:1px solid #dce5ec;border-radius:10px;background:#fbfcfd}
.ctp-document-explorer-heading>div{display:grid;gap:2px;min-width:0}
.ctp-document-explorer-heading span{font-size:7px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:#8195a3}
.ctp-document-explorer-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;color:#31546b}
.ctp-document-explorer-heading small{font-size:8px;color:#8496a2;white-space:nowrap}
.ctp-document-local-title{margin:2px 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px;font-weight:750;color:#365970}

/* Esplora risorse documenti responsive */
@media(max-width:900px){.ctp-document-explorer{grid-template-columns:1fr}.ctp-document-folder-pane{position:static}.ctp-document-folder-pane nav{grid-template-columns:repeat(2,minmax(0,1fr))}.ctp-document-folder-root{grid-column:1/-1}}
@media(max-width:620px){.ctp-document-folder-pane nav{grid-template-columns:1fr}.ctp-document-explorer-heading{align-items:flex-start;flex-direction:column}.ctp-portal-customer-row{align-items:flex-start;flex-direction:column}}


/* v0.6.2 - Ordinamento colonne Monitoraggio */
.ctp-monitoring-table th[data-ctp-sort-th]{padding:0!important;vertical-align:middle}
.ctp-monitoring-table .ctp-sort-header{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-height:31px;padding:7px;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left;cursor:pointer;box-sizing:border-box}
.ctp-monitoring-table .ctp-sort-header:hover{background:rgba(255,255,255,.1)}
.ctp-monitoring-table .ctp-sort-header:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.ctp-monitoring-table .ctp-sort-indicator{position:relative;flex:0 0 10px;width:10px;height:14px;opacity:.68}
.ctp-monitoring-table .ctp-sort-indicator::before{content:"↕";position:absolute;inset:0;display:grid;place-items:center;font-size:10px;line-height:1}
.ctp-monitoring-table th[aria-sort="ascending"] .ctp-sort-indicator::before{content:"↑";opacity:1}
.ctp-monitoring-table th[aria-sort="descending"] .ctp-sort-indicator::before{content:"↓";opacity:1}
.ctp-monitoring-table th[aria-sort="ascending"] .ctp-sort-header,.ctp-monitoring-table th[aria-sort="descending"] .ctp-sort-header{background:rgba(255,255,255,.12)}

/* Notifiche supporto dettagliate */
.ctp-notification-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;padding:8px 9px;border-radius:8px;background:#f7f9fc}.ctp-notification-card-details span{display:grid;gap:1px;min-width:0;font-size:10.5px;color:#475467;overflow-wrap:anywhere}.ctp-notification-card-details b{font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:#98a2b3}.ctp-notification-card-extra{display:grid;gap:2px!important;padding:8px 9px;border-left:3px solid #0e6eb8;border-radius:6px;background:#f8fbff;font-size:11px!important;line-height:1.45!important;color:#344054!important;white-space:pre-line}.ctp-notification-card-extra b{font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:#667085}.ctp-notification-toast em{font-style:normal;font-size:10.5px;color:#667085}.ctp-notification-toast span{line-height:1.35}.ctp-notification-card-top span{text-transform:none}.ctp-notification-card-meta{justify-content:flex-end}.ctp-notification-card>strong{line-height:1.35}.ctp-notification-list{scrollbar-gutter:stable}@media(max-width:560px){.ctp-notification-card-details{grid-template-columns:1fr}}

/* Leggibilita portale v0.6.16 */
.ctp-portal{font-size:15px;line-height:1.5}
.ctp-portal p,.ctp-portal li,.ctp-portal label,.ctp-portal input,.ctp-portal select,.ctp-portal textarea,.ctp-portal button{font-size:15px}
.ctp-portal .ctp-switcher-help,.ctp-portal .ctp-view-heading p,.ctp-portal .ctp-cmdb-search-meta,.ctp-portal .ctp-host-detail-intro,.ctp-portal .ctp-inventory-head p{font-size:13px;line-height:1.45}
.ctp-portal .ctp-summary-label,.ctp-portal .ctp-site-badge,.ctp-portal .ctp-pagination-info{font-size:14px}
.ctp-portal .ctp-table{font-size:14px}
.ctp-portal .ctp-table th,.ctp-portal .ctp-table td{line-height:1.4}
.ctp-portal .ctp-badge{font-size:12px}
.ctp-portal .ctp-output-toggle{font-size:13px}
.ctp-portal .ctp-row-open-hint{font-size:12px}
.ctp-portal .ctp-host-overview-label{font-size:12px}
.ctp-portal .ctp-host-overview-value{font-size:15px}
.ctp-portal .ctp-data-grid dt,.ctp-portal .ctp-data-grid dd,.ctp-portal .ctp-data-node>summary,.ctp-portal .ctp-data-list-item{font-size:13px;line-height:1.45}
.ctp-portal .ctp-document-folder-root strong{font-size:13px}
.ctp-portal .ctp-document-folder-category{font-size:13px}
.ctp-portal .ctp-document-folder-year{font-size:12px}
.ctp-portal .ctp-document-folder-root small,.ctp-portal .ctp-document-folder-category strong,.ctp-portal .ctp-document-folder-year strong{font-size:11px}
.ctp-portal .ctp-document-explorer-heading span{font-size:11px}
.ctp-portal .ctp-document-explorer-heading strong{font-size:14px}
.ctp-portal .ctp-document-explorer-heading small{font-size:12px}
.ctp-portal .ctp-document-local-title{font-size:13px}
.ctp-notification-card-details span{font-size:13px}
.ctp-notification-card-details b,.ctp-notification-card-extra b{font-size:11px}
.ctp-notification-card-extra{font-size:13px!important;line-height:1.5!important}
.ctp-notification-toast em{font-size:12px}

/* v0.6.17 - Leggibilita globale area cliente Cloud Task */
.ctp-portal{font-size:16px;line-height:1.5}
.ctp-portal p,.ctp-portal label,.ctp-portal input,.ctp-portal select,.ctp-portal textarea,.ctp-portal button,.ctp-portal a{font-size:inherit}
.ctp-portal small{font-size:13px;line-height:1.42}.ctp-eyebrow{font-size:13px}.ctp-site-badge{font-size:14px}.ctp-switcher-label{font-size:15px}.ctp-switcher-help{font-size:13px}
.ctp-summary-label{font-size:14px}.ctp-view-heading p{font-size:14px}.ctp-btn{font-size:15px;min-height:40px}.ctp-table{font-size:15px}.ctp-table th,.ctp-table td{padding:9px 10px}.ctp-badge{font-size:12px}.ctp-output-toggle{font-size:13px}
.ctp-search-label{font-size:14px}.ctp-cmdb-search{font-size:16px}.ctp-cmdb-search-meta,.ctp-pagination-info{font-size:13.5px}.ctp-page-btn{font-size:14px}.ctp-row-open-hint{font-size:12px}
.ctp-host-detail-intro{font-size:14px}.ctp-host-overview-label{font-size:12.5px}.ctp-host-overview-value{font-size:15px}.ctp-data-grid dt,.ctp-data-grid dd,.ctp-data-node>summary,.ctp-data-list-item{font-size:13.5px;line-height:1.45}
.ctp-search-suggestion-copy strong{font-size:14px}.ctp-search-suggestion-copy small,.ctp-search-suggestion-empty{font-size:13px}.ctp-badge-mini{font-size:11px}

/* v0.6.17 - Leggibilita completa dei componenti cliente */
.ctp-portal .ctp-portal-overdue-inline span{font-size:12px}.ctp-portal .ctp-portal-overdue-inline strong{font-size:14px}.ctp-portal .ctp-portal-overdue-inline small{font-size:11px}
.ctp-portal .ctp-document-folder-root{font-size:14px}.ctp-portal .ctp-document-folder-root strong{font-size:14px}.ctp-portal .ctp-document-folder-root small,.ctp-portal .ctp-document-folder-category strong,.ctp-portal .ctp-document-folder-year strong{font-size:12px}.ctp-portal .ctp-document-folder-category{font-size:14px}.ctp-portal .ctp-document-folder-year{font-size:13px}
.ctp-portal .ctp-document-explorer-heading span{font-size:12px}.ctp-portal .ctp-document-explorer-heading strong{font-size:15px}.ctp-portal .ctp-document-explorer-heading small{font-size:13px}.ctp-portal .ctp-document-local-title{font-size:14px}
.ctp-portal .ctp-notification-card-details span{font-size:14px}.ctp-portal .ctp-notification-card-details b,.ctp-portal .ctp-notification-card-extra b{font-size:12px}.ctp-portal .ctp-notification-card-extra{font-size:14px!important}.ctp-portal .ctp-notification-toast em{font-size:13px}


/* v0.6.19 - Leggibilita globale Cloud Task frontend */
.ctp-portal{font-size:16px;line-height:1.5;color:#173247}.ctp-portal small,.ctp-portal .ctp-muted,.ctp-portal .ctp-meta{font-size:13px}.ctp-portal input,.ctp-portal select,.ctp-portal textarea,.ctp-portal button,.ctp-portal a{font-size:14px}.ctp-login-card{max-width:520px;margin:34px auto;padding:28px;border:1px solid #d7e4ec;border-radius:18px;background:#fff;box-shadow:0 14px 40px rgba(20,55,78,.09)}.ctp-login-card h3{font-size:24px;color:#123d5a}.ctp-login-card #loginform input[type=text],.ctp-login-card #loginform input[type=password]{min-height:46px;font-size:16px;border-radius:10px}

/* Barra moduli: non deve finire sotto l'header del tema. */
.ctp-entitlement-bar{position:sticky!important;top:78px!important;z-index:120!important;background:rgba(255,255,255,.98);box-shadow:0 5px 16px rgba(31,64,84,.08)}
.admin-bar .ctp-entitlement-bar{top:110px!important}@media(max-width:782px){.ctp-entitlement-bar,.admin-bar .ctp-entitlement-bar{top:0!important;z-index:999!important}}

/* Ricerca Documenti alta e a tutta larghezza. */
.ctp-document-toolbar{display:grid!important;grid-template-columns:minmax(210px,.65fr) minmax(420px,1.35fr)!important;align-items:end!important}.ctp-document-search-wrap{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:0 14px;border:1px solid #bfd1dc;border-radius:12px;background:#fff}.ctp-document-search-wrap input{width:100%!important;min-width:0!important;height:48px!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:15px!important;outline:0}.ctp-document-search-wrap>span{color:#5a7890;font-size:19px}
@media(max-width:850px){.ctp-document-toolbar{grid-template-columns:1fr!important}.ctp-document-search-wrap{min-width:0}}

/* Explorer: contenuto sempre allineato in alto. */
.ctp-document-explorer{align-items:stretch}.ctp-document-explorer-content{align-self:start;min-height:420px;align-content:start!important}.ctp-document-year-panel{align-self:start}.ctp-document-folder-pane{align-self:stretch}.ctp-document-folder-category{grid-template-columns:14px 24px 1fr auto!important}.ctp-document-folder-group:not(.is-open) .ctp-document-folder-years{display:none}.ctp-document-folder-chevron{font-size:18px;line-height:1;transform:rotate(0);transition:transform .15s}.ctp-document-folder-group.is-open .ctp-document-folder-chevron{transform:rotate(90deg)}

/* File Explorer: pannello destro come righe, non card. */
.ctp-document-file-list{display:grid;border:1px solid #d7e3ea;border-radius:12px;overflow:hidden;background:#fff}.ctp-document-file-head,.ctp-document-file-row{display:grid;grid-template-columns:minmax(260px,1.4fr) 110px minmax(280px,1fr) 150px 190px;gap:12px;align-items:center;padding:11px 14px}.ctp-document-file-head{background:#f1f6f9;color:#607b8f;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.03em}.ctp-document-file-row{border-top:1px solid #e4edf2;min-height:70px}.ctp-document-file-row:hover{background:#f8fbfd}.ctp-document-file-name{display:flex;align-items:center;gap:11px;min-width:0}.ctp-document-file-name>span:last-child{display:grid;min-width:0}.ctp-document-file-name strong{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctp-document-file-name small{color:#718797;font-size:12.5px}.ctp-file-pdf-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#edf4f8;color:#0f5f91;font-size:10px;font-weight:800}.ctp-document-file-details{font-size:12.5px;color:#527087;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctp-document-file-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.ctp-document-file-actions a,.ctp-document-file-actions button{min-height:32px!important;padding:6px 9px!important}
@media(max-width:1100px){.ctp-document-file-head{display:none}.ctp-document-file-row{grid-template-columns:1fr auto;gap:8px}.ctp-document-file-date,.ctp-document-file-details,.ctp-document-file-row>div:nth-child(4){grid-column:1/2}.ctp-document-file-actions{grid-column:2;grid-row:1/5;align-self:center}}

/* Knowledge Base frontend: lista compatta, articolo solo nel popup. */
.ctp-kb-summary-list{display:grid;gap:10px}.ctp-kb-summary-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 90px;gap:16px;align-items:center;padding:16px 18px;border:1px solid #d8e5ec;border-radius:12px;background:#fff}.ctp-kb-summary-main{min-width:0}.ctp-kb-summary-main>span{display:block;color:#59758a;font-size:12px;font-weight:750;text-transform:uppercase}.ctp-kb-summary-main>strong{display:block;margin:3px 0;font-size:16px}.ctp-kb-summary-main p{margin:0;color:#577086;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctp-kb-summary-meta{display:grid;gap:3px;color:#6f8492;font-size:12.5px}.ctp-kb-summary-actions{text-align:right}.ctp-kb-front-modal[hidden]{display:none!important}.ctp-kb-front-modal{position:fixed;inset:0;z-index:100000}.ctp-kb-front-modal-backdrop{position:absolute;inset:0;background:rgba(18,43,59,.56)}.ctp-kb-front-modal-window{position:relative;margin:5vh auto;width:min(960px,calc(100vw - 30px));max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.26)}.ctp-kb-front-modal-window>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-bottom:1px solid #dde7ed;background:#fff}.ctp-kb-front-modal-window>header button{width:34px;height:34px;border:1px solid #d5e2e9;border-radius:9px;background:#fff;font-size:22px}.ctp-kb-front-modal-window>[data-ctp-kb-front-content]{padding:24px}.ctp-kb-front-detail h2{font-size:26px}.ctp-kb-front-content{font-size:15.5px;line-height:1.7}.ctp-kb-front-content h2{font-size:22px}.ctp-kb-front-content h3{font-size:19px}.ctp-kb-front-content ul,.ctp-kb-front-content ol{padding-left:24px}.ctp-modal-open{overflow:hidden}
@media(max-width:720px){.ctp-kb-summary-row{grid-template-columns:1fr auto}.ctp-kb-summary-meta{grid-column:1}.ctp-kb-summary-actions{grid-column:2;grid-row:1/3}}

/* Pulsante notifiche flottante: cerchio compatto, non ovale. */
.ctp-operator-notification-toggle{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;border-radius:50%!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;right:20px!important;bottom:20px!important}.ctp-operator-notification-toggle span:not(.ctp-operator-notification-badge){display:none!important}

/* Release 0.6.19 - offset header tema, top alignment e notifiche operative */
.ctp-portal{scroll-margin-top:96px}.ctp-portal .ctp-entitlement-bar{top:92px!important;z-index:9998!important}.admin-bar .ctp-portal .ctp-entitlement-bar{top:124px!important}.ctp-portal .ctp-document-explorer-layout,.ctp-portal .ctp-document-content-pane,.ctp-portal .ctp-document-content-panel{align-content:start!important;align-items:start!important;justify-content:start!important}.ctp-portal .ctp-document-content-empty{min-height:0!important;align-self:start!important;margin-top:0!important}.ctp-operator-notification-toggle{box-sizing:border-box!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;border-radius:999px!important;overflow:visible!important}.ctp-operator-notification-toggle .ctp-operator-notification-badge{position:absolute;top:-6px;right:-6px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;display:flex;align-items:center;justify-content:center}.ctp-operator-notification-list .ctp-operator-notification-item{border:1px solid #dce7ed;border-left:4px solid #d89b00;border-radius:11px;background:#fff;padding:13px 15px;margin:8px 0;box-shadow:0 4px 14px rgba(22,55,76,.04)}.ctp-operator-notification-list .ctp-operator-notification-item.is-critical,.ctp-operator-notification-list .ctp-operator-notification-item.is-error{border-left-color:#d63638}.ctp-operator-notification-list .ctp-operator-notification-item.is-info{border-left-color:#0b76b7}@media(max-width:900px){.ctp-portal .ctp-entitlement-bar,.admin-bar .ctp-portal .ctp-entitlement-bar{top:0!important}}

/* Release 0.6.19 - login Cloud Task coerente nel frontend */
.ctp-login-card-branded{max-width:520px;margin:36px auto;padding:28px;border:1px solid #d7e4eb;border-radius:18px;background:#fff;box-shadow:0 18px 48px rgba(18,54,77,.10)}.ctp-login-brand{display:flex;align-items:center;gap:13px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e1e9ee}.ctp-login-brand img{width:64px;height:48px;object-fit:contain;border-radius:8px}.ctp-login-brand>div{display:grid;line-height:1.1}.ctp-login-brand strong{font-size:20px;color:#123d5c}.ctp-login-brand span{margin-top:3px;font-size:12px!important;letter-spacing:.08em;text-transform:uppercase;color:#6b8292}.ctp-login-card-branded h3{margin:0 0 8px;font-size:22px}.ctp-login-card-branded form p{margin:12px 0}.ctp-login-card-branded input[type=text],.ctp-login-card-branded input[type=password]{width:100%;min-height:46px;border:1px solid #cbdbe4;border-radius:10px;padding:8px 11px}.ctp-login-card-branded .login-submit input{width:100%;min-height:44px;border:0;border-radius:10px;background:#0a5e91;color:#fff;font-weight:800}

/* Release 0.6.19 - rifinitura leggibilita e offset header dinamico */
.ctp-portal .ctp-entitlement-bar{top:var(--ctp-theme-header-offset,92px)!important}
.ctp-portal .ctp-content-toolbar strong{font-size:15px!important}.ctp-portal .ctp-content-toolbar span{font-size:13.5px!important;line-height:1.4}.ctp-portal .ctp-document-file-head{font-size:13px!important}.ctp-portal .ctp-document-file-details,.ctp-portal .ctp-document-file-date{font-size:13.5px!important}.ctp-portal .ctp-document-file-name small{font-size:13px!important}
.ctp-portal .ctp-document-explorer-empty{align-self:start!important;justify-self:stretch!important;place-items:start!important;text-align:left!important;margin:0!important;min-height:0!important;padding:22px!important}
@media(max-width:900px){.ctp-portal .ctp-entitlement-bar{top:var(--ctp-theme-header-offset,0px)!important}}
.admin-bar .ctp-portal .ctp-entitlement-bar{top:var(--ctp-theme-header-offset,124px)!important}
@media(max-width:900px){.admin-bar .ctp-portal .ctp-entitlement-bar{top:var(--ctp-theme-header-offset,0px)!important}}

/* v0.6.20 - Header sito: voci menu sempre su una sola riga */
body.ctp-portal-page header .wp-block-navigation__container,
body.ctp-portal-page .main-header-menu,
body.ctp-portal-page .main-navigation ul,
body.ctp-portal-page .ast-builder-menu-1 ul{flex-wrap:nowrap!important;white-space:nowrap!important}
body.ctp-portal-page header .wp-block-navigation-item,
body.ctp-portal-page header .wp-block-navigation-item__content,
body.ctp-portal-page .main-header-menu>li,
body.ctp-portal-page .main-header-menu>li>a,
body.ctp-portal-page .main-navigation li>a{white-space:nowrap!important}

/* v0.6.26 - servizi visibili anche se non attivi e libreria marketing cliente */
.ctp-entitlement-link.is-disabled{display:inline-flex;align-items:center;gap:6px;opacity:.6;cursor:not-allowed;background:#f4f6f8;color:#718094;border-color:#dce3e8}.ctp-entitlement-link.is-disabled small{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ctp-marketing-library{display:grid;gap:18px}.ctp-marketing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.ctp-marketing-head h2{margin:0 0 6px}.ctp-marketing-head p{margin:0;color:#60758a;max-width:720px}.ctp-marketing-carousel{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 16px;overscroll-behavior-inline:contain}.ctp-marketing-card{flex:0 0 min(440px,86vw);scroll-snap-align:start;overflow:hidden;border:1px solid #d5e1e9;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(13,54,80,.08)}.ctp-marketing-card img{display:block;width:100%;height:auto;aspect-ratio:1.414/1;object-fit:contain;background:#f7fafc}.ctp-marketing-card-file{min-height:250px;display:grid;place-content:center;gap:8px;text-align:center;background:#f5f8fb;color:#1f4a65}.ctp-marketing-card-file strong{font-size:36px}.ctp-marketing-card-body{padding:16px}.ctp-marketing-card-body h3{margin:0 0 7px}.ctp-marketing-card-body p{min-height:38px;margin:0 0 14px;color:#60758a}
.ctp-loyalty-section{display:grid;gap:10px;margin-top:12px;padding-top:20px;border-top:1px solid #dbe5ed}.ctp-loyalty-card{position:relative;overflow:hidden;display:grid;gap:10px;max-width:620px;padding:22px;border:1px solid #cfe0e9;border-radius:22px;background:linear-gradient(135deg,#ffffff 0%,#eef8f4 100%);box-shadow:0 12px 30px rgba(13,54,80,.08)}.ctp-loyalty-card:after{content:"";position:absolute;right:-60px;top:-70px;width:180px;height:180px;border-radius:50%;background:rgba(72,177,139,.12)}.ctp-loyalty-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#0f3853}.ctp-loyalty-brand strong{font-size:20px}.ctp-loyalty-brand span{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ctp-loyalty-card h3{position:relative;margin:8px 0 0;font-size:25px;color:#132b40}.ctp-loyalty-card p{position:relative;margin:0;color:#60758a}.ctp-loyalty-code{position:relative;font-weight:800;letter-spacing:.09em;color:#14784e}.ctp-loyalty-status{position:relative;color:#60758a;font-size:13px;font-weight:700}.ctp-loyalty-status.is-verified{color:#107749}.ctp-loyalty-status.is-pending{color:#9a6812}.ctp-loyalty-card .ctp-btn{position:relative;width:max-content}

.ctp-marketing-pdf-preview{display:block;width:100%;aspect-ratio:1.414/1;border:0;background:#f6f8fa;overflow:hidden}

/* v0.6.27 - card convenzioni bianca */
.ctp-loyalty-card{background:#fff!important;color:#12324a!important;border:1px solid #cbdce7!important;box-shadow:0 10px 26px rgba(13,54,80,.08)!important}.ctp-loyalty-card:after{background:rgba(38,135,190,.07)!important}.ctp-loyalty-brand,.ctp-loyalty-card h3{color:#0b3b5c!important}.ctp-loyalty-code{color:#0b6794!important}.ctp-loyalty-card p,.ctp-loyalty-status{color:#5f7486}.ctp-loyalty-status.is-verified{color:#107749!important}.ctp-loyalty-status.is-pending{color:#9a6812!important}


/* v0.6.29 - Login riuscito come toast e navigazione sito desktop su una sola riga. */
.ctp-login-success-popup{position:fixed;z-index:100600;top:112px;right:24px;width:min(390px,calc(100vw - 32px));padding:16px 44px 15px 16px;border:1px solid #cfe0eb;border-radius:15px;background:#fff;box-shadow:0 18px 46px rgba(20,55,78,.18);color:#18374d;opacity:1;transform:translateY(0);transition:opacity .48s ease,transform .48s ease;box-sizing:border-box}
.ctp-login-success-popup.is-leaving{opacity:0;transform:translateY(-12px);pointer-events:none}
.ctp-login-success-brand{display:flex;align-items:center;gap:11px}.ctp-login-success-brand img{width:54px;height:38px;object-fit:contain}.ctp-login-success-brand>div{display:grid;gap:1px}.ctp-login-success-brand strong{font-size:15px}.ctp-login-success-brand span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#74899a}
.ctp-login-success-popup p{margin:10px 0 8px;font-size:13px;color:#4d687b}.ctp-login-success-popup>a{font-size:12.5px;font-weight:800;color:#0e6eb8;text-decoration:none}.ctp-login-success-close{position:absolute;top:9px;right:10px;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#708596;font-size:21px;line-height:1;cursor:pointer}.ctp-login-success-close:hover{background:#f0f5f8;color:#214861}
.ctp-login-authenticated{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:760px;margin:28px auto;padding:15px 17px;border:1px solid #d7e3ea;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(20,55,78,.08);box-sizing:border-box}.ctp-login-authenticated>div:first-child{display:grid;gap:2px}.ctp-login-authenticated strong{font-size:15px;color:#173a52}.ctp-login-authenticated span{font-size:12.5px;color:#61798a}.ctp-login-authenticated-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.ctp-login-authenticated-actions .ctp-btn{margin:0}
@media(max-width:620px){.ctp-login-success-popup{top:88px;right:12px;width:calc(100vw - 24px)}.ctp-login-authenticated{align-items:stretch;flex-direction:column}.ctp-login-authenticated-actions{white-space:normal;flex-wrap:wrap}}


/* v0.6.31 - Header desktop: intervento chirurgico sul solo menu principale.
 * Nessuna modifica a grid/flex/width del tema: ricerca, icone e controlli a destra restano intatti. */
@media (min-width:1024px){
  nav[data-ctp-desktop-menu="1"]{position:relative!important;overflow:visible!important}
  nav[data-ctp-desktop-menu="1"]>ul,
  nav[data-ctp-desktop-menu="1"] ul.menu,
  nav[data-ctp-desktop-menu="1"] .main-header-menu,
  nav[data-ctp-desktop-menu="1"] .elementor-nav-menu,
  nav[data-ctp-desktop-menu="1"] .wp-block-navigation__container{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;white-space:nowrap!important}
  nav[data-ctp-desktop-menu="1"]>ul>li,
  nav[data-ctp-desktop-menu="1"] ul.menu>li,
  nav[data-ctp-desktop-menu="1"] .main-header-menu>li,
  nav[data-ctp-desktop-menu="1"] .elementor-nav-menu>li{flex:0 0 auto!important;width:auto!important;white-space:nowrap!important}
  nav[data-ctp-desktop-menu="1"] a{white-space:nowrap!important}
}
/* v0.6.33 - Support request CMDB asset picker */
.ctp-support-asset-result{align-items:flex-start}
.ctp-support-asset-result-main{flex:0 0 34%;overflow-wrap:anywhere}
.ctp-support-asset-result-meta{flex:1;white-space:normal;line-height:1.35;text-align:right}
.ctp-support-asset-empty.is-loading{color:#4f7188}
@media(max-width:760px){.ctp-support-asset-result{display:block}.ctp-support-asset-result-main,.ctp-support-asset-result-meta{display:block;text-align:left}.ctp-support-asset-result-meta{margin-top:3px}}


/* v0.6.36 - Supporto ITSM: evita sovrapposizione CTA "Apri elenco" nelle cards riepilogo */
.ctp-support-shortcut-row{align-items:stretch}
.ctp-support-shortcut-row .ctp-support-count.is-action{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:
    "label value"
    "cta cta";
  align-items:start;
  column-gap:10px;
  row-gap:7px;
  min-height:72px;
  padding:12px 14px;
}
.ctp-support-shortcut-row .ctp-support-count.is-action small{
  grid-area:label;
  display:block;
  margin:0;
  min-width:0;
  line-height:1.25;
  white-space:normal;
}
.ctp-support-shortcut-row .ctp-support-count.is-action strong{
  grid-area:value;
  justify-self:end;
  align-self:start;
  font-size:30px;
  line-height:1;
}
.ctp-support-shortcut-row .ctp-support-count.is-action span{
  grid-area:cta;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:max-content;
  max-width:100%;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(120,152,173,.28);
  font-size:10px;
  font-weight:800;
  line-height:1;
  color:#486476;
  white-space:nowrap;
}
.ctp-support-shortcut-row .ctp-support-count.is-action.is-user span{background:#fff;border-color:#c5def2;color:#0e6eb8}
.ctp-support-shortcut-row .ctp-support-count.is-action.is-monitor span{background:#fffaf0;border-color:#f2d28b;color:#9b6500}
@media(max-width:980px){
  .ctp-support-shortcut-row .ctp-support-count.is-action strong{font-size:26px}
}
@media(max-width:760px){
  .ctp-support-shortcut-row .ctp-support-count.is-action{
    grid-template-columns:minmax(0,1fr) auto;
    min-height:68px;
  }
}
@media(max-width:520px){
  .ctp-support-shortcut-row .ctp-support-count.is-action{
    grid-template-columns:1fr;
    grid-template-areas:
      "label"
      "value"
      "cta";
  }
  .ctp-support-shortcut-row .ctp-support-count.is-action strong{
    justify-self:start;
  }
}

/* v0.6.46 - Alert fattura scaduta con numero, data e accesso diretto */
.ctp-portal-overdue-inline.is-single{gap:7px;padding:4px 8px;min-height:30px;flex-wrap:wrap}
.ctp-portal-overdue-inline.is-single strong{font-size:9.5px;white-space:nowrap}
.ctp-portal-overdue-inline.is-single em{font-size:8.7px;font-style:normal;color:#9b5555;white-space:nowrap}
.ctp-portal-overdue-inline.is-single b{font-size:9.7px;font-weight:850;white-space:nowrap}
.ctp-portal .ctp-portal-overdue-inline.is-single strong,.ctp-portal .ctp-portal-overdue-inline.is-single b{font-size:13px}
.ctp-portal .ctp-portal-overdue-inline.is-single em{font-size:11px}

/* v0.6.47 - Filtro scaduti nel fascicolo cliente */
.ctp-document-active-filter.is-portal{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:11px 13px;border:1px solid #efc4c0;border-radius:10px;background:#fff8f7}
.ctp-document-active-filter.is-portal>div{display:grid;gap:2px}
.ctp-document-active-filter.is-portal span{font-size:9px;font-weight:900;letter-spacing:.08em;color:#b24a40}
.ctp-document-active-filter.is-portal strong{font-size:14px;color:#6f2923}
.ctp-document-active-filter.is-portal small{font-size:11px;color:#805f5b}
@media(max-width:640px){.ctp-document-active-filter.is-portal{align-items:stretch;flex-direction:column}.ctp-document-active-filter.is-portal a{justify-content:center}}

/* v1.0.1 - CMDB host details: output più orizzontale, leggibile e con etichette parlanti */
.ctp-host-sections-clean{grid-template-columns:1fr!important;gap:14px!important}
.ctp-config-groups{grid-template-columns:1fr!important;gap:14px!important;padding:16px!important}
.ctp-config-group h5{font-size:15px!important;margin:0 0 8px!important}
.ctp-friendly-grid{grid-template-columns:minmax(150px,.72fr) minmax(220px,1.28fr) minmax(150px,.72fr) minmax(220px,1.28fr)!important;border:1px solid #e0e8ee;border-radius:10px;overflow:hidden}
.ctp-friendly-grid dt,.ctp-friendly-grid dd{padding:9px 11px!important;min-height:39px;display:flex;align-items:center;border-bottom:1px solid #edf1f4!important}
.ctp-friendly-grid dt{font-size:12.5px!important;font-weight:800!important;color:#36566c!important;background:#f7fafc!important}
.ctp-friendly-grid dd{font-size:13.5px!important;line-height:1.45!important;color:#132d40!important;background:#fff!important}
.ctp-host-section>summary{font-size:15px!important;font-weight:850!important;padding:12px 14px!important}
.ctp-host-detail-intro{font-size:14.5px!important;line-height:1.5!important}
.ctp-host-overview{gap:10px!important}.ctp-host-overview-item{padding:11px 13px!important}.ctp-host-overview-label{font-size:12.5px!important}.ctp-host-overview-value{font-size:15px!important;line-height:1.35!important}
.ctp-inventory-section summary{font-size:13.5px!important;font-weight:800!important}.ctp-inventory-table{font-size:13px!important}
@media(max-width:1100px){.ctp-friendly-grid{grid-template-columns:minmax(140px,.75fr) minmax(0,1.25fr)!important}}
@media(max-width:760px){.ctp-friendly-grid{grid-template-columns:1fr!important}.ctp-friendly-grid dt{padding-bottom:3px!important;border-bottom:0!important}.ctp-friendly-grid dd{padding-top:3px!important}}
