
.tech-profile-page{padding:24px;max-width:1180px;margin:0 auto}.tech-profile-hero{display:flex;align-items:center;gap:16px;padding:22px;border-radius:20px;background:linear-gradient(135deg,#0f4c81,#0c6fa3);color:#fff;box-shadow:0 14px 36px rgba(15,76,129,.18);margin-bottom:18px}.tech-profile-avatar{width:68px;height:68px;border-radius:18px;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);font-size:25px;font-weight:900}.tech-profile-hero h1{margin:3px 0 2px}.tech-profile-hero p{margin:0;opacity:.86}.tech-profile-hero .tc-kicker{color:#9edcff}.tech-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tech-profile-card{background:#fff;border:1px solid #d8e6ef;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(15,76,129,.08)}.tech-profile-card h2{margin:0 0 14px;color:#123d5d;font-size:18px}.tech-profile-card-head p{margin:3px 0 12px;color:#698097}.tech-profile-data{display:grid;align-content:start}.tech-profile-data-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #edf3f6}.tech-profile-data-row:last-child{border-bottom:0}.tech-profile-data-row span{color:#70879a}.tech-profile-data-row strong{color:#183e5e;overflow-wrap:anywhere}.tech-profile-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.tech-profile-stats>div{padding:13px;border-radius:14px;background:#f5fafd;border:1px solid #dceaf2}.tech-profile-stats span{display:block;color:#70879a;font-size:11px;font-weight:800;text-transform:uppercase}.tech-profile-stats strong{display:block;margin-top:4px;font-size:24px;color:#0f5c91}.tech-profile-compare{display:grid;grid-template-columns:1fr auto;gap:3px 12px;margin-top:12px;padding:12px 14px;border-radius:13px;background:#f8fbfd}.tech-profile-compare span{font-weight:800;color:#35556d}.tech-profile-compare strong{color:#60788c}.tech-profile-compare strong.up{color:#16834b}.tech-profile-compare strong.down{color:#c84b4b}.tech-profile-compare small{grid-column:1/-1;color:#7c90a0}.tech-profile-chart-card{grid-column:1/-1}.tech-profile-work-chart{display:grid;gap:12px}.tech-profile-bar-row>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:5px;color:#264b68}.tech-profile-bar{height:12px;border-radius:999px;background:#edf4f8;overflow:hidden}.tech-profile-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0f5c91,#35a8d8)}.tech-profile-upcoming{display:grid;gap:8px}.tech-profile-upcoming button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;border:1px solid #dce8ef;border-radius:12px;background:#fbfdff;padding:11px;cursor:pointer}.tech-profile-upcoming button:hover{background:#f0f8fc}.tech-profile-upcoming button div{min-width:0}.tech-profile-upcoming button strong,.tech-profile-upcoming button span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tech-profile-upcoming button span{font-size:11px;color:#6d8496;margin-top:3px}.tech-profile-upcoming button>b{text-align:right;color:#0f5c91;white-space:nowrap}.tech-profile-upcoming button b small{display:block;font-size:10px;color:#6d8496;margin-top:3px}
@media(max-width:700px){.tech-profile-page{padding:12px}.tech-profile-hero{padding:16px;border-radius:16px}.tech-profile-avatar{width:54px;height:54px;border-radius:14px}.tech-profile-grid{grid-template-columns:1fr}.tech-profile-chart-card{grid-column:auto}.tech-profile-stats{grid-template-columns:repeat(2,1fr)}.tech-profile-data-row{grid-template-columns:90px minmax(0,1fr)}}
.tech-profile-page.active{display:block!important}
.tech-profile-hero{position:relative;flex-wrap:wrap}.tech-profile-period{margin-left:auto;display:grid;gap:5px;font-size:11px;font-weight:800;color:#d6ecf8}.tech-profile-period input{min-width:150px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:#fff;color:#123d5d;padding:9px 10px;font:inherit}
.tech-profile-trend-chart{height:210px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:end;padding:14px 4px 2px}.tech-trend-col{height:100%;display:grid;grid-template-rows:1fr auto auto;gap:5px;text-align:center;color:#5f788b}.tech-trend-bars{height:150px;display:flex;align-items:flex-end;justify-content:center;gap:4px;border-bottom:1px solid #dce8ef}.tech-trend-bars i{display:block;width:16px;min-height:4px;border-radius:6px 6px 2px 2px}.tech-trend-bars i.total{background:#0f5c91}.tech-trend-bars i.done{background:#31a46c}.tech-trend-col strong{font-size:11px;color:#244b68;text-transform:capitalize}.tech-trend-col small{font-size:9px;color:#7b91a1}
@media(max-width:700px){.tech-profile-period{width:100%;margin-left:0}.tech-profile-period input{width:100%;box-sizing:border-box}.tech-profile-trend-chart{gap:5px;height:185px}.tech-trend-bars{height:125px}.tech-trend-bars i{width:11px}.tech-trend-col strong{font-size:9px}.tech-trend-col small{font-size:8px}}
.tech-profile-period-wrap{margin-left:auto;display:flex;align-items:end;justify-content:flex-end;gap:8px;max-width:100%}
.tech-profile-period{margin-left:0!important;display:grid;gap:5px;min-width:0}
.tech-profile-period input{width:168px;max-width:100%;box-sizing:border-box}
.tech-profile-current-period{min-height:36px;border:1px solid rgba(255,255,255,.32);border-radius:10px;background:rgba(255,255,255,.14);color:#fff;padding:8px 11px;font-weight:900;white-space:nowrap;cursor:pointer}
.tech-profile-current-period:hover{background:rgba(255,255,255,.22)}
.tech-profile-status-active{display:inline-flex!important;align-items:center!important;gap:7px!important;color:#0f7b46!important;background:#e8f8ef!important;border:1px solid #9ed9b8!important;border-radius:999px!important;padding:5px 10px!important;width:max-content!important}
.tech-profile-status-active:before{content:"";width:8px;height:8px;border-radius:50%;background:#22a45d;box-shadow:0 0 0 3px rgba(34,164,93,.12)}
.tech-profile-status-inactive{display:inline-flex!important;color:#a33333!important;background:#fff0f0!important;border:1px solid #efb0b0!important;border-radius:999px!important;padding:5px 10px!important;width:max-content!important}
@media(max-width:700px){
 .tech-profile-hero{align-items:flex-start!important}
 .tech-profile-period-wrap{width:100%!important;margin-left:0!important;justify-content:center!important;align-items:stretch!important;flex-wrap:wrap!important;padding-top:4px!important}
 .tech-profile-period{width:min(240px,100%)!important}
 .tech-profile-period input{width:100%!important}
 .tech-profile-current-period{width:min(240px,100%)!important}}


/* V1.0.156 — periodo profilo su una riga */
.tech-profile-period-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;align-items:stretch!important;width:min(430px,100%)!important;max-width:100%!important;margin-left:auto!important}
.tech-profile-period{width:100%!important;display:block!important;margin:0!important}
.tech-profile-period input{width:100%!important;min-width:0!important;height:42px!important;box-sizing:border-box!important;border-radius:12px!important;padding:9px 12px!important;background:#fff!important;color:#123d5d!important}
.tech-profile-current-period{width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;border-radius:12px!important;border:1px solid rgba(74,222,128,.55)!important;background:linear-gradient(135deg,rgba(34,197,94,.24),rgba(16,185,129,.16))!important;color:#eafff0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)!important}
.tech-profile-current-period:hover,.tech-profile-current-period:active{background:linear-gradient(135deg,rgba(34,197,94,.34),rgba(16,185,129,.24))!important}
@media(max-width:700px){.tech-profile-period-wrap{width:100%!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding-top:4px!important}.tech-profile-period,.tech-profile-current-period{width:100%!important}.tech-profile-current-period{font-size:14px!important;padding:8px 10px!important}}

/* V1.0.157 — Profilo: periodo perfettamente simmetrico */
.tech-profile-period-wrap{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  align-items:stretch!important;
}
.tech-profile-period-wrap > *{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.tech-profile-period{
  display:block!important;
  overflow:hidden!important;
  border-radius:12px!important;
}
.tech-profile-period input,
.tech-profile-current-period{
  display:block!important;
  inline-size:100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:44px!important;
  min-height:44px!important;
  padding:8px 10px!important;
  margin:0!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  line-height:1.15!important;
}
@media(max-width:700px){
  .tech-profile-period-wrap{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding-top:4px!important}
  .tech-profile-period input,.tech-profile-current-period{height:44px!important;min-height:44px!important;font-size:14px!important}}

/* V1.0.183 — controlli periodo uguali anche con il campo month nativo iOS */
.tech-profile-period-wrap>.tech-profile-period,
.tech-profile-period-wrap>.tech-profile-current-period{height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;align-self:stretch!important;box-sizing:border-box!important}
.tech-profile-period-wrap>.tech-profile-period{background:transparent!important;border:0!important;display:flex!important;align-items:stretch!important}
.tech-profile-period-wrap>.tech-profile-period input{appearance:none;-webkit-appearance:none;height:44px!important;min-height:44px!important;max-height:44px!important;block-size:44px!important;min-block-size:0!important;display:block!important;text-align:center!important;padding:8px!important}
.tech-profile-period input::-webkit-date-and-time-value{text-align:center;min-height:0}
.tech-profile-period-wrap>.tech-profile-current-period{display:flex!important;align-items:center!important;justify-content:center!important;padding:8px!important}
.tech-profile-stats-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.tech-profile-stats-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.tech-profile-stats-2>div,.tech-profile-stats-3>div{min-width:0}
.tech-profile-stats-2 span,.tech-profile-stats-3 span{line-height:1.25;min-height:30px}
@media(max-width:700px){.tech-profile-stats-3{grid-template-columns:1fr!important}.tech-profile-stats-3 span{min-height:0}}
.tech-profile-stat-button{appearance:none;width:100%;border:1px solid #dceaf2;border-radius:14px;background:#f5fafd;padding:13px;text-align:left;cursor:pointer;color:inherit;font:inherit;transition:.15s ease}.tech-profile-stat-button:hover{background:#edf8fd;border-color:#add4e7;transform:translateY(-1px)}.tech-profile-stat-button span{display:block;color:#70879a;font-size:11px;font-weight:800;text-transform:uppercase}.tech-profile-stat-button strong{display:block;margin-top:4px;font-size:24px;color:#0f5c91}.tech-profile-stat-button small{display:block;margin-top:5px;color:#668298;font-size:10px;font-weight:800}.tech-client-detail-list{display:grid;gap:10px}.tech-client-detail-card{border:1px solid #dbe7ef;border-radius:14px;background:#fff;padding:12px}.tech-client-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.tech-client-detail-head strong{display:block;color:#173e5f}.tech-client-detail-head small{display:block;color:#71879a;margin-top:2px}.tech-client-detail-head>b{white-space:nowrap;font-size:11px;color:#0f5c91;background:#eef8fd;border-radius:999px;padding:5px 8px}.tech-client-detail-vehicles{display:grid;gap:6px}.tech-client-detail-vehicles button{width:100%;border:1px solid #e1ebf1;border-radius:10px;background:#f9fcfe;padding:9px 10px;text-align:left;cursor:pointer}.tech-client-detail-vehicles button:hover{background:#eff8fc}.tech-client-detail-vehicles span{display:block;font-weight:900;color:#284d68}.tech-client-detail-vehicles small{display:block;margin-top:3px;color:#708596;line-height:1.3}

/* V1.0.194 - dettaglio clienti profilo con ricerca */
.tech-client-detail-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:0 0 14px}.tech-client-detail-search input{width:100%;min-width:0;border:1px solid #cfe0eb;border-radius:12px;background:#fff;padding:11px 13px;font:inherit;color:#173e5f;outline:none}.tech-client-detail-search input:focus{border-color:#67add4;box-shadow:0 0 0 3px rgba(47,143,198,.12)}.tech-client-detail-search span{white-space:nowrap;font-size:11px;font-weight:900;color:#5f788c;background:#eef6fa;border-radius:999px;padding:7px 10px}
@media(max-width:600px){.tech-client-detail-search{grid-template-columns:1fr}.tech-client-detail-search span{justify-self:start}}
.tech-profile-period-wrap>.tech-profile-period{position:relative!important;background:#fff!important;border-radius:12px!important;overflow:hidden!important;align-items:center!important;justify-content:center!important}
.tech-profile-period-wrap>.tech-profile-period #techProfileMonth{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;margin:0!important;cursor:pointer!important}
.tech-profile-period:focus-within{outline:2px solid #59bce8;outline-offset:3px}
