/* V3.3 PROFESSIONAL UI - compact time windows, editable deliveries, storico result, pro result screen */

:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5eaf2;
  --primary:#0b63f6;
  --primary-dark:#074ac2;
  --side:#071b35;
  --green:#16a34a;
  --orange:#f59e0b;
  --purple:#7c3aed;
  --danger:#dc2626;
  --shadow:0 12px 30px rgba(15,23,42,.06);
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}
.hidden{display:none!important}

.login-screen{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#071b35,#0b63f6);
  padding:20px;
}
.login-panel{
  width:100%;
  max-width:420px;
  background:white;
  border-radius:24px;
  padding:34px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}
.brand-login{display:flex;align-items:center;gap:14px;margin-bottom:26px}
.brand-mark{
  width:52px;height:52px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  background:#0b63f6;color:white;font-weight:800;
}
.brand-login h1{font-size:23px;margin:0}
.brand-login h1 span,.brand-title span{color:#3b82f6}
.brand-login p{margin:4px 0 0;color:var(--muted)}
.login-panel h2{margin:0 0 16px;font-size:22px}

.app-shell{min-height:100vh;display:flex}

.sidebar{
  width:260px;
  background:linear-gradient(180deg,var(--side),#031124);
  color:white;
  position:fixed;
  inset:0 auto 0 0;
  padding:24px 16px;
  display:flex;
  flex-direction:column;
  z-index:20;
}
.brand{
  height:56px;
  display:flex;
  align-items:center;
  padding:0 8px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.brand-title{font-size:21px;font-weight:800;letter-spacing:-.03em}
.side-nav{padding-top:24px;display:flex;flex-direction:column;gap:8px}
.nav-item{
  width:100%;
  border:0;
  background:transparent;
  color:#d9e7ff;
  padding:13px 14px;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  text-align:left;
}
.nav-item span{
  width:28px;height:28px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.07);
}
.nav-item:hover,.nav-item.active{background:#0b63f6;color:white}

.company-card{
  margin-top:auto;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:12px;
}
.avatar-small,.avatar{
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  background:#e8f1ff;
  color:#0b63f6;
}
.avatar-small{width:38px;height:38px}
.avatar{width:42px;height:42px}
.company-card small{display:block;color:#b9c8dd;margin-top:3px;font-size:11px}
.side-footer{color:#8fa5c2;font-size:13.5px;text-align:center;padding:20px 0 2px}

.main-area{
  margin-left:260px;
  width:calc(100% - 260px);
  min-height:100vh;
}
.topbar{
  height:76px;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 34px;
  position:sticky;
  top:0;
  z-index:10;
}
.search-box{
  width:min(430px,45vw);
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 14px;
  height:44px;
}
.search-box input{border:0;outline:0;width:100%;padding:0;font-size:14px}
.top-actions{display:flex;align-items:center;gap:12px}
.profile{display:flex;align-items:center;gap:10px}
.profile strong{display:block;font-size:14px}
.profile small{display:block;color:var(--muted);font-size:12px}

.content{padding:28px 34px 48px}
.page-title-row{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.page-title-row h1{font-size:34px;letter-spacing:-.04em;margin:0}
.page-title-row p{margin:8px 0 0;color:var(--muted)}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.stat-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  display:flex;
  gap:16px;
  align-items:center;
  box-shadow:var(--shadow);
}
.stat-icon{
  width:54px;height:54px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:800;
}
.stat-icon.blue{background:#e8f1ff;color:#0b63f6}
.stat-icon.orange{background:#fff2df;color:#f59e0b}
.stat-icon.green{background:#e4f8ed;color:#16a34a}
.stat-icon.purple{background:#f0e8ff;color:#7c3aed}
.stat-card span{display:block;color:var(--muted);font-size:13px}
.stat-card strong{display:block;font-size:25px;margin:4px 0;font-weight:800}
.stat-card small{color:var(--muted)}

.giro-layout{
  display:grid;
  grid-template-columns:1fr 350px;
  gap:18px;
  align-items:start;
}
.left-column{display:flex;flex-direction:column;gap:18px}
.panel,.summary-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  box-shadow:var(--shadow);
}
.panel{margin-bottom:18px}
.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.panel-header h2,.summary-card h2{margin:0;font-size:20px;letter-spacing:-.02em}

.form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.add-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
label{display:block;font-size:13.5px;color:#526079;font-weight:700;margin:0 0 7px}
input,select,textarea{
  width:100%;
  border:1px solid #dbe3ee;
  background:#fff;
  border-radius:10px;
  padding:12px 13px;
  font-size:15.5px;
  outline:none;
  color:var(--text);
  font-family:inherit;
}
input:focus,select:focus,textarea:focus{
  border-color:#8bb7ff;
  box-shadow:0 0 0 4px rgba(11,99,246,.09);
}
textarea{margin-top:14px;resize:vertical}

.btn-primary,.btn-secondary,.btn-light{
  border:0;
  border-radius:11px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
}
.btn-primary{
  background:var(--primary);
  color:white;
  padding:12px 18px;
  box-shadow:0 8px 18px rgba(11,99,246,.22);
}
.btn-primary:hover{background:var(--primary-dark)}
.btn-primary.large{padding:14px 22px;font-size:15px}
.btn-primary.full{width:100%;margin-top:16px}
.btn-secondary{background:#edf2f7;color:#334155;padding:12px 18px}
.btn-light{background:white;border:1px solid var(--line);color:#334155;padding:11px 14px}
.actions-row{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}

.right-summary{position:sticky;top:100px}
.summary-card{padding:24px}
.summary-row{
  display:flex;
  justify-content:space-between;
  padding:14px 0;
  border-bottom:1px solid #eef2f7;
  color:var(--muted);
  font-size:15.5px;
}
.summary-row strong{color:var(--text)}
.summary-highlight{
  margin-top:18px;
  border-radius:14px;
  background:#f1e9ff;
  padding:18px;
  color:#6d28d9;
}
.summary-highlight span{display:block;font-size:13.5px;font-weight:700;margin-bottom:8px}
.summary-highlight strong{font-size:24px}

.tableWrap{overflow:auto;border:1px solid var(--line);border-radius:14px}
table{width:100%;border-collapse:collapse;min-width:920px;background:white}
th{
  text-align:left;color:#64748b;font-size:13.5px;font-weight:800;
  padding:14px;border-bottom:1px solid var(--line);background:#fbfcfe;
}
td{padding:14px;border-bottom:1px solid #eef2f7;font-size:15.5px;vertical-align:middle}
tr:last-child td{border-bottom:0}
td button{
  border:1px solid var(--line);
  background:white;
  color:#334155;
  border-radius:9px;
  padding:8px 10px;
  margin:0 4px 4px 0;
  cursor:pointer;
  font-weight:700;
}
td button:hover{background:#f8fafc}

.suggestions{
  position:absolute;
  z-index:50;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 18px 35px rgba(15,23,42,.12);
  margin-top:6px;
  max-height:240px;
  overflow:auto;
  min-width:260px;
}
.suggestion{padding:12px;border-bottom:1px solid #eef2f7;cursor:pointer}
.suggestion:hover{background:#f8fafc}
.suggestion small{color:var(--muted)}
.resultBox{
  background:#fbfcff;
  border:1px solid #dbe8ff;
  border-radius:18px;
  padding:20px;
  margin-top:18px;
}
.resultBox h3{margin-top:0}
.resultBox p{line-height:1.8}
.warn{color:var(--danger);font-weight:800}
.ok{color:var(--green);font-weight:800}
.checkbox-label{margin-top:14px;display:flex;gap:8px;align-items:center}
.checkbox-label input{width:auto}

@media(max-width:1180px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .giro-layout{grid-template-columns:1fr}
  .right-summary{position:static}
  .form-grid,.add-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .sidebar{position:relative;width:100%;min-height:auto;inset:auto}
  .app-shell{display:block}
  .main-area{margin-left:0;width:100%}
  .topbar{height:auto;padding:14px;flex-direction:column;align-items:stretch;gap:12px}
  .search-box{width:100%}
  .top-actions{flex-wrap:wrap}
  .content{padding:18px 12px}
  .stats-grid{grid-template-columns:1fr}
  .form-grid,.add-grid{grid-template-columns:1fr}
  .page-title-row h1{font-size:25px}
  .actions-row{justify-content:stretch;flex-direction:column}
  .btn-primary,.btn-secondary,.btn-light{width:100%}
}


/* V3.6.3.2 leggibilità generale */
body{font-size:15.5px;}
input,select,textarea{min-height:46px;font-weight:600;}
label{letter-spacing:.01em;}
.panel{padding:24px;}
.form-grid{gap:16px;}
.add-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.time-window-field{grid-column:span 1;}
.time-window-field label{font-size:14px;color:#334155;}
.time-range{
  min-height:46px;
  display:grid;
  grid-template-columns:auto 1fr auto 1fr;
  align-items:center;
  gap:9px;
  border:1px solid #dbe3ee;
  background:white;
  border-radius:10px;
  padding:6px 10px;
}
.time-range span{color:#64748b;font-size:13px;font-weight:800;text-transform:uppercase;}
.time-range input{border:0;box-shadow:none!important;padding:6px;min-height:34px;background:transparent;}
.time-range:focus-within{border-color:#8bb7ff;box-shadow:0 0 0 4px rgba(11,99,246,.09);}
.row-actions{white-space:nowrap;display:flex;gap:8px;align-items:center;}
.row-actions.compact button{min-width:42px;padding:9px 10px;}
.toast{position:fixed;right:28px;bottom:28px;background:#071b35;color:white;padding:14px 18px;border-radius:12px;box-shadow:0 18px 40px rgba(15,23,42,.25);z-index:9999;font-weight:800;}

/* V3.6.3.2 risultato giro professionale */
.result-pro{margin-top:22px;}
.result-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px;}
.result-header h2{font-size:34px;margin:0;letter-spacing:-.04em;}
.result-header p{margin:6px 0 0;color:var(--muted);font-weight:600;}
.result-layout{display:grid;grid-template-columns:1fr 310px;gap:18px;align-items:start;}
.result-main{display:flex;flex-direction:column;gap:18px;}
.result-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}
.mini-card{background:white;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;gap:13px;align-items:center;box-shadow:var(--shadow);}
.mini-card small{display:block;color:#64748b;font-weight:800;font-size:13px;margin-bottom:4px;}
.mini-card strong{display:block;font-size:21px;letter-spacing:-.03em;}
.mini-icon{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:20px;}
.mini-icon.blue{background:#e8f1ff;color:#0b63f6}.mini-icon.orange{background:#fff2df;color:#f59e0b}.mini-icon.green{background:#e4f8ed;color:#16a34a}.mini-icon.purple{background:#f0e8ff;color:#7c3aed}
.alerts-panel,.stops-panel,.result-summary-card{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);}
.alerts-panel h3,.stops-panel h3,.result-summary-card h3{margin:0 0 16px;font-size:22px;letter-spacing:-.03em;}
.alert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.alert-card{border-radius:14px;padding:18px;border:1px solid;display:flex;flex-direction:column;gap:8px;}
.alert-card strong{font-size:16px}.alert-card span{font-weight:900;}
.alert-card.danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}.alert-card.orange{background:#fff7ed;border-color:#fed7aa;color:#c2410c}.alert-card.yellow{background:#fefce8;border-color:#fde68a;color:#a16207}
.result-summary-card{position:sticky;top:96px;}
.result-summary-card .btn-primary,.result-summary-card .btn-secondary{margin-top:12px;text-align:center;}
.badge{display:inline-block;padding:8px 10px;border-radius:8px;font-size:13px;font-weight:900;margin:2px;}
.ok-badge{background:#eaf8ef;color:#15803d}.danger-badge{background:#fee2e2;color:#b91c1c}.orange-badge{background:#ffedd5;color:#c2410c}.warn-badge{background:#fef3c7;color:#a16207}
.result-table th,.result-table td{font-size:14.5px;}
.result-table{min-width:1180px;}

@media(max-width:1350px){.result-cards{grid-template-columns:repeat(3,1fr)}.result-layout{grid-template-columns:1fr}.result-summary-card{position:static}.add-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.result-cards,.alert-grid{grid-template-columns:1fr}.time-range{grid-template-columns:auto 1fr;}.add-grid{grid-template-columns:1fr}.row-actions{flex-wrap:wrap}.result-header h2{font-size:28px}}


/* V3.6.3.2 GiroFacile: profilo account e pulizia topbar/sidebar */
.profile-button{
  border:0;
  background:transparent;
  padding:6px 8px;
  border-radius:12px;
  cursor:pointer;
  color:inherit;
}
.profile-button:hover{background:#f1f5f9;}
.avatar img,.profile-preview img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;}
.side-footer{margin-top:auto;}
.modal-overlay{
  position:fixed;inset:0;background:rgba(15,23,42,.45);
  z-index:9998;display:flex;align-items:center;justify-content:center;padding:20px;
}
.profile-modal{
  width:min(720px,96vw);background:#fff;border-radius:22px;padding:26px;
  border:1px solid var(--line);box-shadow:0 30px 90px rgba(15,23,42,.28);
}
.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;}
.modal-header h2{margin:0;font-size:26px;letter-spacing:-.03em;}
.modal-header p{margin:6px 0 0;color:var(--muted);font-weight:600;}
.modal-close{border:0;background:#f1f5f9;border-radius:12px;width:42px;height:42px;font-size:28px;line-height:1;cursor:pointer;color:#334155;}
.profile-photo-row{display:flex;align-items:center;gap:18px;margin-bottom:18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fbfcfe;}
.profile-preview{width:78px;height:78px;border-radius:50%;background:#e8f1ff;color:#0b63f6;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:900;overflow:hidden;flex:0 0 auto;}
.profile-photo-row small{display:block;color:var(--muted);margin-top:6px;font-weight:600;}
.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.profile-note{margin-top:16px;background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:14px;color:#475569;font-weight:600;line-height:1.5;}
@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-photo-row{align-items:flex-start;flex-direction:column}.profile-modal{padding:20px}}


/* GiroFacile V3.6.3.2 - Schermata iniziale professionale */
.gf-login-page{
  min-height:100vh !important;
  display:grid !important;
  grid-template-columns:420px 1fr !important;
  background:#f8fafc !important;
  padding:0 !important;
  align-items:stretch !important;
  justify-content:stretch !important;
}

.login-side{
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,.22), transparent 32%),
    linear-gradient(180deg,#06152e 0%,#071b35 48%,#04101f 100%);
  color:white;
  min-height:100vh;
  display:flex;
  align-items:stretch;
}

.login-side-inner{
  width:100%;
  padding:70px 58px 54px;
  display:flex;
  flex-direction:column;
}

.login-brand-large h1{
  font-size:43px;
  line-height:1;
  letter-spacing:-.05em;
  margin:0;
  font-weight:900;
}

.login-brand-large h1 span{color:#1265ff}

.login-brand-large p{
  margin:14px 0 0;
  color:#c8d4e8;
  font-size:18px;
  line-height:1.45;
}

.login-accent-line{
  width:46px;
  height:3px;
  border-radius:999px;
  background:#1265ff;
  margin:52px 0 58px;
  box-shadow:0 0 24px rgba(18,101,255,.8);
}

.login-features{display:flex;flex-direction:column;gap:42px}

.login-feature{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:18px;
  align-items:center;
}

.login-feature-icon{
  width:56px;height:56px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:rgba(15,49,100,.42);
  display:flex;align-items:center;justify-content:center;
  color:#1d6bff;
  font-size:28px;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.login-feature strong{
  display:block;
  font-size:17px;
  margin-bottom:7px;
  color:#fff;
}

.login-feature span{
  display:block;
  color:#c4cee0;
  font-size:16px;
  line-height:1.45;
}

.login-side-footer{
  margin-top:auto;
  padding-top:34px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#b9c7dc;
}

.login-side-footer span,
.login-side-footer small{
  display:block;
  font-size:15px;
  line-height:1.7;
}

.login-main{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:42px 24px;
  position:relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(2,6,23,.035), transparent 32%),
    #f9fafc;
}

.login-card-pro{
  width:min(100%,530px);
  background:rgba(255,255,255,.94);
  border:1px solid #d9dee8;
  border-radius:20px;
  padding:50px 58px 42px;
  box-shadow:0 22px 55px rgba(15,23,42,.08);
}

.login-card-brand{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:42px;
}

.login-card-brand img{
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
  box-shadow:0 12px 25px rgba(18,101,255,.22);
}

.login-card-brand strong{
  display:block;
  font-size:25px;
  color:#101a33;
  letter-spacing:-.03em;
}

.login-card-brand span{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-size:17px;
}

.login-card-title{margin-bottom:28px}

.login-card-title h2{
  font-size:31px !important;
  line-height:1.08;
  letter-spacing:-.04em;
  margin:0 0 10px;
  color:#111b33;
}

.login-card-title p{
  margin:0;
  color:#667085;
  font-size:17px;
}

.login-card-pro label{
  font-size:15.5px !important;
  color:#344054 !important;
  margin:22px 0 9px !important;
  font-weight:700;
}

.login-input-wrap{
  height:56px;
  border:1px solid #d8dee8;
  background:white;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  transition:.18s ease;
}

.login-input-wrap:focus-within{
  border-color:#1265ff;
  box-shadow:0 0 0 4px rgba(18,101,255,.10);
}

.login-input-wrap span{
  color:#44546a;
  font-size:20px;
  width:22px;
  text-align:center;
}

.login-input-wrap input{
  flex:1;
  border:0 !important;
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  box-shadow:none !important;
  font-size:16.5px !important;
  outline:none;
  background:transparent;
}

.login-input-wrap input::placeholder{color:#98a2b3}

.password-eye{
  border:0;
  background:transparent;
  color:#344054;
  cursor:pointer;
  font-size:18px;
  padding:6px;
}

.login-submit{
  width:100%;
  height:56px;
  margin-top:34px;
  border-radius:9px !important;
  font-size:17px !important;
  background:#075dff !important;
  box-shadow:0 12px 30px rgba(7,93,255,.22) !important;
}

.forgot-link{
  display:block;
  border:0;
  background:transparent;
  color:#075dff;
  text-decoration:underline;
  cursor:pointer;
  font-size:15.5px;
  margin:24px auto 0;
}

.login-main-footer{
  position:absolute;
  bottom:55px;
  color:#8a94a6;
  font-size:15px;
}

.brand-logo-img{
  width:31px;
  height:31px;
  border-radius:9px;
  object-fit:cover;
  vertical-align:middle;
  margin-right:8px;
  box-shadow:0 6px 14px rgba(11,99,246,.28);
}

@media(max-width:980px){
  .gf-login-page{grid-template-columns:1fr !important}
  .login-side{display:none}
  .login-main{padding:24px}
  .login-card-pro{padding:34px 24px}
  .login-main-footer{position:static;margin-top:28px}
}


/* GiroFacile V3.6.3.2.1 - Fix: la login non deve rimanere dietro il gestionale */
#loginCard.hidden,
#app.hidden{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

body.app-logged-in #loginCard{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

body.app-logged-in #app{
  display:flex !important;
}


/* GiroFacile V3.6.3.2 - Logo pieno e icone login più fedeli al mockup */
.login-card-brand{
  gap:22px !important;
  align-items:center !important;
}

.login-card-brand img{
  width:82px !important;
  height:82px !important;
  min-width:82px !important;
  border-radius:18px !important;
  object-fit:cover !important;
  background:#075dff !important;
  padding:0 !important;
  border:0 !important;
  box-shadow:0 18px 35px rgba(7,93,255,.28) !important;
  display:block !important;
}

.login-card-brand strong{
  font-size:28px !important;
  line-height:1.05 !important;
}

.login-card-brand span{
  font-size:17.5px !important;
}

.login-feature{
  grid-template-columns:78px 1fr !important;
  gap:26px !important;
  min-height:82px !important;
}

.login-feature-icon{
  width:72px !important;
  height:72px !important;
  border-radius:17px !important;
  border:1.5px solid rgba(23,102,255,.72) !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(30,113,255,.30), rgba(7,23,52,.50) 55%, rgba(4,16,35,.72) 100%) !important;
  color:#2f7dff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 1px rgba(23,102,255,.10),
    0 16px 34px rgba(0,0,0,.16),
    0 0 24px rgba(23,102,255,.18) !important;
  overflow:hidden !important;
}

.login-feature-icon svg{
  width:47px !important;
  height:47px !important;
  display:block !important;
  filter:drop-shadow(0 0 8px rgba(47,125,255,.36));
}

.login-feature-icon.icon-box svg,
.login-feature-icon.icon-chart svg{
  width:46px !important;
  height:46px !important;
}

.login-feature strong{
  font-size:19px !important;
  margin-bottom:8px !important;
}

.login-feature span{
  font-size:17px !important;
  line-height:1.46 !important;
}

.brand-logo-img{
  width:38px !important;
  height:38px !important;
  border-radius:11px !important;
  background:#075dff !important;
  border:0 !important;
  padding:0 !important;
  object-fit:cover !important;
}

@media(max-width:980px){
  .login-card-brand img{
    width:72px !important;
    height:72px !important;
    min-width:72px !important;
  }
}


/* GiroFacile V3.6.3 - Messaggi errore calcolo più chiari */
.route-error-box{
  display:flex;
  flex-direction:column;
  gap:8px;
  border-color:#fecaca !important;
  background:#fff7f7 !important;
  color:#991b1b !important;
}
.route-error-box strong{
  font-size:20px;
  color:#dc2626;
}
.route-error-box span{
  font-size:16px;
  font-weight:700;
  color:#991b1b;
}
.route-error-box small{
  color:#7f1d1d;
  font-size:14px;
}

/* GiroFacile V3.7.8.1 - account, filtri clienti, selezione clienti, drag & drop */
.login-switch{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#64748b;font-size:14px}
.login-switch button{border:0;background:transparent;color:#2563eb;font-weight:800;cursor:pointer}
.signup-box{margin-top:16px;padding:16px;border:1px solid #e5e7eb;border-radius:18px;background:#f8fafc;display:grid;gap:10px}
.signup-box h3{margin:0;font-size:17px;color:#111827}.signup-box input{height:44px;border:1px solid #d1d5db;border-radius:12px;padding:0 12px;background:white}.full{width:100%}
.customer-picker-panel{border:1px solid #dbeafe;background:#f8fbff;border-radius:18px;padding:14px;margin-bottom:16px}.picker-header{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:12px}.picker-header strong{font-size:17px;color:#0f172a}.picker-header small{color:#64748b}.picker-filters,.customer-filters{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:12px}.picker-filters input,.picker-filters select,.customer-filters input,.customer-filters select{height:42px;border:1px solid #d1d5db;border-radius:12px;padding:0 10px;background:white}.customer-picker-list{max-height:290px;overflow:auto;display:grid;gap:8px}.picker-customer-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.picker-customer-row small{display:block;color:#64748b;margin-top:3px}.picker-customer-row button{border:0;border-radius:11px;padding:9px 12px;background:#2563eb;color:white;font-weight:800;cursor:pointer;white-space:nowrap}.empty-picker{padding:14px;text-align:center;color:#64748b;background:white;border-radius:12px;border:1px dashed #cbd5e1}.customer-list-head{align-items:center}.btn-danger{background:#dc2626;color:#fff;border:0;border-radius:12px;padding:11px 14px;font-weight:800;cursor:pointer}.btn-danger:hover{filter:brightness(.96)}.draggable-stop{cursor:grab}.draggable-stop:active{cursor:grabbing}.drag-handle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:#eef2ff;color:#3730a3;margin-right:6px;font-weight:900}.result-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.result-header-actions{display:grid;gap:7px;justify-items:end}.result-header-actions small{color:#64748b;font-weight:700}.resultBox{margin-bottom:12px}
@media(max-width:900px){.picker-filters,.customer-filters{grid-template-columns:1fr 1fr}.picker-customer-row{align-items:flex-start;flex-direction:column}.result-header{flex-direction:column}.result-header-actions{justify-items:start}.customer-list-head{align-items:flex-start}}


/* GiroFacile V3.7.8.1 - Sezione Autisti */
.driver-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;}
.drivers-layout{display:grid;grid-template-columns:minmax(330px,420px) 1fr;gap:18px;align-items:start;}
.driver-form-panel,.drivers-list-panel{overflow:hidden;}
.panel-header p{margin:4px 0 0;color:#64748b;font-size:13px;}
.driver-profile-head{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid #e5e7eb;border-radius:18px;background:linear-gradient(135deg,#f8fafc,#eef6ff);margin-bottom:16px;}
.driver-avatar-big,.driver-avatar{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:0 10px 25px rgba(37,99,235,.20);}
.driver-avatar{width:48px;height:48px;border-radius:16px;flex:0 0 auto;}
.driver-profile-head strong{display:block;font-size:18px;color:#0f172a;}
.driver-profile-head small{color:#64748b;}
.driver-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.driver-toolbar{display:grid;grid-template-columns:1fr 190px;gap:10px;margin-bottom:14px;}
.drivers-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.driver-card{border:1px solid #e5e7eb;border-radius:22px;background:#fff;padding:16px;box-shadow:0 12px 32px rgba(15,23,42,.06);}
.driver-card-top{display:flex;gap:12px;align-items:center;margin-bottom:14px;}
.driver-card h3{margin:0 0 6px;font-size:17px;color:#0f172a;}
.driver-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800;}
.driver-status.available{background:#dcfce7;color:#166534;}
.driver-status.working{background:#ffedd5;color:#9a3412;}
.driver-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.driver-info-grid div{padding:10px;border-radius:14px;background:#f8fafc;border:1px solid #eef2f7;min-width:0;}
.driver-info-grid small{display:block;color:#64748b;font-size:11px;margin-bottom:4px;}
.driver-info-grid strong{display:block;color:#0f172a;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.driver-note{margin:12px 0 0;padding:10px;border-radius:14px;background:#fff7ed;color:#9a3412;font-size:13px;}
.driver-actions{margin-top:12px;display:flex;justify-content:flex-end;gap:8px;}
@media(max-width:1050px){.drivers-layout{grid-template-columns:1fr}.drivers-cards{grid-template-columns:1fr}.driver-stats-grid{grid-template-columns:1fr}.driver-toolbar{grid-template-columns:1fr}.driver-form-grid{grid-template-columns:1fr}}


/* V3.7.8.1 - Dashboard giri programmati/in corso */
.operational-dashboard-panel{
  margin-bottom:22px;
}
.operational-header{
  align-items:flex-start;
}
.operational-header p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}
.operational-mini-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:12px 0 16px;
}
.operational-mini-stats>div{
  border:1px solid var(--line);
  background:#f8fafc;
  border-radius:16px;
  padding:14px 16px;
}
.operational-mini-stats span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-bottom:5px;
}
.operational-mini-stats strong{
  font-size:24px;
  color:var(--text);
}
.route-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}
.route-status-pill.programmato{
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
}
.route-status-pill.in_corso{
  background:#ecfdf5;
  color:#047857;
  border:1px solid #a7f3d0;
}
.route-status-pill.da_completare{
  background:#fff7ed;
  color:#c2410c;
  border:1px solid #fed7aa;
}
.route-status-pill.completato{
  background:#f0fdf4;
  color:#15803d;
  border:1px solid #bbf7d0;
}
.route-status-pill.annullato{
  background:#fef2f2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
.btn-success-mini{
  background:#16a34a!important;
  color:white!important;
  border-color:#16a34a!important;
}
.empty-state-small{
  color:var(--muted);
  padding:14px 4px;
  font-weight:700;
}
.operational-route-row td{
  vertical-align:middle;
}
@media(max-width:800px){
  .operational-mini-stats{grid-template-columns:1fr}
}


/* V3.7.8.1 - Dashboard professionale */
.dash-hero-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:18px}
.dash-hero-row h1{font-size:34px;margin:0 0 6px;color:var(--text)}
.dash-hero-row p{margin:0;color:var(--muted);font-size:16px}
.dash-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
.dash-kpi-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px 24px;box-shadow:var(--shadow);display:flex;align-items:center;gap:18px;min-height:112px}
.dash-kpi-icon{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;flex:0 0 54px}
.dash-kpi-icon.blue{background:#eaf2ff;color:#0b63f6}.dash-kpi-icon.green{background:#eafaf0;color:#16a34a}.dash-kpi-icon.purple{background:#f1eaff;color:#7c3aed}.dash-kpi-icon.red{background:#fff1f2;color:#e11d48}
.dash-kpi-card span{display:block;color:var(--muted);font-size:14px;margin-bottom:5px}.dash-kpi-card strong{display:block;font-size:28px;color:var(--text);line-height:1}.dash-kpi-card small{display:block;color:var(--muted);font-size:13px;margin-top:7px}
.dash-main-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.9fr);gap:18px;margin-bottom:18px}.dash-chart-card,.dash-recent-card{min-height:270px}.dash-panel-title{align-items:center}.dash-toggle{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f8fafc}.dash-toggle span{padding:8px 16px;font-size:13px;font-weight:800;color:var(--muted)}.dash-toggle .active{background:#eef5ff;color:#0b63f6}.dash-trend-chart{height:190px;margin-top:10px}.dash-svg-chart{width:100%;height:100%;overflow:visible}.dash-svg-chart .grid line{stroke:#e5eaf2;stroke-width:1}.dash-svg-chart .dots circle{fill:#0b63f6;stroke:white;stroke-width:3}.dash-svg-chart .labels text{fill:#64748b;font-size:12px;font-weight:700}
.dash-recent-list{display:flex;flex-direction:column;gap:10px}.dash-recent-item{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;cursor:pointer}.dash-recent-item strong{display:block;font-size:15px}.dash-recent-item small{display:block;color:var(--muted);margin-top:4px}.dash-recent-item span{font-size:28px;color:var(--muted)}
.dash-board-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}.dash-list-card{padding:0;overflow:hidden}.dash-list-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line)}.dash-list-head h2{margin:0;font-size:20px}.dash-list-head span{min-width:28px;height:28px;border-radius:10px;background:#eef5ff;color:#0b63f6;display:flex;align-items:center;justify-content:center;font-weight:900}.dash-route-list{padding:8px 14px;min-height:170px}.dash-route-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 8px;border-bottom:1px solid var(--line);cursor:pointer}.dash-route-item:hover{background:#f8fafc;border-radius:12px}.dash-route-main strong{display:block;font-size:15px}.dash-route-main small{display:block;color:var(--muted);margin-top:5px}.dash-route-side{display:flex;align-items:center;gap:10px}.dash-arrow{font-size:26px;color:var(--muted)}.dash-progress{height:7px;background:#e8eef8;border-radius:999px;margin-top:10px;overflow:hidden}.dash-progress span{display:block;height:100%;background:#0b63f6;border-radius:999px}.dash-link-btn{width:calc(100% - 28px);margin:0 14px 14px;border:1px solid var(--line);background:#fff;color:#0b63f6;border-radius:12px;padding:11px;font-weight:800}.dash-empty{color:var(--muted);padding:22px 8px;font-weight:700;text-align:center}.dash-link-inline{border:0;background:transparent;color:#0b63f6;font-weight:800;cursor:pointer}.dash-vehicle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.dash-vehicle-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff;display:flex;align-items:center;justify-content:space-between;min-height:110px}.dash-vehicle-card strong{display:block;margin-bottom:5px}.dash-vehicle-card small{display:block;color:var(--muted);margin-top:4px}.vehicle-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}.vehicle-dot.free{background:#16a34a}.vehicle-dot.busy{background:#f59e0b}.dash-vehicle-icon{font-size:36px;opacity:.8}
@media(max-width:1100px){.dash-kpi-grid{grid-template-columns:repeat(2,1fr)}.dash-main-grid,.dash-board-columns{grid-template-columns:1fr}.dash-vehicle-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.dash-kpi-grid,.dash-vehicle-grid{grid-template-columns:1fr}.dash-hero-row{flex-direction:column}.dash-kpi-card{padding:18px}.dash-hero-row h1{font-size:28px}}


/* V3.7.8.1 - Autocomplete indirizzi */
.address-autocomplete-wrap{
  position:relative;
  width:100%;
}
.address-autocomplete-wrap input{
  width:100%;
}
.address-suggestions{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 18px 45px rgba(15,23,42,.14);
  z-index:80;
  max-height:280px;
  overflow:auto;
  padding:6px;
}
.address-suggestion-item{
  width:100%;
  border:0;
  background:#fff;
  padding:11px 12px;
  text-align:left;
  border-radius:12px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:3px;
  color:var(--text);
}
.address-suggestion-item:hover{
  background:#eff6ff;
}
.address-suggestion-item strong{
  font-size:14px;
  color:#0f172a;
}
.address-suggestion-item span{
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}
.address-loading,
.address-empty{
  padding:12px;
  color:var(--muted);
  font-size:13px;
}
.address-hint{
  margin-top:6px;
  min-height:16px;
  font-size:12px;
}
.address-hint.ok{
  color:#15803d;
  font-weight:700;
}
.address-hint.warn{
  color:#b45309;
  font-weight:700;
}
input.address-verified{
  border-color:#22c55e!important;
  box-shadow:0 0 0 3px rgba(34,197,94,.12);
}
input.address-unverified{
  border-color:#f59e0b!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.12);
}


/* V3.7.8.1 - Disponibilità autisti e mezzi */
.availability-hint{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.3;
}
.availability-hint.muted{color:var(--muted);}
.availability-hint.ok{color:#15803d;font-weight:700;}
.availability-hint.warn{color:#b45309;font-weight:700;}
select:disabled{
  background:#f1f5f9;
  color:#94a3b8;
  cursor:not-allowed;
}
select option:disabled{
  color:#b91c1c;
  background:#fff7f7;
}


/* V3.7.8.1 - Programmazione giro */
.program-route-btn{
  margin-top:8px;
}
.program-route-note{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.route-status-pill.bozza{
  background:#eef2ff;
  color:#3730a3;
}


/* V3.7.8.1 - Dettaglio giro direttamente in Dashboard */
.dashboard-route-detail-panel{
  margin-top:18px;
  overflow:hidden;
}
.dash-detail-empty{
  padding:8px 2px;
  color:var(--muted);
}
.dash-detail-empty h2{margin:0 0 6px;color:var(--text);}
.dash-detail-empty.small{
  padding:18px;
  border:1px dashed var(--line);
  border-radius:16px;
  background:#f8fafc;
}
.dash-detail-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.dash-detail-eyebrow{
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:6px;
}
.dash-detail-header h2{
  margin:0 0 6px;
  font-size:24px;
}
.dash-detail-header p{
  margin:0;
  color:var(--muted);
}
.dash-detail-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.dash-detail-kpis{
  display:grid;
  grid-template-columns:repeat(7,minmax(120px,1fr));
  gap:10px;
  margin:18px 0;
}
.dash-detail-kpis div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.dash-detail-kpis span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}
.dash-detail-kpis strong{
  font-size:14px;
}
.dash-detail-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.btn-danger-soft{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#be123c;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:800;
}
.btn-danger-soft:hover{
  background:#ffe4e6;
}
.btn-success-mini.big{
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
}
.dash-detail-section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:8px 0 10px;
}
.dash-detail-section-title h3{margin:0;}
.dash-detail-section-title small{color:var(--muted);}
.dash-detail-stops-wrap{
  max-height:360px;
  overflow:auto;
}
.dash-detail-stops td,
.dash-detail-stops th{
  font-size:13px;
}
@media (max-width:1100px){
  .dash-detail-kpis{grid-template-columns:repeat(2,minmax(140px,1fr));}
  .dash-detail-header{flex-direction:column;}
  .dash-detail-header-actions{justify-content:flex-start;}
}


/* Fix disponibilità mezzi/autisti in Dashboard */
.dash-resource-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.dash-driver-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.dash-driver-card .dash-vehicle-icon{
  background:#eef2ff;
}
@media (max-width:1100px){
  .dash-resource-row{grid-template-columns:1fr;}
  .dash-driver-grid{grid-template-columns:1fr;}
}


/* V3.7.8.1 - Agenti */
#tab-agenti textarea,
#tab-clienti textarea{
  margin-top:12px;
}
#tab-agenti .route-status-pill{
  display:inline-flex;
}


/* V3.7.8.1 - Report / Analisi dati */
.report-hero-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}
.report-hero-row h1{margin:0 0 6px;font-size:30px;}
.report-hero-row p{margin:0;color:var(--muted);}
.report-actions{display:flex;gap:10px;flex-wrap:wrap;}
.report-filter-panel{margin-bottom:16px;}
.report-filter-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(135px,1fr));
  gap:12px;
  align-items:end;
}
.report-filter-grid label{display:block;font-size:12px;font-weight:800;color:var(--muted);margin-bottom:6px;}
.report-filter-grid input,.report-filter-grid select{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 11px;
  background:#fff;
}
.report-filter-buttons{display:flex;gap:8px;}
.report-kpi-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(160px,1fr));
  gap:12px;
  margin-bottom:16px;
}
.report-kpi-card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  border-radius:18px;
  padding:14px;
  display:grid;
  grid-template-columns:46px 1fr;
  grid-template-rows:auto auto;
  gap:2px 12px;
  align-items:center;
}
.report-kpi-card small{color:var(--muted);font-weight:800;}
.report-kpi-card strong{font-size:24px;color:var(--text);}
.report-kpi-icon{
  width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-weight:900;
  grid-row:1/3;
}
.report-kpi-icon.blue{background:#eaf2ff;color:#0b63f6}.report-kpi-icon.green{background:#eafaf1;color:#16a34a}
.report-kpi-icon.purple{background:#f1edff;color:#7c3aed}.report-kpi-icon.orange{background:#fff4e5;color:#f97316}
.report-kpi-icon.cyan{background:#e8fbff;color:#0891b2}.report-kpi-icon.yellow{background:#fff8db;color:#ca8a04}
.report-kpi-icon.pink{background:#fff0f6;color:#db2777}
.report-chart-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}
.report-chart-card.wide{grid-column:span 1;}
.report-chart{min-height:280px;}
.report-svg{width:100%;height:280px;overflow:visible;}
.report-svg .grid line{stroke:#edf2f7;stroke-width:1;}
.report-svg text{font-size:11px;fill:#64748b;}
.report-svg.line path{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.report-svg.line .line-consegne{stroke:#0b63f6;}
.report-svg.line .line-km{stroke:#7c3aed;opacity:.75;}
.report-svg.line circle{fill:#0b63f6;stroke:#fff;stroke-width:2;}
.report-svg.line circle.km{fill:#7c3aed;}
.report-svg.bar rect{fill:#0b63f6;}
.report-svg.donut{height:260px;}
.report-svg.donut .base{fill:none;stroke:#edf2f7;stroke-width:30;}
.report-svg.donut .slice{fill:none;stroke-width:30;transform:rotate(-90deg);transform-origin:130px 130px;transition:.2s;}
.report-svg.donut .slice:hover{stroke-width:34;}
.report-svg.donut .s0,.donut-dot.s0{stroke:#0b63f6;background:#0b63f6}.report-svg.donut .s1,.donut-dot.s1{stroke:#16a34a;background:#16a34a}
.report-svg.donut .s2,.donut-dot.s2{stroke:#f59e0b;background:#f59e0b}.report-svg.donut .s3,.donut-dot.s3{stroke:#7c3aed;background:#7c3aed}
.report-svg.donut .s4,.donut-dot.s4{stroke:#06b6d4;background:#06b6d4}.report-svg.donut .s5,.donut-dot.s5{stroke:#f43f5e;background:#f43f5e}
.report-svg.donut text:first-of-type{font-size:24px;font-weight:900;fill:#0f172a;}
.report-donut-wrap{display:grid;grid-template-columns:260px 1fr;gap:12px;align-items:center;}
.report-donut-legend{display:grid;gap:8px;}
.report-donut-legend div{display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;font-size:13px;}
.donut-dot{width:10px;height:10px;border-radius:999px;display:block;}
.report-hbars{display:grid;gap:12px;padding:8px 0;}
.report-hbar-row{display:grid;grid-template-columns:120px 1fr 64px;gap:10px;align-items:center;font-size:13px;}
.report-hbar-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.report-hbar-track{height:12px;background:#edf2f7;border-radius:999px;overflow:hidden;}
.report-hbar-track b{height:100%;display:block;background:#0b63f6;border-radius:999px;}
.report-chart-empty{height:260px;display:grid;place-items:center;color:var(--muted);background:#f8fafc;border:1px dashed var(--line);border-radius:16px;}
.report-bottom-grid{display:grid;grid-template-columns:2fr .95fr;gap:14px;margin-bottom:14px;}
.report-table-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:14px;}
.report-table-search{height:34px;border:1px solid var(--line);border-radius:10px;padding:0 10px;}
.report-data-table th{cursor:pointer;white-space:nowrap;}
.report-data-table td,.report-data-table th{font-size:13px;}
.report-insights{display:grid;gap:12px;}
.report-insight{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fbfdff;}
.report-insight-icon{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:#eaf2ff;color:#0b63f6;font-weight:900;flex:0 0 auto;}
.report-insight-icon.i1{background:#eafaf1;color:#16a34a}.report-insight-icon.i2{background:#fff4e5;color:#f97316}
.report-insight strong{display:block;margin-bottom:4px;}
.report-insight p{margin:0;color:var(--muted);line-height:1.35;}
@media (max-width:1300px){
  .report-filter-grid{grid-template-columns:repeat(4,1fr);}
  .report-kpi-grid{grid-template-columns:repeat(2,1fr);}
  .report-chart-grid,.report-bottom-grid,.report-table-grid{grid-template-columns:1fr;}
  .report-donut-wrap{grid-template-columns:1fr;}
}
@media (max-width:720px){
  .report-hero-row{flex-direction:column;}
  .report-filter-grid{grid-template-columns:1fr;}
  .report-kpi-grid{grid-template-columns:1fr;}
}


/* V3.7.8.1 - miglioramento grafici Report */
.report-chart-head{
  align-items:flex-start;
}
.report-chart-head h2{
  margin-bottom:4px;
}
.report-chart-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.report-svg.improved{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border-radius:16px;
}
.report-svg.line.improved .area-consegne{
  fill:#0b63f6;
  opacity:.12;
}
.report-svg.line.improved .line-consegne{
  stroke:#0b63f6;
  filter:drop-shadow(0 4px 5px rgba(11,99,246,.16));
}
.report-svg.line.improved .line-km{
  stroke:#7c3aed;
  stroke-dasharray:7 7;
  filter:drop-shadow(0 4px 5px rgba(124,58,237,.10));
}
.report-svg.line.improved .hover-point circle{
  transition:.15s ease;
}
.report-svg.line.improved .hover-point:hover circle{
  r:7;
}
.report-svg.line.improved .axis-title{
  font-size:12px;
  font-weight:800;
  fill:#64748b;
}
.report-svg.bar.improved rect{
  fill:url(#fuelBarGradient);
  color:#0b63f6;
  transition:.18s ease;
}
.report-svg.bar.improved .bar-item:hover rect{
  opacity:.86;
  transform:translateY(-2px);
}
.report-svg.bar.improved .legend rect{
  fill:#0b63f6;
}
.report-single-chart{
  min-height:260px;
  border:1px dashed #dbe7f5;
  border-radius:18px;
  background:linear-gradient(180deg,#fbfdff,#f8fbff);
  display:grid;
  place-items:center;
  text-align:center;
  padding:24px;
}
.report-single-chart .single-date{
  font-size:13px;
  color:var(--muted);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.single-values{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin:18px 0 8px;
}
.single-values div{
  min-width:150px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.single-values small{
  display:block;
  color:var(--muted);
  margin:6px 0;
}
.single-values strong{
  font-size:26px;
}
.single-values .dot{
  width:10px;
  height:10px;
  display:inline-block;
  border-radius:999px;
}
.single-values .dot.blue{background:#0b63f6;}
.single-values .dot.purple{background:#7c3aed;}
.report-single-chart p{
  margin:10px 0 0;
  color:var(--muted);
  max-width:430px;
  line-height:1.4;
}
.single-fuel-box{
  margin:18px 0 8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px 34px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.single-fuel-box small{
  display:block;
  color:var(--muted);
  margin-bottom:8px;
}
.single-fuel-box strong{
  font-size:34px;
  color:#0b63f6;
}


/* V3.7.8.8 - Dashboard KPI giornalieri */
.topbar-spacer{
  flex:1 1 auto;
}
.dash-kpi-card small#dashTodayBusyResourcesSub{
  line-height:1.25;
}


/* V3.7.8.9 - Pianificazione con tabella consegne modificabile */
.panel-subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.delivery-picker-panel .panel-header{
  align-items:flex-start;
}
.compact-picker{
  margin-top:4px;
}
.picker-customer-row.already-added{
  background:#f8fafc;
  opacity:.82;
}
.picker-customer-row.already-added button{
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
}
.delivery-workbench .panel-header{
  align-items:flex-start;
}
.table-counter{
  background:#eef2ff;
  color:#3730a3;
  border:1px solid #dbe3ff;
  padding:7px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}
.editable-delivery-wrap{
  overflow:auto;
}
.editable-delivery-table{
  min-width:1380px;
}
.editable-delivery-table th{
  white-space:nowrap;
}
.editable-delivery-table td{
  vertical-align:middle;
}
.delivery-main-cell strong{
  display:block;
  white-space:nowrap;
}
.delivery-main-cell small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-weight:800;
}
.table-input,
.table-select,
.editable-delivery-table input,
.editable-delivery-table select{
  width:100%;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:7px 9px;
  font-size:13px;
  outline:none;
}
.table-input:focus,
.table-select:focus,
.editable-delivery-table input:focus,
.editable-delivery-table select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}
.address-input{
  min-width:260px;
}
.note-input{
  min-width:160px;
}
.small-number{
  min-width:72px;
}
.inline-time-range{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  min-width:150px;
}
.delivery-footer-actions{
  margin-top:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
}
.delivery-footer-actions strong{
  display:block;
  font-size:15px;
}
.delivery-footer-actions small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}
.row-actions.compact{
  white-space:nowrap;
}
.row-actions.compact button{
  padding:7px 9px;
  min-width:34px;
}
@media(max-width:900px){
  .delivery-footer-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .delivery-footer-actions .btn-primary{
    width:100%;
  }
}


/* V3.7.9.0 - Restyling estetico professionale
   Solo CSS/HTML visivo: nessuna modifica a logica, API o database.
*/
:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --text:#101828;
  --muted:#667085;
  --line:#e6eaf2;
  --primary:#0b63f6;
  --primary-dark:#074bd1;
  --primary-soft:#eef5ff;
  --side:#ffffff;
  --green:#16a34a;
  --orange:#f59e0b;
  --purple:#7c3aed;
  --danger:#e11d48;
  --shadow:0 10px 28px rgba(16,24,40,.055);
  --shadow-soft:0 4px 14px rgba(16,24,40,.045);
  --radius-xl:18px;
  --radius-lg:14px;
}

body{
  background:
    radial-gradient(circle at top right, rgba(11,99,246,.055), transparent 34%),
    linear-gradient(180deg,#fbfcff 0%, #f6f8fc 42%, #f7f9fc 100%);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing:-.01em;
}

/* Sidebar chiara stile gestionale SaaS */
.sidebar{
  background:rgba(255,255,255,.96);
  color:var(--text);
  border-right:1px solid var(--line);
  box-shadow:6px 0 24px rgba(16,24,40,.035);
  padding:24px 14px;
}
.brand{
  border-bottom:0;
  padding:0 8px 22px;
}
.brand-title{
  color:#0b1220;
  font-weight:850;
  letter-spacing:-.045em;
}
.brand-title span{color:#0b63f6}
.brand-logo-img{
  border-radius:12px;
  box-shadow:0 6px 18px rgba(11,99,246,.13);
}
.side-nav{
  padding-top:12px;
  gap:6px;
}
.nav-item{
  color:#43516a;
  min-height:46px;
  padding:12px 14px;
  border-radius:12px;
  font-size:15px;
  font-weight:740;
  letter-spacing:-.015em;
  transition:background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
  position:relative;
}
.nav-item:hover{
  background:#f3f7ff;
  color:#0b63f6;
  transform:translateX(1px);
}
.nav-item.active{
  background:linear-gradient(90deg,#eff6ff 0%, #f8fbff 100%);
  color:#0b63f6;
  box-shadow:inset 3px 0 0 #0b63f6;
}
.nav-item span,
.nav-svg{
  width:28px;
  height:28px;
  border-radius:9px;
  background:transparent;
  color:currentColor;
  flex:0 0 28px;
}
.nav-svg svg{
  width:21px;
  height:21px;
  display:block;
}
.nav-svg svg *{
  fill:none;
  stroke:currentColor;
  stroke-width:1.85;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nav-svg svg rect,
.nav-svg svg circle{
  fill:none;
}
.nav-item.active .nav-svg{
  background:#e6f0ff;
}
.side-footer{
  color:#98a2b3;
  border-top:1px solid #edf0f5;
  margin-top:auto;
  padding-top:18px;
}

/* Topbar più minimale e pulita */
.main-area{
  background:transparent;
}
.topbar{
  height:72px;
  background:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(230,234,242,.9);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 rgba(16,24,40,.02);
}
.top-actions{
  gap:10px;
}
.btn-light,
.profile-button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow-soft);
}
.profile-button{
  padding:7px 11px;
}
.avatar{
  background:linear-gradient(135deg,#0b63f6,#4f8dff);
  color:#fff;
  box-shadow:0 8px 22px rgba(11,99,246,.22);
}

/* Titoli pagina */
.content{
  padding:30px 34px 50px;
}
.page-title-row h1,
.dash-hero-row h1{
  color:#0b1220;
  font-size:34px;
  line-height:1.08;
  font-weight:860;
  letter-spacing:-.055em;
}
.page-title-row p,
.dash-hero-row p{
  color:#667085;
  font-size:15px;
}

/* Bottoni più professionali */
button{
  font-family:inherit;
}
.btn-primary,
.picker-customer-row button,
.actions-row .btn-primary{
  background:linear-gradient(180deg,#0b6bff 0%, #095ce5 100%);
  border:1px solid #0757d8;
  box-shadow:0 10px 22px rgba(11,99,246,.18);
  border-radius:12px;
  font-weight:800;
}
.btn-primary:hover,
.picker-customer-row button:hover{
  filter:brightness(.98);
  box-shadow:0 12px 26px rgba(11,99,246,.24);
}
.btn-secondary,
.dash-link-btn{
  border:1px solid var(--line);
  background:#fff;
  color:#344054;
  border-radius:12px;
  font-weight:750;
}
.btn-secondary:hover,
.dash-link-btn:hover{
  background:#f8fbff;
  color:#0b63f6;
}

/* Card e pannelli */
.panel,
.summary-card,
.stat-card,
.dash-kpi-card{
  border:1px solid rgba(230,234,242,.95);
  border-radius:var(--radius-xl);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
}
.panel{
  padding:22px;
}
.panel-header h2,
.summary-card h2,
.dash-list-head h2{
  color:#101828;
  letter-spacing:-.035em;
  font-weight:840;
}
.panel-subtitle,
.panel-header p{
  color:#667085;
}

/* KPI */
.stats-grid,
.dash-kpi-grid{
  gap:16px;
}
.stat-card,
.dash-kpi-card{
  min-height:112px;
  padding:20px;
}
.stat-icon,
.dash-kpi-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  font-size:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.stat-icon svg,
.dash-kpi-icon svg{
  width:25px;
  height:25px;
}
.stat-icon svg *,
.dash-kpi-icon svg *{
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.dash-kpi-icon.green svg path:first-child{
  fill:currentColor;
  stroke:none;
}
.stat-icon.blue,
.dash-kpi-icon.blue{background:#eef5ff;color:#0b63f6}
.stat-icon.orange,
.dash-kpi-icon.orange{background:#fff7ed;color:#f59e0b}
.stat-icon.green,
.dash-kpi-icon.green{background:#ecfdf3;color:#16a34a}
.stat-icon.purple,
.dash-kpi-icon.purple{background:#f4f0ff;color:#7c3aed}
.stat-icon.red,
.dash-kpi-icon.red{background:#fff1f2;color:#e11d48}
.stat-card span,
.dash-kpi-card span{
  color:#667085;
  font-weight:720;
}
.stat-card strong,
.dash-kpi-card strong{
  color:#101828;
  font-weight:880;
  letter-spacing:-.045em;
}

/* Campi e filtri */
input,
select,
textarea,
.table-input,
.table-select,
.editable-delivery-table input,
.editable-delivery-table select{
  border:1px solid #dbe3ee;
  background:#fff;
  border-radius:12px;
  color:#101828;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus,
select:focus,
textarea:focus,
.table-input:focus,
.table-select:focus,
.editable-delivery-table input:focus,
.editable-delivery-table select:focus{
  border-color:#0b63f6;
  box-shadow:0 0 0 4px rgba(11,99,246,.11);
}
label{
  color:#344054;
  font-weight:760;
}

/* Tabelle */
.tableWrap{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:auto;
  background:#fff;
}
table{
  border-collapse:separate;
  border-spacing:0;
}
th{
  background:#fbfcff;
  color:#667085;
  font-size:12px;
  text-transform:none;
  letter-spacing:.01em;
  font-weight:820;
}
td{
  color:#344054;
}
tr:hover td{
  background:#fbfdff;
}

/* Customer picker e tabella pianificazione */
.customer-picker-panel{
  border:1px solid #e3e9f3;
  background:linear-gradient(180deg,#fbfdff,#ffffff);
  border-radius:16px;
}
.picker-header strong{
  color:#101828;
}
.picker-header small{
  color:#667085;
}
.picker-customer-row{
  border:1px solid #e7edf6;
  border-radius:13px;
  background:#fff;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.picker-customer-row:hover{
  transform:translateY(-1px);
  border-color:#cfe0ff;
  box-shadow:0 8px 20px rgba(16,24,40,.065);
}
.delivery-footer-actions{
  background:linear-gradient(180deg,#fbfdff,#f8fbff);
  border-color:#e2e8f3;
}

/* Badge e stati */
.route-status-pill,
.badge{
  border-radius:999px;
  font-weight:820;
  letter-spacing:-.01em;
}
.route-status-pill.in_corso{
  background:#eaf7ff;
  color:#0969da;
}
.route-status-pill.programmato{
  background:#eef4ff;
  color:#0b63f6;
}
.route-status-pill.completato{
  background:#ecfdf3;
  color:#15803d;
}
.route-status-pill.da_completare{
  background:#fff7ed;
  color:#c2410c;
}

/* Grafici e liste dashboard */
.dash-main-grid,
.dash-board-columns{
  gap:18px;
}
.dash-recent-item,
.dash-route-item,
.dash-vehicle-card{
  border:1px solid #edf1f7;
  border-radius:14px;
  background:#fff;
}
.dash-recent-item:hover,
.dash-route-item:hover{
  background:#f8fbff;
  border-color:#d9e7ff;
}

/* Mobile: preserva layout senza cambiare funzioni */
@media(max-width:900px){
  .sidebar{
    background:#fff;
  }
}


/* V3.7.9.2 - Dashboard: giri da completare visibili */
.dash-board-columns{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:1350px){
  .dash-board-columns{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .dash-board-columns{
    grid-template-columns:1fr;
  }
}
#dashToCompleteBadge{
  color:#c2410c;
}


/* V3.8.0 - Area Admin */
body:not(.admin-mode) .admin-only,
body.admin-mode .user-only{
  display:none!important;
}
body.admin-mode .admin-only{
  display:flex;
}
body.admin-mode .side-nav .nav-item.active{
  background:linear-gradient(90deg,#eff6ff 0%, #f8fbff 100%);
}
.admin-list,
.admin-ticket-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.admin-list-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
  background:#fff;
}
.admin-list-item strong{
  display:block;
  color:#101828;
  font-weight:850;
}
.admin-list-item small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}
.admin-mini-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef5ff;
  color:#0b63f6;
  font-size:12px;
  font-weight:850;
  white-space:nowrap;
}
.admin-mini-pill.user{
  background:#f2f4f7;
  color:#475467;
}
.admin-filter-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.admin-filter-row select{
  min-width:160px;
}
.admin-ticket-card{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  padding:18px;
}
.admin-ticket-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:10px;
}
.admin-ticket-head strong{
  display:block;
  font-size:16px;
  color:#101828;
}
.admin-ticket-head small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}
.admin-ticket-card p{
  color:#475467;
  margin:8px 0 14px;
}
.admin-ticket-card textarea{
  width:100%;
  margin-top:6px;
}
.route-status-pill.aperto{
  background:#fff7ed;
  color:#c2410c;
}
.route-status-pill.in_lavorazione{
  background:#eef5ff;
  color:#0b63f6;
}
.route-status-pill.chiuso{
  background:#ecfdf3;
  color:#15803d;
}
.forgot-help{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
  margin:0 0 10px;
}

/* V3.9.0 - Validazione professionale indirizzi */
.geo-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.geo-badge.verificato{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.geo-badge.da_verificare{background:#fffaeb;color:#b54708;border:1px solid #fedf89}
.geo-badge.non_trovato{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.geo-badge.manuale{background:#eff8ff;color:#175cd3;border:1px solid #b2ddff}
.btn-link-small{border:0;background:transparent;color:#175cd3;font-weight:800;font-size:11px;padding:4px 0;cursor:pointer}
.address-validation-summary{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;color:#475467}

/* ---- PLAN SELECTOR (registrazione) ---- */
.plan-option {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  background: #fff;
}
.plan-option:hover { border-color: #2563eb; }
.plan-option.selected { border-color: #2563eb; background: #eff6ff; }
.plan-option-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: #2563eb; color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.plan-option-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #111827; }
.plan-option-price { font-size: 16px; font-weight: 800; color: #2563eb; }
.plan-option-price span { font-size: 10px; font-weight: 400; color: #6b7280; }
.plan-option-desc { font-size: 10px; color: #6b7280; margin-top: 4px; line-height: 1.3; }

/* ---- TRIAL BANNER ---- */
.trial-banner {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; gap: 12px;
}
.trial-banner strong { font-weight: 700; }
.trial-banner .btn-upgrade {
  background: #fff; color: #2563eb;
  border: none; padding: 5px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
