/* Home Amministrazione: riuso dei componenti grafici della Home HR. */
#ammhome{max-width:1500px;margin:auto;display:grid;gap:18px;min-width:0;width:100%}
#ammhome h2,#ammhome h3{margin:0 0 10px;overflow-wrap:anywhere}
#ammhome p{margin:6px 0;overflow-wrap:anywhere}
#ammhome .hrhome-header{flex-wrap:wrap}
#ammhome .hrhome-header-actions{justify-content:flex-end}
#ammhome .hrhome-header h2{font-size:28px}
#ammhome .hrhome-daily-actions a{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);text-decoration:none;min-width:0}
#ammhome .hrhome-daily-actions a b{font-size:16px;overflow-wrap:anywhere}
#ammhome .hrhome-daily-actions a span{color:var(--mut);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#ammhome .hrhome-daily-actions a:hover{border-color:var(--brand);background:var(--soft)}
#ammhome .hrhome-filters{grid-template-columns:minmax(185px,1fr) minmax(220px,1.4fr) auto auto}
#ammhome .hrhome-filters .btn{align-self:end}
#ammhome .hrhome-kpis b{font-size:clamp(21px,2.3vw,30px);overflow-wrap:anywhere;line-height:1.15}
#ammhome .hrhome-kpis>.card{min-width:0}
#ammhome .hrhome-pending{margin-top:15px}
#ammhome .hrhome-pending a{color:var(--ink);overflow-wrap:anywhere}
#ammhome .hrhome-pending a:hover{color:var(--brand)}
#ammhome .hrhome-flow a{min-width:0;overflow-wrap:anywhere}
#ammhome .hrhome-flow a>span{background:var(--brand);color:var(--onbrand)}
#ammhome .hrhome-sites{min-width:680px;table-layout:auto}
#ammhome .hrhome-sites th,#ammhome .hrhome-sites td{overflow-wrap:anywhere}
#ammhome .hrhome-sites td:nth-child(2){max-width:300px}
#ammhome #ammhome-guide summary{cursor:pointer}
#ammhome #ammhome-guide li{margin:16px 0}
#ammhome a.btn{text-decoration:none;color:var(--ink)}
#ammhome a.btn.pri{color:var(--onbrand)}
#ammhome a:focus-visible,#ammhome button:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
@media(max-width:1000px){#ammhome .hrhome-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#ammhome .hrhome-header-actions{justify-content:flex-start}}
@media(max-width:600px){#ammhome .hrhome-filters,#ammhome .hrhome-kpis,#ammhome .hrhome-daily-actions{grid-template-columns:minmax(0,1fr)}#ammhome .hrhome-header h2{font-size:27px}#ammhome .hrhome-kpis b{font-size:26px}#ammhome .hrhome-filters .btn{width:100%}#ammhome .hrhome-start{padding:18px}#ammhome .hrhome-start h3{font-size:21px!important}}
#ammhome>* ,#ammhome .card,#ammhome .scroll{min-width:0;max-width:100%}
#ammhome .scroll{overflow-x:auto}
#ammhome .hrhome-sites{min-width:680px;width:100%}
#ammhome .hrhome-header>div,#ammhome .hrhome-start,#ammhome .hrhome-flow,#ammhome .hrhome-daily,#ammhome .hrhome-daily-actions{min-width:0;max-width:100%}

/* Aree operative: collegamenti leggibili, raggruppati per attività. */
#ammhome .amm-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px;align-items:start}
#ammhome .amm-tool-group{border:1px solid var(--line);border-top:4px solid var(--brand);border-radius:14px;padding:20px;min-width:0;background:var(--card)}
#ammhome .amm-tool-group h4{font-size:17px;line-height:1.4;margin:0 0 16px;text-align:left;color:var(--ink)}
#ammhome .amm-tool-group a{display:flex;align-items:flex-start;gap:12px;padding:17px 0;border-top:1px solid var(--line);min-height:104px;text-decoration:none;text-align:left;color:var(--ink);min-width:0}
#ammhome .amm-tool-group a>span:nth-child(2){flex:1;min-width:0}
#ammhome .amm-tool-group a b{font-size:14px;line-height:1.5;display:block}
#ammhome .amm-tool-group a small{display:block;font-size:12px;line-height:1.6;color:var(--mut);margin-top:6px}
#ammhome .amm-tool-group a>span:last-child{align-self:center;color:var(--mut)}
#ammhome .amm-tool-icon{display:flex;padding:9px;background:var(--soft);color:var(--brand);border-radius:9px}
#ammhome .amm-tool-icon svg{width:20px;height:20px}
#ammhome .amm-tool-group a:hover{background:var(--soft)}
@media(max-width:1050px){#ammhome .amm-tools{grid-template-columns:1fr}#ammhome .amm-tool-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}}
@media(max-width:600px){#ammhome .amm-tool-group>div{display:block}#ammhome .amm-tool-group{padding:18px}}
