:root{font-family:Inter,system-ui,Arial,sans-serif;color:#172033;background:#f4f6f9}*{box-sizing:border-box}body{margin:0}.app{display:flex;min-height:100vh}aside{width:220px;background:#111827;color:#fff;padding:24px 16px;position:fixed;inset:0 auto 0 0}.brand{font-size:20px;font-weight:800;margin:0 10px 28px}.brand span{color:#ef4444}aside button{width:100%;border:0;background:transparent;color:#cbd5e1;text-align:left;padding:12px 14px;border-radius:9px;margin:3px 0;font-size:15px;cursor:pointer}aside button.active,aside button:hover{background:#263244;color:#fff}main{margin-left:220px;padding:32px;width:calc(100% - 220px)}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}h1{margin:0;font-size:30px}header p{margin:6px 0 0;color:#667085}.primary{background:#d92d20!important;color:#fff!important;border:0;border-radius:8px;padding:11px 16px;cursor:pointer}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}.card,section,.tableWrap{background:#fff;border:1px solid #e4e7ec;border-radius:12px}.card{padding:20px}.card span{color:#667085}.card strong{display:block;font-size:32px;margin-top:8px}section{padding:20px;margin-top:20px}h2{margin-top:0}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.toolbar input{width:420px}.toolbar span{color:#667085}.tableWrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px;border-bottom:1px solid #edf0f3;white-space:nowrap}th{font-size:12px;text-transform:uppercase;color:#667085}td small{display:block;color:#98a2b3;margin-top:4px}.pill,.priority{display:inline-block;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}.alto{background:#dcfae6;color:#067647}.medio{background:#fef0c7;color:#b54708}.basso{background:#f2f4f7;color:#344054}.pA{background:#fee4e2;color:#b42318}.pB{background:#fef0c7;color:#b54708}.pC{background:#e0f2fe;color:#026aa2}.actions button{border:0;background:none;color:#475467;cursor:pointer;margin-right:8px}.empty{text-align:center!important;padding:36px;color:#98a2b3}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182899;display:flex;align-items:flex-start;justify-content:center;padding:30px;overflow:auto;z-index:10}.panel{background:#fff;width:min(1050px,96vw);border-radius:14px;padding:22px}.panelHead{display:flex;justify-content:space-between}.panelHead h2{margin-bottom:3px}.panelHead p{margin-top:0;color:#667085}.panelHead>button{border:0;background:none;font-size:20px;cursor:pointer}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.grid label,.formStack label{display:flex;flex-direction:column;gap:6px}.grid label span,.formStack label span{font-size:13px;font-weight:600;color:#475467}.wide{grid-column:1/-1}input,select,textarea{border:1px solid #d0d5dd;border-radius:8px;padding:10px;font:inherit;background:#fff}textarea{min-height:78px;resize:vertical}.footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.footer button{padding:10px 16px;border:1px solid #d0d5dd;background:#fff;border-radius:8px}.list{display:flex;flex-direction:column;gap:10px}.listItem,.appointment{border:1px solid #eaecf0;border-radius:10px;padding:14px;display:grid;grid-template-columns:150px 1fr auto;align-items:center}.listItem span{font-weight:700}.listItem small{color:#667085}.emptyBox{padding:28px;text-align:center;color:#98a2b3;border:1px dashed #d0d5dd;border-radius:10px}.agendaGrid{display:grid;grid-template-columns:360px 1fr;gap:20px}.formStack{display:flex;flex-direction:column;gap:12px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.appointment>div:first-child{display:flex;flex-direction:column}.appointment strong{font-size:22px}.appointment h3,.appointment p{margin:0 0 4px}.appointment button{border:0;background:none;color:#b42318;cursor:pointer}.clickable{cursor:pointer}.clickable:hover{background:#f9fafb}.authLoading,.authPage{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.authLoading{color:#667085}.authPage{background:linear-gradient(145deg,#111827,#263244)}.authCard{width:min(420px,100%);background:#fff;border-radius:16px;padding:32px;box-shadow:0 24px 60px #0004;display:flex;flex-direction:column;gap:16px}.authBrand{font-size:21px;font-weight:800}.authBrand span{color:#ef4444}.authCard h1{margin:4px 0 0}.authCard p{margin:-8px 0 4px;color:#667085}.authCard label{display:flex;flex-direction:column;gap:7px}.authCard label span{font-size:13px;font-weight:600;color:#475467}.authSubmit{font-size:15px;margin-top:4px}.authSubmit:disabled{opacity:.65;cursor:wait}.authError{background:#fee4e2;color:#b42318;border-radius:8px;padding:10px 12px;font-size:14px}.migrationStatus{position:fixed;z-index:20;left:220px;right:0;top:0;min-height:32px;background:#ecfdf3;color:#067647;border-bottom:1px solid #abefc6;display:flex;align-items:center;justify-content:space-between;padding:6px 16px;font-size:12px}.migrationStatus button{border:0;background:transparent;color:#067647;font-weight:700;cursor:pointer}.migrationStatus+.app main{padding-top:64px}.migrationStatus+.app aside{padding-top:56px}@media (max-width:900px){aside{width:180px}main{margin-left:180px;width:calc(100% - 180px)}.cards{grid-template-columns:repeat(2,1fr)}.agendaGrid,.grid{grid-template-columns:1fr}.wide{grid-column:auto}}.migrationStatusActions{display:flex;align-items:center;gap:12px}.migrationStatus button:disabled{opacity:.5;cursor:wait}.readOnlyNotice{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:10px;padding:10px 14px;margin-bottom:18px;font-size:13px;font-weight:700}.operationError{background:#fee4e2;color:#b42318;border:1px solid #fecdca;border-radius:10px;padding:10px 14px;margin-bottom:18px;font-size:13px;font-weight:700}.nextActionCompletion{display:grid;gap:12px;margin-top:14px;padding:16px;border:1px solid #e4e7ec;border-radius:12px;background:#f9fafb}.nextActionCompletion .danger{background:#b42318;color:#fff;border:1px solid #b42318;border-radius:8px;padding:10px 16px;cursor:pointer}.nextActionCompletion .danger:disabled{opacity:.65;cursor:wait}.dashboardKpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dashboardKpis .card{min-height:118px;display:flex;flex-direction:column;justify-content:space-between;padding:20px 22px}.dashboardKpis .card span{font-size:14px;line-height:1.35}.dashboardKpis .card strong{line-height:1;margin-top:16px}.dashboardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}.dashboardSection{margin-top:0;padding:22px;min-width:0}.dashboardSection h2{margin-bottom:18px;font-size:20px}.dashboardSection .list{gap:12px}.nextActionFilters{display:flex;gap:8px;flex-wrap:wrap;margin:-6px 0 14px}.nextActionFilters button{font-size:13px;padding:7px 10px}.nextActionFilters button.active{border-color:#d92d20;background:#d92d20;color:#fff}.dashboardNextActionsList{max-height:680px;overflow-y:auto;padding-right:4px}.dashboardActivity{display:grid;grid-template-columns:minmax(112px,auto) minmax(0,1fr);grid-template-areas:"date company" "date description" "date owner" "controls controls";column-gap:18px;row-gap:7px;align-items:start;min-width:0;padding:16px;border:1px solid #eaecf0;border-radius:10px;transition:border-color .15s,background .15s}.dashboardActivity:hover{border-color:#f97066;background:snow}.dashboardActivity.overdue{border-left:5px solid #d92d20;background:#fff7f6}.dashboardActivityDate{grid-area:date;display:flex;flex-direction:column;align-items:flex-start;gap:8px;white-space:nowrap}.dashboardActivityDate time{font-size:14px;font-weight:800;color:#344054}.dashboardActivityDate span{display:inline-flex;align-items:center;justify-content:center;min-width:66px;font-size:10px;font-weight:800;line-height:1;letter-spacing:.04em;border-radius:999px;padding:5px 8px;background:#f2f4f7;color:#475467}.dashboardActivity.overdue .dashboardActivityDate span{background:#fee4e2;color:#b42318}.dashboardActivity.today .dashboardActivityDate span{background:#fef0c7;color:#b54708}.dashboardCompanyName{grid-area:company;max-width:100%;font-weight:800;line-height:1.3;color:#101828;overflow-wrap:anywhere}.dashboardActivity p{grid-area:description;margin:0;color:#475467;line-height:1.45;overflow-wrap:anywhere}.dashboardActivity small{grid-area:owner;color:#667085;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.dashboardActionRow{grid-area:controls;display:flex;gap:8px;flex-wrap:wrap;margin-top:7px;min-width:0}.dashboardActionRow .dashboardActionControls{display:contents}.dashboardActionRow .nextActionCompletion{width:100%}.dashboardActionControls{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.dashboardActionControls .nextActionCompletion{width:100%}.dashboardAppointment{display:grid;grid-template-columns:minmax(130px,auto) minmax(0,1fr);gap:6px 18px;align-items:start;padding:16px;border:1px solid #eaecf0;border-radius:10px;min-width:0}.dashboardAppointment b{grid-row:1/3;white-space:nowrap;color:#344054}.dashboardAppointment span{font-weight:800;overflow-wrap:anywhere}.dashboardAppointment small{color:#667085;line-height:1.4;overflow-wrap:anywhere}.dashboardEmpty{min-height:112px;display:flex;align-items:center;justify-content:center;padding:24px;line-height:1.5;background:#fafbfc}.dashboardOpportunities{margin-top:18px}.dashboardOpportunity{min-height:68px;gap:14px}@media (max-width:1100px){.dashboardKpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboardGrid{grid-template-columns:1fr}.dashboardSection{padding:20px}.dashboardActivity{grid-template-columns:108px minmax(0,1fr)}}@media (max-width:640px){main{padding:20px 14px}.dashboardKpis{grid-template-columns:1fr;gap:12px}.dashboardKpis .card{min-height:100px}.dashboardNextActionsList{max-height:560px}.dashboardActivity{grid-template-columns:1fr;grid-template-areas:"date" "company" "description" "owner" "controls";row-gap:9px}.dashboardActivityDate{flex-direction:row;align-items:center;justify-content:space-between}.dashboardAppointment{grid-template-columns:1fr}.dashboardAppointment b{grid-row:auto}.dashboardOpportunity{grid-template-columns:1fr;align-items:start}.companyActivityItem{grid-template-columns:minmax(0,1fr) auto;gap:8px}.companyActivityItem>span{grid-column:1/-1}.companyActivityItem .activityCommercial{grid-column:1/2;white-space:normal}.dashboardSection{padding:18px}.dashboardGrid{gap:14px}}.authNotice{background:#ecfdf3;color:#067647;border-radius:8px;padding:10px 12px;font-size:14px}.authLink{border:0;background:transparent;color:#475467;font-weight:700;cursor:pointer}.authLink:disabled{opacity:.5;cursor:wait}.companyActivityItem{align-items:center}.activityCommercial{color:#667085;font-size:12px;line-height:1.35;white-space:nowrap}.operationalNotice{background:#fef0c7;color:#93370d;border:1px solid #fedf89;border-radius:10px;padding:10px 14px;margin-bottom:18px;font-size:13px;font-weight:800}.permissionFieldset{border:0;padding:0;margin:0;min-width:0}.permissionFieldset:disabled{opacity:.82}.googleCalendarControl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.googleCalendarControl>span{font-size:12px}.googleCalendarError{color:#b42318;max-width:260px}
