/* ST Enterprises Srl — shared site dimensions and a consistent reading scale. */
/* Width and elevation belong to the central workspace; the navigation shell stays full width. */
body.ctp-bo-body{background:var(--ctp-bo-page-bg,#e9eef3)}
body.ctp-bo-body>.ctp-bo-app{width:100%;max-width:none!important;margin:0;box-shadow:none;min-height:100dvh}
body.ctp-bo-body .ctp-bo-main{min-width:0;background:var(--ctp-bo-page-bg,#edf2f8)}
body.ctp-bo-body .ctp-bo-content{box-sizing:border-box;width:calc(100% - 32px);max-width:var(--ctp-site-width,1440px)!important;margin:16px auto 24px;padding:var(--ctp-bo-content-padding,14px)!important;background:var(--ctp-bo-panel-bg,#fff);border:1px solid var(--ctp-bo-border,#dce5ee);border-radius:var(--ctp-bo-radius,12px);box-shadow:0 12px 32px rgba(17,42,63,var(--ctp-bo-shadow-alpha,.06)),0 2px 6px rgba(17,42,63,var(--ctp-bo-shadow-alpha,.06)),inset 0 1px 0 rgba(255,255,255,.85);font-size:var(--ctp-bo-base-font,14px);line-height:1.45}
body.ctp-bo-body.ctp-site-fluid .ctp-bo-content{max-width:none!important}
/* Frontend width is scoped to portal content; WordPress theme header/footer stay untouched. */
body:not(.ctp-bo-body) :is(.ctp-portal,[data-ctp-itsm]):not(.ctp-portal [data-ctp-itsm]){box-sizing:border-box;width:100%;max-width:var(--ctp-site-width,1440px);margin:16px auto 24px;padding:var(--ctp-bo-content-padding,14px);background:var(--ctp-bo-panel-bg,#fff);border:1px solid var(--ctp-bo-border,#dce5ee);border-radius:var(--ctp-bo-radius,12px);box-shadow:0 12px 32px rgba(17,42,63,var(--ctp-bo-shadow-alpha,.06)),0 2px 6px rgba(17,42,63,var(--ctp-bo-shadow-alpha,.06))}
body.ctp-site-fluid:not(.ctp-bo-body) :is(.ctp-portal,[data-ctp-itsm]):not(.ctp-portal [data-ctp-itsm]){max-width:none}
body.ctp-bo-body .ctp-bo-topbar{padding:5px 12px;gap:8px;min-height:50px}
body.ctp-bo-body .ctp-bo-content :is(.ctp-bo-grid,.ctp-bo-form-grid,.ctp-bo-editor-main,.ctp-bo-editor-side,.ctp-itsm-detail-main,.ctp-itsm-detail-aside){gap:var(--ctp-bo-spacing,10px)}
body.ctp-bo-body .ctp-bo-content .ctp-bo-panel{padding:10px!important;margin-bottom:10px;border-radius:9px}
body.ctp-bo-body .ctp-bo-content :is(.ctp-bo-panel-head,.ctp-bo-section-title,.ctp-bo-page-heading){margin-bottom:8px!important;gap:6px 10px!important}
body.ctp-bo-body .ctp-bo-content :is(.ctp-bo-page-heading h1,.ctp-bo-dashboard-heading h1){font-size:var(--ctp-bo-page-title,24px)!important;line-height:1.2}
body.ctp-bo-body .ctp-bo-content :is(.ctp-bo-panel-head h2,.ctp-bo-section-title h2,.ctp-bo-widget-head h2){font-size:var(--ctp-bo-card-title,16px)!important;line-height:1.3}
body.ctp-bo-body .ctp-bo-content :is(.ctp-bo-btn,input,select,textarea){font-size:var(--ctp-bo-base-font,14px)!important}
body.ctp-bo-body .ctp-bo-content :is(.ctp-bo-help,.ctp-appearance-help,.ctp-bo-field>small,.ctp-bo-panel-head p,.ctp-bo-page-heading p){font-size:max(12px,calc(var(--ctp-bo-base-font,14px) - 1px))!important;line-height:1.4;margin-top:3px;margin-bottom:6px}
body.ctp-bo-body .ctp-bo-content .ctp-bo-table :is(th,td){padding:7px 9px;font-size:var(--ctp-bo-base-font,14px)}
.ctp-site-width-toggle{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid #ccd9e2;border-radius:6px;background:#fff;color:#264b62;min-height:32px;padding:5px 9px;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer;flex:0 0 auto}
.ctp-site-width-toggle:focus-visible{outline:2px solid #177bc4;outline-offset:2px}.ctp-site-layout-tools{display:flex;justify-content:flex-end;gap:6px;margin:0 0 8px}
.ctp-context-help{margin:4px 0 8px;font-size:12px;border:0;padding:0;color:#647b8b;max-width:75ch}.ctp-context-help>summary{font-size:12px;font-weight:600;cursor:pointer;list-style:revert}.ctp-context-help>p{margin:6px 0!important}
/* Native ticket screens use the same scale; compact spacing does not require miniature text. */
body.ctp-bo-body .ctp-itsm{font-size:var(--ctp-bo-base-font,14px);padding:12px!important}
body.ctp-bo-body .ctp-itsm :is(.ctp-desk-dashboard,.ctp-itsm-detail-grid,.ctp-desk-metrics){gap:8px;margin-bottom:8px}
body.ctp-bo-body .ctp-itsm :is(.ctp-desk-kpis,.ctp-desk-dashboard-charts){gap:8px}
body.ctp-bo-body .ctp-itsm .ctp-desk-keyfacts>div{padding:9px 10px;gap:3px}
body.ctp-bo-body .ctp-itsm .ctp-desk-keyfacts strong{font-size:var(--ctp-bo-base-font,14px)}
body.ctp-bo-body .ctp-itsm :is(.ctp-desk-keyfacts small,.ctp-desk-caption,.ctp-desk-kpis small,.ctp-desk-chart>small,.ctp-itsm-event-heading>time,.ctp-desk-clock>small,.ctp-desk-bar>small,.ctp-desk-row-subject){font-size:11px!important}
body.ctp-bo-body .ctp-itsm :is(.ctp-itsm-toolbar label,.ctp-customer-picker>label,.ctp-itsm-facts dt,.ctp-itsm-facts dd,.ctp-desk-clock p,.ctp-desk-chart>header>strong,.ctp-itsm-card>h4,.ctp-itsm-source>summary,.ctp-desk-table th>button){font-size:12px!important}
body.ctp-bo-body .ctp-itsm :is(.ctp-itsm-toolbar button,.ctp-itsm-toolbar input,.ctp-itsm-toolbar select,.ctp-itsm-actions button,.ctp-itsm-badge,.ctp-itsm-tabs button,.ctp-itsm-compose button){font-size:12px!important}
body.ctp-bo-body .ctp-itsm :is(.ctp-itsm-event,.ctp-desk-cause p,.ctp-desk-table td){font-size:13px}
body.ctp-bo-body .ctp-itsm .ctp-desk-table td{height:47px;padding:6px 9px}.ctp-itsm .ctp-desk-table .ctp-itsm-title{font-size:12px!important}
body.ctp-bo-body .ctp-itsm .ctp-itsm-detail-heading>h3{font-size:20px!important}.ctp-desk-keyfacts{grid-template-columns:1.05fr .8fr 1.4fr .65fr 1.25fr .9fr}
body.ctp-bo-body .ctp-itsm .ctp-itsm-toolbar{padding:8px 10px;gap:8px}
@media(max-width:1180px){body.ctp-bo-body .ctp-itsm .ctp-desk-keyfacts{grid-template-columns:repeat(3,minmax(0,1fr))}.ctp-itsm .ctp-desk-dashboard{grid-template-columns:1fr}.ctp-itsm .ctp-desk-dashboard-charts{display:none}}
@media(max-width:720px){body.ctp-bo-body .ctp-bo-content{width:calc(100% - 16px);margin:8px auto 16px;padding:10px!important}body.ctp-bo-body .ctp-bo-topbar{padding:6px 9px}.ctp-site-width-toggle{min-height:36px}.ctp-itsm .ctp-desk-keyfacts{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body.ctp-bo-body .ctp-bo-content{container-type:inline-size}
@container(max-width:1050px){.ctp-itsm .ctp-desk-keyfacts{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ctp-itsm .ctp-desk-dashboard{grid-template-columns:1fr}.ctp-itsm .ctp-desk-dashboard-charts{display:none}.ctp-itsm .ctp-desk-clock{grid-template-columns:1fr auto}.ctp-itsm .ctp-desk-metrics{grid-template-columns:1fr}.ctp-itsm .ctp-itsm-inline-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ctp-itsm .ctp-desk-clock .ctp-ticket-timer{grid-column:2;grid-row:1/5;align-self:center;display:grid;grid-template-columns:40px auto;gap:2px 9px;align-items:center;padding:10px 13px;border:1px solid #b8dcd9;border-radius:13px;background:linear-gradient(130deg,#f3fbfa,#e8f6f3);min-width:145px;color:#17756f}
.ctp-ticket-timer>svg{grid-column:1;grid-row:1/3;width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ctp-ticket-timer>svg circle{stroke-width:2.5;opacity:.45}.ctp-ticket-timer>svg polyline{stroke-width:2.8}
.ctp-itsm .ctp-ticket-timer .ctp-desk-elapsed{grid-column:2;grid-row:1;font-size:25px!important;line-height:1.1;font-weight:750;letter-spacing:-.7px;font-variant-numeric:tabular-nums;color:inherit}.ctp-ticket-timer .ctp-timer-state{grid-column:2;grid-row:2;font-size:11px;font-weight:650;display:flex;align-items:center;gap:5px}.ctp-timer-state:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #16807612}
.ctp-ticket-timer[data-state=pending],.ctp-ticket-timer[data-state=waiting_customer],.ctp-ticket-timer[data-state=waiting_support]{background:linear-gradient(130deg,#fffaf0,#fff1d8)!important;border-color:#e5d5af!important;color:#997020!important}.ctp-ticket-timer[data-state=closed],.ctp-ticket-timer[data-state=cancelled]{color:#5b7182!important;background:#f3f6f9!important;border-color:#d9e2e9!important}
.ctp-checkmk-origin-link{display:inline-flex;align-items:center;padding:5px 10px;background:#e9f5ef;color:#25684e;border:1px solid #bcd9ca;border-radius:7px;font-size:12px;font-weight:650;text-decoration:none;min-height:29px}.ctp-checkmk-origin-link:hover{background:#dff0e8}.ctp-checkmk-origin-link:focus-visible{outline:2px solid #197bc4;outline-offset:2px}

.ctp-ticket-search{position:relative;min-width:200px}.ctp-ticket-suggestions{position:absolute;top:100%;left:0;min-width:320px;width:max-content;max-width:min(520px,85vw);max-height:300px;overflow:auto;z-index:80;background:#fff;border:1px solid #bacbdc;border-radius:9px;box-shadow:0 10px 28px #15334d26;padding:4px}.ctp-ticket-suggestions[hidden]{display:none}.ctp-ticket-suggestions [role=option]{padding:8px 10px;cursor:pointer;border-radius:5px;font-size:13px;line-height:1.4;white-space:normal}.ctp-ticket-suggestions [role=option][aria-selected=true],.ctp-ticket-suggestions [role=option]:hover{background:#e8f2fc}.ctp-ticket-suggestions strong{color:#073857}.ctp-ticket-search-status{padding:8px 10px;font-size:12px;color:#526b80}
