/* Navigazione condivisa portale/admin; senza JS rimane il menu esistente. */
.mobile-nav-toggle,.mobile-nav-close,.mobile-nav-backdrop{box-sizing:border-box}
.mobile-nav-toggle[hidden],.mobile-nav-close[hidden],.mobile-nav-backdrop[hidden]{display:none!important}
.mobile-nav-toggle,.mobile-nav-close{font:600 14px/1 Arial,sans-serif;min-height:44px;min-width:44px;border:1px solid #46667f;background:#18364d;color:#eef8ff;border-radius:8px;cursor:pointer;align-items:center;justify-content:center;gap:7px}
.mobile-nav-toggle:focus-visible,.mobile-nav-close:focus-visible{outline:3px solid #09b7fc;outline-offset:3px}
.mobile-nav-toggle{display:none}.mobile-nav-close{display:none}
.sidebar nav a[aria-current="page"]{background:#1c3549;color:#fff}
.table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.table-scroll-hint{display:none}
/* Il titolo non deve ridursi a una colonna di singole lettere accanto all'account. */
@media(max-width:600px){
 .mobile-nav-ready .topbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
 .topbar .topbar-location{width:100%;max-width:100%;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .topbar .account{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
 html{scroll-padding-top:160px;scroll-padding-bottom:70px}
}
@media(max-width:1024px){
 .mobile-nav-ready .mobile-nav-toggle{display:inline-flex;position:fixed;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:110}
 .mobile-nav-ready .mobile-nav-close{display:inline-flex;position:absolute;top:12px;right:12px}
 .mobile-nav-ready [data-mobile-nav]{box-sizing:border-box;display:flex;position:fixed!important;inset:0 auto 0 0!important;width:min(330px,90vw)!important;height:100dvh;max-height:100dvh;padding:70px 20px 24px!important;z-index:1300;background:#10202e;border-right:1px solid #355169;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease}
 .mobile-nav-ready .mobile-menu-open [data-mobile-nav]{transform:translateX(0);visibility:visible}
 .mobile-nav-backdrop{position:fixed;inset:0;width:100%;height:100dvh;z-index:1200;border:0;border-radius:0;background:rgb(0 0 0 / 65%);padding:0;cursor:pointer;touch-action:manipulation}
 body.mobile-menu-open{overflow:hidden}
 .mobile-nav-ready [data-mobile-nav] nav{display:flex;flex-direction:column!important;flex-wrap:nowrap!important;gap:5px;margin-bottom:18px}
 .mobile-nav-ready [data-mobile-nav] nav a{padding:12px!important;font-size:15px!important;min-height:44px;align-items:center;line-height:1.35;overflow-wrap:anywhere}
 .mobile-nav-ready [data-mobile-nav] nav a span{display:inline-block!important;flex-shrink:0}
 .mobile-nav-ready [data-mobile-nav] .nav-label,.mobile-nav-ready .dggs-nav-label{display:block!important;font-size:11px;margin:14px 12px 8px}
 .mobile-nav-ready [data-mobile-nav] .sidebar-foot,.mobile-nav-ready .dggs-admin-foot{display:block!important}
 .mobile-nav-ready .sidebar .brand{width:100%;max-width:230px;margin:0 0 16px}
 .mobile-nav-ready .workspace{margin-left:0;width:100%;min-width:0}
 .mobile-nav-ready .topbar{position:sticky;top:0;z-index:100;height:auto;min-height:72px;padding:12px 16px 12px 98px;gap:10px}
 .topbar-location{min-width:0;overflow-wrap:anywhere;flex:1}
 .mobile-nav-ready body:not(.login):not(.popup) #container{width:100%;margin-left:0;min-width:0}
 .mobile-nav-ready body:not(.login):not(.popup) #header{min-height:76px;height:auto;flex:0 0 auto;flex-flow:column nowrap;align-items:stretch;padding-left:98px}
 .mobile-nav-ready #branding{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;min-width:0}
 .mobile-nav-ready #user-tools{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere;white-space:normal;text-align:left}
 .mobile-nav-ready body:not(.login):not(.popup) .epp-console,.mobile-nav-ready .epp-console{left:0}
 .dashboard-grid,.form-grid{grid-template-columns:minmax(0,1fr)}
 .dggs-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 main,#content,.panel{min-width:0;max-width:100%}
 .filters{flex-wrap:wrap;gap:12px}.filters input:not([type=hidden]),.filters select{flex:1 1 220px;min-width:0;max-width:100%;width:100%}
 .button,.text-button,.pagination a{min-height:44px;touch-action:manipulation}
 .button{white-space:normal;text-align:center}
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px}
 input[type=checkbox],input[type=radio]{min-width:20px;min-height:20px;vertical-align:middle}
 .panel-heading,.page-heading,.form-actions{flex-wrap:wrap}
 .epp-console>summary{min-height:44px}.epp-console[open]{max-height:65dvh}
 .console-columns{grid-template-columns:minmax(0,1fr)}
 .details{grid-template-columns:130px minmax(0,1fr)}
 .form-panel{width:100%}dialog{max-width:calc(100vw - 24px)}
}
@media(max-width:600px){
 main{padding:16px 12px}.page-heading{gap:14px;margin:24px 0}h1{font-size:26px;overflow-wrap:anywhere}
 .topbar{font-size:11px}.separator{margin:0 5px}.topbar .account{gap:6px}.account .badge{font-size:8px;padding:4px}
 .page-heading>div:last-child{max-width:100%}.panel-heading{padding:16px;gap:10px}.panel-heading a{white-space:normal}
 .metrics{gap:8px}.metric{padding:14px 12px}.metric strong{font-size:28px;margin:8px 0}.metric small{overflow-wrap:anywhere}
 .filters{padding:16px}.filters input:not([type=hidden]),.filters select,.filters>.button{flex-basis:100%;width:100%;min-width:0}
 .details{grid-template-columns:minmax(0,1fr);gap:6px;padding:16px}.details dd{margin-bottom:12px}
 .form-panel,.operation,.preview,.guide{padding:18px 16px}.field.wide{grid-column:auto}
 .form-actions{gap:12px}.form-actions .button{width:100%}.pagination{flex-wrap:wrap;padding:14px;gap:14px}
 .table-wrap table{min-width:660px}.table-wrap th,.table-wrap td{padding:12px;font-size:12px}
 .table-wrap{max-height:65dvh;overflow:auto}.table-wrap th{position:sticky;top:0;z-index:1}
 .table-wrap table:has(.empty){min-width:0}.table-scroll-hint:not([hidden]){display:block;padding:10px 14px;font-size:12px;color:#a9bdcc}
 .table-wrap td{max-width:240px;overflow-wrap:anywhere}.table-wrap .badge{white-space:normal}
 .console-toolbar{padding:12px}.console-toolbar form{gap:10px}.console-toolbar .button{min-height:44px}
 .epp-console>summary span{display:none}.epp-console>summary{font-size:12px;padding:12px}.console-columns{padding:12px}
 .dggs-admin-grid{grid-template-columns:minmax(0,1fr)}.dggs-admin-brand{max-width:220px;width:100%}
 #content,.dggs-dashboard #content{padding:20px 12px!important}#user-tools{font-size:11px}
 #changelist #toolbar form{display:flex;flex-wrap:wrap;gap:10px}#changelist .results{max-width:100%;overflow:auto}
 .selector{width:100%!important;display:block}.selector-available,.selector-chosen{width:100%!important;float:none}
 .submit-row{display:flex;flex-wrap:wrap;gap:10px}.submit-row input{min-height:44px}
 .form-panel img{max-width:100%;height:auto}footer{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.mobile-nav-ready [data-mobile-nav]{transition:none}}
