@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--navy:#111b31;--navy2:#192741;--blue:#3765e9;--bg:#f4f6fb;--line:#e4e8f1;--muted:#718098;--text:#202c42}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif;font-size:14px}a{text-decoration:none;color:inherit}.shell{display:flex;min-height:100vh}.sidebar{width:260px;flex-shrink:0;background:var(--navy);color:#c4cee0;padding:28px 16px}.logo{display:flex;align-items:center;gap:11px;color:white;font-weight:800;font-size:17px;margin:0 8px 42px}.brandmark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#416bf2;color:white;font-weight:800}.sidebar a{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:10px;margin:5px 0;font-weight:600}.sidebar a:hover,.sidebar a.active{background:var(--navy2);color:white}.sidebar .bottom{margin-top:45px;border-top:1px solid #344059;padding-top:18px}.main{min-width:0;flex:1}.topbar{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 35px}.content{padding:32px 35px;max-width:1650px;margin:auto}.eyebrow{font-size:12px;color:var(--blue);font-weight:800;letter-spacing:1.2px;text-transform:uppercase}h1{font-size:27px;letter-spacing:-.7px;margin:8px 0 7px}h2{font-size:18px;margin:0 0 16px}.muted{color:var(--muted)}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.card,.panel{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 7px 25px #243b6110}.card{padding:23px}.metric{font-size:33px;font-weight:800;margin:13px 0 4px}.panel{padding:24px;margin-bottom:22px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.btn{border:0;display:inline-block;cursor:pointer;background:#eaf0ff;color:#2d55c5;padding:11px 16px;border-radius:9px;font-weight:700;font:inherit}.btn.primary{background:var(--blue);color:white}.btn.danger{background:#fff0f0;color:#c43232}.btn.small{padding:7px 10px;font-size:12px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{color:#78869a;text-transform:uppercase;letter-spacing:.6px;font-size:11px}td,th{padding:15px 11px;border-bottom:1px solid var(--line)}tr:last-child td{border:0}.pill{display:inline-block;padding:5px 9px;border-radius:30px;background:#e7f7ed;color:#19854b;font-size:12px;font-weight:700}.pill.off{background:#f0f1f4;color:#778094}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.field label,.loginbox label{display:block;font-weight:650;font-size:12px;margin-bottom:7px}.field input,.field select,.field textarea,.loginbox input,.search{width:100%;border:1px solid #dce2ed;border-radius:9px;padding:11px 12px;background:white;color:#24324a;font:inherit;outline-color:var(--blue)}.field textarea{min-height:90px}.field.wide{grid-column:1/-1}.formfoot{margin-top:22px;display:flex;gap:10px}.alert{background:#fff1ef;color:#b53226;border-radius:9px;padding:13px;margin:12px 0}.success{background:#eaf8ee;color:#167541}.loginbody{display:grid;place-items:center;min-height:100vh;background:linear-gradient(130deg,#101c34,#28448a)}.loginbox{background:white;border-radius:20px;width:min(420px,92vw);padding:38px;box-shadow:0 25px 90px #0003}.loginbox h1{font-size:24px}.loginbox p{color:var(--muted);margin-bottom:28px}.loginbox label{margin-top:17px}.loginbox button{margin-top:23px}.logoimg{height:38px;width:62px;object-fit:contain}.map{height:580px;border-radius:14px;background:#e9edf3}.hint{background:#eef4ff;padding:12px 15px;border-radius:10px;color:#31518c;margin-bottom:15px}.filterrow{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:16px}.filterrow select{min-width:180px;padding:10px;border:1px solid var(--line);border-radius:9px}.maptoolbar{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.hidden{display:none!important}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.sidebar{width:215px}}@media(max-width:700px){.shell{display:block}.sidebar{width:100%;padding:10px;display:flex;overflow-x:auto;gap:5px}.sidebar .logo,.sidebar .bottom{display:none}.sidebar a{white-space:nowrap;padding:10px}.topbar{padding:0 18px;height:60px}.content{padding:20px 15px}.cards{grid-template-columns:repeat(2,1fr)}.pagehead{align-items:start;flex-direction:column}.formgrid{grid-template-columns:1fr}.field.wide{grid-column:auto}.map{height:450px}}
/* V1.2: selezione rapida nazioni */
.country-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;max-height:140px;overflow:auto}.country-suggestions button,.country-tag{border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;border-radius:18px;padding:7px 12px;cursor:pointer;font:inherit}.country-tag{background:#dbeafe;border-color:#93c5fd}.country-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}

/* V1.3: selezione multipla nazioni */
.country-suggestions{display:flex;flex-direction:column;gap:3px;max-height:240px;overflow-y:auto;margin-top:5px;position:relative;z-index:5}
.country-option{display:block;width:100%;text-align:left;cursor:pointer;padding:10px 12px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#17243b}
.country-option:hover,.country-option:focus{background:#eaf2ff;border-color:#4f8ee8}
.country-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.country-tag{display:inline-flex;align-items:center;gap:9px;border-radius:18px;background:#eaf2ff;color:#173f80;padding:6px 10px;font-size:13px}
.country-tag button{border:0;background:transparent;color:#173f80;cursor:pointer;font-weight:bold;font-size:18px;line-height:1}
