﻿.workspace-sidebar,.workspace-shell-only{display:none}
html.workspace-shell{overflow:hidden;scrollbar-gutter:auto}
.workspace-shell body{height:100vh;overflow:hidden;background:#f3f6fa}
.workspace-shell #form1{height:100vh;min-height:0;margin-left:240px;display:flex;flex-direction:column}
.workspace-shell .workspace-sidebar{display:flex;position:fixed;inset:0 auto 0 0;width:240px;box-sizing:border-box;flex-shrink:0;flex-direction:column;background:#163f6c;color:white;z-index:1500;overflow:hidden}
.workspace-brand{padding:27px 24px 24px;color:#fff;text-decoration:none;font-size:25px;white-space:nowrap;letter-spacing:-.6px}
.workspace-brand strong{font-weight:700}.workspace-brand span{font-weight:300}.workspace-brand small{display:block;font-size:10px;letter-spacing:2px;margin-top:7px;color:#c1d4e9}
.workspace-nav{padding:8px}.workspace-nav a{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:7px;color:#e9f1fa;text-decoration:none;font-size:14px}.workspace-nav a:hover,.workspace-nav a.active{background:#35699f;color:#fff}.workspace-nav i{width:21px;text-align:center;font-size:18px}.workspace-nav details{margin-bottom:3px}.workspace-nav summary{list-style:none;display:flex;align-items:center}.workspace-nav summary>a{flex:1}.workspace-nav summary::after{content:'+';display:flex;align-items:center;justify-content:center;flex:0 0 22px;height:22px;margin:0 9px 0 3px;border:1px solid rgba(233,241,250,.25);border-radius:50%;color:#dce9f7;font-family:Arial,sans-serif;font-size:16px;font-weight:400;line-height:1;cursor:pointer}.workspace-nav details[open]>summary::after{content:'−';background:rgba(255,255,255,.08)}.workspace-nav summary::-webkit-details-marker{display:none}.workspace-nav details>div{padding:0 0 4px 26px}.workspace-nav details>div a{font-size:12px;padding:5px 12px;color:#ffd45c;text-transform:uppercase}.workspace-nav details>div a:hover,.workspace-nav details>div a.active,.workspace-nav details>div a:focus-visible{color:#ffe59a}.workspace-nav .workspace-disabled{display:block;padding:12px 15px;color:#91a9c2;font-size:13px}.workspace-sidebar-bottom{margin:auto 20px 15px;padding-top:20px;font-size:11px;color:#c1d4e9}
.workspace-nav .workspace-submenu-divider{display:block;height:1px;margin:7px 12px;background:rgba(255,255,255,.28)}
.workspace-shell .fenapi-header{min-height:68px;height:68px;padding:0 24px;background:#fff;box-shadow:0 1px 5px #143c6020;display:flex;justify-content:space-between;color:#173c64;flex-shrink:0}
.workspace-shell .fenapi-header>.fenapi-logo-container,.workspace-shell .fenapi-menu-container{display:none!important}
.workspace-shell .fenapi-header-user{margin-left:auto}.workspace-shell .fenapi-user-name,.workspace-shell .fenapi-user-role,.workspace-shell .fenapi-user,.workspace-shell .fenapi-logout,.workspace-shell .fenapi-new-window{color:#173c64!important}
.workspace-shell .workspace-shell-only{display:flex;align-items:center;gap:10px}.workspace-breadcrumb{font-size:13px;color:#75879c}.workspace-breadcrumb strong{color:#163f6c;font-weight:600}
.workspace-shell .fenapi-main{padding:0!important;margin:0!important;min-height:0!important;flex:1;display:flex;flex-direction:column;overflow:hidden;width:100%!important}
.workspace-tabs-bar{display:none}.workspace-shell .workspace-tabs-bar{display:flex;align-items:center;flex:1;min-width:0;background:transparent;border:0;padding:0;gap:6px}
#workspace-tabs{display:flex;gap:5px;overflow-x:auto;flex:1;scrollbar-width:thin}.workspace-tab{display:flex;align-items:center;flex-shrink:0;border:1px solid transparent;border-radius:7px 7px 0 0;background:#dce6f1}.workspace-tab.active{background:#fff;border-color:#d2deeb;border-bottom-color:#fff;box-shadow:inset 0 3px #2b7ccc}.workspace-tab button{border:0;background:transparent;color:#42627f;cursor:pointer;padding:13px 12px;font-family:inherit;font-size:12px}.workspace-tab.active>button{color:#153f6b;font-weight:600}.workspace-tab .workspace-tab-close{font-size:20px;padding:5px 10px;font-weight:400}.workspace-tab button:focus-visible,.workspace-toolbar-button:focus-visible{outline:2px solid #2b7ccc;outline-offset:-3px}.workspace-toolbar-button{border:0;background:transparent;color:#284c70;padding:9px;cursor:pointer}
#workspace-panels{flex:1;min-height:0;position:relative;background:#f5f7fa}#workspace-panels>section{height:100%}#workspace-panels>section[hidden]{display:none}#workspace-panels iframe{width:100%;height:100%;border:0;display:block;background:#f5f7fa}
.workspace-shell .fenapi-footer{flex-shrink:0;background:#fff!important;border-top:1px solid #dce5ee;min-height:42px!important;font-size:10px}.workspace-shell .footer-support,.workspace-shell .footer-actions,.workspace-shell .footer-platform{display:none!important}.workspace-shell .footer-left{width:100%;display:flex!important;justify-content:space-between;align-items:center}
.workspace-child .fenapi-header,.workspace-child .fenapi-footer,.workspace-child .workspace-sidebar{display:none!important}.workspace-child .fenapi-main{padding:24px!important}.workspace-child .menu-hub,.workspace-child .page-container{width:100%;max-width:none;margin-left:auto;margin-right:auto}.workspace-child .menu-hub-header{margin-bottom:25px}.workspace-child .menu-hub-title{font-size:30px;color:#12375f}.workspace-child .menu-hub-grid{gap:16px}.workspace-child .menu-hub-card{background:#fff;border:1px solid #d1dfec;border-radius:8px;box-shadow:none;padding:22px;min-height:94px}.workspace-child .menu-hub-card-icon{background:transparent;color:#155b98}.workspace-child .menu-hub-group-title{color:#153f6b}
@media(max-width:1000px){.workspace-shell #form1{margin-left:200px}.workspace-shell .workspace-sidebar{width:200px}.workspace-brand{font-size:21px;padding:25px 16px}.workspace-nav a{font-size:13px}}
@media(max-width:760px){.workspace-shell #form1{margin-left:0}.workspace-shell .workspace-sidebar{transform:translateX(-100%);width:230px}.workspace-menu-open .workspace-sidebar{transform:none;top:68px}.workspace-shell .fenapi-header{padding:0 12px}.workspace-child .fenapi-main{padding:12px!important}.workspace-breadcrumb{font-size:11px}.workspace-shell .fenapi-user-role{display:none}}
.workspace-shell .fenapi-footer,.workspace-shell .fenapi-footer .footer-main,.workspace-shell .fenapi-footer .footer-small{color:#526b88!important}
.workspace-child .menu-hub,.workspace-child .page-container{box-sizing:border-box}
.workspace-shell #workspace-menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #c9d7e4;border-radius:5px;background:#f1f6fb}
.workspace-shell #workspace-menu-toggle:hover{background:#dce8f4}
.workspace-shell.workspace-menu-closed #form1{margin-left:0}
.workspace-shell.workspace-menu-closed .workspace-sidebar{display:none}

/* Le risorse delle icone DevExpress sono registrate dal MainMenu della master. */
.workspace-nav details>div a{gap:8px}.workspace-nav .workspace-submenu-icon{display:inline-block;flex:0 0 16px;width:16px;height:16px;object-fit:contain;filter:brightness(0) invert(85%)}

/* Terzo livello: schede orizzontali compatte all'interno della pagina. */
.section-workspace{width:100%;box-sizing:border-box}
.section-toolbar{display:flex;align-items:center;min-height:36px;background:#163f6c;border-radius:5px;overflow:hidden}
.section-toolbar-title{flex:0 0 auto;margin:0;padding:0 14px;color:#e9f1fa;font-size:14px;font-weight:600;line-height:36px;border-right:1px solid #ffffff26}
.section-tabs{display:flex;align-items:stretch;min-width:0;overflow-x:auto;scrollbar-width:thin}
.section-tabs button,.section-tabs a{display:inline-flex;align-items:center;flex:0 0 auto;box-sizing:border-box;min-height:36px;padding:7px 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:#ffd45c;font-family:inherit;font-size:12px;line-height:20px;cursor:pointer;white-space:nowrap;text-decoration:none}
.section-tabs button:hover,.section-tabs a:hover{background:#285583;color:#ffe59a}
.section-tabs button[aria-selected="true"],.section-tabs a[aria-current="page"]{background:#35699f;color:#ffe59a;border-bottom-color:#ffd45c}
.section-tabs button:focus-visible,.section-tabs a:focus-visible{outline:2px solid #ffe59a;outline-offset:-4px}
.section-tabs .section-tabs-divider{flex:0 0 1px;align-self:stretch;width:1px;min-height:24px;margin:6px 5px;background:rgba(255,255,255,.32)}
.section-tab-panel{padding:18px 4px;color:#183758}
.section-tab-panel[hidden]{display:none}
.section-tab-panel h2{margin:0 0 8px;font-size:18px;font-weight:600}
.section-tab-panel p{margin:0 0 10px;font-size:13px;color:#5d7285}
.section-tab-panel .section-placeholder{margin-top:18px;font-size:12px;color:#6b7e90}
@media(max-width:760px){.section-toolbar-title{padding:0 10px}.section-tabs button,.section-tabs a{padding-left:10px;padding-right:10px}}

/* Schede di lavoro nella stessa riga di percorso e utente. */
.workspace-shell .fenapi-header{gap:16px;min-width:0;flex-wrap:nowrap}
.workspace-shell .workspace-header-location{flex:0 1 auto;min-width:0;max-width:190px}
.workspace-header-location .workspace-breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-shell .fenapi-header-user{flex:0 0 auto;margin-left:0}
.workspace-tabs-bar #workspace-tabs{min-width:0;align-items:center;padding:3px 0}
.workspace-tabs-bar .workspace-tab{border-radius:5px;height:34px;box-sizing:border-box}
.workspace-tabs-bar .workspace-tab.active{border-bottom-color:#d2deeb}
.workspace-tabs-bar .workspace-tab>button[role="tab"]{padding:8px 12px;white-space:nowrap}
.workspace-tabs-bar #workspace-reload{flex:0 0 auto}
.workspace-shell .workspace-header-location #workspace-reload{
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;
    padding:0;border:1px solid #c9d7e4;border-radius:5px;background:#f1f6fb
}
.workspace-shell .workspace-header-location #workspace-reload:hover{background:#dce8f4}
@media(max-width:1000px){.workspace-shell .fenapi-header{gap:10px}.workspace-shell .workspace-header-location{max-width:135px}}
@media(max-width:760px){.workspace-header-location .workspace-breadcrumb{display:none}.workspace-shell .fenapi-header{gap:6px}.workspace-shell .fenapi-user-area{gap:6px}.workspace-shell .fenapi-user-info{display:none}.workspace-tabs-bar .workspace-tab>button[role="tab"]{padding:8px}.workspace-tabs-bar .workspace-tab-close{padding-left:6px;padding-right:6px}}

.workspace-brand-logo-frame{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:6px;background:rgba(255,255,255,.75)}
.workspace-brand-logo{display:block;width:100%;height:auto;max-width:192px;opacity:1}

/* Logo compatto: sfondo bianco con opacità al 90%. */
.workspace-sidebar .workspace-brand{padding:10px 24px 8px}
.workspace-brand-logo-frame{max-width:164px;margin:0 auto;padding:3px 6px;background:rgba(255,255,255,.90)}
.workspace-brand-logo{max-width:164px}
.workspace-brand small{margin-top:4px;text-align:center}

.workspace-nav-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 17px 0;padding:5px 5px 7px;border-bottom:1px solid #ffffff20}
.workspace-nav-tools>span{color:#c1d4e9;font-size:11px;letter-spacing:.5px}
.workspace-nav-tools>div{display:flex;gap:8px}
.workspace-menu-circle{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:28px;flex:0 0 28px;padding:0;border:1px solid;border-radius:50%;font:400 21px/1 Arial,sans-serif;cursor:pointer;transition:background-color .15s,border-color .15s}
.workspace-menu-expand{background:#dcebf6;border-color:#bdd4e5;color:#24567c}
.workspace-menu-expand:hover{background:#edf6fc;border-color:#e1eff9}
.workspace-menu-collapse{background:#dfece7;border-color:#bfd6cb;color:#3f6758}
.workspace-menu-collapse:hover{background:#eff7f3;border-color:#e0eee6}
.workspace-menu-circle:focus-visible{outline:2px solid #ffd45c;outline-offset:3px}

/* Espandi/chiudi modifica solo l'elenco, senza comprimere logo e comandi. */
.workspace-sidebar>.workspace-brand,.workspace-nav-tools,.workspace-sidebar-bottom{flex:0 0 auto}
.workspace-sidebar-bottom{margin:0 20px 15px}
.workspace-nav{width:100%;min-width:0;min-height:0;box-sizing:border-box;flex:1 1 0;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;scrollbar-color:#e9f1fa #163f6c;scrollbar-width:thin}
.workspace-nav::-webkit-scrollbar{width:9px;background:#163f6c}
.workspace-nav::-webkit-scrollbar-track{background:#163f6c}
.workspace-nav::-webkit-scrollbar-thumb{background:#e9f1fa;border:2px solid #163f6c;border-radius:8px}
.workspace-nav::-webkit-scrollbar-thumb:hover{background:#fff}
.workspace-nav details,.workspace-nav summary,.workspace-nav details>div{min-width:0;max-width:100%;box-sizing:border-box}
.workspace-nav a{min-width:0;box-sizing:border-box}
.workspace-nav a>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-nav a>i{flex:0 0 21px}
.workspace-nav .workspace-disabled{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Adattamento dello stemma e dei gruppi a più livelli di Taormina. */
.taormina-stemma{width:auto;height:65px;max-width:100%;object-fit:contain}
.workspace-brand-logo-frame{max-width:164px}
.taormina-brand-title{display:block;margin-top:6px;text-align:center;font-size:16px;letter-spacing:0}
.taormina-header-stemma{height:48px;width:48px;object-fit:contain}
.workspace-nav summary{cursor:pointer;border-radius:7px}
.workspace-nav summary:hover{background:#35699f}
.workspace-group-label{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:13px 15px;font-size:14px}
.workspace-group-label>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-nav details>div .workspace-group-label{font-size:12px;padding:7px 12px;color:#ffd45c}
.workspace-nav details>div{padding-left:15px}
.workspace-nav .workspace-disabled{display:flex;align-items:center;gap:12px}
.fenapi-header{grid-template-columns:minmax(230px,1fr) auto}
.workspace-shell .fenapi-user-avatar{color:#173c64;background:#eaf1f7}
.workspace-shell .footer-main{flex:0 0 auto;white-space:nowrap;font-size:11px}
.workspace-shell .footer-left{gap:12px}
.workspace-shell .footer-small{min-width:0}
#webstrWait{color:#183758}.webstr-wait-spinner{border-color:#dce8f2;border-top-color:#1e5d8d}
@media(max-width:760px){.workspace-shell .footer-left{gap:3px;align-items:flex-start;flex-direction:column}.workspace-shell .footer-small{font-size:9px;max-width:100%}.workspace-shell #fenapiLastCommand{display:none}.fenapi-main{padding:12px}.fenapi-header{grid-template-columns:minmax(150px,1fr) auto;padding:0 12px}}

/* Unauthorized entries stay discoverable; only their destinations are disabled. */
.workspace-nav .workspace-disabled{color:#a4b7c9;cursor:default;user-select:none}
.workspace-nav details>div .workspace-disabled{font-size:12px;padding:5px 12px;text-transform:uppercase}
.workspace-nav .workspace-group-unavailable>summary .workspace-group-label{color:#a4b7c9}
.workspace-nav .workspace-group-unavailable>summary::after{color:#a4b7c9;border-color:rgba(164,183,201,.25)}
.fenapi-user-dropdown .fenapi-menu-disabled{display:flex;align-items:center;gap:9px;padding:10px 12px;color:#93a2b0;font-size:12px;border-radius:5px;cursor:default}
